Category Archives: Tips

Setting Fullscreen Activity (with no Status and Title Bars)

Sometimes we may need to display our activity in a fullscreen mode without the status and title bars in our applications. There are many ways to accomplish this purpose in Mono for Android applications, but we will show 2 of them in this post. 1. Declaratively By using the custom attribute: 2. Programmatically By setting […]

Get Size, Orientation and Rotation of the Device Screen

Different Android devices have different widths and heights. Sometimes, it is asked to become independent of the screen properties and you may need to know the screen width and height in pixels, screen orientation, and screen rotation at runtime. In Mono for Android applications, this can be achieved by using the Android.Views.Display and WindowManager classes. […]

Creating an Options Menu in Mono for Android Applications

All Android devices have the “Menu” button that displays the options menu on the bottom of the screen. Normally, the options menu provides additional functionality, navigation or settings for your application. Creating an options menu in a Mono for Android application can be accomplished by overriding OnCreateOptionsMenu and OnOptionsItemSelected methods in your activity. We will […]

Setting Screen Orientation in Mono for Android Applications

The ScreenOrientation property sets and gets the orientation of any activity’s display on the device screen. If you need to display your application in a specific orientation such as portrait or landscape, this property will help you to do so. Below is the way to accomplish this purpose in a Mono for Android way. USE […]

Where is AndroidManifest.xml?

Every Android application should have an AndroidManifest.xml file that provides the required information about the application itself. It does several important things such as naming the package for the application, defining the components (activities, services, etc.), declaring the security permissions, and so on. But you won’t see an AndroidManifest.xml in a Mono for Android project […]