开始在 Android 2.3 上编程

发布于 2024-12-17 20:40:17 字数 226 浏览 0 评论 0原文

我用 Asp.Net、C# 编程,最近买了一台 Android 2.3 的平板电脑。我想为我的平板电脑编写一些应用程序,但我发现它只能使用 Java 进行编程。有谁知道我是否可以用 C++ 编程? Qt 是否可以像 Linux 中一样使用它?我听说这是可能的,但没有人能给我任何信息。如果无法完成,任何人都可以向我发布一些基本 Android 2.3 编程的链接,而不是基本 Java 编程的链接吗?我了解 Java,但我更喜欢 C++。

I program in Asp.Net, C#, and I have recently bought a tablet with android 2.3. I want to program some applications for my tablet but I see that it can be programmed only with Java. Does anyone know if I can program in C++? Is Qt available for it like it is in Linux? I've heared that it is possible but no one can give me any information. If it can't be done can anyone post me some links with Base Android 2.3 programming, but not base Java programming? I know Java but I prefer C++.

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

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

发布评论

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

评论(5

晨敛清荷 2024-12-24 20:40:17

没有什么比您可以在这里找到的官方文档更好的了: http://developer.android.com/guide /index.html

Nothing better than the official documentation that you can find here: http://developer.android.com/guide/index.html

闻呓 2024-12-24 20:40:17

我希望 Android 能和 Python 一起使用。但 Java 确实是一条出路,至少对于程序的 UI 部分来说是这样。有 NDK 允许您用 C 或 C++ 编写,但它是仅仅用于编写应用程序。它适用于性能关键部分。与大多数保留高级语言的建议不同,它在这里确实很有意义。

I wish Android went with Python myself. But Java is really the way to go, atleast for the UI parts of the program. There is the NDK that allows you to write in C or C++, but it is not just for writing applications. It's for the performance critical parts. And unlike most suggestions to stay in a higher level language, it really makes sense here.

飘逸的'云 2024-12-24 20:40:17

所指出的官方文档非常好。您当然可以通过 NDK 用 C++ 编写应用程序,但在游戏之外,它是不是常态。你不能使用QT。对于绘图,您必须使用 OpenGL,虽然它功能强大,但在控件或窗口方面没有给您任何帮助。

我强烈建议除非您打算做游戏,否则您应该认真考虑使用 Java 并学习标准的 Android 视图、布局和小部件。如果您对使用 C# 感兴趣,可以查看 Mono for Android,但它不是免费的,而且也不是就像您可以使用 WinForms 一样。

The official documentation as pointed out is quite good. You can certainly write applications in C++ via the NDK, but outside of games, it's not the norm. You can't use QT. For drawing you would have to use OpenGL which while powerful doesn't give you anything in terms of controls or windowing.

I would highly recommend that unless you're planning to do games, you seriously consider using Java and learning the standard Android views, layouts and widgets. If you're interested in using C#, you can look at Mono for Android but it's not free, and it's not like you can use WinForms.

云之铃。 2024-12-24 20:40:17

如果您打算认真对待 Android 开发,那么我会向您推荐一本好书 Hello, Android: Introducing Google's Mobile Development Platform:

http://pragprog.com/book/eband/hello-android

- 当然,还有与此站点相关的官方 Google 文档:)

除了 Java 和用于 Eclipse 的 ADT 插件,否则你就会用头撞墙,最后失败……

If you plan to take your Android development seriously, then I would recommend you a great book Hello, Android: Introducing Google's Mobile Development Platform:

http://pragprog.com/book/eband/hello-android

And - of course, the official Google documentation in connection with this site:)

Do not even think about something else then Java and ADT Plug-In for Eclipse, otherwise you will be beating your head against the wall and finally fail...

樱花落人离去 2024-12-24 20:40:17

Qt on Android 项目的页面可以在 http://developer.qt.nokia.com 找到/wiki/Necessitas

您还可以期待最近在慕尼黑举行的 Qt 开发者日发布一些视频,那里有一些关于该主题的演讲:)(我将尝试通过链接更新此答案一旦那些视频已提供,希望很快)。此博客条目末尾提供了不带聊天的幻灯片和现场演示:http://cutehacks。 com/2011/10/28/devdays2011/

至于实际编写应用程序,只需像任何其他移动 Qt 应用程序一样编写它们,使用 Qt Quick 等 -我被告知,随着最近发布的 alpha3,整个堆栈现在都可以运行,包括 Qt Mobility。

A page for the Qt on Android project can be found at http://developer.qt.nokia.com/wiki/Necessitas

You can further be expecting some videos to be released from the recently completed Qt Developer Days in Munich, where there were a couple of talks on the topic :) (i will try and update this answer with links once those videos are made available, which hopefully will be soon). Slides without chatting and live demos are available at the end of this blog entry: http://cutehacks.com/2011/10/28/devdays2011/

As for actually writing the applications, just write them like any other mobile Qt application, using Qt Quick and suchlike - i'm told that with the recently released alpha3 the entire stack is now working, including Qt Mobility.

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