Answer the question
In order to leave comments, you need to log in
How to detect IPhone, Android emulator?
Actually, the question arose of how to determine that the application is running in the emulator, a related issue is detecting work through VPN and geolocation substitution.
Help with links and works on similar topics.
From the Xamarin side, everything is more or less standard, in the case of Android, it is apparently necessary to look towards the NDK and its module for detection.
Answer the question
In order to leave comments, you need to log in
1. As an option, you can try to request the version of the device model using the Build class (from the android.os package), which returns various string resources (and not just string ones). We need a MODEL string .
on android emulators in this line most often lies something like this: Android SDK Build for x86 , etc.
import android.os.Build;
...
String s = Build.MODEL;
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question