Xamarin is a software for developing android, iOS, or hybrid applications. In general, the process of developing an Android application on Xamarin is not much different from Android Studio. So, if you learn to develop an android application using Xamarin, chances are that you can also develop applications on Android studios. Through the article below, will give you a guide on how to make an Android application with Xamarin. Click the following link to download: Xamarin * Attention: the file capacity is very large, reaching 9GB. Xamarin is integrated into Visual Studio Community Edition. How to make an Android application with Xamarin 1. Creating a New Application The first step in making an Android application using Xamarin is to run Visual Studio to create a new application by using File> New> Project. In the New Project column, select the Blank App (Android) option. After that, specify the file name and file storage location, then click OK. 2. Setting Properties and Select Android OS Segmentation If the previous step has been done, you can set the properties and choose the user operating system android segmentation. Fill in the target column android version with the Android operating system that is not too long or new (medium) so that the application can be used more by users. 3. Add Activities In your new project, there is a file called Android Manifest. This file is useful for managing all the activities performed on your application. Xamarin has two versions in displaying Android Manifest. The first version is shown in the form, and the second version is shown in the .xml file format. 4. Design Settings You can access the main.axml file through the Resources / layout / Main.axml folder. In this file, you can see a tab that displays a mobile application mockup, which can be your reference in developing an android application. On the left side of the photo, there is a toolbox panel with various wigdet that can be dragged & dropped directly into the view column. Besides the Main.axml file, there are other files that cannot be separated from the Main.axml file. This file is named MainActivity.cs. You can access this file via the Solution panel. In the MainActivity.cs file, you can see a tab that contains a script to interact with the user. 5. Change the File Format An Android application must be exported to a .apk format so that it can be installed on a smartphone or uploaded to the Play Store. How to? First, activate the solution configuration to be released in the top menu. After that, choose Tools> Android> Publish Android App. If this has been done, select Create New Keystore in the Publish Android Application panel. Then, click browse and specify the password and storage location of the keystore. Add additional information about KeyStore on the Key Creation panel. Determine the location of the * .apk file and select Create
0 Comments
Leave a Reply. |