I'm trying to create an app that will display a video in a VideoView in a transparent activity but keep the touch focus on any underlying activity. For example, if I have one app opened and my app is launched, the video will show but the user can still interact with the app they were previously viewing. I have the transparent activity and video working but I can not find a way to keep interaction in the activity under mine. Please tell me if this is possible and how to do it. Thanks
Matt
Set WindowManager.FLAG_NOT_TOUCH_MODAL for your transparent VideoView Activity Window.
By doing this, it will by-pass the touch events on the area outside of your activity to the previous activity.
Related
about android capture.
The function of the application is that when you press a specific button,
One overlay button located at the top of the home screen of the device is generated.
When I press the overlay button, I want to capture the screen of the device I'm currently viewing, not the application screen.
I want to capture the top screen, but only the activity done by the application is captured.
How should I capture the screen I'm currently viewing?
I tried researching this problem for days before but I do not think that it is possible. Then I have an idea that instead of try to screen shot "outside" of app, we can use Service to keep our app alive, make back ground transparent and detect screenshot action of device. You may want to try com.abangfadli.shotwatch
I have made a torch/Flashlight app on android studio (which is working perfectly fine), what i want is to open the flash light just by clicking the app button (without opening the app). can anyone upload the source code.
Please be clear and thorough.
you can use transparent theme for the MainActivity and when activity start, turn on flash light and finish the activity! and nothing was showed to user!
you can use this link transparent theme to know how define transparent theme.
I think it isn't possible to enable flashlight by only clicking the app icon because app icon always refers to an activity.
But you can make a widget. It's well described on:
http://www.vogella.com/tutorials/AndroidWidgets/article.html
In detail, I want to know if it's possible to take the output from a running Android app and pipe it to the to the background of the display. In other words, have the background wallpaper update itself dynamically.
No you can't do it this way. The reason is because Android starts your app with an activity (unless your app is just made up of services to run in the background for other apps to call). Whenever your activity starts, it comes to the foreground and receives user focus. The Android documentation states that if the user performs an action that starts another activity or switches to a different app, the system calls another set of lifecycle methods on your activity as it moves to the background. At this point, the activity is no longer visible.
The closest concept to what you are trying to do is a live wallpaper but that is a service and is a different paradigm.
I am developing an app which takes picture in background.
but it uses a preview layout which is attached to an activity.
actually i need it as plugin which do not show preview. and camera app i have developed using class which extends an activity.
i wonder how can it be possible to make it without using an activity or preview layout.
please help on this matter.
You can hide the preview layout.
layoutname.setVisibility(View.GONE);
I am currently working on a calculator application for android. I am finding it difficult to conveniently take a screen shot of the app. So i have put my calculator on pause so I can write a simple screen shot app. It runs in the notification bar and when you click the notification the notification bar slides away and a few seconds later a snapshot is taken. This works perfectly. Now I would like to add functionality to take snapshots even for full screen apps. I have seen apps that put a sliding drawer on the screen onto of whatever app is running. That is there is always a button on the screen no matter what you are doing that when you click/drag it that sliding drawer came out. How did they do that? It should be a simple process to use a button instead of a drawer and when it's clicked hide it, snapshot and unhide it.
So my question bsically is
How can i put a usable button on the screen that stays above whatever app is running, even the homescreen
I realize I'm not answering your question directly, but if you simply want to get a screen capture of your application running, I would use ddms in your android tools directory. It has a menu option for getting a screen grab. I use it frequently.
Just go to Device > Screen Capture
More details here :
http://developer.android.com/guide/developing/debugging/ddms.html