.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,722 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am newbie.
I would like to know is it possible to start an intent via click a button at maui?
Such like
startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS))
or
startActivity(new Intent(Settings.ACTION_SETTINGS));
Thanks.
Of course
private void OpenBluetoothSetting()
{
#if ANDROID
//Android.Content.Intent //Android.Provider.Settings.ActionWifiSettings
var intent = new Intent(Android.Provider.Settings.ActionBluetoothSettings);
//Microsoft.Maui.ApplicationModel.Platform
var activity = Platform.CurrentActivity;
activity?.StartActivity(intent);
#endif
}