|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 63518
Join Date: Apr 2012
Device: KT
|
Adding USBNetworking Icon to StatusBar (catch lipc-set-prop event with nativeBridge)
Hello,
i thought it would be nice to see the state of the USB Networking next to the Wifi Icon, so i tried to find the place, where the status bar is defined. i was successful: There is a html file at /usr/share/webkit-1.0/pillow/default_status_bar.html which holds the layout for the status bar. also several .js files: Code:
/usr/share/webkit-1.0/pillow/javascripts/default_status_bar.js /usr/share/webkit-1.0/pillow/javascripts/default_status_bar_connection.js /usr/share/webkit-1.0/pillow/javascripts/default_status_bar_activity.js /usr/share/webkit-1.0/pillow/javascripts/default_status_bar_audio_icon.js /usr/share/webkit-1.0/pillow/javascripts/default_status_bar_battery.js Code:
nativeBridge.subscribeToEvent(src.name, event.name); nativeBridge.registerEventsWatchCallback(StatusBar.eventsCallback); nativeBridge.registerClientParamsCallback(StatusBar.clientParamsCallback); Code:
${LIPC_SET_PROP} -i -- com.lab126.volumd useUsbForNetwork ${USE_USBNET} Any tipps? Which of the register/subscribe functions should i use in the js file to be informed about that event? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
LIPC: how to set a custom event? | silver18 | Kindle Developer's Corner | 20 | 04-21-2025 10:36 AM |
Set time on Kindle keyboard with usbnetworking and linux terminal | bibiboo | Kindle Developer's Corner | 6 | 11-21-2011 02:11 AM |
how to set icon (logo) for my recipe | poldem | Recipes | 5 | 03-29-2011 05:21 AM |
New Icon set for 505 | maggotb0y | Sony Reader Dev Corner | 3 | 08-09-2008 01:20 AM |
Free Windows Vista Icon Set | doctorow | Lounge | 0 | 08-11-2005 04:51 PM |