Wednesday, 29 May 2013

Android developmet - impelemting Android splash screen

To customise your android application to start as a splash screen on clicking its icon from home screen, follow this steps
  • After creating the project skeleton, note that a file called MainActivity.java has been created for you already in src floder.
  • Also notice that an xml file called activity_main.xml has also been added to your layout folder
  • Also note that for each activity , they exit an intent filter registerd.
  • Now create a new android Activity called splash with a corresponding splash. xml created in layouts for you.
  • Next go the xml file created for you and add a Frame layout the default relative layout alredy created for you.
  • On the frame layout , add an imageview containing the splash image
  • Next go to your manifest file and edit the intent filter for the the mainActivity, set its category to default instead of launcher
  • create intent filter for your splash activity, setting its action to main and category to launcher.

No comments:

Post a Comment