• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Installed hardware

malay

Newbie
Hi,

Is there any file system in android where it stores hardware information and network adapters information?and if yes, can we retrieve it through direct apis?
 
Without details it hard to advise, but... in general either one may help

1: use Context#getSystemService() with appropriate string Context | Android Developers)

2: Use PackageManager#hasSystemFeature (or #getSystemFeature) PackageManager | Android Developers

Though my suggestion would be to use the appropriate manifest permission relevant hardware you want to use and in use getSystemService (watch out for nulls) in case feature is not supported.

Out of curiousness, what are you trying to achieve?
 
Back
Top Bottom