Android Development

Rapid android development from Berlin

Browsing Posts tagged activity

Many Applications, mostly games, on the market show splash screens. With this screen they prompt a logo for the application and/or the author.
I will show you a short way to implement a splash screen which will occur on every startup, will stay for a number of seconds you can define, will close on touching the screen and will not reappear on pressing the back button.

I created an empty project named SplashScreen with the activity SplashScreen. This activity will display the splash screen, so we have to create a new activity which will be the first real view you want to display. In my case this activity is named MyApp.
continue reading…

  • Share/Bookmark

After working on our first list application and finally adding the user photos to our list we now want to show you how you can use your activity in another context.

This tutorial will show you how you can use a button to open the created contact list to pick a contact and display the name of the picked contact with the “Toast widget”.

The first thing you should do: create another project to be sure to have two working application samples.
Package: com.droidnova.android.samples
Activity name: PickYourDude
Application name: Pick your dude
continue reading…

  • Share/Bookmark

The first part of our application could only display a default icon for each contact in our list. Now we want to change that and display the contact photo you added to your contacts on your phone.

First we start to change our main.xml. We have to remove the src attribute and add an id to the ImageView node.

1
2
3
<imageview android:id="@+id/contact_image"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

On line 1 the source is replaced with the id named “contact_image”.
continue reading…

  • Share/Bookmark
Powered by WordPress Web Design by SRS Solutions © 2010 Android Development Design by SRS Solutions