0

Im using an sqlite database with provider and databasehelper. In a specific activity and some fragments (ordere by a FragmentPagerAdapter), I am trying to retrieve the name of a specific id to put it in the toolbar. I do this by creating a global variable with input from onLoadFinished in the activity and also in the fragments. This process is however very slow. The name is not immediately displayed. I have to refresh fragments (several times before the name is displayed. How can I make this more quick so that the name is immediately displayed?

Mad Physicist
  • 107,652
  • 25
  • 181
  • 264
Chris
  • 1

0 Answers0