Tuesday, June 22, 2010

Polishing Android application

Before deployment of an Android application there are few common steps that you should consider to ensure the application has a professional look:
  1. Add an EULA - See here how.
  2. Set the correct sound control - Android has multiple sound controls (alarm volume, sound volume, phone volume etc.). You should me sure that when the user click on the volume buttons the correct volume is set (See here how). For example, to set the volume button to control the media volume:
    this.setVolumeControlStream(AudioManager.STREAM_MUSIC);

  3. Disable buttons that are not in use - Except the "Home" buttons, all other buttons can be disabled by overriding "onKeyDown" function.

  4. Hide the window title bar & the Android status bar - To hide the status bar:
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
    To hide the window title:
    requestWindowFeature(Window.FEATURE_NO_TITLE);

No comments: