Android :: PopupWindow To System Desk Or Other App?
Sep 17, 2010How can i put my PopupWindow to system desk or other app? how can i use this permission:INTERNAL_SYSTEM_WINDOW
View 2 RepliesHow can i put my PopupWindow to system desk or other app? how can i use this permission:INTERNAL_SYSTEM_WINDOW
View 2 RepliesI intend to show this as a dropdown just below the button that drops this down.
View 2 Replies View RelatedI am having a similar issue while trying to use a GridView in a PopupWindow. On my Activity's onCreate method, I am inflating a gridview from xml as follows:
CODE:......................
I would like this GridView to popup on a button click. Also inside of my activity's onCreate,
I have:
CODE:............
On button click, I am throwing a ClassCastException from GridView.onMeasure(int, int).
http://img139.imageshack.us/img139/1203/devicei.png
I've seen this in a few apps, and i have expiremented with both PopupWindow, and AlertDialog and I was confused which this was.
I looked online and was not able to find a working example of the PopupWindow class. The code examples I found online either compile but do not work, or are using methods which have since been removed (such as Activity.getViewInflate()). Is there a simple working example that displays a PopupWindow?
View 3 Replies View RelatedI am trying to make a PopupWindow show straight away when an activity has started.
when calling public void showAtLocation (View parent, int gravity, int x, int y)
I get the exception ERROR/AndroidRuntime(2500): Caused by: android.view.WindowManager $BadTokenException: Unable to add window -- token null is not valid; is your activity running?
At the moment I am calling from onCreate, but when calling from onStart or onResume it still gives the same error.
The activity api says the activity is supposed to be running after onResume is called. Where is the best place to load up the PopupWindow if it needs to be done straight away?
At the moment It looks like Activity.onWindowFocusChanged() is the best place.
I've experimented with a PopupWindow, but don't have a very good way of controlling its size. It only responds to absolute pixels.
View 3 Replies View RelatedI put an editText on a PopupWindow and it's not working. It acts like a disabled edit text, clicking on the edit text won't show the soft keyboard. How can I add an edit text on a popupWindow?
View 2 Replies View Relatedi tried to use my popupWindow with some enter/exit animations - it has setAnimationStyle() method for that purpose. after some time i realized i cannot use my own custom animation styles which is ok but a bit limiting. so i tried system ones: R.style.Animation_Toast works ok, but R.style.Animation_Dialog doesn't. looking at xml definition files i found that Toast animation uses simple alpha animation and Dialog animation is a set of alpha combined wit scale animation. is it a problem for WindowManager to deal with complex animations?
View 3 Replies View RelatedI have a gridView that I display in a popupwindow (the gridview is in a transparent layout, which inherits from linearlayout and just has a partially transparent background). I can never get this GridView's OnItemClick to execute. When I touch an image in my gridview it appears to be clicked (image bachgrond changes), but OnItemClick is not being called.
Below is the code for my Adapter and my popupview containing the gridView.
CODE:................
I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip:
CODE:.....................
When the activity started, I can click the button to show the popup window correctly. But after that, nothing happens when I touch the popup window's view. But if I touch any where outside the popup window, the log Log.d("Demo", "layout::onTouch >>> view: " + v + ", event: " + event); will work.
It looks like when I touch the view of the popup window, the touch event has been consumed somewhere?
I've created a custom PopupWindow but when I press back button, the window doesn't dissapear.
View 3 Replies View RelatedI am displaying google map and on top of that some overlay items(Markers) are there. When tapping on the markers, I need to display PopUpWindow. The code is executing but popup is not displaying.
popUp.showAtLocation(layout, Gravity.TOP, 0, 0); popUp.setFocusable(true); popUp.setTouchable(true); popUp.setOutsideTouchable(false); popUp.update(0,50, 320, 70);
Here layout is an object of LinearLayout.
I created another android application, in that, I put the above code and its working perfectly. PopupWindow is displaying.
I am using PopupWindow class and on PopupWindow i have one EditText,my problem is that when PopupWindow is visible and i click on EditText at that time Soft Keyboard is not visible and i am not able to enter Input. So anybody tell me how to solve this problem?
View 2 Replies View RelatedI would like to be able to either blur or dim the background when I show my popupwindow using popup.showAtLocation, and unblur/dim the background when popup.dismiss is called.
I have tried applying layout params FLAG_BLUR_BEHIND and FLAG_DIM_BEHIND to my activity, and this appears to just blur and dim the background as soon my app is started.
I am having an issue while trying to use a GridView in a PopupWindow. On my Activity's onCreate method, I am inflating a gridview from xml as follows:
CODE:.........
Would like this GridView to popup on a button click. Also inside of my activity's onCreate,
I have:
CODE:...........
On button click, I am throwing a ClassCastException from GridView.onMeasure(int, int).
Is there a good desk clock with adjustable brightness and potentially themes? I would really like something too use at night since the EVO has this handy kickstand.
View 5 Replies View RelatedI want the HTC Desk Clock Widget (the one with great weather animations, etc) on my Droid X. I was thinking it would be easy, but I'm guessing I'll have to "root" both devices. In lieu of that, does anyone know of a Desktop Clock app WITH weather that actually works properly on the Droid X. The one I purchased the other day (and since returned for refund) (from "Apps4Cause") was virtually non-functional.
View 1 Replies View RelatedI know the Nexus One and the Incredible are are very close, but can someone confirm that an Incredible will work in a Nexus One car dock and desk dock?
Thanks
Generally while I'm at work my Droid sits on my desk, leaning up against my laptop. Usually I have it plugged in to the USB cable so it can charge while I'm using my computer.
I'm at my desk for approximately 4 hours out of the day.
What app should I be running while it sits there so I can see something more interesting than my finger prints reflecting back at me?
Is there a way to get a desk lock that goes into landscape and has weather? Similar to what was on the droid in the dock?
View 14 Replies View RelatedI'm looking for an app like Desk Clock, but something that displays more information, especially text notifications. When I am at work, I like to have the phone on my desk, with the kickstand, and just having the Desk Clock app running. Is there any other application that lets you see some good info while in landscape mode? (If the 'scene' UI let you see them in Landscape, that would be the best solution...)
View 9 Replies View RelatedMy desk clock goes away when my 30 second screen time out is reached...i assumed that would be deactivated when using the desk clock...how do i use this and keep it on the entire time?
View 6 Replies View RelatedAnyone figure out how to get out working? Double tap home gives voice command and holding search gives voice search and no way to change default.
View 1 Replies View RelatedI put my phone on NPS and saw that there is an update. I was so happy and hit "Update" button fast. After downloading, phone reset, boot starting but no desk apearing. Only "SAMSUNG" word flashing on screen. There was no reaction on buttons. Battery out and in, phone boot and same thing happens. Try updating again but NPS said that cannot recognize the phone. Recovery button is disabled. After short browsing on this forum I saw some that there is combination of three buttons for turning on download mode. I try that and it works, but didnt do anything before thinking and some consulting here. What are my options now? Personaly I would like to have official update, if not then roll back is good option, if not what can I do to hack my phone without loosing any too much options on my phone?
View 10 Replies View RelatedWith the kickstand, the phone makes for a great desk clock when I'm just sitting at my desk. I was wondering if you could recommend other apps that would be useful while my phone is idle? A better desk clock, besides the stock HTC one? Weather? News ticker? etc.
View 2 Replies View RelatedI got my Inc about 2 months ago and at first I thought this was just a fluke, but it's happening all the time. Basically, if my phone is sitting flat on my desk and I get a call, the phone will ring for about a second before going silent. It still vibrates and still wants me to answer the call, but the ringtones have stop.
I even experienced this today driving in to work. The phone was sitting on my leg when I got a call. Same problem. Rang for a second and then silent. If I am holding it or it's in my pocket, it seems to ring without any problems. That "silent ring on pickup" or whatever option in the settings is not selected and I don't believe I have any sort of app installed that controls the volume of the phone.
Anyone got a fix why the 2.1 desk clock app or cradle is only showing the temperature in Celsius. I have unchecked the Celsius icon in the settings but no luck. If i tap the Celsius weather is shows the temperature in Fahrenheit.
View 4 Replies View RelatedAnyone know of a way to stop the desk clock app from disappearing once the screen time-outs? my screen i currently set to time-out after 1 minute which ideally i don't want to change. however, what i'd like is for the desk clock to display when my phone is on my bedside table during the night. at the moment i lose the clock as soon as 1 minute has passed which seems to make this app quite pointless. Ive tried using an app called 'keep screen' but found this to be a little annoying
View 16 Replies View RelatedSo the default Sense clock widget has a mode called desk clock, and it basically switches the entire screen to a black background with a digital clock on it. It's simple, but I like the idea for when I'm sleeping or working on the computer or whatever. Thing is, the screen still times out and locks itself at the normal length of time, which makes the mode pretty useless. Does anyone know of a way around this, or is this really feature really that poorly planned?
View 11 Replies View Related