B4A Library CustomRSSView

Discussion in 'Additional libraries, classes and official updates' started by NJDude, Jun 24, 2014.

Similar threads

B4A Tutorial XML Parsing with the XmlSax library
B4A Question "Quote of the day" widget demo
B4A Question RSS feed question
B4A Question Combine 2 rss-feeds
B4A Question Rss Feed help
  1. Alisson

    Alisson Active Member Licensed User

    The code work it:
    1- User conected loading rss
    2- the code downloaded file rss.

    If the users is offline, the file rss downloaded is read.

    But if use read rss online and downloaded.
    When accsses other module/view, example:

    Loading module1/view1, the module/view RSS override the module1/view1.

    I'll talk to my boss, available apk .

    Thanks help.
     
  2. Alisson

    Alisson Active Member Licensed User

    NJDUde a found the error:


    Code:
    Sub JobDone (Job As HttpJob)
       
    If Job.Success = True Then
           Job.Download(link1) 
    '' I repeat the line, It is the error
               Dim out As  OutputStream
              out = 
    File.OpenOutput(File.DirRootExternal,"folder/rss.xml",False)
               
    File.Copy2(Job.GetInputStream,out)
               out.Close
               Job.Release
       
    End If
       
    ProgressDialogHide
    End Sub
    The line is repeat: Job.Download(link1)
    It is error.

    Thanks very much!
     
  3. NJDude

    NJDude Expert Licensed User

    Glad to know you found the problem.
     
    Alisson likes this.
  4. tpakis

    tpakis Active Member Licensed User

    @NJDude I'm trying to use your library for a small project, which is excellent for this purpose, but i found two small problems:

    1) At the initialize you can set height but not width. I tried to add the view in a panel smaller than the activity width and the rssview was "chopped" from the right.
    2) At customrssviewbackgroundcolor if i set it to any color but with alpha = 0 the background turns white not transparent (as i wanted)
     
  5. Devv

    Devv Active Member Licensed User

    hi, the images are not showing on Android 6
     
  6. NJDude

    NJDude Expert Licensed User

    I have Android 6 and I can see the images.
     
  7. NJDude

    NJDude Expert Licensed User

    That is correct, only the width can be set.
    What's the color of the activity/panel you added the RSS view to? it might be white.
     
    tpakis likes this.
  8. tpakis

    tpakis Active Member Licensed User

    The panel where rss view is added has a bitmap background
     
  9. Devv

    Devv Active Member Licensed User

  10. NJDude

    NJDude Expert Licensed User

    You will have to parse that XML yourself since that format is not supported by the library, after parsing you can add the results to the library.
     
    Devv likes this.
  11. Devv

    Devv Active Member Licensed User

    how many rss formats is there ?
    can you please give an example of parsing XML manually ?
     
  12. NJDude

    NJDude Expert Licensed User

    To parse an RSS manually you will have to learn how to use the XMLSax library, there are plenty of samples posted on the forums, just do a quick search.
     
    viki0028 and DonManfred like this.
  13. Jomagom

    Jomagom Member Licensed User

    It could be implemented to change the order of the labels, ie the title first and then the image etc.
    a greeting
     
    viki0028 likes this.
  14. Jack Cole

    Jack Cole Active Member Licensed User

    There seems to be an issue with this library and https. See screenshot. The site has a valid certificate, but the library seems to be doing something like resolving to the IP and reverse lookup?

    upload_2019-2-4_8-44-43.png
     
  15. jchal

    jchal Active Member Licensed User

    unfortunately jack i am facing the same problem did you manage to find a soloution with the libray?
     
  16. Jack Cole

    Jack Cole Active Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice