Cómo mostrar un spinner de progreso en Android, cuando se ejecuta doInBackground ()

Esta es mi clase de actividad en la que uso AsyncTask para obtener datos de un servidor:

public class UserProfileActivity extends Activity {

    private ImageView userImage;
    private TextView userName;
    private TextView userLocation;
    private TextView editInfo;
    private TextView chnageImage;
    private TextView userScore;
    private ListView friendsList;
    public ArrayAdapter<String> adapter;
    public int score;
    public int level;
    public String image;
    public String fname;
    public String lname;
    public String city;
    public int id;
    public String email;
    protected Activity activity = this;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.user_profile);

        userImage = (ImageView) findViewById(R.id.profileImage);
        userName = (TextView) findViewById(R.id.userName_profile);
        userLocation = (TextView) findViewById(R.id.userLocation_profile);
        editInfo = (TextView) findViewById(R.id.edit_profile);
        chnageImage = (TextView) findViewById(R.id.changeImage_profile);
        userScore = (TextView) findViewById(R.id.userScore_profile);
        friendsList = (ListView) findViewById(R.id.friendsList);

        new LongOperation().execute("");

    }

    private class LongOperation extends AsyncTask<String, Void, String> {

        private InputStream is;
        private StringBuilder sb;
        private String result;

        @Override
        protected String doInBackground(String... params) {

            try {
                HttpPost httppost = new HttpPost(
                        "http://www.xxxxxxxxx.com/mobile/getProfileInfo");
                HttpResponse response = SignUpActivity.httpclient
                        .execute(httppost);
                HttpEntity entity = response.getEntity();
                is = entity.getContent();

                try {
                    BufferedReader reader = new BufferedReader(
                            new InputStreamReader(is, "iso-8859-1"), 8);
                    sb = new StringBuilder();
                    sb.append(reader.readLine() + "\n");
                    String line = "0";
                    while ((line = reader.readLine()) != null) {
                        sb.append(line + "\n");
                    }
                    is.close();
                    result = sb.toString();
                } catch (Exception e) {
                }
                try {
                    JSONObject jObj = new JSONObject(result);
                    String status = jObj.getString("status");
                    score = jObj.getInt("credits");
                    level = jObj.getInt("level");
                    image = jObj.getString("image");
                    fname = jObj.getString("fname");
                    lname = jObj.getString("lname");
                    city = jObj.getString("city");
                    id = jObj.getInt("user_id");
                    email = jObj.getString("email");

                    JSONArray friendsJsonArray = jObj.getJSONArray("friends");
                    int size = friendsJsonArray.length();

                    ArrayList<String> friendsNames = new ArrayList<String>();
                    String[] friendsIds = new String[size];
                    for (int i = 0; i < size; i++) {

                        friendsNames.add(friendsJsonArray.getJSONObject(i)
                                .getString("name"));
                    }
                    adapter = new ArrayAdapter<String>(getApplicationContext(),
                            R.layout.simple_listview_item, friendsNames);

                } catch (Exception e) {
                }
            } catch (Exception e) {
            }

            return "Executed";
        }

        @Override
        protected void onPostExecute(String result) {

            friendsList.setAdapter(adapter);
            userScore.setText(score + " points" + "   level " + level);
            userName.setText(fname + "  " + lname);
            userLocation.setText(city);
            Bitmap bitmap = null;
            try {
                bitmap = BitmapFactory
                        .decodeStream((InputStream) new URL(image).getContent());
            } catch (MalformedURLException e1) {

                e1.printStackTrace();
            } catch (IOException e2) {

                e2.printStackTrace();
            }
            userImage.setImageBitmap(bitmap);

        }

        @Override
        protected void onPreExecute() {
        }

        @Override
        protected void onProgressUpdate(Void... values) {
        }
    }
}

cuando se carga esta actividad, muestra todos los valores e imágenes predeterminados y, luego, cambia cuando se compite con la ejecución del código de fondo (como excepción), pero esto toma de 2 a 3 segundos para que el usuario vea los valores predeterminados, que no quiero. Entonces, ¿cómo puedo mantener una rueda giratoria como esta:

durante 2-3 segundos y luego, cuando la rueda giratoria desaparece, la actividad debe mostrar los valores reales.

Gracias

Respuestas a la pregunta(3)

Su respuesta a la pregunta