Android 360-like system startup time prompt

Source: Internet
Author: User

 

The system startup time is obtained based on linux commands.

Cat/proc/uptime

<Span style = "font-size: 18px; color: # ff0000;"> </span>

 

<Span style = "font-size: 18px; color: # ff0000;"> 817.87 indicates that 817.87 seconds have been started, T0

 

Listener system started

 

<Action android: name = "android. intent. action. BOOT_COMPLETED"/>

 

Then call new Date (). getTime ()

 

Obtain the system boot time T1

 

Get the start time t2.

 

T2-T1 = It's time for the system to boot

 

The above T0 is the time from system startup to the present

 

So the system completed the boot time a total of T0-(T2-T1)

</Span>

 

 

 

 

Upload the actual results of my work,

 

It took about 2: 12 minutes to start the Android simulator. I tested it with the timing software.

 

 

Add a Notification to enable the 360 boot prompt function.

From Viagra ~ YZ

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.