Function call

by D K » Fri, 07 Jan 2011 02:34:29 GMT


Sponsored Links
 Hi,
 I want to know way to dump the call stack at a particular point.
I am debugging the native android code.
thanks,
Rick

-- 



Other Threads

1. A question about camera of Android SDK 1.0 rc2

I update from rc1 to rc2
And open default picture app, choose a image, open it
then will have a error
If back to install rc1, it work right
Is it a bug of rc2?

--~--~---------~--~----~------------~-------~--~----~

2. managedQuery() terminating the application.

Hi,

I am trying to write a simple application that displays the contents
of Contacts content provider in the phone. So far, I have only one
statement in this program (pasted below) and all it does is tries to
get a cursor over the contacts list. However, when I run the
application in the emulator, I see the following run time error on the
emulator screen:

"Sorry! The application MyApp (process com.android.myapp) has stopped
unexpectedly. Please try again."

How do I start debugging this ? Is there any de{*filter*} that can help ?
Any logs that I can look at ? Here is my test application.

Thanks,
Sarath

import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Contacts.People;

public class MyApp extends Activity {
    // array specifying which columns to return.
    private String[] projection = new String[] {
        People._ID,
        People.NAME,
        People.NUMBER,
    };
    Cursor managedCursor;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        managedCursor = managedQuery(People.CONTENT_URI,
                projection,
                null,
                null,
                People.NAME + " ASC");
    }

--~--~---------~--~----~------------~-------~--~----~

3. recommendaed packages/classes to learn about?

4. Question about the int bundle

5. Android Developer Challenge II

6. Undocumented Intents

7. How to post values using HttpURLConnection