CodeDocu.com

 

 

 

How can I close the current activity

 

Solution
easy with the following java command

 

super.onBackPressed();  //Close Activity

 

 

#programatically close

 

How to close an Android Activity

 

public void onCancelAlarm(View view) {
   
//------------< onCancelAlarm() >------------
   
super.onBackPressed();  //Close Activity
    //------------< onCancelAlarm() >------------
}

 


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel