File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 12
12
<activity
13
13
android : configChanges =" orientation|keyboard|keyboardHidden"
14
14
android : label =" @string/app_name"
15
- android : name =" .VisualizerActivity "
15
+ android : name =" com.pheelicks.app.MainActivity "
16
16
android : screenOrientation =" portrait" >
17
17
<intent-filter >
18
18
<action android : name =" android.intent.action.MAIN" />
21
21
</intent-filter >
22
22
</activity >
23
23
</application >
24
-
24
+
25
25
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
26
26
27
27
</manifest >
Original file line number Diff line number Diff line change 1
- package com .pheelicks .visualizer ;
1
+ package com .pheelicks .app ;
2
2
3
3
import android .app .Activity ;
4
4
import android .media .MediaPlayer ;
5
5
import android .media .audiofx .Visualizer ;
6
6
import android .os .Bundle ;
7
7
import android .view .View ;
8
8
9
- public class VisualizerActivity extends Activity {
9
+ import com .pheelicks .visualizer .R ;
10
+ import com .pheelicks .visualizer .VisualizerView ;
11
+
12
+ public class MainActivity extends Activity {
10
13
private MediaPlayer mPlayer ;
11
14
private Visualizer mVisualizer ;
12
15
Original file line number Diff line number Diff line change 24
24
* A class that draws visualizations of data received from a
25
25
* {@link Visualizer.OnDataCaptureListener#onWaveFormDataCapture }
26
26
*/
27
- class VisualizerView extends View {
27
+ public class VisualizerView extends View {
28
28
private static final String TAG = "VisualizerView" ;
29
29
30
30
private byte [] mBytes ;
You can’t perform that action at this time.
0 commit comments