Android的 - 如何开始创建一个启动的应用程序?创建一个、应用程序、Android

2023-09-05 08:24:06 作者:还能孩子多久つ

我要开始我的新的应用程序,这将是一个家庭更换。 我已经通过谷歌提供的例子。但我还是有点困惑。

I am going to start my new app which is going to be a Home Replacement. I have been through the example provided by google. but i am still little bit confused.

像 我应该从哪里开始? 我应该通过扩展那么就设置背景图片(墙纸)的活动类创建一个普通的活动,并使用网格视图来显示所有的应用程序?

like Where should i start? Should i create a normal activity by extending an Activity class then just set the background image(wallpaper) and use a grid view to show all applications?

如何让Android对待我的应用程序作为一个启动的过程?

How to make Android to treat my app as a launcher process?

这么多在我的脑海里运行,请不要劝我去通过Android的启动,因为它几乎超过100类和我需要的只是一个简单的开始之后,我知道我从我的应用程序需要的问题。

so many question running in my mind and please don't advise me to go through Android Launcher because it has almost more than 100 classes and what i need is just a simple start after that i know what i want from my app.

推荐答案

我将开始通过查看源发射器附带的Andr​​oid得到了它是如何工作以及如何code是结构化的想法:

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

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