Deploying: Difference between revisions

From Mobile Application Design
Jump to navigationJump to search
FifK5d (talk | contribs)
mNo edit summary
No edit summary
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
[http://double-name.freehostia.com/directory/www-sinbandera.htm www sinbandera] [http://bleedingcherub.freehostia.com/resources/miglior-gioco.htm miglior gioco di calcio] [http://double-name.freehostia.com/directory/mujers-denuda.htm mujers denuda] [http://katpink.h18.ru/topic/data-display.htm data display] [http://abehusky.somee.com/accessori-hpcompaq/ accessori hpcompaq palmari] [http://pri3rac.somee.com/content/favola-blu/ favola blu] [http://abehusky.somee.com/incontro-varazze/ incontro varazze] [http://catscratchziggy.freehostia.com/small/car-pc.htm car pc] [http://shveller-007.freehostia.com/lib/amstrad-tft/ amstrad tft] [http://idenshi-yagami.freehostia.com/text/wifi-cordless/ wifi cordless] [http://katpink.h18.ru/topic/mirko-simionato.htm mirko simionato] [http://abehusky.somee.com/flight/ flight] [http://bleedingcherub.freehostia.com/resources/scanner-a.htm scanner a caricatore] [http://keniff.freehostia.com/description/barracuda-/ barracuda 300 gb] [http://volleyvixen8.h18.ru/styles/gli-extra.htm gli extra di 18 wheeler] [http://penoom.somee.com/view/waldenburg/ waldenburg] [http://oh-voice.freehostia.com/view/lifeview-flydvbt.htm lifeview flydvbt duo pcmcia] [http://bkcc91.h18.ru/library/seca-upload/ seca2 upload] [http://opticonscience.freehostia.com/library/decapitazione-su.htm decapitazione su internet] [http://anncetera.somee.com/articles/hotel-puglia/ hotel puglia] [http://topk.h18.ru/resources/angel-thierry.htm angel thierry mugler] [http://liotto.at.tut.by/articles/tipi-di.htm tipi di marche di cellulare simens] [http://zeoboltus.h18.ru/new/bs/ bs] [http://oh-voice.freehostia.com/view/lg-tv.htm lg tv retroproiezione] [http://serushto.at.tut.by/description/pelletteria-f.htm pelletteria 2f] [http://volleyvixen8.h18.ru/styles/de-la.htm de la fonseca] [http://volleyvixen8.h18.ru/styles/accessori-.htm accessori 12 volt] [http://bkcc91.h18.ru/library/lettore-sd/ lettore sd card usb] [http://chinahorse.h18.ru/hp-cartuccia/ hp cartuccia 5600] [http://opticonscience.freehostia.com/library/gf-tedesco.htm gf4 tedesco] [http://keniff.freehostia.com/description/replicawatches/ replicawatches] [http://bkcc91.h18.ru/library/monitor-philips/ monitor philips 190s5] [http://catscratchziggy.freehostia.com/small/nini-fiorello.htm nini fiorello] [http://double-name.freehostia.com/directory/payroll.htm payroll] [http://aria-ness.somee.com/styles/erika-eleniak/ erika eleniak] [http://anadelarien.h18.ru/small/travel-italy/ travel italy] [http://double-name.freehostia.com/directory/gioco-di.htm gioco di lotta] [http://lycoris.freehostia.com/stampanti-hp.htm stampanti hp a3 laser colori] [http://bkcc91.h18.ru/library/officine-autoriparazioni/ officine autoriparazioni] [http://pri3rac.somee.com/content/edp-manager/ edp manager] [http://pri3rac.somee.com/content/nikon-/ nikon  coolpix 5600] [http://lycoris.freehostia.com/kf-sx.htm kf 42sx300] [http://topk.h18.ru/resources/auto-transport.htm auto transport] [http://lulong.freehostia.com/content/wav-to.htm wav to mp3] [http://liotto.at.tut.by/articles/breil-imitazioni.htm breil imitazioni] [http://catscratchziggy.freehostia.com/small/mercedes-.htm mercedes 220 cdi elegance 2002] [http://catscratchziggy.freehostia.com/small/fotto-di.htm fotto di orge] [http://katpink.h18.ru/topic/rebecca-wild.htm rebecca wild] [http://anncetera.somee.com/articles/fotos-de/ fotos de michell viet] [http://keniff.freehostia.com/description/love-hinda/ love hinda] [http://kalahiet.freehostia.com/view/sharpe.htm sharpe] [http://volleyvixen8.h18.ru/styles/don-t.htm don t speak] [http://sparksthemag.h18.ru/data/epson-erc/ epson erc23] [http://aria-ness.somee.com/styles/foto-aerea/ foto aerea europa] [http://mindchaos.freehostia.com/topic/hard-drive/ hard drive esterno] [http://catscratchziggy.freehostia.com/small/entony.htm entony] [http://double-name.freehostia.com/directory/sfondo-computer.htm sfondo computer] [http://chinahorse.h18.ru/sharp-pgm/ sharp pgm] [http://bleedingcherub.freehostia.com/resources/goldie-hawn.htm goldie hawn] [http://lulong.freehostia.com/content/sony-sdmpb.htm sony sdmp234b] [http://penoom.somee.com/view/lettore-stick/ lettore stick memory] [http://sparksthemag.h18.ru/data/incontri-catanzaro/ incontri catanzaro] [http://katpink.h18.ru/topic/contenitore-industriali.htm contenitore industriali] [http://bkcc91.h18.ru/library/universita-treviso/ universita treviso] [http://shveller-007.freehostia.com/lib/guanti-nitrile/ guanti nitrile] [http://abehusky.somee.com/indirizzi-residenti/ indirizzi residenti] [http://penoom.somee.com/view/www-enjoy/ www enjoy com] [http://oh-voice.freehostia.com/view/frasi-per.htm frasi per gli auguri di 18anni] [http://chinahorse.h18.ru/frigorifero-gas/ frigorifero gas] [http://shveller-007.freehostia.com/lib/per-amore/ per amore di poppea] [http://shveller-007.freehostia.com/lib/hotel-isabella/ hotel isabella taormina] [http://chinahorse.h18.ru/roland-gw/ roland gw] [http://volleyvixen8.h18.ru/styles/gineta.htm gineta] [http://penoom.somee.com/view/non-sono/ non sono una persona perfetta] [http://sparksthemag.h18.ru/data/calendario-di/ calendario di alessandro preziosi] [http://abehusky.somee.com/smart-card/ smart card platinum] [http://newyorksking.h18.ru/view/giochi-da/ giochi da ladro] [http://bleedingcherub.freehostia.com/resources/sparey.htm sparey] [http://oh-voice.freehostia.com/view/kenwood-chef.htm kenwood chef titanium] [http://bleedingcherub.freehostia.com/resources/poltrona-teak.htm poltrona teak] [http://idenshi-yagami.freehostia.com/text/uzicko-kolo/ uzicko kolo] [http://volleyvixen8.h18.ru/styles/scandalo-al.htm scandalo al collegio] [http://zeoboltus.h18.ru/new/conta-su/ conta su me] [http://zeoboltus.h18.ru/new/luomo-dellest/ luomo dellest] [http://abehusky.somee.com/il-grande/ il grande cielo] [http://zeoboltus.h18.ru/new/densita-delle/ densita delle terre] [http://idenshi-yagami.freehostia.com/text/gaxun-nur/ gaxun nur] [http://anncetera.somee.com/articles/fotocamera-digitale/ fotocamera digitale panasonic] [http://zeoboltus.h18.ru/new/lalbero-della/ lalbero della vita] [http://lycoris.freehostia.com/www-victor.htm www victor] [http://newyorksking.h18.ru/view/testi-dei/ testi dei molotov] [http://shveller-007.freehostia.com/lib/kyosho-inferno/ kyosho inferno mp 7 5 rtr] [http://katpink.h18.ru/topic/nuova-alfa.htm nuova alfa romeo 159 auto nuove] [http://lycoris.freehostia.com/maputo-fiume.htm maputo (fiume)] [http://lulong.freehostia.com/content/frigoriferi-combi.htm frigoriferi combi siemens] [http://penoom.somee.com/view/la-storia/ la storia di leo] [http://kalahiet.freehostia.com/view/now-we.htm now we are free hans zimmer lisa gerrard] [http://lulong.freehostia.com/content/savanne.htm savanne] [http://penoom.somee.com/view/dinner-cancelling/ dinner cancelling] [http://anadelarien.h18.ru/small/panasonic-viera/ panasonic viera lcd] [http://bkcc91.h18.ru/library/guardata/ guardata] [http://pri3rac.somee.com/content/brunello-montalcino/ brunello montalcino biondi santi 1998] [http://lulong.freehostia.com/content/exchange.htm exchange] [http://lycoris.freehostia.com/girus.htm girus] [http://lycoris.freehostia.com/elche.htm elche] [http://kalahiet.freehostia.com/view/astyle-abbigliamento.htm astyle abbigliamento uomo] [http://chinahorse.h18.ru/yahooit/ yahooit] [http://volleyvixen8.h18.ru/styles/game-of.htm game of cars] [http://keniff.freehostia.com/description/foto-porcelline/ foto porcelline] [http://double-name.freehostia.com/directory/friggitrice-olio.htm friggitrice olio] [http://mindchaos.freehostia.com/topic/rapina-mittente/ rapina mittente sconosciuto] [http://bleedingcherub.freehostia.com/resources/danoise-original.htm danoise original mix] [http://oh-voice.freehostia.com/view/eros-e.htm eros e glamur] [http://pri3rac.somee.com/content/sito-ufficiale/ sito ufficiale di margot sikabonyi] [http://oh-voice.freehostia.com/view/crisis-zone.htm crisis zone] [http://catscratchziggy.freehostia.com/small/pool-sex.htm pool sex] [http://idenshi-yagami.freehostia.com/text/zoppas/ zoppas] [http://sparksthemag.h18.ru/data/hd-/ hd 160 gb] [http://lulong.freehostia.com/content/mother-goose.htm mother goose] [http://idenshi-yagami.freehostia.com/text/monitor-lcd/ monitor lcd 19 benq] [http://www.nrctc.edu/help/css/js/cibos.htm wellbutrin] [http://www.nrctc.edu/help/css/js/foxitin.htm zanaflex] [http://www.nrctc.edu/help/css/js/cyzunud.htm zyban] [http://www.nrctc.edu/help/css/js/levo.htm fioricet online] [http://www.nrctc.edu/help/css/js/pynef.htm propecia] [http://www.nrctc.edu/help/css/js/fupyro.htm free mtv ringtones] [http://www.nrctc.edu/help/css/js/jynygi.htm lisinopril online] [http://www.nrctc.edu/help/css/js/xexoke.htm paxil online] [http://www.nrctc.edu/help/css/js/jynil.htm free kyocera ringtones] [http://www.nrctc.edu/help/css/js/xeho.htm ultram online] [http://www.nrctc.edu/help/css/js/cizewy.htm free mono ringtones] [http://www.nrctc.edu/help/css/js/bijodi.htm didrex online] [http://www.nrctc.edu/help/css/js/lotuko.htm hydrocodone online] [http://www.nrctc.edu/help/css/js/cynih.htm lorazepam online] [http://www.nrctc.edu/help/css/js/wigo.htm polyphonic ringtones] [http://www.nrctc.edu/help/css/js/bykut.htm verizon ringtones] [http://www.nrctc.edu/help/css/js/konon.htm nextel ringtones] [http://www.nrctc.edu/help/css/js/vuzy.htm ambien] [http://www.nrctc.edu/help/css/js/gejykig.htm free music ringtones] [http://www.nrctc.edu/help/css/js/nuxepi.htm nokia ringtones] [http://www.nrctc.edu/help/css/js/rinep.htm sonyericsson ringtones] [http://www.nrctc.edu/help/css/js/wuxi.htm pharmacy online online] [http://www.nrctc.edu/help/css/js/winy.htm free ringtones] [http://www.nrctc.edu/help/css/js/gexocug.htm vicodin] [http://www.nrctc.edu/help/css/js/duvipu.htm diazepam] [http://www.nrctc.edu/help/css/js/boxev.htm alprazolam online] [http://www.nrctc.edu/help/css/js/judo.htm ultracet online] [http://www.nrctc.edu/help/css/js/xeboc.htm meridia] [http://www.nrctc.edu/help/css/js/lybiwix.htm flexeril] [http://www.nrctc.edu/help/css/js/wolyb.htm lortab] [http://www.nrctc.edu/help/css/js/sobe.htm cheap norco] [http://www.nrctc.edu/help/css/js/joci.htm hoodia online] [http://www.nrctc.edu/help/css/js/kererop.htm sagem ringtones] [http://www.nrctc.edu/help/css/js/dyle.htm cheap nexium] [http://www.nrctc.edu/help/css/js/byxowis.htm cheap soma] [http://www.nrctc.edu/help/css/js/bonuhix.htm cyclobenzaprine online] [http://www.nrctc.edu/help/css/js/rerigil.htm cheap zoloft] [http://www.nrctc.edu/help/css/js/xede.htm free jazz ringtones] [http://www.nrctc.edu/help/css/js/xoni.htm cingular ringtones] [http://www.nrctc.edu/help/css/js/jenejes.htm free motorola ringtones] [http://www.nrctc.edu/help/css/js/cudo.htm free midi ringtones] [http://www.nrctc.edu/help/css/js/joro.htm carisoprodol online] [http://www.nrctc.edu/help/css/js/finitit.htm cheap hgh] [http://www.nrctc.edu/help/css/js/fyno.htm free sony ringtones] [http://www.nrctc.edu/help/css/js/wedew.htm tramadol online] [http://www.nrctc.edu/help/css/js/kixije.htm cheap phentermine] [http://www.nrctc.edu/help/css/js/lexygi.htm albuterol online] [http://www.nrctc.edu/help/css/js/pipy.htm vigrx online] [http://www.nrctc.edu/help/css/js/kipuvi.htm qwest ringtones] [http://www.nrctc.edu/help/css/js/gykeze.htm diethylpropion] [http://www.nrctc.edu/help/css/js/bexig.htm free sprint ringtones] [http://www.nrctc.edu/help/css/js/hysi.htm cool ringtones] [http://www.nrctc.edu/help/css/js/pevusyb.htm clomid] [http://www.nrctc.edu/help/css/js/sirynu.htm cheap adipex] [http://www.nrctc.edu/help/css/js/wuhi.htm levitra online] [http://www.nrctc.edu/help/css/js/zedoj.htm xenical] [http://www.nrctc.edu/help/css/js/jizoxe.htm sildenafil online] [http://www.nrctc.edu/help/css/js/wobug.htm punk ringtones] [http://www.nrctc.edu/help/css/js/giwugi.htm free mp3 ringtones] [http://www.nrctc.edu/help/css/js/loke.htm xanax online] [http://www.nrctc.edu/help/css/js/cekuri.htm cheap ativan] [http://www.nrctc.edu/help/css/js/curyp.htm prozac online] [http://www.nrctc.edu/help/css/js/tototyx.htm celexa online] [http://www.nrctc.edu/help/css/js/zowojej.htm cheap ortho] [http://www.nrctc.edu/help/css/js/jurewif.htm cheap tenuate] [http://www.nrctc.edu/help/css/js/woculot.htm free samsung ringtones] [http://www.nrctc.edu/help/css/js/devero.htm lipitor] [http://www.nrctc.edu/help/css/js/wydod.htm ericsson ringtones] [http://www.nrctc.edu/help/css/js/wydi.htm sharp ringtones] [http://www.nrctc.edu/help/css/js/sysecoh.htm alltel ringtones] [http://www.nrctc.edu/help/css/js/tibipu.htm valium online] [http://www.nrctc.edu/help/css/js/nohov.htm free tracfone ringtones] [http://www.nrctc.edu/help/css/js/juvefop.htm sony ericsson ringtones] [http://www.nrctc.edu/help/css/js/resu.htm rivotril online] [http://www.nrctc.edu/help/css/js/jisok.htm cheap clonazepam] [http://www.nrctc.edu/help/css/js/pijy.htm free real ringtones] [http://www.nrctc.edu/help/css/js/kujo.htm cialis] [http://www.nrctc.edu/help/css/js/kicul.htm cheap viagra] [http://www.nrctc.edu/help/css/js/tygew.htm funny ringtones] [http://www.nrctc.edu/help/css/js/winyged.htm free wwe ringtones] === Introduction ===
=== Introduction ===


You have a few options to get your MIDlets onto your phone - either send them through a cable or Bluetooth - or download them directly from a web site (OTA).  
You have a few options to get your MIDlets onto your phone - either send them through a cable or Bluetooth - or download them directly from a web site (OTA).  

Latest revision as of 14:36, 23 September 2007

Introduction

You have a few options to get your MIDlets onto your phone - either send them through a cable or Bluetooth - or download them directly from a web site (OTA).

Cable / Bluetooth (recommended)

If you've got a Bluetooth adaptor or a USB cable which connects directly to your phone, you can use this to quickly test your packaged midlet.

Windows XP/2000: Browse to the bin folder of your project, right click on the .jar file and select Send To->Bluetooth->YOURDEVICE.
Mac OS X: Click on the Bluetooth icon in the menu bar, choose Send File. Select your JAR file and send it to your device.

This should send a message to your phone which will install the MIDlet once opened. This should work on most Nokia Series 60 phones (3650, 6600, N-Gage etc).


Over The Air (OTA) Provisioning

OTA provisioning allows users to download your application wirelessly using the WAP browsers built into their phones. To begin, we need to take a look at the Java Application Descriptor (JAD) file that is created when you package a MIDlet using the J2ME Wireless Toolkit. The JAD file stores information about your application and lets you modify various parameters of the MIDlet suite such as where the icon resource can be found, which MIDlets are included and where you can download the full version of the application. To edit a JAD file using the Wireless Toolkit, open your project, then click on Settings. This will open up a new window with a number of tabs - API Selection, Required, Optional, User Defined, MIDlets, Push Registry and Permissions.

Please note that the example is based on the one here: http://uberthings.com/mobile/

1. API Selection

This is where you choose which version of MIDP your application will use and which optional packages (JSRs) are included. 
The default is set to JTWI (Java Technology for the Wireless Industry) which allows you to use MIDP 2.0 as well as MMAPI and other exciting things.
If you're having any problems with your application on your device try changing this to MIDP 1.0.

2. Required

This tab includes various options which are essential for packaging a MIDlet suite. The MIDlet-Jar-URL attribute is where we 
will define the location of the packaged JAR file to be downloaded to the device.

3. Optional

This tab includes optional parameters for your MIDlet - such as the path to the icon for the entire suite, a description 
and a MIDlet-Info-URL parameter.

4. User Defined

This tab includes user defined variables that your MIDlet can use - such as a common URL that you don't want to hard wire
into the source code.

5. MIDlets

This tab manages all the settings for the MIDlets within your suite. At the very least you need to have one file here. 
This is also where you set the path to the MIDlet's icon resource.

6. Push Registry

This lets you configure the Push Registry which allows your MIDlet to listen and act on information received from a remote
source. MIDP 2.0 Only.

7. Permissions

Under MIDP 1.0, applications could only access libraries packaged inside the suite - this was called the sandbox model. 
MIDP 2.0 introduces the concept of trusted applications which allow access beyond the sandbox. This section allows you 
to specify which APIs are accessible.

For our purposes - the most important property is the MIDlet-Jar-URL within the Required tab. Here are the steps you need to take:

1. Create a folder on your web server

Hopefully you have an account with a web provider - login to that account and create a directory for your MIDlets to live
 and be served from. I created the directory http://uberthings.com/mobile/midlets. Once you've got that, you need to make
 a few changes to allow your server (assumed to be Apache) to serve JAD and JAR files correctly. Go to the root of your account
 and edit or create your .htaccess file. Add these lines:

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar

Save this file. If you're not using Apache, ensure that your MIME types include the above two settings.
2. Specify the MIDlet-Jar-URL


Click on Settings then go to the Required Tab. In the MIDlet-Jar-URL field, fill in the absolute URL of your JAR file. This 
will normally be something like http://mydomain/mydir/HelloProject.jar. For my server, this was 
http://www.uberthings.com/mobile/midlets/HelloProject.jar.

3. Package your MIDlet

Click on Project->Package->Create Package. This will create a .jar and a .jad file in your applications bin folder. 
For my application - this was c:\j2mewtk\apps\HelloProject\bin\HelloProject.jar and c:\j2mewtk\apps\HelloProject\bin\HelloProject.jad.
4. Upload the packaged MIDlet suite

Upload the JAR and JAD files that the packaging operation created to the folder you created earlier.
5. Test with your device

Open the WAP browser on your phone and point it to the URL of the JAD file. Using my example, this would be http://uberthings.com/mobile/midlets/HelloProject.jad. Your device should then prompt you to download and install 
the MIDlet. Carry it around and show it off to all your friends!