android/example: simplify example even further
Remove the menu. Adjust AndroidManifest.xml
This commit is contained in:
parent
546b06b7b1
commit
458b52e70d
6 changed files with 17 additions and 52 deletions
|
|
@ -3,15 +3,14 @@
|
|||
package="org.lisp.ecl"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<uses-sdk android:minSdkVersion="2"
|
||||
<uses-sdk android:minSdkVersion="9"
|
||||
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 android:label="@string/app_name_short">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
|
|
|||
14
examples/android/project.properties
Normal file
14
examples/android/project.properties
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# 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-10
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.8 KiB |
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- Single menu item
|
||||
Set id, icon and Title for each menu item
|
||||
-->
|
||||
<item android:id="@+id/menu_uncompress"
|
||||
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,5 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Embeddable Common-Lisp</string>
|
||||
<string name="app_name_short">Embeddable CL</string>
|
||||
<string name="app_name">HelloECL</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -13,9 +13,6 @@ import android.content.SharedPreferences;
|
|||
import android.content.res.AssetManager;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Toast;
|
||||
|
||||
|
||||
|
|
@ -100,32 +97,6 @@ public class HelloEclActivity extends Activity
|
|||
}
|
||||
}
|
||||
|
||||
// Initiating Menu XML file (menu.xml)
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu)
|
||||
{
|
||||
MenuInflater menuInflater = getMenuInflater();
|
||||
menuInflater.inflate(R.layout.menu, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event Handling for Individual menu item selected
|
||||
* Identify single menu item by it's id
|
||||
* */
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item)
|
||||
{
|
||||
switch (item.getItemId())
|
||||
{
|
||||
case R.id.menu_uncompress:
|
||||
uncompressDir(RESOURCES_DIR,uncompressedFilesDir);
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
|
||||
public static String getResourcesPath()
|
||||
{
|
||||
return uncompressedFilesDir.getAbsolutePath();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue