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.mandrivaitalia; /*from w w w .ja v a2 s. com*/ 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 net.ildn.fedorait.R; 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 MandrivaBlogActivity extends GlobalMenu { private DataRetriever dataRetriever; private static final String LOG_ID = "mandrivaitalia.org - BlogActivity"; @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.intestazionemandriva)); 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.feedblogrow, new ArrayList<NewsItemRow>(),getString(R.string.intestazionemandriva)); setListAdapter(this.n_adapter); String urlFeed = this.getString(R.string.mandrivafeedblog); dataRetriever = new DataRetriever(urlFeed, this); showProgressDialog(); dataRetriever.start(); } @Override protected void onStart() { super.onStart(); Log.i(LOG_ID, "Richiamato onStart()"); } }