Back to project page test-gradle.
The source code is released under:
Copyright (c) <2013> <Paul Estrada> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
If you think the Android project test-gradle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.listexample; //from ww w . j a v a 2s .c om import android.app.Activity; import android.os.Bundle; import android.widget.ListView; import android.widget.TextView; import com.example.listexample.utils.GetTweetsTask; public class MainActivity extends Activity { private final static String myTag = "MainActivity"; private ListView myList = null; private MyAdapter myAdapter = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myList = (ListView) findViewById(R.id.list_view_lista); myAdapter = new MyAdapter(this); myList.setAdapter(myAdapter); // adding elements GetTweetsTask task = new GetTweetsTask(); task.setAdapter(myAdapter); task.execute("http://www.recursosdelweb.com/feed_twitter.json"); // myAdapter.addElements(tweets); } }