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
Related Q & A:
- What do I do, when I get bitten by a mosquito?Best solution by Yahoo! Answers
- When will I know when I got accepted into college?Best solution by Yahoo! Answers
- How do I know when I need a new LCD monitor?Best solution by answers.yahoo.com
- What basic words should I know when I travel to Paris?Best solution by Yahoo! Answers
- What should I know when moving to Sweden?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.