Can Android applications see OS wide context in terms of network? For example,
- what applications are using the network
- what IP addresses is the OS connected to
- etc.
I’m asking because I know each application runs in it’s own Dalvik virtual machine.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.netclasses to see whether you get anything back. For exampleNetworkInterface.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.