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-Permissions: javax.microedition.io.PushRegistry
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"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card title="Download"> <p> <a href="http://localhost/test/app.jad">appname</a> </p> </card> </wml>
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/vnd.sun.j2me.app-descriptor 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.
Ref:
https://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_tips_java_1201.jsp
Comments
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
his release of Sun Java (TM) Wireless Toolkit consists of build tools, utilities and a device emulator.his release of Sun Java (TM) Wireless Toolkit consists of build tools, utilities and a device emulator.
Re: Test Push Registry
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.
mentors
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
it was an informative article. i got some tips on how to test it in WTK. thanks.
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
yes thank you very much, hats off
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
Very cool realy thanks..
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
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.
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
Hi, Admin
Can you tell me how to test a Push Registry application on Netbeans 6.1 Emulator? Thanks
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
thanxs admin
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
very very good admin
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
thanks admin wery good
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
thanks admin wery good
Re: Test Push Registry in Wireless Toolkit 2.5(WTK)
Thanks for your post.Nice webdesign.
Re: Test Push Registry
Congrats , very good post.
hello
very cool realy thanks....evden eve nakliyat
Re: Test Push Registry
Thanks. Nice article
Sony Ericsson K800i can not support MIDlet-Push-1
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.
Post new comment