Android Open Source - ildn-hub Guide Activity






From Project

Back to project page ildn-hub.

License

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.

Java Source Code

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();
  }
}




Java Source Code List

net.ildn.Authentication.java
net.ildn.CoverFlow.java
net.ildn.DataRetriever.java
net.ildn.GlobalMenu.java
net.ildn.ImageAdapter.java
net.ildn.ListaPortali.java
net.ildn.NewsAdapter.java
net.ildn.NewsItemRow.java
net.ildn.OtherActivity.java
net.ildn.SexySplash.java
net.ildn.SimpleCrypto.java
net.ildn.Splash.java
net.ildn.UserCredential.java
net.ildn.WebContent.java
net.ildn.debianitalia.DebianBlogActivity.java
net.ildn.debianitalia.DebianForumActivity.java
net.ildn.debianitalia.DebianGuideActivity.java
net.ildn.debianitalia.DebianItalia.java
net.ildn.debianitalia.DebianNewsActivity.java
net.ildn.fedorait.BlogActivity.java
net.ildn.fedorait.ForumActivity.java
net.ildn.fedorait.GuideActivity.java
net.ildn.fedorait.NewsActivity.java
net.ildn.fedorait.fedorait.java
net.ildn.feed.AndroidSaxFeedParser.java
net.ildn.feed.BaseFeedParser.java
net.ildn.feed.FeedParser.java
net.ildn.feed.Message.java
net.ildn.mageiaitalia.MageiaBlogActivity.java
net.ildn.mageiaitalia.MageiaForumActivity.java
net.ildn.mageiaitalia.MageiaGuideActivity.java
net.ildn.mageiaitalia.MageiaItalia.java
net.ildn.mageiaitalia.MageiaNewsActivity.java
net.ildn.mandrivaitalia.MandrivaBlogActivity.java
net.ildn.mandrivaitalia.MandrivaForumActivity.java
net.ildn.mandrivaitalia.MandrivaGuideActivity.java
net.ildn.mandrivaitalia.MandrivaItalia.java
net.ildn.mandrivaitalia.MandrivaNewsActivity.java
net.ildn.suseitalia.SuseBlogActivity.java
net.ildn.suseitalia.SuseForumActivity.java
net.ildn.suseitalia.SuseGuideActivity.java
net.ildn.suseitalia.SuseItalia.java
net.ildn.suseitalia.SuseNewsActivity.java