aspose file tools*
The moose likes Java Micro Edition and the fly likes working of Install_Notify Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "working of Install_Notify" Watch "working of Install_Notify" New topic
Author

working of Install_Notify

Poonam Gulve
Greenhorn

Joined: Aug 13, 2007
Posts: 16
Hi,
My Problem is after downloading jar to any handset I want to know whether it was successfully downloaded or not.. on searching I found that MIDlet-Install-Notify attribute in jad is used.. but i didnt understand how
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
The attribute should be declared in the JAD file and contain an URL
that is invoked to report the MIDlet installation status.

This is described in the MIDP 2.0 specs.
See also this question anwered in Sun's forum:
http://forum.java.sun.com/thread.jspa?threadID=673958&messageID=9400960
[ December 17, 2007: Message edited by: Eduardo Marques ]

Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Poonam Gulve
Greenhorn

Joined: Aug 13, 2007
Posts: 16
hi,
I added a servlet path in MIDlet-Install-Notify attribute in jad file in which i am getting all the header values.
After running the app, i got the headers as written below; The jar got downloaded but didnot return any status code for success or failure in the header..

So is there any other way of getting the status code?
==================
The header values ->

hostheader val :203.115.112.151:8080
acceptheader val :*/*
accept-encodingheader val :gzip, deflate
content-lengthheader val :11
content-typeheader val :text/plain; charset=UTF-8
cookie2header val :$Version="1"
msisdnheader val :919892355955
user-agentheader val :Nokia6300/2.0 (04.20) Profile/MIDP-2.0 Configuration/CLDC-1.1
viaheader val :WTP/1.1 nwg4 (Nokia WAP Gateway 4.1/CD17/4.1.101)
x-network-infoheader val :GPRS,919892355955,unsecured
x-nokia-bearerheader val :GPRS
x-nokia-connection_modeheader val :TCP
x-nokia-gateway_idheader val :NWG/4.1/Build101
x-nokia.wia.accept.originalheader val :*/*
x-wap-profileheader val :"http://nds1.nds.nokia.com/uaprof/N6300r100.xml"
pragmaheader val :no-cache
cache-controlheader val :no-cache
connectionheader val :close
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
Try reading the status from the request. i.e. request.getInputStream()


Rashid Mayes
http://www.hostj2me.com/ - http://www.worlddeveloper.org/
RAGUNATH RAVICHANDRAN
Greenhorn

Joined: Mar 29, 2006
Posts: 3
The status of the MIDlet installation does not comes in the header part.
It will present inside body
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: working of Install_Notify