Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

splash screen on android studio

/****** Create Thread that will sleep for 5 seconds****/  		
          Thread background = new Thread() {
           public void run() {
              try {
		// Thread will sleep for 5 seconds
		sleep(5*1000);
					
		// After 5 seconds redirect to another intent
		 Intent i=new Intent(getBaseContext(),FirstScreen.class);
		  startActivity(i);
					
		//Remove activity
		finish();
               } catch (Exception e) {
				}
                            }
		        };
		// start thread
		background.start();
Source by abhiandroid.com #
 
PREVIOUS NEXT
Tagged: #splash #screen #android #studio
ADD COMMENT
Topic
Name
6+9 =