Two Laptop Bag*
The moose likes Java Micro Edition and the fly likes J2ME Starter for Motorolla Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME Starter for Motorolla" Watch "J2ME Starter for Motorolla" New topic
Author

J2ME Starter for Motorolla

Sachin Jain
Greenhorn

Joined: Jun 04, 2003
Posts: 5
Hi,

I just started learning J2ME and created a Hello World application. I am using the Motorolla emulator and it shows up the Hello World on the scrren. Is there a way of inserting the application to motorolla mobile or just seeing hello World there?


Thanks

Sachin
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

You use OTA, Over the Air, you will pass the .jar and .jad file to the device. You can do this different ways.

1. Web Site, which has .jad file types, and your phone just calls a URL location to download and install into the phone.
2. Cables with the phone. This is direct and will be using the cable then just copying the files to the phone.
3. Infrared or Bluetooth, same as cable but without the cables.

Your phone supports any combination, meaning it might not allow Bluetooth, but Cable and Web site is fine.

Web Site is always supported.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
William Frantz
Ranch Hand

Joined: Dec 08, 2004
Posts: 102
Mark is a bit optimistic.

What carrier and handset are you using?

You can't install your own apps over the air if you are using a Motorola phone on Nextel. You need to get a cable, you need to get permission from Nextel, and you need a few software tools to do the job.

You can't install your own apps over the air on Cingular either. For example, to install programs on a RAZR, you need to hack your phone using a "SEAM editor" and then you can install MIDlets over a cable or over Bluetooth.

William Frantz
http://sprintdevelopers.com
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

First, I am really glad I didn't make my Sprint comment.

You can't install your own apps over the air on Cingular either. For example, to install programs on a RAZR, you need to hack your phone using a "SEAM editor" and then you can install MIDlets over a cable or over Bluetooth.


I have been able to use OTA and Bluetooth on my Cingular Siemen's S66 with no problem and no hacking, or need to pay Cingular.

But, each provider and each device is different, and that was what I was saying. It can be any particular combination of ways to get an app onto the device, you have to find out which way works for your provider and device.

Mark
Arvin Sharm
Greenhorn

Joined: Mar 03, 2005
Posts: 1
On Nokia 6600 and Motoroal A845 phones, I was just using the IR port to send the JAD/JAR files and that worked just fine.

Other phones - like Nokia 6800 - it won't even load the app via IR port....

Arvind
Sachin Jain
Greenhorn

Joined: Jun 04, 2003
Posts: 5
Hi Mark,

Thanks for your reply.

For the website option how do i make the jar jad files to install on my phone. I have placed the hello world jar and jad on the website. I am using Nokia 6600 but later have to install on Motorolla Mobiles (few models)

Also if i want to do through cable , is there any security related to that?

Sachin

You use OTA, Over the Air, you will pass the .jar and .jad file to the device. You can do this different ways.

1. Web Site, which has .jad file types, and your phone just calls a URL location to download and install into the phone.
2. Cables with the phone. This is direct and will be using the cable then just copying the files to the phone.
3. Infrared or Bluetooth, same as cable but without the cables.

Your phone supports any combination, meaning it might not allow Bluetooth, but Cable and Web site is fine.

Web Site is always supported.

Mark
--------------------
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

OK, is your Web Server set up for the file type of "jad". What is that file that you need to change on the web server. I can't remember.

Then all you have to do is use your phone, connect to the URL with the Jad file. Usually you would create a WML page, just like HTML, but simpler. you can check out www.w3schools.com for a simple tutorial. Then you get the WML page displayed on your phone and you just click the link. It will download the jad file and the Application Manager will take over and ask if you want to install the application.

With the cable there isn't Security to copy your files over.

Mark
Sachin Jain
Greenhorn

Joined: Jun 04, 2003
Posts: 5
Thanks Mark. I wanted to try other way out a person goes to our website and then hits download and through IR to his phone. Is it possible?
Haidu Vlad Andrei
Greenhorn

Joined: Nov 12, 2005
Posts: 2
Guys i have a big problem.I tryed to send a Hello world java aplication(Hello World.jar) to my mobile phone(Sony Erricson K500i) which has Java MIDP 2.0 and it didn't recognise it.Why is that so?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Originally posted by Sachin Jain:
Thanks Mark. I wanted to try other way out a person goes to our website and then hits download and through IR to his phone. Is it possible?


Yes it is possible. If I understadn you correctly.

Steps
1. The user on their desktop goes to your website and downloads the .jar and maybe also the .jad file.

2. The user, using their cable/IR/or Bluetooth depending on how their device can connect and copy files from their desktop. They copy it into their directory on the phone for applications.

3. It now shows on their list of applications, they launch it, and it installs the application.


That works fine. But for those devices that cannot connect to a desktop/laptop, then only OTA gives you the way to get the app to the phone.

Some service providers like Sprint require going through their service for fees. So you cannot use the copy from desktop to device.

Hope that helps.

Mark
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Originally posted by Haidu Vlad Andrei:
Guys i have a big problem.I tryed to send a Hello world java aplication(Hello World.jar) to my mobile phone(Sony Erricson K500i) which has Java MIDP 2.0 and it didn't recognise it.Why is that so?


Well there could be lots of reasons, jar file size doesn't match the size you have listed in your jad file. The file wasn't copied to an appropriate directory on the device for the App Manager to see it.

Besides that, I think you should post this in a new Thread. Actually I will create that Thread for you with your questions. We don't want to hijack someone else's thread do we.

Mark
Haidu Vlad Andrei
Greenhorn

Joined: Nov 12, 2005
Posts: 2
No we don't .I'll try to send it again later when i get home.Thx for your advice.
 
GeeCON Prague 2014
 
subject: J2ME Starter for Motorolla