View Single Post
wook_sf's Avatar
Posts: 640 | Thanked: 435 times | Joined on Oct 2011 @ rajvoSa BA
#727
Originally Posted by DavyP View Post
Actually, writing a proper installer requires a bit more work. Basically if you tap on a link referring to a jad file in a browser, the installer should download this file to a certain location, parse it to figure out the location of the corresponding jar file and download that as well.

Then you can figure out how to start the midlet, either by parsing the jad or the manifest file in the jar, but that part is already implemented. You can then do all the nice things to get proper icons, application names, etc. but you need to make sure you have to proper privileges to do that. Also, the installer needs to be smart enough where to store the icons, because the default paths for Maemo and Meego are different.

At least, this is what I did for the Android port. I don't create separate short cuts for each midlet, but implemented a simple midlet manager that keeps track of which midlets have been downloaded, etc. This feature request has been listed on my TODO list so I am quite aware this functionality would be nice to have:

http://davy.preuveneers.be/phoneme/?q=node/34

The excalibur script was indeed a first shot at this, but I personnaly think it was still to complicated to use, and I have also had cases where the script did not work reliably.

Cheers,
Davy
i am not sure about maemo, but MeeGo can store .desktop files into home/user/local/share/applications/
icon can be saved anywhere.
as for jar part:
we can store midlets in /home/user/MyDocs/.midlets/jars/
we can store icons in /home/user/MyDocs/.midlets/icons/
so, permission problem is solved (afaik)
there's also a way to write into /usr/share/applications/ but we can avoid that if midlets will actually be on mass memory so if some memory is erased other one will remain and all files will be on same.
about jad files, as far as i am aware jad contains url to jar so, we can implement this too.

what do you think?
 

The Following User Says Thank You to wook_sf For This Useful Post: