Right, like setContentView being pretty much meaningless for a
PreferenceActivity....

Unless I'm missing something really subtle and clever.
12.05.2012 16:42 пользователь "lbendlin" <[email protected]> написал:

> The error may be caused by something else entirely.
>
> The other day I learned that lint in it over-eagerness gave me bad advice.
> It told me to put drawables into resolution folders like drawable-mdpi but
> it neglected to mention that this breaks the app on 1.5 devices. I had to
> move the drawables back to the default folder.
>
>
> On Thursday, May 10, 2012 7:35:07 AM UTC-4, Mentos wrote:
>
>> In my release apk I have very strange problem. In debug all works
>> fine.
>> proguard.cfg is normal from examples.
>>
>> Any sugestion ?
>>
>> Unable to start activity ComponentInfo{myclass}:
>> android.view.InflateException: Binary XML file line #2: Error
>> inflating class PreferenceScreen
>>
>>
>>
>> public class MyClas extends PreferenceActivity implements
>> SharedPreferences.**OnSharedPreferenceChangeListen**er {
>>
>>  @Override
>>     public void onCreate(Bundle icicle) {
>>         super.onCreate(icicle);
>>
>>         addPreferencesFromResource(R.**xml.new_profile);
>>
>>         setContentView(R.layout.new_**profile); //HERE IS PROBLEM
>>
>>         }
>> ....
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to