More Mono for android (Xamarin.Android) little tips.


Mono for android or Xamarin.Android little tips:

  1. If you turn on GPU emulation, sometimes GPU emulation doesn’t actually start, it downgrades to software rendering, this makes the emulator slower and it doesn’t actually uses OpenGL(if you are using monogame, this means your game would probably not work).
  2. If you are looking for a grid like component that stretches with a fix number of grids, I couldn’t find one. Had to write my own and the code is ugly Sad smile.
  3. You can use ScreenOrientation = ScreenOrientation.Portrait as an attribute in your activity and ConfigurationChanges = ConfigChanges.Orientation is also an activity attribute that prevents the activity from restarting when orientation changes.

Xamarin just announced support for C# 5 features in the mobiles suites, very exciting news… more details here.

Tomorrow, post about monogame stuff.


2 Responses to “More Mono for android (Xamarin.Android) little tips.”

  1. gpu emulation doesn’t work because the android sdk places some files in the wrong folder. try to copy the libgl* files in C:\Users\UserName\AppData\Local\Android\android-sdk\tools\lib into the parent folder and it should work

  2. 2 roundcrisis

    In my case I had to change the memory used on the device instance and it worked

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: