I am working on an application which shows so many data to user, but problem is that it takes too much time to load data even we are using paging too. I want to know how facebook shows the data to user. are they storing the data in database first and then display it to user? if yes then how they maintain the user activity on that.
Related
I'm designing a fitness app where a trainer would upload workouts to a database and a client could access those workouts via an app. This is easy enough to setup, however, I'm struggling to find a good way to upload workouts to a database in a way that someone who is non technical could easily do. I've been primarily playing around with FirebaseDB, but I'm open to suggestions. I'm trying to avoid having to create my own app for the trainer to input data and upload to the database as it will take extra time. Is this the best approach?
If you are thinking to expand your app in near future i suggest you to avoid FirebaseDB. Go with MS-SQL. Create User Table and add a Field may be called as 'Member_Types' (Admin|User). If the logged in user is Admin then Show him Different Page from where He can Upload Data by just inserting in Textboxes/Dropdowns/etc,etc and Clicking One Button Click. Whereas if the user logged in as a USER type show him the page which shows the data uploaded by Admin.
Using FirebaseDB is OK but If you want to deal with really complex data which this app can (In case to want to expand this app and want to add more and more features). I even Suggest if u are going with MS-SQL , Create your Own WebAPI to handle the requests.
All the Very Best for your App.
I am developing a news application. I dont want users to register in the application. When users download the application, data should be populated in the app from the server and any data added should be updated in the application.
How to update the data when any news has been added i.e how to identify users and send the data?
Your server don't need to track the new user. It is your app which will tell the server about the user. Write your data fetching code on the very first screen of your application (say Splash screen) and do check if there is any update on the server end
You can use the concept of fetching data on your Splash Screen, but if you dont want your user to get stuck you can use Intent Services to fetch your data in background, Once your data is received from server you can show it to the user.
How to use IntentService
Is is possible to add custom objects to AppIndex Thing and retrieve it once the user opens the app from google search ? I am currently fetching data from internet each time an user opens the app through google search.
I need functionality like facebook app in my app.
the functionality is that when i login in facebook app then feed data load first time and if i click another tab ,like notification tab then load notification list in facebook.
but if i click again feed tab then all feed data showing instantly ,it's maintain cache or database and it's perform like and share functionality.
in my app when i click home tab then loader visible to fetch data from server and click to another tab then fetch data from server.
the question is that i dont want to load every time loader in my app,it's should be first time in every tab, if data addded in my appp from server then i call webservice.
Thanks in Advance.
Forgive me if any type of grammatical mistake.
Well I am not going to help you with code. that's your part. What I can do is give you some idea how to do that.
--> When the application first launches.
What you can do is fetch the data the first time you load app and store it in your SQLlite DB. the relations should match the server side but you can store data how ever suites you best.
--> when you switch tabs.
Save the state of the previous tab this question might help.
--> when you switch to a tab
trigger a run in background or Async Task or a thread to retrieve data from serve and store it in the same local DB. and bind the views to that data for example if you are updating a list calling notifyDataSetChanged() will actually update that list on the screen.
Thats it. Hope that helps.
in my Android app I have a ContactList downloaded from web. I need it in many parts of the app, so i download it at login. This call is paginated, so i need to call the method many times (depends of the contacts number), and I've seen that REST call in 3g connection are sequential.
Users from their app can edit their name, surname, email. So I have to reload the contact list not only to add new ones, but to update users information too.
The solution for this waste of time at login is to save my user array list into a file, at login open the file and use the old list and then, in background, dinamically download new fresh data and change every single user data with the new fresh one. Is this possible? how to do that?
you can use GCM for that which pushes updates to phone as soon as they happen on server. you can load the contacts at login, but as soon as something changes or created on server you can inform the user about it and can only load that Contact.
check link how to implement it
http://developer.android.com/google/gcm/index.html