任何人都有开发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进行开发是可访问和愉快的。话虽如此,你真的需要投入时间/精力来加快速度。

智能推荐

注意!

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



猜您在找
这里的任何人都有使用gcj的CNI for java外部库的经验吗? - Anyone here have any experience using gcj's CNI for java external libraries? 任何人都有任何问题通过Cygwin在Vista 64位上安装OpenSSH? - Anyone have any problems installing OpenSSH via Cygwin on Vista 64 Bit? 任何人都有在Mono下使用CSLA的经验吗? - Anyone have experience using CSLA under Mono? 任何人都有使用Sphinx语音识别的经验吗? - Anyone have experience with Sphinx speech recognition? 任何人都有比这更容易的方法? - Anyone have method easier than this?
智能推荐
 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告