Assignment C-22: Study and implementation of Android Simulator “Hello World”

AIM:

Study and implementation of Android Simulator “Hello World”.

Theory:

Before we can run a simple Hello World App we need to install the programming environment. We will run Hello World on the Android Emulator (which runs very slowly) and on the phone (which is super fast). The best resource for developing Android apps is Android Developers. We will use developers as a source for material for parts of this course.
Get the Android Studio
Android Studio is the official Integrated Development Environment (IDE) for Android development. It includes everything you need to begin developing Android apps.
After installing Android Studio, you have:
  • IntelliJ IDE + Android Studio plugin
  • Android SDK Tools
  • Android Platform-tools
  • A version of the Android platform
  • A version of the Android system image for the emulator
Click on Download Android Studio and SDK Tools to get started.
It will automatically detects your operating system and gives the correct Android Studio download link.


Install Android Studio


Open android-studio-ide-1641136.dmg (assuming Mac OS X is the target) and drag "Android Studio" to "Applications", as shown below. Go to Launchpad or your applications directory, open Android Studio to complete installation. First, it asks you to import your settings from a previous version of Android Studio. If you have a previous version, specify config folder or installation home of the previous version of Android Studio. After you click "OK", it shows a welcome message. After you click "Next", select "Standard" as the type of setup you want for Android Studio. Next, Android Studio will automatically install the Android SDK. Accept all licenses to continue. After installing the Android SDK, you are ready to build and run the Hello World app.


What is in the Android SDK?

There are several packages associated with the Android SDK. If you look in the directory ~/Library/Android/sdk you will see a number of sub directories associated with these packages. For more information of what's in these directories checkout exploring the SDK

Creating a New Android Project


  1. Click "Start a new Android Studio project".
  2. Fill in the application name, package name, and project location as as shown below. The package name is the reverse of the company domain. If you want to customize the package name, click edit on the right of Package name. The project location is where your project files reside. You can choose any location you want. Click next when you are done.
  3. For Minimum Required SDK, just accept the default and click next
  4. Create activity. Here you select an activity template for your app. Select Blank Activity and click Next.
  5. New blank activity. Again, just click through accepting the default settings then click finish

Conclusion:


Hence implementation of hello world in android simulator is done.

0 comments:

Post a Comment