View Single Post
Old 12-05-2013, 07:51 PM   #6
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
You could make a javascript/html thing to switch between running apps. Don't know if there are better ways, but you could use xdotool from twobob to simply hide/show apps windows:

Download link

Usage samples

For a custom dialog sample, quite similar to the one you are going to make, give a glance to KindleTask app in Kindle Menu package (even if it only allows to terminates/kills process, not to switch between them).

This is what you should do in my opinion, step by step:
- make a list of the executables you want to be shown in your switcher
- check which ones are currently running (with "ls" command, for example)
- build a custom dialog (html page) with a link for each of them
- associate to each link an onclick event, that through nativeBridge maximizes/minimizes the corresponding window, using xdotool
- launch the custom dialog

Ah, as you can see, the app switcher thingy was already between Kindle Menu TODOs... even if I didn't make it yet because I don't find it so necessary, to me at least.

Last edited by Aeris; 12-05-2013 at 08:06 PM.
Aeris is offline   Reply With Quote