How about 

 <intent android:targetPackage="com.example.android.misterhouse.activity" 
android:targetClass="SettingsActivity" />

On Saturday, December 29, 2012 6:38:32 PM UTC-5, Jim Duda wrote:
>
> My application is using modern preference headers.  I need to support 
> compatibility with Gingerbread.  The PreferenceHeaders work fine 
> with post GingerBread. 
>
> I am following this guide for legacy compatiblity. 
>
> http://developer.android.com/guide/topic/ui/settings.html#BackCompatHeaders 
>
> The initial PreferenceScreen loads fine.  However, whenever 
> selecting one of the entries, I get the following exception: 
>
> android.content.ActivityNotFoundException: Unable to find explicit 
> activity class {com.example.android.misterhouse.activity/ 
> com.example.android.misterhouse.activity.SettingsActivity}; 
> have you declared activity in your AndroidManifest.xml? 
>
> For some reason, my Intents are not binding the the SettingsActivity. 
> The reference example doesn't want to work properly.  I have attempted 
> three different means of identifying the targetClass.  None of these 
> attempts works. 
>
> Might anyone know what I might be doing wrong? 
>
> PreferenceScreen and AndroidManifest follow below. 
>
> Thanks, Jim 
>
> Here is my PreferenceScreen: 
>
> <PreferenceScreen 
> xmlns:android="http://schemas.android.com/apk/res/android";> 
>      <Preference 
>          android:title="@string/pref_settingsTitle" 
>          android:summary="@string/pref_settingsTitle_summ" > 
>          <intent 
>              android:targetPackage="com.example.android.misterhouse" 
>              android:targetClass="activity.SettingsActivity" 
>   
> android:action="com.example.android.misterhouse.activity.SETTINGS" /> 
>      </Preference> 
>      <Preference 
>          android:title="@string/pref_connectionsTitle" 
>          android:summary="@string/pref_connectionsTitle_summ" > 
>          <intent 
>              android:targetPackage="com.example.android.misterhouse" 
>              android:targetClass=".activity.SettingsActivity" 
>   
> android:action="com.example.android.misterhouse.activity.CONNECTIONS" /> 
>      </Preference> 
>      <Preference 
>          android:title="@string/pref_aboutTitle" > 
>          <intent 
>   
> android:targetPackage="com.example.android.misterhouse.activity" 
>   
> android:targetClass="com.example.android.misterhouse.activity.SettingsActivity"
>  
>
>   
> android:action="com.example.android.misterhouse.activity.ABOUT" /> 
>      </Preference> 
> </PreferenceScreen> 
>
> And finally, my AndroidManifest: 
>
>     <application 
>          android:label="@string/app_name" 
>          android:icon="@drawable/mh_logo"> 
>          <activity 
>              android:name=".activity.MisterhouseActivity" 
>              android:noHistory="false" 
>              android:configChanges="orientation|keyboardHidden" 
>             android:launchMode="singleInstance" 
>              android:label="@string/app_name"> 
>              <intent-filter> 
>                  <action android:name="android.intent.action.MAIN" /> 
>                  <category 
> android:name="android.intent.category.LAUNCHER" /> 
>              </intent-filter> 
>          </activity> 
>          <activity 
>              android:name=".activity.SettingsActivity" > 
>          </activity> 
>                   <service 
>                         android:name=".service.MisterhouseService" 
>                         android:process=":misterhouse_process" 
>                         android:icon="@drawable/mh_logo" 
>                         android:label="@string/service_name"> 
>                 </service> 
>      </application> 
>
>

-- 
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