On Thu, Apr 2, 2009 at 6:19 AM, Henning Schaefer wrote:
>
> Sure... you need to implement two classes. One, derived from
> BroadcastReceiver, which actually captures the broadcast. And, of
> course, the service that keeps the receiver alive all the time. The
> service is the easy part. You only n
This code is good. But can I put it to AndroidManifest.xml? In case
the receiver has not run, I think AndroidManifest.xml is the way to
register the receiver class.
Thanks, Kenny
On Apr 2, 10:19 pm, Henning Schaefer
wrote:
> Sure... you need to implement two classes. One, derived from
> Broadca
Sure... you need to implement two classes. One, derived from
BroadcastReceiver, which actually captures the broadcast. And, of
course, the service that keeps the receiver alive all the time. The
service is the easy part. You only need to override two methods:
@Override
public void onCreat
hi henning
do you have some example code for me, how to create a service to
detect the headset, please?
Cheers
On 16 Feb., 17:21, zero wrote:
> on a side note, i recommend the logcat app for such
> momentshttp://code.google.com/p/android-random/
>
> On Feb 16, 5:04 pm, Henning Schaefer
> wro
on a side note, i recommend the logcat app for such moments
http://code.google.com/p/android-random/
On Feb 16, 5:04 pm, Henning Schaefer
wrote:
> OK, after digging into the android system code, I think I figured out
> what's wrong here... the class "HeadsetObserver" from the base system
> actu
OK, after digging into the android system code, I think I figured out
what's wrong here... the class "HeadsetObserver" from the base system
actually sends out this intent with its FLAG_RECEIVER_REGISTERED_ONLY
flag set... obviously, there's no way to receive this intent without
implementing a serv
6 matches
Mail list logo