Android Question ActivityNotFoundException with AHPreferenceActivity

William Hunter

Active Member
Licensed User
Longtime User
I am having a problem using the AHPreferenceActivity library version 1.04. I have previously used this library successfully with a project that I am updating. I am getting this error:

android.content.ActivityNotFoundException: Unable to find explicit activity class {mail.purge.whapp/de.amberhome.objects.preferenceactivity}; have you declared this activity in your AndroidManifest.xml?

I have included the required code in my Manifest included below. I have also attached a view of my Path settings.

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8"/>
<supports-screens android:largeScreens="true"
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
'End of AHPreferenceActivity

I can’t see any reason for this error to occur. I have tried alternately placing the AHPreferenceActivity jar and xml files in the default and custom libraries folders. The required Manifest entry is there. Nothing of great significance has changed in the project. My Path settings have changed, in that I have moved up to level 18 for the Android jar.

I may be missing something that another pair of eyes will readily see. Any assistance in resolving this issue would be greatly appreciated.

Best regards :)


  • Paths.jpg
    81.6 KB · Views: 383