How to create movie on Android from images?

What should I know when am about to create an Android app that will use lots of images but won't communicate over a network?

  • As I said, the app gets installed together with these images and won't be accessing any resource over a network. What best practices can I follow to keep the app smaller?

  • Answer:

    I would question why your app would not be able to communicate over the network, but there are other ways to include images.  The simplest way would be to include them in the project as resources.  This would, as your question also implies, dramatically increase the size of your app.  You can compress the image files when saving them and limit their size a bit, but keep in mind that the images are full bitmaps when uncompressed when your app loads them for display (load too many of these in memory at one time, and your app will crash...a subject for another conversation). Another approach I've seen is that you can separate large resources into another app and require the user to install the second one as well.  I remember having a language translator app a long time ago that would require a separate app for the various language dictionaries.  Here's how that would work. Your app runs and notices that the other app is not installed or that your other app has not been run (several ways to handle this).  You prompt your user with a link to the Google Play Store to download the support files from your other app.  The user runs your second app, and the second app prompts the user to click a button or take some other action to copy the files to a location where App1 can access them (internal or external storage - and use Environment.getExternalStorageDirectory() instead of hardcoding to the SDCard path).  App2 can optionally prompt the user to uninstall itself automatically (if you fire an Intent with the ACTION_DELETE action and pass it the package URI of App2 - even from within App2, the system will prompt the user to uninstall the package)..

Rich Stern at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.