Re: [android-developers] Re: Best way to store data in database

2010-12-08 Thread Danny Schimke
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

Re: [android-developers] Re: Best way to store data in database

2010-12-08 Thread Kostya Vasilyev
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

Re: [android-developers] Re: Best way to store data in database

2010-12-08 Thread Danny Schimke
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.

[android-developers] Re: Best way to store data in database

2010-12-08 Thread DanH
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