8 changed files with 117 additions and 0 deletions
@ -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> |
|||
@ -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> |
|||
@ -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> |
|||
@ -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 |
|||
|
After Width: | Height: | Size: 2.5 KiB |
@ -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> |
|||
@ -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> |
|||
@ -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…
Reference in new issue