Bringing activity infront of the callscreen - android

I've created an application which shows a dialog when phone receives a call from a number starts with particular string. To achieve that I created a transparent activity and created a dialog like UI. It works fine on the emulator because emulator shows stock caller UI. But for the real devices it has a full screen UI for the caller screen which hides my transparent activity. Is it possible to bring that activity in front of the caller screen.

I solved this issue by getting request from user to overlay on system UI and my transparent activity is overlaying on it

Related

Transparent activity like dialog without previous activity under it

I want to show transparent dialog-like activity when my app goes to background. But after it shows I can see the last running activity underlaying. Can I show only my transparent activity without finishing previous?
I found solution. I have been used System alert instead Activity.

Android Wear: Custom notification layout cleared before transition

I'm using a custom notification layout on Android Wear by setting
WearableExtender.setDisplayIntent()
When the user taps this layout, I break out into a full screen activity on the Wearable. The custom activity embedded in the notification stops and clears before the new fullscreen activity is shown with a slide in transition. This leaves an ugly black box inside the notification container that used to be filled with the embedded activity. The same thing happens when swiping to close the full screen activity - the crossfade transition shows the empty notification container during the transition, and only restarts its embedded activity afterwards.
Is there any way to prevent this from happening? I can start the fullscreen activity with the FLAG_ACTIVITY_NO_ANIMATION flag, but that doesn't solve the issue when swiping to dismiss it, and ideally I'd like to keep the transitions.
I tried setting the theme for the fullscreen activity to translucent, hoping it would only pause the previous activity instead of stopping it, but it was still stopped and cleared.

Pop up activity closes on touch event in some phones

I have a strange problem. im developing an app which overlays the incoming call screen. I have achieved displaying the popup window and everything works fine also i can access the receive and disconnect call controls below the pop up window on my galaxy s2.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL);
i've set the flags on my window to achieve the desired effect. But the while running the same code on galaxy s3/note 2. whenever i touch the screen anywhere my activity disappears! i have written methods to perform different actions on if the call is picked up or dropped. But i can never call those methods as the activity destroys itself just upon touch at any point of the screen.

Get access of launcher screen while showing activity content?

is it possible to get touch access of launcher while showing activity?
while activity covering only quarter of screen area only.
as i said make an activity layout which cover quarter area of screen, I added flag for activity getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE, PixelFormat.TRANSLUCENT);
it works :) to get access of launcher screen, even my activity is open. I notice another one thing i m not able to get click event on launcher, nor getting focus from my activity to launcher, it's just giving me touch event on launcher.
any one have idea over this, how can i get focus from my activity to launcher or any open application.

Android - how do I bring my activity to foreground automatically from Address book

Following is my scenario,
My Activity is running on the foreground and my Activity is getting pushed to background when I hit on the home button... I am trying to display the pop up at certain intervals, in this case as my activity is running on background when I try to display the pop up but thats not shown on the foreground.
Thanks,
Ramesh
You can't show modal dialogs that way. Use Android's notification system instead.

Categories

Resources