2013-05-16 41 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