Giter Club home page Giter Club logo

androidndkbook's Introduction

「AndroidNDK ネイティブプログラミング」サンプルコード集

ここにあるのは、「AndroidNDKネイティブプログラミング」に掲載されたコード、もしくはその検証用に作成されたコードです。

開発環境

Eclipse(Helios), ADT, CDTを利用しています。

EclipseからNDKのビルドをできるようにしておくと便利です(参考:EclipseからAndroid NDKのコードをビルドする)

ファイルについて

章ごとにサンプルコードを掲載しています

ch02/

  • CalcVal/ JavaからCの関数を呼び出す
  • CalcVal2/ JavaからCの関数を呼び出す(jniRegisterNativeMethods関数を利用して)
  • jniNio/  Java,C間のjava.nio.Bufferを使った転送例
  • jniToast/ CからToastを表示させる

ch03/

  • GLNativeActivity NativeActivity&OpenGL|ES1.1でスプライト表示

ch04/

  • CubeDroid/ 立方体表示(NatvieActivity、JNIからのOpenGL|ES1.1呼び出し)
  • cubedroid2/ 立方体表示(JNIからのOpenGL|ES2.0呼び出し)
  • NativeBitmap/ NativeBitmap

ch06/

  • NativeMultiTouch/ JNIによるマルチタッチ取得
  • NativeSensor/ JNIによるセンサー取得

ch07/

  • ExportModule/ 外部モジュールの設定
  • InlineAsm/ インラインアセンブラ使用例

ライセンスについて

ここに掲載されているコードはすべて、Apache License 2.0とします。

NOTICE

このコードは、部分的に、Android Open Source Projectのコードを含んでいます。

This product includes software developed as part of The Android Open Source Project (http://source.android.com).

更新履歴

2011/12/19 ch05サンプル削除。コードはNDKのサンプルにあるNativeAudioを参考にしてください

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.