Android :: Modal Dialogs Definitive Solution

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.

Android :: Modal Dialogs definitive solution

Android :: Modal Loading Dialogs Not Good UI Decision?

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

Android :: Definitive Ad Mob

Nov 16, 2009

After searching their website, all of the message boards and googling it to death - I have formed only somewhat of an answer to the following...

1. How much does Ad Mob pull if a user simply loads your app

2. How much does it pay if they click an ad

3. What is an average Ad Mob income in a given month (for a single app)

4. Preferred method : (a) Ad Mob (b) Make it a paid app

Fully aware that Android apps aren't exactly cash-cows, but a little extra income never hurt anyone, trying to figure out a planned implementation to acquire such.

View 4 Replies View Related

Android :: How To Popup Modal Dialog

Jan 17, 2010

I am new to Android. How do I popup modal dialog? By modal I mean I call something like showModalDialog function and it will not return until the dialog is closed and I can get what button was used to close the dialog.

View 12 Replies View Related

Android :: Looking For Definitive Location Finding Logic

Mar 31, 2010

I am looking for a tutorial that explains the logic for fast, robust location finding.Basically I am sick of Google Maps finding my location so incredibly fast and accurately while my own application struggles to get a location.I would be fine with pseudo code responses and I will explain what I am doing so maybe I can be shown what I am doing wrong.

1. Get the locationManager object.

2. Do a 'get best provider' call.

3. Get a list of all available providers.

4. lm.requestLocationUpdates(bestProvider, 0, 0, this); hit the location provider as much as I can to get my first signal

5. Send a delayed message.If a location cannot be found in 10 seconds, switch to a different provider and try again with lm.requestLocationUpdates(nextProvider, 0, 0, this);

6. Repeat step 5 until I have a location.

7. Once a location is found determine if it is the most accurate provider.If it is not try again with the most accurate provider on an 8 second delay.If it is the most accurate provider then set lm.requestLocationUpdates(currentProvider, 30000, 0, this); to conserve battery

8. Make sure to lm.removeUpdates(this); before changing the requestLocationUpdates

Now it occurs to me that it may be possible to iterate through my list of providers and do requestLocationUpdates for all providers at once.Is this a viable option or can you only listen to one provider at a time?I have seen that location from onLocationChanged has getProvider()to let you know who provided the location information so that I can know which provider is actually finding a signal and turn off the others.

View 5 Replies View Related

Android :: Use ListPreference Modal View In ListActivity?

Mar 2, 2010

I am trying to put together a modal box with a scrollable list of checkable items and an OK and Cancel button at the bottom for the user to select filters from. It seems the simplest way to do things like this in Android is to reuse API components (widgets, layouts, etc) and the closest one I can find to this looks to be the ListPreference, which basically does exactly what I want (I can even work with storing the data in SharedPreferences). The problem is that I'm not launching this modal box from a PreferenceActivity, but rather will be launching it from either of two activities: a ListActivity and a MapActivity.

View 1 Replies View Related

Android :: Force Dialog Themed Activity To Be Modal

Feb 11, 2010

A button on our screen causes an activity to be shown that has a "dialog" theme. We are having an issue were if you click the button quickly twice in a row, the dialog activity is opened twice.

Typically I would expect that when a new activity is started, the underlying activity is immediately stopped, and thus accepts no further input.

However, since the dialog themed activity does not take over the whole screen, I think the underlying activity is only paused, not stopped and thus the buttons are still accessible.

Which brings me to my question... Is there a way to force the dialog themed activity into a modal state where the user can't click the buttons on the activity below?

I could probably manually accomplish this by disabling everything in onPause, and reenabling it in onResume, but this seems like a lot of work!

View 1 Replies View Related

Android :: Create A Modal Progress Wheel Overlay

Mar 9, 2010

I would like to show a modal progress "wheel" overlay on my view.

The ProgressDialog comes closs, but i do not want the dialog background or border.

I tried setting the background drawable of the dialog window:


But to no avail (i.e. still looks the same as without the ...setBackgroundDrawable code).

View 2 Replies View Related

HTC EVO 4G :: Is There A Definitive Way To Prevent OTA Updates?

Nov 17, 2010

This is my first post on this board and I wanted to express a great deal of thanks to everyone for the wealth of information avaiable.I recently rooted my EVO and installed Myn's 2.2 ROM which I am extremely happy with.There is NO CHANCE I would have done this without all the great info here.I have looked for this information and am a bit overwhelmed - this is the first phone I've rooted, so I am proceeding extremely carefully with all the things I do with it.I can't seem to find a definitive answer how to prevent OTA updates entirely.I'm not even sure I have to worry about it since I have a new ROM installed.The last thing I want to have happen is to wake up some morning and suddenly my phone is unrooted with a new version of Sprint's ROM. I am perfectly happy waiting for custom ROMs to come out with feature changes (for example, Gingerbread). If I never see an OTA update prompt again, and I can be sure it won't apply itself without my intervention, I'll be happy as a clam.

View 4 Replies View Related

Android :: Android - Modal Dialog With Changelog For App Shown Only First Time After Install

Sep 7, 2010

A lot of Android apps now display a modal dialog with the changelog (text) of the application (what's new in the latest version) the first time after it is installed or updated.

Does any one have example code on:

How to display a nice modal dialog suitable for scrollable text

How to make sure the dialog is only shown once

For 2. I assume SharedPreferences can be used for defining a preference "hasChangeLogBeenShownForVersionX" that is updated after the dialog has been shown. (though there might be a better way

View 2 Replies View Related

Android :: Dialogs On A Change Orientation

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

Android :: SubMenu - Dialogs And ActivityGroup

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

Android :: Multiple Choice Dialogs - Activities

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:


View 4 Replies View Related

Android :: Show Dialogs In Service Process?

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

Android :: No Cancel Button In Progress Dialogs?

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

Android :: Save Instance State For Dialogs?

Sep 24, 2009

I wonder what is the right way to implement this? Could anybody advice whether my solution is correct?

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

Android :: Change Background Of Alert Dialogs?

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:


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

Android :: Opening Another Activity From The Map Overlay Dialogs

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


Here is the stack trace


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

Android :: Clean Up All Dialogs Show By My Activity?

Sep 30, 2010

In my activity, I show a dialog under some condition like this:


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

Android :: Trigger The Soft Keyboard For EditText In Dialogs

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:


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

Android : Edit Contents Of TextViews In Droid Dialogs?

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

Android :: Definitive Android Folder Structure

Jun 11, 2009

so I'm curious if someone know what is exact folder structure, which should be used. My question is about phone memory and SD card as well.So far I suppose, these work:If you want phone to find new ringtones (and only, not have it listed in music player).

View 15 Replies View Related

Android :: Solid Black Screens When Calling Dialogs In OnCreate() / Way To Fix

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

Android :: Dialogs Don't Fill Width In Landscape Mode / Make It To Do So?

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

Android :: Changing System-level Dialogs - TimePicker - DatePicker

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

Android :: List View Elements In Dialogs Never Expand To Full Width

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

Android : Put All Code Relating To Creating Time - Date Dialogs Setting Values

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

Samsung Galaxy S :: Definitive Guide To Save An "image" Of Phone?

Oct 6, 2010

I have had my Samsung Galaxy S for about a month now, and have just recently took the plunge and rooted it. I am now seeking a means of backing up my entire phone using a method that will essentially "freeze" my phone's current state, allowing me to restore to this exact state in the future, like an image of my phone. I want all apps, SMS messages, contacts, all settings, everything to be frozen in time as a backup.

I have searched these forums and through Google search results extensively and found a lot of information, most of it regarding Nandroid, Titanium Backup, SPRecovery, ClockworkMod Recovery etc. My understanding is this:

Titanium backup is more of a soft backup, it backs up your apps and settings and allows them to be reapplied.

Nandroid requires the recovery mode to be flashed using ClockworkMod Recovery

SPRecovery can be used instead of ClockworkMod Recovery, but they both have their own pros/cons.

Is there a definitive guide to achieve what I want?

Most of the guides I have read have been tailored to other devices such as the G1, HTC Hero, Droid etc.

TL;DR: I want to make a complete backup of everything on my phone, save it as an image, and be able to restore it later.

View 2 Replies View Related

HTC Droid Eris :: Need A Definitive Answer On Enable "always On" Mobile?

Nov 29, 2009

Subject says it all.I've read posts here and other places regarding turning off "Enable 'always-on' mobile". I'm still unclear on exactly what this does. I guess I can figure it out by turning it off - and sending exchange and Gmail e-mails to myself to see if/when they arrive.

View 20 Replies View Related

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 View Related

Copyrights 2005-15, All rights reserved