for the battery monitor an alarm manager is sufficient. No need to measure
the battery more frequent than, let's say, every five minutes.
for the music app use a foreground service. That is less likely to get
killed by the OS. Make sure it can easily be killed by the user though.
--
You
Thanks for ur reply =]
But what i wonder is, if i only update the battery state every 5 mins,
the update would be a bit too late.
I can see on the market there is some battery widget doing the same
(i.e. give immediate response when the phone is plugged to the AC),
how can i do the same??
for
On 9 April 2011 15:48, Eason dragonea...@gmail.com wrote:
Thanks for ur reply =]
But what i wonder is, if i only update the battery state every 5 mins,
the update would be a bit too late.
http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED
Besides, you
What you are after is the WebView method addJavaScriptInterface:
http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object,
java.lang.String)
As the name implies, this creates an interface between Javascript in
the webpage and your Java code.
On Sun, Mar 13, 2011 at 10:44 PM, perumal316 perumal...@gmail.com wrote:
Is this possible to be done through a background service?
I don't think a Service is what you want in this case. See Jonathan's post.
Hi TreKing,
I already have my own webview application that will load a custom
webpage. I need to get user inputs from the data field in the webpage
to do some computation and insert back the result into the webpage.
I am thinking of writing a background service and couple it with this
You not only need to do it in a Service, but you need to launch a
separate thread. The class that can do both for you is IntentService.
BTW: the Android documentation on both of these is a little
misleading: when the Service docs talk about 'background', they mean
something a little different
You can't - an explicit design decision because it would be a gross
invasion of privacy.
If you wanted to do it with the user's consent they would need to use
your apps rather than stock or 3rd party ones, or have your modified
installation of. android rather than the device manufacturers or
Hi all, thx for the reply. i'm trying the localService and the
LocalServiceController sample code now.
As in the sample code LocalService, i get this log
LocalServiceController]ActivityManager: java.lang.SecurityException:
Permission Denial: starting Intent { flg=0x1000
Problem Solved. It was the SDK version problem. Thanks all.
On Nov 25, 4:15 pm, Wei Jian weijia...@gmail.com wrote:
Hi all, thx for the reply. i'm trying the localService and the
LocalServiceController sample code now.
As in the sample code LocalService, i get this log
On Nov 25, 5:25 am, saify.zeenwala saifyzeenw...@gmail.com wrote:
put ur code in onstart() instead of oncreate()
becuase ur on create will get call only once through out the life cycle of
service.
onStart() is never called if the service is started with bindService
().
Not clear from docs
The lifecycle is that onCreate() is called first thing when the service is
being created in the process, for whatever reason. onStart() is called for
each startService() call.
On Wed, Nov 25, 2009 at 10:41 AM, jotobjects jotobje...@gmail.com wrote:
On Nov 25, 5:25 am, saify.zeenwala
You can do that easily with NotificationManager
--
Pierre
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
13 matches
Mail list logo