W / ResourceType (463): Error getting record in packet 0 (error -75) in Android action

In one Activity (this is a SherlockActivity , by the way) of my Android application, I have a normal ListView .

For this ListView I set AdapterView.OnItemClickListener via getListView().setOnItemClickListener(...) .

And in this listener, AlertDialog is created using the AlertDialog.Builder class, and then it is displayed to the user:

 getListView().setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, final View v, int position, long id) { AlertDialog.Builder builder = new AlertDialog.Builder(MyActivity.this); ... builder.setMessage(Html.fromHtml(...)); builder.show(); } } 

Now, when builder.show() is called, the following warning always appears in LogCat:

 W/ResourceType(463): Failure getting entry for 0x010802c9 (t=7 e=713) in package 0 (error -75) 

Where is it from? It seems to me that this is out of my control, since it appears with builder.show() , so this warning can be generated somewhere in the sources for the AlertDialog class. It's true?

If not, how can I find which resource is missing? How to debug this warning?

Edit: There is no corresponding entry for 0x010802c9 (or any value that is at runtime) in R.java , so I really don't know how to debug this.

+7
android android-resources
source share
1 answer

Are you trying to open it from a workflow instead of a GUI thread? You can check if a thread is a GUI thread with:

Looper.myLooper() == Looper.getMainLooper()

To ensure that it is open from a GUI thread, use a handler or runOnUiThread .

+1
source share

All Articles