Good evening, everyone. I would like my application to be called when the user clicked "Settings" on his device.
So I tried to use a BroadcastReceiver to intercept android.provider.Settings.ACTION_SETTINGS
and put my application as the default.
I'm sweating the shirt, I created an app with:
startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);
This app works correctly, it invokes the Android configurator. It turns out that I would like my broadcast to be recognized, and by calling this activity Android would display my application for the user to select her or the configurator.
I then broadcast:
<receiver android:name=".BlockConfig">
<intent-filter >
<action android:name="android.provider.Settings.ACTION_SETTINGS"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</receiver>
But when I call Settings.ACTION_SETTINGS, it opens directly in the configurator.
Can someone give me a light where I'm going wrong? Thanks