arsd.jni
jni
my.email at gmail.com
Sat Dec 10 22:53:14 UTC 2022
Friends, I have decided to use D lang to link with the Android
NDK. I can make an app that can use the android platform's
functions and the android site says they are available in C for
linux and windows! Making apps in android studio or 2 other
programs I have used before is easy but now I require D because
of the advantages quality innovations I have written inside a D
library, second I would use the D std library for using curl, and
it needs to be in an apk for now and maybe in the years to come I
will switch to using a binary executable. As you can see, linking
with the NDK from D is the one possible outcome.
I have succesfully linked with the NDK and learned valuable linux
programming along the way, but before I get too over-enthusiastic
and joyous and get ahead of myself to make an error in trying to
use the optional Android Studio together with the arsd.jni,
please, I wish to share with you my questions and concerns for
the best way to move forward with this massive undertaking this
thing, and how to go about calling android platform functions
using arsd.jni and other D lang technologies from code.Dlang.org
that may be useful to me.
For starters I wish to call the wifi functions for checking
internet availability. How can I achieve this most efficiently?
Then there are the maven questions because Android Studio does
many of these automatically, and from my experience does an
annoyingly gross job at it, btw unless you use all of their
official tools. How do I use the maven for using jars or an
Apache repository for server communication? I am using gradle
with all this and everything works fine. Any suggestions on how
to start this thing is welcome. I will connect through SSL with a
remote server and print a log on the server side. On the Android
side only connect and wait for further data to be recieved and if
the stream finishes then it should stop the app. That part will
mean sleeping the app until when it is relaunched. The server is
php code.
I tried to add in correct place on forums. Thank you.
More information about the Digitalmars-d-learn
mailing list