Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Like Tree3Likes
  • 1 Post By Tramontana
  • 1 Post By jonbonazza
  • 1 Post By Tramontana

test: Reply
 
LinkBack Thread Tools
Old August 25th, 2012, 05:59 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jul 2012
Posts: 35
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Confused give me ur opinion

hi everybody,
hope everything fine,,,
i will be grateful for help me form your experince in android application
actully,i want to create a project contain about 100 image and video and i dont know what is the suitable solution for who to store thses data , like put all images in drawable or what you think..

thank you in advance

Advertisements
wounded is offline  
Reply With Quote
sponsored links
Old August 25th, 2012, 10:27 AM   #2 (permalink)
Junior Member
 
Join Date: May 2012
Location: Ventimiglia, Italy
Posts: 32
 
Device(s): Chinese 5" dual-SIM, Motorola Atrix 4G
Carrier: Not Provided

Thanks: 0
Thanked 5 Times in 5 Posts
Default

There's a limit of 50MB on the size of an APK so it's probably not the best place to store large amounts of data, and nobody wants to install an app that large anyway. It would be friendlier to let new users download all the files onto their SD card from your website, where you can keep as much stuff as you like. Don't forget you need four different resolutions (for the various screen sizes) unless you're able to scale images on the fly.
wounded likes this.
Tramontana is offline  
Reply With Quote
Old August 25th, 2012, 02:22 PM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jul 2012
Posts: 35
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Tramontana View Post
There's a limit of 50MB on the size of an APK so it's probably not the best place to store large amounts of data, and nobody wants to install an app that large anyway. It would be friendlier to let new users download all the files onto their SD card from your website, where you can keep as much stuff as you like. Don't forget you need four different resolutions (for the various screen sizes) unless you're able to scale images on the fly.
really i'm confused,,some people say using SD card other say urls parsing concepts
wounded is offline  
Reply With Quote
Old August 25th, 2012, 03:05 PM   #4 (permalink)
Junior Member
 
Join Date: May 2012
Location: Ventimiglia, Italy
Posts: 32
 
Device(s): Chinese 5" dual-SIM, Motorola Atrix 4G
Carrier: Not Provided

Thanks: 0
Thanked 5 Times in 5 Posts
Default

Other than in the app itself there are only two places to store images and video. One is on the phone; the other is off it.

Keeping stuff on the phone means putting it onto the removable SD card, or with modern phones on the internal SD, which is usually 16GB or better. Makes no difference; the code is the same. If you know the file name you can display the picture, though it will look different on every phone if you don't do some smart picture scaling.

Off phone is the web, where you need to understand how to make HTTP requests and deal with what comes back. This is more complex and may require you to do some programming on your website too. Same thing applies re scaling as above. Big pictures take a while to download and not everyone has an unlimited data package. So they won't thank you for making them eat up their allowance on pictures they don't want to see, especially if they have to keep downloading the same pictures. I set up a cache to save incoming images onto my SD and index each one by the URL that fetched it. So next time it's wanted I don't need to download it.

It's difficult to be more specific without knowing what you're trying to achieve. Can you post some details? You can message me privately and in confidence if you don't want to broadcast it. If you could also indicate your level of Android/Java expertise that would help. If you're a Java beginner a rapid prototyping tool may be better to start with (I'm the author of one).
Tramontana is offline  
Reply With Quote
The Following User Says Thank You to Tramontana For This Useful Post:
wounded (August 26th, 2012)
Old August 26th, 2012, 10:12 AM   #5 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

I should also mention that even using the SD Card approach requires you to store the files initially somewhere else. A common method is to store the files on a web server, and download them on initial run.
Tramontana likes this.
jonbonazza is offline  
Reply With Quote
Old August 26th, 2012, 10:35 AM   #6 (permalink)
Junior Member
 
Join Date: May 2012
Location: Ventimiglia, Italy
Posts: 32
 
Device(s): Chinese 5" dual-SIM, Motorola Atrix 4G
Carrier: Not Provided

Thanks: 0
Thanked 5 Times in 5 Posts
Default

You're right, of course, and it makes not a lot of difference if it's done up front or on demand since you have to deal with the HTTP stuff anyway. (I was posting late in the evening after a long day, when the logical faculties are past their best )
wounded likes this.
Tramontana is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:48 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.