I want to show the popup in mapsactivity but it shows the error. so help me to get from this
initiatePopupWindow(getWindow().getDecorView().getRootView());
popup function
private void initiatePopupWindow(View view) {
try {
//We need…
I have made Activity which will popup on click of button. I have to add listener on Image Button. I have made the design in XMl but I want to design programmatically.
This is my image of xml design.
I have an Activity with two PopupWindow, one a popup calculator which works fine, I can only dismiss it via clicking the close button and that is perfect. The second window (we'll call RW) has two EditText to input numbers, which may be got using…
I have a broadcastReceiver which creates a popup on top of all of apps using WindowManager.
I got this working but the problem now is when the popup is opened it's impossible to tap on the activities which are on the back of the popup. it's felt…
I am beginner in android and try to make an app that popup a menu when imageView is clicked. Actually it works but popup at right side and I want to be at center.
So, I searched for it on web and come across ListPopupWindow, PopupWindow…
I started a project with many UIs. This leads to have a tutorial screen. Therefore, I built a popUpwindow for the first use.
But I had some troubles with popupWindow. I added the following code to create it:
SharedPreferences sharedPreference14 =…
Working on a lockscreen app I see a very strange behaviour: showing a ListPopupWindow forces the soft keyboard to close. This happens only on a "lockscreen" activity (activity window flags are set to FLAG_SHOW_WHEN_LOCKED|FLAG_DISMISS_KEYGUARD) and…
I'm trying to customize popup menu but failed to customize. I had tried many suggestions and solution but no luck to achieve this.
Please check and suggest me where I'm wrong...
I want to Create Popmenu like this:
And I've tried these codes:
public…
I've got a promblem with Android app.
I use this code to hide navigation bar.
public class Initer {
public static void fullScreen(Window window) {
if (Build.VERSION.SDK_INT >= 19) {
View decor = window.getDecorView();
…
I am showing a popup window , if i initialize it as follows :
popupWindow.setBackgroundDrawable(new BitmapDrawable());
popupWindow.setFocusable(false);
And
@Override
public void onBackPressed() {
if (popupWindow.isShowing()) {
…
This is a question similar to many others regarding BadTokenException: Unable to add window - is your activity running?
In short I have a popup that has two Spinners. When I click on them in the emulator everything works fine. However, when using my…
I want to detect if any otherapp going to draw over my activity, I tried with this Answer but no sucesss, can any body help me get notification when activity got obscured by any other view like face book chat head etc.
UPDATE
The following works on API 26 but it crashes on API 23.
Does anyone know why this is the case?
Also, any workaround?
I really need your help with my android development.
What I want to do is have PopupWindow.
Inside the popupwindow, there is…
In an Android activity I'm using a CountDownTimer as follows:
timer = new CountDownTimer(time, 1000) {
public void onTick(long millisUntilFinished) {
timeView.setText(String.format(Locale.getDefault(), "%ds",…
I am hiding keyboard on click on the edit text which is an anchor view to list popup window but the list is shown at a wrong place not on the required anchor view. But it works perfectly fine if the keyboard is already hidden i.e. the list is shown…