Blackberry 10: Android Runtime & JNI - java-native-interface

Is JNI supported on the BlackBerry 10 Android Runtime? I would like to execute native c code in my android app which I'd like to deploy on the blackberry 10 os. In my android app, I use JNI to handle callbacks from the native c code to the java code. Is this supported on the bb10 android runtime?

All I could find is this thread: Any plans for supporting Android Native Code which doesn't appear to have an official response.
My guess is that 'no' Android NDK won't be supported as Blackberry 10 already has a Native C/C++ SDK for those pure C/C++ apps (games, other performance heavy apps) or if you want UI widgets to use the C++/Qt/Cascades framework.
Edit: Found the official response under the Unsupported Software Features: 'Apps that utilize native code bundled into their APK file'. Blackberry 10 Unsupported Software Features for Android. So its a definite no for the Blackberry 10.1 and lower runtime using Android Gingerbread.
2013-12-05 Update: Looks like Blackberry 10.2 will be supporting Jelly Bean and have general support for Android JNI via the Android NDK with some limitations. See Blackberry Android Native Support

Related

Build UWP apps using Ninja?

Can we use ninja to build UWP apps and hence create the appx package for the same?
I don't feel there is an online article for the same. I know how to do it using VS and Make.
In theory: Yes
Notable one thing: Ninja just official support C++, I can't find any result Ninja support other programming languages
With C++ we have 2 options:
C++/CX: You should activate flag /ZW for Windows Metadata
C++/WinRT: With WinRT you just compile without any restrict, this doesn't need Windows Metadata anymore
C++/CX: we have long story behind Windows Runtime development before C++ 11/14 became official so Microsoft add their own implementation features to MSVC. So with C++/CX you can compile with very old SDK like 10240, 10586, ... and in theory it also work with Windows 8.0/8.1 SDK, Windows Phone 8.0/8.1 SDK. Another attemp try to compile UWP with C++/CX on FastBuild (system build like Ninja) is successful, you can read as a reference here: https://github.com/fastbuild/fastbuild/issues/623
C++/WinRT is reunion attempt make Windows Runtime back to standard C++ 17. C++/WinRT can also compile with Clang/GCC. Base on answer from Kenny Kerr (creator of C++/WinRT): C++/WinRT is not limit with old SDK, but he recommended to use newer SDK like 17134. Link his answer https://stackoverflow.com/a/53193711/8707331.
Some useful links for C++ UWP:
https://github.com/MicrosoftDocs/cpp-docs/blob/master/docs/porting/how-to-use-existing-cpp-code-in-a-universal-windows-platform-app.md
https://modernwindows.wordpress.com/2015/05/28/modern-c-and-clang/
you can create uwp apps in following ways:
c# and xaml
web technologies like html, css and js. and you can use any
third party js libraries with it. you can even use hosted web apps
as uwp apps or latest technologies like pwas can also be shipped as
uwp apps. more here : https://developer.microsoft.com/en-us/windows/pwa
c++ and xaml : with this approach you can use c++ libraries (if they comply by uwp platform) the reason you do not have much support online for this is because majority of uwp developers use c# and xaml approach.
There are some work around for that, and one of them is to create a Desktop app and then package that in MSIX packaging , which packages a windows Desktop app into a uwp app and you can even distribute it through Microsoft store.
CMake can't be used to generate UWP package. However, you could use make.exe or Visual Studio to generate UWP package. For more you could refer to Create an app package with the MakeAppx.exe tool and Package a UWP app with Visual Studio.

OpenGL in Xamarin

I'm currently developing the cross-platform application for Android, iOS and UWP (Universal Windows Platform). I have found OpenGL examples for iOS and Android, but did not find any of them for UWP.
So, the question is, How can I use OpenGL in UWP applications?
OpenGL does not run out-of-the-box with the Universal Windows Platform. A solution to this is ANGLE that layers WebGL's subset of the OpenGL ES APIs over DirectX API calls.
Useful NuGet packages can be found here but I don't know how this can be implemented in a Xamarin project, if it can be implemented at all.

Can you call Objective-C methods from C/C++?

The Realm mobile database have Objective-C and Java bindings, suitable for iOS and Android respectively.
However I want to use Realm in Blackberry and Windows Phone and Realm has no C/C++ bindings yet.
My question is: can you link/call Objective-C library from C/C++, with Realm library to be used in Blackberry and Windows Phone in particular?
Its not the lack of C/C++ bindings that's your problem, rather that Realm only runs on iOS and Android - there is no Realm for Blackberry and Windows Phone.
The source is public domain though (Apache 2 licence), so you could consider porting it yourself...

How can I develop iOS applications on a Windows Platform? [duplicate]

This question already exists:
Closed 10 years ago.
Possible Duplicate:
iPhone development on Windows
Xcode 4 only works on Mac and I am getting project requests for iOS and I need to develop iOS applications without uying a Mac. I have a Windows PC. Is there an IDE which works well with iOS SDK or is developing C++ code which uses iOS SDK libraries the only choice?
If you are familiar with C#, consider monotouch. You will need a mac to register the app in any case.
One newer solution which is open source is called MonoCross.
Here's a link to their site, and here's the Google code site.
From their site:
Monocross is an open source cross-platform mobile framework using C#
.NET and the Mono framework. Monocross lets you create beautiful
applications on iPads, iPhones, Android devices, Windows Phone 7, and
Webkit enabled phones.
It uses C#. No C++ required.
Edit: MonoCross uses MonoTouch.
In your situation, if you have no Mac around, it will be better and easier to use VirtualBox (or VMware) and install MacOS there. And to develop inside the VB.

Webkit on Windows Mobile

I wish to embed webkit in a windows mobile application. The goal is to allow it to run web apps. I've tried the Qt version, but only webkit is required and not the rest of the functionality Qt has.
You can build WebKit for WinCE out of trunk in the meantime.
See http://trac.webkit.org/wiki/WinCE.
http://www.torchmobile.com/ had a ported webkit browser called IRIS.
Apparently they have recently been swallowed by RIM.
We posted the alpha free download version
www.zetakey.com/download.html
with or without FLASH support available