Create an android app that controls other apps - java

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?

Related

Can I make a Notification to specific apps on Android Studio?

I'm making an app that relies on the content of an specific group of apps.
I want to know if it's possible And I want to make a notification when the user opens one app of that group just to remind him to update my app.
I want to know if it is possible somehow to list these specific apps. For the notification not to appear in all apps.
I don't have much experience on Android Studio. And I never made a notification system on my apps.

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.

Unity plugin for Android Studio.

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.

Keep android app in foreground unless in in settings

I have an app for a customer (refer to it as "their" app). When "their" app is open they do not want users of the device to use any other apps.
The only way they want to get round this, is if i create a login page within the app, and from there you can go to the android settings page. If the android settings are accessed, then the user should be able to go anywhere they want, until "their" app is in the foreground again, then the device should be locked into using just that app.
If this makes any difference, "their" app is a cordova app. I dont think it will, but thought i would mention it anyway. Needs to work in android 5.0
Is this possible at all? What would i need to implement for this? A service and timer?
UPDATE
It is a tablet, so it will never ring.
If the user presses the Home button, nothing should happen as the app should stay in the foreground

Create a background service in android wear

I have been trying to create an alarm application for my watch for past few days. And unable to find any clue that how we can create a background service for android wear. Even I didn't find anything in the developer guide for android wear.
But, I just want to create this application only for android wear and don't want to synchronize data from my cell phone.
Android Wear is based on the same architecture as regular Android phones. So if you want to create a background service, you do it exactly the same as you would on a phone.
For example, here is a tutorial on creating a background service:
http://developer.android.com/training/run-background-service/index.html
And a stackoverflow question about background services:
Creating Background Service in Android
If you want an app to run on the wearable, you will still need to provide a minimal phone application to deliver it to phones via Google Play. More information about packaging is here: https://developer.android.com/training/wearables/apps/packaging.html

Categories