Code example for SeekBar

Methods: getId

0
         
	} 
	 
	//Change the viewable start or end time via the progress bar 
	public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { 
        if(seekBar.getId() == mSeekBar.getId()){
        	start_position = progress;
        }else if (seekBar.getId() == mSeekBar2.getId()){
        	end_position = progress;
        } 
    } 
 
	// Return selected data from file browser 
	@Override 
    public void onActivityResult(int requestCode,int resultCode,Intent data) 
    { 
		super.onActivityResult(requestCode, resultCode, data);
		if(data != null){
			String file = data.getStringExtra("file"); //Find selected file
			EditText file_Path = (EditText) findViewById(R.id.file_Path);
			String file_Name = file.substring(file.lastIndexOf("/")+1);