Android With .NET

Posted on Updated on

Image result for Android With .NETAndroid With .NET

Obscuration is the authority IDE for Android improvement and you can get Eclipse when you download the Android SDK. Shroud is a group driven IDE cross-dialect and cross-stage apparatus that has been reached out with an Android module. Obscure gives about the majority of the elements an IDE is relied upon to have: code fruition, VCS mix, language structure shading, and a UI originator for Android. Inquisitively, Eclipse accompanies its own particular Java compiler with two outstanding elements incremental forms and incorporate with blunders. That implies that sources are aggregated the length of you code piecemeal. You get an executable regardless of the possibility that the sources contain mistakes. The executable runs fine and dandy until the broken section is come to.

IntelliJ IDEA is a commercial IDE for Java with a plug-in for Android development. Overall, IntelliJ IDEA provides a better experience than Eclipse as far as usability is concerned. It offers richer code completion as well as VCS integration and static analysis of the code. Nicely, IntelliJ IDEA has a Community Edition, which is free and includes the Android plug-in.If you’re coming from .NET and Visual Studio, IntelliJ IDEA Community Edition is probably the ideal choice-and it’s free.

Preparing the Environment

Indeed, even before you introduce the IDE, you ought to download and introduce the Java SDK and the Android SDK. You can get the most recent Java SDK from The Java Standard Edition is fine. You get the Android Development Tools (ADT) package from The default ADT package for Windows, and also for different stages, incorporates the Eclipse and Android modules. In the event that you plan to utilize IntelliJ IDEA as your Android IDE, you might need to settle on a littler download and simply get the Android SDK and stage apparatuses. In case you’re downloading the Android SDK for Windows, you can get a helpful installer that noiselessly duplicates every required record.

In case you’re downloading the Android SDK for Windows, you can get a helpful installer that noiselessly duplicates every single required record.

Directly after the fruitful culmination of the setup wizard, introduce all fundamental Android SDK devices, however none of the stage particular tooling. You are not yet prepared to assemble Android applicationsinside IntelliJ IDEA or some other IDE.

The following stride comprises of propelling the SDK Manager. The Windows installer offers to do only that from the last page of the wizard. The SDK Manager permits you to look over various Android stages to introduce. (See Figure 1.)

Figure 1: You can pick numerous Android SDKs to introduce.

You can include new stages whenever by propelling the SDK Manager from the establishment organizer or from the menu of the IDE of decision. You likewise utilize the SDK Manager instrument to uninstall at least one Android bundles.

Are you game? Code!

With Java and Android SDK set up and the IDE accessible, you’re good to go for a “welcome world” application. Accepting that you’re utilizing IntelliJ IDEA Community Edition as the IDE, the initial move toward an Android application takes you to the discourse box of Figure 2.

Figure 2: Creating another Android application extend requires the determination of an Android target stage.

Notwithstanding the name and area of the venture, show the base SDK required to run the application. The substance in the drop-down rundown of Figure 2 relies on upon the stages introduced through the SDK Manager.

In the following of the wizard, IntelliJ IDEA requests that you show the bundle name and how you need to troubleshoot the application. (See Figure 3.)

Figure 3: Create another Android application extend.

Figure 4: Editing an Android virtual gadget is simple utilizing AVD.

The bundle name ought to be in the shape, where the xxx placeholder remains for the organization name and yyy is for the application example is a typical naming tradition that was acquainted with diminish the danger of name clashes with different applications. It’s not required however.

To test the application, you have two similarly great choices: the emulator or genuine gadgets. You might need to begin with the emulator and move to one specific gadget as the application gets steady and wealthier in capacities. In a perfect world, before discharging any item, you ought to test it on various gadgets with various qualities.

You might need to begin with the emulator and move to one specific gadget as the application gets steady and wealthier in capacities.

From the point of view of an IDE, this implies having two form arrangements prepared, one where the objective gadget is the emulator and one where the objective gadget is any perfect gadget associated through a USB port.


Keeping in mind the end goal to test on the emulator, you additionally need to set up an Android Virtual Device (AVD). An AVD is only an arrangement document through which you characterize equipment and programming alternatives for the emulator to impersonate. You make an AVD utilizing the AVD Manager-one of the Android SDK instruments that IntelliJ IDEA and different IDEs guide to their menus.

Notwithstanding the AVD settings, IntelliJ likewise offers a couple of parameters through the Emulator tab of the exchange box utilized for altering assemble setups. For instance, you can set the system idleness parameter to reenact a 3G association with the Internet from inside the telephone emulator.

A Look at the Project

An Android venture is essentially a Java extend, so it offers a large number of the great organizers you find in a Java venture, for example, src, libs, and res. The src envelope contains the source code though the libs organizer records outside libraries. The res organizer contains every outer asset utilized by the application, for example, pictures, format documents, strings, and menus. The res envelope more often than not contains subfolders for drawable, format, qualities, and menu.

The drawable envelope contains the majority of the pictures referenced from the application. This incorporates the application’s symbol, the sprinkle screen picture, and also some other pictures you use in the UI.

The design envelope contains records used to characterize the structure of perspectives. A UI format record is a XML document that you can alter through the UI creator that is incorporated in IntelliJ IDEA. You can likewise alter physically in a content manager.

A UI format document is a XML record that you can alter through the UI originator that is incorporated in IntelliJ IDEA.

The qualities organizer contains XML documents that proclaim strings, graphical styles, and hues. More often than not, information put away in such XML records is communicated as name/esteem sets. The menu envelope contains the meaning of menus to be utilized by the application. A menu is communicated as a XML document and comprises of a rundown of things, each of which shows an extraordinary ID, a reference to a string in the qualities organizer and reference to a symbol in the drawable envelope.

In an Android application, you may likewise locate a discretionary organizer named resources for putting away assets. The principle distinction between the advantages and the res organizer is that any substance put in resources is not going to be pre-handled by the Android system. The advantage of asset pre-handling is that the asset is preoccupied to a bland ID, which empowers the fundamental Android stage to serve the most proper form of that asset in light of dialects, OS forms, and screen size or introduction. The substance in resources is given as-is and the designer is in charge of understanding it automatically.

Android assets can be assembled together on a for each gadget premise so you can have distinctive assets chose for various classes of gadgets. In Figure 5, you see a few drawable-xxx and qualities xxx organizers. The xxx addition shows the scope of gadgets that the drawables and qualities are for. For instance, drawable-hdpi shows that the substance might be utilized for gadgets that Android decides to have a high thickness. Android characterizes four summed up thickness values: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (additional high).

Figure 5: An Android venture is opened in IntelliJ IDEA.

Figure 6: This is the IntelliJ graphical supervisor.

On the off chance that that doesn’t work for you, you can amass by screen width. For this situation, Android offers four summed up sizes: little, ordinary, substantial, and xlarge. Take note of that with Android 3.2, summed up sizes are belittled for more particular and adaptable sizes. An illustration is the qualities sw720dp-arrive organizer in Figure 5. The organizer contains qualities to be utilized on gadgets with a base screen width of 720 pixels and in scene mode. For more data about the fragile craft of managing various Android gadgets, look at authority documentation:

Take note of that with Android 3.2, summed up sizes are expostulated for more particular and adaptable sizes.

As specified, in the src envelope, you can discover the greater part of the Java classes that make up the application. Amid the New Project wizard, IntelliJ IDEA offers to make an example action that fills in as the passage indicate the application. In Android improvement, a movement is a plain Java class and a basic part of any Android application. Here’s the essential code that offers life to an Android application.

open class HelloWorldActivity develops Activity {


open void onCreate(Bundle savedInstanceState) {





In Android improvement, an action is a plain Java class and a basic part of any Android application.

The class develops the base Activity class and abrogates the technique onCreate that is called when the movement is initially made. The setContentView strategy sets the UI of the movement. The expression R.layout.main comes about because of a powerfully created class adroitly like asset classes in .NET that are worked out of RESX records. The expression focuses to the substance of the main.xml document situated under res/design.


In an Android application, you will have one action for every screen exhibited by the application. As such, the application comprises of a solitary movement, however a few settings in the show document check this action as the section purpose of the application.

The Android Application Manifest

A show document is required for each Android application. It must be a XML record named AndroidManifest.xml and situated in the venture root organizer. The show presents data about the application to the Android working framework, incorporating the passage point in the code required to dispatch the application, and authorizations the client must have so as to run the application (e.g., access to the system or the neighborhood stockpiling).

As an engineer, you take the show record as it leaves the underlying wizard and alter it. In the first place, you have to get to automatic capacities that require authorizations from the client, for example, nearby capacity, sensors, and Internet. Another alter to make is the point at which you add another movement to your codebase. Any action class, truth be told, must be proclaimed in the show. The accompanying code scrap demonstrates the announcement that transforms a movement into the section point in the code:


<application android:label=”@string/app_name”


For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.
Helpline: 9814666333, 8699444666

Please fill the form and we shall contact you soon.


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