How to store images and some text in android app [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I'm about to make an android app something like "fun places to visit in my city" where u can see photos and description of the place.
I thought something like store all images in drawable folder, and create list of data class.
But the app will be very heavy?
I dont know which is the best way to store data and images locally. Any suggestion?

If you wish to keep app light maybe the better approach would be to store them somewhere on cloud and load them using library like picasso.
Storing them directly in the app truly can increase apk size a lot because you also should store different sizes of every images if you are following guidelines.

Related

download needed files to aplication android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm a beginner in android atudio, I recently make my first app, I put in many raw resources file(txt,mp3) that is why it's size is big (~200Mo).
I want to allow user to download what he need in order to benefit my service like listen to mp3 read text.
You should carefully consider why you need this much data in your app, remove all unnecessary parts and put everything you really need into the .apk as resource.
If I find some app is downloading 200MB to my phone, I'll uninstall that immediately.

How to compare 2 images in Android programatically? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am making an app in which i need to show all duplicate photos and delete them .I want to know which is the best way to identify duplicate images from device.Please help me.
As in the comments mentioned, there is different ways to compare images, such as if both images have same file, id, size, resolution or more advanced through openCV, which has numerous image manipulation functions and you can easily integrate it with android.
Otherwise, you could also look at Bitmap class has method "sameAs" you can use that method to compare two bitmaps. But you need to convert the image to bitmap.

Best practice on loading images from servers [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Making an app that loads images from server. The image is just like an achievement badge that gets unlocked (i.e) loaded from the server. Am not sure on how to handle this scenario if there is no internet connection, as the image won't be available. Is that a good practice to store all the badge images in the assets. Will that make the app size big. Or is there any good way for compressing them.
Ship them with your app. Badges only need small images, that can be compressed fairly efficient.
This reduces the overall complexcity and reliabilty of your application. Plus you save your servers and the enduser some overhead/traffic.

Build an online application like facebook android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to build an online application for movie management. I want the application to be an online one, could any have inputs as to how to build it, as in currently i am downloading each of the dynamic content and loading the layouts which is highly inefficient. Could anyone suggest a better procedure to make an online application and guide for the same.
https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae
That link will show you how to make a Google app engine project. The easiest way to use an online database with android. You can post, and get with very little code. What you do with the data you get back is up to you... Throw it into list views, text views, fragments, etc. But yes this is the best place to start as you need an online database or a social network would not work at all. I suggest you do the above totural and then come back with some more questions. Hope this helps!

How to create a searchable list [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to have a database of items stored on the user's phone. I currently have everything set up using WebView pointed at my domain, but obviously this isn't ideal if the user is in a low-signal location.
If possible I would also like to be able to search the list for multiple words.
Any pointers to tutorials etc would be ideal.
In Android you'll want to use SQLite databases, here are some places from where I learned my way with databases in Android:
Start here:
http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android
Or here if you want to use an existing database:
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
If you decide on XML, though, you might want to read this instead:
http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html
http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser
Here you have a tutorial involving both methods, downloading data in XML format, parsing it and storing the information on a database, probably the guide you want to read if you're starting with Android, since it covers pretty much what you are trying to achieve, probably :P
http://mobile.tutsplus.com/tutorials/android/android-fundamentals-downloading-data-with-services/

Categories

Resources