开发者

ActivityManager visibility in eclipse

开发者 https://www.devze.com 2023-03-25 12:23 出处:网络
I am trying to use the ActivityManager class to get memory usage statistics of bunch of processes using getMemoryInfo(pids[]). But looks like eclipse is not allowing me instantiate an object for Activ

I am trying to use the ActivityManager class to get memory usage statistics of bunch of processes using getMemoryInfo(pids[]). But looks like eclipse is not allowing me instantiate an object for ActivityManager. I'm getting error - ActivityM开发者_Go百科anager() is not visible

Any help is highly appreciated. Thanks, ghatotkach


You do not create an instance of ActivityManager. You obtain an instance via a call to getSystemService(ACTIVITY_SERVICE) from your Activity or Service.

0

精彩评论

暂无评论...
验证码 换一张
取 消