×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    12

    Question how can I serve contents on mobile using flashlight

    Hi guys, I've been working on flashlight to serve contents from a website, I've used XML for data transfer from server t mobile device but its very expansive. Expansive in terms of memory consumption and parsing of XML as well.

    can some one help me to know the best way in getting data on device, there might be some better way than XML and I am not aware of that

    thanx,
    Max

  2. #2
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: how can I serve contents on mobile using flashlight

    Hi,

    XML, as you have discovered, is quite expensive to use in Flash Lite. My own tests show that a 30kb of XML equates to 1mb of memory use.

    While its easier to use XML for smaller tasks you should investigate using key value pairs instead.

    Here is a good tutorial:
    http://www.actionscript.org/resource...cts/Page1.html

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    12

    Re: how can I serve contents on mobile using flashlight

    Hi mark,

    I tried it at first place but some issues made me not choose it as
    by using load variables I had problem with '&' character, I could not escape it if it comes in the contents.
    Second important thing is when i render it on my device(i am using text field on device) it run out of memory,
    How can I save memory to view contents from an article on my device.

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: how can I serve contents on mobile using flashlight

    Hi,

    you can try taking a loog at SWX:

    http://swxformat.org/

    However, it'll be hard to find something less memory hungry than key/value pairs

    Pit

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    12

    Re: how can I serve contents on mobile using flashlight

    yes, I’ve been to SWX, its good for data driven application but it doesn’t solve my problem. :-(
    As I am intended to show contents from internet like an article is written there and I want to read it via my mobile device, but SWX also consumes resources heavily. I think we need some thing like Garbage Collector(as in j2me) but I am not able to do it with SWX also. resource managment is becoming an issue for me in flashlight.

  6. #6
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    Re: how can I serve contents on mobile using flashlight

    Hi, Instead of xml, name value pair will reduce memory consumption.
    That is why I have created a service for convert xml to name value pair.
    http://www.nimoble.com/xml/parseXML.php?xml=<your public xml path>
    So, this service will convert it to name value pair…
    I m trying to break up that whole xml in small chunk of name value pair… but it will take 3-4 days more.
    Regards,

    Ravindra Suthar

  7. #7
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    Re: how can I serve contents on mobile using flashlight

    hi justin, as well as my experience on working with flashlight, i found it very good in terms of games. its my personal taught that flashlight has some limitations to use device
    because it is not native as j2me hence problems in persistent storage leading issues with real life applications....i might not be right but i am using it only for games till yet.

  8. #8
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    Re: how can I serve contents on mobile using flashlight

    well, I am not sure about accuracy of my suggestion with related to your question but a couple of weeks ago i came through a link that got my attension,
    it was under construction at that time and just putting their intensions about working with some content serving method on mobile device.
    It might be of some benefit for you, http://www.mximframework.com
    i realize it also negate my above comment about flash lite capabilities... ;-)

  9. #9
    Registered User
    Join Date
    Apr 2008
    Posts
    12

    Re: how can I serve contents on mobile using flashlight

    yes jeff3r, I got demonstration copy from there and run it on my mobile device. they are serving whole wikipedia articles on device and my contents are much smaller in size than wikipedia . I checked proof of technology there, next coming release must be a good one, I'm looking forward for that.

    thanks for useful reference.

Similar Threads

  1. Mobile learning server / environment published
    By mikaset in forum News and Announcements
    Replies: 0
    Last Post: 2008-03-25, 20:50
  2. Replies: 0
    Last Post: 2007-09-14, 12:07
  3. Replies: 0
    Last Post: 2007-07-15, 23:06
  4. Writing a servlet to serve MM contents to MMS phone
    By jmsalvo in forum General Messaging
    Replies: 1
    Last Post: 2003-03-06, 05:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×