Domanda

I need help, I have an application published on the market using a webview to present information.. Every now and then i get error reports like this one:

http://pastebin.com/zQ16Sf2z

The error points to my inflation-line of my activity:

setContentView(R.layout.view);

Binary XML file line #22: Error inflating class <unknown> must mean

<WebView android:id="@+id/WebView" android:layout_width="fill_parent" android:layout_height="fill_parent"></WebView>

in my layout http://pastebin.com/MFAPawin

Please help me or give me a hint for a start in the right direction! This is a problem I have had for a long time and have not been able to solve.. Thank you!

È stato utile?

Soluzione

The culprit is the java.lang.OutOfMemoryError exception that is thrown when creating your layout. So in short- use less Memory. But seriously when you run out of memory all kinds of things will fail.

Without seeing any of your code my suggestion is that you may have a memory leak somewhere. It's hard to tell with seeing any code but check out:

http://android-developers.blogspot.co.uk/2009/01/avoiding-memory-leaks.html

for some tips that may help.

Altri suggerimenti

It looks like your bitmap size exceeds VM budget (java.lang.OutOfMemoryError). You might look here, here or here for a solution.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top