how to keep a totem app always in the foreground? - android

I have a demand for a product, but I don't know where to start to research it.
The idea is to create an app for a totem of an establishment.
It should always be in the foreground and the customer should not have any way to leave this view.
Besides when I open the OS he should already open the app.
Does anyone have any idea how I can follow this idea?
App for android.

Related

Launch your own application starting the camera app

I'm just looking a way to launch/open an application automatically every time the camera app starts! I know it will something to do with intent. Does someone has some examples to forward to me? I'd also like to add a toggle withing my application settings to enable/disable automatic launch on camera app opening.
Thanks allot, Diego
If you give an example of an app that does something similar to what you described, then maybe we could understand what you mean if we misunderstood.
The fact is, if I understand your question correctly, you want your app to start whenever a user hits starts the camera app on android.
As CommonsWare noted, this is not supported. It would require you to have control over the code behind the Camera app, and even then I'm not sure if you can start other apps from a given app (I believe you can, as I've seen this behavior before)
Short answer is: you can't. You might be able to start the camera app from your app however, but that is a different question.

add another app inside my app?

my goal is to get a video from a usb connected device (an easycap video grabber) displayed. There is already an android app that does exactly that. However i need to add some buttons and some extra functions to it. So i came to the idea of displaying the app that already exists inside my app. Is that possible in any way?
I already tried to decompile the existing app to edit the code a bit but i didn't get anything to work with.
Do you have any other idea? If you know how to program that please let me know what i need to achieve that.
Thank you!
This cannot be done due to security reasons in the Android OS itself.
Android provides a security layer called the Sandbox in which the OS assigns a User ID for each app, so that an app will not have permission to access resources from another app.

How to prevent a particular application like YouTube from starting?

Basically I want to prevent a particular application from starting. A further question may be related to the Android internal behaviors from clicking application button to application running. Help clarifying each internal step will be highly appreciated.
Put it in detail: When the user clicks 'YouTube' button on the screen (assuming YouTube has not been started by far), who gets to know first this particular click is YouTube? Also, I think finally Zygote will spawn a new process representing YouTube, and this process will be written in process table in kernel. Should I let Zygote know this is an application that the user should not start?
If the user starts an app by clicking on an app icon per default you won't be able to intercept it.
You might be able to do something if you made your own launcher application which had it's own shortcuts to all apps that reside on the phone. That would be my best suggestion to a possible work around.

Android App, how to run without GUI?

How do I create a simple app that runs a method or activity without actually opening a gui?
I have the coding for the app already.
For example, a task manager on android I have has an icon that you push and it terminates apps running in the background without having to open an app and then pushing terminate manually.
Do I just remove the layout or do I need to have more than that?
Sorry for using the wrong terms, I'm still learning.
Thanks
Ran into your question by chance, I'm learning on the go myself. But it sound to me you maybe should consider making a service, and not an activity that has a layout. A service can work in the background and interact with other applications, which seems to me is your case.
Android Service API http://developer.android.com/reference/android/app/Service.html
Good luck!

Regarding Multitasking in Android application

I want to launch more than one application at the same time.Like one application should run in the background when a new application is started, and I have to switch between those two application.
If anyone having the code to do this please help me.
Give some website links to know about the multitasking in android and how to achieve it.
If you want to run something in the background, you have to use a Service. Services are not killed except in extreme memory situations. Read the Application Fundamentals for more information.

Categories

Resources