How to start an Android application inside my application? (example provided) - java

I found some launchers that are able to run installed apps inside their own activity. ( https://play.google.com/store/apps/details?id=com.lwi.android.flapps )
This launcher adds their own functions like maximize, minimize etc. I guess they are creating widgets (because they need drawing over apps permission) and running inside them. But how :)
Can you show me how I can run another android application inside my own activity, widget etc. like this app did ?
Best,
Kerg

I think the following documentation should help you out with learning how to get your app to interact with other apps: https://developer.android.com/training/basics/intents
Especially interesting to you would be the section on sending the user to another app: https://developer.android.com/training/basics/intents/sending

Related

Android. make a system app that run another app

im making a app that observes for some apps that are runing or not and execute it if dont
i dont know how to oberserve other apps processes and how to start another app that wasnt maked by me.
all that i got for now is run it as system service.
another possibility is create a self app that restart it own when it crashes or be closed.
there is any way to do it ?
My cell is not rooted
For your question, you can learn the application sandbox.
https://source.android.com/security/app-sandbox
When the developer makes an application, they can define their intent filter and tt is some way to let another application invoke it.
You can uncompress .apk from another application and find out the file AndroidManifest.xml. And then you can try it.
But you can just control the part of door they open to you.

Running an android application inside an existing application in a small window

I'm trying to run an android application inside my application in small window. I have searched threads but can't find an answer.
There is no way for you to embed another application in your application in standard Android. A custom ROM could do this, though.

How to add shortcut on home screen when app gets install

I know it's not the best practice, but it is a requested feature (e.g. for business apps). When the App gets installed, I need to automatically place it on the home screen. I saw a lot of code on the internet, but all of the code only works on button click when the app starts. But I need to place a shortcut on the homescreen immediately after the app is installed and before the app starts. Is there a way I can achieve this?
PS: To make the question more clear: The app will be distributed without Google Play Store, so that's not an option.
Thanks for your help!
Best regards,
Robin
You can't run any code in your application before the user starts your application for first time during to restrictions since Android 3.1. Check this for more information
That's an optional feature of the Market app, not of the apps themselves. When designing an application , it does not receive a broadcast about itself being installed.
the first time the app launched can create it.
You can achieve that by creating a method in your main activity and call this method from oncreate and create a boolean variable andsave it in shared preferences

Android: How to develop multiple apps in a single apps?

I am developing some android app. They are about 9 of them.
I dont want this apps to be seperated or indipendent of each other. I want to them to be in one sigle app but each apps has a different function is carries out.
How do i go about doing this? I just need some guidance. How do i include the other apps in one sigle app, so that it will be on the fone a single app but within it should be multiple different apps, performing different functions.
Thanks in advance.
Develop on app in which at first screen place 9 item (as per you app no) like grid or as per your choice and on hat item click start activity related to that app.
Like in attached image
For A reference you can install Libraries for developer app in you device and take a look that how then integrated lots of demo app for different different libraries.

Get State of Toggle Button in Another Running Android App

I am writing an App (MyApp) in Tasker that would need to read the State of a Toggle Button in another App (AppB) that I haven't written. It's for reporting purposes. I am a seasoned programmer, but are new to Android. Please bear that in mind:-)
Tasker have support for Java code, and have access to the full SDK of my Android 4.3 Phone.
The app will run on Android 4.3+.
I am already using AutoInput that is perfectly capable of getting the ID of widgets (Buttons etc) in other Apps, and AutoInput is also capable of Pressing these Buttons (AutoInput Accessibility must be turned ON). AutoInput will have support for what I am asking later, but I badly need it now!
So the question is:
How can MyApp get the State of a Toggle Button (with ID "toggle") in AppB using Java?
I am afraid this will not be possible by easy means. The applications in Android are isolated and cannot ask for others' applications controls due to the security policy. Without the access to the AppB code and possibility to change it this will not be possible.
The AppB would have to share the state of the toggle to your app: either via content provider or simple intent each time the toggle is changed. This requires changes in AppB code which I assume is not possible in your case. I see no other way to get around this.
I am writing an App (MyApp) in Tasker that would need to read the
State of a Toggle Button in another App (AppB) that I haven't
written
In Android, by default each of the application runs in its own process and each app is Sand-Boxed.
Therefore, you cannot read the data from other application until it is shared explicitly by the particular application.

Categories

Resources