Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reload app in Genymotion and Android Studio without rebooting the emulator?

I am using Android Studio 0.9.9 and Genymotion 2.3.1.

When I press run app in Android Studio, the Android Studio will allow me to choose to deploy my app in Genymotion which I usually do.

At this point, the app is running.

Let say at this point, I want to make a change in the code.

I saved the changes in Android Studio.

How do I reload my changes and redeploy the app without rebooting the Genymotion?

EDIT Ultimately, just upgrade to latest stable downloads of Android Studio was the solution.

like image 205
Kim Stacks Avatar asked Jan 21 '15 04:01

Kim Stacks


People also ask

How do I reinstall an app on Android emulator?

For Android emulator press "CTRL + M" with keyboard on emulator for reloading the react native project.

How do I restart Genymotion emulator?

go to /Applications/Android Studio. app/sdk/platform-tools. make sure adb is in directory (use ls command) ./adb reboot.

How do you restart an emulator app?

In Android Studio go to: Tools > Android > AVD Manager. Select your emulator device. Click "Cold boot now" to restart, or "Wipe data" to factory reset.


2 Answers

Press F1 in Genymotion and click on "Reload JS" incase of react-native app development.

Press F2 for Android Studio emulator.

like image 186
dnaik Avatar answered Oct 16 '22 22:10

dnaik


First as eyal-lezmy mentioned you should download Android Studio 1.0.2 Stable edition, (you always want the latest edition, especialy if the IDE is that fresh as Android Studio is.

If I understood correctly you want to erase and re install your application from your emulator. To do so,In your emulator, go to Menu-->Settings-->Apps, then choose your application and unistall it. Then, go to Android Studio and run your applciation.

Edit considering your comment Reload being the fact that if my app has a button in activity A, and I press it, and it opens activity B, and I go back to Android Studio to type a comment, I want to reload the app and it auto starts right back at activity A.

If you make any change to your code, then to see in in action you must re-run the application. However, if you want your default starting activity to be Activity B, then you should go to your manifest file, remove this from Activity A code:

<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />

and place it inside the activity B code, where you want your application to start from.

like image 1
Menelaos Kotsollaris Avatar answered Oct 16 '22 22:10

Menelaos Kotsollaris