Discussion Board

Results 1 to 10 of 10
  1. #1
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,280

    Cool Iam working n Live TV Java App fo asha devces and java supported devcies.How to parse

    How to parse and download the contents like channel images ,urls and names etc from xml.aspx file which is in a url format?


    I want the video or channel url to be played when clicked on the channel image.




    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,789

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    ASPX is not a file format what appears on client side, Active Server Pages (X is there when the thing runs on .Net) is a server side technology, similar to JSP (Java Server Pages) or PHP (PHP HTML Preprocessor).
    So what you need to check is what data you actually get on the client, an ASPX page can serve you anything ranging from text, binary data to HTML or XML.
    It is probably going to be XML, and then you can parse it as XML. As you are a long time visitor here, you certainly know about the Wiki, and would easily find http://developer.nokia.com/Community...XML_on_Java_ME
    But first you may just want to save the content (on your PC) and check it with your own eyes, then you will see if it is XML or something else.

  3. #3
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,280

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    Thank you for the info provided but my url which is in xml.aspx format contains Strings i.e channel names, urls and Channel Images which are to parsed shown with the images in the application.


    My xml model will be like this

    <root>
    <script/>
    <settings>
    <appurl>http://www.ytv.com/</appurl>
    <adurl>http://www.webmobiads.com/bmobile/iphonead.aspx</adurl>
    <adinterval>600.0</adinterval>
    </settings>
    <channel>
    <name>Jeeyar Playlist</name>
    <id>1020</id>
    <type>Live Event</type>
    <language>Events</language>
    <image>
    http://img.live.ytv.com/LB/ChannelImage/1020_nokia.png
    </image>
    <link>
    rtsp://edge.yuppevent.yupptv.tv:1935/jeeyar/
    </link>
    <bandwidth>High</bandwidth>
    <cellnapid>16</cellnapid>
    </channel>

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,789

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    I assume you get this XML with HTTPConnection. It can also get you the other HTTP content pieces linked in the XML (like appurl, adurl and image). Where is the problem?

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    yes to just to make things more clear on lines of what wizard has mentioned , you need to do two things:

    1. Send get or post request to your api, or url , you can have a look at this article for that http://developer.nokia.com/Community...est_in_Java_ME
    2. Once you get the response use any xml parser , kxml is the best one to use http://developer.nokia.com/Community...est_in_Java_ME

  6. #6
    Registered User
    Join Date
    Aug 2011
    Posts
    39

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    You might like to check out the Tantalum library, make http and xml parsing easy.

  7. #7
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,280

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    In tanatalum library Iam not finding any java file

    https://projects.developer.nokia.com/Tantalum

    Can anybody help me in parsing and I did not tested the " http://developer.nokia.com/Community...est_in_Java_ME "


    As the required SDK's and Tools are not installed still.

    There is a issue with downloading and instyalling Eclipse for Java ME
    Last edited by Symbian_Neil; 2013-10-04 at 11:05. Reason: Fixed the link. Please copy shortcut rather than just copy when copying links

  8. #8
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    272

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    If you have Nokia SDK 1.0 installed, you will get the tantalum binary as well.Look under plugins directory if you have the SDK.

    If you are using LWUIT, LWUIT IO has a simple xml parser included as well.

  9. #9
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,280

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    No Iam unable to Install the SDk 1.0 or 2.0 and Nokia J2ME SDK

  10. #10
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    272

    Re: Iam working n Live TV Java App fo asha devces and java supported devcies.How to p

    LWUIT 1.5 also has an IO Package with an XML parser.You can get LWUIT 1.5 from Oracle website.

Similar Threads

  1. Decoded response in Java ME (Nokia Asha)
    By Hospodar in forum Mobile Java General
    Replies: 9
    Last Post: 2013-08-01, 15:39
  2. Cookies in Java ME (Nokia Asha)
    By Hospodar in forum Mobile Java General
    Replies: 4
    Last Post: 2013-07-30, 11:34
  3. Full screen mode is not working in ASha(java)
    By ohiletechguy in forum Mobile Java General
    Replies: 1
    Last Post: 2013-03-28, 10:14

Posting Permissions

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