开发者

Can Android applications examine OS wide context, for example network related?

Can Android applications see OS wide context in terms of network? For example,

I'm asking because I know each application runs in it's own Dalvik virtual machine.


No, generally you cannot see the state of any other applications, nor can you generally get low-level information such as the IP address from the Android framework classes.

However, you could try using the usual java.net classes to see whether you get anything back. For example NetworkInterface.getNetworkInterfaces() should hopefully still give you the expected information as it would on a regular VM.

Alternatively, outwith the Android API you could access networking information as you would on any other Linux system.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜