OKiessssss 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 extends extends Activity
{
public void onCreate(Bundle savedInstanceState) {
//.......................
SmsReceiver ctx = this;

}

}

--------------------------------------------------------------------
// now in class SmsReceiver

public
class SmsReceiver extends BroadcastReceiver
{
static Context ctx=null;
/*public SmsReceiver(Context baseContext)
*{
*mContext = baseContext;
*}

*/


@Override
public void onReceive(Context context, Intent intent)
{
//.........................................
Intent i =
new Intent(ctx, neww.class);
//startActivity(i); cant be used directally so used

ctx.startActivity(i);
}
}


this works fine (with slightly bt may be negligible delay)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to