Android :: How To Show Alert In OnActivityResult?
Jan 26, 2010
I am trying to show custom alert from onActivityResult. I need to inflate it, so am getting context with getApplicationContext() and everything is fine until I execute alertDialog.show() - then it fails with: Unable to add window -- token null is not for an application Do you know why I cannot do it?
View 1 Replies
Oct 6, 2010
I am having a bitmap image. Can i show it in a Alert Dialog in android?
View 3 Replies
View Related
Jun 11, 2010
How to show a alert dialog(whithout any Activity) when receive a broadcast.
View 3 Replies
View Related
Sep 24, 2010
as an end user, can I surpress sms alerts in the notification bar on android 2.1 (alert - but not show the first line of text)? Is there a phone setting? Or an app out there that allows this choice?
View 1 Replies
View Related
Jan 24, 2009
I'm a student and currently doing my senior capstone project. I have problem with my codes on audio recording. whenever i clicked the record button in the emulator, it shows me an error alert, "The application Audiorecording (process) has stopped unexpectedly. Please try again." can anyone help me? Code...
View 3 Replies
View Related
Mar 21, 2010
My wife and I both have HTC Hero's (Sprint) and recently have been having problems sending and receiving pictures in our text (from each other as well as other people) If I send a picture to her, her phone will vibrate and the notification light will blink, but nothing will show up.
Now if I send a second picture the first one will show up on her phone, and if I send a third, the second one shows up and on and on. It happens the same way if she tries to send me a picture. The phones worked fine when we bought them in December. This problem has just started in the last month.
View 2 Replies
View Related
Apr 26, 2010
How to show "Low Battery Alert" , when the battery power reduces to 15%. i am not getting any desired document or any code.
View 2 Replies
View Related
Aug 18, 2009
If an html file is locally loaded from the assets directory into the webkit and if that html has an "alert" on it, what could be a reason it won't show a dialog?
View 2 Replies
View Related
Jul 6, 2010
I have a problem with the method "onActivityResult".
I create a new Activity from my main activity:
CODE:.........
The new Activity is ended like this:
CODE:.............
But the Method onActivityResult seem to be not called
CODE:................
View 1 Replies
View Related
Sep 4, 2010
My app fc when activity that's using SurfaceView as content view calls startActivityForResult(...) and activity that has been started calls finish()
This does not happen if I change content view to something else than SurfaceView.
This would be the requested logcat:
CODE:..................
View 1 Replies
View Related
Dec 31, 2009
I am facing with a problem related startActivityForResult()
To start SecondActivity from FirstActivity :
CODE:.............
And handles result :
CODE:..........
To send the message to FirstActivity from SecondActivity :
in SecondActivity :
CODE:............
I can't handle the result on onActivityResult in FirstActivity. It never works for my application.
My OS is : 1.5
View 2 Replies
View Related
Aug 13, 2010
My app requires a network connection so if they don't have one enabled I prompt them to start it. I do this by calling the Wireless & Network settings Activity as such:
CODE:...............
However, when I run my app in the debugger, onActivityResult is called immediately as my calling activity is exited when it should be called once the settings menu if exited. This premature call also sends a resultCode of Activity.RESULT_CANCEL.
Here is the code from onActivityResult:
CODE:.....................
View 3 Replies
View Related
Sep 17, 2010
I am using two intent for various action in my activity and i also used onActivityResult for get result,i want to answer for how to get tow intent result in onActivityResult?anybody knows please give sample code for me..
View 1 Replies
View Related
Jul 27, 2010
CODE:...................
The circle not show.....but when i put the DrawO() next to mSurfaceHolder01.addCallback(EX10_04.this);
It draw a circle!
If i want to draw a circle in the onActivityResult event
What shuld i do?
Or if i can pass uri to onClick function ?
CODE:..................................
View 1 Replies
View Related
Feb 22, 2010
I have a Activitygroup and some activities are part of it.
lets say Activitygroup is DetailsGroup which has a activity by name DetailsActivity.
On certail events DetailsActivity launches another activity ExtraActivity by calling startActivityForResult(intent, 2);
The extraActivity is launched it does its work and before calling finish() of it I am calling setResult(RESULT_OK,mintent);
By doing this I was expecting that the DetailsActivity's onActivityResult() would be called, but instead DetailsGroup activities' onActivityResult() is getting called.
Any idea what changes are required to get DetailsActivity's onActivityResult() called in above scenario?
View 2 Replies
View Related
Jul 21, 2010
I'll be brief. I have an application with the following Activities Schema:
A (ActivityGroup) | |__
B (Activity Group) | | | |__
C (Activity) | |__ ... (Other Activities) | |__
D (ListActivity) | | | |__
ListView with a custom adapter with two buttons per row
All the Activities shown on the "diagram" are displayed and visible in real time while the application is being executed.
I'm pushing new list elements from C to the ListView in D. And by clicking each row's buttons I'm trying to edit the data of the row by means of a dialog. The problem is when, in the dialog activity, I perform the setResult() and finish(); the D's onActivityResult() is never called, and I do not know why.
View 3 Replies
View Related
May 4, 2009
I am updating some code from 1.1 to run with the new SDK 1.5. I noticed that onActivityResult is being called before OnRestart.
If Activity A calls activity B. Activity A goes to onPause(), then onStop(). Activity B goes on... finishes and returns.
Activity A starts at onActivityResultf(). So if you try to make a clean exit with onStop(), it will cause nullPointers when it comes back.
View 2 Replies
View Related
Jul 29, 2010
I'm venturing into startActivityForResult for the first time and I'm running into a problem.When a user clicks on a list item of Activity B, it returns "ql_id" to Activity A:Unfortunately, extras.getInt("ql_id") evaluates to "0". Why is this? It should be "1". I am clearly doing something incorrectly.
View 1 Replies
View Related
Sep 30, 2009
I have a flow A->B->C->D where A desires some information that is obtained by D. B, C, and D propagate the data back through the flow using setResult(RESULT_OK, data) and finish(). All intents in A, B, and C are started with startActivityForResult. However, if B is reclaimed by Android and forced to call onCreate again after C finishes onActivityResult in B is never called and the data never makes it back to A. Is there a way I can be sure that onActivityResult will be called?
View 5 Replies
View Related
Jul 3, 2010
OnActivityResult is giving me major headaches. My little game has a title / menu screen. Upon clicking "new game" an Activity is launched which creates a SurfaceView for my game world.
When playing, the player can enter buildings in the game world. Upon entering a building I launch the activity for that particular building from my SurfaveView.
Here is an example:
CODE:............
mMap is the SurfaceView. I'm passing a bundle containing the state of the player. In onActivityResult I grab the bundle returned by the store activity and update the player state.
CODE:................
mSavedPlayer is later used to set the new player state.
All the above works generally
I can enter stores, buy stuff, leave and the player is updated correctly.
The problem manifests when I press the Home button (or someyimes back button) and onDestroy gets called. My onDestroy method does nothing besides call super.onDestroy();
After onDestroy() gets called onActivityResult no longer gets called.
So:
1) I play the game, everthing works great.
2) I press home and ondestroy is called
3) relaunch my game via launcher icon
4) Resume game. I can still enter and leave stores but onActivityResult is no longer called.
Here is some logcat output. I'm logging each time I enter a relevant method.
CODE:................................
View 1 Replies
View Related
Nov 28, 2010
I have the following issue. I am starting a recognizer intent activity in order to detect speech using the "startActivityForResult" method. I have also an "onActivityResult" method listening for results from the recognizer activity. It works and it detects my speech. The problem is that it is only called when everything is ok or when i cancel the operation, but it is not called if it doesn't find a matching text "RecognizerIntent.RESULT_NO_MATCH" or in the rest of wrong cases "RecognizerIntent.RESULT_........" What is happening? Application is Android 2.1 and I have tested on a Android 2.2 device.
View 1 Replies
View Related
Aug 5, 2010
The order is:
A: startActivityForResult( B ) B: <dostuff>, call finish() A: onCreate <---- what's this all about A: onActivityResult
This happens for a tiny minority of users. I havn't been able to reproduce or find any common elements. A is the launch activity.
CODE:..............
View 7 Replies
View Related
Feb 3, 2009
Can you please tell me if you know how to get the Andorid unit test instrementation to call my activity's onActivityResult()?
I can't find anything here: http://code.google.com/android/reference/android/app/Instrumentation.
View 4 Replies
View Related
Jun 23, 2010
I have faced with issue about startActivityForResult() and onActivityResult(). If child activity started by the startActivityForResult() exit by unexpected exception the onActivityResult() is not called and I have no any ideas how can I handle this to get application working in a fail-safe manner ?
When my code runs child activity with startActivityForResult() it awaits until onActivityResult() will be invoked to get working further, but onActivityResult() is not calling and my code is "hang- up" (logically).
So the question is how can I handle all possible ways the child activity is finished (normally and by unexpected exception) to get fail-safe code ?
I have check the documentation for this issue but have found nothing relating issue.
View 4 Replies
View Related
Jun 8, 2010
I have an application, which (for the sake of simplicity) has two types of activities - Overview and DetailView. The Overview activity shows a list of steps and allows the user to start a DetailView activity corresponding to the step chosen.
In the DetailView activity, the user can start another Overview, which shows different steps than the ones in the parent of the current DetailView.
In the Overview, DetailView is started by using startActivityForResult (). In the DetailView, when the user decides to start a second Overview, I call setResult () and finish () and then start the new Overview. In this scenario, onActivityResult () and finishFromChild () do not fire. Instead, they fire when the parent finishes (?).
Code from Overview:
CODE:....
Code from DetailView:
CODE:..........................
View 1 Replies
View Related
Jun 10, 2010
I know I'm not the only person that gets emails with embedded html or inlined images via google mail. When I get emails like this, I have to click on "Show HTML" or "Show Picture" every single time an email comes in if I actually want to see the email the way it was intended to be shown. I know for a fact that iphones and other email readers dont have any issues with this. Is there a setting to automatically display the email the way it was meant to be shown instead of having to click these buttons each time I want to view the email correctly? Or, perhaps there's already a market app that forces the android email client to display emails correctly?
View 4 Replies
View Related
Dec 24, 2009
Does anyone know how to get your Eris to show the saved contacts picture to show up in MMS and Phone calls? If I dial their number sometimes it shows up and sometimes doesn't. In never shows up in text messaging.
View 4 Replies
View Related
Oct 17, 2010
How i can show a set of images as slide show in android?
View 2 Replies
View Related
Apr 7, 2010
I compiled my app in Eclipse and export it as signed application package, when I install it on my G1, I got "phone calls" and "storage" permission alert, "phone calls" permission said: "read phone state and identity", "storage" permission said :"modify/delete SD card contents". but in my AndroidManifest.xml file, I never define these two permission, and my application never need the two permissions. Does anybody know why I get the permission alert? I use ADT 0.9.6. is that possible ADT compiler or signed tools inject the two permission into my app?
View 3 Replies
View Related
Jan 11, 2010
According to this Slashdot article, an app creator, Droid09, has written some troublesome apps.If you have any apps written by this person, you're advised to get rid of them immediately, and contact your service provider to establish if your mobile device been compromised.
View 12 Replies
View Related