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 7 days ago.
Improve this question
I have a recyclerview that can sometimes have over 7,000 items in it in total. Each item has an image that the app has downloaded and saved to its local directory. When I am quickly scrolling through the list, it's lags massively on the initial load.
I have made it so that once its loaded each image it stores it in a hashmap with an identifier so it can read it from there the next time, which works fine. If it hasn't already downloaded the image it needs to display, it will download it, put it into the view, save it locally for next time, and save it into the hashmap. The problem is the initial load makes the UI lag so much, it's unusable. Is there any way I can load the image that will make the ui not lag?
Related
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 2 years ago.
Improve this question
I am creating an app which contains lots of data (images & text) from server but it take much time loading and some devices it shows black screen I think that it block the main thread that's why. Any guidelines?
I am using String requests for retrieving data from server
for storing I am using String request also with the help of Volley
Images take much time to display I am using Glide for showing images
App Performance is Slow not working smoothly
Thanks in Advance Guide Me..!
Neither Volley nor Retrofit is designed for large file downloads, and you will probably run into out-of-memory issues(seems like you already have). I would use DownloadManager instead of volley.
Here are some useful links:
https://codinginfinite.com/android-download-manager-example/
https://medium.com/#aungkyawmyint_26195/downloading-file-properly-in-android-d8cc28d25aca
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 6 years ago.
Improve this question
I am working with Codename One to develop a mobile application. I wish to know how to perform a long duration action, such as loading data from an online server, during a splash screen animation. I understand that this is what splash screens are for. However, I don't know how to associate a background process with a splash screen.
Just override beforeSplashForm method and call connectionRequest in this mehtod for loading data from server in splash screen and call next form after the connection.
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 7 years ago.
Improve this question
Went I read rss from diffrent sources such as bbc, voa,... How can i plan they 'by source', 'by time',... Should I use database ? I think it make my app slowly.
Not using a database would make your app slower. Without a database every time you restart the app it needs to fetch the rss feeds from the servers. It's sensible to store the data offline and update it with the new items on startup / with a button.
Think about additional operations which need a database: labeling, starring, saving for later, etc.
This provides an additional benefit: you can store the news offline so the user can read them without an active connection.
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 7 years ago.
Improve this question
I'm trying to make an app which will check the face of the user by using the front camera the first time it is launched and then save how that face looks.
After that, every time someone starts the app it will check if his or her face is similar to the one that the app saved on its first launch, and if it's similar, proceed, if not, quit.
I know that there is face recognition unlock for Android, so I hope it's possible.
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
I looked about but were unable to find if anything of such exist.
Is it possible to construct a java program, which can read sudden strings from a chat inside a game?
It would be used to log sudden data to a mysql to comparison.
If any knows something of this sort, any direction is high appreciated.
You can't do that directly. You would need to have access to the game's methods in order to know when a new chat entry appears, and how to get its content.
Appart from that, as Kenyanke explains, some games might save a chatlog on your computer, yet it won't help you anyway, since you have no idea of when these logs get saved, or if they do get saved for that matter.