Jsoup Android Html Parsing
<p>All I want to do is to get the links from the class (cal-StudentActivitiesandEvents-row) , which is in a table. can anyone tell me if I'm doing this the correct way or if there is a better way, there isn't much help for html parsing for android on the web.</p>

<pre><code>package com.example.test;

import java.io.IOException;
import android.os.Bundle;
import org.jsoup.Jsoup;
import org.jsoup.helper.Validate;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.support.v4.app.NavUtils;

public class Parsing extends Activity {
    Document doc;
    Element Link;
    String linkhref;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        try {
            Document doc = Jsoup.connect("www.csn.edu/events.asp").get();
        } catch (IOException e) {
            System.out.print("failed");
            e.printStackTrace();
        }

        Element link= doc.select("table.cal-StudentActivitiesandEvents-row").first();
        linkhref=link.attr("href");
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
</code></pre>
