[android-beginners] Re: Call to activity problem

2009-09-14 Thread kapnkore
OKiess solved it finaly..thank you all for your support suggessions.i tried to debug with DDMS but its not debuging n overloaded constructor of SmsReceiver is crashing.i used it in this way may be nt documented way bt it works.plz suggest me if any changes are there class someactivity

[android-beginners] Re: Call to activity problem

2009-09-11 Thread kapnkore
ok i tried it like u said but it crashing here it is how i tried please check n tell me how to correct it class someactivity extends extends Activity { *public* *void* onCreate(Bundle savedInstanceState) { //... call(); } public void call() { SmsReceiver *b* =*new*

[android-beginners] Re: Call to activity problem

2009-09-11 Thread Mark Murphy
kapnk...@gmail.com wrote: ok i tried it like u said but it crashing here it is how i tried please check n tell me how to correct it class someactivity extends extends Activity { *public* *void* onCreate(Bundle savedInstanceState) { //... call(); }

[android-beginners] Re: Call to activity problem

2009-09-10 Thread kapnkore
nope this is not working here.Application getting crash On Wed, Sep 9, 2009 at 11:12 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: For being able to start an activity you need a context. One possibility is to pass a reference of your application context to your class

[android-beginners] Re: Call to activity problem

2009-09-09 Thread Roman ( T-Mobile USA)
For being able to start an activity you need a context. One possibility is to pass a reference of your application context to your class from which you want to call startActivity. Something like class A extends Activity { void yourMethodA(){ ... B b = new B(getBaseContext() );