How i can use findViewById() in Android Studio? : 
--------------------------------Español-------------------------------------

Básicamente el problema es que, a la hora de querer usar el método de "FindViewById" o "GetSystemService" o demás no me deja.

Únicamente me deja utilizarlos en MainActivity, quería saber como puedo solucionar este problema.

Soy nuevo en android Studio y básicamente estoy aprendiendo


--------------------------------English-------------------------------------

Basically the problem is that, when you want to use the method "FindViewById" or "GetSystemService" or other does not let me.

He only lets me use them in MainActivity, I wanted to know how I can solve this problem.

I'm new to android Studio and I'm basically learning

# MainAtivity #
    public class SectionsPagerAdapter extends FragmentPagerAdapter {

        public SectionsPagerAdapter(FragmentManager fm) {
            super(fm);
        }

        @Override
        public Fragment getItem(int position) {
            switch (position){
                case 0:
                    tap1alarmas tap1 = new tap1alarmas();
                    return tap1;
                case 1:
                    tap2tips tap2 = new tap2tips();
                    return tap2;
                case 2:
                    tap3estadisticas tap3 = new tap3estadisticas();
                    return tap3;
                default:
                    return null;

            }
        }
# Fragment "Tap1alarmas" #

    import android.app.AlarmManager;
    import android.os.Bundle;
    import android.support.v4.app.Fragment;
    import android.support.v4.view.ViewPager;
    import android.support.v7.app.AppCompatActivity;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import android.widget.Button;
    import android.widget.TextView;
    import android.widget.TimePicker;

    import java.util.Calendar;


    public class tap1alarmas extends Fragment {


    AlarmManager alarm_manager;
    TimePicker alarm_timepicker;
    TextView update_text;
    tap1alarmas context;


    private MainActivity.SectionsPagerAdapter mSectionsPagerAdapter;

    private ViewPager mViewPager;
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    this.context = this;

    //Inicizaliar alarmmanager
    alarm_manager = (AlarmManager) getSystemService(ALARM_SERVICE);

    //Inicializar timepicker

    alarm_timepicker = (TimePicker) findViewById(R.id.TimePicker);

    //Text uptate`enter code here`

    update_text = (TextView) findViewById(R.id.update_text);
