<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://www.mobile-j.de/snipsnap/rdf'>
    <s:Snip rdf:about='http://www.mobile-j.de/snipsnap/rdf#J2ME/Getting+content+from+a+MIDlet+into+the+phone'
         s:cUser='bjoernQ'
         s:oUser='bjoernQ'
         s:mUser='bjoernQ'>
        <s:name>J2ME/Getting content from a MIDlet into the phone</s:name>
        <s:content>While we could create images, music and other cool content in a MIDlet there seems to be no way to get the content into the native applications (e.g. use a midi file as a ringtone or set a JPEG as a wallpaper).&#xD;&#xA;&#xD;&#xA;On newer phone&apos;s which support the File Connection API this is easy. Just save the file to the right location.&#xD;&#xA;&#xD;&#xA;On not so new phones like my 6600 there&apos;s still an easy way.&#xD;&#xA;&#xD;&#xA;Just start a local tcp/ip server on port 80 that acts as a minimal http server. Now you can launch the native browser application with:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;this.platformRequest(&quot;http://127.0.0.1/&quot;);&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;The silly native browser opens a gprs connection but no data is transmitted via gprs.&#xD;&#xA;&#xD;&#xA;If you set the content type well it should be possible to get any content you like into the native apps.&#xD;&#xA;(Should even work with ~~JAD,JAR,SIS,VCAL~~ etc.)&#xD;&#xA;&#xD;&#xA;On phone&apos;s that don&apos;t support multitasking (i.e. non-symbian phones) you could still transfer the content to a server on the internet and use ~~platformRequest~~ to get the content back from that server. That involves some gprs traffic but mobile traffic is getting cheaper even here in europe.&#xD;&#xA;&#xD;&#xA;The only thing you should be aware of is that ~~platformRequest~~ on the 6600 only works with firmware ~~4.09.1~~ or later.&#xD;&#xA;&#xD;&#xA;</s:content>
        <s:mTime>2005-03-14 16:41:41.688</s:mTime>
        <s:cTime>2005-03-14 16:41:41.688</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#J2ME'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Fun with sending mms from a midlet'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Sending SMS from MIDlet without user intervention'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Getting the IMEI or not ...'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Reading files from J2ME on a 6600'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/How to verify the phone&apos;s MSISDN'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Putting together BlueCove and avetanaOBEX'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Products/GETrack'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Guessing the network operator'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Self signed midlets for the lazy bones'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Start Real One Player from J2ME'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/System.out redirect on S60 3rd Edition'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Sending blinking sms to older Nokias ...'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Fun/Send PC screen to SU2'/>
                <rdf:li rdf:resource='#bjoernQ'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#PYTHON/Distributing Python apps'/>
                <rdf:li rdf:resource='#Products'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Products/S60 Screensaver Maker Pro'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Fun/Some MIDlets'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Using the N95 accelerometer in Java - kind of'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Accelerometer BallGame code and binaries'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-12-09/1'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Fun/Send captured images from phone to SU2'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/MovingBall example ported to JME'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Sending+SMS+from+MIDlet+without+user+intervention'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-08-20/1'/>
                <rdf:li rdf:resource='#adsense'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-02-28/1'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2004-12-22/1'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#SnipSnap/config'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2005-07-05/1'/>
                <rdf:li rdf:resource='#snipsnap-notfound'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-02-03/1'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#SnipSnap/themes/Orange Valley/css/debug.css'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#j2me/start+real+one+player+from+j2me'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Getting content from a MIDlet into the phone/'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Products/POIXpress'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-08-01/1'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-09-21/1'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#SnipSnap/config/weblogsping'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
