Android :: "Removedialog" When Displaying 2 Dialogs At Same Time
Oct 28, 2010
In the method "OnCreate" of my actvity, I'm displaying a little progress dialog while loading data. It's done every time the "OnCreate" method is called so even when the screen orientation change. In the nominal case, there is no problem even if the user change the screen orientation.
But, if the user opens another dialog (used to select an item in a list), then change the orientation, the progress dialog is displayed behind the "list" dialog and is not impacted by the "removeDialog". Do you have any clues on that behavior?
View 1 Replies
Sep 24, 2010
I'm currently learning android and java, and I am having some issues with importing a java file.
I am working with the time and date example in the android api demos, and I want to put all the code relating to creating the time and date dialogs setting the values etc into a separate java file, and in my main java file run when the application starts, just declare the buttons and onclick events.
What is the best way to do this? Do I need to put all the code inside a class(that extends activity) or method? How do I use this inside my main class. Code...
View 1 Replies
View Related
Apr 6, 2009
I want to display the status of the activity execution on the screen using the TextView while activity is executing. I am appending the String messages at different stages of execution in the TextView, which is defined in the Layout main.xml (e.g. TextView.append("Server started..").
For e.g. I am running socket communication application in which my android application is the server and it is receiving the messages from the local desktop. So in this application I want to show "Server started.." message when socket server on android started , then a messge "waiting for message.." and then "message receivied.." when message received by android server.All 3 steps are the part of a single activity.
But in my case, I am getting all 3 messages at a time after activity execution completed. Is there any API available, using which I can show the status during the execution also.
View 20 Replies
View Related
Apr 7, 2010
I just did a search for this and came up with nothing. My clock is displaying Pacific time, normally this wouldn't be an issue but I'm on the east coast. Does any one else have this issue? Is there a setting I'm missing? When I click on the clock it brings me to World Clock. The Current time is three hours behind, the Home time and New York time are both correct.
View 2 Replies
View Related
Dec 9, 2009
Does anyone know how to change it to display regular time?
View 4 Replies
View Related
Oct 25, 2009
I just wanted to pass this along; You can take it for a grain of salt, but I came away impressed. I decided to make a call to HTC (the number is on their page, if you go to Support and "Hotline" the number is there) to discuss a few of the hardware/software issues that I, as well as others on the board have been experiencing. First off, my wait time was about 3 minutes. Very short, so that was a good start. I spoke to a representative named Jonathan (a woman). The topics I asked about:
1. Why Gmail messages do not show up in the "People" application under the contact's card who sent the email.
2. Some questions that I had about managing memory and the best way to exit a program.
3. The clock widget displaying incorrect time, and the new issue that appeared with the clock today (possibly brought about by some DST error).
4. What happens when you "Clear Data" from the RAM using the "Manage Application" menu.
I began the conversation, which lasted about 40 minutes, asking about the Gmail issue (#1) as that was my biggest query, but added on the others as the conversation went on. She did not know exactly what I was talking about, as she hadn't heard that complaint before. Instead of just saying, "uhhhh, yea, I don't know what to say" or try to spout off some half-assed solution only to get me off the phone, she actually took the time to look in some of their documentation, and when coming up empty, grabbed a new phone, set it up and tried to replicate the issue. At no point in our conversation did she sound like she was saying stuff just to "get by" or end the call. She actually sounded as if she cared......
View 19 Replies
View Related
Mar 5, 2010
I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when they are being showed if I change the orientation of the mobile I lost them...they are not being kept on the screen.
View 13 Replies
View Related
May 31, 2009
I have 6 options to put in options Menu, but 3 of them are not so important and i want to hide them in submenu. All of my Activities are started from one ActivityGroup which creates Menu on MENU button press. Problem is that when I open SubMenu or Dialog (which is created and displayed by ActivityGroup) my current foreground activity makes onPause, onStop and onDestroy, and when I close this submenu (using "back" key) or dialog (by "ok" button for ex.) I don't have any response (onCreate, onResume) from any of my activities registered in LocalActivityManager.
View 3 Replies
View Related
Feb 8, 2010
I decided to share the solution i found to the problem of Android not supporting real modal dialogs.The solution was to draw the dialog by myself. :-( Well, at least worked fine, besides the problem that its a bit ugly.
View 17 Replies
View Related
Apr 26, 2010
I have tried to make a series of dialogs, like a questionnaire, that the user needs to answers a series of questions selecting one or more checkboxes. I can do one, just fine, but when I try to make more than one question (lets say 10), it does not show, or show all the dialogs. I tried using dialogs or new acitivities.
So, my problem is I have multiple questions, one to be presented each time, and I need to wait for one to be responded so I can ask the next one. How do I accomplish this?
My first attempt was with a dialog box... but obviously it got all the boxes stacked in each other:
CODE:.................
View 4 Replies
View Related
Feb 5, 2009
I intended to show a dialog in a service process, then I tried to use the AlertDialog but got the below error message: WindowManager$BadTokenException: Unable to add window -- token null is not for an application The reason seems to be that the dialog is not used in a application context (activity should be fine?) Was there any way that can solve this problem?
View 2 Replies
View Related
Jul 14, 2009
I'm facing the same head-scratching moment similar to what this person (from Jan 2008) experienced when I realize that there is no cancel button in Android's progress dialog or spinners. It is now July 2009 and I've just installed the cupcake version of Android. Has this thing changed ? If not, are you adding a cancel button into the dialogs and how do you do it ?
View 4 Replies
View Related
Sep 24, 2009
I wonder what is the right way to implement this? Could anybody advice whether my solution is correct?
So:
Activity is created
User clicks on button and dialog is launched (Dialog, not dialog styled activity)
User opens keyboard
we have onSaveInstanceState called where we save that our dialog was opened and all respective dialog input
we have onRestoreInstanceState and here we check whether dialog was shown, recreate the dialog with respective input.
Is it the right approach? or there is smth. that is done by Android and I am doing some redundant actions.
View 2 Replies
View Related
Jun 25, 2010
I use the AlertDialog class in my application. By default, these alert dialogs have a transparent background. I'm trying to use an opaque background instead, very unsuccessfully.
These are my styles:
CODE:....................
I applied the "MyOpaqueActivity" style successfully for whole activities (the window background is changed to "my_background"), but it doesn't work for alert dialogs within those activities. The "alertDialogStyle" attribute and my "MyOpaqueAlertDialog" style don't seem to have any effect.
So how can I change the background of these alert dialogs?
View 2 Replies
View Related
Jul 22, 2010
I am trying to create a map application and I need to do something similar to what Google Maps does. I want to open show a list of locations and when user taps on them I want to show a dialog.
I was able to do it till here. But now when the user clicks on the dialog that opened I want to show another acttivity with the details of that item that they clicked on.
I tried to start a new intent but it gives me an error.
Here is what I am doing
CODE:..................
Here is the stack trace
CODE:........
Why am I getting this error and how can I resolve this and open a new activity? Also where can I find the source code for the google maps on android?
View 1 Replies
View Related
Sep 30, 2010
In my activity, I show a dialog under some condition like this:
CODE:.......................
My question is what do I need to do to ensure there is no resource leak? From the logcat, i see there is a case where it said a window is leaking or something like that.
View 1 Replies
View Related
Jul 29, 2010
I've read on Reto Meier's blog that he doesn't recommend the use of modal "Loading" dialogs in Android applications. Is this a general consensus among developers? If I have a login screen what should I display when the user tries to sign in? Until now, I have used a "Signing in" indeterminate progress dialog. Should I use the application's progress bar? Should I use a Toast? And, in the general case, when should I use dialogs and when not to?
View 1 Replies
View Related
Nov 18, 2009
I am rendering an EditText as one element of a list-style AlertDialog (which is backed by the default ListView implementation). I sort of expected that this circumstance would not change the behavior of EditText, but it does: a click on the EditText does not spawn the soft keyboard anymore.
After an hour of messing around with focus settings and click handlers I got fed up and debugged into InputMethodManager.showSoftInput(), and found this:
CODE:....................
The problem here is that mServedView is the ListView that's backing the dialog, while view is the EditText, and ListView.checkInputConnectionProxy() does simply return false in the default implementation of ListView (to be overridden by subclasses).
Worse, I couldn't find a way to set a custom ListView which allows proxying IME reuqests; AlertDialog.Builder.setView() accepts a custom ListView, but this is not the ListView that InputMethodManager sees.
View 2 Replies
View Related
Jun 22, 2010
i want to display a dialog in my android application where certain TextViews in the layout need to have content set during runtime. while showing the dialog itself is no problem at all, accessing the TextViews via TextView.setText(String) crashes the application.
View 2 Replies
View Related
Sep 17, 2009
I've had this problem in a few different apps now and I can't seem to find a solution.
If, in the onCreate() of an Activity, I start an activity that uses the dialog theme it doesn't draw anything to screen... the whole screen stays black. All the views are there (e.g., I can tap where an EditText should be and it'll give me the keyboard), they're just not visible. code...
View 2 Replies
View Related
Jun 13, 2009
Does anyone know how to make a dialog fill the screen width in landscape mode? Setting the layout's width to fill_parent doesn't do it. It always comes up portrait width, or something suspiciously similar.
View 3 Replies
View Related
Feb 14, 2010
I have HTC Hero, and i see that TimePickerDialog and DatePickerDialog were changed by HTC (they look different than those in the emulator). My question is how can i change such system level dialogs?
View 1 Replies
View Related
Mar 31, 2009
I am rendering a ListView inside a dialog. The ListView elements are very simple TextView objects. The problem: whatever I do, they never take the full width in the list view, which has the side effect that the list view selector only covers the actual text, not the whole list entry (i.o.w., if the text of the entry is much smaller than the width of the listview/dialog, then only a tiny portion of the list element is highlighted when focusing it).
View 3 Replies
View Related
May 29, 2009
My calls to getFromLocationName() always fail the "first" time I start my app. I catch the IOException which has reason:
Unable to parse response from server
Then I make a second call and it succeeds. Once things are "awake" all future calls to getFromLocationName() succeed, it's just that first one, and there is a ton of latency.
I haven't run this on a device yet, just in the emulator. This seems like a network problem, but it is so reproducible I'm thinking I'm not initializing something properly. I'm using Android SDK 1.1.
View 2 Replies
View Related
Aug 29, 2010
How can I make progress bar to measure time (pause/playing/total time) of different video which is streaming from website?
View 2 Replies
View Related
Nov 1, 2010
I am getting a date/time string from web in the format of "yyyy/mm/dd'T'HH:MM:SS'Z'" and it is in UTC. Now i have to identify the current time zone of device and then convert this time to my local time. (FYI, Currently, UTC time is 10:25 AM, in india current time is 3:55 PM)
View 1 Replies
View Related
Aug 25, 2009
at the moment I am thinking about a new app and need some information to decide whether to develop on Android or an alternative OS. I am particularly interested in "time to first screen", "boot-up time", "time to first Audio" and "app-start" (can be any from the android market or even one of the pre-installed ones) time? Does anyone know a source or perhaps measured those numbers?
View 9 Replies
View Related
Jul 12, 2009
I want to develop a game, so I need to know elapsed time at lots places in my game. For example, to measuring FPS. I see there is some example use "System.currentTimeMillis" to measure elapsed time. But I see the warning on document: http://developer.android.com/intl/zh-TW/reference/java/lang/System.ht... "This method shouldn't be used for measuring timeouts or other elapsed time measurements, as changing the system time can affect the results." So, if this method should not be used for measuring elapsed time, then what will be suitable?
View 2 Replies
View Related
Nov 11, 2010
So I wanted some DigitalClock help. I have set up a digitalclock, and here's what I want to do. Once the clock hit's a certain time, perform an action. How can I control the actions on the digital time to check for a certain time?
View 2 Replies
View Related
May 17, 2010
Is there any android widget that enable to pick the date and the time at the same time ? I already use the basic date picker and date picker:
http://developer.android.com/guide/tutorials/views/hello-timepicker.html
http://developer.android.com/guide/tutorials/views/hello-datepicker.html
but they are not that sexy and user friendly (I found). Do you know if a widget including both date and time exists? Thanks a lot,WW.
View 1 Replies
View Related