Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
- using (AndroidJavaObject currentActivityObject =
- unityClass.GetStatic<AndroidJavaObject>("currentActivity"))
- using (var intentObject = new AndroidJavaObject(
- "android.content.Intent", "android.settings.LOCATION_SOURCE_SETTINGS"))
- {
- currentActivityObject.Call("startActivity", intentObject);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement