Index: ../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java =================================================================== --- ../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java (revision 14199) +++ ../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java (revision 14200) @@ -16,6 +16,7 @@ import android.widget.EditText; import android.widget.FrameLayout; import android.widget.SeekBar; +import android.widget.SeekBar.OnSeekBarChangeListener; import android.widget.TextView; import android.widget.Toast; @@ -34,7 +35,7 @@ private SeekBar bar; private TextView /*txtStatus,*/ txtValue; private ColorMap colorMap; - + private int alpha; @Override //------------------------------------------------------------------------------------------------ @@ -54,6 +55,26 @@ Button button = (Button) super.findViewById(R.id.button1); frame = (FrameLayout)findViewById(R.id.frame); button.setOnClickListener(this); + bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() + { + public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) + { + alpha = progress; + } + + @Override + public void onStartTrackingTouch(SeekBar seekBar) { + // TODO Auto-generated method stub + + } + + @Override + public void onStopTrackingTouch(SeekBar seekBar) { + // TODO Auto-generated method stub + + } + }); + //load up the ISSM library and create double buffer in java //which later on will be pass for native allocation. @@ -78,7 +99,6 @@ //------------------------------------------------------------------------------------------------ public void fillBuffer() { - double alpha=5; issmNative.solveISSMModel(alpha,buff); } //------------------------------------------------------------------------------------------------