com.github.kubatatami.judonetworking.observers.ObserverFragment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of judonetworking-observers Show documentation
Show all versions of judonetworking-observers Show documentation
Easy way of communicating to your servers.
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);
observerHelper = new ObserverHelper(activity);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
observerHelper.start(this, view);
}
@Override
public void onDestroyView() {
observerHelper.stop();
super.onDestroyView();
}
}