Giter Club home page Giter Club logo

Comments (5)

leohahn avatar leohahn commented on May 30, 2024 3

Currently we do not have official Java bindings for Android. The code at the java folder is deprecated and we do not currently use it. In order for it to work on android, you have to either use it within a C++ program and cross-compile it to android, or you have to create a Java binding for it and use the binding to run in android.

We currently use Unity to run on Android and iOS, and therefore this is our main binding that runs on both platforms. If you are not using Unity but native Java (or Kotlin), you have to create a binding for it. Here you can find more information on how to do that: https://developer.android.com/studio/projects/add-native-code.html

We want however to eventually have Java bindings, but at the moment we are not working on it.

from libpitaya.

leohahn avatar leohahn commented on May 30, 2024 2

If you want to run c++or c on android, you can use the following function to listen for server pushes:

void pc_client_set_push_handler(pc_client_t *client, pc_push_handler_cb_t cb);

from libpitaya.

arden avatar arden commented on May 30, 2024

I've compiled the android-related interface files using javacpp.

https://github.com/bytedeco/javacpp

from libpitaya.

arden avatar arden commented on May 30, 2024

For the dynamic library generation on the android platform, I fork a code and then made changes.

https://github.com/taledog/libpitaya

from libpitaya.

felipejfc avatar felipejfc commented on May 30, 2024

hi @arden, good job on using javacpp to generate the JNI code for android, we will adopt your idea (thanks for that) and integrate it in our repo with the correct paths soon.

I think I can close this issue now, best!

from libpitaya.

Related Issues (20)

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.