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; /* 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); } }