File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

if second application installed on phone then first will not found

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I had tried to install any application for the first time , it gives me following error as.


D:\Pramod Backup\android\android-sdk-windows\tools>adb install pramod.apk
77 KB/s (8628 bytes in 0.109s)
pkg: /data/local/tmp/pramod.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]


But there is no pramod.apk file is present in phone , but if I install the application using -l -r as

D:\Pramod Backup\android\android-sdk-windows\tools>adb install -l -r pramod.apk
38 KB/s (8628 bytes in 0.218s)
pkg: /data/local/tmp/pramod.apk
Success

It will installed application succesfully. Why is it so?

and when I tried another application to install as


D:\Pramod Backup\android\android-sdk-windows\tools>adb install -l -r Final.apk
38 KB/s (8628 bytes in 0.218s)
pkg: /data/local/tmp/Final.apk
Success

then previous application (i.e here pramod.apk) not shown in phone.



 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: Do you understand the meaning of using -l -r switches with adb install? Have you tried to find out how the install-system finds out if two applications are same or why do you get a INSTALL_FAILED_ALREADY_EXISTS message?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic