Back Button Change of Application Focus

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dcpbarrington
Posts: 87
Joined: Tue Nov 13, 2007 6:40 pm

Back Button Change of Application Focus

Post by dcpbarrington » Mon Oct 13, 2014 10:18 pm

Android Forum,

I'm using the backKey handler to step back through the menus that the user has selected in the application, but when they get to the end of the list, I want them to exit the mobile app without doing a QUIT command, just like you do when you select the HOME key on Android. This will allow the user to quickly start back where they left off using the application without waiting for the app to start again.

Is there a way to change the focus without killing the mobile app?

Thanks
Dan

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Back Button Change of Application Focus

Post by Simon » Tue Oct 14, 2014 12:23 am

Hi Dan,
Not that I have ever seen.
I think you'll have to use a preference file.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

dcpbarrington
Posts: 87
Joined: Tue Nov 13, 2007 6:40 pm

Re: Back Button Change of Application Focus

Post by dcpbarrington » Tue Oct 14, 2014 7:34 pm

Thanks Simon,

I though there might be a way to change application focus because when you select the HOME key in Android, the app stays running, and focus goes to the home screen. This just might be an Android configuration that LC has no control over.

I may have to just live with the fact that the App needs to QUIT on the Back Arrow to give focus back to the previous App.

Dan

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Back Button Change of Application Focus

Post by Simon » Tue Oct 14, 2014 7:47 pm

Hi Dan,
...without waiting for the app to start again.
Ah I see, it's just the start up, a preference file wont help with that.

But you know... it wouldn't be unusual to force the use of the home button (don't quit with back button).
And don't forget even using the home button your app can still be shut down (quit) without warning when Android needs the memory space.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

dcpbarrington
Posts: 87
Joined: Tue Nov 13, 2007 6:40 pm

Re: Back Button Change of Application Focus

Post by dcpbarrington » Wed Oct 15, 2014 6:18 pm

Thanks Simon. Your feedback is very useful.

Dan

Post Reply