Unity plugin for Android Studio. - java

Straight to the point, Im trying to run a small program of unity within an android application created on android studio.
The android application has its own functionality. Eg. after opening the maps API(in android studio), I want to click on a location and then want a small program of unity scene(augmented reality) to start. I want help and I don't have any idea how to do this.
This is the unity application that I want to integrate within my android App. I want to make a unity plugin that can run within an android application instead of creating the entire application in unity.
https://www.youtube.com/watch?v=gNwduUQrlJs&t=6s

I'm afraid you can't do that. What you can do is to create another unity application which will have just the functionalities you want after clicking map location. If you install such app on your Android device, you can then trigger opening this unity app from your Android app by using custom uri schemes. But there is no way to create Unity 'plugin' to launch within android application.

Related

Create an android app that controls other apps

Could I create an Android app with the ability to control another android applications? For example to press and click on things in another android app while my hypothetical application would be running?

Can Android Studio apk run in apple phone?

I am trying to developing a simple app using JAVA for my school project. I am using android studio to develop my application, which I learned android studio in school. But i want to run my app in both android and apple phone. So here is my question, is it possible for my android studio app to run in apple phone, and if not, what should i do so that it can run in both android and apple phone?
You cannot use android apk into iOS.
I suggest you to go with some kind of Hybrid applications, like Flutter(Google's one), ReactNative(Facebook's one). In this you can develop applications and final build can install in both Android and iOS.
If you still need any help Flutter or React Native
You can but it's not that straightforward. You can use Android studio to make a Flutter project and then deploy it to iOS. But you need to learn Dart and Flutter's conceptions and whole developing processes, maybe it's not as easy as you imagined.
Android apk cannot run on ios because of different platforms,the best option is to use cross-platforms tools in mobile application development i recommend flutter
If you want to install Flutter project on iOS Device. You need to Open the default Xcode workspace in your project by running open ios/Runner.xcworkspace in a terminal window from your Flutter project directory in macOS.

Run Java Android application within Xamarin.Android app

I'm working on a Xamarin.Forms app in C# for iOS and Android. I also have the source code for another app that's written for Android devices in Java. This other app is a fully developed app on its own and has its own pages and UI designed already. Would it be possible to run this app within my project, at least just for Android?
For example, let's say I have a button in my app that, when clicked, leads to a new page within the app that starts running the Java app. From there, it's as if users are simply using the Java app, only that there's a back button on the top of the page that leads the users back to the main page of the Xamarin.Android app.
I've looked into Binding a Java Library but it seems like that's primarily for Java libraries rather than full-on applications.
From what I could tell you can look into creating a AAR file of the existing Java code:
https://developer.android.com/studio/projects/android-library
Then add the new AAR (with the Java code & resources) to your existing Xamarin project:
https://learn.microsoft.com/en-us/xamarin/android/platform/binding-java-library/binding-an-aar
Using Intents on both sides:
https://developer.android.com/guide/components/intents-filters
https://developer.xamarin.com/api/type/Android.Content.Intent/
I would start with a simple Proof of Concept:
write a simple Xamarian app with a button to launch the Java Android
Activity via intent
write a Android app with a button to launch the Xamarian activity via an intent (the back stack for the integrated app may be tricky).
Build an AAR out of the Java Android side.
Integrate the AAR into the Xamerian app.

unity3D with Android Studio

I am developing a virtual reality application for the Samsung Gear, I already did the graphic part in unity ,what I want is when I click on the login button that I have created with unity,the treatment will be in java, i already have exported my unity project as an android project but I can't find the link between the unity objects that I have created and the generated activity,any help please ?
thank you.
You can write custom android plugin for your unity project. You can communicate between java & C# using JNI. For more information, see here

Render game objects in android app

Is there a way to render game objects in android app by using game engine ?
I have tried using unity but the problem is that, it require to export app as jar and use that lib in game development.
What I am trying to accomplish is to develop app using android studio and render game components which are built using game engine.
so Is it possible to do that and if yes which tool to use?

Categories