04-07-2013, 06:44 PM | #1 |
*
Posts: 35
Karma: 145852
Join Date: Apr 2013
Device: Kindle Touch
|
WebLaunch - Fullscreen browser for web-applications
# WebLaunch #
WebLaunch is an extension for the Kindle Touch ( and probably the Kindle PaperWhite too ) with JailBreak and the application launcher KUAL. It is designed to open a URL without the browser frame (the black status bar can be removed too) to make it look like a native application. ## Installation ## * Make sure your Kindle Touch is already Jailbreaked * Make sure you have KUAL installed and the "extensions" folder exists * Copy the WebLaunch folder to the "extensions" folder ( don't rename it without changing bin/start.sh first ) * Copy the settings.example.js in the WebLaunch folder to settings.js and change its contents to fit your needs ## Background ## WebLaunch is based on "mesquite" former WAF and utilizes the "Kindle" template library and a few system librarys based on it to bring as much native browser behaviour as possible. ## Notes ## Special thanks go to the folks at mobileread.com for their great work opening up the Kindle. ## Link ## https://github.com/PaulFreund/WebLaunch Last edited by PaulFreund; 04-08-2013 at 06:23 PM. Reason: New description version |
04-08-2013, 07:36 AM | #2 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Few Notes to be appended here. THESE NOTES ARE FOR THE OLD ORIGINAL VERSION: Spoiler:
NOTES FOR LATEST VERSION: Don't forget to rename the settings.example.js file to settings.js and amend the file contents to your needs. Last edited by twobob; 05-17-2013 at 09:10 AM. |
Advert | |
|
04-08-2013, 08:10 AM | #3 |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
very nice!
this is using the built-in browser without any titlebar or footer, right? just trying to understand what I could use this for - javascript, or what else? thank you! |
04-08-2013, 08:32 AM | #4 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Perhaps as a bus timetable readout, a weather display, or a constant new feed. Really limited by the capabilities of the application and ones imagination. RE ABSOLUTE COMPLETION: I'm not going to index this until I wrap Code:
lipc-set-prop com.lab126.appmgrd start app://$APP_ID?$SETTINGS EDIT: Done... Will index after the Author pulls and also adds his mooted configuration tweaks. Last edited by twobob; 04-08-2013 at 09:49 AM. |
|
04-08-2013, 09:29 AM | #5 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
|
Advert | |
|
04-08-2013, 10:02 AM | #6 | ||||||||
*
Posts: 35
Karma: 145852
Join Date: Apr 2013
Device: Kindle Touch
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
I've written a node.js application myhub which collects information from multiple sources like IMAP mail notifications, XMPP/Jabber messages, IRC channels/messages and RSS feeds and exposes them as a single event feed. The feed can then be accessed via RSS (with filtering), a reader interface similar to google reader (which is not ready yet but in the works) and a simple news stream which I currently use on the kindle that updates as soon as a message arrives. Last edited by PaulFreund; 04-08-2013 at 11:11 AM. Reason: removed wrong quote tag |
||||||||
04-08-2013, 10:15 AM | #7 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Status bar? I see no status bar on mine. Hence I added the power button thingy...
I don't mind "tapping out" with the power button as this is now "standard" across quite a few apps. (I added an extra "nice to have" on yours that I just figured out so a single tap in fact presses twice via powerd_test -p) But thanks for all the other tips and changes! Great work btw Ah yeah you have a Touch. The PW crew will need this addition. Last edited by twobob; 04-08-2013 at 12:22 PM. |
04-08-2013, 12:17 PM | #8 | |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Quote:
|
|
04-08-2013, 12:46 PM | #9 | |
*
Posts: 35
Karma: 145852
Join Date: Apr 2013
Device: Kindle Touch
|
Quote:
In you pull request you do this: Code:
SSSTATE=`lipc-get-prop com.lab126.powerd preventScreenSaver` # The previous setting lipc-set-prop com.lab126.powerd preventScreenSaver 0 # prevent screensaver for the application lifetime Code:
( dbus-monitor "interface='com.lab126.powerd',member='goingToScreenSaver'" --system; killall mesquite; lipc-set-prop com.lab126.powerd preventScreenSaver "$SSSTATE"; restart pillow; powerd_test -p; ) & Code:
kindle.messaging.sendMessage('com.lab126.pillow', 'interrogatePillow', {"pillowId": "default_status_bar", "function": "nativeBridge.hideMe();"}); |
|
04-08-2013, 01:42 PM | #10 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Yeah. I do that because BY DEFAULT some machines (Including mine) DISABLE going to screensaver.
Thus the "Press Button to Exit" thing would "do nothing" Quote:
When the application is full screen there is no status bar. And with no Home Button obviously the user is "stuck" inside the application. This works on the touch too by the way, just press the power button to test it. : ) I recognise the Eureka? call to fix the status bar visibility. I restarted pillow as a dirty hack. and added the TODO to make it tidier. so I guess restart pillow could read Code:
lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}' Last edited by twobob; 04-08-2013 at 02:54 PM. |
|
04-08-2013, 01:53 PM | #11 | |
*
Posts: 35
Karma: 145852
Join Date: Apr 2013
Device: Kindle Touch
|
Quote:
Apart from that I discovered most commands looking in the binarys /usr/bin/mesquite and /usr/lib/libpillow.so, they provide a lot of information |
|
04-08-2013, 02:05 PM | #12 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
heh ninja
EDIT: Yeah. I have to agree that lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}' would be a better solution. I'll amend my local copy accordingly also and retest. Last edited by twobob; 04-08-2013 at 04:07 PM. |
04-08-2013, 04:10 PM | #13 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I went with
Code:
( dbus-monitor "interface='com.lab126.powerd',member='goingToScreenSaver'" --system; killall mesquite; powerd_test -p; lipc-set-prop com.lab126.powerd preventScreenSaver "$SSSTATE"; lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}'; ) & It is, however, a "nothing" error in the grand scheme of things. I could investigate further but it's something and nothing and utterly benign Last edited by twobob; 04-08-2013 at 04:13 PM. |
04-08-2013, 06:22 PM | #14 |
*
Posts: 35
Karma: 145852
Join Date: Apr 2013
Device: Kindle Touch
|
Okay there is a new version with improved settings and twobobs improvements regarding app shutdown on the Paperwhite. I also added the file pillowHelper.js which is a wrapper to access nativeBridge which has a bunch of neat methods ;D
In future updates I hope to be able to catch the "goingToScreenSaver" message with this, so I don't need a wrapper around the application. Again, thanks for the help twobob Last edited by twobob; 04-08-2013 at 06:25 PM. Reason: s/helb/help |
04-08-2013, 06:26 PM | #15 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
\\O//
_| |_ YAY!!! |
Tags |
launcher add-ons, mesquite, webapp |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[PB 622] Browser icon disappeared from Applications folder | Roddy | PocketBook | 1 | 11-16-2012 07:11 AM |
Kindle Fire Web Browser will likely allow for web based games. | sirmaru | Kindle Fire | 10 | 11-15-2011 02:55 PM |
602 web browser | nel | PocketBook | 8 | 06-14-2011 08:25 AM |
web browser | bZkindle | Sony Reader | 8 | 05-04-2011 09:13 AM |
FullScreen on Kindle Browser | SunLight | Amazon Kindle | 7 | 10-11-2010 04:30 PM |