Can you add some more details about your environment and what you're trying to achieve?
- What device are you trying this on?
- The full code snippet
- What is your ultimate goal? Are you looking to enable DCP only on a specific screen in your application? Something else?
If you're trying to enable DCP on just your application or even just one specific activity in your app, you can create a profile specifically and link it to be active only when that activity is open. That way you don't need to worry about enabling / disabling it manually. If it's something else, please elaborate.
Technical Architect, Kutir Mobility
Posted on behalf of Zebra Technologies
Here is a example of the code :Moving from the EMDK Data Capture Profile to Datawedge
I have the same code. I added the option to activate DCP
The profil is created from the code, not from the DatawedgeAPP.
It's for all the application.