面向初学者的 Java Mobile 编程,从哪里开始?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/371751/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 13:57:49  来源:igfitidea点击:

Java Mobile programming for a beginner, where to start?

javamobilemobile-phones

提问by Gustavo Carreno

After I downloaded the Google Mailand Google Mapsapplication into my mobile phone I got an idea about a service that I want to implement.

在我将Google MailGoogle Maps应用程序下载到我的手机后,我对我想要实施的服务有了一个想法。

My problem is that I never did any programming for the mobile platform and I need someone to point me out some resources for the Hello World on a mobile and then something a bit more complicated.

我的问题是我从来没有为移动平台做过任何编程,我需要有人为我指出移动平台上的 Hello World 的一些资源,然后还有一些更复杂的东西。

Let's make it a bit broad, as in J2ME in general for the moment. I'll dig into Android once I get the non Android/*Berry/etc out of the way.

让我们把它扩大一点,就像目前在 J2ME 中一般。一旦我将非 Android/*Berry/etc 排除在外,我将深入研究 Android。

采纳答案by adam

Clicking herewould be a pretty good place to start, it's where the best J2ME programmers have started before you...

单击此处将是一个很好的起点,这是最好的 J2ME 程序员在您之前开始的地方...

回答by gimel

Install NetBeans with J2ME- you can test your mobile applications on a variety of target device emulators. Easy development model - you can develop GUIs rapidly with the Visual Mobile Designer.

使用 J2ME安装NetBeans- 您可以在各种目标设备模拟器上测试您的移动应用程序。简单的开发模型 - 您可以使用 Visual Mobile Designer 快速开发 GUI。

回答by AtariPete

I would really recommend looking at Blackberry as a target platform to play with, for the following reasons:

我真的建议将 Blackberry 视为一个目标平台,原因如下:

  • Lots of documentation
  • Access to cheap devices for testing
  • No walled garden (approval system or closed marketplace), you can distribute your app via over the air downloads (user just has to point their browser to the appropriate JAD file and download/install begins)
  • Large user base (at least within the US)
  • Quality forum support for blackberry developers
  • Supports J2ME. You can either develop Blackberry specific apps of J2ME specific apps, both run on blackberry devices.
    • Blackberry specific apps have a more elegent UI library (lots of J2ME witdgets you need to roll your own or use a library like LWUIT) and you won't be able to run Blackberry specific apps to other devices (though the underlying logic will be the same)
    • Both Blackberry and J2ME specific apps can still access and use underlying non-ui classes of each framework.
  • 大量文档
  • 使用廉价设备进行测试
  • 没有围墙花园(审批系统或封闭市场),您可以通过无线下载分发您的应用程序(用户只需将浏览器指向相应的 JAD 文件并开始下载/安装)
  • 庞大的用户群(至少在美国境内)
  • 黑莓开发者的优质论坛支持
  • 支持 J2ME。您可以开发特定于黑莓的应用,也可以开发特定于 J2ME 的应用,两者都在黑莓设备上运行。
    • Blackberry 特定的应用程序有一个更优雅的 UI 库(许多 J2ME 小工具,您需要自己开发或使用LWUIT 之类的库)并且您将无法在其他设备上运行 Blackberry 特定的应用程序(尽管底层逻辑将是相同的)
    • Blackberry 和 J2ME 特定应用程序仍然可以访问和使用每个框架的底层非 ui 类。

The only cons:

唯一的缺点:

  • Not as sexy as Android or iPhone development
  • Initial setup can be clumsy
  • Tough to monetize because no formal blackberry store to manage transactions and installs
  • 不像 Android 或 iPhone 开发那么性感
  • 初始设置可能很笨拙
  • 很难货币化,因为没有正式的黑莓商店来管理交易和安装

You can get more info about Blackberry development here:

您可以在此处获取有关 Blackberry 开发的更多信息:

http://na.blackberry.com/eng/developers/started/

http://na.blackberry.com/eng/developers/started/

回答by Stefano Driussi

Starting from Sun's JavaME (former J2ME) website you can find a lot of documentation and examples (even if i must admin, they are a little old). If you want something more complex yet more advanced, you can have a look at GEARJava Mobile Framework. It's a lightweight JavaME framework and it's hosted on sourceforge. There is also a blogcontaining some usefull tutorial on how to start a new application from scratch.

从 Sun 的 JavaME(以前的 J2ME)网站开始,您可以找到很多文档和示例(即使我必须管理,它们也有点旧)。如果您想要更复杂但更高级的东西,您可以查看GEARJava Mobile Framework。它是一个轻量级的 JavaME 框架,托管在 sourceforge 上。还有一个博客包含一些关于如何从头开始新应用程序的有用教程。