Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Signed APK showing incomplete

I have signed the application using Eclipse's Export Wizard. When I published this, users started complaining that the application is behaving incorrectly. (Basically, the APK did not have necessary images & audio and hence showing incorrect behaviour).

Some information on Application and Signing which I have tried.

  1. I have a lite version and paid version. Both are signed with same keypair. The lite version is working perfectly and full version is giving error.
  2. I have tried to export the signed packages again and tried to install directly in device (instead of uploading to market). Same behaviour (i.e Lite apps works correctly and full version not proper)
  3. Both Full Version and Lite Version uses shared Library (Code base is identical. Differences as follows.
  4. Full Version has 5 times the resources of lite version. The lite version apk is ~2.6MB and full version is ~10.4MB. In Full Version I have 170 images (mostly png's of 5-10 KB) and ~55mp3 files. In Lite Version I have 45 images and 15 mp3s
  5. Full Version has LVL (License Verification) implemented and Lite Version doesnot. Once LVL is passed, the code simply calls the Library Class
  6. If I use Eclipse to build and deploy full version to phone (or emulator), it works correctly. (I guess this build and deploy will use debug key for signing)
  7. I have error handling within the code to show code to show a dummypic (a question mark) if resource is missing. All my images are replaced with that question mark. Just to add.. This dummypic is in the Library and all other resources(images) are in Full Version.
  8. I have checked the resources by renaming the signed apk file to .zip (thanks to NickT for suggesting this approach). All resource files (audio and images) are present in the zip file.

Any help is appreciated. The application is already in market and hence would like to minimise adverse impact.

Removed LVL. Still same error

Tried commenting the LVL code and directly calling the intent. Still same error. By commenting the LVL, the code base for Lite and Full Version is identical. Only the resouce count is different. The full version has all the resources of Lite Version + ~5times the resource.

Update This is how I temporarily fixed it. I removed the library project and moved all classes and resources to the Implementation Project (Full Version). Now it is working.

As said, this is a temp fix only. I still need to know how I can fix this with library. Else I will have to create a lot of duplication of code.

like image 422
GSree Avatar asked Mar 28 '11 11:03

GSree


People also ask

How do I fix failed to install an APK?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

How do I publish an APK signed to Google Play?

In the menu bar, go to Build and select the option Generate Signed Bundle or APK. You will see a new popup screen where you will have two options to select, Android App Bundle and APK. The Android App Bundle is also used to upload the application to the Google Play Store we will talk about it later on.

Can I install APK without signing?

Every application that is run on the Android platform must be signed by the developer. Applications that attempt to install without being signed will be rejected by either Google Play or the package installer on the Android device.


1 Answers

My bet would be that it has to do with permissions. The app that is being installed first, will have read-write permissions to that folder, the other will not.

Try using a ContentProvider to make your images accesible for both apps!

like image 179
Entreco Avatar answered Oct 04 '22 00:10

Entreco