Code example for Fragment

import com.newsblur.activity.LoginProgress; 
import com.newsblur.activity.RegisterProgress; 
import com.newsblur.service.DetachableResultReceiver; 
public class LoginRegisterFragment extends Fragment implements OnClickListener {
	public APIManager apiManager;
	private EditText username, password;
	private ViewSwitcher viewSwitcher;
	DetachableResultReceiver receiver;
	private EditText register_username, register_password, register_email;
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		final View v = inflater.inflate(R.layout.fragment_loginregister, container, false);
		final Button loginButton = (Button) v.findViewById(;
Connect your IDE to all the code out there  Get Codota for Java