Hi,
I am not able to download apk from our site on Samsung Nexus(not tried on
other handset).Where as through almost same code i am able to download(jar
and jad) on compatible handset.
Handset downloads the apk and after 100% complete it says *download
unsuccessful*.Previously same code is used to download apk and able to
installed.
Here is the code:
------------------------------------------------------------
if(categoryTypeFinal.trim().equals("apk"))
{
response.setContentType("application/vnd.android.package-archive");
response.setHeader("Content-Disposition",
"attachment; filename=\"" +
gameName
+ downLoadFileType +
"\"");
FileInputStream in = new
FileInputStream(file);//file is the name of apk file
byte[] byteArray = new
byte[in.available()];
in.read(byteArray);
response.setContentLength(byteArray.length);
op.write(byteArray);
in.close();
--------------------------------------------------------------------------
Another question is what is criteria of successful download?
Please let me know the reason for it.
Thanks and Regards
Rakesh
--
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