-
Notifications
You must be signed in to change notification settings - Fork 1
Settings Page
levching edited this page Apr 15, 2020
·
3 revisions
You may open device setting application pages by using a combination of Intent & SA.Android.Provider.AN_Settings see the example below:
using SA.Android.App;
using SA.Android.Content;
using AN_Settings = SA.Android.Provider.AN_Settings;
...
var intent = new AN_Intent(AN_Settings.ACTION_SETTINGS);
AN_MainActivity.Instance.StartActivity(intent);
Feel free to explore another AN_Settings provider actions.
The SA.Android.Provider.AN_Settings class is designed as a reflection of Android android.provider.Settings
The same way you can also lunch let's say a gallery app:
var intent = new AN_Intent();
intent.SetAction(AN_Intent.ACTION_VIEW);
intent.SetType("image/*");
intent.AddFlags(AN_Intent.FLAG_ACTIVITY_NEW_TASK);
AN_MainActivity.Instance.StartActivity(intent);
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Build Info
- Dark Mode
- Package Info
- Runtime Permissions
- Run External App
- Immersive Mode
- PackageManager
- Popups & Preloaders
- Rate Us Dialog
- Activity
- Intent
- Settings Page
- Media Player
- Date Picker Dialog
- Time Picker Dialog
- Locale
- Wheel Picker Dialog
- Developer Console Setup
- Connecting to The Service
- Purchase Flow
- Transactions Validation
- Subscriptions
- Licensing
- Getting Started
- Games Sing-in
- Server-side API Access
- Leaderboards
- Achievements
- Saved Games
- Image Manager
- Settings Intent