We're creating some screens to be used on mobiles as people walk around the business. I'm trying to make the back button exit the particular function it is in but all it does is close the ProfoundUI mobile app.
Where are you placing this code? Inside of your Profound UI screen? Is this an application running through our mobile client, or is an application you packaged yourself using Phonegap/Cordova? I want to attempt to recreate the issue you are seeing on our end and figure out a solution from there.
The handling of the Android Back Button is built into the Profound UI Mobile Client. All, you have to do is create a button in the record format with an id of "btnBack". You can assign a response variable to this button, and then actually show it on the screen or just hide it. When the user hits the Android Back Button, it will trigger the response of your button within the application. Hope this helps.