Back to project page EnklawaPlayer.
The source code is released under:
GNU General Public License
If you think the Android project EnklawaPlayer 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 macbury.pod.activities; // w w w. ja v a 2 s. c o m import android.os.Build; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.negusoft.holoaccent.activity.AccentActivity; import com.readystatesoftware.systembartint.SystemBarTintManager; import macbury.pod.R; import macbury.pod.managers.App; public class DonateActivity extends AccentActivity implements View.OnClickListener { private final static String DONTAE_PAGE_URL = "http://macbury.ninja/donate/bitcoin"; private static final String GITHUB_PAGE_URL = "https://github.com/macbury/EnklawaPlayer"; private Button donationButton; private Button githubButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_donate); SystemBarTintManager tintManager = new SystemBarTintManager(this); tintManager.setStatusBarTintEnabled(true); tintManager.setStatusBarTintResource(R.color.statusbar_color); View mainContainer = findViewById(R.id.main_container); SystemBarTintManager.SystemBarConfig config = tintManager.getConfig(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { mainContainer.setPadding(0, config.getPixelInsetTop(true), config.getPixelInsetRight(), config.getPixelInsetBottom()); } donationButton = (Button) findViewById(R.id.button_donate); githubButton = (Button) findViewById(R.id.button_github); donationButton.setOnClickListener(this); githubButton.setOnClickListener(this); } @Override public void onClick(View v) { if (v == donationButton) { startActivity(App.current().intents.openURL(DONTAE_PAGE_URL)); } else { startActivity(App.current().intents.openURL(GITHUB_PAGE_URL)); } } }