mardi 1 novembre 2016

App UI seems to be laggy after a week of continuously being on idle

I have an app that features a camera preview that decodes barcodes continuously. The app is supposedly running 24/7, meaning it should always be on-screen and the device is never put into locked mode. However, after a week of being in standby, there is a very noticeable "lag" for the whole app. Camera preview is running at about 1-5 frames per second and buttons when being tapped have a noticeable delay before running its function. Any ideas on what is causing this and what could be the probable fixes?

Libraries Used:

  • ZXing Barcode Decoder
  • JourneyApps barcode scanner
  • Retrofit 2

Other notes:

  • Tried to reduce GPU Overdraw (didn't work)
  • Monitored GPU and CPU usage via Logcat, no noticeable changes since app is freshly ran
  • Reduced layout views' hierarchy

It is also important to take note that the app also features a date/time text which is composed of multiple textviews and is being updated every onTick() of my custom timer.

Aucun commentaire:

Enregistrer un commentaire