android/example: minor tweaks with the build
Add some menu stubs, icon, change application name, remove generated file, some indentation fix.
This commit is contained in:
parent
5ccf29f697
commit
a61a0cb0a3
6 changed files with 31 additions and 36 deletions
|
|
@ -1,19 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.lisp.ecl"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<uses-sdk android:minSdkVersion="2" />
|
||||
<uses-sdk android:targetSdkVersion="23" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<application android:label="@string/app_name"
|
||||
android:debuggable="true">
|
||||
<activity android:name="HelloEclActivity"
|
||||
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>
|
||||
package="org.lisp.ecl"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<uses-sdk android:minSdkVersion="2"
|
||||
android:targetSdkVersion="23" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<application
|
||||
android:icon="@drawable/icon"
|
||||
android:label="@string/app_name"
|
||||
android:debuggable="true">
|
||||
<activity android:name="HelloEclActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
# 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 edit
|
||||
# "ant.properties", and override values to adapt the script to your
|
||||
# project structure.
|
||||
#
|
||||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-23
|
||||
BIN
examples/android/res/drawable/icon.png
Normal file
BIN
examples/android/res/drawable/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
|
|
@ -4,5 +4,15 @@
|
|||
Set id, icon and Title for each menu item
|
||||
-->
|
||||
<item android:id="@+id/menu_uncompress"
|
||||
android:title="Uncompress assets" />
|
||||
android:title="Uncompress assets" />
|
||||
|
||||
<item android:id="@+id/menu_swank"
|
||||
android:checkable="true"
|
||||
android:title="Swank server" />
|
||||
|
||||
<item android:id="@+id/menu_restart"
|
||||
android:title="Restart inferior lisp" />
|
||||
|
||||
<item android:id="@+id/menu_quit"
|
||||
android:title="Quit the ECL" />
|
||||
</menu>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">HelloEclActivity</string>
|
||||
<string name="app_name">Embeddable Common-Lisp</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -51,8 +51,6 @@ public class HelloEclActivity extends Activity
|
|||
}
|
||||
|
||||
Log.w(TAG,"ECL starting.");
|
||||
|
||||
|
||||
ecl.start(getResourcesPath());
|
||||
Log.w(TAG,"ECL Started");
|
||||
|
||||
|
|
@ -111,7 +109,7 @@ public class HelloEclActivity extends Activity
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Event Handling for Individual menu item selected
|
||||
* Identify single menu item by it's id
|
||||
* */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue