File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "working of Install_Notify" Watch "working of Install_Notify" New topic

working of Install_Notify

Poonam Gulve

Joined: Aug 13, 2007
Posts: 16
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:
[ December 17, 2007: Message edited by: Eduardo Marques ]

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

Joined: Aug 13, 2007
Posts: 16
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 :
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 :""
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 -

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:
subject: working of Install_Notify
It's not a secret anymore!