android - How do I send a user from a splashscreen to one class when app first loads and to another after this -


so far, have class directs user particular class upon completion of splash screen.

what i'd is, splash screen class direct users 1 class upon primary page load. if user revisits splash screen, i'd direct user used class (other splash screen class)

how this?

the purpose of this, if user moves application background,then when application brought foreground user returned opened class after again seeing splash screen, rather again sent primary class

public class mainsplashscreen extends activity {      @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.main_splash_screen);             new handler().postdelayed(new runnable() {              // using handler postdelayed called runnable run method              @override             public void run() {                 intent = new intent(mainsplashscreen.this, firstscreen.class);                 startactivity(i);                  // close activity                 finish();             }         }, 5*1000); // wait 5 seconds      }      @override     protected void ondestroy() {          super.ondestroy(); 

this stuff stuff how hide last activity view in android recent list? using locker screen implementation

that way, activity won't appear in history , user go splash when application started again , not during restarts.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -