In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
In this article, the editor introduces in detail "how to determine whether the background service is enabled in Android". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to judge whether the background service is enabled in Android" can help you solve your doubts.
Detailed explanation of two methods of Android to judge whether the background service is enabled or not
Recently, when the project is uploaded to the background, a service service has been opened.
But at the beginning of this method, some models do not support: Coolpad does not support. And then changed to the second method of judgment.
/ / public boolean isServiceWork (Context mContext, String serviceName) {/ / boolean isWork = false;// ActivityManager myAM = (ActivityManager) mContext// .getSystemService (Context.ACTIVITY_SERVICE); / / List myList = myAM.getRunningServices (40); / / if (myList.size ()
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.