任何人都有開發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 个解决方案

#1


8  

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.

這些示例中提供的示例代碼以及SDK中包含的示例代碼讓我很清楚從哪里開始。我在很多方面仍然沒有完全穩固,但發展比以前快得多。

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!

Android開發目前非常像在黑暗中拍攝,但它很快就會起飛並為我們提供更多有價值的資源!我知道那里有幾本書。祝好運!

#2


5  

I started from here

我從這里開始

http://code.google.com/android/kb/commontasks.html

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

我在大約15分鍾內啟動並運行了我的環境和模擬器。

First impressions are its fun to work with.

第一印象是它的樂趣。

Paul

#3


5  

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.

我建議的最重要的事情是確保你真正了解Android應用程序的生命周期。許多應用程序被放在那里崩潰或表現不佳(或使整個手機運行不佳)因為它們不是為了正確地遵循應用程序生命周期而設計的。

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會話:

#4


3  

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

我發現記事本教程非常有助於理解基礎知識。

#5


1  

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進行開發是可訪問和愉快的。話雖如此,你真的需要投入時間/精力來加快速度。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2008/11/10/7204c09bb8447b8e5fbed8e3beb10a22.html



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