Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Service #4

Open
ohenepee opened this issue Apr 9, 2017 · 6 comments
Open

Android Service #4

ohenepee opened this issue Apr 9, 2017 · 6 comments

Comments

@ohenepee
Copy link

ohenepee commented Apr 9, 2017

Is there anyway by which one can build and interact with an Android Service or IntentService? So long-running background apps can be built without the Android Runtime killing and restarting at will.

@xlab
Copy link
Owner

xlab commented Apr 30, 2017

@ohenepee

Sorry, I completely missed this issue. I was working on JNI bindings to the Android SDK, but was burdened with other work.

You can see an example of interacting with Android services using Binder there:
https://github.com/xlab/android-go/blob/master/android/jni_util.go#L13

It has all required helpers and methods, but I cannot share additional info as didn't try such thing by myself. There are some SO answers available though http://stackoverflow.com/a/14277133

@ghost
Copy link

ghost commented May 12, 2017

cool.

this is exactly why i also came here. I want to run thing sin golang as a background services, but then have apps (written in golang and QT) communicating over android IPC which is called AIDL.

@joeblew99
Copy link

The example you linked too triggers the virtual keyboard. Exactly what we need for opengl / vulkan based apps :)
Nice...

For the iOS project have you found a way also to do it ?
A iOS friend told me its the responder interface to make it work btw but have not had a chance to try.

Also whilst on the topic of text we are going to need cut and paste functionality too. Have not looked into how / if we can invoke the native cut and paste GUI controls yet...

Would be happy to help try...

@xlab
Copy link
Owner

xlab commented Jul 12, 2017

Unfortunately all the iOS interaction goes through C shims for obj-c logic. I would like to find or make a C API project for some minimal set of iOS features such as clipboard access or keyboard toggling, then generate bindings for it.

@joeblew99
Copy link

glad you said that. Thats exactly what i want to do too.
I was thinking about it. Its likly that the QT code uses allot of those same IOS API's since they are opengl based too. Might have a look into it.

i really think that this is huge, and love the work your doing..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants