Java Midlet 部署

发布于 2024-08-11 05:56:24 字数 222 浏览 5 评论 0原文

因此,我使用 Samsung SDK 1.1.2 开发了一个简单的 hello world midlet,并打包了 midlet。现在我有两个文件(JAR/JAD)组合。如何将这些安装到我的手机上?

正如您从问题中可以看出的那样,我是电话开发的新手。尝试在 ATT 上部署到三星手机。

我正在尝试测试整个开发周期 - 模拟器非常适合编写代码,但我确实需要确保 Midlet 在目标手机上按预期工作。

So, I've develop a simple hello world midlet using the Samsung SDK 1.1.2 and I've Packaged the midlet. Now I have two files (a JAR/JAD) combination. How do I get these installed on my phone?

As you can tell from the question, I'm new to phone development. Trying to deploy to a Samsung handset on ATT.

I'm trying to test out the entire development cycle - the emulators work great for writing code but I really need to make sure the Midlet works as expected on the target phone.

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

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

发布评论

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

评论(2

咋地 2024-08-18 05:56:24

建议您阅读一些有关应用程序OTA 交付的背景知识。

您有多种部署选项,以下是其中的一些。

  • 通过蓝牙、电缆或 WiFi 将手机连接到计算机,然后复制 JAR 文件。
    我不确定三星是否支持此功能,但其他手机制造商肯定提供“管理器”软件,您可以下载并安装在计算机上来执行此操作。如果您的应用程序依赖于 JAD 中的用户数据,这可能不是一个理想的选择,或者您可以在 JAR 中包含默认数据。
  • 将您的 JAD 和 JAR 文件放在您有权访问的 Web 服务器上,可以从该服务器将它们下载到您的手机上。您需要确保 JAD 和 JAR 文件的 MIME 类型设置正确,但默认情况下可能不是这样。具体如何执行此操作取决于您的服务器 - 这是 示例方法。 (假设您有 AT&T 的网络/数据访问服务。)如果一切顺利,您可以从手机浏览器获取 JAD 文件,然后手机将提示您确认是否要继续并下载完整的 JAR 并安装。移动网络运营商对支持 JAD 和 JAR 访问的态度各不相同,例如,您可能会发现您必须在端口 80 或 8080 上运行服务器才能在某些情况下正常工作。
  • 加入将为您托管应用程序的服务。我知道的一个是 GetJar。我不确定细节,但这样做意味着您不必运行自己的网络服务器。

除了基本部署之外,您还可以考虑 签署您的应用程序 - 这个过程基本上允许您向手机断言您的“真实”身份。这样做的优点是签名的应用程序可以向手机所有者呈现更少的网络访问确认对话框等。此外,在部署应用程序时,用户将看到一条有关未签名的消息,其中可能包含“不受信任”或类似的单词,这可能会令人反感。 (话虽如此,一些主要的应用程序尚未签名。)

希望这能让您开始。

Suggest you read up a little on OTA delivery of applications, for background.

You have a number of options for deployment, here's a few.

  • Connect your handset to a computer via bluetooth, cable, or wifi and copy the JAR file over.
    I'm not sure if Samsung support this, but other handset manufacturers certainly provide 'manager' software you can download and install on a computer to do this. If your app relies on user data in the JAD this may not be an idea option, or you could include default data in the JAR.
  • Place your JAD and JAR file on a web server you have access to, from which they can be downloaded to your phone. You'll need to ensure that the MIME types for the JAD and JAR files are set correctly, they may not be by default. Exactly how you do this depends on your server - here's an example method. (Presumably you have a web/data access service from AT&T.) If all is well you can fetch the JAD file from the phone's browser and the handset will then prompt you to confirm you wish to proceed and download the full JAR and install. Mobile Network Operators have a variable attitude to supporting JAD and JAR access, for example you may find you have to run your server on port 80 or 8080 for it to work in some cases.
  • Join a service that will host an application for you. One I'm aware of is GetJar. I'm not sure of the details, but doing this will mean you don't have to run your own web server.

Apart from basic deployment you might consider signing your application - a process that basically allows you to assert your 'true' identity to a handset. The advantage of doing this is that signed applications can present fewer network access confirmation dialogs and the like to the handset owner. Also, when the application is being deployed, the user will see a message about unsignedness that might include the word 'untrusted' or similar, and that can be off-putting. (Having said that, some major applications out there have been unsigned.)

Hope that gets you started.

时光磨忆 2024-08-18 05:56:24

您当然可以通过 USB 或蓝牙复制 jar/jad,但我使用的三星设备不会安装手动复制的文件。

不幸的是,其他方法的工作量要大得多。

You can certainly copy the jar/jad over via usb or bluetooth, but the Samsung devices I've used will not install a file that's been manually copied over.

Unfortunately the other methods are significantly more work.

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