8

我是对 Android 感兴趣的 C++ 开发人员。据我了解,为 Android 开发应用程序的唯一可能性是 Java。还有 NDK,但正如我所见,它就像 Java 的 JNI。是否必须学习 Java 或对 Java 有深入的了解然后尝试 Android SDK,或者在为 Android 开发的同时学习 Java 是可能的。

谢谢你。

4

10 回答 10

7

如果您是一位熟练的 C++ 程序员,那么在学习 Java 时应该不会有太多麻烦。

为 Android 开发与桌面 java 有点不同,但我参考了我之前的观点:如果你已经是一名熟练的程序员,你应该能够轻松上手。当您遇到困难时,当您遇到困难时,请在此处发布问题。

于 2010-05-26T17:50:56.657 回答
5

官方 Android 教程假设您已经了解 Java。

无论如何,要关注它们,您不必成为 Java 专家。你应该只知道基础知识。

于 2010-05-26T17:47:02.710 回答
2

I am coming to it from C# and the issues are just understanding the Android way of doing things, rather than any particular language issues.

I recommend the Commonsware titles on Android.

于 2010-05-31T08:46:18.413 回答
1

Android 是一个基于 Java 的框架。所以拥有 Java 知识真的很有帮助。作为一名 C++ 开发人员,您学习 Java 的基础知识并不难。

这可能会帮助你

http://primalpop.wordpress.com/2010/05/26/first-few-steps-in-android/

于 2010-05-26T17:51:57.850 回答
1

You may want to take a look at these Java cheatsheets for C++ programmers:

However, I recommend you get a Java book as well as an Android one. Although the internet (and stackoverflow) is great for lots of stuff, having a few good books can be a huge time saver, imho. You can search for questions on stackoverflow on what are good Android and Java books. There are even free pdf books available online.

To answer your question specifically, yes, it's important to know Java - after all that's the language you're going to use - but you do not need a deep understanding of it, at least initially. For example, you don't need to know the more advanced stuff you'd get from a book such as Effective Java. Do keep it mind that most of the ways of doing things for Android is constrained by the Android framework, so knowing Java will help but will not suffice. To sum things up, I'd say read a good Java and a good Android book, follow the Google tutorials, and a last piece of advice: don't forget you can download the actual Android source code, which will help you in many ways.

于 2010-05-27T02:36:47.613 回答
0

当然,您必须学习一些 Java。然而,由于在 Android 上编码时有某些首选的“优化”,有人可能会说这是一个让你学习的好剧场。一定要遵循谷歌提供的教程、文档和示例代码,这很棒。

于 2010-05-26T17:51:48.933 回答
0

In my opinion, your knowledge of C++ should be sufficient to pick up the Java necessary to write most Android applications. Some of the Java syntax may trip you up a bit, but IMO it wouldn't be anything that is insurmountable especially coming from a C++ background.

Most of the complexity associated with Android (not that it is very complex) is more of a high level complexity rather than actual Java. Understanding the Android system is much more like understanding a computer system or a framework than understanding the innards of Java.

于 2010-05-26T17:54:16.073 回答
0

Just forget about languages and sintax. If you can write some pseudo-code and can understand the OO model, then you can program almost everything easily, it's just a matter of some API references and google searches.

于 2010-05-26T18:08:14.373 回答
0

I understand that you need to learn Java, and also going to have to learn to use the Android API, learn the philosophy of development Mobile, etc. Just the basics yes, to begin ... ... The deepest you navigate the android world the deeper you will be knowing all these issues, it's like everything mate!

It's important to know that the learning curve is relatively short in Android :)

于 2010-05-27T02:10:47.257 回答
0

I too am picking up Android Development with C#/VB.net as my primary languages. The book I ordered and that I see recommended over and over again is:

于 2010-05-27T02:50:57.657 回答