Hi,
Have you used partial wake lock? I got the similar problem in my
app. I fixed it by using wake lock. Following is my code snippet. May
be this will help you.
PowerManager.WakeLock wl;
try {
PowerManager pm = (PowerManager) context
.getSystemService(Context.POWER_SERVICE);
wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
"Nyros");
if (wl != null)
wl.acquire();
//do your stuff here
} catch (Exception ex) {
} finally {
if (wl != null)
wl.release();
}
Thanks & Regards,
Raghavendra K.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en