Android Studio: UPnP DLNA
Jump to navigation
Jump to search
Sumber: https://github.com/KernelCrap/android-dlna
SlickDLNA for Android 4.0+
SlickDLNA is a free, simple and easy to use client for browsing UPnP and DLNA media servers and it will enable you to stream media to your device. It focuses on delivering a simple and lightweight experience.
Download
Available at the Google Play Store https://play.google.com/store/apps/details?id=com.cajor.dk.dlna
Requirements
- Android 4.0+
- Cling 2.0-alpha3 (Java/Android UPnP library and tools) (terakhir 2.1.0-SNAPSHOT)
- Jetty 8.1.12 (Servlet Engine and Http Server)
- UrlImageViewHelper (Android library that sets an ImageView's contents from a url)
I have included a build.gradle file for easy dependency management in Android Studio. You will receive an error though when building, since most of the libraries for Jetty includes an about.html file that needs to be deleted from the .jar files.
The .jar files will be in sub folders in the .gradle folder (on Windows: C:\Users\<Username>\.gradle).
Icons
- Elementary icons
- Oxygen icons
License
- Apache Software License 2.0
- Each of the components have their own license
Cara Instalasi
mkdir /root/AndroidStudioProjects/dlna cp android-dlna-master.zip /root/AndroidStudioProjects/dlna/ cd /root/AndroidStudioProjects/dlna/
- Jalankan Android Studio
- Set minimum SDK 14
unzip android-dlna-master.zip
Copy
cp -Rf /home/onno/temp/android-dlna-master/src/main/res/* /root/AndroidStudioProjects/Android-dlna/app/src/main/res/
Edit
- build.gradle (Android-dlna)
- build.gradle (Module: app)
- AndroidManifest.xml
- MainActivity.java
- res/layout/activity_main.xml