Android :: Lock Layer Error Intermittently When Stopping And Starting A Opengl SurfaceView

Jul 13, 2009

I'm writing a game using the drawing method from Chris Pruett's opengl spritemethodtest demo. The Activity running my opengl view works fine on initial load, and about half the time after turning off the phone and turning it back on. However, the other half, it locks up. I'll get a "lock_layer timed out (is the CPU pegged?)" warning that keeps repeating. I tried running the debugger to find the exact line that the error is occurring on, but the strange thing is that this error won't occur if I'm running the debugger on my G1. It only happens under normal operating conditions. Any help would be appreciated, as this bug really has me stumped.

Here are my onPause and onResume activity methods:

CODE:.............

Here's a stack trace, running from the initial onCreate call to the lockup (I added some extra Log warnings to illustrate when different lifecycle methods are being called):

CODE:..................

Android :: Lock layer error intermittently when stopping and starting a opengl SurfaceView


Android :: Starting And Stopping Services

Aug 14, 2010

I have a service running (Socket), this is how i start the service.

CODE:.......

But this doesn't seem to stop my service? Am i missing something? I need to destroy my service as soon as the home button is clicked.

View 1 Replies View Related

Android :: RotateAnimation - Stopping And Starting Again After Every Rotation

Mar 29, 2010

I am rotating a view using rotateAnimation with this code new RotateAnimation(0, 360, w / 2, h / 2); I want to rotate this view infinitely, so i put setRepeatCount(RotateAnimation.INFINITE);

But the problem is after every one complete rotation, its stopping and starting again, means by default rotateAnimation have AccelerateDecelerateInterpolator(). I feel because of this. So if i put setInterpolator(null), its throwing null pointer exception. How to solve this.

I want to rotate my view without any lag.

View 4 Replies View Related

Android :: Framework Support For Detecting Starting And Stopping Of Activities

May 13, 2009

To support usability studies on what applications are used, i want to write a service that logs when an activity is started and also when it has finished. This is to understand how the users are using the device:

One straightforward option is to have the applications modify, to write this out. But this is tedious having to modify all applications and will not work esp with third party or built in applications.

Is there any alternatives that makes this simpler and easier?

BTW: Looking at the android framework source ActivityManagerNative seems to be invoking a Binder interface when an Activity is started and finished. Any information on what this service is? Is this something i can tap into?

View 8 Replies View Related

Android :: Stopping And Starting Service Based On Application State

Oct 28, 2010

I have a Service which tracks the location of the user. Currently, the Service boots when the application starts and stops when the application terminates. Unfortunately, if users keep the application in the background, the Service never stops and drains battery.

I would like the Service to stop when my application is not in the foreground. I was hoping the Application class would let me Override onPause and onResume handlers, but it does not have them.

View 1 Replies View Related

Android :: Pausing / Stopping And Starting / Resuming Java TimerTask Continuously?

Jan 20, 2010

I have one simple question regarding Java TimerTask. How do I pause/resume two TimerTask tasks based on a certain condition? For example I have two timers that run between each other. When a certain condition has been met inside the task of first timer, the first timer stops and starts the second timer, and the same thing happens when a certain condition has been met inside the task of second timer.how do I pause timer1 while running timer2 and vice versa while timer2 is running? Performance and timing is my main concern as this needs to be implemented inside another running thread. By the way I am trying to implement these concurrent timers on Android.

View 4 Replies View Related

General :: Stopping Unwanted Apps From Automatically Starting?

May 8, 2012

I have an Acer A100 tablet that I've upgraded to ICS (the upgrade went very smoothly, by the way). But under both ICS and the original Honeycomb, the Android OS has an annoying habit of starting a bunch of apps automatically. Facebook, Google Maps, media players and a whole host of apps that I do NOT want to start all by themselves. I found an "Advanced Task Manager" that will check every 5 minutes and kill unwanted apps automatically. But every time I check it there are still half a dozen apps running in the background that I don't want.

If it were just one or two apps, I would simply uninstall them. But it seems like half the factory apps are intent on restarting themselves no matter how many times they're turned off. My Acer has a very small battery, and I suspect I'd get much better battery life if it would only run the apps that I start manually.

Other than email and the system update manager, I really don't want any apps running in the background. And when I turn an app off, I want it to stay off until I restart it. Is there a way to edit the list of programs that start automatically? Do they all have to be disabled individually? I've checked a few of the apps, and don't see any way to disable the "automatic log-in", "check for new data" or whatever each program might call it's annoying insistence on starting whenever it wants to.

View 3 Replies View Related

HTC Desire :: Stopping Auto - Lock When Charging

Jun 11, 2010

I'm a new desire user and would like to know if there is a way (apps/setttings etc) to stop the phone from going to sleep and screen locking when it is on charge? I use it for listening to music in the car in a charging dock and it's a pain to have to unlock the screen and enter my password if I want to skip tracks. I have to have the password active because of the corporate email policy. Anyway of setting it so it doesn't turn off when on charge?

View 3 Replies View Related

Samsung Moment :: Application Layer Of The Phone Is Not Receiving Hardware Layer's Data Correctly

Dec 21, 2009

Ok so I know many are having battery issues. You, like me, probably have more battery life than you think. This is because the application layer of the phone is not receiving the hardware layer's data correctly (hold talk button, end call button, and middle button upon starting up your turned-off phone, this boots in test mode which shows you hardware layer battery power, aka the correct battery life estimate). It's causing another problem because some applications can't be run when the phone THINKS it's about to die.

View 2 Replies View Related

Catching And Stopping One Decimal Point Error

Aug 9, 2012

Alright how does one catch and stop a one decimal point error? The user inputs a single . and that is all; you can not allow that because you will be doing math with that input.if you have this in your xml file:

Code:
<EditText
android:id="@+id/edittext01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number|numberDecimal"
android:lines="1" >
</EditText>

and the user types just one decimal and nothing else the program will blow up.I tried the following code but the program blows up at the second IF.At first the two IFs were just one line, they got broken up to see where the problem was As you can see if the length of the user input is only 1 we check to see if it is only one decimal only

The program blows up at the second IF, but errx is a STRING.I used the Log.i to see how far to program went. And the errx is a "."

Code:
if (stop == 0) // checking for one decimal only and nothing else
{
String errx =null;
errx = (edtxt01.getText().toString());
Log.i("ONE DEC:", "START OF IF xxxx: " + errx);
if (edtxt01.length() == 1 ) // *********** 1st if
[code]...

View 1 Replies View Related

Android :: SurfaceView Vs Custom View / SurfaceView Is Slower

Aug 20, 2010

One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower animations, less intense graphics.However, in my simple app, I can clearly see that using a custom view with calls to invalidate seems to render faster.What do you guys know/think about this?My touchEvent code is exactly the same, and my drawing code is exactly the same. The only difference is that one is all in the UI thread, and the other is using a tread to handle the drawing.

View 1 Replies View Related

Android :: Error When Starting Activity

Mar 22, 2010

I'm starting an activity when a button is pressed, and normally (in other apps) haven't had an issue. But when I press the button in this app, I get an "unable to marshal value" error.Exact(ish) error from LogCat:
03-22 02:49:02.883:
WARN/System.err(252):
java.lang.RuntimeException: Parcel:
unable to marshal value
{CLASSNAME}@44dcf1b8
I feel that this might be related to the extra that I'm passing to the intent. I'm passing an ArrayList as a serializable to this new intent. My concern is that the data structure that the ArrayList contains isn't being serialized (as it's a personal data structure).Is the array list content data structure causing this? Something else that I'm missing?

View 1 Replies View Related

Android :: Error When Starting A Tab Activity?

May 16, 2010

I followed the directions verbatim in this Android tutorial, copying/pasting the code from the site to my app. http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

However, when I try to run in the Android emulator, I get the error: "The application Hello Tab Widget has stopped unexpectedly. Please try again."

I tried debugging by introducing a breakpoint in the first line of the onCreate method, but the error occurs before the breakpoint is even hit. Any idea of what is going wrong, or any other way I can debug this issue? I am using Eclipse.

View 2 Replies View Related

HTC Desire :: Starting Download Market Error

Oct 8, 2010

I have had one of those "Starting download" errors in the market for almost 3 months now (!) and I'm starting to get tired of it.

I'm using a Desire with android 2.2. My problem is this: I can download from satellite network, but not via Wifi at home. However, it seems to be a 1% chance (or close to that) of successful download using the Wifi.

I have logged in and out of Talk several times, did a couple of factory resets, formatted the SD card, cleared cache from HTC checkin service, market, google talk and downloader (if thats what its called in english). I tried to set the network as only WCDMA, only GSM and both auto, still no results. Everything else seems to work using the Wifi at home, except market. I called HTC for some help, and the only thing I got to know was that it wasn't my mobile operator, or other settings on my phone that caused this problem, and they also thougt it might be the network at home, which I too thought before talking to them. So I did a little research about that, and tried to open port 5228, even though that seemed weird, as it sometimes worked downloading. I also read about the change from googlemail.com to gmail.com, but I never had a "googlemail.com" address, so I hope this isnt the problem. Now HTC wants me to tell them if I can fix this, and how I did, so they probably have no clue either:S

I have also tried other things, which I don't remember right now, but if anyone can list up something to try, I'll see if I have done it or not.

View 34 Replies View Related

Android :: OpenGL Speed Issue - Code Contribution To Other OpenGL

Feb 25, 2009

Single Threaded OpenGL game ! (check bottom, you can download and use the helper class) Lighting disabled ! Depth Buffer disabled ! Culling enabled ! Textures disabled !

Just 176 integers (x,y values only) making 88 vertexes along with 132 index numbers making "44 triangles only"

Framerates I get is

with GL_BLENDING disabled - 145 fps approx only! enabled - 110 fps approx only!

I have the screenshot of exact code in the draw function here.. just 2 damn lines ! I have hidden only the comments.. click here to see it http://prasna991.googlepages.com/drawframe.png

variable details in the 2 lines of code =========================== ipts = 176 elements (only x and y for each vertex) totallinetriangles * 3 = 176 lineindexes = 132 elements - type "short"

Here is the screenshot of output drawing and how it will look like http://prasna991.googlepages.com/screen.png

OpenGL single threaded Initialization Helper ================================ Here is my OpenGL helper class.. makes the OpenGL initialization for newbies a cakewalk http://prasna991.googlepages.com/OpenGLHelperclass.txt

I tested by rendering on the touch event only.. frame rate drops only when u touch and drag and here I have just tested by tapping and releasing gently on the emulator and on the device

Is this the device limitations ? So graphics is actually a lot lot lot slower than on iPhone ?

View 8 Replies View Related

Android :: NDK OpenGL - Mixing Java And Native - C - Calls To OpenGL API

Jul 24, 2010

I would like to be able to use the OpenGL API from both Java and C (via NDK).

In Java, there is a GL object passed, which has all GL methods on it.

In C, you just talk to the native library.

In a single onDrawFrame callback (for which Java is passed a GL), can I use methods on the GL object, and also call NDK methods which access the openGL library?

In other words, is the GL object just a wrapper for the same instance of the native library?

View 3 Replies View Related

Android :: Bizarre Conversion To Dalvik Format Error Caused By Google Chrome APK File Lock

Jul 20, 2010

I have a small test Android Project used to test the MediaPlayer class.

For this project, usually after a few builds, the compiler gives this exception:

Conversion to Dalvik format failed with error 1

I've narrowed this down to Google Chrome locking the generated .apk file (in /bin). So, the build is unable to remove that APK to rebuild.

Sure enough, quitting Chrome, solves the issue.

This is bizarre, isn't it! Why would Google Chrome be grabbing a lock on that file?

I have never had this error with any of my other projects.

View 2 Replies View Related

Jelly Bean :: Stop Pattern Lock Error Track?

Dec 28, 2013

Is there any way to stop the pattern lock screen showing the trail of an incorrect swipe?

View 2 Replies View Related

HTC Incredible :: Android 2.1 Rebooting Itself Intermittently?

May 10, 2010

Anyone else have this problem with the HTC Droid Incredible on Android 2.1 rebooting itself intermittently? In the last 2 weeks, it has rebooted it self about 5 times that I know of. NO, I am not rooted. No, I have not seen any update notifications.

View 15 Replies View Related

Android :: HttpsURLConnection Failing Intermittently To Same URL

May 15, 2010

I think I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357

This is Android 1.5 SDK. I happen to call several times below code(which is in a method) with
the same url and it fails intermittently. When it fails, there is no exception, the stream is empty so the
readConnection fails, and getResponseCode returns -1. Global caching is disabled, setDefaultUseCaches(false);

I suppose there must be some kind of url connection object pool somewhere.

How can I workaround this?

CODE:............................

View 2 Replies View Related

Android :: App Opens Previous Activity / Only Intermittently

Jul 24, 2009

This is an intermittent bug in one of my apps. I don't expect anyone to solve it immediately, but I'd appreciate any thoughts on how to start debugging!So, my app lets users edit an item (in the EditPage activity). When they press the Back key, the desired behaviour is that it saves their edits and returns them to the home page (the HomeList activity). The code for this is below. It works fine. Except.The bug is this. Some users report that sometimes when they reopen the application after a pause, they are seeing *not* the home page, where they left the application - but the previous edit activity. Crucially, they are also seeing the edit activity without their saved edits - effectively losing their most recent edits.I've been able to reproduce this myself. It only happens after the application hasn't been opened for a while. If I save something, minimize the application and reopen it straight away, it shows the HomeList activity just fine, and the edits have all been saved. But if I save something, leave it for a couple of hours and then reopen it, it shows the previous EditPage activity, without the saved edits (i.e. in the state that the EditPage activity was previously launched).

Any ideas, anyone? I had wondered whether it was due to the Back button being used to return the user to the HomeList activity - maybe Android thinks that the Back button means that the HomeList is not the most "recent" activity, instead the EditPage is. I'd like to carry on using the Back button if possible, though. And in particular, I'm puzzled why it only happens after the app has been idle for an hour or so, and not immediately? Is it something to do with Android's memory management?

View 4 Replies View Related

Android :: Deadlocks Intermittently / Having Crashlog After A Rotation

Apr 8, 2010

Here's a crashlog. It happened on n1 after a rotation. Looks like the swap function is called with a wrong arg. Log ...

View 2 Replies View Related

Android :: Market Licensing Intermittently Fails

Oct 26, 2010

I included the Android Market licensing (LVL) in my application and is currently using it to block invalid users. However users are emailing me that they are legit and include proof that they indeed bought the application. In looking at the errors generated during authentication, I get something along the line of "failed to reach server 505 error" which basically means that the Android Market server isn't responding and authenticating the users correctly.

In my personal experience when I encountered this once in my testing (I was hoping it was unique but it's not), I had to wait 30 mins before it finally worked. My phone was using wireless and clearly had no network issues. Ultimately the Android Market server is glitch and faulty (which is nothing new) and was just not responding and authenticating for around 30 mins. This leads to an extremely crappy experience for my users.

Other than dropping using this licensing scheme, I don't know what else to do. Android market connection is just too faulty for everyday usage. Do other developers have a better experience? Others using LVL at all? Others with similar experience?

View 3 Replies View Related

Samsung Captivate :: Error Starting Wifi Scan - Or Unable To Scan For Wifi Access

Aug 16, 2010

phones worked good other then gps issue. recently after iv had the phone for 30 days it just stopped scanning for wifi access and wont turn on wifi at all.

View 3 Replies View Related

General :: Seeing Wrong Time On Android 4.3 Intermittently On Nexus 4?

Aug 3, 2013

Since updating to 4.3 both my and my girlfriend's Nexus 4 clock keeps jumping back 8 hours. Then corrects itself. Then goes wrong again, a few times per hour.

We bought the phones in the UK where there is an 8 hour time difference.

When we look at clock it says UK time is actually Los Angeles and Los Angeles is UK. It swaps them, which makes no sense.

Turning auto time zone off makes no difference, it's getting it from AT&T directly.

View 3 Replies View Related

Android : Draw A Layer On Top?

Aug 16, 2010

I've got a standard RelativeLayout laying out my Buttons and TextAreas. What I want to do now is be able to draw various sparks, flying cows etc. at arbitrary places on the screen on top of the whole thing. What's the best way to do this? Should I override onDraw() on the containing View and draw after calling super.onDraw()? Or is there some better way of drawing a layer on top?

View 1 Replies View Related

Android :: Layer Reality Won't Install

Jun 24, 2010

just got my incredible today which btw I am loving it. However I have run into an annoying issue, Layer Reality will not install. I downloaded the app from the Android store and while it appears in my download list completed it will not install saying (download unsucessfull) after around 2 seconds or so. I am really wanting to check this app out.

View 2 Replies View Related

Android :: Use Own Map Layer In Google Maps

Jun 23, 2009

I have a GIS layer, that holds information about some areas. It is basically a rating for a specic area. So each shape defines a specific rating. I would like to be able to add this layer to Google Maps and then in my Google Android phone be able to open a little application that just shows that rating based on your current location as a big number on the screen. I am fairly new to Android development, so I don't know the Google Maps API that well yet. I would be very happy for any pointers in the right direction and even happier if anyone could present an example.

View 7 Replies View Related

Android :: Implement A Layer Above A Layout?

Sep 12, 2010

How to implement a layer above a layout? like this pic: http://ss12.sinaimg.cn/orignal/5d8cb30ag8f47eca43a5b&690

View 3 Replies View Related

Implement Tiled Layer In Android?

Aug 2, 2012

how can we implement the tiled layer (java net beans) in android?does we use open gl for this?

is that called "texture" or "wallpaper" or ...?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved