java - Can an Android activity call itself? -
when creating new intent start new activity, possible activity call , program technique. example, let's have template activity , avoid making 10 different activities, handy have same activity call itself?
yes is. if requirement there no harm in doing that. if use dont forget call finish(). finish() remove activity backstack when press dont return previous instance of same activity.
startactivity(new intent(myclass.this,myclass.class)); finish();
Comments
Post a Comment