[HOW TO] Create your own Android Launcher (Video Series) [VIDEO ADDED 8/18/15]

Search This thread

powerpoint45

Senior Member
Jan 31, 2012
2,465
2,290
Dallas
I have started a series on how to make your own Android Launcher and thought I would share. FYI: You will need to know moderate programming skills in order to understand this series. Tell me what you all think. Enjoy!

Below are all the parts of the series I have created so far. I will update this list each time I add a new part.

PART 1

PART 2

PART 3-1

PART 3-2

PART 4-1

PART 4-2

PART 5

PART 6

PART 7-1

PART 7-2

PART 8

PART 9-1

PART 9-2

PART 10

PART 11

PART 12-1

PART 12-2

PART 13-1

PART 13-2

PART 14-1

PART 14-2

PART 14-3

PART 15
 
Last edited:
Aug 19, 2011
31
9
37
Telford
I have found one problem. I have changed the script a so it is loading a new frame instead of the sliding drawer, but the launcher crashes when I click on certain apps on my phone (e.g Camera, Call Log, Phone).
I have looked everywhere in the code, but I can't figure out what it is that is causing the problem. The project files for my launcher are here if you would like to look at them.

Thanks in advance.
 

powerpoint45

Senior Member
Jan 31, 2012
2,465
2,290
Dallas
I have found one problem. I have changed the script a so it is loading a new frame instead of the sliding drawer, but the launcher crashes when I click on certain apps on my phone (e.g Camera, Call Log, Phone).
I have looked everywhere in the code, but I can't figure out what it is that is causing the problem. The project files for my launcher are here if you would like to look at them.

Thanks in advance.

Will take a look at it

Sent from my Amazon Kindle Fire2 using Tapatalk 2
 
  • Like
Reactions: LfcFan1977

powerpoint45

Senior Member
Jan 31, 2012
2,465
2,290
Dallas
I have found one problem. I have changed the script a so it is loading a new frame instead of the sliding drawer, but the launcher crashes when I click on certain apps on my phone (e.g Camera, Call Log, Phone).
I have looked everywhere in the code, but I can't figure out what it is that is causing the problem. The project files for my launcher are here if you would like to look at them.

Thanks in advance.

Also you could add a try catch statement when launching activity and log the error

Sent from my Amazon Kindle Fire2 using Tapatalk 2
 
  • Like
Reactions: LfcFan1977

powerpoint45

Senior Member
Jan 31, 2012
2,465
2,290
Dallas
I have found one problem. I have changed the script a so it is loading a new frame instead of the sliding drawer, but the launcher crashes when I click on certain apps on my phone (e.g Camera, Call Log, Phone).
I have looked everywhere in the code, but I can't figure out what it is that is causing the problem. The project files for my launcher are here if you would like to look at them.

Thanks in advance.

I opened your project but it cannot find ActionBarActivity when you extend it. Are you using eclipse. Their is no actionbaractivity class in what u sent me

Sent from my Amazon Kindle Fire2 using Tapatalk 2
 
  • Like
Reactions: LfcFan1977

powerpoint45

Senior Member
Jan 31, 2012
2,465
2,290
Dallas
Sorry I forgot to say that I added ActionBar to my Launcher using this guide.



Sent from my Amazon Kindle Fire2 using Tapatalk 2

I tried the apk in the bin dir of the project u gave me. Good looking launcher btw.The app never forced closed on any apps I opened. My suggestion is add a try catch to startactivity.

Ex

try { ...
Startactivity...etc
} catch (Exception e)
Log.e("MYAPP", "exception", e); }

if startactivity is the problem the app will not fc but log error to logcar.
From terminal type adb logcat to capture error messages.
 
Last edited:
  • Like
Reactions: LfcFan1977

Awesome Developer

Senior Member
Jul 7, 2013
1,724
1,437
31
alexandria
Thanks for this guide

THANKS MY FRIEND FOR THE GUIDE AND AWESOME WORK :good:

BUT I HAVE A SILLY QUESTION WHAT THE NAME OF PROGRAM YOU USE AND PLEASE THE DOWNLOAD LINK

AND THANKS :good:
 
  • Like
Reactions: powerpoint45
Aug 19, 2011
31
9
37
Telford
Sent from my Amazon Kindle Fire2 using Tapatalk 2

I tried the apk in the bin dir of the project u gave me. Good looking launcher btw.The app never forced closed on any apps I opened. My suggestion is add a try catch to startactivity.

Ex

try { ...
Startactivity...etc
} catch (Exception e)
Log.e("MYAPP", "exception", e); }

if startactivity is the problem the app will not fc but log error to logcar.
From terminal type adb logcat to capture error messages.

Well I have managed to get this log

Code:
12-29 15:44:21.882: E/MYAPP(15021): exception
12-29 15:44:21.882: E/MYAPP(15021): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.camera/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml?
12-29 15:44:21.882: E/MYAPP(15021): 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.app.Activity.startActivityForResult(Activity.java:2830)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:839)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.app.Activity.startActivity(Activity.java:2936)
12-29 15:44:21.882: E/MYAPP(15021): 	at com.amh.launcher.DrawerClickListener.onItemClick(DrawerClickListener.java:28)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.widget.AdapterView.performItemClick(AdapterView.java:284)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.os.Handler.handleCallback(Handler.java:587)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.os.Handler.dispatchMessage(Handler.java:92)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.os.Looper.loop(Looper.java:130)
12-29 15:44:21.882: E/MYAPP(15021): 	at android.app.ActivityThread.main(ActivityThread.java:3706)
12-29 15:44:21.882: E/MYAPP(15021): 	at java.lang.reflect.Method.invokeNative(Native Method)
12-29 15:44:21.882: E/MYAPP(15021): 	at java.lang.reflect.Method.invoke(Method.java:507)
12-29 15:44:21.882: E/MYAPP(15021): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
12-29 15:44:21.882: E/MYAPP(15021): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
12-29 15:44:21.882: E/MYAPP(15021): 	at dalvik.system.NativeStart.main(Native Method)

But not exactly sure on what I would need to do to help it.
 

powerpoint45

Senior Member
Jan 31, 2012
2,465
2,290
Dallas
Well I have managed to get this log

Code:
12-29 15:44:21.882: E/MYAPP(15021): exception
12-29 15:44:21.882: E/MYAPP(15021): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.camera/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml?
12-29 15:44:21.882: E/MYAPP(15021): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405)
12-29 15:44:21.882: E/MYAPP(15021): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
12-29 15:44:21.882: E/MYAPP(15021): at android.app.Activity.startActivityForResult(Activity.java:2830)
12-29 15:44:21.882: E/MYAPP(15021): at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:839)
12-29 15:44:21.882: E/MYAPP(15021): at android.app.Activity.startActivity(Activity.java:2936)
12-29 15:44:21.882: E/MYAPP(15021): at com.amh.launcher.DrawerClickListener.onItemClick(DrawerClickListener.java:28)
12-29 15:44:21.882: E/MYAPP(15021): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
12-29 15:44:21.882: E/MYAPP(15021): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
12-29 15:44:21.882: E/MYAPP(15021): at android.os.Handler.handleCallback(Handler.java:587)
12-29 15:44:21.882: E/MYAPP(15021): at android.os.Handler.dispatchMessage(Handler.java:92)
12-29 15:44:21.882: E/MYAPP(15021): at android.os.Looper.loop(Looper.java:130)
12-29 15:44:21.882: E/MYAPP(15021): at android.app.ActivityThread.main(ActivityThread.java:3706)
12-29 15:44:21.882: E/MYAPP(15021): at java.lang.reflect.Method.invokeNative(Native Method)
12-29 15:44:21.882: E/MYAPP(15021): at java.lang.reflect.Method.invoke(Method.java:507)
12-29 15:44:21.882: E/MYAPP(15021): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
12-29 15:44:21.882: E/MYAPP(15021): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
12-29 15:44:21.882: E/MYAPP(15021): at dalvik.system.NativeStart.main(Native Method)

But not exactly sure on what I would need to do to help it.

You should System.println(PACSFORADAPTER[LOC].name);
Not on comp so I think u do that
But then you can make sure it is a legit activity
Sent from my Amazon Kindle Fire2 using Tapatalk 2
 
Last edited:

missinglink69

Senior Member
Jan 18, 2009
105
15
Anaheim
Great Stuff

Thanks for sharing, the videos are very helpful and easy to understand. I hope you continue make more of these videos in the future.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 105
    I have started a series on how to make your own Android Launcher and thought I would share. FYI: You will need to know moderate programming skills in order to understand this series. Tell me what you all think. Enjoy!

    Below are all the parts of the series I have created so far. I will update this list each time I add a new part.

    PART 1

    PART 2

    PART 3-1

    PART 3-2

    PART 4-1

    PART 4-2

    PART 5

    PART 6

    PART 7-1

    PART 7-2

    PART 8

    PART 9-1

    PART 9-2

    PART 10

    PART 11

    PART 12-1

    PART 12-2

    PART 13-1

    PART 13-2

    PART 14-1

    PART 14-2

    PART 14-3

    PART 15
    10
    Just added part 6
    4
    Little late but I added part 8 to this thread

    PART 8
    3
    Added part 11
    Enjoy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    3
    Loving this tutorial, I've been trying to make a launcher from scratch for a while now. Can't wait to see what else you have to offer us. :D

    Thanks for the support my friend. Glad you are enjoying it!

    Sent from my Amazon Kindle Fire2 using Tapatalk 2