Need to make Android boot screen

I am making an application and I want to create a launch loading interface in my application. I have an image displaying my application name. I want to have a .gif aniamted download icon and I want to display it on the first screen. I designed my first screen that I need. Some help is that it should display this .gif animated download image and then wait a while after that to open my next action. Please help me....

Thanks for the bunch in advance.

0
source share
3 answers

I also agree with Ted on this, but it looks like you can just show the logo for a while without doing any background work. If you are looking for something that ends based on time rather than work, check out the code below:

                 waitTimer = new CountDownTimer(60000, 300) {

                 public void onTick(long millisUntilFinished) {
                    //called every 300 milliseconds, which could be used to
                        //display some crude animation
                 }

                 public void onFinish() {
                     //After 60000 milliseconds (60 sec) finish current 
                         //activity and open next activity           
                 }
              }.start();

But Ted has the right answer for a genuine boot screen, which ends after shutting down.

+3
source

Sounds like a job for AsyncTask. You implement a method doInBackgroundto perform any configuration, and wait for the user to read your promo screen (download, download). In onPostExecute(which runs in the user interface thread) run the main action of the application and complete the () boot screen.

+3
source

, Android .gif. ProgressDialog .

, , , .

0

Source: https://habr.com/ru/post/1792031/


All Articles