Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
olivvein
olivvein's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
image and xml in processing for android
[8 Replies]
28-Dec-2011 09:38 AM
Forum:
Android Processing
Hi,
I'm new on android, but i've already done some programs for it.
I'd like to port some code from processing to android and the programs doesn't work.
I can't load data from internet. Of course, i've check the internet permissions.
I want to load an image from internet and display it.
PImage a;
a = loadImage("http://myserver.com/myimage.jpg");
image(a, 0, 0);
I want to import xml data :
XML xml;
String sites[] = loadStrings("http://myserver.com/mydata.xml");
String sitesOneLine = join(sites, "").replace("> <", "><");
xml = XML.parse(sitesOneLine);
int numSites = xml.getChildCount();
XML kid = xml.getChild("valeur");
String site = kid.getContent();
valeur = Integer.parseInt(site);
Is there an other way to do it?
Am i mistaking?
I really need to make it work, processing for android is easier for me than using eclipse and the sdk.
Thanks a lot.
«Prev
Next »
Moderate user : olivvein
Forum