See...
I have my project A in which I have used the library ViewLib .
In Viewlib (libraray) there is an activity name PDFNavAct.
I need to implement that when I back press in PDFNavAct activity, then it close and open my project A Mainactivity..
For this I wants to implement this method in PDFNavAct activity
@Override
public void onBackPressed() {
super.onBackPressed();
startActivity(new Intent(getApplicationContext(),com.example..Mainactivity));
this.finish();
}
But it is not working ...
Can you please tell me the solution for it , so that I will press back and I com to my home activity i.e Mainactivity.