Back to project page podplayer.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project podplayer 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 com.mamewo.podplayer0; // w w w .jav a 2 s .c o m import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Resources; import android.os.Bundle; import android.preference.PreferenceManager; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstance) { super.onCreate(savedInstance); SharedPreferences pref= PreferenceManager.getDefaultSharedPreferences(this); Resources res = getResources(); boolean useExpandableList = pref.getBoolean("use_expandable_ui", res.getBoolean(R.bool.default_use_expandable_ui)); Class<?> targetClass; if (useExpandableList) { targetClass = PodplayerExpActivity.class; } else { targetClass = PodplayerActivity.class; } Intent intent = new Intent(this, targetClass); startActivity(intent); finish(); } }