[Q] [SOLVED] Development using koush's sensor sdk - Touch Diamond, MDA Compact IV General

Hey, this is my first post but i've been browsing these forums ever since i got my diamond and they've been a great help. I've been trying to learn some c# so i can give back a little to this forum, I've been able to make some simple app's but recently i've been trying to use koush's sensor sdk, and i tired using a ticker to update a label with the x y and z values from the gsensor every 1 milli sec, it shows the values but there only updated like every 2-3 seconds. Is this normal or am i doing something wrong?
thanks koush and all other developers for all your hard work!
Edit: Also i realized if i use any other gsensor app at the same time like tweeter, they also slow down and update the values at the same speed.

Updating every millisecond is a bit of overkill, when you consider it will take several milliseconds for your code to change the label text, and several more for the label to paint itself. By the time it starts to paint, the label has gotten 10 more Invalidate messages, so it's basically waiting for things to settle down before painting (not really, but that's what it will look like to you).
Try setting the timer to fire every 100 milliseconds ... that should give you better results. After playing with that, you could try tweaking it down some to see how quick of a response you can get, but I would guess the message pump will start backing up again around 25 milliseconds.

Solved!
Thanks Gecko!! Solved!!

damvigilante said:
Thanks Gecko!! Solved!!
Click to expand...
Click to collapse
You're very welcome!

Related

Advanced Config No SplashScreen Time?

Weird question about advanced configuration (A.C.).
In A.C. you can change the MS and Carrier timeout on startup.
now the 30k are actually ms, which means for 30 seconds it's doing this.
Now my question is, can I put these down to Zero without any ill effect? I know the OS needs to startup, soooo what times do you guys change it too, because 1 min startup time is long isn't it.
FYi I changed mine to an overall 40 sec time to startup. (20/20).
Still no hits? (Is this an idiotic question?)
I'll just try again because I can't get any results searching google.
If a mod can merge this with the first post feel free too.

SMS info display problem

Hi xda!
I’m just getting into the HTC modding scene really must say thank you all for the great forum, you’ve been a big help to me in times of desperation.
Hopefully when I’ve learnt a little more I can contribute to your community.
I have a little problem and tried searching the forum but no luck
The date display in my messages in portrait mode obscures the contact name, is there any way to reduce the day format to say.. 3 letters? ie. mon not monday etc. to correct this? I have attached a screenshot so you can see what the hell I’m on about lol.
Thanks in advance and keep up the hard work!
I think this may have something to do with your "Short Date Format"... It sounds like it includes the day of the week. My Tilt only shows mm/dd/yy (or the time if the message was received today).
A quick look in Settings -> System -> Regional Settings -> Date tab seems to indicate that this would have to have been set in the registry, as I don't think it is possible to set it to show the day of the week in this screen. This would mean it's likely hardcoded in the registry.
If this is gibberish to you, let me know... lol

The True ActiveSync Fix (Updated 8/16/09-Completely New Scripts!!)

​
This Right Here Is Revolutionary!!
Have you ever been out and about, and checked your task manager and saw that Activesync has started up randomly, and is running in the background sucking down your battery?
Then this is just the program that you need!
ASKicker is just a few different simple scripts that I molded together.​
What does this do?
Well basically this program scans a registry location on your phone that tells your phone whether you have a USB cable plugged in or not.
Based off of that information, if you do not have the USB cable plugged in, then the script will close out of ActiveSync everytime it runs. When you plug in the USB cable (Or place the phone on a dock), ASKicker will then open ActiveSync and wait for you to unplug the phone from the USB cable so it can kill ActiveSync from running.
This should not affect push mail. I do not have nor use push mail, so everyone that uses it, please give me feedback if it does affect it. But according to everything I've read online about Activesync and push mail, ASKicker shouldn't bother it at all. Infact, that's part of the main reasons why I've created this solution.​
What are the requirements?
Only two things are needed:
First and foremost you'll need this registry location:
HKLM\Software\OEM\USB
"Cable_In" "0"=No "1"=Yes
(My Vogue and TouchPro Have This,
So I'm Sure Most Of PPCs Have This!)​
Secondly you'll need Mortscript.
You can get a copy of this
and the manual and a few examples
at the Download Link in my FAQ(Link In Signature).​
Tested On:
* Touch Pro (CDMA) - Working
* Vogue (CDMA) - Working​​Notes:
This Is Still In Beta!
There are two shortcuts that are created in the start menu.
The first one is "ASKicker"
This shortcut will either start the script, or if it is already running, it will ask if you want to end the script.​
The second one is "ASKicker Settings".
With this shortcut, you will be able to choose a few different things. There is an option to open the Instructions and ReadMe documents. You're also able to turn on and off the AutoOn at StartUp option(Default On). Aswell you're able to choose the amount of time that the script waits to run again, you're able to choose from either 5,10,15,20,25,and 30 seconds (Default 15).​
**Please keep in mind the higher the amount of time,**
**the longer that ActiveSync could be open before the script runs again,**
**and also the longer that it could take for ActiveSync**
**to start up when you plug it into the USB.**​
This is VERY light weight.
The biggest part about this program is the Instructions and ReadMe Word Documents and the Icon Dll.​
Coming Soon:
Custom user input for the amount of seconds the script waits to run again.
(Currently only have a choice from the presets).
App-To-Date Support.
Better User Interface coming later.​
Rapidshare Download Mirror.
PPCGeeks Thread!
This Program has been completely reworked.
If you have any problems what-so-ever, let me know ASAP!​
Reserved.
(Just because everyone else does it.)
I will be keeping a to list at both PPCGeeks and XDA-Developers with the different requests.
Can't guarantee I will incorporate them, but will try my best to when I have the time.
Possible To Do List For Next Version(s):
What's listed in post #3.
Hey man -
Any chance you can make this into something which runs Activesync once a day or something? A lot of folks here use AS for Google Calendar, and it makes no sense to sync every 3-4 hours (which is the max allowed) when all we want is once in the morning or something. The rest of the day AS just sits there and eats our batteries.
And maybe have the functionality of syncing using GPRS and not strictly USB.
THANKS though - was really looking forward to some AS tweaks.
I don't have GPRS so I'm kind of screwed on that part.
(I have a cdma phone.)
but I can try and see if I can figure out the stuff needed for that through the internet.
Also, I think I have an idea on how to do that first part (the once a day)
when would be the best times for everyone? like midnight, one am? etc.
(I'll eventually make more times once I get the hang of it!)
fixed the initial problem. forgot to replace a file with a newer version.
woops.
Can you describe the problem this application is solving?
Jorlin said:
Can you describe the problem this application is solving?
Click to expand...
Click to collapse
Do you ever look at your task manager and find that activesync start running out of no where, then this is what you need.
I'm not sure if this is more towards CDMA version of phones,
but there has been tons of posts and threads started because of this and they wanted a way to stop that from happening, well that's what this does.
it's a SMALL script that runs and stops it from hogging up your memory or wearing down your battery.
All of the fixes for this problem have eliminated push email from working,
or eliminates activesync from working on the phone period(even when connected to computer). etc.
codybear said:
Also, I think I have an idea on how to do that first part (the once a day)
when would be the best times for everyone? like midnight, one am? etc.
(I'll eventually make more times once I get the hang of it!)
Click to expand...
Click to collapse
How about 24 hours from the last time it's launched (automatic or manually)? If that's too much of a hassle, midnight is just fine.
FYI-
The way I do this right now is to choose sync every 4 hours for peak and manually for non-peak and set the peak-time as 12-1AM.
The problem still is that the rest of the day - it's eating eating eating ... battery.
For me, to get rid of ActiveSync always starting, it was enough to remove all of Notifications (with Dotfred's Task Manager) except the one for RNDIS, and setting following registry key: HKCU\Software\Microsoft\ActiveSync\KeepAlive to 0.
Cody which version should be used on a sprint touch. I downloaded them all, but not sure which one to install on the phone.
the_ozyrys said:
For me, to get rid of ActiveSync always starting, it was enough to remove all of Notifications (with Dotfred's Task Manager) except the one for RNDIS, and setting following registry key: HKCU\Software\Microsoft\ActiveSync\KeepAlive to 0.
Click to expand...
Click to collapse
Interesting,
does this affect your push email?
sahiljain22 said:
How about 24 hours from the last time it's launched (automatic or manually)? If that's too much of a hassle, midnight is just fine.
FYI-
The way I do this right now is to choose sync every 4 hours for peak and manually for non-peak and set the peak-time as 12-1AM.
The problem still is that the rest of the day - it's eating eating eating ... battery.
Click to expand...
Click to collapse
ski21 said:
Cody which version should be used on a sprint touch. I downloaded them all, but not sure which one to install on the phone.
Click to expand...
Click to collapse
All versions can be used.
The vXXS at the end of the names mean v=version
XX-the amount of time it waits to loop the script again.
S=seconds.
so if you want it to check every ten seconds get the v10s,
every twenty seconds get v20s,
and so on.
Battery consumption with AS
sahiljain22 said:
The problem still is that the rest of the day - it's eating eating eating ... battery.
Click to expand...
Click to collapse
There is some debate about how much resources AS uses when running in the background. Some say practically none. It just seems reasonable that ANY program (including ASKicker) will consume SOME resources (memory/battery).
I did some tests on my Tilt using the Battery Guard program to measure the battery drain at any particular time.
According to those measurements, AS appears to be consuming about 20mA of battery during its idle time. Your mileage may vary. See the full results here: http://forum.xda-developers.com/showthread.php?p=4078369#post4078369
Ray
the_ozyrys said:
For me, to get rid of ActiveSync always starting, it was enough to remove all of Notifications (with Dotfred's Task Manager) except the one for RNDIS, and setting following registry key: HKCU\Software\Microsoft\ActiveSync\KeepAlive to 0.
Click to expand...
Click to collapse
But then you wouldn't have meeting reminders, nor automatic updates say to your weather software, rss news, etc, right?
I would really like to get this working on my tilt.
I use codyppc personalizer which I believe uses Mortscript too.
After I installed askicker and it didnt appear to be working, I installed mortscript 4.3b2. Now (in advanced task manager) I show two processes of Mortscript.exe running, one in \program files\mortscript and one in \program files\personalizer. Is there a conflict here?
Active sync is still running. Does Mortscript have to be installed in a specific place for this to work?
Thanks in advance.
wisniak said:
But then you wouldn't have meeting reminders, nor automatic updates say to your weather software, rss news, etc, right?
Click to expand...
Click to collapse
I'm pretty sure you wouldn't then.
It screwed mine all up when I did what he did.
sbbass00 said:
I would really like to get this working on my tilt.
I use codyppc personalizer which I believe uses Mortscript too.
After I installed askicker and it didnt appear to be working, I installed mortscript 4.3b2. Now (in advanced task manager) I show two processes of Mortscript.exe running, one in \program files\mortscript and one in \program files\personalizer. Is there a conflict here?
Active sync is still running. Does Mortscript have to be installed in a specific place for this to work?
Thanks in advance.
Click to expand...
Click to collapse
I just replied to your message with this same exact thing.
I forgot about this thread.
I have been REALLY busy lately,
and hurt my back at work,
so I've been out of commision on here for a while.
I plan to have it finished and fixed by friday/saturday.
But it might be delayed depending on my website I have to get finished ASAP,
and I've already been put a day behind schedule with the website after I came up with the friday/saturday deadline.
So only time will tell.
Sorry it's taken so long people.
This was in hardcore beta stage when I initially released,
and had a BIG problem with my cab program and computer,
and it's just been one thing after another. haha.
so yeah, this will be done friday/saturday hopefully.
cant wait till this is fixed so I can use it on my TouchPro and Titan!!!
Active Sync Master
i couldnt sleep all night trying to figure this out. THANX ALOT!!
I thought no one wanted it, but I have been messing with a UI for it,
that way you'll be able to specify the amount of seconds between each time it runs, and a few other things and will be able to update with future components that I am working on myself.
I have about another week of summer left, so hopefully I can get my website I've been working of FOREVER(I've been going wakeboarding and going out too much). but I want to fix this sometime this week!!
Just thought I'd update you all!
Sorry I've been MIA from alot of my forums lately.
Bump!!!
This is new!!
Just got finished!!
Read all of post one before commenting please!!
Cool, thanks cody, was wondering what happen to u. Are u still making a custom rom for the vogue too, or have u been too busy.
NM on the vogue rom. I see where u don't have a vogue anymore.

@chefs: reward offer for "task-snoozing"

Dear Chefs,
thank you for all great work you have done so far!
I use the Energy ROM for about two months and I'm stunned about all the great features he provide.
However, there is one thing I can't stand: The lack of appointment- and task snoozing other then 5 minutes. This makes the remind function almost useless.
My German t-mobile branded TP2 (called: MDA Vario V) came with the option to snooze appointments and tasks by a selectable time. So I could choose remind me in one or half Hour for example or one day and many other options, rather than dismiss it over and over again every 5 minutes. This is really bugging me.
I found a fix from crackwhore but it seems to be not compatible with the current windows mobile 6.5 ROMs.
Because it is so important to me and, as I noticed, to many, many others I want to post a reward and invite everybody who want this feature to join me by posting how much you are willing to donate to the person who find a solution and share it with the community
A proper solution would be a fix that works for the latest generation of WM6.5 ROMs and it would be great to have it already cooked into the popular ROMs, including Energy ROM.
So if somebody finds a solution, everybody who joined me is asked to donate the promised amount to the person who provided the solution.
I start off with a offer of 10$
Feel free to join me and make suggestion.
And please be true to your word: Don't offer something you are not willing to donate.
Current Offers (25.10.2009 01:25 UTC):
10 US-$
and
0 €​
Why dont you ditch MS with another commercial application in the market? Couldn't you able to find one? I dont remember it but there was a program like this. Google it I suggest.
You can set the "reminder" time as any minutes/hours/days when you add an appointment. Am I missing something here?
NVM, I solved it! I was able to replace the new Notification.dll that handles the notification bubbles with an old, stock one. See the next post for the solution I made!
Question
Did your stock German ROM have the notification manager, where you'd click the taskbar, and it brings up that full screen? And also, did it have the skinned notifications, like the EnergyROM does? Please just describe exactly how the stock ROM handled the notifications, describe it visually.
Information
I researched this for 5 hours, and I was trying to do this: I wanted to make the Notification Panel remain (Full screen when you click on Taskbar), BUT, I wanted to use the standard Windows Mobile notification popups, because those allow you to snooze better. Well, that's not possible, from what I could tell. It's either all or nothing, you can't mix Microsoft's and HTC's notification system.
Solution
So, you have to disable the entire thing, which means you won't have the finger friendly notification system when tapping on the top taskbar. You can find the registry to disable Notification Manager here: http://forum.xda-developers.com/showpost.php?p=4125405&postcount=3
Advanced Notifications Power Snooze Appointments!
I solved it!! It's CABbed up, and available on my website, Wingster.
Get your solution here: http://thewingster.com/advancednotifications.aspx
And if you want to donate, then follow the link on the bottom of my Wingster website, or use this link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5401195
Maybe I should have waited longer, for the bounty to increase! Nah, I did this mostly for myself, but it did end up taking 5 hours! I hate registries!
How I Created It
I found the old NotificationLayout.dll, and used that one for handling the notification bubbles! This brings back the old WinMo notification style popups, but it also keeps the finger friendly notification panel! Win-win!​
Imagine how fast the world is, I wish you could solve my break off with GF such a fast.
Have Fun, Cheers
Sunny
the solution that brings the old popups up, has been around since my touch x 6.0 and that is since december last year...
well well well......
Awesome. I had used the crackwhore one and it worked but this is better
ace10134 said:
Advanced Notifications Power Snooze Appointments!
I solved it!! It's CABbed up, and available on my website, Wingster.
Get your solution here: http://thewingster.com/advancednotifications.aspx
And if you want to donate, then follow the link on the bottom of my Wingster website, or use this link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5401195
Maybe I should have waited longer, for the bounty to increase! Nah, I did this mostly for myself, but it did end up taking 5 hours! I hate registries!
How I Created It
I found the old NotificationLayout.dll, and used that one for handling the notification bubbles! This brings back the old WinMo notification style popups, but it also keeps the finger friendly notification panel! Win-win!​
Click to expand...
Click to collapse
Curious before I use this, how is it different than crackwhore's fix?
jank0023 said:
Curious before I use this, how is it different than crackwhore's fix?
Click to expand...
Click to collapse
FYI, crackwhore's is a better solution it doesn't eliminate the repeat function so what happens you get the alarm one time which was just as big a concern that I've had with some of the ROMs.
jank0023 said:
FYI, crackwhore's is a better solution it doesn't eliminate the repeat function so what happens you get the alarm one time which was just as big a concern that I've had with some of the ROMs.
Click to expand...
Click to collapse
shiat..might I add, you can uninstall the cab but the dll has been overwritten so some how I gotta find the original and use crackwhore's or hard reset plus crackwhores.
smaberg said:
the solution that brings the old popups up, has been around since my touch x 6.0 and that is since december last year...
well well well......
Click to expand...
Click to collapse
Lol dam. Wasted that effort for nothin? lol. Well we can add mine to the collection of CABs that do the exact same thing as the other
Hi,
sorry for the delay, but university was keeping me extremely busy this week.
However I'm glad you found a solution. It's so unimaginably convenient to be able to snooze the alarm!
However would it be possible to add some options? There is still room on the display for one option isn't it?
Very handy would be having options like four and twelve hours (half day).
I would rather surrender 10 minutes while already having 5 and 15 minutes.
(or maybe better: surrender 15 minutes while keeping 10)
However the current stage of development is already great and of cause I will stand my word of donating 10 bucks.
I invite everybody who like this fix to also support him since he was fair enough of not "waiting" for the bounty to increase first and he's doing a great job with his website anyway.
Best Regards, Time
PS: You are talking about other - already existing - solutions? I only found crackwhores fix and didn't get it to work. Well now I have a great one-click-solution I won't surrender ... would be just interesting to know.
PPS:
Question
Did your stock German ROM have the notification manager, where you'd click the taskbar, and it brings up that full screen? And also, did it have the skinned notifications, like the EnergyROM does? Please just describe exactly how the stock ROM handled the notifications, describe it visually.
Click to expand...
Click to collapse
By next week I will flash my ROM anyway so I could flash the stock ROM in between and check if that helps. Interested?
TheTimetraveler said:
PPS:
By next week I will flash my ROM anyway so I could flash the stock ROM in between and check if that helps. Interested?
Click to expand...
Click to collapse
Yea, flash the stock German ROM, and see how that operates. It'd be very interesting if they kept the advanced snooze options while keeping the slick notification style too.
I think that editing the DLL's is impossible though, but I guess it'd be worth a try. My initial goal was to keep the skinned notifications but add the snoozing. That'd be the optimal goal, and I will try to see if that can be done!
ace10134 said:
Advanced Notifications Power Snooze Appointments!
I solved it!! It's CABbed up, and available on my website, Wingster.
Get your solution here: http://thewingster.com/advancednotifications.aspx
And if you want to donate, then follow the link on the bottom of my Wingster website, or use this link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5401195
Maybe I should have waited longer, for the bounty to increase! Nah, I did this mostly for myself, but it did end up taking 5 hours! I hate registries!
How I Created It
I found the old NotificationLayout.dll, and used that one for handling the notification bubbles! This brings back the old WinMo notification style popups, but it also keeps the finger friendly notification panel! Win-win!​
Click to expand...
Click to collapse
Sorry ace
it doesnt work for my TP2 with valkyrie.ftp v5.8.23534 wm6.5 15th feb (without footprint\doc)
the cab installs fine but no love when it comes to notifications
spiro said:
Sorry ace
it doesnt work for my TP2 with valkyrie.ftp v5.8.23534 wm6.5 15th feb (without footprint\doc)
the cab installs fine but no love when it comes to notifications
Click to expand...
Click to collapse
Yourestarted your phone after installing it, right? Maybe his ROM has some different notification system...I could try to look into it if you can confirm it still didn't take effect after a restart.
ace10134 said:
Yourestarted your phone after installing it, right? Maybe his ROM has some different notification system...I could try to look into it if you can confirm it still didn't take effect after a restart.
Click to expand...
Click to collapse
Yes I restarted the phone after installation but it didnt work
I would reeeeeally Appreciate it if you could look into it
You dont even need to make a .cab file, just give me some guidance on how to replace the .dll you mentioned in your post that worked
spiro said:
Yes I restarted the phone after installation but it didnt work
I would reeeeeally Appreciate it if you could look into it
You dont even need to make a .cab file, just give me some guidance on how to replace the .dll you mentioned in your post that worked
Click to expand...
Click to collapse
Well.....
First, download This File, unzip it, and place the DLL in the \Windows directory of your phone.
Now, here's where it may be different, apparently. Using a registry editor (like PHM Registry), try to find the string that is called CustomUIDLL and contains NotificationLayout.dll.
That string key should be located under HKLM/System/Shell/Notification/OEM, however since the CAB didn't work, Valkyrie must have changed the location of the registry key. See if you can find it. Once you do, change the string value to: "NotificationLayoutOld.dll"
Hopefully that'll get it working!
ace10134 said:
Well.....
First, download This File, unzip it, and place the DLL in the \Windows directory of your phone.
Now, here's where it may be different, apparently. Using a registry editor (like PHM Registry), try to find the string that is called CustomUIDLL and contains NotificationLayout.dll.
That string key should be located under HKLM/System/Shell/Notification/OEM, however since the CAB didn't work, Valkyrie must have changed the location of the registry key. See if you can find it. Once you do, change the string value to: "NotificationLayoutOld.dll"
Hopefully that'll get it working!
Click to expand...
Click to collapse
Thanks man!
Ill try it and post back
spiro said:
Thanks man!
Ill try it and post back
Click to expand...
Click to collapse
OK.
Under HKLM/System/Shell/Notification/OEM i have one folder named "reminder" and 3 other items named "default", " customUIDLL", and "userdefaultUI"
if i click on customUIDLL the string already reads "NotificationLayoutOld.dll" ( iguess from when I applied the .cab file) so there is nothing to change!
Also here is a screenshot of the contents in the HKLM/System/Shell/Notification/OEM/reminder folder that I mentioned above
should i be editing the autodismissextendedduration file?
BTW I forgot to mention that when i install the cab file instead of "snooze' at the bottom bar I get the "menu' on the right and also another symbol on the left (like a phone with an 'x' next to it" but if i click on any of them the notification goes away and does not come back
So in essence the .cab works (because it points it to something else) but the location it point to, doesnt contain the necessary file to show up when you click on the the "menu' icon or the other icon that comes up SORRY I DIDNT MENTION THAT EARLIER BUT I WASNT AWARE OF IT TILL NOW.....

a little help

I am looking for a little help if some nice person could take the time. I have been playing around with my registry and have done some cool things but alas I have gone too far and have forgotten my way. I was wondering if someone could take a screen shot or even take the time to message me the default values for HKEY_LOCAL_MACHINE/ControlPanel/Themes/ and then all the values in the 0 and 1 folders. Just those two folders. I have managed to take screen shots on my HD7 with a free program called Windows Phone Device Manager.
I will patiently wait for someone with the time. Thank you

Categories

Resources