Code example for Fragment

0
import com.newsblur.network.APIManager; 
import com.newsblur.network.domain.NewsBlurResponse; 
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);
		fragment.setArguments(bundle);