Back to project page ildn-hub.
The source code is released under:
GNU General Public License
If you think the Android project ildn-hub 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 net.ildn.fedorait; /*www .ja v a 2 s .co m*/ import java.util.ArrayList; import net.ildn.DataRetriever; import net.ildn.GlobalMenu; import net.ildn.NewsAdapter; import net.ildn.NewsItemRow; import net.ildn.WebContent; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; //public class ForumActivity extends Activity { public class ForumActivity extends GlobalMenu { private DataRetriever dataRetriever; private static final String LOG_ID = "Fedora-it.org - ForumActivity"; @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Log.i(LOG_ID, "Richiamato onListItemClick()"); Intent showme = new Intent(getApplicationContext(), WebContent.class); showme.setData(Uri.parse(messages.get(position).getLink() .toExternalForm())); showme.putExtra("description", messages.get(position).getDescription()); showme.putExtra("fonte", this.getString(R.string.intestazionefedora)); showme.putExtra("baseurl", messages.get(position).getLink().toString()); showme.putExtra("titlecontent", messages.get(position).getTitle()); startActivity(showme); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i(LOG_ID, "Richiamato onCreate()"); setContentView(R.layout.layoutnews); n_adapter = new NewsAdapter(this, R.layout.feedforumrow, new ArrayList<NewsItemRow>(),getString(R.string.intestazionefedora)); setListAdapter(this.n_adapter); String urlFeed = this.getString(R.string.fedorafeedforum); dataRetriever = new DataRetriever(urlFeed, this); showProgressDialog(); dataRetriever.start(); } @Override protected void onRestart() { super.onRestart(); String urlFeed = this.getString(R.string.fedorafeedforum); dataRetriever = new DataRetriever(urlFeed, this); showProgressDialog(); dataRetriever.start(); } }