Page 1 of 1
RSS Reader
Posted: Fri Feb 21, 2014 5:17 am
by jersobh
Hi guys.
I'm trying to customize The RSS example, but my RSS Url wont load. Its a regular XML file.
Re: RSS Reader
Posted: Fri Feb 21, 2014 7:05 am
by Simon
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
Re: RSS Reader
Posted: Fri Feb 21, 2014 7:04 pm
by jersobh
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..
Re: RSS Reader
Posted: Fri Feb 21, 2014 11:05 pm
by Simon
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.
Re: RSS Reader
Posted: Mon Feb 24, 2014 7:24 pm
by jersobh
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
Re: RSS Reader
Posted: Mon Feb 24, 2014 11:42 pm
by Simon
Hi Jeff,
In the standalone settings are you including revXML?
Simon
Re: RSS Reader
Posted: Tue Feb 25, 2014 2:37 pm
by jersobh
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.
Re: RSS Reader
Posted: Tue Feb 25, 2014 10:57 pm
by Simon
Hi Jeff,
Have you been able to run any apps you've made on an Android device?
Simon
Re: RSS Reader
Posted: Thu Feb 27, 2014 4:53 pm
by jersobh
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.
Re: RSS Reader
Posted: Thu Feb 27, 2014 5:07 pm
by jersobh
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
Re: RSS Reader
Posted: Thu Feb 27, 2014 8:00 pm
by Simon
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