android - How to know whether my App is running on Bluestacks? -


i'm working on special version of app should run in bluestacks. it's windows/mac application allows run android apps on computer.

i implement special behaviour when app runs in bluestacks. nothing complicated, maybe showing dialog or disabling buttons.

but purpose need know whether app running on bluestacks device. checked device model (build.model) , manufacturer (build.manufacturer), device samsung gt i900.

does know unambiguous way know whether app running on bluestacks?

i know it´s rather quite localized question, fine if ideas at, or try.

try this:

/** * returns true if device android port x86  */ public static boolean isx86port() {     string kernelversion = system.getproperty("os.version");     if(kernelversion != null && kernelversion.contains("x86")) // bluestacks returns "2.6.38-android-x86+"         return true;     return false; } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -