学习 Android 的技巧

发布于 2024-11-13 07:48:49 字数 329 浏览 3 评论 0原文

我最近加入了一家公司,他们要求我开发一些 Android 应用程序。我以前从未见过它 - 尽管我熟悉 Java,所以编程语法对我来说很熟悉 - 我想知道是否有一个好的网站/教科书/任何可以让我学习如何编程的地方Android 操作系统 - 越简单越好!

特别是,我正在寻找某种方法,让我可以使用 Android 做两件事 - 定期获取 GPS 位置,以及让应用程序与远程数据库连接。这些是我目前的优先事项,但这并不意味着您不能向我指出没有这些内容的知识源。我确实需要学习在这个系统上编程,无论您向我指示什么,我都会感激不已。但如果您碰巧知道我在哪里可以找到这 2 件物品,请不要害羞并告诉我。

预先感谢您的回复。

I joined a company recently and they have requested me to develop a few applications for Android. I've never seen it before - though I'm familiar with Java, so the programmatic syntax is familiar to me - and I'd like to know if there is a good site/textbook/whatever where I could learn how to program for Android OS - the simpler the better!

In particular, I'm searching for some way to allow me to use Android to do 2 things - to get a GPS location on a regular basis and to get an application connecting with a remote database. These are my priorities at the moment, but this doesn't mean you can't indicate me a knowledge source that doesn't have these on it. I do need to learn to program on this system, and I'll be thankful for whatever you indicate me. But if you happen to know where I could find these 2 items, please don't be shy and let me know.

Thanks in advance for your replies.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浪菊怪哟 2024-11-20 07:48:49

老实说,最好的起点就是 Android 开发者网站。尽管一开始您可能觉得不需要它,但花适当的时间学习一些简单的教程来习惯 UI 的工作原理以及 Android 框架和 Activity 生命周期的工作原理非常重要。

Honestly, the best place to start is right on the Android Developers site. Although you might not feel like you need it at first, spending the due time to do some of the simple tutorials to get used to how the UI works and how the Android framework and Activity lifecycle works is extremely important.

星星的轨迹 2024-11-20 07:48:49

我认为 Android 开发的第一个也是最好的起点是 Android 开发者网站(官方)。
这里有一些链接供您参考:
developer.android.com/sdk/installing.htmldeveloper.android.com/resources/tutorials/hello-world.htmldeveloper.android.com/resources/tutorials/views/index.htmldeveloper.android.com/reference/packages

​.htmldeveloper.android.com

/guide/practices

/ui_guidelines /index.htmldeveloper.android.com/reference

/android/location/GpsSatellite.html developer.android.com/guide/topics/location/index.html

I think the first and the best start point to the Android developing, the Android Developers site (Official).
Here is some link for you:
developer.android.com/sdk/installing.html

developer.android.com/resources/tutorials/hello-world.html

developer.android.com/resources/tutorials/views/index.html

developer.android.com/reference/packages.html

developer.android.com/guide/practices/ui_guidelines/index.html

developer.android.com/reference/android/location/GpsSatellite.html

developer.android.com/guide/topics/location/index.html

悍妇囚夫 2024-11-20 07:48:49

我没有找到比官方 Android 开发者页面更好的信息来源:http://developer.android。 com/index.html

这里有很多有趣的主题...

我还建议您使用 python 研究 android 中的脚本,这是让事情正常工作的简单方法真是太棒了...

看看这段代码:

import android, time
droid = android.Android()
droid.startLocating()
time.sleep(10)
location = droid.readLocation()

现在位置是一本字典,其中包含您的纬度、经度、海拔、速度和其他一些信息...您可以在这里找到有关 Android 脚本的所有内容:http://code.google.com/p/android-scripting/

I haven't find any better source of information than the official android developers page: http://developer.android.com/index.html

And here SO has a lot of interesting topics...

I also recomend you to investigate scripting in android with python, it's awesome the easy way to get things working...

Look at this code:

import android, time
droid = android.Android()
droid.startLocating()
time.sleep(10)
location = droid.readLocation()

now location is an dictionary with your latitude, longitude, altitude, speed, and some other information... you'll find everything about scripting in android here: http://code.google.com/p/android-scripting/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文