The big difference in writing software for a phone is the constraints placed on you by the hardware. Forget creating masses of objects and throwing them away. That takes memory and your garbage collecter will end up taking too much processing power away from you to clean up after your mess. There are a number of good videos and tutorials up at developer.android.com which give you more info on how to code 'tightly' for low memory/processor environments. It's actually great fun - you have to think a bit harder about what you are doing than if you are coding for a more powerful environment like desktops.
As for the android OS itself - I think it is fantastic. Just brilliantly designed for something like cellphones. I love the way they use intents to trigger things. Seriously, go take a look at all the tutorials and then play. If you like well thought out software then you'll love android.
I found this book quite handy for rapidly getting into coding on android.
I'm not a java developer by trade so I can't be sure this guys coding style is a god Java style but he does touch on most of the main topics you need to get started with android. Do the Sudoku example in full - don't cut and paste, actually code it from scratch with the book as a help.
发布评论
评论(4)
您可以给您的另一半打电话并交谈。
You can phone up your significant other and talk.
您需要执行以下操作:
完成此操作后,您应该对如何继续进行有一些想法。祝你好运,玩得开心!
Here's what you need to do:
Once you're done with that, you should have some ideas on how to proceed. Good luck and have fun!
为手机编写软件的最大区别在于硬件对您的限制。忘记创造大量物体并将它们扔掉。这会占用内存,而你的垃圾收集器最终会占用你太多的处理能力来清理你的混乱。 developer.android.com 上有许多精彩的视频和教程,它们为您提供了有关如何在低内存/处理器环境下“紧密”编码的更多信息。这实际上非常有趣 - 与为桌面等更强大的环境编写代码相比,您必须更加努力地思考自己正在做什么。
至于 Android 操作系统本身——我认为它非常棒。专为手机等设备精心设计。我喜欢他们使用意图来触发事物的方式。说真的,去看看所有教程然后玩吧。如果您喜欢经过深思熟虑的软件,那么您一定会喜欢 Android。
我发现这本书对于快速进入 Android 编码非常方便。
Android 书
我不是一名 Java 开发人员,所以我不能确定这些人编码风格是一种上帝的 Java 风格,但他确实触及了 Android 入门所需的大部分主要主题。完整地完成数独示例 - 不要剪切和粘贴,而是在本书的帮助下从头开始编写代码。
The big difference in writing software for a phone is the constraints placed on you by the hardware. Forget creating masses of objects and throwing them away. That takes memory and your garbage collecter will end up taking too much processing power away from you to clean up after your mess. There are a number of good videos and tutorials up at developer.android.com which give you more info on how to code 'tightly' for low memory/processor environments. It's actually great fun - you have to think a bit harder about what you are doing than if you are coding for a more powerful environment like desktops.
As for the android OS itself - I think it is fantastic. Just brilliantly designed for something like cellphones. I love the way they use intents to trigger things. Seriously, go take a look at all the tutorials and then play. If you like well thought out software then you'll love android.
I found this book quite handy for rapidly getting into coding on android.
Android book
I'm not a java developer by trade so I can't be sure this guys coding style is a god Java style but he does touch on most of the main topics you need to get started with android. Do the Sudoku example in full - don't cut and paste, actually code it from scratch with the book as a help.
你可以在 apple iphone 应用商店 抢夺,这里有数千个已经很酷的应用程序了,其中一些确实是 OMG。
语言——java是最常用的。
你可以访问官方网站,里面有很多你的答案。
You can take a loot at apple iphone app store, there are thousands of cool apps already, some of them are indeed OMG.
Language - java is the most commonly used.
You can visit the official website, it has a lot of your answers.