开发者

In android how to programmatically list the apps that use Data connection?

can anyone please tell me in android, is it possible to acce开发者_JAVA技巧ss the list of application names that are using Data connection in background/foreground? If possible how?

note: I came to know it is possible to access the Total data consumption in bytes by reading TX/RX files. But i couldn't find which applications are using the data connection.


It's possible with a little work. You'll need to use the PackageManager to get the permissions each Application requires. Then you can simply filter the applications based on those permissions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜