Android :: Try To Show Popup Activity / Dialog When Phone Is Locked?
Sep 28, 2010
I am trying to show a activity or a dialog when the phone is locked.
I have tried using a WakeLock but it did not work and I can only see the activity once my phone is unlocked?
What is the proper way to do this?
View 1 Replies
Nov 19, 2010
I have an application in which there will be a service continuously running in background and on certain conditions service should call an activity or pop-up a dialog. I think this is possible. The question is, in case device keyguard gets on say after 2 minutes of idle time then will the service continue running in background. And what will happen when the condition of opening pop-up or Activity is reached.
View 1 Replies
View Related
Aug 24, 2010
Can we show the dialog when our application/activity startup?
View 4 Replies
View Related
Nov 1, 2009
I want to show a dialog to ask player "play again ?" when the game is over.I find the code can only add in a activity for dialog is a part of activity,But I should show the dialog when the game is over,in other words ,I should know the time game is over.how can I do this?
View 2 Replies
View Related
Feb 13, 2010
I've been trying to show a "Do you want to exit?", type dialog when user attempts to exit an activity. However can't find the appropriate API hooks. Activity.onUserLeaveHint() initially looked promising, but I can't find a way to stop the activity finishing.
View 2 Replies
View Related
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
Jun 22, 2009
I need to popup dialog to be showed when i get a message from differnt thread but the dialog should be not dependent on Activity i.e, it should display the dialog wherever the screen focus is .can it be done ..because the dialog is handled per Activity ,i thought of using service but again it would be one more thread added so want to avoid that.
View 2 Replies
View Related
Apr 28, 2010
I'm displaying a webpage in a WebView and on the webpage, there is a button. When you click the button, a confirmation dialog is supposed to popup, but it doesn't show in my WebView. It does popup if I go to the same webpage in the android browser. Anyone know how to handle popup dialogs coming from a webpage inside your WebView?
View 1 Replies
View Related
Oct 31, 2009
I have an Android Spinner and I'd like to get a callback when the user selects something from its popup dialog. It seems like
setOnItemClickListener() or setOnItemSelectedListener()
would be the right method to use, but neither get invoked when I select one of the items in the spinner. Is there a correct way to do this? Per commonsware's suggestion, I did the following, but my onItemSelected() method is never being called:
final Spinner spinner = (Spinner) findViewById(R.id.spinner);
spinner.setAdapter( new ArrayAdapter<SettingValue>(getContext(), android.R.layout.simple_list_item_1, android.R.id.text1, setting.getSettingValues() ) );
spinner.setOnItemSelectedListener( new OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { Log.d("BOOGA");
final SettingValue settingValue = (SettingValue)parent.getSelectedItem();
final Editor edit = getContext().getSharedPreferences( PREFS_CONTEXT_NAME, Context.MODE_PRIVATE).edit();
edit.putString(setting.name(), settingValue.name());
edit.commit();
} public void onNothingSelected(AdapterView<?> parent) { // do nothing
} } );
View 1 Replies
View Related
Nov 7, 2010
Can't find way to stop my messages showing in the notification bar while the phone is locked.
Its weird. It only happens sometimes. Is it a bug or a setting?
Seems silly that anyone could read your messages even if the phone is locked.
View 1 Replies
View Related
Oct 12, 2010
I'm trying to display a popup in a MapView. I m doing this in myLocationOverlay.onTap() method. I got the initial popup to display correctly. I have a button in the popup to expand the popup by making some hidden view visible and changing the height of the popup like this..
but the height of the popup doesn't seems to change. Am I missing something here?
View 2 Replies
View Related
Apr 12, 2010
I have created a listview with simple list items.When i click on any of the list item a new activity is launched and therefore a new screen opens. But now i want that when i click on the list item i should have a kind of popup which has three options and depending on the option i click a new activity should be launched. Therefore in place of one activity i want an option of choosing one of the three activities depending upon what i chose in the pop up box. I should also have the flexibilty to design the pop up box the way i want.
View 3 Replies
View Related
May 12, 2010
Whenever a application needs internet and connection fails, I get a message dialog
Connection failed
This application requires network access. Enable mobile network or Wi-Fi to download data.
and two buttons, Settings, Cancel.
How do I detect there is no internet connection?
How do I popup a same dialog in my application?
View 3 Replies
View Related
Nov 12, 2012
Coming from an iphone for the last few years, one thing I have gotten used to are notifications that show up on the screen, even on the lock screen. Is there a way to do this on Android? I only get notifications at the top and then have to unlock the phone and scroll down to see them. This also goes for texts as well.
View 7 Replies
View Related
Oct 30, 2010
-->I am new to Android And i want to show two progress dialog one after another??
-->First i want to show when my image is load from internet, when this process is done i have set A button on that Remote image.
-->When i click that button i want Dialog for second time..(on clicking button i have set video streaming code.. before video is start i want to close that Dialog..)
View 2 Replies
View Related
Sep 21, 2009
How to show a dialog in thread.run() .My code...
View 4 Replies
View Related
Aug 13, 2009
how to show dialog with only the progress image without the rectangle, background color and text. I want only the spinning image in the dialog.
View 2 Replies
View Related
Aug 30, 2009
I am creating an app that show a Progress dialog in AsyncTask to inform the user while web information is being fetched. I've read there are two ways of doing this: Using handlers or creating and executing an inner class that overrides the AsyncTask class. I am trying to create and executing inner class that overrides the AsyncTask class, which runs a resource-intensive thread in the background, to provide progress updates, and reports back when finished.
On the OnCreate, I have: protected Dialog onCreateDialog(int id) { return ProgressDialog.show(ListSituation.this, "", "Loading. Please wait...", true); }
View 3 Replies
View Related
Oct 19, 2010
I would like to show an alert dialog that shows a counter(timer of time) and after 10 seconds will automatically disappear. Code...
View 1 Replies
View Related
Nov 3, 2010
I need to show a "grid" or "table" of data in a pop-up dialog box on Android.
Basically, a column listed down the left with rows of names, for example, then multiple columns to the right of the names with values in columns.
Is this possible?
View 2 Replies
View Related
Apr 1, 2009
I want to show my progressbar in the center of the screen when a processing happens on a button click. But I just want the progressbar without the dialog box..
Is there any way I can do this?
View 4 Replies
View Related
Feb 11, 2009
I have a Preferences dialog with some EditTextPreference elements. The preference values can be edited by end-users when they click on the particular item. However, at the first application launch, I would like to create a sort of wizard to guide the end-users through the configuration. I need to show the EditTextPreference edit dialog programatically. Somehow I need to emulate the end-user clicked on the preference.
Is it possible?
View 2 Replies
View Related
Oct 6, 2010
I am having a bitmap image. Can i show it in a Alert Dialog in android?
View 3 Replies
View Related
Aug 19, 2010
I want to show/pop-up dialog from service in android.
can any one guide how to work around for that.
View 1 Replies
View Related
Mar 2, 2010
The Home sample in the android sdk doesn't implement the Add item, which bring up the "Add to home screen" popup window, and Notifivcations item in onCreateOptionsMenu and onOptionsItemSelected. How to do that like the default home?
View 1 Replies
View Related
Mar 15, 2010
I'm trying to create a custom dialog in my application to show an about window but it ain't working. Maybe one of you knows a solution?
So I have an activity with the onCreateDialog(int id) overriden in it:
CODE:....................
This is exactly as described here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog However this my exception thrown:
CODE:.......................
View 14 Replies
View Related
Jun 11, 2010
How to show a alert dialog(whithout any Activity) when receive a broadcast.
View 3 Replies
View Related
Aug 15, 2010
I am writing an app that requires the user's current location (lastknownlocation won't be very helpful) and displays a list of all the closest "items" to them taken from the database.I have got the finding of the closest items working well but only using a hardcoded latitude and longitude location for the time being but now it is time to implement finding the actual location.Can anyone provide an example of how to have the app find the current fine location in the background and have the app wait. I only need the location once not updates as the person moves. I have implemented a location listener however I understand getting a GPS fix can be slow. I have seen other examples using last known location or implementing the location listener which continues to run and update however as my Activity needs the location coordinates before it can display anything the app just crashes. I need to show a Progress Dialog while its searching.
How can I have the locationlistener run once in the background and then remove location updates once it finds the location. I need the rest of the application to wait until it has a GPS location or timeout after say 20-30seconds. I would like a ProgressDialog up so the user knows that something is going on, but it just has to be the spinning loading animation not a percentage or anything. If possible I would like the user to be able to cancel the dialog if they are sick of waiting which then they can search by typing suburb etc instead.I have been trying to do it with threads but it is getting way more complicated than I feel it should be and still not working anyway. On iPhone this is much more simple?Can anyone provide a nice way of doing this, I have been ripping my hair out for a week on this and it is really putting me behind schedule for the rest of the app completion date.
View 3 Replies
View Related
Jul 21, 2009
I've got a PhoneStateListener to see call state changes, when a call is incoming I make my app show a toast notification to display caller data which I retrieve from a search service. Due to toasts limitation, i would like to show a dialog instead which allows me to show the notification longer and customize it with imageviews etc...
The problem is that when I implement the dialog and execute the show method in the state listener class, my application crashes.
Does anyone know how to implement this and have an example? It seems like WhitePages have solved this with their Caller ID app.
http://blog.whitepages.com/2009/02/27/caller-id-by-whitepages-a-new-a...
View 5 Replies
View Related
Sep 14, 2010
How to show two dialog at the same time? i don't to use Multiple Select at one dialog.
View 2 Replies
View Related