====================================================================================================================================
一、APK编写
1.Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_PACKAGE_NAME := Hello
include $(BUILD_PACKAGE)2.AndroidManifest.xml
package="com.hello.jnitest"
android:versionCode="1"
android:versionName="1.0">
android:icon="@drawable/icon"
android:label="Bug Report Sender" >
android:label="@string/app_name">
3.src/com/hello/jnitest/Hello.javapackage com.hello.jnitest;
import com.hello.jnitest.R;
//jni
import com.tank.common.Inputproc;
//end
import android.app.Activity;
import android.os.Bundle;
import android.os.RemoteException;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public class Hello extends Activity implements OnClickListener {
private final static String LOG_TAG = "com.hello.jnitest";
private EditText valueText = null;
private Button relButton = null;
private Button clearrelButton = null;
private Button focusButton = null;
private Button clearfocusButton = null;
private Button writeprocButton = null;
p