Browse Source

Add the vlc-android Java project.

0.1.x-bugfix
Adrien Maglo 16 years ago
parent
commit
68e353ba6e
  1. 7
      vlc-android/.classpath
  2. 33
      vlc-android/.project
  3. 18
      vlc-android/AndroidManifest.xml
  4. 11
      vlc-android/default.properties
  5. BIN
      vlc-android/res/drawable/icon.png
  6. 12
      vlc-android/res/layout/main.xml
  7. 5
      vlc-android/res/values/strings.xml
  8. 31
      vlc-android/src/vlc/android/vlc.java

7
vlc-android/.classpath

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin"/>
</classpath>

33
vlc-android/.project

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>vlc-android</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

18
vlc-android/AndroidManifest.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="vlc.android"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".vlc"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

11
vlc-android/default.properties

@ -0,0 +1,11 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-8

BIN
vlc-android/res/drawable/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

12
vlc-android/res/layout/main.xml

@ -0,0 +1,12 @@
<?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
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>

5
vlc-android/res/values/strings.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, vlc!</string>
<string name="app_name">vlc-android</string>
</resources>

31
vlc-android/src/vlc/android/vlc.java

@ -0,0 +1,31 @@
package vlc.android;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import java.lang.*;
public class vlc extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
try
{
System.loadLibrary("vlccore");
System.loadLibrary("vlc");
tv.setText("Yes, we have successfully loaded libVLC!");
}
catch (UnsatisfiedLinkError e)
{
tv.setText("Couldn't load libVLC. :-(");
}
setContentView(tv);
}
}
Loading…
Cancel
Save