I'm trying to develop an app using TVInputFramework. In android SDK all API s are not available. I want use HdmiControlService (a system service) in my app. The only way is using internal API or hidden API in my app.
How to develop apps using these API s.
Is there any Tutorials.
Can i use my android studio to develop this kind of app.
Thanks in advance
There is a mini-guide on how to use TIF in Developing a TV Input Service.
Create a TV Input Service Using the TIF Companion Library
The TIF Companion Library is a framework that provides extensible
implementations of common TV input service features. Use the TIF
Companion Library to quickly and easily create your own TV input
service that follows best practices for Android TV.
There is even a sample app in Github called Sample Android TV Channel App (TV Input) using TIF.
You need to build your own Android Sdk and produce an android.jar file.
You should check this
Related
I am looking to replace the Android bound services (Binder/IBinder) used in my existing code to make it work with codenameone then create an iOS app. Is it possible?
Thanks.
You can use IBinder/Binder in the Android native code that you integrate with your application. But it has no equivalent in other OSs so we can't create a portable abstraction for it.
We have an android library for mobile data gathering (location, mobile device, etc.) that I would like to share with a partner. This aar component was developed using java and android studio, vanilla stuff.
Problem is, this partner is using GeneXus platform. I have performed a research and what I have found is that you can create an android component using GeneXus, but nothing related to consuming one (an external aar file).
Does anyone know if that is possible?
I also have verified that you can have access to "some" device data, like geo localisation, but that is it. Point is, I could create something in GeneXus, however with far less data richness than native android.
Yes, you can extend Genexus Android native app by using any native library you need to use.
Genexus provide Extensions Library for extensibility in native application.
You can create an External Object in Genexus and then use it in your application.
You can find a full sample in Github with step by step documentation:
https://github.com/genexuslabs/SDExtensionsSample
Best,
We are thinking to port our Android 3D games to support google cardboard VR.
Our games are native android apps and are based on NativeActivity.
The CardboardActivity is a java activity so that can not be used in native app.
I opened the Cardboard library (.arr) and saw some native libraries, but there is no any docs or guideline about how to make native android app with cardboard API.
Anyone could provide some info or suggestions? Thanks.
Your current best bet it to use a CardboardView, and call your native renderer via JNI in CardboardView.Renderer's onDrawFrame() method.
https://developers.google.com/cardboard/android/latest/reference/com/google/vrtoolkit/cardboard/CardboardView.Renderer
That would probably require some refactoring of your app, though.
The fragment is included in android.support.v17.leanback.app.GuidedStepFragment which is apart of Leanback library.
I think Leanback is for Android TV, will GuidedStepFragment work if i try to implement it in a mobile device?
Here is an example of the fragment in action: https://youtu.be/RhXuihvQ4Lg
Leanback is a library specifically designed for TV, as stated on developer.android.com:
v17 Leanback Library
The android.support.v17.leanback package provides APIs to support building user interfaces on TV devices. It
provides a number of important widgets for TV apps.
But Nothing prevent you to use the widgets available in the library in your mobile app for Android 4.2 and higher. You will probably have to make some adaptations since the Android TV have a different kind of interaction (TV remote and game controller) compared to the mobile device.
You can make a quick test of the GuidedStepFragment running the Android TV Leanback example on your mobile device and selecting:
More Samples > Guided Step First
Can you access the bluetooth API of android via adobe air for mobile?
There is indeed a Native Process API:
http://tv.adobe.com/watch/adc-presents/invoke-native-process-in-adobe-air-2/
however, unfortunately, it doesn't look like it will allow you to do want you want.
I am not a Adobe AIR developer, but from what I know it is runtime for developing rich Internet applications that should run out of browser on your target device. So by default shouldn't be interested in accessing platform dependent resources and APIs. Even so, there is a possibility called native process API and here there is an example article, probably if you digg you'll find more information about it.
Create native installers allowing you to launch and communicate with native processes using standard input and output. Using the native process API, communicate with native libraries built using Java™ and .NET and native applications such as grep for file searching. You can also create operating system–specific installers (native installers). Applications that use the native process API must be deployed using a native installer.
Second step it would be for you document yourself, about the Bluetooth API of Android. They use BlueZ, so you could use the C API, or if your needs are not soffisticated you could use the Java API.
The actual response is yes, you can.