Using PreferenceScreen with applicationIdSuffix

前端 未结 3 653
情歌与酒
情歌与酒 2021-01-13 06:05

I\'m having some problems making PreferenceScreen and applicationIdSuffix work together.

Supposing my app package/applicationId

3条回答
  •  一个人的身影
    2021-01-13 06:33

    What I do in my app is attach an onPreferenceClickListener to the preference in its host activity, and build the intent inside that listener's onPreferenceClick method. By generating the intent from code, you directly reference the target class and the question of packages never comes up.

提交回复
热议问题