What is the best way to detect when an Android \"Application\" has been launched from the Home screen/History screen?
Basically, what I\'m trying to achieve is force
simply create a stump activity that doesn't have a content view and launches other activities on application start
e.g. put the following into onCreate:
Class> myclass;
if(isTimeForActivity1){
myclass = Activity1.class;
}else if(isTimeForActivity2){
myclass = Activity2.class;
}
startActivity(new Intent(this, myclass));
finish();