Issues with kudan camera while merged with native android application - android-studio

I got a requirement where I need to merge the unity application with the native android app, I am using Kudan plugin in the unity 3d, I have exported the unity project to the android studio and created a new app in the android studio and merged the Unity app to native android app.Once I tested the build, everything is working fine except a camera(Kudan camera).Ar camera is not working as expected.I am using free ver of Kudan plugin.I have tested it without merging with the native app and it is working fine, in this case, If I merge unity app with native android app camera is not working fine.

I am facing same issue, it will stop working camera torch of system too when you extending class ARActivity you can't able to access setFlashMode() method
Test this case in your phone by opening application and then trying to on/off torch.
Torch will be disable from system.
After then try with extending Activity class
recently i have ask same question

Related

is it possibile to use unity project as an android studio activity?

I am trying to create an android application, of which its components are build partly on android studio and partly on unity. i can't do everything with android studio or everything with unity, so i would like a way to merge the two parts. my plan is to integrate the part built in unity as the main activity on androids studio and then create the other activities(screens) of my app on android studio and create a way to slide scroll between those screens(activities). i would like this configuration to work as a single 'precess'.
is this posible to do ?
I am still a beginner, so if I didn't explain well please tell me.
I tried to search for information that would be useful to me but on found nothing.
Yes, it's possible. You have to make an Android Export and add it to your main project. then call unity's activity which is registered on AndroidManifest and Unity part will be run.

Use Android Studio to code for an old platform

I want to develop an app for an old tablet using API 7 Android Eclair 2.1, but I'm facing problems setting up all the tools needed.
I tried using Android Studio, but when creating a new app, the lowest API I can choose is 14, and when I change it via code, it complains about the libraries being not compatible.
I also tried importing some samples, but it tries to download some old version of gradle and apparently the link is down.
I recall that prior to Android Studio, one would use Eclipse, but it seems that it is no longer available.
Is it possible to set up a development environment, or am I better to code from scratch and compile it myself?

error running my .apk file android studio

hye.. I'm creating an app using android studio. My app (android 4.4.4) consist of webview activity and works fine until I added fullscreen activity. When i tried installing the .apk file in my phone, app crashed after the splashscreen activity runs.
Then i tried to create new project excluding the full screen activity which i copied my previous code. I run my app (4.4.4) in android virtual device and it works perfectly but when i generate the .apk file then install it in my phone, app crashed, still the same problem. I'm using samsung ace j1. I just couldn't get it.
Can you help me sort this thing out? I'm still a newbie.

How to create RoboVM iOS APP in Android Studio?

I'am insatlled RoboVM module. introduced a license key.
How to create RoboVM iOS APP in Android Studio?
Make sure you have Gradle installed in your Android Studio.
Start libgdx setup GUI tool
java -jar ~/Downloads/libGDX/1.6.1/gdx-setup.jar
Make sure to select IOS project.
Click generate
When it finishes, import libgdx project into your workspace (File->Import->Gradle)
Connect your device to your machine (if you don't want to use simulator)
Right click on the IOS project and select Run As IOS Device Application (or IPhone/IPad Simulator Application. Whichever suits you).

How to work with android studio along side with Unity 3D

I 'm just getting started with Unity 3D and I 'm going through android games development learning and I wonder how to setup Unity to work with android studio ?
For the majority of your tasks, you will not be working in Android Studio. You will be working directly in Unity. The only reason you would need to work in Android Studio would be to create native plug-ins for additional functionality that is not provided in the Unity Engine.
A detailed description of the requirements to build for Android are available in the Unity3D documentation. An abbreviated description:
When you are ready to test on your device, you will build for Android: File>Build Settings, and select Android from the list
You will need to have the Android SDK installed, and have at least one API Level installed using the Android SDK Manager (minimum).
In Edit>Project Settings>Player Settings, open Other Settings. Choose the Minimum API Level for your game. This API level must be installed using the Android SDK Manager
Finally, When you've finished building, you will have a .APK file.
You can copy to your Android device, and install with a file manager. -OR-
You can install it on an Android Emulator.
I hope this helps in some way!

Resources