Is it possible to run (and view) two apps simultaneously? - android

I have some questions about android development.
I have googled around, but cannot seem to find any answers to my questions.
Is it possible to display google maps in a widget?
Is it possible to run (and view) two apps simultaneously?
Is it possible to run an App within an App?

Is it possible to display google maps in a widget?
Yes
Is it possible to run (and view) two apps simultaneously? No
Is it possible to run an App within an App? You can launch an app, from another app. But you can't run an app inside another. Well... you could try playing with an ActivityGroup and get a View reference of the inner app you want to run, and then render that View... but I think it is nonsense

Related

Running Android application inside another app

What I need to know is, Is it even Possible to view an app within another
app?
I have tried to find out how but I found much topics speaking about launching apps from another only
For example: To have an application that views the file manager, specific music player and google chrome and be able to switch between them with something like tabs?
You will have to do an IPC for what you like to acheive. have a look at this link. Though am not sure if you can run it the way you want.
http://developer.android.com/guide/components/aidl.html

Android: How to access display (Activity) of different app that is not shown in upper layer

Hello Android developers,
Im more or less expierenced in Android programming and now i want to create an app that is allowed to access the display of another app or the activity that is less my app. Both apps should be active, should run. My app shall access the display data of the other app (also can be android system display), change it a bit and then show it again.
Is it possible without root rights?
Is there any Android support class that could help me? Which way i can go?
I hope my problem is clear and you can help me!
Ok now I have a more detailed question: How can open my app and show a transparent RelativeLayout, so that you can see what is below my app?
Thankyou a lot
Martin
If both applications are yours, you can access the other Activity using a connection between them (sockets, pipes, shared files, etc.)
If you'd like to create an overlay and display something on top of the other app, you can do that using a 'system window' popup. For example: Popup window in any app
If the other app is an arbitrary software without any modifications, such thing is not possible as it would lead to security issues. Both applications are Unix processes running in their own sandboxes without any direct communication.

Is there any way to run others apps in my Android app's layout?

I know it may sound weird but i was wondering for few days that can i launch any android app in my android app's layout? I searched in the google but couldn't find any answer.I know that app's have ability to send the user to another app based on an "action" it would like to perform.But i would like to know can i run the app in my app's layout??Suppose i have an app that has a layout called activity_main and now i want to replace the activity_main's layout with the app i want to call so that the called app is running inside my app.Thanks in advance to anyone who can clear my doubt??
can i launch any android app in my android app's layout?
No.
You cannot run any Android App inside your App.
But, you can run a WebApp [thats adaptive designed] inside your Android App.

Android launch app inside view

Alright so I have an app that I would like to have utilize other apps. For example I have an app that does quite a number of things except for a directory look up since there is already an app that does that for my school. I know I can launch the application with intents, but that also brings them away from the navigation menu for my application. Is there anyway that I could run an app inside a view layout. I am not hopeful for this but I figured I would chance asking it anyway.
This is technically possible by using widgets. You can implement an AppWidgetHost, and other applications can create App Widgets to use inside your own app. This is how the launcher screen in Android works.
This, of course, will only work if other applications in question implement widgets. So, the general answer to your question would be no, it is not possible to host arbitrary applications or Views/Activities from other applications inside your own.
This not the Android design philosophy. You should send an Intent to the directory app, which I hope is designed to look up a result and then return it to you. The mechanism is startActivityForResult() in your app, and setResult() in the directory app.

Making Google TV into a public kiosk

I am working on a project where we have to put a Google TV in a public area. I am building a custom application for it that should be running all the time. Basically, we don't want someone to be able to switch out of this specific application. In a perfect world, people walking by should be able to use a keyboard that comes with the Google TV (Revue). My question is, is there a way to programmatically lock down the system? Or do we need to use a special keyboard that only has alphanumeric buttons on it?
I am not an expert in Google TV,but such a problem can be handled in the mobile by creating a Home application and making that as default.So the user cannot switch out the application.Of course you need to make sure that your app is the default Home app before giving it out to the user(anyways this is your device and not the users). I am not sure whether the Google TV has a home intent.
My question is, is there a way to diagrammatically lock down the system?
Not without creating your own custom firmware, which at the moment is not possible for Google TV IIRC.
Or do we need to use a special keyboard that only has alphanumeric buttons on it?
Not only do you need that, but you would have to get one that works with the device (not sure if a standard Bluetooth keyboard will work), and then you will run into problems with missing buttons like BACK and MENU. You might be able to engineer around those missing buttons by having adequate navigation in the app to avoid users needing them.

Categories

Resources