android - Intent to open Wi-Fi Direct settings -
to open wi-fi settings code is:
startactivity(new intent(settings.action_wifi_settings));
to open wi-fi direct settings code ?
here's manifest activity on kitkat,
<activity android:name="settings$wifip2psettingsactivity" android:taskaffinity="com.android.settings" android:parentactivityname="settings$wifisettingsactivity"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.voice_launch" /> </intent-filter> <meta-data android:name="com.android.settings.fragment_class" android:value="com.android.settings.wifi.p2p.wifip2psettings" /> <meta-data android:name="com.android.settings.top_level_header_id" android:resource="@id/wireless_settings" /> </activity>
so doesn't exposed explicit intent. may able start via componentname
name not guaranteed same across android releases.
Comments
Post a Comment