for the web page
http://www.fridayrelease.com/theater/cinemas/chennai/abirami-cinemas-chennai/1248
any one can give me an idea how can i get all the moview names in the above
link inclludin the timings
CODE//////////////////////////////////
package in.mobicgoa;
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class SathyamNShow extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.sathyamshow);
WebView satNS = (WebView) findViewById(R.id.wbvSathyamNS);
satNS.getSettings().setJavaScriptEnabled(true);
String data = "";
Document doc = null;
try {
doc = Jsoup.connect("/")
.get();
Elements elements = doc.getElementsByClass("three-fourths");
for (org.jsoup.nodes.Element element : elements) {
data += element.outerHtml();
data += "<br/>";
}
satNS.loadData(data, "text/html", "UTF-8");
} catch (IOException e) {
e.printStackTrace();
}
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en