Android :: DDMS Allocations Tracker Not Picking Up Activity When Using Real Phone
Aug 3, 2010
I'm trying to use DDMS to track my allocations, but it only finds my activity if I run it on the emulator. If I run my app on my phone it can't find it, even though it finds the phone. Is there anything specific that I need to do that I might have missed?
View 9 Replies
Nov 13, 2009
I can't find the DDms allocation tracker in the DDMS perspective in eclipse. I search the view doing Window > show view I look to the android view but i have no allocation tracker view there. I use search view tool and I can't find any Where is this View ? (If it's obvious, i am sorry because i reallu can't find it)
View 4 Replies
View Related
Oct 4, 2010
I have an Activity that is running out of memory in CreateSurface. The logcat looks like this: 10-04 17:55:52. 574 : ERROR/SurfaceFlinger(1086): createSurface() failed, generateId = -12 10-04 17:55:52.574: WARN/ Window Manager (1086): OutOfResourcesException creating surface 10-04 17:55:52.574: INFO/WindowManager (1086): Out of memory for surface! Looking for leaks. 10-04 17:55:52.574: WARN/WindowManager (1086): No leaked surfaces; killing applicatons! 10-04 17:55:52.574: WARN/ActivityManager (1086): Killing processes Free memory at adjustment 0 I'm trying to use DDMS to figure out what's going on but when the application gets killed DDMS aborts the Allocation Tracker. Is there a way to cause the application to do a core dump and is there a tool for analyzing dumps? I have SDK version 8, which does not allow simultaneous use of DDMS and the Eclipse debugger so I need to get creative.
View 5 Replies
View Related
Jan 28, 2010
I wish to re-use the Contacts application in a way to enable the user to pick a contact and return it to the parent activity (my application's activity).
For achieving this, I want to inquire about the kind of Intent that will be needed to launch the contacts application.
Intent i = new Intent(Intent.ACTION_GET_CONTENT, ?); startActivityForResult(.....);
What should be the second argument here ?
In the deprecated Contacts API, I could use the following snippet, but not sure about ContactsContract:
Intent i= new Intent(Intent.ACTION_GET_CONTENT,People.CONTENT_URI); startActivityForResult(i, reqCode);
View 3 Replies
View Related
Aug 23, 2010
I am looking for an app for my phone that can scan barcodes & keep inventory of food in the house, and pull reciepes from that list. Idea is to scan barcodes as you shop, and then when you get hungry, have a list of recipes you can choose from that you have ingredients on hand for.When you cook the list is updated for what was used.Something that integrates w/ ShopSavvy and one of the better reciepe apps would be awesome.
View 4 Replies
View Related
Apr 6, 2009
I want to display the status of the activity execution on the screen using the TextView while activity is executing. I am appending the String messages at different stages of execution in the TextView, which is defined in the Layout main.xml (e.g. TextView.append("Server started..").
For e.g. I am running socket communication application in which my android application is the server and it is receiving the messages from the local desktop. So in this application I want to show "Server started.." message when socket server on android started , then a messge "waiting for message.." and then "message receivied.." when message received by android server.All 3 steps are the part of a single activity.
But in my case, I am getting all 3 messages at a time after activity execution completed. Is there any API available, using which I can show the status during the execution also.
View 20 Replies
View Related
May 20, 2010
My boyfriend got his cell phone stolen and its a sidekick. I was wondering if there is an app that tracks it using calls or something.
View 3 Replies
View Related
May 13, 2012
I have been trying to find a way to use an android phone for real time GPS Tracking of my car.
1. Phone would be attached to a charger (hidden)
2. Phone would be programmed to switch on an app with GPS
3. Now if the car is switched off the phone should still remain ON till the battery drains since the charging would happen only when car is switched ON
4. I have seen a lot of custom roms like Cynogen and MIUI and there is a case that if my phone is off and I put the phone on charging then the phone switches ON automatically.
5. But the problem is that suppose the battery is 0% and the car is switched ON the phone would start since the charging would start and suppose the charging gets the phone to like 10% battery then if the car is switched OFF then the phone would switch OFF ( I want that the phone should remain ON)
Since I would not have access to the phone as it is hidden it would be difficult to manually switch the phone ON.
Is there any way to ensure that the phone remains in the ON state even after the charging has been withdrawn.
View 2 Replies
View Related
Oct 18, 2010
I am having a problem with my Desire's GPS, I am running the official Orange 2.2 Update and ever since the update my Desire won't pick up my GPS location. It displays the GPS icon in the notification bar but whenever I use Maps or Navigation (Google) it constantly displays 'Searching for GPS'. This is my 2nd Desire as I lost my original, and I do not remember even trying the GPS before the update (due to it being so close to the update release), so I don't know if it is the update or a fault. I would like to know if anyone else has had an issue with this, I know Voda had a similar issue with their update, and how you fixed it. I have tried removing the battery, SIM and SD card but I haven't tried a factory reset yet. I am also wondering if there is a debranded ROM I can flash without rooting in which I could revert back to the original if I needed to send it back to HTC. I am pretty sure this device is SLCD as I can notice the difference from my original AMOLED model.
View 7 Replies
View Related
Jul 26, 2010
When phone locked and somebody calls, i drag down to pick up: in this very moment phones shows like it would follow the procedure and pick up, but it hangs like inbetween for 4-5 seconds and THEN picks up. Meanwhile i can press Menu, Home, etc, nothing happens.. Sometime don't have that luck and the call drops. Most of the time i'm lucky and can pickup.
View 3 Replies
View Related
Oct 7, 2010
So last night and today I have not been able to access my USB connection through Windows... I have Vista and have tried messing with settings on both my phone and laptop...
Does anyone have any idea why this has all-of-a-sudden started being a problem?
View 6 Replies
View Related
Feb 26, 2010
I did a dumpsys meminfo of my app and each time I go in and out of my activity the asset allocations grows i.e
CODE:............
Is this a concern? What can I do to avoid this? I have a feeling this is the reason for the growing memory usage.
View 2 Replies
View Related
Nov 11, 2010
I've managed to get my allocations down to next to nothing using DDMS (great tool), this has drastically reduced my GCs to about 1 or 2 every 3 minutes. Still, I'm not happy because those usually cause a noticeable delay in the game (on some phones) when you interact with it.
Using DDMS, I know what the allocations are, they are Strings being converted from integers used to display game information to the HUD.
I'm basically doing this:
CODE:.................
This happens once each frame update and the HUD system is modular so I plug things in when I need and this can cause 4 or 5 hud elements to allocate Strings and AbstractStringBuilders in DDMS.
Any way to reduce these further or eliminate all the String allocations and just reuse a String object?
View 2 Replies
View Related
Sep 24, 2010
Are you meticulous in removing all per-frame heap allocations from your game? (At least the allocations that you can control and that have practical alternatives.)
While trying to reduce per-frame heap allocations from my running game, I found that method
android.opengl.Matrix rotateM(float[] m, int mOffset, float a, float x, float y, float z)
Does a heap allocation. This means maybe 10 or so extra heap allocations per frame and is the only per-frame allocation left in my application (well, the only one that I can directly control). I am thinking of replacing this with my own version - one that does not do any heap allocations.
I also had some lists that I replaced with my own list implementation because I found that some standard list iterations would create new iteration objects, putting more pressure on the heap and forcing more frequent garbage collection.
I know that I can't eliminate all the heap allocations. In particular, input seems to trigger a bunch of allocations.
I can't help but think that anything reasonable I can do to reduce pressure on the heap will improve the user's experience (if garbage collection is going to stall my game). Obviously there are diminishing returns at some point, so ultimately I have to make a judgement call.
View 8 Replies
View Related
Jul 7, 2010
In my android app, is there any way to get the total amount of memory my application is taking up, in the code. I'm using lots of large bitmaps, so it must include external allocations as well. I must, however, be able to get the number in the code, so that I can dynamically adjust to fit the budget I have.
I also need a way to get the total amount I have available (16Mb or 24Mb) as well.
View 1 Replies
View Related
Sep 2, 2012
There are wide set of lost phone recovery apps that track phone's location, send sms etc. But is there an app that works even after Wipe?
Is it even possible to have such kind of an app?
IMHO thiefs definitely wipe phone after stealing it making all recovery apps useless.
View 1 Replies
View Related
Jun 19, 2010
I have searched and searched for help and am not finding anything. Well i take that back I have found countless guides on how to do it. tried many of them, didn't work, deleted everything, tried another , didn't work so now I am asking for help.I am trying to do screen captures using the SDK and eclipse and whatever else the guides say to download. Whenever i double click the ddms file a command box flashes up on the screen for a split second and thats it . Can't go any further if the commab box won't stay up. I think a windows window is supposed to pop up after that so I can choose my phone.
View 3 Replies
View Related
Aug 11, 2010
I am trying to use the SDK's DDMS utility to capture screens off my Droid X. I have installed the Java JDK and the Android SDK. I set up the USB driver on my Windows laptop and connected my Droid X to the USB port. Windows XP can see the Droid just fine in Windows Explorer as a removable USB device, but the DDMS utility shows no devices. Running "adb devices" in a DOS window lists no devices either. Yes, the java.exe location has been added to my PATH. Yes, the Droid is set to allow USB debugging. So why can't DDMS see my phone?
View 2 Replies
View Related
Dec 16, 2009
Is there a sports score tracking app that'll scroll like the HTC stock tracker does? this would be awesome!
View 2 Replies
View Related
Mar 30, 2010
Can we get real ip address of android phone?
View 5 Replies
View Related
Jul 28, 2010
After a round of hassle (many thanks to sontaikle), finally i managed to do some screen capture from my Android but right now I am thinking about this. Is there any way I can do a REAL TIME phone simulation on my PC. Its alike TV output from phone to projector (Galaxy S can do that) but I have other Android which have no TV output function from the phone, so I wonder if I connect the phone to PC and get the real time screen output (few second lagging is ok for me as well) to PC than I can project it out via projector during discussion, presentation. I have tried this Emulator, too bad its doesn't project that on the phone on PC. How to install Android SDK and play with Android 2.0 in the emulator - Android and Me
View 1 Replies
View Related
Sep 14, 2010
when I'm using the Android emulator I can do "adb logcat" to see output messages (log / system.out.println) originated from my code. It also shows the stack trace of exceptions which happen during execution.But, when I'm using a real phone, "adb logcat" does not do / show anything. I also tried "adb -d logcat" which also does not display anything.Is there any way to get it working with the real phone?
View 5 Replies
View Related
Oct 29, 2010
I'm trying to test a test app I developed on android 2.2 sdk on my htc phone with Froyo on it (2.2). In the emulator it works fine, when I export as unsigned app and try to install on the phone, it doesn't allow me, just telling me 'application non installed'. The phone has the settings to accept installation of non android application, so I'm not sure why I can't test on it. Is it because it's not signed?
View 2 Replies
View Related
Dec 4, 2009
I want to programmatically measure the phone signal strength in a mobile phone. I don't actually care about the mobile phone or the programming environment: It can be based on android or windows mobile or even J2ME and can be from any manufacturer (please no iPhone). However, it needs to be a real, commercial mobile phone and not a special measurement device. This problem is not as easy as it seems with a first look. I am aware that there already exist a number of methods that claim to return the phone signal strength. Some of these are:
SystemState.PhoneSignalStrength for WM6 RIL_GetCellTowerInfo for WinCe (dwRxLevel member of returned RILCELLTOWERINFO struct) android.telephony.NeighboringCellInfo.getRssi() for android
The problem with the above is that they only return a few (under 10) discrete values, meaning that, for instance, the return values of SystemState.PhoneSignalStrength can only be translated to (for instance) -100 dbm, -90 dbm, -80 dbm, -70 dbm and -60 dbm, something that is not useful for my application, since I'd like to have as much precision as possible. It doesn't matter if there is an undocumented solution that only works on only one phone
View 4 Replies
View Related
Dec 12, 2009
I used a ndk library to decode the frames and update the ShortBuffer with RGB565 format. I allocate the buffer in the activity like below. Code...
View 4 Replies
View Related
Aug 8, 2010
I am building Android apps and have an HTC Desire with running 2.1 of Android.
How do I upgrade, or even downgrade, OS on the phone to test the app on real devices as well.
View 3 Replies
View Related
Sep 4, 2010
I'm writing a live wallpaper and need some help. My wallpaper will create an effect over top of another image or existing wallpaper (not another live wallpaper) that the user chooses in the "Settings".My problem is this: I can't find a way to list the static wallpapers or images on the phone. I've seen some examples of getting the camera images, but not the wallpapers.
View 1 Replies
View Related
Nov 1, 2009
The party is over and Google suddenly released the much anticipated Android 2.0 SDK.
Much improvement for sure !
That said, the party is over and I came to have to deal with the following Ghost;
I've released an app in the market (Ambu) - so far qualified under SDK 1.5 &1.6. Using the emulator for Android 2.0, things don't work anymore.
This is what I'd like to share;
- my app invokes an ACTION.PICK intent as way to extract phone contact from the phone book and populate a database.
When compiling my app using the SDK version 1.6 and a target emulator configured at 1.6 level, the following code WORKS:
CODE:.........
When running the same code (compiled with SDK 1.6) and a target emulator at 2.0 level, the above code never return the entries I have populated in my the phone book. It's as if the phonebook was always empty.
A couple of additional observations;
- When running the emulator in 2.0 mode, the default local input type is Japaneese. Any way to change this ?
- Under the 2.0 emulator, and setting a "clean" AVD image, if you launch the dial button, press menu and select account, you'll probably immediatly get a "android.process.acore" error ...
- In the most recent SDK document, I can read that "People.CONTENT_URI" was deprecated after SDK 1.6. Therefore, I've changed the above code to:
CODE:.........
Unfortunatly, with the above, I get a crash right away when invoking ACTION_PICK.
Question to the Google Folks (dear dianne and others, please !);
How to we properly pick a phonebook contact under the 2.0 OS using 1.6 or 2.0 compiled apps ?
View 16 Replies
View Related
Jun 20, 2010
the speaker phone is loud as Sh#* but when i plug my headphones, the volume is low even with it turned all the way up.
View 1 Replies
View Related
Feb 24, 2010
Sometimes when i wake up my phone the brightness will be real dim it does this when i have the manual brightness set so if i put the phone to sleep and then wake it up the brightness will be ok this doesn't seem to happen when i have the auto brightness set any ideas.
View 10 Replies
View Related