I'm using a third party binary only barcode scanner by dropping
in their .jar file. Today I was learning how to implement preferences.
I made a .xml file:
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="First Category">
<CheckBoxPreference
android:key="allow_dups"
.... etc ...
And I made a main menu item called Settings and was
able to start a new activity extending PreferenceActivity.
Everything went swimmingly. I had a preferences system
working, and I could read the preferences from other activities
etc.
Then I noticed that the barcode scanning part was not working anymore.
In the logcat:
E/AndroidRuntime( 2886): java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.rcsreg.exposmart/com.rcsreg.exposmart.ScannerActivity}: android.view.InflateException: Binary XML file line #2:
Error inflating class PreferenceScreen
E/AndroidRuntime( 2886): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
E/AndroidRuntime( 2886): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
E/AndroidRuntime( 2886): at
android.app.ActivityThread.access$2300(ActivityThread.java:135)
When I remove my res/layout/preferences.xml, the barcode scanning works again.
So has the third party software locked me out from using preferences?
Thanks,
Tobiah
--
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