简体   繁体   English

Java Midlet部署

[英]Java Midlet Deployment

So, I've develop a simple hello world midlet using the Samsung SDK 1.1.2 and I've Packaged the midlet. 所以,我使用Samsung SDK 1.1.2开发了一个简单的hello world midlet,我已经打包了midlet。 Now I have two files (a JAR/JAD) combination. 现在我有两个文件(JAR / JAD)组合。 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. 试图在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. 我正在尝试测试整个开发周期 - 模拟器非常适合编写代码,但我确实需要确保Midlet在目标手机上按预期工作。

Suggest you read up a little on OTA delivery of applications, for background. 建议您阅读有关OTA交付应用程序的一些内容,了解背景知识。

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. 通过蓝牙,电缆或wifi将手机连接到计算机,然后复制JAR文件。 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. 如果您的应用依赖于JAD中的用户数据,这可能不是一个想法选项,或者您可以在JAR中包含默认数据。
  • Place your JAD and JAR file on a web server you have access to, from which they can be downloaded to your phone. 将您的JAD和JAR文件放在您有权访问的Web服务器上,然后可以将它们下载到您的手机上。 You'll need to ensure that the MIME types for the JAD and JAR files are set correctly, they may not be by default. 您需要确保正确设置JAD和JAR文件的MIME类型,默认情况下可能不是这样。 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. (据推测,您有AT&T提供的网络/数据访问服务。)如果一切顺利,您可以从手机的浏览器中获取JAD文件,然后手机将提示您确认是否继续并下载完整的JAR并进行安装。 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. 移动网络运营商对支持JAD和JAR访问的态度可变,例如,您可能会发现必须在端口80或8080上运行服务器才能在某些情况下运行。
  • Join a service that will host an application for you. 加入将为您托管应用程序的服务。 One I'm aware of is GetJar . 我知道的是GetJar I'm not sure of the details, but doing this will mean you don't have to run your own web server. 我不确定细节,但这样做意味着您不必运行自己的Web服务器。

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. 希望能让你开始。

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. 您当然可以通过USB或蓝牙复制jar / jad,但我使用的三星设备不会安装手动复制的文件。

Unfortunately the other methods are significantly more work. 不幸的是,其他方法的工作要多得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM