2

On Eclipse, when I try to deploy my application but no changes have been made to the source code I get

[2013-05-16 15:12:25 - HomeActivity] Starting activity com.example.android.SplashActivity on device 9009090934434
[2013-05-16 15:12:25 - HomeActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.android/.SplashActivity }
[2013-05-16 15:12:25 - HomeActivity] ActivityManager: Warning: Activity not started, its current task has been brought to the front

Is there a way to get the same behaviour on AndroidStudio (I ve started using it today - sorry the newbee question). It deploys everytime the application (Or at least seems it to me ). Thanks in advance

Blackbelt
  • 156,034
  • 29
  • 297
  • 305

1 Answers1

0

I guess this is because IntelliJ does this command when installing your APK:

 DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.blundell.testandroidstudio"

the -r is what tell's adb to do a reinstall.

So what I'm saying is it looks like you are tough out of luck :-)

Always remember you can check the run console to see what IntelliJ is doing at run time:

Waiting for device. Target device: emulator-5554 (ASideJellyBean) Uploading file local path: /Users/Blundell/AndroidStudioProjects/TestAndroidStudio/TestAndroidStudio/build/apk/TestAndroidStudio-debug-unaligned.apk remote path: /data/local/tmp/com.blundell.testandroidstudio Installing com.blundell.testandroidstudio DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.blundell.testandroidstudio" pkg: /data/local/tmp/com.blundell.testandroidstudio Success

Launching application: com.blundell.testandroidstudio/com.blundell.testandroidstudio.MainActivity. DEVICE SHELL COMMAND: am start -n "com.blundell.testandroidstudio/com.blundell.testandroidstudio.MainActivity" Starting: Intent { cmp=com.blundell.testandroidstudio/.MainActivity }

Blundell
  • 75,855
  • 30
  • 208
  • 233