Site icon PCSalt

Create Activity – Android

Once you completed the installation of eclipse, integrated it with required plugins and have your AVD or physical device ready for development then you can start developing your application.
Here, we are going to create an activity for our first application. You can find the source code at the end of this post.The benefit of using eclipse is that it provides the standard directory structure for android app development. Creating activity just to see the working of your installation is easy task. Follow the steps to create an app for displaying “Hello World” in android:

  1. Create a project,
  2. Right Click on the project > Run As > Android Application

If you have AVD or physical device ready, then it may ask to choose a device. Then you will the hello world app in your device.
If everything goes as expected then you will see

Hello World!

 

Exit mobile version