java.lang.StackOverflowError on android 2.3.6
<p>I wrote an application and it works fine on all android version exept android 2.3.6 the app crash.<br>
in my app i work with existing database and work with ActionBarSherlock.<br>
this is the Logcat on android 2.3.6</p>

<pre><code>&gt; 05-24 00:05:01.140: E/AndroidRuntime(4360): FATAL EXCEPTION: main
05-24 00:05:01.140: E/AndroidRuntime(4360): java.lang.StackOverflowError
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.util.SparseArray.get(SparseArray.java:55)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.StringBlock.get(StringBlock.java:70)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.AssetManager.getResourceValue(AssetManager.java:201)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getValue(Resources.java:888)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:580)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:162)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.loadDrawable(Resources.java:1694)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.content.res.Resources.getDrawable(Resources.java:581)
05-24 00:05:01.140: E/AndroidRuntime(4360):     at android.graph
</code></pre>

<p><strong>Edit:</strong></p>

<p><strong>Answer:</strong></p>

<p>I just find where i was wrong. <br>
in my drawable i have 2 file by the same name but different type one by png and the other one xml. that's what causing my problem.<br>
i hope it help some one.</p>
