Which uGrockIT RFID SDK(s) for iOS and Android - java

Which uGrockIT RFID SDK is recommended for a CodenameOne app for both iOS and Android devices?
Should I use the Cordova SDK, or is it possible to bind to the device-specific SDKs via native interfaces?

I looked at this and while it might not be trivial I'd use the native Android/iOS SDKs both of which look reasonable enough to add.
The Android SDK is just an AAR file. Just place it in the native/android directory without the other changes they're asking for. It would work. You can then use the native Android source code to invoke the features of the AAR.
The iOS SDK has a static lib file. Place it in the native/ios directory with the headers for it. This should work in the same way as the Android version.

Related

Uploading files in google colab

So I am writing code in java in google colab because I want to copy-paste the code in android studio to perform a specific function. Now in python it is pretty easy to upload files to google colab but I want to do it in java (I particularly want to upload image files). I should be able to upload image files in such a way that I can use it as input in my code. How can I do it? Also, for all the packages that I import in google colab, will I have to separately download them for android studio or can I just copy-paste the code and it will run?
Google Colab presents a Jupyter-notebook like environment for Python code only. It cannot run Java code (at least, I cannot find where you'd make it do that).
I want to copy-paste the code in android studio to perform a specific function
Android code runs on an Android device, not in a server.
If you want to run Java code on a server, then you'd host an HTTP-based Java web-server that you use an HTTP Client from Android app to communicate with it. (In theory, yes, you can install and run JAR files in Colab, but you would then need to know the IP of those servers in order to connect with them).
The more appropriate solution would be to use Google AppEngine or GCE/GKE (assuming you want to use Google Cloud)
I ... want to upload image files
You can use the Java Google Drive SDK for that
for all the packages that I import in google colab, will I have to separately download them for android studio
Android Studio is an IDE. Gradle will download packages for compiling your Java/Android code, yes, but as mentioned, Colab is downloading Python packages, not Java

Calling 3rd party native library in your own android app

Is it possible to write code for native libraries you do not have the source code for in your own android app?
For example - RarLab's android app comes with a native library librarlab_rar.so for at least 4 different platforms.
Assuming that I'm doing this for experimental and copyright isn't an issue and I don't plan to distribute the app externally, is it possible to compile a Java/Kotlin android-based app with only including the native binary in android development tools such as Android Studio or Eclipse?
You would need to disassemble the binary .so file and work out the API yourself. This process is called reverse engineering.
See: How do I reverse engineer .so files found in android APKs? for ideas on how to accomplish the task.
Once you've figured out how to call into the .so file, you can then write your own version of the API which you can then call from Java/Kotlin.
Any lib….so file that you put under jniLibs/$(ABI) folder in your app will automatically get packed to APK and unpacked to the device (provided the ABI matches). You may need to write your own Java wrapper for the libraries, or to reuse the Java classes that you need from the same app.

Porting an SDL 2.0 game to Android

I have a game written in C/C++ with SDL 2.0, I would like to port it to mobile platforms (specifically Android and maybe other platforms too). I read SDL has a native support for Android but the game itself is written for Windows at first, although no Windows-dependent libraries/code were used. As for Android, I only used the Java based SDK before and never integrated it with native code. Which changes (if any) do I have to make to the C/C++ so I could use it on Android platform? How exactly do I acually compile the whole thing to an APK? Is it possible to use Java and C/C++ for the application, I mean, the game's activity will be the native one but the other activities (menus, settings, etc) can be written with the regular Android Java SDK?
The Android README file in the SDL source release outlines most of what you need to know with regards to porting your SDL App to Android. There's also an example project for Eclipse that demonstrates you can modify to suit your needs.
https://hg.libsdl.org/SDL/file/d6a8fa507a45/README-android.txt
The iOS README file is also useful, namely for the sections on events and input, as much of it carries over to the Android port.
https://hg.libsdl.org/SDL/file/d6a8fa507a45/README-ios.txt
If you need help setting up the build environment, check out this (brief) tutorial which covers installing the ADK and NDK, SDL source, building a project, programming for Android and interfacing with Java.
http://www.dinomage.com/2013/01/howto-sdl-on-android/
http://www.dinomage.com/2013/05/howto-sdl-on-android-part-2-platform-details/
(1)
I dont know anything about SDL but as long as you only make calls suported by the android NDK and what ever android supported library it should be ok. I guess you would have to set up your tool chain such that it links with SDL for android?
(2)
Yes it is possible to call c++ (ndk) from the android sdk and vice versa (see 3)
(3+ rest)
See
https://developer.android.com/tools/sdk/ndk/index.html
If you download the NDK you can also see examples of how to compile with NDK to APK

how to embed a c library in android

I have an iphone app. I made my source code as boost library. Is there any possibility to embed my library to my android app? I am using eclipse. Can any one send any link about this.
At least a simple C or C++ library embedding to android and using those functions in my android app?
You need to use Android NDK tool chain for cross compiling the library. This link shows how to use it -
"http://www.cmumobileapps.com/2011/08/31/compiling-open-source-libraries-with-android-ndk-part-1/"
If you need support of STL, RTTI, C++ exception, then there's a patched up NDK available at http://www.crystax.net/android/ndk-r4.php

need source code of libraries to run on android

I need the sourcecode for these libraries:
commons-codec-1.3
commons-httpclient-3.0.1
commons-logging-1.1
log4j-1.2.14
jaxb-ri-2.1
I need the code to recompile it in eclipse in android app and use it with javax.xml packages as you know javax.xml can not be used in eclipse in an android project.
All of this is to use the Amazon-EC2 SDK to access them from android mobile.
all of thes is to use amazon-ec2 sdk to access them from android mobile
Your list of JARs is incorrect. The current AWS Java SDK does not use log4j or jaxb, but does use other libraries.
You may better served finding another way to access the Amazon AWS API that requires fewer third-party dependencies, such as typica, or simply invoking the query API directly using HttpClient.
All of this is to use the Amazon-EC2 SDK to access them from android mobile.
AWS now provides a dedicated AWS SDK for Android developers. I would take a look at this as it may provide the functionality you need without you having to satisfy a lot of other dependencies.

Categories

Resources