Code Monkey home page Code Monkey logo

native-android-examples's Introduction

Native Android Examples

हिन्दी में पढ़ने के लिए यहाँ क्लिक करें

Basic Android Native Library Examples for Beginners (JNI via C++ Libraries)

Contents

  • HelloWorld (JNI intro.)

    • This uses native-lib.cpp to get string from our C++ library and print that on screen using regular TextView.setText(String) function.
  • Basic Calculator (Native Library)

    • This uses native library to do simple calculations and then display the result.
    • JNI functions take parameters in jstring (Java String) then converts it into C string (char*) and then into C integer (int) via std::atoi()
    • Flow : String -> Jstring -> Char* -> int -> std::string -> c_string() -> String
  • Native Obfuscation (Sample C++ based Java Obfuscation)

    • This uses native library to Obfuscate the code.
    • JNI functions takes two parameters in jstring (Java String) and jint (Java Integer) and then performs XOR with (jint/10042069)
    • Uses Class.forName().getMethod() and Method.invoke() to obfuscate class names and basic method calls.

native-android-examples's People

Contributors

saket-upadhyay avatar x64mayhem avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.