Search code examples
androidbluestacks

How to know whether my App is running on Bluestacks?


I'm working on a special version of my App which should run in Bluestacks. It's a windows/mac application which allows to run Android apps on the computer.

I would like to implement special behaviour when the app runs in Bluestacks. Nothing complicated, maybe showing a dialog or disabling some buttons.

But for that purpose I need to know whether the app is running on a Bluestacks device. I checked the device model (Build.MODEL) and manufacturer (Build.MANUFACTURER), but I get that the device is a Samsung GT i900.

Does someone know an unambiguous way to know whether an app is running on Bluestacks?

I know it´s rather a quite localized question, but it would be fine if I get some ideas about where to look at, or what to try.


Solution

  • Finally I decided to build a new app for Bluestacks using an Android library. This allows me to add special behaviour for the bluestacks app.

    I tried to get all the info using the Build class, but it returns the same as a Samsung Galaxy GT i9000 device, so it's impossible to know that the device is running in bluestacks.