Skip to content

Tag: android

Is there a way to refresh webView every x seconds?

Now I have this function for reload webView: And it is called on onCreate function The function works but it only runs once Answer Easy to solve as long as the Activity is running in foreground: Note that handler is now a field, out of reloadWebView(). Now call it in your onCreate():

Is SharedPreferences necessary for all data?

I am new in Android. I have a database like this. I used SharedPreferences for remember user information. However, there is a point that I do not understand. When the user logins the application, do I need to save all Firebase data in SharedPreference for the application to remember the user? Which type of da…