[android-developers] Re: new activity from PhoneStateListener callback method

2008-12-10 Thread dreamerBoy
You should be able to define your own constructor or setter that takes the context as a parameter, no? Does that not work? MyPhoneStateListener(Context ctx) { sthustfo wrote: Hi, I would like to know how I can start a new activity from within the PhoneStateListener method, say

[android-developers] Re: new activity from PhoneStateListener callback method

2008-12-10 Thread dreamerBoy
You should be able to define your own constructor or setter that takes the context as a parameter, no? Does that not work? MyPhoneStateListener(Context ctx) { sthustfo wrote: Hi, I would like to know how I can start a new activity from within the PhoneStateListener method, say

[android-developers] Re: new activity from PhoneStateListener callback method

2008-12-10 Thread dreamerBoy
You should be able to define your own constructor or setter that takes the context as a parameter, no? Does that not work? MyPhoneStateListener(Context ctx) { this.ctx = ctx; } or something - sthustfo wrote: Hi, I would like to know how I can start a new activity from within the