How do you install an APK file in the Android emulator?

You can simply drag and drop the .apk file of your application to the emulator and it will automatically start installing. Another option: Windows: Execute the emulator (SDK Manager.exe->Tools->Manage AVDs…->New then Start) Start the console (Windows XP), Run -> type cmd, and move to the platform-tools folder of SDK directory. Paste the APK file in … Read more

How can you get the build/version number of your Android application?

If you’re using the Gradle plugin/Android Studio, as of version 0.7.0, version code and version name are available statically in BuildConfig. Make sure you import your app’s package, and not another BuildConfig: import com.yourpackage.BuildConfig; … int versionCode = BuildConfig.VERSION_CODE; String versionName = BuildConfig.VERSION_NAME; No Context object needed! Also make sure to specify them in your … Read more

How to install Google Play Services in a Genymotion VM (with no drag and drop support)?

As of Genymotion 2.10.0 and onwards, GApps can be installed from the emulator toolbar. Please refer to answer by @MichaelStoddart. Next follows former answer kept here for historic reason: Genymotion doesn’t provide Google Apps. To install Google Apps: Upgrade Genymotion and VirtualBox to the latest version. Download two zip files: – ARM Translation Installer v1.1 … Read more