Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid 1.5/1.6 issue with style and autogenerated R.java file
    text
    copied!<p>I'm having strange issue with R.java file and styles defined in my resources.</p> <p>Here's some code:</p> <p>In res/values/strings.xml:</p> <pre><code>&lt;style parent="android:Theme.Dialog" name="PopupWindowStyle"&gt; &lt;item name="android:windowBackground"&gt;@drawable/bg1&lt;/item&gt; &lt;item name="android:textColor"&gt;@android:color/black&lt;/item&gt; &lt;/style&gt; </code></pre> <p>In AndroidManifest.xml:</p> <pre><code>&lt;activity android:name=".RegisterScreen" android:icon="@drawable/ico" android:label="@string/applicationName" android:theme="@style/PopupWindowStyle" android:configChanges="locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|fontScale"&gt; &lt;/activity&gt; </code></pre> <p>In autogenerated gen/.../R.java:</p> <pre><code>public static final class style { public static final int PopupWindowStyle=0x7f090000; } </code></pre> <p>After some changes in the project, eclipse changed autogenerated value for <code>PopupWindowStyle</code> from 0x7f080000 to 0x7f090000. After that, on Android 1.5, <code>RegisterScreen</code> activity is displayed without <code>PopupWindowStyle</code> style - there is an error displayed in logcat:</p> <p><code>Skipping entry 0x7f090000 in package table 0 because it is not complex!</code></p> <p>On Android 1.6 however everything works fine - <code>PopupWindowStyle</code> works like it was before it's integer value has changed.</p> <p>I was testing this issue, by reverting the source code to older revisions. I can confirm, that this problem started occurring after src code commit, which changed two files completely unrelated to this part of code - and an autogenerated R.java file.</p> <p>Any idea what could cause that? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload