obtaining battery life information - Windows Mobile Development and Hacking General

Im looking to write my own app using .NET CF to show the user how much battery life is remaining, and how long it will last. Can anyone give any information or tips on how to do this?

found what i need
http://www.opennetcf.org/CategoryView.aspx?category=Home has a .net namespace with classes for accessing batterylife information. Very good and works easily
luke

Related

Battery tool for PPC and Smartphone devices ???

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.

Real Time Process Monitor?

hi,
is there a process monitor that shows all running processes and their cpu utilization?
thanks
If there was only a search function...
This little free app shows what you need and much more.
Excellent piece of work by DotFred.
THANKS! Thats what the world needed! Perfect Program!

Phone usage monitor

Im looking for a usage monitor which basically will predict my bill for the coming month. It needs to monitor gprs (like spb does) phone calls and text messages.
I have googled for this program, but with no luck.Therefore, im looking to develop it myself, probably using C# with visual studio 2005. I m downloading the trial, but as a user with no experience im going to be using msdn a lot while developing. Does anyone have any good guides for c#? because all the google results are either rubbish or expensive.
And, would it be better to program in a different language? [Ive looked at C++, but seems too complicated with no experience]
Also, what are some of the popular apps written here on xda-devs written in? [eg melody, slide to unlock, oto, schaps' programs etc]
Any if anyone knows of a product like this that already exists, please tell me, and save me some work.
And, does anyone know a way to get msdn premium subscription on its own or cheaply? As i think its a great resource just waiting to be tapped.
Thanks to you all here in the great developers forum, I just want to be considered on of you greats some time
Rory
x

Free program to monitor tasks/cpu usage?

Is there a free program for the Herald (WM5) to monitor tasks and cpu usage?
Greetings and thanks,
Battery Status
Search these forums for BatteryStatus.
It will not only show CPU usage but it will enable you to under/overclock your cpu (stable up to 273 continious) and has several usefull tools included.
Search these forums for X-buttom.
It will display the running programs (not tasks) and lets you swap and close the programs.
There's also a little tool for showing the tasks, but I forgot the name; did you already perform a search thru the forums?
I did perform a search but couldn't find anything. Maybe I wasn't looking for the right things. BatteryStatus looks nice but it doesn't show a per-process task and how much cpu each task is using. I'm trying to find out why sometimes my Herald seems to be draining a lot more battery then at other points. I found some threads on these forums about this problem but none seemed to give a solution to that problem.
Greetings and thanks,
MemMaid is what you might be looking for. It will show you all the apps that's running and the cp usage per app as well. I'm not sure of other apps out there, but I'm sure this app does this. Hope this helps
robosiris said:
MemMaid is what you might be looking for. It will show you all the apps that's running and the cp usage per app as well. I'm not sure of other apps out there, but I'm sure this app does this. Hope this helps
Click to expand...
Click to collapse
Hmm but this program is not free. There are really no free programs available that have similar functionality? It doesn't have to be flashy or anything.
Greetings,

[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