Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. package nl.diekantankys.dkapp;
  2.  
  3. import java.io.IOException;
  4. import org.jsoup.Jsoup;
  5. import org.jsoup.nodes.Document;
  6.  
  7. import android.app.Activity;
  8. import android.content.Intent;
  9. import android.os.Bundle;
  10. import android.view.View;
  11. import android.widget.TextView;
  12.  
  13. public class GroupChooseActivity extends Activity {
  14.  
  15.     TextView schuld;
  16.    
  17.     @Override
  18.     protected void onCreate(Bundle savedInstanceState) {
  19.         super.onCreate(savedInstanceState);
  20.         TextView schuld = (TextView) findViewById(R.id.schuld);
  21.         setContentView(R.layout.groupchooselayout);
  22.     }
  23.    
  24.     public void getSchuld(View view) throws IOException{
  25.          Document doc = Jsoup.connect("http://rowans.diekantankys.nl/bonnen/index.php?id=4").get();
  26.          String table = doc.body().getElementsByTag("tbody").text();   
  27.          schuld.setText(table);
  28.     }
  29.     public void goToRowans(View view){
  30.         Intent i = new Intent(GroupChooseActivity.this, RowansStrepen.class);
  31.         startActivity(i);
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement