Titanium Plugin Development (API?) - Windows Mobile Development and Hacking General

Hi all, I seem to be having trouble finding any sort of documentation on how to develop Titanium Plugins for the WM6.5 home screen... Is there any information out there that someone could point me to? My plan is to use Visual Studio 2008 (3.5 .Net) if that makes any difference... Thanks for any help.

Well it's all about interaction with registry. You could also use mortscript. even tho Visual Studio can do it too. You just need to write the needed keys to the registry, and point to them in your .cpr file.

larbke666 said:
Well it's all about interaction with registry. You could also use mortscript. even tho Visual Studio can do it too. You just need to write the needed keys to the registry, and point to them in your .cpr file.
Click to expand...
Click to collapse
Thanks for the tip. Are there any places where this is documented...? Seems a bit strange to keep this information so well hidden...
I'll continue the search...

Wigmund said:
Thanks for the tip. Are there any places where this is documented...? Seems a bit strange to keep this information so well hidden...
I'll continue the search...
Click to expand...
Click to collapse
It's not hidden just search for it, for example:
http://forum.xda-developers.com/showpost.php?p=3601164&postcount=2
http://forum.xda-developers.com/showthread.php?t=509492
and there are more

I started documenting my journey on CHome development.
http://brunolauze.spaces.live.com/blog/cns!8827D2F13B317CBF!427.entry

CHome Documentation
I started documenting my journey on CHome development. I hope to add more in days to come.
http://brunolauze.spaces.live.com/blog/cns!8827D2F13B317CBF!427.entry

blauze said:
I started documenting my journey on CHome development. I hope to add more in days to come.
http://brunolauze.spaces.live.com/blog/cns!8827D2F13B317CBF!427.entry
Click to expand...
Click to collapse
Even though I'm logged in on Windows Live I have no access to your live space ...

Thanks for the pointers... and as far as official documentation goes, it doesn't seem that forth coming... btw, I can't view blauze space either.

I was trying to figure out a similar thing.
I manually added a panel to Titanium called "Battery". What I wanted was a little tool that put the latest battery charge percentage as the panel name.
After a bit of digging I realised the following code kind of works:
Code:
Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\Microsoft\CHome\battery\Page1", True)
key.SetValue("TEXT1", Status.SystemState.GetValue(Status.SystemProperty.PowerBatteryStrength) & "%")
key.Close()
It does successfully change the name of the first page of the panel to the latest battery charge.
Only problem now is, I can't figure out how to get Titanium to refresh... in other words, how to get it to re-read the registry keys. At the moment, it only works by soft-resetting the phone!

digital_elysium said:
Only problem now is, I can't figure out how to get Titanium to refresh... in other words, how to get it to re-read the registry keys. At the moment, it only works by soft-resetting the phone!
Click to expand...
Click to collapse
Simply change "HKLM\Software\Microsoft\CHome\battery\Updated" from its current value to another.

Has anyone figured out a way to do a registry update or execute a script when a panel/page is selected in Titanium without having to "click" it to update?
Here's what I'd like to do... let's say I have a Twitter panel that retrieves my unread tweets every NN minutes. Sliding left/right switches between the tweets, but as I slide onto a tweet, I want to mark it from UnRead to Read in a registry setting. I currently can "click" it to update the status to Read, but havn't found anyway to do it otherwise.
I asked this awhile ago, the thread sat and went stale with no responses. Just wondering if someone ran across a new trick.
-Daryel

Okay, I have no ability to create panels and such, However I have 2 ideas for panels. One, the BAF Gps Toggle panel and a notes panel where a new page is created for each note (similar to taskanium) Anyone think they could do these?? Attached is the .cab for the GPS toggle if needed.

Related

SlideActions: Assign actions to sliding events of Windows Mobile phones

I bought my Touch Dual sliding phone for the express purpose of using the sliding open and closed as the physical interface for answering/unlocking then hanging up/locking my phone. But to my surprise the Touch Dual cannot hang-up and/or lock on slide close (although it does answer/unlock on slide open).
So I've written an application to do the job.
The latest version now includes friendly configuration and integration with third party applications such as S2U2.
SlideActions and notes (this is a link to my server, so it always has the latest version).
Open source
Because I don't have the time and I've been asked for new features, and there's been volunteered help I've provided access to SlideAction's SVN repository.
I almost didn't because I never bothered to comment code I didn't expect others to see, but, well, I'm not so precious.
Here's the repository's URL::http://opensource.puna.net.nz/svn/slideactions. Accessible both by web browser and SVN client such as TortoiseSVN.
Anyone wanting to contribute can create a branch (such as opensource.puna.net.nz/svn/slideactions/branchs/new_branch) and I'll merge working features into the main branch.
Its great,
how can i make cab-file tu youse on my touch dual ?
Regards Nick
Great idea!
u have to make a cab file for us
d.
Cab File
ariandax said:
Great idea!
u have to make a cab file for us
d.
Click to expand...
Click to collapse
Goto the link in the first post, CAB file is now available.
ferrex said:
I'll have a look into what it takes to make an installing CAB file...
Click to expand...
Click to collapse
And it wasn't hard at all. Go to the link in the first post to find the CAB file.
I should mention - although this CAB file does put a startup shortcut in place (so the application will start with the phone in future) it doesn't currently start the application to begin with - you'll have to either start it yourself (llook for the application in your Program folder) the first time or restart your phone for it to happen automatically.
Nice work Ferrex..!
Keep up them please ..
it's great ~
but can I just use it for hanging up calls ?
and not for keys lock ?
I'll test it later.
really great job Mate.
great job! will test it tonight!
alexnalexn said:
it's great ~
but can I just use it for hanging up calls ?
and not for keys lock ?
Click to expand...
Click to collapse
I haven't tried to make it configureable in any way yet (Update:It is now). So far I've just been happy to figure out how to make it do what I need on my phone.
Ideally it ought be configureable but I don't think I'm going to have the time to do that with a busy work schedule for a while.
I find working on this stuff immensely time consuming because I'm on the wrong side of a big learning curve right now - and at times frustrating (I'm stunned at how much the VSS Deployment Project methodolgy sucks).
Thanks for this, simply fantastic. Was silently hoping that htc would release a rom upgrade that closed the action screen when the keypad slides back down. Looks like you've beaten the big H to it.
Nice work, i tried it but it kept opening the sms/mms app any time i slide it open. But it's almost perfect
nomc2 said:
Nice work, i tried it but it kept opening the sms/mms app any time i slide it open. But it's almost perfect
Click to expand...
Click to collapse
That's deliberate (if you have unread messages) - I haven't accentuated the feature but the app checks if there's any unread SMS messages when you open the slide and if so opens the SMS app.
It's one of the things which ought be configureable but I haven't had time to write configuration options yet. For the moment I'm writing the application to suite my needs - and I prefer to go straight to unread txts if I haven't noticed them yet when I open my phone.
If it's doing it when you haven't unread messages it's a bug - but not with this app because that's a mistake it pretty much can't make itself, however another app interacting with SMS might not be updating the notifications correctly and thus throw my app off. I could make HTCDTExtend more robust by taking a more direct route to SMS info but I'm not going to because using WM6 notifications is the correct way to do it. Hopefully your experience is as designed and not some bug.
if i may, maybe you could just recompile an exe for those of us that want it to function without the locking feature either by just commenting out the sendkey(133) or using a null in the locking subfunction
thescum said:
if i may, maybe you could just recompile an exe for those of us that want it to function without the locking feature either by just commenting out the sendkey(133) or using a null in the locking subfunction
Click to expand...
Click to collapse
I've made the application read settings from the registry so it can be configured. In time I'll put a graphical interface on it but for now...
By default the application Hangs Up and Locks on slide close, and on slide open, if there are any unread SMS messages opens the SMS application.
But you can change that if you wish by editing (you'll have to begin by creating them, they aren't created by the application currently [Update:These keys are created by the application now]) these registry settings:
HKEY_CURRENT_USER\Software\Ionwerks\HTCDTExtend DWORD:HangUp
HKEY_CURRENT_USER\Software\Ionwerks\HTCDTExtend DWORD:Lock
HKEY_CURRENT_USER\Software\Ionwerks\HTCDTExtend DWORD:CheckSMS
0 = Off, 1 = On for each setting.
thescum said:
if i may, maybe you could just recompile an exe for those of us that want it to function without the locking feature either by just commenting out the sendkey(133) or using a null in the locking subfunction
Click to expand...
Click to collapse
I've assembled a version with locking disabled for people who don't want to edit their registry.
Update:HTCDTExtend has been supplanted by SlideActions. Go to the first post for a link to it's home page.
thanks ferrex for insights in registry and for the cab, it works very well now thanks.
ferrex said:
I've assembled a version with locking disabled for people who don't want to edit their registry.
Click to expand...
Click to collapse
Great work again...so no locking right now? But the unread sms work again right?
d.
thanks a lot, ferrex! it is a GREAT app!
meanwhile, really doubt why HTC is so stupid to miss the slide-close-to-hangup functionality that is available on every slide-out phone.

SPB Mobile Shell 3.0 - Modifications/Hacks (dedicated thread)

I feel this thread to be redundant. This thread basically do the same thing but with bigger success and some active modders:
http://forum.xda-developers.com/showthread.php?t=507697
As we don't need two of the same threads and I feel I don't have enough time to mod and give in to this myself and not many modders have stepped in. I'm sorry. Consider this thread a good idea but the goal is now in the hands of Zepiii. To hack the hell out of MS 3.0
Good luck Zepiii
Hi,
don't think anyone has missed the amazing pre release of this sweet ap!
I'm a mod freak and there are somethings i would like to change in this prog.
like the programs "tab" only has 3 rows. i want to make this 4. anyone with a bit of experience possibly from the 2.xx series know where to do it?
the configs are simple ZIP files. Just open the DAT file as a ZIP file or rename it to ZIP.
in order to edit the file you need to put in the password which is:
b0fm18zq
Maybe we could custom tailor it and post the modded DAT files collected here. Most of the 2.xx series of mods/skins are portable with a little or no modification except renaming of some picture files (same password in 2.xx). the possibilities are endless
Please remove or correct my post if I'm violating/doubleposting something here.
Regards
/Frewys
DAT Files content:
qa_layouts.dat - This contains only XML files. 61 to be precise lots of interesting stuff! (tried to change the Iconspacing in programs to 24. didn't get my 4 icons row though )
vp_menu_btn.dat - Built in Icons
va_misc_now.dat - Built in system icons
vpw_bkg_now - portrait
vlw_bkg_now.dat - mostly contact icons landscape
va_weather_64.dat - weather Icons largest with XML file
vp_bkg_now.dat - Menu frame
vl_bkg_now.dat - same but in landscape
va_profile.dat - media player and profile widget icons
RegHacks:
adding more pages to lifestyle screen
more buttons in collected start menu
change default sms client (bottom)
Memorysaving (no reghack)
interesting links in similar spirit:
SPB 3.0 today wallpaper
SPB 2.1 skins for inspiration
Great idea. I would also love to see this!!!
Is possible to customise the theme colors that available in mobile shell 3? The existing preferences are to dark(I want a white color scheme). Can we do it by editing a dat file(which?) or a registry hack?
dancer_69 said:
Is possible to customise the theme colors that available in mobile shell 3? The existing preferences are to dark(I want a white color scheme). Can we do it by editing a dat file(which?) or a registry hack?
Click to expand...
Click to collapse
Hi Dancer_69,
I don't know yet. I just played around with it last night before bed. I'm just a NB in this who poked around with this great ap after not being pleased with everything and curious on what could be achived so i dont have alla the answers this is a team effort. hopfully someone with the experience or knowhow checks this. In the meantime we have to do it by trial and error. and map it all as we go along
Regards
Frewys
good to know
I have discovered that Topaz enhanced menus works great with SPB MS 3.0 activated (and Manila installed but not activated in the today screen) so so far its a necessary evil to have Manila installed until we know possible witch file or reg settings are needed.
Regards
Frewys
i'll be waiting one this, happy moddings
adding more pages to lifestyle screen
this could be good for some. Found this over at modaco.com forum posted by turborepu quote:
"add more pages to lifestyle screen.. bg image pan works fine still
hklm/software/spb software house 2/spb mobile shell/widgets/homescreen
change "pagecount" to desired number.. i put 4. soft reset.."
supposedly its tested on 10 pages. the result is that when paned the wallpaper moves less then with three. If wallpaper size changed it will "smartfit" it to be the "correct" size.
haven't tried this myself yet three is plenty for me ATM
Hello
to improve finger friendly
please in new mobile shell v3
-imake an Sms menu , v2 uses windows Sms.
-alarm menu finger friendly
- apointments menu .....
V2 uses Windows Sms, alarm, apointmente
not very good needs the stylus...
Please make m.shellv3 completely finger friend with sms like iphone and alarm ....
Many thanks
and change applications
open sms with vito Sms ? it´s possible
change attachements ...
manyt hanks
When are you going to stop posting that little list of yours masrterk? Every thread/subforum on xda-developers and spb seems has one of your posts with the exact same thing.
masrterk said:
and change applications
open sms with vito Sms ? it´s possible
change attachements ...
manyt hanks
Click to expand...
Click to collapse
Hi masrterk,
I personally don't agree. i like to taylor make my GUI and of course the tastes differ. For instants.. i would like to have it pretty barebone and point to the prefered app of choice like resco contactmannager or glarm witch are the best! IMHO annyway
BUT if one could integreate them somehow that would be great if you had that choice.
right now its really easy just to link to those apps from the lifestyle screen.
Regards
Frewys
masrterk said:
and change applications
open sms with vito Sms ? it´s possible
change attachements ...
manyt hanks
Click to expand...
Click to collapse
You could use this from the legendary vijay555
http://www.vijay555.com/?Releases:VJBrisk
Remove calendar from professional layout?
Hi guys
i am trying to figure out how to do something that we were able to do in 2.1, but has been left unoptional in 3.0. I would like to get rid of the calendar on the pro screen. All I want to see is my upcoming appointments (if I have any). I don't want the screen cluttered with a pesky grid-style calendar. I am such a nooB at this it is silly, but here I am, messing around with .dat files......
Any help would be greatly appreciated!
It would be nice to create a backup/restore tool for the settings/today items/widgets/etc...
When updating the rom this would be VERY useful!
is the pre release official? where's the download?
looks good from the youtube demos
Anyone figure out the password for the DAT files yet? Seems they changed it from the 2.x releases
Great idea. I just took a peek inside today, thanks for the breakdown of what some of the .dats do.
I have a feeling we'll start seeing some custom widgets in no time.
and yes, the release is now official.
619619 said:
It would be nice to create a backup/restore tool for the settings/today items/widgets/etc...
When updating the rom this would be VERY useful!
Click to expand...
Click to collapse
There is already one in the SPB Shell settings, click the right softkey in settings and there it is, to the left of the exit button.
I tried it myself today, completely uninstalled mobile shell before I installed the official version, loaded the backup and everything was restored in the new version, included widgets and all
themirthfulswami said:
Anyone figure out the password for the DAT files yet? Seems they changed it from the 2.x releases
Click to expand...
Click to collapse
I am getting in fine using b0fm18zq
That said, I am still trying to figure out what I am doing........
wyldthng said:
Hi guys
i am trying to figure out how to do something that we were able to do in 2.1, but has been left unoptional in 3.0. I would like to get rid of the calendar on the pro screen. All I want to see is my upcoming appointments (if I have any). I don't want the screen cluttered with a pesky grid-style calendar. I am such a nooB at this it is silly, but here I am, messing around with .dat files......
Any help would be greatly appreciated!
Click to expand...
Click to collapse
I don't see the grid calendar on my pro screen anymore. On the pro settings page, choose "calendar", then change # of appointments to "as many as possible". After doing this, mine now shows the next two appointments.

[SOLVED] cPhoneAlarm Titanium Plugin

Edit: see 4rd post to find the link.
Hi, I love both the big context menus in wm6.5 and phoneAlarm.
For those who have not tried it, phonealarm is a program that was born as a profile selector but now it really allows you to develop nice skins, custom actions, pop up menus... really the combination of skins, profiles and actions lets you tailor the phone functioning and appearance to your needs at each moment of the day.(www.pocketmax.net).
Currently I use wm6.5 with secondtoday+phonealarm or wm6.5 without titanium and phonealarm (depending on the week ). I can not go back to 6.1 but I can not go without PhoneAlarm so I wonder if any body is interested in developing a similar framework as other existing plugins:
- read a picture from registry
- use mortscript to update the registry and the picture and to send phonealarm commandline orders (basically launch contacts, weather, programs, profiles popup menus, cycle backlight, turn on-off bt,wifi,etc, display lots of registry info...)
I did exaclty this in the past with WAD2 instead of titanium (my avatar shows it) but with wm6.5 and titanium should be enough to do it and keep. I think I know how to do it but I am not familiar yet with titanium xml's. Anybody would like to lead the development?
Finally! Someone else likes PhoneAlarm!
I developed a titanium plug-in for myself and have been testing it. This is my first time doing something like this.
As soon as I can figure out how, I'll post all my source. I haven't figured how to make a cab out of it yet.
I'll definitely share if I can figure out how to package it.
-TheMeanGreen-
themeangreen said:
I developed a titanium plug-in for myself and have been testing it. This is my first time doing something like this.
As soon as I can figure out how, I'll post all my source. I haven't figured how to make a cab out of it yet.
I'll definitely share if I can figure out how to package it.
-TheMeanGreen-
Click to expand...
Click to collapse
I have a pc where I can not install wince for the time being but if you pm the files I will try to make it the old way (cabwiz) and be your first tester
OK, I have found a way, so I close this thread and link to the other one where I posted the current progress.
http://forum.xda-developers.com/showthread.php?t=541172
... well, actually I do not know how to close a thread !

How to overcome titanium limit on no. of elements?

Hi, there seems to be a limitation on the number of elements one can show on each panel. I've got to the stage where every time I add a new text element it replaces an existing one... i.e. I can't add more. I've heard there's a way around this, can anyone point me in the right direction?
Thanks.
Yes - at the moment no solution, only workaround, like I wrote you.
But in the dialog of drkfngthdragnlrd there could come out some new findings.
Let's go on here to continue the posts of *20items-limit* from JMLToday-Skins-Thread.
Last post there from
drkfngthdragnlrd said:
Try manually entering it, do not use ATPluginInstaller, It's designed for known working formats, not trying custom code.
EDIT: Speaking of ATPluginInstaller, great app, but maybe time for someone to make a newer version as it is getting old now & custom code like this will give errors. Plus, it doesn't support writing to specific CPR's that aren't named Titanium_###.cpr. I wonder what ever happened to AppStar...
HUM: Just noticed something to do with T-Mobile's Myfaves Plugin for CHome. We're missing a dll.
Code:
[HKEY_CLASSES_ROOT\CLSID\{3BA1B2A6-CFE8-4220-91C1-526CB9F00337}]
@="CMHOME MyFaves plugin"
[HKEY_CLASSES_ROOT\CLSID\{3BA1B2A6-CFE8-4220-91C1-526CB9F00337}\InprocServer32]
@="CMHOMEaddon.dll"
"ThreadingModel"="free"
Click to expand...
Click to collapse
MichelDiamond said:
Then we should find it
OK - I tried again - and Plugin-Installer is only used to make a copy to cpr in JMLToday for changing skins. No different to manual edit... but Plugin disappears with Layers per Page (No error message, only disappear)
Yes - we need an update of ATPluginInstaller. Mortscript 4.2. provides also a customized Setup.dll.
Perhaps we should go on talking about the limit in the thread, which Jumba opened:
http://forum.xda-developers.com/showthread.php?t=544576
to have the finding in one place?
I'll answer there and set a link to this page
Click to expand...
Click to collapse

Manilla Sound settings shortcut?

Hi guys,
I tried searching, but to no avail...
I'm looking for a way to acces the manilla sound settings directly from the programs-tab. Could someone point me in the right direction?
Thanks!
Don't think you can access sub tabs directly - at least I have not found a way. Thats why I wrote 3 simple small apps that set the sound for you. they each have their own icon and just run it from where ever you want. It will load, set the sound, and exit.
Eric
ebernazz2 said:
Don't think you can access sub tabs directly - at least I have not found a way. Thats why I wrote 3 simple small apps that set the sound for you. they each have their own icon and just run it from where ever you want. It will load, set the sound, and exit.
Eric
Click to expand...
Click to collapse
Thanks! That ought to do the trick for now!
And something else: The sub-tab for Comm manager IS directly accessable, I wonder if there is a way to have the same for "Sound"...
Youre right. BUt I thought that was because someone wrote a "clone" version of that page and it has been used in a lot of the mods peoiple do. Which may be worth doing if I have some spare time. I could write a manila looking screen to change the sound settings. hmmmmm..
ebernazz2 said:
Youre right. BUt I thought that was because someone wrote a "clone" version of that page and it has been used in a lot of the mods peoiple do. Which may be worth doing if I have some spare time. I could write a manila looking screen to change the sound settings. hmmmmm..
Click to expand...
Click to collapse
Well, then... let me be the first to offer myself as a beta-tester ;-)
Take your time; no hurry!
When I get out of work tonight I will write it and post it here.
Eric
Well This week has been real hectic. But I want you to try my first version.
I had the system and ringer volume working but unfortunatly the manila SDK I used from micyprima (Thanks!) has problems adding new controls unless you render them from scratch. Therefor if you go longer than you screen is they won't scroll like the panel items will. I may try and create some new panel items with slider controls if I have time.
Anyway the basic funtions you want should work.
Let me know.
Eric
ebernazz2 said:
Well This week has been real hectic. But I want you to try my first version.
I had the system and ringer volume working but unfortunatly the manila SDK I used from micyprima (Thanks!) has problems adding new controls unless you render them from scratch. Therefor if you go longer than you screen is they won't scroll like the panel items will. I may try and create some new panel items with slider controls if I have time.
Anyway the basic funtions you want should work.
Let me know.
Eric
Click to expand...
Click to collapse
Working fine so far! You da man!
Thanks!

Categories

Resources