You are here

Test Push Registry in Wireless Toolkit 2.5(WTK)

Blog Terms: 

There is many articles about how to test Push Registry with sms, here will give some hints how to test it in WTK.

I. Edit *.jad configuration

MIDlet-1: appname,/app.png,com.easywms.midlet.midletClass
MIDlet-Push-1: sms://:50000, com.easywms.midlet.midletClass, *

or MIDlet-Push-1: sms://:50000, midletClass, *

II. The app must be install via OTA in WTK, this is required for WTK Push testing

1. Need one Webmap server, in this case Xampp Apache server will be used. Copy your compiled app.jad and app.jar file into xampp/htdocs/test/

2. Create one wml file, with content:

<?xml version="1.0"?>


Save it with name download.wml into xampp/htdocs/test/

3.start Porgrams->WTK->OTA Provisioning

The WTK emulator will be started
Install Allication->Lauch
input the url: http://localhost/test/download.wml and choose Menu->Go

then application will be installed on WTK

Notice: if got error:
The application file(.jad) for Project does not appear to be correct type. Contact the application provider for more information

That means the server has no Minetype for jad and jar file. Go to xampp\apache\conf\mime.types, add this 2 lines and restart apache server

application/java-archive jar
text/ jad

4. start Porgrams->WTK->Utilities->WMA Console
send one sms with port 50000 to number +555000x, which be displayed on the left-top conner of WTK emulator.
you app will be started automatically (you will get one permission dialog).

Appendix: some articles said in startAp() need add this:
connections = PushRegistry.listConnections(true);

but i have tested, without this code, app can also be started automatically by push registry.



Strange, i tried to add PushRegistry in SE K800i jad file.
MIDlet-Push-1: sms://:50000, com.easywms.midlet.midletClass, *
But i got "Operation failed" when i installed the application. SE 890i works fine. Reason unknown.

Thanks. Nice article

very cool realy thanks....evden eve nakliyat

Congrats , very good post.

Thanks for your post.Nice webdesign.

thanks admin wery good

very very good admin

Hi, Admin

Can you tell me how to test a Push Registry application on Netbeans 6.1 Emulator? Thanks

Great Post.The Sun Java (TM) Wireless Toolkit 2.5 was previously known as J2ME Wireless Toolkit. This release of Sun Java (TM) Wireless Toolkit consists of build tools, utilities and a device emulator.

yes thank you very much, hats off

I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.


This is just an awesome web site with original features that turn the whole web industry into a marvelous world of fantasy. flash programming