Battery tool for PPC and Smartphone devices ??? - Windows Mobile Development and Hacking General

Hi all,
I would need to calculate the instantaneous consumption of battery of a today plugin. If this software create log files, this is better.
I search this type of software for Pocket PC and smartphones devices. The softwares what I already find are not good for me (they're are other today plugins for example).
Many thanks in advance.
P.S : Excuse my english, but I'm a beginner.

I think this is what you're looking for:
http://www.pocketpcmag.com/_archives/aug06/battery.aspx
P.S. I am not sure what you're doing in your plug-in, but I doubt you should be concerned about it's battery consumption. It would have to be a pretty heavy program (like media player or PIE) to significantly impact battery life.

Thanks a lot for your response.
I download this software immediately and I test it with my plugin.

Related

WMP plug-in

Hi all,
This is my first post in this forum and I hope that I will find some help here :wink:
I am a c++, c# and vb programmer, and I am very good in VC++, DLLs, ..., you know that stuff..
I want to develop a plugin for pocket windows media player but I dont know where to start!!
can anybody shade some light please :wink: , any references , articles ,examples, tutorials, anything you might find useful is welcome :lol:
Thank you,
Mohammad Gdeisat
mohgdeisat said:
Hi all,
This is my first post in this forum and I hope that I will find some help here :wink:
I am a c++, c# and vb programmer, and I am very good in VC++, DLLs, ..., you know that stuff..
I want to develop a plugin for pocket windows media player but I dont know where to start!!
can anybody shade some light please :wink: , any references , articles ,examples, tutorials, anything you might find useful is welcome :lol:
Thank you,
Mohammad Gdeisat
Click to expand...
Click to collapse
Salam Brother,
I am not interested in the WMP plug-in but I can give you a suggestion.
Why not develop a Plug-in behind the plug-in...?
Hmmmm.... what is that.
What is that...!
Hmmm. There it is...
Develop a Clock Plug-in but instead of ordinary today plugin... This plug-in is displayed behind the other today Plug-in...
See my attached image for some idea......
Thanks..
rmercado: that would be quite difficult, because the Windows API has a built in routine to make today plugins "transparent", which basically paints the today wallpaper through onto the plugin.
In order to do what you say, I think you'd have to subclass every today plugin and intercept its WM_PAINT, monitor screen draws and then squirt in your background plugin at the end of the screen draw. But this would still not account for different screen draws by the various plugins, so you would also have to force a syncronised refresh every so often, otherwise bits of the background would be out of sync.
There are much easier ways to achieve what you want, basically by writing a replacement for the today screen with today plugin emulation.
mohgdeisat: download the sdk. There are good examples in there.
Also check out PocketPCDN, and I recommend the book, “Programming Windows CE.NET” by D. Boling.
V
Thanx alot friends for ur replys,
Actually, I think I might have been missunderstood, I am not planning to write a "today plugin" to be displayed on the today screen, I am planning to write a plug-in for the WMP application, for example an equalizer for WMP.
I need to get the sound data that are being played, adjust them based on equalizer settings, then play the new data.
I dont know if Pocket WMP is designed to support such "functionalty extensions", and I really have no idea where to start my work, I can work with .NET or with C++, and I think I can learn it fast..
Any light can be shaded here?? waiting for your help guys :wink:
Mohammad
What would be really awesome would be to use the microphone of the phone to get ambient background noise, and then with some clever signal processing superimpose the negative waveform of the background noise over the audio output of WMP - effectively, a noise cancelling plugin that uses the microphone on the phone.
Not sure if the Wizard could handle it though, especially if it's streaming bluetooth audio!
Afraid I can't help on where to start writing a plugin...
Oliy
Thanx Oily,
It would be really a great idea, but I think that ourbeloved wizards cant perform heavy sound processing, maybe this would be more feasible on XDA Atom which has a faster processor.
Thanks for ur idea, but where should I start???????????? :wink:
Mohammad
Try the media player SDK.
V
thanx vigay,
I am taking a look on MSDN WMP sdk, seems to have good information, but still needs time to be understood well.
Just a note guys, I dont like to duplicate others work, so are there any plug-ins available for Pocket WMP, and what kind of plug-ins are out there?
Mohammad
Hi friends,
I really wonder what is the best approach with regard to performance when processing and displaying images:
1. is it DDBs??
2. DIBs?
3. OpenGL?
4. DirectX?
or maybe other??
plz provide me with ur advice.
Thank you,
Mohammad
mohgdeisat: you might want to open another thread in the development section for this question.
AFAIK - Microsoft is pushing DirectX, but it's WM5 only for now, not WM2003. Otherwise, depends on what you're working with. OpenGL is unlikely to be great, due to lack of good hardware acceleration.
V
I do not know if you have looked at this but it might help you.
http://msdn.microsoft.com/mobility/windowsmobile/howto/starterkits/default.aspx
I do not know if you have looked at this but it might help you.
http://msdn.microsoft.com/mobility/windowsmobile/howto/starterkits/default.aspx
Click to expand...
Click to collapse
Yes its great, and I will study.
Thanks,
Mohammad
I'm sure this has been mentioned but i thought id post a link to the media player 10 SDK
http://msdn.microsoft.com/library/d.../wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
Some useful info on plugins.

[new release] One more taskbar battery meter

Hello.
I recently decided that the i-mate tray battery meter was not good enough for my needs and wanted to find a better one. After a few hours of looking and not finding one that was perfect for me I wondered: how hard is it to write one?
Well, apparently its very easy.
I decided to share the result with the community. There are much better ones out there, but perhaps someone will find this one suitable as well.
Whats so special about it?
Its tiny! Only 8.5k. Downside of this - it doesn't have any options, nor do I intend to add any in the future to keep current size. Also it receives notifications on battery as they come in, so its very accurate without having to constantly check the battery and generate unnecessary CPU load.
It takes its behavior from the device driver which is why it will act differently on different devices when battery is charging. (Some devices report battery full, others report accurate percentage, yet others "slide" it in a loop).
View attachment priview.bmp​
Also it starts just after MS logo (as you can see from the screen shot I have that space occupied) and doesn't fill the whole screen (14 pixels are left so the units could be evenly sized).
Well here it is, enjoy View attachment LvmTopBat.cab
For those who wish to learn how this program works, or to create another using it as a base, here is the entire project:
View attachment LVMTopBat.zip
The project compiles under eVC 4 with Windows Mobile 2003 SDK.
This program is now released under GNU/GPL v3.0
(See License.txt for more info)
Hope you will find it useful.
Levenum,
Great little app. I wonder how it differs from the Sbp meter used in PocketPlus.
I like it!
Yeah, don't add any options to it, I like the idea of an 8.5k program. That was my problem with Batti, it just grew and grew and I don't care about that info.
thanks!
look nice, i will try it
Does it change colour? If not could you make a gradiated texture?
1-10% Red
11-30% Yellow
31-100% Green
levenum and others,
FYI, I decided 8.5 kb was just too big :lol: (I'm toally kidding) so just to let you guys know, you can UPX the file down to 6.5kb with no issues. :wink:
JNGold said:
I wonder how it differs from the SPB meter used in PocketPlus.
Click to expand...
Click to collapse
Never tried SPB PocketPlus so not sure. Maybe just the fact that it's not full screen.
Tyr said:
Does it change colour?
Click to expand...
Click to collapse
Actually, it does but only according to what the device reports. I found that on my Jamin for example, it reports 'low' (yellow) at 10% and 'critical' (red) at 5%.
It goes blue when charging, and I would really like to know if anyone got purple. According to MSDN documentation, there can be an 'undetermined' state reported by the system, but I doubt it can be encountered while device actually functions.
malatesta:Nice 8)
When I resume TyTN from the power saving mode, the indicator becomes purple for a second. So I can confirm that it works
It is better than SPB Pocket indicator because SPB is always grey, does not indicate charging, and its segments are of fixed length in both portrait and landscape and therefore have no a real relationship to the charge level.
It is better than IndiLite because it loads from the Startup folder (IndiLite from registry) and does not affect SafeMode of SPB.
Also it does only battery indication and this is good as well - there are too many apps and plug-ins that duplicate each other but not fully. For instance, before I used IndiLite only for the battery indicator, and SPB Pocket for task management.
is there a way to deactivate the spb pocket plus taskbar battery indicator (without removing spb pp), and have it replaced with this one?
Lurker0: Thanks for the test and the compliments.
Also it does only battery indication and this is good as well - there are too many apps and plug-ins that duplicate each other but not fully.
Click to expand...
Click to collapse
This is exactly why I wrote it - small and to the point. No sharing small (yet precious) today space with memory indicators or other stuff.
Now someone needs to make a fully WM5 compatible Today screen plugin that just says this:
Battery: XX%
No fancy graphics, no graphs, no storage card memory monitors. Just something (maybe) with a configurable font (like TodayAgenda).
I know there are a couple out there but some have issues with refresh on WM5 and most others are just giant graphs that tell me nothing :lol:
try this
http://forum.xda-developers.com/viewtopic.php?t=55782&postdays=0&postorder=asc&start=0
Marx2 said:
try this
http://forum.xda-developers.com/viewtopic.php?t=55782&postdays=0&postorder=asc&start=0
Click to expand...
Click to collapse
Wow, thanks Marx2!
I used this app awhile back and completely forgot about it :lol:
malatesta said:
Now someone needs to make a fully WM5 compatible Today screen plugin that just says this:
Battery: XX%
No fancy graphics, no graphs, no storage card memory monitors. Just something (maybe) with a configurable font (like TodayAgenda).
I know there are a couple out there but some have issues with refresh on WM5 and most others are just giant graphs that tell me nothing :lol:
Click to expand...
Click to collapse
Someone extracted the O2 battery monitor from their software package version 3. It has a very simple bar for the main and backup batteries and a percentage.
levenum, I have one suggestion
Currently the indicator is divided into 20 segments. As I understand, there are devices that are able to provide battery information with 5% granularity (mine is 10%), and that's why you made it this way. But IMHO it is much easier to count 5 (from the middle) than 10.
So I'd suggest you to draw only 10 segments, and color a half of the segment, if required to display the odd 5%.
Actually, 5% granularity just seemed like a good compromise between accuracy an visibility. Like I said in the above post I made this for my self.
From every device I've seen and MSDN documentation it appears that all WM devices report battery status with 1% granularity so that should not be an issue.
As for your suggestion I currently have to arguments against it:
1) Having different graphics and handling for two halves of the segment (even though there will be half the segments) will mean a slight increase in processing power and size of file - something I am trying to avoid.
2) I don't think that half painted segment will look good.
I am considering releasing a full screen version soon though, so if I hear from more people in support of your suggestion I may implement it there.
levenum said:
I am considering releasing a full screen version soon though, so if I hear from more people in support of your suggestion I may implement it there.
Click to expand...
Click to collapse
Personally, I like 5% (my treo does 1%) so this is just fine.
What do you mean by "full screen version"? You mean edge to edge, I assume?
first thanks for a great little App.
Personally i think that functionality wise it's fine as it is but i would ask for 2 improvements if possible,
1. Full screen , and as you have already mentioned this you can count it as a vote for it .
2. Would it be possible to change the colours ?
For me the green & blue would be better switched around (green charging & blue normal)
As i'm not sure how much this would add to the code and i agree that smaller is better , so is it possible for a couple of releases in the zip of different colour schemes ?
Thanks
Ok, first - yes, by full screen I meant edge to edge.
Changing the color scheme wouldn't add to the code, and is really a miner change. So yes I will release a zip with several versions, but there is something I have to do on the LVMTime project first.
I am also thinking of the following: without adding to much to the app it is possible to make it read some settings from the registry, like color change threshold, color scheme and whether it is full screen or not.
I just wonder if it will be to much to tell people to use a reg editor to change settings. (I am really not feeling up to implementing an XML parser)
well i for one have no problems with reg editing at all

Webcam and touchscreen+Onenote performance

I'm a guy who is unfortunate enough to be carrying around a notebook computer most of the time for work and is starting to get a bad neck so am starting to look for a serious alternative. I've been following the HTC SHIFT discussion and reviews avidly but unfortunately till now I have been unable to get the answers which I seek. I hope one of you can help me with this problem.
I generally use my notebook for 5 tasks and I need to ascertain whether the HTC SHIFT is up to these tasks before committing to one (otherwise I'm going to use the same money and get a Dell XPS)
1. Web video call with MSN Live Messenger - does the SHIFT offer adequate performance with its webcam/processor power/memory capacity to perform this properly?
2. Note taking - I've never used a tablet PC before, so does the Touchscreen/OneNote combination actually usable? For example, the Notes program on WM5/6 is NOT useable in work situations: The width of the pen "nib" draws a line that is too thick on the screen, the ink appears late on the "paper", causing a disconcerting delay effect, and the screen on PDAs is too small for this purpose.
3. Since this is an INTERNET device, I would be installing the relevant security programs on it, e.g. resident antivirus, antispyware and firewall programs. With an 800MHz processor and only 1GB of RAM running VISTA, would I still have a usable computer? I'm only talking about EXCEL/WORD/POWERPOINT/ONENOTE/WMP/YOUTUBE type usage.
4. Powerpointing - I believe the SHIFT would be perfect for this, with its VGA output and small size.
5. Internet browsing - as I understand there has been no problems with speed whilst browsing
It would be incredibly appreciated if those of you who own this device or have a test device or have tested the device to give me any information!
Thanks
I've not used MSN Messenger but have used it with LCS and performance seems fine.
Note taking with OneNote seems to also be ok but you won't want to have too many applications running in the background. I'm keeping mine to the bare min really and concentrating on Office 2007 products (with the exception of Visio. I comes with an AV product but I've replaced it with McAfee and that seems to be ok. Using it with Outlook 2007, Word Excel PPt etc its really only large or multiple files that seem to cause serious lag.
Alan,
Sorry, just to clarify, do you think that Onenote/inking capabilities are acceptable on the Shift, as I've read elsewhere that they're not up to much?
Cheers
Squiggs

New Wizard owner, questions

Hi, I recently acquired an HTC Wizard, and really love the device. I'm a quick learner, and have been tinkering with it to make it perfect for me.
It has WM5, and while I know it is recommended to flash to a rom from here, the fear of bricking is too much, even though I know it is safe.
I've installed the following onto it:
PocketNester
Macromedia Flash Player ActiveX (is this necessary btw?)
KevTetrus
SP Time Sync
Burt iContact
Ilium Software Tipster
Aspecto Software WiFiFoFum2
Corner-A PDA Status
Weatherbug Direct
Google Search
Spb Tech WMP Skin
MS .NET CF 2.0
Google Maps
Microsoft Live Search
As the phone I acquired was 2 years old, I noticed the battery couldn't seem to hold a charge, so I bought a new one.
However, the new battery doesn't seem to fair much better...I kept the phone in my pocket, unused but on, and it ran down from 100 to 40% in 8-9 hours, is this normal?
I keep the WiFi off unless I'm using internet, and I have the screen turn off after 10 seconds. Are there any other power-saving recommendations, or concerns? I noticed this post http://forum.xda-developers.com/showpost.php?p=2508856&postcount=5
and I'm going to try the power tool.
Power test results back:
Battery stayed at 100% until it read 99% at 44:06.
It went to 98% at 48:06 and 97% at 54:07, where it remained until the test was over.
What does it mean?
Hi,
It means your battery is fine.
But wich helped for me to stop the power drain was setting the active sync to manual:
1. open active sync on your ppc
2. tap options and add a server
3. give some dumy information (false address, username, and pass)
4. if you're done tap options again and press schedule (or something like that)
5. set both dropdown boxes to manually and save the settings.
6. close active sync from taskmanager
You still can use active sync by connecting to pc, but when not connected, the active sync won't start automatically. you can also search for some tweaks for PPC using google.
There you'll find some egistry tweaks (you can enter registy using a 3rd party registy program)
With many tweaks and the active sync trick, I could use my htc wizard for 3 days without charging (I must admit that I'm not calling much, witch uses much power)
I hope this will help you
Good luck!
I don't think I see anything in your current lineup that requires a flash player. I'd ditch it, unless you plan on playing flash media on your Wiz.
I'd also ditch the time sync. You can sync time every time you sync your phone with a computer, so unless your phone's clock is WILDLY inaccurate, I wouldn't bother with the extra junk on the phone.
Aside from that, I'd recommend Total Commander CE. It's a file manager and has built-in registry editing, built-in ascii editing, built-in zip file management, and and FTP manager. Best free tool I ever installed.
Oh, and for the record, there's a reason why HTC never ported WM6 to the Wizard. It's a slow processor and an old phone, and even though you can overclock it easily enough (search for OMAPClock Plus), it will dramatically affect battery life if you do so, never mind the risk of damaging the processor and possibly perma-bricking your phone.
That said, many have had success with overclocking and loading WM6. Your mileage may vary, however. Consider the friendly warning before you proceed. Also, see this post. It's a good bet your next question will be answered by this post, especially if you're a ROM junkie "in the making."
With many tweaks and the active sync trick, I could use my htc wizard for 3 days without charging (I must admit that I'm not calling much, witch uses much power)
Click to expand...
Click to collapse
That's impressive, I'm curious as to specifically what tweaks you used.
The ones I've found useful thus far are changing the location of Temporary Internet Files to storage, allowing PIE to navigate with the directional, and adding time sync Tab to Phone Settings.
That said, many have had success with overclocking and loading WM6. Your mileage may vary, however. Consider the friendly warning before you proceed. Also, see this post. It's a good bet your next question will be answered by this post, especially if you're a ROM junkie "in the making."
Click to expand...
Click to collapse
You misread my post, I said I have no interest in changing my ROM, or overclocking.

[Q] Help in developing Android applications.

Hello everyone, I hope you are fine.
I want to make an inquiry about android application development, because I need to create an application that can capture the battery consumption in smartphone, and read the basics and programming in Java but still not know where to start, if anyone have idea of codes that serve me, help me sources, or any type of information related to this topic, I appreciate it.
I should design the application should look like Battery Mix Battery or Monitor Widget.
Greetings.
L2008 said:
Hello everyone, I hope you are fine.
I want to make an inquiry about android application development, because I need to create an application that can capture the battery consumption in smartphone, and read the basics and programming in Java but still not know where to start, if anyone have idea of codes that serve me, help me sources, or any type of information related to this topic, I appreciate it.
I should design the application should look like Battery Mix Battery or Monitor Widget.
Greetings.
Click to expand...
Click to collapse
Assuming you understand basic Android app development, I recommend you give this a solid read-through. It has some very helpful info on how to get battery level, and how to monitor it, or even have some code ran when the battery level has changed.
http://developer.android.com/training/monitoring-device-state/battery-monitoring.html#MonitorLevel
As stated in the documentation, constantly monitoring the battery will more than likely have a larger battery-consumption rate than a normal app. I think you should use a time:consumption ratio within a service to monitor and display battery usage. I haven't specifically dived into this myself, but here is a basic idea:
1) Get the battery charge level, as well as the time (or possibly the entire date using Calendar class, but I doubt this amount of precision is necessary)
2) Save the battery level, and the time it is retrieved at this level. SharedPreferences is a quick and easy way to integrate persistent data into your app.
3) Using BroadcastReceiver, you can run some code when the battery level has changed (saving charge level, how much time it took to discharge that amount, and doing your calculations/displaying info), as well as when the device has been plugged in or unplugged.
If anyone has some better ideas, please share or improve on mine. I'm still a beginner myself in many ways (Receivers and Services being relatively unfamiliar to me) and constructive criticism is welcomed.
This should at least give you a solid start. Depending on what else you are aiming to build into your application, I may be able to help. I'm not able to get to my computer right now due to moving into a new household, but I can try to point you in the right direction.
Happy coding!

Categories

Resources