title: Seek bar progress when button pressed
body: <p>I have made a simple android project with a single activity containing three buttons and a seek bar,Now i want is that when i press 1st button the seek bar should directly progressed 33%(without showing progress),when 2nd button pressed the seek bar should progressed again by 33% second time and when third button pressed the seek bar should full progressed..my code is as below:</p>
  
  <p><strong>Main.java</strong></p>
  
  <pre><code>package com.example.seekabardemo;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  import android.widget.SeekBar;
  
  public class MainActivity extends Activity {
  Button btn,btn1,btn2;
  SeekBar sk;
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
        btn=(Button)findViewById(R.id.button1);
        btn1=(Button)findViewById(R.id.button2);
        btn2=(Button)findViewById(R.id.button3);
        sk=(SeekBar)findViewById(R.id.seekBar1);
        btn.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
  
  
          }
      });
        btn1.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
  
          }
      });
        btn2.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
  
          }
      });
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.activity_main, menu);
          return true;
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/KTD7i.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/Tlcy7.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/xsjhU.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/Optqa.png" alt="enter image description here"></p>
  
  <p>Thank you....Please help me..!</p>
  
  <p>Please help me ..thank you..!</p>