Android :: Get Mail Sent Notification In Activity Result
Aug 30, 2010
I am launching a mail activity by
//Sending mail final int SENT_MAIL = 1;
startActivityForResult(Intent.createChooser(i, "Send mail"),SENT_MAIL);
and in
onActivityResult(int req, int res,Intent data)
I am trying to find the result of email sending, so as to confirm if my mail was sent or was discarded by the user. I am receiving null for Intent data.
i.e. data =null
parameter in onActivityResult(int req, int res, Intent data), res is always 0.
ie. res = 0;
View 1 Replies
Aug 5, 2010
When user presses a button from a webview, I open a scrollview activity with some buttons and edittext fields.
Once the user enters the fields and presses the 'create' button, from scrollview activity, I want the results from the called activity to be accessible. How can I do thi?
View 1 Replies
View Related
Mar 10, 2010
I'm doing some network job in AsyncTask. Sometimes it requires communication with user. (connection is dropped, session is expired and so on). I want to pop up a dialog or launch an Activity, and then, depending on user's input, stop the job or redo it. I can launch any Activity from AsyncTask, but how to get result back? It seems to be possible only if I launch new Activity from another Activity. What are possible solutions?
View 5 Replies
View Related
Feb 11, 2010
I have a Service which needs to receive data from external packages. So, to locate the data providing external packages, I use activity- filter and PackageManager.queryIntentActivities function to locate the interesting packages. Now, from each such package, I need to get a ContentProvider URI. So I want to start the external Activity and the external activity will return a result to my service - something like "startActivityForResult". The problem is that there is no way to call "startActivityForResult" from a Service, only Activity can do that, and my project does not have any Activity, and probably can't show UI for the user.
The bottom line: Can anyone suggest a way to get ContentProvider URI from an external package, while my package has only a Service?
View 22 Replies
View Related
Oct 1, 2010
i seem to have a classic task, yet i can't find any examples on how to do it.i want to download something. well i call a web service and get a response but its pretty much the same.in order to do this i have an activity that starts a service that spawns a thread that does the job.now i would like to use the data i got in the activity that started the service.(i assume that starting another activity to handle the job of displaying the result would be simple)my problem is how does the service notify an activity (the one that started it or another one) of something.
View 1 Replies
View Related
May 4, 2009
I am currently trying to launch a GPS settings activity using startActivityForResult....however it never seems to be calling my onActivityResult function after it exits. I noticed the docs mentioned that some Intent protocols are not defined to return a result, is this one such example? are there any flags that I could set to either make the settings activity call onActivityResult, or even better make my activity block until the launched activity returns?
View 5 Replies
View Related
Mar 12, 2010
I hope the title says it all: I've got Activity A which fires up the Camera intent via:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, REQUEST_CAMERA);
After the picture is taken I can easily grab the picture in:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
But I'd like to receive the result in Activity B in which the image can be edited.
Right now I'm receiving the result in Activity A and pass it over to Activity B which results in showing the GUI of Activity A for a short while:
Intent i = new Intent().setAction("DisplayJPEG");
i.setClass(this, EditImageActivity.class);
i.putExtra("IMAGE_URI", uri);
startActivityForResult(i, REQUEST_EDIT_IMAGE);
Of course, I will need the result from Activity B in Activity A after the image has been edited. But that should work with:
setResult(resultCode, data);
So there has to be a way to do what I need. Please point me into the right direction.
View 3 Replies
View Related
Jul 14, 2010
Despite similar question was asked, I have differnet situation: My app consists mostly of a background Service. I want to start external activities and get results back.I see several options:Create dummy Activity and keep reference to it for using its startActivityForResult. This consumes quite a lot of memory, as we know. Use Broadcast Intents instead of Android's results infrastructure: ask client activities to broadcast their results before closing. This kind of breaks the idea and not so performance-efficient. Use Instrumentation directly - try to copy code from startActivityForResult into my Service. Use Service interfaces - serialize and add AIDL connection to the Intent for starting an Activity. In this case Activity should call Service directly instead of providing result. The third approach feels closer to Android for me, but I'm not sure if it's possible to do - Service does not have its Instrumentation, and default implementation seems to always return null.
View 1 Replies
View Related
Nov 18, 2010
Activity A is main activity. Whereas Activity B is SearcActivity (Search Manager). Activity B is List Activity, so whatever result comes, result is displayed in the list. Once user clicks on the list, I want to get that list selected item to be returned to ActivityA.What I did. Code...
View 3 Replies
View Related
Mar 23, 2010
I have 3 classes in my example:
Class A, the main activity. Class A calls a startActivityForResult:
Intent intent = new Intent(this, ClassB.class);
startActivityForResult(intent, "STRING");
Class B, this class is a TabActivity:
Intent intent = new Intent(this, ClassC.class);
tabHost.addTab...
Class C, this class is a regular Activity:
Intent intent = this.getIntent();
intent.putExtra("SOMETHING", "EXTRAS");
this.setResult(RESULT_OK, intent);
finish();
onActivityResult is called in Class A, but the resultCode is RESULT_CANCELED instead of RESULT_OK and the returned intent is null. How do I return something from the Activity inside a TabHost?
I realize that the problem is that my Class C is actually running inside of Class B, and Class B is what is returning the RESULT_CANCELED back to Class A. I just don't know a work around yet.
View 4 Replies
View Related
Apr 20, 2010
I am trying to setResult after the BACK button was pressed. I call in onDestroy. So, how can I pass result from activity terminated by BACK button?
View 2 Replies
View Related
Jun 1, 2010
I have two activities: a MainListActivity, and a DetailViewActivity. DetailViewActivity is set with android:launchMode="singleTop".
When clicking an item in the "main list" activity, it launches the "detail view" activity via:
startActivityForResult(detailIntent, REQUEST_CODE_DETAIL);
If I then call setResult(RESULT_OK, resultData); and finish(); from within the Detail activity, that resultData is received by the "main list" activity's onActivityResult(..) method correctly.
However, if I implement a "see previous"/"see next" type of navigation within the Detail activity, and implement it using singleTop, that result no longer gets sent back to the initial activity:
Intent nextItemIntent = this.createIntent(nextId);
nextItemIntent.setFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
startActivity(nextItemIntent);
// at this point, my DetailActivity's onNewIntent() method is called, and the new data is loaded properly
But from here, when I call setResult(..) and finish(), my MainList activity never receives the new/updated result. Anyone know what I'm doing wrong?
View 1 Replies
View Related
Jul 20, 2010
I am invoking the default SMS activity by using the following code-
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:")); intent.putExtra("sms_body", "SMSText"); startActivityForResult(intent, 11); //Here 11 is my request code
The SMS activity gets opened in emulator (5554), i type the number 5556 (device number of my second emulator) and click on "Send"
The SMS is received in second emulator(5556) successfully. I click back on 5554 (my SMS generating emulator )and come back to my application. I notice that the onActivityResult method is getting called successfully as desired.
When i check for the result code i get it as RESULT_CANCELED ( 0 ) instead of RESULT_OK (-1). The data is also coming as null.
View 3 Replies
View Related
Aug 24, 2009
Wondered what people's thoughts were on the mail apps that come with the phone? I've been using the HTC app, but have noticed that after a day or so the notification sound stops playing when I receive an email. This happened for anyone else? Anyone tried both apps for any length of time and have strong opinions over which app is better? I saw a review that said the HTC app is better but the Google one doesn't seem too bad to me... Anyone using the Google app that would care to chime in?
View 9 Replies
View Related
Sep 3, 2010
For some reason two notification icons pop up for new mail in K-9. One shows how many new e-mails there are, but the other one I do not know what is for. Right now it shows "2" but it has been that number for quite some time. If someone could look at the screen shot and let me know what the icon all the way to the left is, and how I can prevent it from popping up it would be great.
View 7 Replies
View Related
Nov 8, 2009
I'm used to my BB which changes the gmail icon to one with an asterisk when i have new emails on gmail. the droid (android) does not. there's a pop up in the notifier bar but after that disappears there's not way to tell quickly if there's new mail received. is there anything i'm missing or an app that can notify me on the home screen that there's new email in my gmail inbox?
View 19 Replies
View Related
Oct 30, 2010
How can we get E-mail receiving notification in android
View 2 Replies
View Related
Jun 8, 2010
Is there a way to get custom notification sounds on K9 mail? The ringtones I've created in Ringdroid don't show up in the "New mail ringtone" list under Account settings. Their default ringtone options are pretty weak. I'd like something I know I'm going to hear.
View 3 Replies
View Related
Nov 25, 2009
I have a MyTouch and a G1. I used to have an Iphone. On my Iphone, when I would get a new mail message it would light up a red number with how many emails there were on the MyTouch and G1 I get a little notification in the status bar at the top of the phone. My question is on the Iphone if the email notification was lit up with a number of emails that I had... and I went into my HOME computer (or any other computer) and read my email the next time the Iphone would go out to check for mail it would find zero there and turn off the notification. But on my MyTouch and G1, if it goes out to check email and there is none (because it was read elsewhere) it does NOT turn that notification off and it always looks like you have mail until you go into your email on the phone and check only to find none. Any way to fix this?
View 2 Replies
View Related
Jul 27, 2009
I need to catch the the in built mail in mobile when a new mail arrived to our mobile i need to show some message how can i catch the notification .
View 5 Replies
View Related
Aug 25, 2010
Im looking to find a way to put a custom sound for each of my 4 email addresses. I am using k9 and cant find a spot to add or set new sound files.
View 3 Replies
View Related
Dec 2, 2009
Is it possible to get an intent when the user receives a mail and to cancel the gmail notification?
I want to filter some messages and I do not want to get notifications from them.
View 5 Replies
View Related
Jun 6, 2010
The new phone is great, but being alerted you have an unimportant e-mail at 3am is not. I found the option for LED notifications, letting you select each app, but when I looked for audible notifcations it gives me the option to select the sound and adjust the volume (in another tab). So, I turned the volume down for akk notifications for a quick fix, but now I cannot hear SMS alerts. It seems to be all or nothing.
View 5 Replies
View Related
Aug 30, 2010
So that the number of new e-mails will show up on my shortcut on my home screen? I had to tinker with the settings so my battery doesn't drain so quickly at work, but now I can't see when I have new e-mails! I can get them, but I have to go into 'MAIL' & wait for them to load.
View 3 Replies
View Related
Jun 1, 2010
Does anyone know if there's a way/app to set a notification for each e-mail (gmail)?
I'd really like to hear my notification sound, once, for each e-mail. Currently, I get a notification for the first e-mail, then no notification for subsequent e-mails until I check/clear the notification.
I'd also like to see each e-mail in the notification area (versus grouping all new e-mails in one notification), if possible, with a preview or something (similar to how my blackberry handled it). But I'd be content with just a sound.
View 1 Replies
View Related
Oct 22, 2013
I'm looking for an email app with really persistent notifications, that is: instead of the single tone/vibrate notification when a new email arrives, I need it to keep notifying me periodically (say, once per minute) until I open the app and read the email, or at least clear it from the notification shade.
recommend an email app that does that, or an addon/plugin/extra app that accomplishes the same thing?
View 2 Replies
View Related
May 10, 2010
I have really been enjoying HTC Mail, but all of a sudden since last night it stopped giving me a notification when a new email comes in. I checked my settings, and nothing there has changed. Still set to notify.
View 3 Replies
View Related
Sep 25, 2010
Is there a setting for Droid x that will give me an audible tone when I have new voice mail?
View 1 Replies
View Related
Oct 21, 2010
I have the voice mail notification on my home screen and for some reason, when there is a voice mail, there is no number next to it to advise me there is one. I am using Widget Locker if that matters. Everything else works with that.
View 3 Replies
View Related
Aug 21, 2010
Does anyone know how to turn off the notification sound when i get an email - between sms and email the hero is constantly going off.
View 4 Replies
View Related