Yeah, that sounds correct. I was not shure that this is the problem, cause
its only a object reference but may something is done with the listener by
calling telephonyManager.listen().
-Danny
2010/12/8 Kostya Vasilyev
> These two lines are backwards:
>
>
> telephonyManager.listen(listener,Pho
These two lines are backwards:
telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE);
listener = new PhoneStateListener() {
The listener is still null when telephonyManager.listen() is called.
Debugging or checking the logcat would have shown this.
Also, when your code crash
What is not working? Any concrete exceptions in debug view? Like Dan says we
need more information. Does a exception occur?
-Danny
2010/12/8 DanH
> You never compiled it? Never executed it?
>
> (Some symptoms would be helpful.)
>
> On Dec 7, 9:35 am, nirav sabhaya wrote:
> > BroadcastExample.
You never compiled it? Never executed it?
(Some symptoms would be helpful.)
On Dec 7, 9:35 am, nirav sabhaya wrote:
> BroadcastExample.java
> --
> package com.example.broadcast;
>
> import android.app.Activity;
> import android.content.Context;
> import android.o
4 matches
Mail list logo