package net.bradmont.openmpd.activities; import android.app.ActionBar; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.TransitionDrawable; import android.os.Bundle; import android.view.Window; import android.view.View; import android.view.ViewGroup; import android.widget.*; import android.support.v7.app.ActionBarActivity; import android.support.v4.app.DialogFragment; import net.bradmont.openmpd.helpers.Log; import net.bradmont.openmpd.fragments.*; import net.bradmont.openmpd.models.*; import net.bradmont.openmpd.R; public class DebugActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.container_debug); //DebugFragment debugFragment = (DebugFragment) getSupportFragmentManager().findFragmentById(R.id.debug_fragment); } public void onClick(View v){ ((DebugFragment) getSupportFragmentManager().findFragmentById(R.id.debug_fragment)) .onClick(v); } private void toast(int message){ Toast.makeText(this, message, Toast.LENGTH_SHORT) .show(); } }