Skip to content

Commit ddfcd72

Browse files
committed
Recreated "Android Streaming Mp3 Player"
The Android Streaming Mp3 Player was recreated according to Blog post http://www.hrupin.com/2011/02/example-of-streaming-mp3-mediafile-with-android-mediaplayer-class
1 parent bf05234 commit ddfcd72

File tree

16 files changed

+199
-394
lines changed

16 files changed

+199
-394
lines changed

android/Mp3_Player/.classpath

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
<classpathentry kind="src" path="src"/>
44
<classpathentry kind="src" path="gen"/>
55
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6-
<classpathentry kind="output" path="bin"/>
6+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
8+
<classpathentry kind="output" path="bin/classes"/>
79
</classpath>

android/Mp3_Player/project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-8

android/Streaming_Audio_Player/AndroidManifest.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hrupin.edu.androidEx2" android:versionCode="1" android:versionName="0.0.1-SNAPSHOT">
3-
<uses-permission android:name="android.permission.INTERNET" />
4-
<uses-permission android:name="android.permission.CAMERA" />
5-
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hrupin.streamingmedia" android:versionCode="1" android:versionName="0.0.1-SNAPSHOT">
3+
<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.VIBRATE" />
64
<application android:icon="@drawable/icon" android:label="@string/app_name">
7-
<uses-library android:name="com.google.android.maps" android:required="true"></uses-library>
8-
<activity android:name=".HelloAndroidActivity">
5+
<activity android:name="StreamingMp3Player" android:label="@string/app_name">
96
<intent-filter>
10-
<action android:name="android.intent.action.MAIN" />
11-
<category android:name="android.intent.category.LAUNCHER" />
7+
<action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER" />
8+
129
</intent-filter>
1310
</activity>
14-
15-
<activity android:name=".video.VideoSample" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar"></activity>
1611
</application>
1712

1813
</manifest>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=Google Inc.:Google APIs:10

android/Streaming_Audio_Player/res/anim/disapearing.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.
1.45 KB
Loading
1.53 KB
Loading
Binary file not shown.

android/Streaming_Audio_Player/res/layout/main.xml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent"
3-
android:layout_height="fill_parent">
4-
<Button android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/buttonVideoSample" android:text="Video Sample"></Button>
5-
</LinearLayout>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout
3+
android:id="@+id/widget31"
4+
android:layout_width="fill_parent"
5+
android:layout_height="fill_parent"
6+
xmlns:android="http://schemas.android.com/apk/res/android">
7+
8+
<EditText
9+
android:id="@+id/EditTextSongURL"
10+
android:layout_width="wrap_content"
11+
android:layout_height="wrap_content"
12+
android:layout_alignParentLeft="true"
13+
android:layout_alignParentRight="true"
14+
android:layout_alignParentTop="true"
15+
android:ems="10"
16+
android:height="100dp"
17+
android:lines="3"
18+
android:maxLines="3"
19+
android:minLines="1" >
20+
21+
<requestFocus />
22+
<requestFocus />
23+
24+
</EditText>
25+
26+
<ImageButton
27+
android:id="@+id/ButtonTestPlayPause"
28+
android:layout_width="match_parent"
29+
android:layout_height="wrap_content"
30+
android:layout_below="@+id/EditTextSongURL"
31+
android:layout_centerHorizontal="true"
32+
android:contentDescription="TestPlayPause"
33+
android:onClick="onClick"
34+
android:src="@drawable/button_play" />
35+
36+
<SeekBar
37+
android:id="@+id/SeekBarTestPlay"
38+
android:layout_width="fill_parent"
39+
android:layout_height="wrap_content"
40+
android:layout_alignParentLeft="true"
41+
android:layout_below="@+id/ButtonTestPlayPause" />
42+
43+
</RelativeLayout>

android/Streaming_Audio_Player/res/layout/videosample.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)