I am using preference in kotlin to create a setting for my app and able to design everything perfectly but when I put intent in it to move to other screen app is getting close again and again. This is my code if anyone know what mistake I am doing then it will be very helpful.
enter code here
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
app:defaultValue="true"
app:icon="@drawable/blore_image"
app:key="profile_image"
app:summary="@string/profile_summary"
app:title="@string/profile">
<intent
android:targetPackage="com.ebookfrenzy.reminder.setting"
android:targetClass="com.ebookfrenzy.reminder.setting.ProfileImage"/>
</Preference>
</PreferenceScreen>