简体   繁体   中英

How do i know how long the application is running in background in android?

I want to calculate how long other application (ex:- Music) is running in background in my application. I have seen this Link did not get any useful info for my expectation.

I think there will be some API in android to calculate this, because "Spare parts" application is doing same job as i am expecting.

See the below link you may find some use full information Here

or you may refer the link for spareParts spareParts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM