File tree Expand file tree Collapse file tree 6 files changed +14
-15
lines changed
src/com/oreilly/demo/android/pa/audioplayer Expand file tree Collapse file tree 6 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 33 package =" com.oreilly.demo.android.pa.audioplayer"
44 android : versionCode =" 1"
55 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+
614 <application android : icon =" @drawable/icon" android : label =" @string/app_name" >
715 <activity android : name =" .MultiMedia"
816 android : label =" @string/app_name" >
1927 <activity android : name =" .AudioRecorderViaIntent" android : label =" Audio Recorder By Intent" />
2028 <activity android : name =" .VideoRecorder" android : label =" Video Recorder" />
2129 <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" />
2331 </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 >
3132
3233</manifest >
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ This example must be run on actual hardware (not an emulator)
22as this contains hardware specific code.
33
44
5- (This was tested on a Nexus One and Nexus S phones)
5+ (This was tested on a Nexus One, Nexus S, Galaxy Nexus phones)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88# project structure.
99
1010# 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) {
203203 }
204204
205205 private void stopPlayer () {
206- mediaplayer .stop ();
207- mediaplayer .reset ();
206+ try { mediaplayer .stop (); } catch ( Throwable t ) {}
207+ try { mediaplayer .reset (); } catch ( Throwable t ) {}
208208 initializeMediaPlayer ();
209209 }
210210
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<classpath >
33 <classpathentry kind =" src" path =" src" />
4- <classpathentry kind =" src" path =" gen" />
54 <classpathentry kind =" con" path =" com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" />
5+ <classpathentry kind =" src" path =" gen" />
66 <classpathentry kind =" output" path =" bin/classes" />
77</classpath >
You can’t perform that action at this time.
0 commit comments