Skip to content

Commit 0d984bf

Browse files
author
Paul Ruiz
committed
Added Android TV Media Project
1 parent c38814b commit 0d984bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2030
-0
lines changed

AndroidTVMediaPlayer/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.gradle
2+
/local.properties
3+
/.idea/workspace.xml
4+
.DS_Store
5+
/build

AndroidTVMediaPlayer/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

AndroidTVMediaPlayer/app/build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'com.android.application'
2+
3+
4+
android {
5+
compileSdkVersion 'android-L'
6+
buildToolsVersion "20.0.0"
7+
8+
defaultConfig {
9+
applicationId "com.ptrprograms.androidtvmediaplayer"
10+
minSdkVersion 'L'
11+
targetSdkVersion 'L'
12+
versionCode 1
13+
versionName "1.0"
14+
}
15+
buildTypes {
16+
release {
17+
runProguard false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
}
22+
23+
dependencies {
24+
compile fileTree(dir: 'libs', include: ['*.jar'])
25+
compile 'com.android.support:recyclerview-v7:+'
26+
compile 'com.android.support:leanback-v17:+'
27+
compile 'com.android.support:appcompat-v7:+'
28+
compile 'com.squareup.picasso:picasso:2.3.2'
29+
compile 'com.google.code.gson:gson:2.2.4'
30+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/PaulTR/Documents/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.ptrprograms.androidtvmediaplayer;
2+
3+
import android.app.Application;
4+
import android.test.ApplicationTestCase;
5+
6+
/**
7+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
8+
*/
9+
public class ApplicationTest extends ApplicationTestCase<Application> {
10+
public ApplicationTest() {
11+
super(Application.class);
12+
}
13+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.ptrprograms.androidtvmediaplayer" >
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@drawable/ic_launcher"
8+
android:label="@string/app_name"
9+
android:theme="@style/AppTheme" >
10+
<activity
11+
android:name=".Activity.MainActivity"
12+
android:label="@string/app_name"
13+
android:logo="@drawable/giraffes"
14+
android:screenOrientation="landscape" >
15+
<intent-filter>
16+
<action android:name="android.intent.action.MAIN" />
17+
18+
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
19+
</intent-filter>
20+
</activity>
21+
<activity
22+
android:name=".Activity.PlayerActivity"
23+
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
24+
<activity android:name=".Activity.DetailsActivity" />
25+
26+
<activity
27+
android:name=".Bonus.SlothActivity"
28+
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
29+
30+
</application>
31+
32+
<uses-permission android:name="android.permission.INTERNET" />
33+
34+
<uses-feature
35+
android:name="android.hardware.touchscreen"
36+
android:required="false" />
37+
38+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.ptrprograms.androidtvmediaplayer.Activity;
2+
3+
import android.app.Activity;
4+
import android.os.Bundle;
5+
6+
import com.ptrprograms.androidtvmediaplayer.R;
7+
8+
public class DetailsActivity extends Activity
9+
{
10+
/** Called when the activity is first created. */
11+
@Override
12+
public void onCreate(Bundle savedInstanceState)
13+
{
14+
super.onCreate(savedInstanceState);
15+
setContentView(R.layout.activity_details);
16+
}
17+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.ptrprograms.androidtvmediaplayer.Activity;
2+
3+
import android.app.Activity;
4+
import android.os.Bundle;
5+
6+
import com.ptrprograms.androidtvmediaplayer.R;
7+
8+
public class MainActivity extends Activity {
9+
10+
@Override
11+
protected void onCreate(Bundle savedInstanceState) {
12+
super.onCreate(savedInstanceState);
13+
setContentView(R.layout.activity_main);
14+
}
15+
}

0 commit comments

Comments
 (0)