Skip to main content

Posts

Showing posts with the label android first program

First game in Android/Simple funny game in android/First program in android

First game in Android/sample program in android/simple android game program By following the tutorials given in android basics, you can now develop a simple, but funny game. I think, you can now easily handle button and its click events.  Ok, first create a new Android Project. As said earlier, first click on “New Project”, select “Android” and then fill out the form with suitable details. First add an image of your favorite actor’s or actress ‘s photo in the drawable folder(Just copy the photo and right click on the drawable folder and click on “paste”). Then go to main.xml. Now create a layout and add four image views to the main.xml. I have created a table layout and added four image views. Then make each button clickable as we did in our first application.  Then add your favorite actor/actress images as background. < ImageView             android:text = ""             android:id = "@+id/image1"             android:layout_width = "100dip"