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
Post a Comment