Hide Assistive Touch when using the app ?

We can set hide Assistive Touch when user use our app in iOS ?

Best Answer

Answers

  • I made some code for disable home button in app, like below:

    • On MainActivity:

      public override void OnAttachedToWindow()
      {
      base.OnAttachedToWindow();
      Window.SetType(WindowManagerTypes.Keyguard);
      }

    • On AndroidManifest:

      <application android:label="MyApp" android:theme="@style/Theme.Splash">
      <activity android:name="awesome.demo.activity" android:theme="@style/Theme.Splash">
          <intent-filter>
              <action android:name="android.intent.action.MAIN" />
              <category android:name="android.intent.category.LAUNCHER" />
              <category android:name="android.intent.category.HOME" />
              <category android:name="android.intent.category.DEFAULT" />
          </intent-filter>
      </activity>
      

    But the app is crash with error: Java.Lang.IllegalArgumentException - Window type can not be changed after the window is added.

    Anyone can give me some advises ?

Sign In or Register to comment.