Code example for Fragment

import com.newsblur.util.PrefsUtils; 
import com.newsblur.util.UIUtils; 
public class LoginProgressFragment extends Fragment {
	private APIManager apiManager;
	private TextView updateStatus, retrievingFeeds;
	private ImageView loginProfilePicture;
	private ProgressBar feedProgress, loggingInProgress;
	private LoginTask loginTask;
	private String username;
	private String password;
	public static LoginProgressFragment getInstance(String username, String password) {
		LoginProgressFragment fragment = new LoginProgressFragment();
		Bundle bundle = new Bundle();
		bundle.putString("username", username);
		bundle.putString("password", password);
Connect your IDE to all the code out there  Get Codota for Java