Skip to main content

Android: Install Samplejni

JNI Example

This sample shows how to build a native code library, package it into an APK, and call it using JNI.

Prerequesites

You must install the Android SDK in order to build the Java APK. The Android SDK can be downloaded
from

http://code.google.com/android/download.html

Build Steps:

1) Create an Eclipse project to for the Java code.

Launch Eclipse
Choose File : New : Project...
Choose Android : Android Project
Choose Next
Enter "JNIExample" into the Project name: field.
Choose "Create project from existing source"
Click the Browse button and browse to the ndk/samplejni directory

Click Finish

2) Build the Eclipse Project

Select the JNIExample project in the Package Explorer
Make sure that the menu item Project:Build Automatically is not checked

Choose Project:Build

The resulting apk file ends up in bin/full/JNIExample.apk

2) Build the shared library, insert the shared library into the APK file and resign thee
shared library.

ANDROID_SDK_BASE= make

Install the APK on the device:
(Run emulator before run adb)
adb install -r bin/full/JNIExample.apk

Once the application is installed, you can run it by tapping on the "JNI Example" icon.

Comments

Popular posts from this blog

เวรย่อมระงับด้วยการไม่จองเวร

"เวรย่อมระงับด้วยการไม่จองเวร" ที่เป็นภาษาอังกฤษและมีความหมายใกล้เคียงนั้น ก็มีหลายสุภาษิตด้วยกัน (ส่วนตัวแล้ว ชอบ "Good to forgive; best to forget.") ลองพิจารณาและเลือกเอาเอาตามใจชอบจาก "สุภาษิต" ข้างล่างนี้..... - To forget a wrong is the best revenge. - Revenge never repairs an injury. - Pardon is the most glorious revenge. - Good to forgive; best to forget.

Book of Answer Privacy Policy

Privacy Policy Privacy Policy Jaa Yoo built the Book of Answer app as a Free app. This SERVICE is provided by Jaa Yoo at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy

How to agree in English - too / neither /either / so

1. To agree with postive statement (Me too) “I love strawberry ice cream.” “Me too!” “I’ve been traveling a lot for work lately.” “Me too.” “I’m going to the beach tomorrow.” “Me too!” 2. To agree with negative statement (Me neither) “I can’t draw very well.” “Me neither.” “I haven’t seen the new movie yet.” “Me neither.” “I don’t go to the gym very often.” “Me neither.” 3. To respond in positive (So do I) “I always sleep late on the weekends.” “So do I.” “I’m from Moscow.” “So am I!” “I studied chemistry in college.” “So did I.” 4. To respond in negative (Neither do I, Nor do I, I don't either) “I don’t think that’s a good idea.” “Neither do I.”“Nor do I.” “I don't either.” “I’m not very outgoing.” “Neither am I.” “Nor am I.” “I'm not either.” “I didn’t like broccoli when I was a kid.” “Neither did I.” “Nor did I.” “I didn't either.”