An update for re-installing APK to Emulator/Device
Posted Date Unknown Pete Houston Pete Houston 1 Comment

Actually, there is no need for an uninstallation for re-installing APK each time.
You just need to set parameter for [adb install -r file.apk] then it just runs without complicated steps.

On this source file: http://code.google.com/p/tektips-androidstudio/source/browse/trunk/Source/Working%20Folder/AndroidDotNET/AndroidDotNET/AndroidDotNetManager.cpp

At line: 272
[code]
Info->Arguments="install "+ m_CurrentProjectPath+"\bin\"+strProjectName+"-debug-unaligned.apk";
[/code]

You can update like this:
[code]
Info->Arguments="install -r "+ m_CurrentProjectPath+"\bin\"+strProjectName+"-debug-unaligned.apk";
[/code]

Then it works fine, no need to uninstall again.

Best Regards,
Pete Houston


See All Responses Below...
Author
Message Rating
Posted on: 05/07/2012
Thanks for sending the suggestions. We will incorporate it in the next release..

Tom

Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud