任何人都有開發Google Android設備的印象,提示和教程?

[英]Anyone have any impressions, hints, tutorials from developing for Google Android devices?

I have a T-Mobile G1 and I'm going to download the developer SDK and see if I can create a few simple apps for my phone. If you've done similar development, please answer below and tell me about your experience. Please share any links you found especially useful.

我有一個T-Mobile G1,我將下載開發人員SDK,看看我是否可以為我的手機創建一些簡單的應用程序。如果您已完成類似的開發,請在下面回答並告訴我您的體驗。請分享您發現的任何特別有用的鏈接。

5 个解决方案



I didn't find the SDK documents to be all that helpful, at least at first. What really got be started was looking through the example chapters of The Busy Coder's Guide to Android from CommonsWare. You can find this on the book's website. The code examples for the book are also provided at that link.

我發現SDK文檔並沒有那么有用,至少在開始時是這樣。真正開始的是從CommonsWare查看The Busy Coder的Android指南的示例章節。你可以在這本書的網站上找到這個。該鏈接還提供了該書的代碼示例。

The example code provided in those examples, plus the example code included in the SDK gave me a good idea of where to start. I'm still not totally solid on a lot of things, but development is going a lot faster than it was beforehand.


One thing you definitely want to be sure you do is watch the videos provided by Google. The application life cycle for Android is much different than a traditional application, so you want to make sure you understand was Intents, Views, and Content Providers are. These videos can all be seen on YouTube in this playlist.

您確定要做的一件事就是觀看Google提供的視頻。 Android的應用程序生命周期與傳統應用程序有很大不同,因此您需要確保您了解Intent,Views和Content Providers。這些視頻都可以在此播放列表中的YouTube上看到。

The last helpful resource I can point you to is the blogging community. Every now and then, Planet Android and Hello Android have code excerpts from the blogs they aggregate. Jeffrey Sharkey is big into Android development and has released some useful code on his blog.

我可以指出的最后一個有用的資源是博客社區。 Planet Android和Hello Android不時會收集他們匯總的博客的代碼摘錄。 Jeffrey Sharkey非常注重Android開發,並在他的博客上發布了一些有用的代碼。

Android development currently is much like shooting in the dark, but it will hopefully take off soon and provide us with more valuable resources! I know there are a few books out there. Good luck!




I started from here



I got my environment and emulator up and running within about 15 minutes.


First impressions are its fun to work with.





The biggest thing I recommend is to make sure you really understand the lifecycle of android apps. Many apps are put out there which crash or perform badly (or make the entire phone run poorly) because they are not designed to follow the application lifecycle properly.


For simple apps it's nothing to worry about but soon you might want to run something in the background (play music, etc), or need to save your state if the user switches apps. It's tricky but makes sense once you see some examples.


You might also check out some of the Android sessions from the Google I/O developer conference in May:

您還可以在5月份的Google I / O開發者大會上查看一些Android會話:



I found the notepad tutorial extremely helpful in understanding the basics.




I'm also beginning to get my feet wet with android development. Honestly, I think some of the books out there do a pretty good job of explaining the development framework and getting you started with using the tools quickly. Some of the books I'm reading include "Teach Yourself Android Application Development in 24 Hours" (obviously the title is an exaggeration; the book is just organized into hours. Each hour will take some time for a beginner), "Hello, Android: Introducing Google's Mobile Development Platform (3rd edition)", and "Beginning Android 2." From my, so far, limited experience, developing using the SDK is accessible and enjoyable. That being said, you really need to commit the time/energy to get up to speed.

我也開始嘗試使用android開發。老實說,我認為那里的一些書很好地解釋了開發框架並讓你開始快速使用這些工具。我正在閱讀的一些書籍包括“24小時自學Android應用程序開發”(顯然標題是誇張的;這本書只分為幾個小時。每個小時需要一些時間給初學者),“你好,Android :推出谷歌移動開發平台(第3版)“和”初學Android 2“。從我到目前為止,有限的經驗來看,使用SDK進行開發是可訪問和愉快的。話雖如此,你真的需要投入時間/精力來加快速度。



粤ICP备14056181号  © 2014-2021 ITdaan.com