ddms

Android: how to debug app's start-up process

你说的曾经没有我的故事 提交于 2019-12-10 03:59:40
问题 I am investigating some issues which happen during my app's startup process, but DDMS won't start the debug mode until the process has started, is there a way I can capture the events earlier? 回答1: I know that this is a couple of years late, but for any future searches: Putting WaitForDebugger into your code is one way. Unlocking developer options (by tapping on the build number in system information on the android device) in Settings allows us to select an application for debugging and then

Huge byte[] in my app after HPROF

倖福魔咒の 提交于 2019-12-09 10:08:55
问题 From time to time, especially when implementing new functionalities in my app, I use DDMS + HPROF to analyze memory and heap use. As the App doesn't seem to have any performance-ANR issues and everything works smoothly, initially I didn't care about it - but now, as I see it's approximately always the same size, I'm wondering what the damn can it be. Everytime I run a HPROF, I check the Leak suspects tab. There's always an android.graphics.Bitmap instance that takes approximately 25% of all

Can you Disable DDMS in Eclipse

爱⌒轻易说出口 提交于 2019-12-08 14:33:43
问题 Does anyone know if it is possible to disable the DDMS in Eclipse? By that I mean DDMS should not being start when Eclipse is launched. I'd like to use only the DDMS from the terminal, but when I start it it keeps saying: Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences. I like the standalone DDMS better than the one that is built

How to access files in Emulator SD Card using File Explorer?

允我心安 提交于 2019-12-08 11:59:02
问题 I have written a file "myData.txt" to the emulator SD card, and I can find it in mnt/sdcard/download using file explorer. Is there a way to check if I have written correctly to the file without reading it again in my Android program? How about images? What can I do to view the images written in an SD card? 回答1: If you're using Eclipse with ADT : In DDMS, on the "File Explorer" tab, there is a toolbar. There are 2 buttons on the left: arrow with disk (pull from device), and arrow with phone

How to find my .db file in sqlite?

被刻印的时光 ゝ 提交于 2019-12-08 07:33:54
问题 I created a database called "enigmeDB" and a table "table_enigme": public class EnigmeDatabase extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 1; private static final String DATABASE_NAME = "enigmeBD"; private static final String TABLE_ENIGME = "table_enigme"; // fields private static final String KEY_ID = "id"; private static final String KEY_DESCRIPTION = "description"; private static final String KEY_REPONSE="reponse"; private static final String KEY_CATEGORIE=

Problems trying to push files into android device using eclipse

♀尐吖头ヾ 提交于 2019-12-08 00:43:03
问题 I'm currently using Samsung Galaxy S2 i1900G to try to test my application but apparently I need to push a database file in order for my application to connect to it and work. But it would seem that every time I try to push a file into the device I would get an error. Here's the error I keep getting [2012-05-20 16:16:26 - ddms] transfer error: Read-only file system [2012-05-20 16:16:56] Failed to push selection: Read-only file system I can't seem to figure out what the problem is. Will it

Reading database file from android device

。_饼干妹妹 提交于 2019-12-07 14:13:35
问题 I've been trying to pull a copy of my sqlite database from my android app for dev. My first attempt was to call: ./adb shell cd data/data cd com.example.app cd databases But then I get stuck here as I do not have permission to do a pull or even view the files in that dir! So I thought I'd try out the DDMS File Explorer which gives me this: But when I try and pull files from here (I would expect them to be in the data folder) it just pulls the directory and nothing else. How can I do this to

How to find my .db file in sqlite?

て烟熏妆下的殇ゞ 提交于 2019-12-07 08:22:26
I created a database called "enigmeDB" and a table "table_enigme": public class EnigmeDatabase extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 1; private static final String DATABASE_NAME = "enigmeBD"; private static final String TABLE_ENIGME = "table_enigme"; // fields private static final String KEY_ID = "id"; private static final String KEY_DESCRIPTION = "description"; private static final String KEY_REPONSE="reponse"; private static final String KEY_CATEGORIE="categorie"; public EnigmeDatabase(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION);

Android studio cannot open monitor (DDMS)

ⅰ亾dé卋堺 提交于 2019-12-07 07:28:40
问题 I can't open the monitor (ddms) in android studio getting following error: A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations: C:\Android-Studio\android-studio\sdk\tools\lib\monitor-x86\jre\bin\javaw.exe javaw.exe in your current PATH Would appreciate any suggestion how to fix this. thanks 回答1: You must have your jdk or jre installed and in your path. Considering

Database not visible in DDMS folder when real device used instead of emulator

你说的曾经没有我的故事 提交于 2019-12-07 07:10:17
问题 I am creating a sample application which will create a database, Inserts data and finally displays it in a spinner. For testing I am using my android phone instead of Emulator (As I am fedup with its slow response). My problem is application running succesfully but spinner is not displaying any result also I am unable to view any folder structure under DDMS->data. I am confused whether database created or not, Please suggest me how to view the database if we use real device instead of