Note that there are some explanatory texts on larger screens.

plurals
  1. PODashClock preferences
    primarykey
    data
    text
    <p>I try to build a small extension for dash clock, and I want to be able to configure a couple of settings, but as I am doing it now, it doesnt work.</p> <p>In a prefs.xml file I have a checkbox like so:</p> <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;CheckBoxPreference android:title="Zenbat" android:defaultValue="true" android:key="checkbox" android:summary="blabla"/&gt; &lt;/PreferenceScreen&gt; </code></pre> <p>and then I have an activity called SettingsActivity, like so:</p> <pre><code> public class SettingsActivity extends PreferenceActivity { @SuppressWarnings("deprecation") @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.prefs); } } </code></pre> <p>I thought I should see already the preferences when I hit the settings button of the extension, but I get the following error:</p> <p>Unable to instantiate activity ComponentInfo. ClassNotFoundException.</p> <p>In the manifest I have the meta data and the call to the activity:</p> <pre><code> &lt;meta-data android:name="settingsActivity" android:value=".SettingsActivity" /&gt; &lt;activity android:name=".SettingsActivity" android:label="@string/title_settings" android:exported="true" /&gt; </code></pre> <p>Must the preferences be implemented other way? Or what am I doing wrong? Thank you in advance!</p> <p>Edit (logfile): 03-17 22:12:53.810: E/AndroidRuntime(9885): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.wortdestages/com.wortdestages.SettingsActivity}: java.lang.ClassNotFoundException: Didn't find class "com.wortdestages.SettingsActivity" on path: /data/app/com.wortdestages-2.apk</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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