File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
src/com/oreilly/demo/android/pa/audioplayer Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 3
3
package =" com.oreilly.demo.android.pa.audioplayer"
4
4
android : versionCode =" 1"
5
5
android : versionName =" 1.0" >
6
+
7
+ <uses-permission android : name =" android.permission.RECORD_AUDIO" />
8
+ <uses-permission android : name =" android.permission.RECORD_VIDEO" />
9
+ <uses-permission android : name =" android.permission.INTERNET" />
10
+ <uses-permission android : name =" android.permission.CAMERA" />
11
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
12
+ <uses-sdk android : targetSdkVersion =" 14" ></uses-sdk >
13
+
6
14
<application android : icon =" @drawable/icon" android : label =" @string/app_name" >
7
15
<activity android : name =" .MultiMedia"
8
16
android : label =" @string/app_name" >
19
27
<activity android : name =" .AudioRecorderViaIntent" android : label =" Audio Recorder By Intent" />
20
28
<activity android : name =" .VideoRecorder" android : label =" Video Recorder" />
21
29
<activity android : name =" .AudioRecorder" android : label =" Audio Recorder" />
22
- <activity android : name =" com.oreilly.demo.android.pa.audioplayer .AudioRecorderWAudioRecord" android : label =" Audio Recorder W AudioRecord" />
30
+ <activity android : name =" .AudioRecorderWAudioRecord" android : label =" Audio Recorder W AudioRecord" />
23
31
</application >
24
-
25
- <uses-permission android : name =" android.permission.RECORD_AUDIO" />
26
- <uses-permission android : name =" android.permission.RECORD_VIDEO" />
27
- <uses-permission android : name =" android.permission.INTERNET" />
28
- <uses-permission android : name =" android.permission.CAMERA" />
29
- <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
30
- <uses-sdk android : targetSdkVersion =" 14" ></uses-sdk >
31
32
32
33
</manifest >
Original file line number Diff line number Diff line change 8
8
# project structure.
9
9
10
10
# Project target.
11
- target =android-14
11
+ target =android-15
Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ private void playPlayer(int previousState) {
203
203
}
204
204
205
205
private void stopPlayer () {
206
- mediaplayer .stop ();
207
- mediaplayer .reset ();
206
+ try { mediaplayer .stop (); } catch ( Throwable t ) {}
207
+ try { mediaplayer .reset (); } catch ( Throwable t ) {}
208
208
initializeMediaPlayer ();
209
209
}
210
210
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<classpath >
3
3
<classpathentry kind =" src" path =" src" />
4
- <classpathentry kind =" src" path =" gen" />
5
4
<classpathentry kind =" con" path =" com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" />
5
+ <classpathentry kind =" src" path =" gen" />
6
6
<classpathentry kind =" output" path =" bin/classes" />
7
7
</classpath >
You can’t perform that action at this time.
0 commit comments