2013-05-16 36 views
2

在Eclipse中,当我尝试部署我的应用程序,但没有修改过的源代码做我得到AndroidStudio - 部署应用程序的每个

[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 

有没有办法让AndroidStudio相同的行为时(我今天开始使用它 - 抱歉newbee问题)。它每次部署应用程序(或者至少在我看来)。在此先感谢

+0

启动的活性来自设备的兴趣? –

+0

实际上,它可能是一个解决方案,但我真的很喜欢这个事件上的日食行为,如果我能得到它,我就会徘徊...... – Blackbelt

+1

不要忘记AndroidStudio是当时的早期版本(版本0.1)。你可能不会期望alpha发布太多... –

回答

0

我想这是因为安装的IntelliJ您的APK时做这个命令:

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

的-r就是告诉的亚行做了重新安装。

所以,我要说的是,它看起来像你是艰难的运气了:-)

永远记得你可以检查运行控制台,看看有什么的IntelliJ在运行时做:

等待设备。目标设备:emulator-5554(ASideJellyBean) 上传文件本地路径: /Users/Blundell/AndroidStudioProjects/TestAndroidStudio/TestAndroidStudio/build/apk/TestAndroidStudio-debug-unaligned.apk 远程路径:/ data/local/tmp/com .blundell.testandroidstudio 正在安装com.blundell.testandroidstudio DEVICE SHELL命令:pm install -r“/data/local/tmp/com.blundell.testandroidstudio”pkg: /data/local/tmp/com.blundell.testandroidstudio成功

启动应用程序: com.blundell.testandroidstudio/com.blundell.testandroidstudio.MainActivity。 DEVICE SHELL COMMAND:正在启动-n “com.blundell.testandroidstudio/com.blundell.testandroidstudio.MainActivity” 开始:意向{CMP = com.blundell.testandroidstudio/.MainActivity}

+0

其实我也注意到了。有没有机会改变安装命令? – Blackbelt

+0

不是我所知道的 – Blundell

+0

那可悲。也许在一段时间。 – Blackbelt