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; /*from w w w .j av a 2s. c om*/ 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 GuideActivity extends GlobalMenu { private static final String LOG_ID = "Fedora-it.org - GuideActivity"; private DataRetriever dataRetriever; @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); } /** Called when the activity is first created. */ @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.feedguiderow, new ArrayList<NewsItemRow>(),getString(R.string.intestazionefedora)); setListAdapter(this.n_adapter); String urlFeed = this.getString(R.string.fedorafeedguide); dataRetriever = new DataRetriever(urlFeed, this); showProgressDialog(); dataRetriever.start(); } @Override protected void onStart() { super.onStart(); Log.i(LOG_ID, "Richiamato onStart()"); } @Override protected void onRestart() { super.onRestart(); String urlFeed = this.getString(R.string.fedorafeedguide); dataRetriever = new DataRetriever(urlFeed, this); showProgressDialog(); dataRetriever.start(); } }