assign Pop up menu to soft key (windows mobile 5 - smartphone) - Windows Mobile Development and Hacking General

I needed to change the text and display a pop up menu for the right soft key on the homescreen. This needs to be done when the our plug-in is selected.
I have tried out various implementation none of them worked or were feasible
>> use SHCreateMenuBar on the desktop window and create the required menu bar in resource. But the problem was that I couldn't revert back to the original menu bar when the focus was passed on to the next plug-in.
>> use SHCMBM_SETSUBMENU. sending this message to the menu bar (HWND) handle with the command id of the right soft key and the handle to the pop up menu did not change anything. I also tried to get the actual HMENU handle to the menu bar using SHCMBM_GETMENU
HMENU hmenu = (HMENU)SendMessage(hMenuBar, SHCMBM_GETMENU, 0, 0);
return NULL and GetLastError() returns 5 (Access is denied).
Also tried a variation with the SHCMBM_GETSUBMENU message
HMENU hmenu = (HMENU)SendMessage(hMenuBar, SHCMBM_GETSUBMENU, 0, commandid);
This returns the same result as above.
Something related to this can be found at
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1362079&SiteID=1
If you are wondering if this is possible you can try out the google homescreen plug-in for smartphone which does exactly that.
http://www.downloadsquad.com/2008/03/20/google-launches-today-plugin-for-windows-mobile/
They change the right soft key to display a pop up menu when the plug-in is in focus dynamically. The default "Contacts" button does not have any pop-up.
Waiting.

Related

Registry Tweaks for XDA Mini

Here are some registry tweaks for your Mini
Please make a backup of your REGISTRY and all the other stuff of your PDA before you apply the following tweaks
Install directory to your storage/storage card.
To install your application/program to storage memory or storage card memory. Whenever you are about to install, there will one screen appear to ask you where to install the program. But not to forget to change it back the default value to 0 after the installation or u might encounter weird situation when you want to change your today screen and etc..
Code:
HKEY_LOCAL_MACHINE\Software\Apps\Microsoft Application Installer
Default: 0
Changed: 1
Fast graphic but consume memory
It can fasten and smoothen your OS graphic movement, but it will eat some of your program memory, not that much. You also can change it to 32768 instead of 16384 for greater result.
Code:
HKEY_LOCAL_MACHINE\System\GDI\GLYPHCACHE
Default: 8192
Changed: 16384
To hide screen rotate icon
There is a small PDA icon at your bottom right corner of your screen to change ur screen orientation from patriot to landscape and other way round. For me, its unnecessary, so you can hide it.
Code:
HKEY_LOCAL_MACHINE\Service\ScreenRotate
ShowIcon value change to 0
Default: 1
Changed: 0
To turn off flashing LEDs and Vibration
It will turn off the blinking green/red/orange LED and the vibration mode. Some people will irritate by the blinking, especially when you're driving and sleep at night.
Code:
HKEY_LOCAL_MACHINE\Drivers\Builtin\AllLEDMgr
Default: 1
Changed: 0
Enable camera frame rate display
Camera frame rate will appear on the screen when u're using the camera
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\HTC\CAMERA\AppDefSettings\General
Default: 0
Changed: 1
To set ur ringstones to run from Storage Card
Place all your downloaded ringtones from internal memory to storage card. Usefull for our small/ciput Mini memory.
Code:
HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring\Directory registry key
Default value: "\Windows\Rings\"
Change it to: "\Storage Card\<your preferred directory>\" (Note that "\" at the end is extremely important!!!)
Place those ringtones into \Storage Card\<your preferred directory>\
Enable hidden editor function in Album
This opens the additional hidden function in the ALBUM, allows u to edit ur photo, brightness, contrast, crop, etc. Album (opens Editor menu):
Code:
HKEY_LOCAL_MACHINE/SOFTWARE/HTC/Album/Disable Editor
Disable value changed to: 0
SPB Pocket Plus Storage Card Display
If u notice, there is no indicator available to display our storage memory capacity. This will add Storage Card display icon. PLEASE FOLLOW THE STEP CAREFULLY!!
1. Add icon/item Backup Battery Indicator
2. Regedit the key in
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Spb Software House\Pocket Plus\Today Items\Pannels\
3. Find key in directory 00000 or 00001 or 00002 or 00004; that have Name Action with value *backupbattery
4. Change the value to *storagecard
5. Soft reset
O2mini Camera Settings Configuration
Enhance you picture taken quality. It will remove your camera snow effect
Code:
HKEY_LOCAL_MACHINE/SOFTWARE/HTC/Camera/AppDefSettings/General
Set
Contrast: 5
Brightness: 6
Saturation: 3 or 4 (recommended by Doc)
Hue: 5
Sharpness: 3
Unlimited 3gp Recording for mms settings
This will allow you to take unlimited recording time
Code:
HKEY_LOCAL_MACHINE \ SOFTWARE\HTC\camera\AppDefSettings\P3
DWord Value called "EnableLimit", change it from 1 to 0.
To include both time and date in taskbar
You'll get time and short date on your right top of the screen, rather just displaying time. Meaning, you can remove your date item on your today screen.
Code:
Phase 1:
1) Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\
2) Create a binary value named "TBOpt" and set its value to "13 00 00 00".
3) Soft-reset
Note: If u ever get bored of the date display, rid it by deleting the TBOpt key.
Phase 2: IF U NEED THE CHANGE THE DATE FORMAT:
i) Just go to Settings>Regional Settings>Date>Short Date
ii) Choose "dd-MMMM-yy" or whichever format u prefer.
iii) Click "ok".
Disabling “Message Sent” notification bubble
For those who hates the "Message Sent" notification after sending an SMS, this is the steps to remove the bubble notification...this is the STEP by STEP method to do it in case some of you guys dont get it right...
1. First, you will need to download a Registry Editor to help you do it...
2. using the Registry Editor, navigate to:
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Inbox
3. Next, click on Inbox (make sure the Inbox is highlighted) and select Edit, New Key
4. Name the New Key as "Settings"
5. Click on "Settings" (make sure the Settings is highlighted) and select Edit, New String Value
6. On "Value name:", key in SMSNoSentMsg and in "Value data", key in 1
7. Soft reset your device and test it with one SMS, and you will notice that the SMS Sent bubble is being disabled.
Audio Tweak
Audio Tweak enhances the speaker performance of the O2 Mini (some devices have this set to a lesser priority and by using this you get better sound, if your device is already set to a high level you have no need for this)
Code:
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev\Priority256
Default: 110
Changed to: 80
Disable start menu animation
This tweaking will eliminate the list of menu "drop-down animation" if u tab on Start/Flag icon.
Code:
HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\
AniType value change from 6 to 0.
Looping Ringtones Delay
Ring tone has a standard 3 seconds delay before repeating. You can set the delay from 0 second to how many second that you want.
Code:
HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0
Change 'Script' from 'av0pw3r' to 'av0pr' and you'll get 0 sec delay.
OR change it to
av0pw1r = wait for 1 sec
av0pw2r = wait for 2 sec
and so on...
Plus..heres the code
a - stands for display
r - repeat/replay the script again
c - sets the volume C50, c150, c100
f - means flash .. f1 flash for 1 second and f0 stands for flash continuously
p -means play ringtone
v- vibrate then incorporate with number to state how many seconds it will vibrate example. v3 vibrate for 3seconds or v0 for continous
w - stands for wait or pause then specify how many seconds like w3(wait for 3 seconds)
heres the example
Flash - af1w60f0
Ring - apw3r
Ring Once - ap
Increasing Ring - c50apw3c150r
Vibrate Then Ring - v3w3apw3r
Vibrate - av3w3r
Short Vibrate - av1w3r
Vibrate Long Then Ring - v3w3v3w3apw3r
Vibrate And Ring - av0pw3r
Increasing Ring And Vibrate - c50apv3w3c150r
Fast Vibrate And Flash - af1v1w1f0r
Vibrate and Ring Continously without pausing - av0pr
SMS Notification On
This is different with message notification send, this will confirm you when message already recieve by receiver
Code:
[HKEY_CURRENT_USER\Software\Microsoft\Inbox\Settings]
SMSDeliveryNotify = dword:00000001 ->0 if off
How to:
Create new Dword value name SMSDeliveryNotify
with decimal value data 1
Wacth for capital letter
Changing the Message Sent Notification Message
Change the default "MessageSent". Example "Pesan sudah di kirim"
Code:
[c\SOFTWARE\Microsoft\Inbox\Svc\SMS]
Change the Value "MessageSent" to whatever you like.
Change the default input method
To change your input method, keyboard, letter recognizer, block recognizer as ur default, even you soft reset ur mini.
NOTE:
*for English ROM
*cannot set transcriber and Phatware Calligrapher with this trick.
Code:
HKEY_CURRENT_USER\ControlPanel\Sip
Change the "DefaultIm" value for:
To set keyboard as default SIP, change the "DefaultIm to
{42429667-ae04-11d0-a4f8-00aa00a749b9}
To set Character Recognizer as default SIP, change the "DefaultIm to
{42429690-ae04-11d0-a4f8-00aa00a749b9}
To set Block Recognizer as default SIP, change the "DefaultIm to
{42429691-ae04-11d0-a4f8-00aa00a749b9}
*change only the bold number will do. The rest are totally the same.
To set WordLogic as default SIP, change the "DefaultIm to
{4345EA53-B8A5-4E24-A14A-F7C34DD78077}
*No WordLogic in Xda O2 mini.
To Get The AM/PM on The Top Bar
Code:
HKEY_LOCAL_MACHINE\nls\overrides
1. Creat new String value with Name = S1159 & Data = Am
2. Creat new String value with name = S2359 & data = Pm
3. Creat new String value with name = STFmt & data = h:mm tM
- capital letters and small letters must be followed exactly or it may cause hard resets!
- you will get capital "AM/PM" on the top bar eventhough the registry data value above was entered as "Am/Pm"
Change The Date on The Top Bar
Code:
HKEY_LOCAL_MACHINE\nls\overrides
Look for String value SSDte (short date) and change the value data, some example of date formats i have used below:
- "7 May 05, Friday" by changing the String value SSDte data = d MMMM yy, dddd
- "07/05/2005, Fri" by changing String value SSDte data = dd/MM/yyyy, ddd
Clear Type on LandscapeDisplay
You'll get clear type font in landscape mode. made me dizzy though..not much functionality value..just some fun factor for us curious ones.
Code:
HKEY_LOCAL_MACHINE\System\GDI\ClearTypeSetting
1. Change value data of OffOnRotation from 1 to 0
2. Soft reset
Setting Cleartype Text in PIE
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
"ClearTypeText"<- Set 1 to Enable Cleartype in PIE, 0 to Disable
Setting ClearType Text in Pocket PC
Optionally, you can go to START>SETTINGS>SYSTEMS>SCREEN>CLEARTYPE
Code:
HKEY_LOCAL_MACHINE\System\GDI
Create a Subkey then Name it "CLEARTYPE"
Settings Screen Text Size
Optionally, you can go to START>SETTINGS>SYSTEMS>SCREEN>TEXT SIZE
Code:
HKEY_LOCAL_MACHINE\ControlPanel\Stylus\96DPI
"CurFont"= change to the ff value ..
dword:00000258 -> Smallest
dword:000002BC -> Smaller
dword:00000320 -> Normal/Default
dword:000003E8 -> Larger
dword:0000044C -> Largest
Thanks to [email protected] for the original post.
I have not tested all of these tweaks on my Mini. Please let me know if any of them are not working, or if you have any of your own tweaks which are not listed :roll:
I tryed Change The Date on The Top Bar now, and a Warning there, becouse when you done that i softreset, the phone wont start upp again.. =(( anyone have a solution? please help..
RanZor said:
I tryed Change The Date on The Top Bar now, and a Warning there, becouse when you done that i softreset, the phone wont start upp again.. =(( anyone have a solution? please help..
Click to expand...
Click to collapse
May be a hard reset would help :?
That is what i dont whant to do.. have no backup=((
Anyone know why it dident work?
Is the Mini the same as I-mate Jam and Qtek S100?
I dont know any other solution for you :? except for a hard reset.
Try SBP Pocket PC tips and tricks. Almost all of the mentioned tweaks are supported by this program & only softreset required to get them activated. Plus no hacking in the registry by hand, just set an option . I got my time & date in the top bar for instance working flawless.
Got two extra hacks for speeding up file browsing:
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\CacheSize=4096
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\EnableCache=0x1(1)
Cheers, M
Nice work, bhai. Did some of the tweaks and they work well.
Thanks.
Disable Dialer Number Format
HKEY_LOCAL_MACHINE\SOFTWARE\HTC\IntelliDialer\bShowFormatChar
Value: 0 by default, Set to 1
nonentity said:
Disable Dialer Number Format
HKEY_LOCAL_MACHINE\SOFTWARE\HTC\IntelliDialer\bShowFormatChar
Value: 0 by default, Set to 1
Click to expand...
Click to collapse
What does this do?
get rid of the regional brackets and spaces in the dialer...
ex. <###> ### #### = ##########
cheers
the DELIVER NOTIFICATION doesnt work, i wish this one's working, i really need this kind of program specially here in philippines.
great tweak......most of them work, tnx :wink:
my mistake.....the SMS DELIVER NOTIFICATION.
What key should I change to 1? is it default?
and where can I see the frame rate? camera ? video?
Thanks
hitu said:
Enable camera frame rate display
Camera frame rate will appear on the screen when u're using the camera
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\HTC\CAMERA\AppDefSettings\General
Default: 0
Changed: 1
Click to expand...
Click to collapse
televisi said:
What key should I change to 1? is it default?
and where can I see the frame rate? camera ? video?
Thanks
hitu said:
Enable camera frame rate display
Camera frame rate will appear on the screen when u're using the camera
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\HTC\CAMERA\AppDefSettings\General
Default: 0
Changed: 1
Click to expand...
Click to collapse
Click to expand...
Click to collapse
I think i've changed the frame rate to 1... and it came up when i turn my camera on
i cant find the string value for Change The Date on The Top Bar tweaks... btw i have chinese rom not english one
guys, would you kindly guide me how to make change the registry? I've download the Total Commander (I've heard to make chabge the registry we need to install this program), but after Ive install the Total Commander, what next?
In Windows xp, to change the registry I only enter 'regedit' from start menu -> then Run, so how to enter the registry menu in the WM2003
(by the way I use the O2 mini)
many thanks for your guide.
Camrea "Save Folder" Tweak
check it out http://oldsap.blogspot.com/2006/04/ppc-camera-save-folder-tweak.html
Does anyone know of a tweak that can hide/remove the envelope when a sms message arrives?
do it with pockenzenphone, then find the reg key....
nurrochmat said:
guys, would you kindly guide me how to make change the registry? I've download the Total Commander (I've heard to make chabge the registry we need to install this program), but after Ive install the Total Commander, what next?
In Windows xp, to change the registry I only enter 'regedit' from start menu -> then Run, so how to enter the registry menu in the WM2003
(by the way I use the O2 mini)
many thanks for your guide.
Click to expand...
Click to collapse
Run totalcommander, tap on the root '\\' then select 'registry'. find ur key.

reprogramming contact key

does anyone know how to reprogram the contact key to open a different program, i would like my to open a different "contact" program each time i press the contact key but instead it opens up the original contact... the one i want to open has pictures contact... the ony way i have been able to open it is by going to where i stored the program on my device...
is there anyway to change it... i did see another post about contact but that didn't solve my delimma...
Here is a link to a soft key applet:
http://forum.xda-developers.com/viewtopic.php?p=226198#226198
It adds a setting in your Control Panel that allows you to change the soft keys to any program you want.
zakhir_n said:
Here is a link to a soft key applet:
http://forum.xda-developers.com/viewtopic.php?p=226198#226198
It adds a setting in your Control Panel that allows you to change the soft keys to any program you want.
Click to expand...
Click to collapse
Thanks zakhir_n!
stylistic14 said:
does anyone know how to reprogram the contact key to open a different program, i would like my to open a different "contact" program each time i press the contact key but instead it opens up the original contact... the one i want to open has pictures contact... the ony way i have been able to open it is by going to where i stored the program on my device...
is there anyway to change it... i did see another post about contact but that didn't solve my delimma...
Click to expand...
Click to collapse
Also check the wiki (http://wiki.xda-developers.com/index.php?pagename=WM5_Tweaks_Other) as there is information on changing the today softkeys:
Change the application launched by Today screen Soft Keys
To change the application launched by the Today screen Left soft key:
HKCU\Software\Microsoft\Today\Keys\112\Open = "\Windows\Calendar.exe" (REG_SZ string, including quotes)
To change the title of the Left soft key:
HKCU\Software\Microsoft\Today\Keys\112\(Default) = "Calendar" (REG_SZ string, no quotes)
To change the application launched by the Today screen Right soft key:
HKCU\Software\Microsoft\Today\Keys\113\Open = "\Windows\Start Menu\Programs\Contacts.lnk" (REG_SZ string, including quotes)
To change the title of the Right soft key:
HKCU\Software\Microsoft\Today\Keys\113\(Default) = "Contacts" (REG_SZ string, no quotes)
Note that 113 normally doesn't exist by default, and probably needs to be created
Also note that there is at least 1 application that allows you to set these through a GUI, developed by FdcSoft called SoftKeyAppletEx.

A Call To Lock/Hardware Button Experts

Hello,
Im currently working on a custom control in managed code(vb.net) and have decided to implement it in a lock application as its initial demo. I have written code which catpures the base hardware keys available to windows mobile(1-6) this captures all of the hardware buttons on my wizard except for the Phone Buttons, Volume/Vibrate Button, and power button. im not particularly worried about trapping the power button because i like the tap to standby feature but im up the creek on the phone/volume buttons.
I found the hardware buttons 1-6 in the registry under (HKLM\Software\Microsoft\Shell\Keys) but i cant seem to find the other keys anywhere including where this person says they are
http://www.mobipocket.com/forum/viewtopic.php?p=2367&sid=c3b2c704a729c2d6e5a47d0ee38ecb54
basically from my understanding of what he's saying the keys for these options(at least the phone ones) should have been listed under "HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\"
I had one key there 112 pointng to my calendar(so that i thought confirmed him) I added a key called 114 with a path to calendar as well. but the button still directs to phone/ so im not sure what's up.
Here's some logic from the hardware button capturing... Any insight into the location of these items would be greatly appreciated
Code:
Dim hk As HardwareKeys = HardwareKeys.ApplicationKey1
Dim i As Integer = 0
While i < 6
Try
Dim hwb As HardwareButton = New HardwareButton
hwb.AssociatedControl = Me
hwb.HardwareKey = hk + i
Catch ex As Exception
Me.Label1.Text &= ex.Message
End Try
i += 1
End While
Dim regkey As RegistryKey =
Registry.LocalMachine.OpenSubKey("Software\Microsoft\Shell\Keys", True)
Me.Label1.Text = regkey.SubKeyCount
For Each skey As String In regkey.GetSubKeyNames
Me.Label1.Text &= skey.ToString & ","
Next
regkey.Close()
Thanks in advance for any insight anyone can provide
DrewG
Well ive found some russian page talking about the
Dated Post on russian site with Broken English Translation said:
HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\KeyMaps]
"195"= - =-hitting "record" on the three pozic. phone (one that najmeshy story)
"196"= hitting "power" and "house"
"197"= Opening screen
"198" = "red tube"
dword:00000000 - nothing
dword:00000001- mobile phone
dword:00000002 - quick menu
dword:00000003 - lock (for the press release #)
dword:00000004 - 00000004 fast-locking
Click to expand...
Click to collapse
Do you guys think this is a good start? At that location i have dword 197 val of 5. Im adding entries now for the othr buttons to see if i can catch
Here's What I have so far for Cingular 8125 HTC Wizard as the hardware buttons/software key maps which i get from a call onkeypress. I believe im going to have to go an unmanaged route for the phone buttons/Volume.
Code:
'not code just looks better this way
SoftKey Left = Key Code 112
SoftKey Right = Key Code 113
Email Button(top left corner) = Key Code 193 (Cf Hardware Button 1)
Web Button(top right corner) = Key Code 194 (Cf Hardware Button 2)
Camera Button(bottom right side) = Key Code 195 (Cf Hardware Button 3)
Voice Button(top right side) = Key Code 196(Cf Hardware Button 4)
Record(hold voice) = Key Code 197(not firing well) (Cf Hardware Button 5)
Comm Button = Key Code 198 (Cf Hardware Button 6)
All of those I can catch and react to but i cant seem to find any info for the phone and volume buttons/ Is there a specific api call I can make thats related to button press or catching? Possibly a way of forcing an association to an app only while its running?
Thanks in advance for any help. Ill post the full app here if i can get over this hump

Windows Mobile: Soft keys in tab control

Hello out there,
I have following problem under Windows Mobile: in need to create a dialog with OK and Cancel button that contains a tab control with several tabs. The trouble is: when the focus is on an edit control that is child of one of the tabs, the mobile phones soft keys, that should control that dialog's OK and Cancel buttons, do not work any more.
I guess, the problem is, that the edit control is not direct child of the dialog, but child of the current tab, that itself is child of the dialog. So, the child -> parent relation is:
edit control -> current tab -> dialog
and the soft keys would only work properly if the edit control was direct child of dialog window, like this:
edit control -> dialog
I already tried to solve the problem by re-directing windows messages the tab's window procedure receives from edit control to dialog window, but this does not work, because the tab's window procedure only receives WM_GETTEXT messages from edit control, no WM_COMMAND messages.
I also tried to provide a customized window procedure for the edit control by SetWindowLong():
Code:
SetWindowLong(hEdit, GWL_WNDPROC, newEditWndProc);
to program edit control to send WM_COMMAND message when WM_KEYDOWN is received and key was soft key, but this results in incorrect depiction of edit control in GUI.
So what can I do?
Concerning the customized edit control window procedure I found a solution: to prevent incorrect graphical depiction, one must not directly call the edit control's default window procedure in customized procedure, but instead use CallWindowProc() indicating address of default window procedure:
Code:
LRESULT CALLBACK customEditWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
// wrong:
// return defaultEditWndProc(hwnd, msg, wParam, lParam);
// correct:
return CallWindowProc(defaultEditWndProc, hwnd, msg, wParam, lParam);
}
There's another solution that is more nice: in Visual Studio's resource editor, in the dialog resource for each tab page, one can set a property "Style". Setting this to "child" (I guess this would be the English title, my VS displays the Style names in German), solves all the depicted problems, without any dirty hacking in edit control's window procedure
However, there's still something not very nice: the look of the tab page borders. They have 3D-edges, as is typical for Desktop PC Windows. However, any other application under Windows Mobile using tab pages (e.g. Start -> Settings) has a flat edge tab page style. How can I activate this? Is it maybe only available in .NET development?
To make clearer what I'm talking about: have a look on this screenshot:
http://www.brighthub.com/bh_control...owse and apply your theme&postId=23468&page=1
I would like to have a tab page header style like the "Tabs", "Appearance", "Tweaks" and so on tab headers on the screenshot have.

[Request] Small widget that shows value at screen and changes value in text-file

eLocity A7 users need small widget
View
1. Show text at screen according value from config-file
If value 0 then text "USB Slave"
If value 1 then text "USB Host"
2. If user pressed on widget it should change state at screen and value in config-file (inverse value: 0 -> 1 or 1 -> 0)
3. If value was changed then show one of two variants:
a) pop-up text "You must reboot to apply settings" (like in Astro, it shows text "press back once more to exit" in grey square over screen)
b) pop-up window with text "You must reboot to apply settings" and button "Ok"
I don't know has widget ability to show modal-windows?
Config
1. Ability to change path and name of config-file
Additional
1. Without periodical updates. Only when:
- user is pressing on widget
- device is turning on
- device waking from sleep on
Real example
File: /data/data/com.compal.usg_otg/usb.txt
Values in file usb.txt (only one value)
0 or 1
p.s.
I found only text widgets which show some text but they don't read value from file and don't allow change value in file
I know about GScript. I can create script that changes value in file and inverses value too but i don't know how show value at screen
Widget will fuse both functions)
Thx...

Categories

Resources