File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes deploying a .apk file (App), Without the App store, could not open/mnt/sdcard/ActionBarExample.apk Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "deploying a .apk file (App), Without the App store, could not open/mnt/sdcard/ActionBarExample.apk" Watch "deploying a .apk file (App), Without the App store, could not open/mnt/sdcard/ActionBarExample.apk" New topic
Author

deploying a .apk file (App), Without the App store, could not open/mnt/sdcard/ActionBarExample.apk

jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 124
Hi,

I built, signed, and exported an app..... test.apk

I zipped it, and uploaded test.zip to godaddy

I downloaded test.zip on my phone and tablet, /scard/test.apk and /mnt/sdcard/test.apk , respectively.

Attempting to install on both devices leads to the error "Application not installed" and "could not open /mnt/sdcard/test.apk as APK file

What is the proper method, or alternative to what i tried to do.







Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
What's the point of zipping the apk? That is a compressed file format already.

Can you install the downloaded apk files via the SDK, meaning - are the files not corrupted?

You could also try installing them through a file manager like OI File Manager.
jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 124
I used File Manager and ES File Explore.

I zipped it cause my google chrom and godadday FPT manager weren't uploading the .apk successfully ......However, uploading the .apk worked just fine in firefox.

I've also emailed the .apk file to my phone and tablet but get error "There is a problem parsing the package".

I assume i probably did something wrong when exporting the .apk in eclipse?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
Impossible to say. Can you install the APK successfully using the SDK after exporting it from Eclipse?
Mohan Prasath
Ranch Hand

Joined: Jul 25, 2011
Posts: 38

"There is a problem parsing the package" error usually arises due to anyone or all of the following reasons.

1. The exported apk is programmed in an advanced version of sdk rather than in the version in the android mobile. Solution :- try setting the minSdkVersion tag in your Android Manifest to support the version of your android mobile
2. Check the name of your exported apk. sometimes it has to be same as the project name. (Don't change the name of your apk after application signing process)
3. Check your code in emulator once. (I believe you did that already. )

I hope this post will help you.


With regards,
Mohan Prasath
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: deploying a .apk file (App), Without the App store, could not open/mnt/sdcard/ActionBarExample.apk
 
Similar Threads
Uploading a ZIP file question
write files
Interactive Stories on Android
How to play 3gp videos stored in sdcard using flash player?
Unlocking Android: Regarding Dynamic Class Loading