handset error log

by Bob » Mon, 23 Mar 2009 05:29:31 GMT


Sponsored Links
 Hi,
Is there a way for me to get an error report from my phone (not
emulator) about why it is force closing?

Thanks,
Bob
--~--~---------~--~----~------------~-------~--~----~



handset error log

by Mark Murphy » Mon, 23 Mar 2009 05:30:31 GMT


 


With it plugged in via the USB cable, you do it the same way you would
with the emulator -- adb logcat, DDMS, or the DDMS perspective in Eclipse.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Training:  http://commonsware.com/training.html 

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


Sponsored Links


Other Threads

1. Possible bug in ListPreference

This is probably a bug in the Preferences framework, but I'm not
particularly familiar with the API and the documentation is a little
sparse, so I thought I'd check first...

Is there a restriction on the strings that can be used in the
entryValues array for a ListPreference?

I define the following two arrays:

    <array name="pref_delay_entries">
        <item>30 minutes</item>
        <item>1 hour</item>
        <item>2 hours</item>
        <item>4 hours</item>
        <item>12 hours</item>
        <item>day</item>
    </array>

    <array name="pref_delay_values">
        <item>1800000</item>
        <item>3600000</item>
        <item>7200000</item>
        <item>14400000</item>
        <item>43200000</item>
        <item>86400000</item>
    </array>

For use in the following ListPreference:

<ListPreference
    android:key="delay"
    android:defaultValue="3600000"
    android:title="@string/pref_delay_title"
    android:summary="@string/pref_delay_summary"
    android:entries="@array/pref_delay_entries"
    android:entryValues="@array/pref_delay_values"
    android:dialogTitle="@string/pref_delay_dialog_title"
    />

That's it, very simple. Running my PreferenceActivity and attempting
to open the dialog (SDK 0.9 beta) results in the following exception:

java.lang.NullPointerException
at
android.preference.ListPreference.findIndexOfValue(ListPreference.java:
169)
at android.preference.ListPreference.getValueIndex(ListPreference.java:
178)
at
android.preference.ListPreference.onPrepareDialogBuilder(ListPreference.java:
190)
at
android.preference.DialogPreference.showDialog(DialogPreference.java:
289)
at android.preference.DialogPreference.onClick(DialogPreference.java:
260)
at android.preference.Preference.performClick(Preference.java:804)
at
android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:
182)
...

Changing the elements of the pref_delay_values to something other than
numbers removes the exception.
--~--~---------~--~----~------------~-------~--~----~

2. About Zoom picture in Android

I'm researching about Android. I find there is not "Zoom picture"
option in Android. Does anyone can help me to built an applicaion
about "Zoom picture" ?? Thank you.

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

3. Recorder Sound

4. will flash content show up on Android?

5. Saving a bitmap

6. Google Technologist Speaker Invite

7. Showing Hebrew Text on the emulator screen