Android Open Source - podplayer Main Activity






From Project

Back to project page podplayer.

License

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.

Java Source Code

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




Java Source Code List

com.mamewo.podplayer0.BasePodplayerActivity.java
com.mamewo.podplayer0.MainActivity.java
com.mamewo.podplayer0.PlayerService.java
com.mamewo.podplayer0.PodcastListPreference.java
com.mamewo.podplayer0.PodplayerActivity.java
com.mamewo.podplayer0.PodplayerExpActivity.java
com.mamewo.podplayer0.PodplayerPreference.java
com.mamewo.podplayer0.ScorePreference.java