Reputation: 10822
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.
Upvotes: 6
Views: 6039
Reputation: 21835
If you only need to reload (refresh) an application on your Genymotion mobile device emulator and see your last changes in the code, you are going to do the following:
Upvotes: 0
Reputation: 11
-Turn off the emulator
-In Genymotion Window click the settings icon infront of the device name
-under "Android system options", check the "Show Android navigation bar"
-click ok and start the emulator
You will get the navigation bar from where you can kill the app
Upvotes: 1
Reputation: 1895
Press F1 in Genymotion and click on "Reload JS" incase of react-native app development.
Press F2 for Android Studio emulator.
Upvotes: 6
Reputation: 5506
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.
Upvotes: 1
Reputation: 7116
You actually don't really need to do nothing. When you click on the IDE's button to build and deploy your app. Android Studio will close it, install it and then run it again including your changes.
What's happening on your side?
Btw, I really advise you to update Android Studio, since the 1.0 version, the soft is very stable and behaving really as expected.
Upvotes: -1
Reputation: 1981
I have met a similar problem in Android 2.3.7 under Genymotion. I just closed the application before starting
Upvotes: 0