I\'m having some problems making PreferenceScreen
and applicationIdSuffix
work together.
Supposing my app package/applicationId
Your confusion comes from the fact that applicationIdSuffix
only changes the package name of the application (its unique id), but does not change the java package name of your classes inside the application, including your Activity.
This means that you should declare in your preferences:
android:targetClass="com.myapp.activities.AboutActivity"
android:targetPackage="@string/packagename"
Where targetClass
is always the same, while targetPackage
depends on your build type and can be com.myapp
or com.myapp.dev
.