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
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*
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();
}
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
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() );
5 matches
Mail list logo