ProfileManager persisting through OnPause and OnResume

P Patrick Cromie 3 years 7 months ago
3 1 0

I am having a bit of a problem with ProfileManager and the way it persists through the activity lifecycle. I have a simple application on the TC8000 that uses a webview object that hits a website that is hosted by our company. The profile is simply allowing the scanner object to act as a datawedge to the webview. It also adds a tab after a scan takes place to move the cursor to the next textview inside the webview. The problem that I am facing is that when the program gets sent to the background, it loses the profile and no longer adds the tab after the scan. I have tried to reapply the profile in the onResume of the application but it doesn't seem to take effect. Is there some trick that I am not understanding?

Please Register or Login to post a reply

1 Replies

E Efkan YILMAZ

Hi Patrick,

Which profile(s) are you using exactly?  If you are using DataWedge you should not have to worry about onResume() and onPause() since DataWedge handles all that logic for you - applying the appropriate settings when your application comes to the foreground.

CONTACT
Can’t find what you’re looking for?