Changeset 34ba659 in orbit for android/src
- Timestamp:
- 03/04/13 11:52:33 (9 years ago)
- Branches:
- master, RawEEG, Raw_EEG_Plot, Servo, Tab_Interface, pyramid
- Children:
- 8e8266b
- Parents:
- a763394
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
android/src/info/puzzlebox/orbit/OrbitActivity.java
rcb6dab1 r34ba659 58 58 59 59 60 public class MainActivity extends Activity implements SeekBar.OnSeekBarChangeListener {60 public class OrbitActivity extends Activity implements SeekBar.OnSeekBarChangeListener { 61 61 62 62 /** … … 79 79 // boolean DEBUG = true; 80 80 boolean DEBUG = false; 81 String TAG = " MainActivity";81 String TAG = "OrbitActivity"; 82 82 83 83 … … 89 89 */ 90 90 int audioFile = R.raw.throttle_hover_android_common; 91 // int audioFile = R.raw.throttle_50_android_common;91 // int audioFile = R.raw.throttle_50_android_common; 92 92 // int audioFile = R.raw.throttle_hover_android_htc_one_x; 93 // String audioFilePath = "file:///sdcard/Music/Throttle/throttle_30_android_common.wav";93 // String audioFilePath = "file:///sdcard/Music/Throttle/throttle_30_android_common.wav"; 94 94 95 95 private SoundPool soundPool; … … 210 210 progressBarSignal.setProgress(tgSignal); 211 211 212 progressBarPower = (ProgressBar)findViewById(R.id.progressBarPower);213 ShapeDrawable progressBarPowerDrawable = new ShapeDrawable(new RoundRectShape(roundedCorners, null,null));214 String progressBarPowerColor = "#FFFF00";215 progressBarPowerDrawable.getPaint().setColor(Color.parseColor(progressBarPowerColor));216 ClipDrawable progressPower = new ClipDrawable(progressBarPowerDrawable, Gravity.LEFT, ClipDrawable.HORIZONTAL);217 progressBarPower.setProgressDrawable(progressPower);218 progressBarPower.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.progress_horizontal));212 // progressBarPower = (ProgressBar)findViewById(R.id.progressBarPower); 213 // ShapeDrawable progressBarPowerDrawable = new ShapeDrawable(new RoundRectShape(roundedCorners, null,null)); 214 // String progressBarPowerColor = "#FFFF00"; 215 // progressBarPowerDrawable.getPaint().setColor(Color.parseColor(progressBarPowerColor)); 216 // ClipDrawable progressPower = new ClipDrawable(progressBarPowerDrawable, Gravity.LEFT, ClipDrawable.HORIZONTAL); 217 // progressBarPower.setProgressDrawable(progressPower); 218 // progressBarPower.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.progress_horizontal)); 219 219 220 220 seekBarAttention = (SeekBar)findViewById(R.id.seekBarAttention); … … 250 250 }); 251 251 soundID = soundPool.load(this, audioFile, 1); 252 253 // soundPool.load(audioFilePath, 1);252 253 // soundPool.load(audioFilePath, 1); 254 254 255 255 // genTone(); … … 750 750 int new_speed = calculateSpeed(); 751 751 String command = ""; 752 progressBarPower.setProgress(new_speed);752 // progressBarPower.setProgress(new_speed); 753 753 754 754 if (new_speed > 0) {
Note: See TracChangeset
for help on using the changeset viewer.