Android Open Source - ildn-hub Sexy Splash






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;
/*  w  w w.  jav a 2  s.  c om*/
import net.ildn.fedorait.R;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;

public class SexySplash extends Activity {

  private final int SPLASH_DISPLAY_LENGHT = 1000;
  private String portaledefault = "";

  /** Called when the activity is first created. */

  @Override
  public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.splash);

    /*
     * Loading SharedPreferences per il portale di default
     */
    SharedPreferences settings = getSharedPreferences(
        this.getString(R.string.ildnPreference), 0);
    portaledefault = settings.getString("portaledefault",
        "nessuno");

    new Handler().postDelayed(new Runnable() {
      @Override
      public void run() {

        Intent mainIntent;
        /*
        if (portaledefault.equalsIgnoreCase("nessuno")) {
          //Activity ListaPortali
          mainIntent = new Intent("net.ildn.ListaPortali");
          //mainIntent = new Intent("net.ildn.CoverFlowExample");
        } else 
        */
        if (portaledefault
            .equalsIgnoreCase(getString(R.string.intestazionedebian))) {
          mainIntent = new Intent(getString(R.string.portaledebian));
        } else if (portaledefault
            .equalsIgnoreCase(getString(R.string.intestazionefedora))) {
          mainIntent = new Intent(getString(R.string.portalefedora));
        } else if (portaledefault
            .equalsIgnoreCase(getString(R.string.intestazionesuse))) {
          mainIntent = new Intent(getString(R.string.portalesuse));
        } else if (portaledefault
            .equalsIgnoreCase(getString(R.string.intestazionemandriva))) {
          mainIntent = new Intent(getString(R.string.portalemandriva));
        }
        else if (portaledefault
            .equalsIgnoreCase(getString(R.string.intestazionemageia))) {
          mainIntent = new Intent(getString(R.string.portalemageia));
        }
        // Aggiungere qui altri portali
        else
          mainIntent = new Intent(getString(R.string.portalefedora));

        startActivity(mainIntent);
        finish();

      }
    }, SPLASH_DISPLAY_LENGHT);
  }

}




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