Android - How to start creating an application to run?

I am going to launch my new application, which will become a home replacement. I went through an example provided by Google. but I'm still a little confused.

How to start? Should I create a normal activity by expanding the Activity class, just set the background image (wallpaper) and use the grid to display all applications?

How to get Android to treat my application as a startup process?

there are so many questions that arise in my head, and please do not advise me to go through the Android Launcher, because it has almost more than 100 classes, and I just need to start after that, I know what I want from my application .

+6
source share
4 answers

I would start by looking at the source for the launch that comes with Android to get an idea of ​​how it works and how the code is structured:

https://android.googlesource.com/platform/packages/apps/Launcher2

+2
source

Found an amazing article related to the question: http://arnab.ch/blog/2013/08/how-to-write-custom-launcher-app-in-android/

+2
source

I was in the same position as you. I took a look at the official Launcher2 code, which is too complicated to be an example for a start. The example of a house included in the SDK itself is (in my honest opinion) its intended purpose too complicated, that is, to help guys like you and me learn how to create a custom launcher ... what the hell is Google.

In any case, I put together a quick super simple launch (called SimpleLauncher, surprise), which is no more than two classes, 200 lines of code that will help me understand the basics of custom launching Android applications. It is intended only for a simple reference on the basics and is a kind of mistake, but take a look. I think this is much easier to understand than the Google examples.

+1
source

I'm not sure if I understood your question correctly, but are you looking for some kind of run animation? If so, check it out.

How to implement an application launch animation in android

-2
source

Source: https://habr.com/ru/post/895343/


All Articles