Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Hide Assistive Touch when using the app ?

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

Best Answer


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

    • On MainActivity:

      public override void OnAttachedToWindow()

    • On AndroidManifest:

      <application android:label="MyApp" android:theme="@style/Theme.Splash">
      <activity android:name="awesome.demo.activity" android:theme="@style/Theme.Splash">
              <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" />

    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.