Skip to content

Commit

Permalink
오류 원인은 commons-codec-1.3.jar파일이 Build Path에 없었기 때문에
Browse files Browse the repository at this point in the history
그 파일에 해당하는 클래스에서 import를 시키지 못했다.
따라서 디버그 방법으로써, MainActivity 폴더에 alt+enter(우클릭->Properties)
한 후, Java Build Path에서 Libraries에 lib 폴더 안에 있는
commons-codec-1.3.jar파일을 Add JARs 시킨 후 적용함으로써 이 오류를 해결할 수 있었다.

Signed-off-by: Jinwoo Nam <jwstyle12@nate.com>
  • Loading branch information
jwstyle committed May 30, 2011
1 parent c2a813d commit 3cf595b
Show file tree
Hide file tree
Showing 157 changed files with 20,957 additions and 0 deletions.
12 changes: 12 additions & 0 deletions android-dlna/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,12 @@
#Sat May 28 20:30:33 KST 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
42 changes: 42 additions & 0 deletions android-dlna/AndroidManifest.xml
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dlna.player"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".activities.MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activities.NetworkActivity" android:label="@string/network"></activity>
<activity android:name=".activities.ContentActivity" android:label="@string/content"></activity>
<activity android:name=".activities.PlaylistActivity" android:label="@string/settings"></activity>
<activity android:name=".activities.AudioPlayerActivity" android:label="@string/audioplayer"></activity>
<activity android:name=".activities.PictureViewerActivity" android:label="@string/pictureviewer"></activity>

<service android:name=".services.DlnaService" android:enabled="true">
<intent-filter>
<action android:name="dlna.player.SEARCH_DEVICES" />
<action android:name="dlna.player.GET_ITEM_LIST" />
<action android:name="dlna.player.BIND_SERVICE" />
<action android:name="dlna.player.RESET_STACK" />
</intent-filter>
</service>

<service android:name=".services.MediaPlayerService" android:enabled="true">
<intent-filter>
<action android:name="dlna.player.START_PLAYBACK" />
<action android:name="dlna.player.STOP_PLAYBACK" />
</intent-filter>
</service>

</application>

<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>

</manifest>
Binary file added android-dlna/lib/commons-codec-1.3.jar
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable-hdpi/ic_menu_goto.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable-hdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable-hdpi/icon48x48_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable-ldpi/Thumbs.db
Binary file not shown.
Binary file added android-dlna/res/drawable-ldpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable-mdpi/Thumbs.db
Binary file not shown.
Binary file added android-dlna/res/drawable-mdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable/Thumbs.db
Binary file not shown.
Binary file added android-dlna/res/drawable/default_cover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable/plus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable/quaver.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable/rmb_widescreen.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-dlna/res/drawable/x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions android-dlna/res/layout/album_item.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/ImageView01" android:src="@drawable/ic_menu_archive"
android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:padding="12dp"
android:textSize="16sp">
</TextView>
</LinearLayout>
53 changes: 53 additions & 0 deletions android-dlna/res/layout/audio_item.xml
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_gravity="right"
android:layout_width="fill_parent" android:layout_height="wrap_content">

<RelativeLayout android:id="@+id/RelativeLayout02"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="left">
<ImageView android:src="@android:drawable/ic_btn_speak_now"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_alignParentLeft="true"></ImageView>
</RelativeLayout>

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:padding="8dp"
android:textSize="16sp" android:layout_weight="20">
</TextView>

<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/addToPlaylist"
android:src="@android:drawable/ic_menu_add" android:layout_weight="1"
android:layout_gravity="right"></ImageView>
</RelativeLayout>

</LinearLayout>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_gravity="right"
android:layout_width="wrap_content" android:layout_height="wrap_content">

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/artist" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:paddingRight="8dp"
android:paddingTop="4dp" android:textSize="12sp"
android:layout_gravity="right">
</TextView>

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/album" android:layout_height="wrap_content"
android:paddingRight="8dp" android:paddingBottom="8dp"
android:textSize="12sp" android:layout_gravity="right"
android:layout_width="wrap_content">
</TextView>

</LinearLayout>
</LinearLayout>
12 changes: 12 additions & 0 deletions android-dlna/res/layout/container_item.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/ImageView01" android:src="@drawable/ic_menu_archive"
android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:padding="12dp"
android:textSize="16sp">
</TextView>
</LinearLayout>
13 changes: 13 additions & 0 deletions android-dlna/res/layout/content.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ListView android:id="@android:id/list" android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ListView>

<ImageView android:id="@+id/ImageView01" android:src="@drawable/ic_menu_archive"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAlignBottom="true"></ImageView>

</LinearLayout>
9 changes: 9 additions & 0 deletions android-dlna/res/layout/cover_list_item.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>

<ImageView android:src="@drawable/eagles_hotel_california" android:id="@+id/coverIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center"></ImageView>
</FrameLayout>
13 changes: 13 additions & 0 deletions android-dlna/res/layout/device_list_item.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView android:id="@+id/deviceIcon"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center"></ImageView>
<TextView android:text="MediaTomb" android:id="@+id/deviceName"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:padding="12dp"></TextView>

</LinearLayout>
14 changes: 14 additions & 0 deletions android-dlna/res/layout/list_item.xml
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="16sp" >
</TextView>
</LinearLayout>
Empty file.
21 changes: 21 additions & 0 deletions android-dlna/res/layout/main.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</LinearLayout>
</TabHost>
17 changes: 17 additions & 0 deletions android-dlna/res/layout/network.xml
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ListView android:id="@+id/selectedDeviceList" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="@android:drawable/dialog_frame">

</ListView>

<ImageButton android:src="@android:drawable/ic_popup_sync" android:layout_gravity="center_horizontal" android:id="@+id/searchButton" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageButton>

<ListView android:id="@+id/deviceList" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@android:drawable/dialog_frame"></ListView>


</LinearLayout>
12 changes: 12 additions & 0 deletions android-dlna/res/layout/picture_item.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/ImageView01" android:src="@android:drawable/ic_menu_gallery"
android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:padding="12dp"
android:textSize="16sp">
</TextView>
</LinearLayout>
19 changes: 19 additions & 0 deletions android-dlna/res/layout/pictureviewer.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout01" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">

<Gallery android:id="@+id/Gallery01" android:layout_width="fill_parent"
android:layout_height="wrap_content"></Gallery>



<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_height="fill_parent" android:layout_width="fill_parent">
<ImageView android:id="@+id/ImageView01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:scaleType="fitCenter" android:layout_centerInParent="true"></ImageView>
</RelativeLayout>

</LinearLayout>
78 changes: 78 additions & 0 deletions android-dlna/res/layout/player.xml
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_height="fill_parent"
android:layout_width="fill_parent">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title" android:padding="8dp" android:textSize="16sp" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_gravity="center">
</TextView>
<LinearLayout android:id="@+id/LinearLayout03"
android:layout_height="wrap_content" android:orientation="horizontal"
android:layout_gravity="center" android:layout_width="wrap_content">
<TextView android:id="@+id/track"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<TextView android:id="@+id/TextView01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="/"></TextView>
<TextView android:id="@+id/playlistsize"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>

</LinearLayout>

<Gallery android:id="@+id/Gallery01" android:layout_width="fill_parent"
android:alwaysDrawnWithCache="true" android:layout_gravity="center"
android:clipChildren="false" android:layout_height="250dp"></Gallery>


<TableLayout android:id="@+id/TableLayout01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:stretchColumns="1">
<TableRow android:id="@+id/TableRow01" android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:text="@string/position" android:id="@+id/position"
android:padding="10dip" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<SeekBar android:id="@+id/SeekBar01" android:padding="10dip"
android:layout_height="wrap_content" android:layout_width="wrap_content"></SeekBar>
<TextView android:id="@+id/duration" android:text="@string/position"
android:padding="10dip" android:layout_height="wrap_content"
android:layout_width="wrap_content"></TextView>
</TableRow>
</TableLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_gravity="center">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/artist" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:paddingRight="8dp"
android:paddingTop="4dp" android:textSize="12sp" android:layout_gravity="center">
</TextView>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/album" android:layout_height="wrap_content"
android:paddingRight="8dp" android:paddingBottom="8dp"
android:textSize="12sp" android:layout_width="wrap_content"
android:layout_gravity="center">
</TextView>
</LinearLayout>

<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" android:paddingBottom="20dp">




<ImageButton android:src="@android:drawable/ic_media_play"
android:layout_centerHorizontal="true" android:layout_height="wrap_content"
android:id="@+id/playButton" android:layout_width="wrap_content"></ImageButton>


</LinearLayout>
</RelativeLayout>

</LinearLayout>
4 changes: 4 additions & 0 deletions android-dlna/res/layout/player_shortcut.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/ic_menu_goto" android:layout_width="wrap_content"
android:layout_height="wrap_content"></ImageView>
21 changes: 21 additions & 0 deletions android-dlna/res/layout/video_item.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="16sp" >
</TextView>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/artist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="16sp" >
</TextView>
</LinearLayout>
19 changes: 19 additions & 0 deletions android-dlna/res/values/strings.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Dlna Player</string>
<string name="network">Network</string>
<string name="content">Content</string>
<string name="settings">Settings</string>
<string name="search">Search</string>
<string name="devices">Devices</string>
<string name="title">Voi kuinka me sinua kaivataan</string>
<string name="album">Inari</string>
<string name="artist">Vesa-Matti Loiri</string>
<string name="play">Play</string>
<string name="stop">Stop</string>
<string name="position">00:00</string>
<string name="track">1</string>
<string name="playlistsize">10</string>
<string name="audioplayer">Audio Player</string>
<string name="pictureviewer">Picture Viewer</string>
</resources>

0 comments on commit 3cf595b

Please sign in to comment.