Make Custom Android Launcher

Image
There are thousands of Android Launcher available in Play Store. Each and every Android mobile user loves to customize their mobile with different Android Launcher. If you want to develop your own launcher, this post helps you to fulfill your wish. In this post, you will find a demo launcher with layout and code which include many features like Drag & Drop , rearrange the installed application, change the background wallpaper etc. Here is an example of demo launcher which display all the installed applications in 3*3 Grid View format compatible to all devices. First of all we need to find all the installed applications from device so we should implement a subclass of AsyncTaskLoader that loads the currently installed applications from the package manager. If you want to display all the installed applications in  List View you can use official Android Developer reference .

Fragment Vs FragmentActivity

  • Actually, There's no difference between fragment and fragmentActivity in terms of their objective. Both are doing same but in different ways.
  • If your app targeting a platform version before honeycomb, you need to use fragmentActivity class which holds your fragment because earlier versions of android doesn't support fragment class.
  • If your app targeting a higher version of API (higher than honeycomb), you can use fragment class. This fragment is hold by activity.
  • If you are using fragmentActivity, you have to import the android.support.v4.app.Fragment package.
          Or
  • If you are using fragment, you have to import the android.app.Fragment package.
  • Both classes has different methods to get the Fragment Manager.
         For Fragment class the method is,
                 getFragmentManager()

         For FragmentActivity class the method is,
                 getSupportFragmentManager()

For more information, Click Here

Comments

Popular posts from this blog

Make Custom Android Launcher

Layouts for Fragment