Setting a breakpoint in Eclipse is not recognized when I start my app in debug mode. The breakpoint is in the onCreate method, the app runs normally, but no debug notification.Can someone give me a hint? Eclipse Version 3.5.2 Android 2.1
I am using a <Button> widget in one of my layout. I created this button in disabled state. A thin white line runs through the button, at center horizontal, while it is in disabled state. And in enabled state it is normal like any other widgets.
Recently I have been having issues with viewing my email messages in the Yahoo Mail App. When I open some messages all is see is line after line of code instead of the message text. It doesn't seem to matter what the source email is (gmail, hotmail, etc). Some emails are ok some are not. Anyone else have this problem? Any fixes?
I was using the plus version of LP, but it seemed to run pretty slow on my phone. Usually with menu selections (aka widget selection, or app selection when long pressing on the screen). The widgets also didn't update properly etc.I'm curious though is it might of been some advanced settings that I didn't play with. I typically just did an install setup my dock and homescreen, but never touched the advanced settings.Does anyone have some advanced settings they could share? Also my phone isn't rooted, would that cause all the lag with it? Cause honestly TW runs fine.
I've got some trouble with the media backend (mostly Stagefrightplayer) in Android, and I'd like to understand why it throws the errors it does. The errors are usually device spesific, so debugging on an emulator wouldn't be sufficient.
I've also gotten the player to bork completely and spit out a traces.txt.
Is there a way to debug what's happening, just like I debug Java code?
I am programming Android applications, and the best way here may or may not be the same as Java in general.I simply want to be able to set a debug flag that will only execute certain portions of code when it's set to true equiv to C++ setting a preprocessor #define DEBUG and using #ifdef DEBUG.Is there an accepted or best way to accomplish this in Java?
Right now I'm just going to set a variable in my Application object, but I don't imagine this is the best way.
When I debug android app, if I work with Java, I can use Log.d("TAG", "xxxx", new Throwable()) to print backtrace of Java code. This is really handy for me to find bugs. But when I work with native library (e.g. libwebcore.so), there seems no way to print backtrace in runtime. The only way to debug native code is use gdbserver.
I have a question: Is there any way to print backtrace in C/C++?
I have a activity B that is called by activity A, I want to debug the code in B. I have set the breakpoint, however the debug control never enters B.
When I debug in eclipse, although the class B is called from class A, the debbugger pointer never enters the new window, where I have placed a debug point in Class B. I am not able to take the pointer control to class B and stop at a specific point, which will help me verify certain variable values.
When using this class I get this strange exception. It is used to print out a nice timer display for my game, and is created when my main GameView class is created. The error gets thrown at line 26: super(s*1000,1000);
import android.content.Context; import android.graphics.Canvas;... public static int MODE_COUNTING = 0; public static int MODE_PAUSED = 1; public static int MODE_FINISHED = 2;...
I am creating a button widget with icon and text. Single word text is getting divided into two lines. There is enough room on the screen for the button widget to grow. But it still wraps the text to next line. How do I force it to be single line ? This is how I setup th button widget. <Button android:id="@+id/delete" android:text=" @string/delete" android: drawableTop="@drawable/ic_menu_post_delete" style="@style/ OnScreenActionIcon" />
I am using MapView in my application.I ma getting "android.view.inflateException:Binary XML file line #43:Inflating Class<unknown>" Exception while loading the map second time. First Time it shows correctly
Firstly this has turned out to be quite a long post so please bear with me as its not too difficult but you may need to clarify something with me if i haven't explained it correctly. So with some help the other day from guys on this forum, i managed to partially set up my 'mapClass' class, but i'm having trouble with it and its not running correctly so i would like some help if possible. I will post the code below so you can see.
What Ive got is a 'Dundrum' class which sets up the listView for an array of items.
Then ive got a 'dundrumSelector' class which I use to set up the setOnClickListener() methods on the listItems and link them to their correct views.
THIS IS MY DUNDDRUM SELECTOR CLASS....
Then what i did was set up static ints to represent the buttons which you can see at the top of this class, the reason for this is because in my mapClass activity I just want to have one method, because the only thing that is varying is the coordinates to each location. ie. i dont want to have 100+ map classes essentially doing the same thing other than different coordinates into the method.
So my map class is as follows...
Now this is where my problem is. The onClick() events don't even work from the listView to get into the correct views. I have to comment out the methods in 'DundrumSelector' before I can get into their views.
And this is what I dont understand, firstly why wont the onClick() events work, because its not even on that next view where the map is.
I know this is a very long post and it might be quite confusing so let me know if you want any clarification..
Just to recap, what i'm trying to do is just have one class that sets up the map coordinates, like what i'm trying to do in my 'mapClass'.
My question concerns using aidl.exe (on a Windows system) from the command line. This question has nothing to do with Eclipse, Netbeans, etc. Included with the Android SDK are the following three AIDL definition files: IRemoteService.aidl IRemoteServiceCallback.aidl ISecondary.aidl. Located in the following directory: C:android-sdk-windowsplatformsandroid 2.1samplesApiDemossrccomexampleandroidapisapp. For the sake of simplicity, I copied aidl.exe into the above directory. Then, from a console Window, I successfully used the following two commands to generate .java files: C:Android-projectApiDemossrccomexampleandroidapisapp>aidl IRemoteServiceCallback.aidl C:Android-projectApiDemossrccomexampleandroidapisapp>aidl ISecondary.aidl. Invoking these commands produced the files: IRemoteServiceCallback.java and ISecondary.java, respectively. So far so good. I note that both .aidl files are simple; they include no 'import' statements..............................
I have a huge codebase. I am not very clear about its design as documents are rear to find.
Is there any tool available to construct the class diagram from the code? I need to know the interactions between the classes and relations between them. If there is any such tool where i can give the entire code as input and get the class diagram as out put, it will be best for my understanding.
I have a brand new Nexus One. I'm trying to follow the directions for installing the USB driver. When I plug in the device, it doesn't start the New Hardware Wizard, as the documentation suggests. I can run hdwwiz.exe to launch it and manually install the driver, but when I do, Device Manager says: "This device cannot start. (Code 10)"
I'm trying to debug my native JNI code located on a shared library. I have been trying to debug using gdb/gdbserver.
Here is how I go about, trying to debug:
How to debug JNI native code on the Android emulator I'm using gdb/gdbserver I do this at the emulator terminal gdbserver localhost:
when I step on the Android Java code so the function Java_testJNI_printHello is called, I get this error on the server side gdb: Unable to get location for thread creation breakpoint: requested event is not supported
Is there a good way (proper way, or effective way) to debug slow running code? I have a thread which runs multiple loops and then recurses and my code is running very slow. Is there a good way to debug different loops or sections of code to find out which is running slowest?