Hi,

I am working on an application that downloads an apk file and installs
it.

I hvae the download part working fine but when I try to install said
file I get a Parse error.

My code:

File apkFile = new File("file:///data/data/com.test.package/files/
test.apk");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile((apkFile)),"application/
vnd.android.package-archive");
startActivity(intent);

>From the log:
W/PackageParser(  249): Skipping dir: /file:/data/data/
com.test.package/files/test.apk
W/PackageInstaller(  249): Parse error when parsing manifest.
Discontinuing ins
allation.


I don't think there is a problem with manifest because if I use the
browser to access the "test.apk" file I am downloading I am able to
download it and install it successfully. The size of the file on the
android is the same as the file on my server so I don't think the file
is being corrupted during dwnload or anything.

Anyone have any ideas?

Thanks,
Craig

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to