Android :: Adb Causing 100% Cpu Usage
Oct 22, 2009
whenever any (non-android) java project in my eclipse ide is built, a "Loading Android Sdk Content" Job is started although no android project is open. Furthermore adb is started in the background, causing 100% CPU usage. When killing adb DDMS prints: Code...
View 2 Replies
Mar 26, 2010
I have gone through multiple battery out reboots and my phone is still at 100% awake (via spare parts). I kill every process but voice control keeps coming back. my battery is only good for 3-4 hours as of this morning. battery died once, charged it, and i'm now on my spare!
View 3 Replies
View Related
Nov 22, 2012
Have a brand new HTC One X+ (AT&T). Having an issue where after boot and sometimes all of the sudden during the day, the phone gets hot and battery level drops l like ton of bricks. Using Android Task Manager App and enabling monitor of system processes and selecting realtime monitor, I've traced the problems to "android.process.media". This appears to be something to do with Android scanning the device for media files (audio/video/etc) and creating some sort of database. I also usually see the "Music Enhancer" process which has to do with Beats Audio according to HTC (but I have Beats turned off.)
I've seen old threads of people with same problem and in some cases it had to do with a "corrupted" media file and they had to remove all media files and/or factory reset their device. I just spent an entire weekend customizing this device! Plus, how the heck do you prevent yourself from copying the corrupted file over if it was a corrupted mp3 or something?
I'm pretty sure my issue stems from the fact I used my media manager (Media Monkey) to sync over 2,800 audio files to the device. My collection is of high bitrate quality, about 16GB worth of music. I'm pretty sure this is what it is choking on. What I'm not sure of is if the Media Scan the Android device is performing is just a "normal check" for changes/addition/deletions to any of the media files. This of course would take a lot of time and CPU if it has to scan 2,800 files every reboot or periodically. It seems launching Google Play sometimes starts it too as I also sometimes see Google Play Service:Music or something like that (even though I don't stream any of my audio from Google Play.)
View 1 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
Nov 10, 2010
I'm developing an application which will use magnetometer data for interaction, by moving a magnet towards and away from the phone. This works fine (enough), but it seems like when I move the magnet too close to the phone, a noticeable lag occurs, and these messages are being spit out to the log:
CODE:..........
This can be also demonstrated for example in the app "Compass 3D" which is available on Market. It is enough to move a headphone in direct contact with the phone, it will produce a lag for at least 4-500 msec, and the messages above printed to Logcat. This is on my HTC Hero.
View 1 Replies
View Related
Feb 7, 2010
I have some code for my app that creates a keystore in android, creates some default keys then saves the keystore. Later on the code tries to reload the keystore, on the emulator this runs fine however when run on a phone I get an EOFException. Any advice on where I'm going wrong?
An out take of the code is below:..........................
View 2 Replies
View Related
Oct 28, 2010
I am getting GC on my device (moto original Droid with 2.2) continuously, even when I am not using it for a while. How can I figure out which application is causing such continuous GC.
View 6 Replies
View Related
Feb 6, 2010
I recently got the Nexus One Update which provides amongst other things - pinch gestures.
One other unlucky surprise I got is that the app I am writing behaves differently. When I call finish() my activity's onDestroy() should be getting called. On 1.5, 1.6, 2.0 and 2.1 (before the nexus update) this works fine, but on 2.1 with the Nexus One it just doesn't call onDestroy. I have a button on one of the activity pages that when you click it, it is supposed to "finish" the activity and I verified it's calling finish(), but onDestroy() never gets called.
View 4 Replies
View Related
Nov 24, 2010
For one of my clients they want to redirect customers who are viewing their mobile site from their android to the android market. The url is something like http://market.android.com/search?q=com.company_name , which when clicked on as a link functions correctly but if done as a redirect via php header('location : http://market.android.com/search?q=com.company_name'); will resolve to 404 page not found.
From a pc the link will never resolved, it will only work from an Android phone and only when the link is clicked on via an a href.
Summary
a href='http://market.android.com/search?q=com.company_name' - Works when clicked
header('location: http://market.android.com/search?q=com.company_name'); - Does not work: 404 error
View 1 Replies
View Related
May 25, 2010
I get this error on my Android emulator: Sorry The application has stopped unexpectedly. Please try again. [Force Close]
I think the code that is creating the error is this: HttpClient client = new HttpClient();
I have imported the following from JARS:
CODE:............
Is there a way to get more details on what the error is? The message described above isn't very helpful...
Stacktrace:
I've looked at this and I think this is the problem. (it was too long to post all on here..)
CODE:..........
Can be found at bottom of this page: http://hc.apache.org/httpclient-3.x/tutorial.html
View 2 Replies
View Related
May 20, 2010
So I have 2 reports now of my app causing a crash/reboot cycle the user can't always break from. I cannot reproduce this on my phone, and I am wondering what might be causing something like this? Would running out of memory or something cause this? Because I can't reproduce it, I can't look at the logs or anything.
Has anyone experiences anything similar? For reference, my app runs a foreground service which utilizes the AlarmManager. It starts automatically on boot_completed (which is probably why the cycle happens). One of the users who reported this, said it only happened when they plugged their phone into a PC.
View 3 Replies
View Related
Feb 22, 2010
I have created some aidl files for IPC in my Android project.
They compile and run file however in the generated .java files I am getting warnings of un-used imports as follows:
The import android.os.Binder is never used EngineInterface.java/gen/com//phone/engine line 10 Java Problem
Now I presume that they are there for a reason and since the generated file is not supposed to be modified that adding a suppress warning is not a good idea?
So how do I get rid of the warnings? I know they can be left and it doesn't affect the running of the project but I would like a clean as possible project so if its at all possible to remove this errors I would like to know how to do it.
View 2 Replies
View Related
Jul 5, 2010
I'm experimenting with twitter4j on android (new to both) coded up a simple process in java just to test it out. It downloads a users timeline and prints to screen.
I modify the code for android, but I get a TwitterException when i try to download the user timeline. I checked out the debugger and the exception is null; no information given. I've also added the Internet permission to the android manifest on previous advice.
Heres the code:
CODE:..................................
View 1 Replies
View Related
Aug 1, 2010
I'm trying to update part of a VBO with a call to glBufferSubData(). When I update from the start (0) of my existing shadow buffer, there is no problem, as the buffer starts reading from 0. The following will read 0 to y from the buffer and place it at 0 to y in the VBO: gl.glBufferSubData(GL11.GL_ARRAY_BUFFER, 0, y, mPositionBuffer);
However, if I want to update a portion of the VBO (not from 0) I run into a problem; The following doesn't work, since it will write the values from the start of the buffer (0 to y) into position x to x+y of the VBO:........................
View 1 Replies
View Related
Nov 24, 2010
Re-wording per previous request... I am dynamically adding TableLayouts at runtime. A view rundown looks like this... LinearLayout->ScrollView->TableLayout->Loop creating TableLayouts and TableRows at runtime. So basically I am looping and adding the following:
CODE:.........
Now everything gets added correctly, looks correct and scrolls correctly. However I am attempting to create an onTouch event which changes the background on the touched dynamically created TableLayout. Inside the onTouch for each dynamically created TableLayout I have a onTouch event that when called does the following:
CODE:..................
Whenever it calls the setBackgroundColor it messes up the alignment of every one of the dynamically created TableLayouts and makes them look like this:
LeftMiddleRight
Bottom
The entire code follows. I hope this is clear now.
CODE:.............
I have tried everything I can think of to keep it from doing this but so far I am unable to explain why or how to correct it. As long as I do not call the setBackgroundColor inside the onTouch everything scrolls and aligns as expected.
View 3 Replies
View Related
Nov 17, 2010
In looking at some performance issues for a game I'm developing I came across some interesting facts. Although I've minimised GC caused by my app, other apps can still cause one. Also, during framerate drops in my game, I've noticed things like the weather service, email checked, etc. going nuts in the background. (This is on Android 1.6).
I don't really want to block incoming calls, i.e. go into flight mode, before the game starts. I think it's important for the game to be interrupted if there's an incoming call. However, while playing, I don't think people care about weather updates, email updates, texts, etc.
Is there an interface that will let me control what is "active" in the background and what should be "suspended"?
View 3 Replies
View Related
Apr 16, 2010
I am attempting to make a VideoView to obviously play videos on. When I use the following code though I get the error "Cannot cast from View to VideoView" on the marked line below.
public class VideoView extends Activity { private String video_link;
private VideoView video_view;
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.youtube_player);
video_view = (VideoView) findViewById(R.id.video_view);
***ERROR "Cannot cast from View to VideoView"
Bundle video_bundle = getIntent().getExtras();
video_link = video_bundle.getString("LINK"); } }
View 3 Replies
View Related
Nov 13, 2009
I have modified a sample app, and it works fine. When I rename the package though, it force closes. I have modified the package name in all the .Java files, as well as the manifest, in addition to the physical directory structure. I've even tried to create a project from scratch and copy the relevant code in. Any ideas what could be causing this? Am I missing something?
View 5 Replies
View Related
Jul 30, 2010
I'm trying to get a query that returns rows only with a specified name, and sort descending by week (integer).
Everytime I try and run it it gives me a FC and logcat says
CODE:..........
It says that there is no such column, which doesn't make sense because it should be looking at the names in the row and returning the ones that match. Also if I put KEY_NAME + "=" + name as null, it says that there is no such column WeekDESC which doesn't make sense either cause it is just supposed to be sorting by an integer. I have gotten this code working before, but I misplaced it and can't seem to get it working again...
View 1 Replies
View Related
Nov 30, 2009
I'm trying to use android.media.MediaRecorder to record video, and no matter what I do the android runtime segmentation faults when I call prepare().
Here's an example:
CODE:....................
View 2 Replies
View Related
Jan 3, 2010
I'm running into some issues with input events and garbage collection, or more precisely object allocation. I am creating a game and have pretty much got my head around the OpenGL environment. I've digested all the relevant material I could find regarding performance, memory allocation etc (and watched the excellent presentation by Chris Pruett - http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAn...). I've pretty much eliminated any object allocations after initial setup from my game (which is still in its infancy), but I'm still getting a bunch of GC calls, like this:...........................
View 6 Replies
View Related
Apr 19, 2010
I have an interesting problem being reported to me from an android application I have published. I have a two-dimensional array that I am iterating through using two for loops like so:
for (int i = 0; i < arr.length; ++i)
{
for (int j = 0; j < arr[i].length; ++j)
{
if (arr[i][j] != 0)
// does stuff
}
}
The problem is, somehow arr[i][j] != 0 is throwing an ArrayIndexOutOfBoundsException. But very rarely. I have thousands of people use the app on a daily basis and get maybe twenty force close reports. Is this something I can't avoid, maybe a problem with the phones memory, etc. or is there something I can do that I haven't thought of yet?
View 1 Replies
View Related
Apr 13, 2009
In my ListView, there's one line of code in my ViewBinder that causes lots of garbage collection as I scroll through the list, about every two seconds...
D/dalvikvm(16312): GC freed 13171 objects / 659576 bytes in 162ms D/dalvikvm(16312): GC freed 13122 objects / 654128 bytes in 129ms D/dalvikvm(16312): GC freed 13134 objects / 655416 bytes in 142ms D/dalvikvm(16312): GC freed 13129 objects / 654840 bytes in 129ms D/dalvikvm(16312): GC freed 13149 objects / 655000 bytes in 110ms D/dalvikvm(16312): GC freed 13150 objects / 655720 bytes in 127ms D/dalvikvm(16312): GC freed 13075 objects / 652256 bytes in 111ms D/dalvikvm(16312): GC freed 13232 objects / 659040 bytes in 136ms D/dalvikvm(16312): GC freed 13106 objects / 653920 bytes in 110ms D/dalvikvm(16312): GC freed 13155 objects / 655152 bytes in 110ms
The offending code is here, which formats a price for each item in the list: String price = cursor.getString(columnIndex); final float pricef = Float.parseFloat(price); price = new StringBuffer("$").append(String.format("%. 2f",pricef)).toString(); ((TextView)view).setText(price);
If I comment out the line with String.format, the garbage collection goes away. So what's the "right" way to do this to avoid allocations? That database field holds an unformatted text string which I'm trying to format into proper currency format (example: format "1.5" to "$1.50")
View 9 Replies
View Related
Nov 22, 2010
On my droid phone, I get what I consider a proper pause/stop/resume/restart sequence when the home button is pressed and I then select my application. However, I'm testing on a new Samsung Galaxy tablet and when I select my application after having pressed the home button, a new activity is being launched. I do not understand why the behavior is different on the Galaxy. Any ideas? I have removed orientation config changes in the manifest, so it's not that.
View 1 Replies
View Related
Sep 28, 2010
Everyday I go to the gym and turn on my Motorola bluetooth headphones (Amazon.com: Motorola S305 Bluetooth Stereo Headset ) and then click on the Bluetooth widget on my EVO and after two beeps, I start hearing the phone through the headphones.
When I'm done, I tap on the Bluetooth widget and the phone freezes and then reboots. Sometimes it comes up with Bluetooth still turned on and when I tap it again, it reboots again. Every single time.
When I go to Settings>Wireless and uncheck Bluetooth it often does not reboot but sometimes it does.
Since it takes for.freakin.ev.er to come back after a reboot, I'd like to streamline my process and skip the reboot part.
(Not rooted. And I've never used the Bluetooth function for anything but this one headset. When not using headset, I keep Bluetooth turned off.)
View 2 Replies
View Related
Sep 26, 2010
My EVO has been rebooting frequently since the latest OTA update. I've tried doing a hard reset and taking out the MicroSD card, and it seems to keep happening. It seems to get hotter and hotter if I have a Live Wallpaper on. Is it just me? Is this related to the FPS cap being lifted, in the sense that the GPU is allowed to work harder than necessary? I should also mention that I'm using the Otterbox Commuter which is quite an insulator and may be part of the problem.
View 2 Replies
View Related
Jun 9, 2010
I bought a 3rd party battery charger. When it is plugged & charging my phone is froze. If I'm listening to the radio or music the app continues to work, but I but everything else is froze. Anyone having this problem or know a workaround?
View 1 Replies
View Related
Aug 9, 2010
Does anyone else's phone just go black (not off, just black screen) while browsing? Late at night ill be using my EVO browsing the App store. Ill download 2-4 apps and play around with them, keep what I like and uninstall what I dont. Ill read the news, use friend stream and read reddit. I am using wifi, no task killers, froyo, (problem existed with 2.1 as well), but for whatever reason my screen goes black.
The phone is not off, the 4 buttons at the bottom are lit up. Pressing the power button brings the screen back on but sometimes it just dies out to a black screen again. I've done a soft and hard reset both to no avail. Is anyone else having this problem? How many apps can the phone handle at one time?
View 1 Replies
View Related
Nov 4, 2010
Ive just got a new Wildfire and I�m having some issues with the battery. The most concerning thing is that it seems to be running down quicker overnight, while I�m asleep and the phone is idle with the screen locked. When I went to sleep last night it was showing at about 50%. However it woke me up at 5am this morning telling me to connect the charger � the second time this has happened in 3 days. I already have wireless, bluetooth and 3G switched off (I only switch these on when I want to use them), background data switched off and the screen brightness set at low. When I checked the applications that were running this morning, there was nothing that shouldn't have been there. Anyone got any idea what could be causing the battery to run down so quickly overnight when the phones not being used?
View 2 Replies
View Related
Aug 30, 2010
I know most of you probably check your texts pretty quickly and I do too but I was in a meeting one day and received a text.My phone was not turned on once during the hour long meeting yet when I turned it on for the first time after the meeting I noticed the battery had drained nearly 10%.Turns out I received a text about 15 minutes into my meeting and upon looking at Spare Parts I noticed that Handcent kept my phone awake for 45 minutes.the amount of time it took me from receiving the text to reading it.I then thought it was because I had the pop-up option enable.no go.After turning that off it is still keeping my phone awake. Can anyone else replicate this issue? I had my wife send me a text and then waited a few minutes to check it and then checked Spare Parts for the Partial Wake Usage.
View 21 Replies
View Related