Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.kubatatami.judonetworking.observers;
 
 import  android.app.Activity;
 import  android.app.Fragment;
 import  android.os.Bundle;
 import  android.view.View;

Created with IntelliJ IDEA. User: jbogacki Date: 27.02.2013 Time: 16:39
class ObserverFragment extends Fragment {
    private ObserverHelper observerHelper;
    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
         = new ObserverHelper(activity);
    }
    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(viewsavedInstanceState);
        .start(thisview);
    }
    @Override
    public void onDestroyView() {
        .stop();
        super.onDestroyView();
    }
New to GrepCode? Check out our FAQ X