Android :: Obtaining/calculating Process CPU Usage
May 4, 2009
How can I get/calculate current process CPU usage? ActivityManager provides method that returns a list of all active processes (list of RunningAppProcessInfo), but that class doesn't provide any CPU usage information.
View 10 Replies
May 18, 2009
Is there any way to programmatically retrieve data that reports on application usage as shown in the Spare Parts application? I know what calls need to be made, but it seems that they all use internal APIs...is this true?
View 2 Replies
View Related
Nov 26, 2010
I have been developing a task manager for android for three months I have successfully found the memory usage of a process but I could not find any API or other help to find the cpu usage of a process, so it is requested that any one who knows about it please tell me as soon as possible, if any one has the code then plz share it with me.
View 1 Replies
View Related
Dec 23, 2009
I need to retrieve the CPU usage and memory usage of a particular running process in android. 1. Can i retrieve the above mentioned information in android. 2. If yes how to do that. 3. If not what is the alternative for this.
View 2 Replies
View Related
Nov 3, 2010
I can track the overall bandwidth usage of Android device. I wanted to know if there is any method or way, maybe any API or class that can help me track my bandwidth usage per application or process? Reason for this question? I want to stop all those processes or applications that are using way too much bandwidth usage and draining the battery.
View 1 Replies
View Related
Sep 17, 2010
I'm trying to create a compass for my application BUT the difference is that, instead of having a line always pointing to north, I want this line to point for a specific point. I've been trying dozens of algorithms and nothing works. I've finally found one that points me exactlly to the point I want. But it doesn't move if I change the position of the device which is my objective. Basically, what I want is that no matter the direction I'm using my device. The line always point me to the point (picLatitude,picLongitude). I understood that for the line to move, I can't use static variables. I need to use the values offered by the onSensorChanged(SensorEvent event). This are the data I have available:
event.values[0]: azimuth, rotation around the Z axis (device in relation to north, 0º) event.values[1]: pitch, rotation around the X axis event.values[2]: roll, rotation around the Y axis mLatitude: device current latitude got from GPS (variable) mLongitude: device current longitude got from GPS (variable) picLatitude: static picture latitude established previously picLongitude: static picture longitude established previously distance: distance in Km from device to the picture calculated previously
And this the formula that works correct, and gives me the correct angle. (But it doesn't use any of the Sensor Data so the line Compass doesn't move):
double dLong = picLongitude - mLongitude; double y = (Math.sin(dLong) *
Math.cos(picLatitude)); double x = (Math.cos(mLatitude) * Math.sin(picLatitude) - Math.sin(mLatitude)*Math.cos(picLatitude)*Math.cos(dLong)); double angleDegreesWrongRange = Math.abs(Math.toDegrees(Math.atan2(y, x))); float angleDegrees = (float) ((angleDegreesWrongRange+360) % 360);
myCompass.updateDirection(angleDegrees);
I got this "bearing" formula from this website: http://www.movable-type.co.uk/scripts/latlong.html. I've try adding, subtracting, the azimuth.. I've tried with the others, seriously at this point I'm just demoralized.
View 13 Replies
View Related
Sep 7, 2009
I am trying to calculate a route based based on either geographic location or address. I figured the obvious way would be to use some part of the built-in Google Maps package, but it proved harder than assumed. There used to be a package called com.google.googlenav, but from that disappeared with the 1.0 release of the Android SDK.
I know that Google Maps has a public JavaScript API, but since the application is developed for the Android (in Java) and I would like to have an offline alternative, is there any other library packages, built-in or 3rd party, that I can use to achieve this?
View 3 Replies
View Related
Oct 18, 2010
I have latitude and longitude of two places. Can i calculate the distance between them in android?
View 3 Replies
View Related
Jun 14, 2010
I am streaming an rtsp video to Android. How could I calculate network metrics like packet loss, jitter or delay?
View 1 Replies
View Related
May 21, 2010
Sometimes the DDMS in the Eclipse not listing the process.
To do the debug in this condition,
1) Is their any way force the DDMS to list the process?
2) Any command to attach the process from the command line?
View 2 Replies
View Related
Feb 21, 2009
At a certain point in my program, when I'm completely done with my service, my activity executes unbindService() and stopService() -- yet the process persists. I can tell that it persists because I run "ps" in "adb -e shell":
CODE:.............
"adb logcat", I can show you the sequence of events:
ACTIVITY: context.unbindService(serviceConnection);
SERVICE: onUnbind();
ACTIVITY: stopService(serviceIntent); & returns true!
SERVICE: onDestroy();
First, my activity calls unbindService(serviceConnection). According to the documentation, unbindService() will "Disconnect from an application service. You will no longer receive calls as the service is restarted, and the service is now allowed to stop at any time." So that is fine, and it is happening.
Appropriately, we see the onUnbind() call happen on the service side. According to the documentation, onUnbind() is called when "all clients have disconnected from a particular interface published by the service." So this confirms the correct service connection is being passed, and that the service is responding accordingly.
Next, my activity calls stopService(serviceIntent), and returns true. According to the documentation, stopService() does the following: "If there is a service matching the given Intent that is already running, then it is stopped and true is returned; else false is returned." Again, this is happening and returning true.
In response, the service's onDestroy() method is called. According to the documentation, onDestroy() is "Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead."
At this point I expect the process to disappear from the process table. Yet it remains indefinitely. But why?
Also, the process is so persistent that I can bind to it again, and I see that it is the same exact process responding because the PID (process ID) is the same!
View 4 Replies
View Related
Nov 24, 2010
So, I decided to give Tridents ROM a try about 10-minutes ago.
I used ROM Manager, backed-up my old ROM, then downloaded Velocity 0.2.
Now, my phone will do nothing, it turns on and shows the red Droid eye, then when it's time to go to the home screen I get pop-up after pop-up saying that "The process com.android.phone has stopped unexpectedly. Please try again."
I have no way of getting on my phone at all, what can I do?
View 11 Replies
View Related
Nov 12, 2010
I Just installed a new theme (Live Wire) for my Lithium Mod Rom. Don't know if there is a connection, but when I need to update an app, I get the message something like "process android media process stopped unexpectedly" and it will not allow the update. Everything else works well. I have turned it off for awhile, and have done a battery pull.
View 1 Replies
View Related
May 11, 2010
Every 5 minutes this error pops up "Sorry! the process android.process.acore has stopped unexpectdly. please try again." It doesnt actually close anything. It pops up even when im not in an app. So it's more annoying than anything.
View 3 Replies
View Related
Jul 30, 2010
I'm using Xperia x10 mini. Whenever I try to add a contact to my phonebook, before clicking save this message appears: "The process android.process.acore has stopped unepectedly. Please try again." And I have no other choice but to click "force close"... Another thing is, even though my contacts' names appears in the messages in my inbox, when I click on the phonebook icon, the phonebook is empty...
View 4 Replies
View Related
Feb 1, 2010
Are the processes in android asynchronous? If they are asynchronous then how can we conclude when the activity or process is finished or completed its execution.
View 2 Replies
View Related
Sep 11, 2010
So since I got the phone on Thursday, at random, I'll get these popup crash messages, that say "The process com.google.process.gapps has stopped unexpectedly" it has a "Force Close" button, which doesn't seem to change anything other than to acknowlege the message.It will happen at random, sometimes while I'm on the home screen, or sending a text message, but more recently, as I was trying to manage & link contacts. When I searched for this message it seemed to be related to people using Gmail, but I always get this message when I'm doing other things and not even touching my Gmail account.
View 1 Replies
View Related
Sep 19, 2009
I bought a new phone, but I can not run it.
I get the following information: "Sorry! The process com.google.process.gaps has stopped unexpectedly. Please try again".
View 1 Replies
View Related
Apr 17, 2010
I've searched around the forums (here and SDX forums) and although it seems the few people that had this issue were able to solve it, my case seems a bit different.
It's different because of the people I've read solving the issue, it was a problem with something they changed / removed with gmail / gmail storage or talk / talk storage. And when they cleared the cache or re-installed the problem went away. Also, it seemed that the same people had a problem with downloading from the market...
Neither of the above apply to me, but yet I'm still getting this FC error all the time!
I was helping a friend with their CL14 Moment out of the box...and went from stock 1.5 CL14 to 2.1 DD03 w/Joey recovery to EclairDD10 and v5 root. I then did the streaming media fix, and then the private app (build.prop) fix (all previously done with my phone no problems). I did all of these update right in a row, and after my last re-boot the FC error (process com.google.process.gapps has stoped unexpectedly) started showing up and won't go away.
The only .apk / odex files I removed were the preloaded Sprint apps
Does anybody have any other ideas on how I can get this FC error to stop? I've tried clearing the cache / data for all the mail / talk apps, rebooted, cleared dalvik cache...
View 6 Replies
View Related
Sep 17, 2010
Keep getting this message "The process com.google.process.gapps has stooped working unexpectedly. Any thoughts on what this is and how to resolve?
View 3 Replies
View Related
Dec 1, 2009
I don't know if it's my phone or what but when I look up the Other Usage on my phone, it shows it "Running" more than 2/3 of the time.And on Network Usage, "Android System" and "Media" use a great deal of the phone as well.I think this might have to do with my "android.process.acore" crashing every once in a while when it's asleep. Based on everyone's feedback I might have to return the Moment for a third time.
View 1 Replies
View Related
Sep 2, 2009
I was hoping someone could give me instructions to obtain the *exact *source code for the current SDK. What I have so far is as discussed here; http://androidforums.com/android-developers/1045-source-code-android- By using commands such as; repo init -u git://android . git . kernel .org/platform/manifest.git -b android-sdk-1.5_r3 jar cvf ../android-src.jar -C core/java . etc. my issue is that the source is still inconsistent, some extra methods are available and some are not. For example, I want to make a progress bar with two sliders (To select a range) but the version of Progress bar I have; http:// android .git.kernel.org/?=platform/frameworks /base.git;a=blob ;.http://android .git.kernel .org/?p=platform/ frameworks /base.git;a=blob;> I cannot mimic (as an initial implementation), despite using the same package and extending View I do not have access to 'mMinWidth' for example. In addition the progress bar uses methods of the class StateList Drawable which are not available in this SDK (e.g. getStateSet(int i)). It's obvious that there's an inconsistency between the source I have and that which was compiled into the android SDK but I don't know why given my GIT repo commands. Can someone link to the version of ProgressBar which was shipped with android-sdk-1.5_r3? Has anyone managed to get the branch which maps directly to this release? This might well be due my inexperience with Git, please let me know if anyone has this set up correctly and I will try again. I seem, in all honesty, to have the head revision still.
View 6 Replies
View Related
Nov 3, 2010
Object getThisObjName= new Object();
I'd like to get the name of an object reference.
Is this possible via reflection in Android?
View 10 Replies
View Related
Jul 6, 2010
I'm trying to develop a little game, with 2D Graphics. I want my "gaming board" to be at a specific position on my screen, so that I can display in-game informations above and below the box. But since there is beginning to be a lot of Android phones out there, I was thinking about getting "dynamic" values so that I can adapt my font size to every device.
My game is not in full screen (but it could be, it's no big deal), but in a window with no title bar.
I'm using an extension of the default SurfaceView class, implementing SurfaceHolder.Callback. I tried writing the following method :
CODE:................
But the values returned are zeroes.
(even if it means changing display strategy) ?
View 1 Replies
View Related
Aug 25, 2010
Is there a way to craft a daemon process as to make it "unlistable" to a process viewer?
OR
is there a way to dynamically change a process name?
I'd like to design a security application without having to modify the firmware, if possible (yes I know about "security through obscurity"...).
View 1 Replies
View Related
Dec 31, 2009
I am trying to decode and obtain all frames in a video stream, each of which would be processed by a native signal processing engine and re-encoded back to a MPEG4/MP4 file. I noticed that there was a getFrameAt() function in earlier versions of SDK but its not available in v 1.6 on which I am working. As I am fairly new to Android, I would like to know from more experienced people around here as to how I can extract video frames into a buffer for processing.
View 2 Replies
View Related
Mar 26, 2010
I want to obtain the index of the selected item in a spinner.
I am aware of the method getSelectedItem() which returns the item selected (which might be a String). But i want the index of the selected item.
Something equivalent to the setSelection(index) to set the selected item.
Of course I can get the selected item and compare it against the array of items to obtain the index, but I hope there is a better way of doing this.
View 2 Replies
View Related
May 14, 2009
Is there a method of obtaining the field of view for a phones camera (horizontal and vertical)?
View 2 Replies
View Related
Nov 24, 2010
I can't find a tutorial online that gives me the step by step process on how to generate a suitable key using the keytool in the JDK.
This: http://developer.android.com/guide/publishing/app-signing.html
Talks about it and gives commands, but it doesn't actually say where and in what folder to key in the commands. I am sure I am missing something easy here, but could anyone guide me to where I need to start with this?
View 1 Replies
View Related
May 24, 2010
I have following code:
CODE:...........
Code is working but here goes my problem: when I call it from main activity in this way:
CODE:........
Then i can see 10 times result of 'doing sth else!!!' and when loop is over i can see then result from activity. So sensor activity waits for some reason and then when main activity has nothing to do, sensors are doing their job.
of course I have well implemented: onActivityResult(int requestCode, int resultCode, Intent intent)
I want to read sensord data directly, not using listeners, is it possible?
View 1 Replies
View Related