ProfileManager persisting through OnPause and OnResume

P Patrick Cromie 2 years 11 months ago
2 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

V Vedsatx Saddvv

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?