RSS Reader

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jersobh
Posts: 6
Joined: Fri Feb 21, 2014 5:08 am

RSS Reader

Post by jersobh » Fri Feb 21, 2014 5:17 am

Hi guys.
I'm trying to customize The RSS example, but my RSS Url wont load. Its a regular XML file.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: RSS Reader

Post by Simon » Fri Feb 21, 2014 7:05 am

Hi jersobh,
Welcome to the forum!

We're off to a little bit of a rocky start :(
You'll have to give some more information of the problem you are having.
Maybe some code samples.
Is there an error message?
How do you test that it doesn't load?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jersobh
Posts: 6
Joined: Fri Feb 21, 2014 5:08 am

Re: RSS Reader

Post by jersobh » Fri Feb 21, 2014 7:04 pm

Sure! Sorry, it was because i was typing from my smartphone... Well, this is it:

I've opened the RSS example, and changed this line:
local sWebPage = "ht tp://sindifes. org.br/ sindifes/noticias.rss"
noticias.rss -> it's a xml file, with the <title>, <link>, <discription> and <pubDate>. But i aways get xmlerr, can't find element message..

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: RSS Reader

Post by Simon » Fri Feb 21, 2014 11:05 pm

Hi jersobh,
There are several places where xmlerr can show up in the RSS lesson, I'm going to go with revXMLChildNames in function itemList.
Looking at the xml I can see that the startNode needs to be changed from "RDF" to "/rss/channel". It's not very well explained how that is derived but look at the xml and see if you can figure it out.

There is another problem but I'll let you work on it as it's easier to solve.

Write back if you need more help.

Simon
Oh, and yes I have it working here.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jersobh
Posts: 6
Joined: Fri Feb 21, 2014 5:08 am

Re: RSS Reader

Post by jersobh » Mon Feb 24, 2014 7:24 pm

Hi there! Thanks for the reply :)

It worked flawlessly, then i had a problem with encoding, but solved it, then i had a problem with the date, but solved also. Now i'm trying to compile it for android.
I've downloaded all required android sdk stuff, but when i install it (signed for development only) and open it on a real android phone, it crashes (with a black screen of death).

Cheers,

Jeff

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: RSS Reader

Post by Simon » Mon Feb 24, 2014 11:42 pm

Hi Jeff,
In the standalone settings are you including revXML?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jersobh
Posts: 6
Joined: Fri Feb 21, 2014 5:08 am

Re: RSS Reader

Post by jersobh » Tue Feb 25, 2014 2:37 pm

Hi Simon,

Yep, i've even tryied to select all those libs. On preferences > mobile support i've selected the adt-bundle-linux-x86_64-20131030 folder and the java sdk.. i think it's correct. The app is running well for linux and windows. Just crashes with android.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: RSS Reader

Post by Simon » Tue Feb 25, 2014 10:57 pm

Hi Jeff,
Have you been able to run any apps you've made on an Android device?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jersobh
Posts: 6
Joined: Fri Feb 21, 2014 5:08 am

Re: RSS Reader

Post by jersobh » Thu Feb 27, 2014 4:53 pm

Nope. It just crashes. I develop on a linux workstation. I've tryied both Oracle Java SDK and OpenJava SDK, and then both 32 and 64 bit android skd, none worked. So i've debuged with cat log and found that i get an error with code '7'.
I've even tryed to make a simple form with a button, but it crashes anyway.

jersobh
Posts: 6
Joined: Fri Feb 21, 2014 5:08 am

Re: RSS Reader

Post by jersobh » Thu Feb 27, 2014 5:07 pm

This is the logcat info:

Process 379 terminated by signal (7)
I/ActivityManager( 66): Process com.sindifes.informa (pid 379) has died.
I/UsageStats( 66): Unexpected resume of com.android.launcher while already resumed in com.sindifes.informa

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: RSS Reader

Post by Simon » Thu Feb 27, 2014 8:00 pm

Hi Jeff,
Sorry I don't know linux stuff.
People here have been able to get apps to compile for Android using linux though.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply