in my application, when i click list view item one notification will display, Now when i click that notification open another activity and display the notification content in an
Finally i found answer for this task.First write this line into
onNewIntent(getIntent());
Oncreate() method.
After add this code to your Activity.
protected void onNewIntent(Intent intent) {
// TODO Auto-generated method stub
Bundle extras = getIntent().getExtras();
if(extras != null){
if(extras.containsKey("Name")){
setContentView(R.layout.notification);
// extract the extra-data in the Notification
ok_btn=(Button)findViewById(R.id.not_ok);
String msg = extras.getString("Name");
not_data = (TextView) findViewById(R.id.noti_txt);
not_data.setText(msg);
}
}
super.onNewIntent(intent);
}
any doubts in this task plse post ur question.