Issue
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:
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!
Solution
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.
Answered By - Robby Pond
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.