Android :: INTENT_SEND And Attached Files
Jul 26, 2010
My app wants to send a data file by email. However, the data only exists inside the database. There is no physical file containing it. In order to make it possible to send this using INTENT_SEND, I need to return a file descriptor in ContentProvider.openFile(). This means I need to write my data out to a temporary file on disk somewhere so I can open it to get a real file descriptor. However, the email app doesn't necessarily use the file immediately, and *doesn't tell me* when it's finished with it, so I don't know when to remove the temporary file. As the file is likely to be quite large I don't want to keep it around for long periods.
What I'd really like to do is to be able to avoid the whole issue by using a callback to synthesise the data as and when the email app needs it, using some sort of pipe. Unfortunately due to the real file descriptor requirement I can't use Java pipes, there are no Unix fifo APIs that I can find, and you can't create a ParcelFileDescriptor from a Unix socket, which was my other option. Is there any easy way to do what I want, or do I need to start messing around with TCP sockets?
View 5 Replies
Dec 29, 2009
Having a problem downloading audio attachments sent through text messages and i know you are supposed to do a long press and wait for the menu to pop up but mine never pops up so i cant save any picture or audio files ppl send me and i made sure to check the unknown sources box in settings under unknown sources so i don't know what else to do.
View 4 Replies
View Related
Jul 1, 2010
I know there has to be away, but I can't figure it out. When someone emails me a word doc, how do I view it?
View 4 Replies
View Related
Jul 25, 2010
AVI file attached to gmail on Droid only offers PREVIEW as an option and my Rock Player app (which would play it) does not appear on list of apps to use. Movies and Video Player only come up and unlike Windows, there is no ability to browse for an app. (something that should be added to android). Is there a setting somewhere to fix up this goofiness? Been looking, but so far no luck.
View 6 Replies
View Related
Jun 19, 2010
One of my 'must-haves' is the ability to open any kind of attachment that comes in with an email (.doc, .docx, .xls, .ppt, .jpeg, etc.) I was assured the Ally could with the application docs-to-go. I am now finding that it's a hit and miss with opening files. Files that have the .doc extension will come up and say 'can't open this video'.
View 1 Replies
View Related
Feb 8, 2010
I am having some of the following exceptions:
CODE:................
I have googled it and see that it has something to do with popups and turning the screen, but there is no reference to my code.
The questions are:
Is there a way to find out exactly when this issue is happening? other than turning the screen, is there another event or action that triggers this error? how do I prevent this to happen?
View 3 Replies
View Related
Feb 4, 2010
We are starting the e-mail intent of the user's choice (createChooser) and sending a zip file. This zip file is created right before the email sends, but we need to make sure the file is there until the email actually gets sent. Once the e-mail is sent, it would be nice to have this file deleted instead of sitting around eating SD card storage. Is this possible? (it can't be done in onActivityResult, e-mail intents don't actually finish, they cancel and thread the sending in a background service...so when onActivityResult gets called the e-mail might not have sent yet). Any ideas?
View 1 Replies
View Related
Oct 10, 2010
I'm trying to get the name of the file attached to an email on the gmail app? Can anyone point in the direction of getting the file name ? I can get the attachemnt, just don't know how to get the original file name.
View 1 Replies
View Related
Oct 22, 2010
I am trying to implement a dynamic auto complete widget in android.I am done with the major functionalities and the auto completion implemented is for youtube video search.When I start typing a letter or two, the auto-completion is not working. But when I type three letters or more it works prefect.It also works when I type two letters and hit a backspace.I do not know what is wrong with the code.
View 3 Replies
View Related
Mar 30, 2010
I have a Nexus One connected to my computer via USB cable. Is it possible to have Nexus One route all TCP/IP traffic via my computer's internet connection? This is like reverse tethering I guess.
View 3 Replies
View Related
Jun 29, 2009
I am trying to launch an email intent with an attached jpg. I did:
Intent intent4 = new Intent(Intent.ACTION_SENDTO,
Uri.fromParts("mailto", "testemail@gmail.com", null));
startActivity(intent4);
this launches the email activity.
But when I try to add DataAndType (my jpeg attachment). It fails with
android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.SENDTO data=file:///data/data/com.mycompany.mypackage/files/temp-picture type=JPEG
Intent intent4 = new Intent(Intent.ACTION_SENDTO,
Uri.fromParts("mailto", "testemail@gmail.com", null));
intent4.setDataAndType(Uri.parse("file://"+ mTempFilePath),
Bitmap.CompressFormat.JPEG.name());
startActivity(intent4);
View 1 Replies
View Related
Jun 4, 2009
how to create this screen which i have attached as a enclosed as a attachment. how to cod ethis can any body give the clues for that any source example regarding this.
View 7 Replies
View Related
Jul 31, 2010
I am getting the following remotely from clients so I don't know what hardware etc they are using.
CODE:................
This is happening because of a ProgressDialog
CODE:.............
The Activity looks like this in the Manifest.
CODE:........................
So what could this mean? I think it has something to do with the Activity being destroyed then created but as you can see I have the configChanges set correctly.
View 1 Replies
View Related
Oct 14, 2009
I have a CursorAdapter attached to a ListView, the ListView contains checkboxes for every row. When I check/uncheck a checkbox in a row it will update it to a 0 or 1 in the database (This is working fine) I also have another checkbox in the same Activity that when pressed will disable all the checkboxes in the ListView [ setEnabled(false) ].
The problem is that when I press this checkbox the ListView checkboxes return to their initial state when I started the activity. It does not matter the number of checkboxes I changed during the activity.
However, if I press the back button and then re-enter the activity all modifications are saved because the Cursor is refreshed. I am calling notifyDataSetChanged() at the end of the the methods that disables all the checkboxes.
I also tried this for every checkbox in the ListView but it did not work (was unable to check a checkbox) Any ideas?
View 4 Replies
View Related
Jun 10, 2009
I'm trying to see how extra information can be attached to contacts entries. Looking at the SDK reference, I stumble upon the Contacts.Extensions (http://developer.android.com/reference/android/provider/Contacts.Extens ions.html) and Contacts.People.Extensions (http://developer.android.com/reference/android/provider/Contacts.People .Extensions.html) classes. Sadly I can't find any article about what theses classes are for and how to use them. My goal is to add a few extra fields to the contacts entries which do not fit in any of the current available field types (emails, im accounts, phone numbers, postal addresses). Is there a way to achieve this?
View 3 Replies
View Related
May 15, 2009
I've literally spent 15+ hours trying to figure out this one bug (when I should be studying for finals). Any help is greatly appreciated. The bug appears on the dev1 phone running cupcake. It was not present before the upgrade. Basically, the problem is that when a activity with a webview and 2 threads is run, the service that runs after it will always crashes the process (but it works fine when the debugger is attached). The worst part is that it crashes at arbitrarily places in the service, so I can't isolate the error.
The details:
I have an activity with a WebView. The activity executes two threads, one after the other using the basic new Thread(new Runnable() {public void run()... Both threads use the same handler to report back results to the main activity. Flow works like this: when the activity starts, the first thread gets data to construct the URL that the webview will load (using DefaultHTTPClient). Then when the user navigates to a certain page, the second thread is again fired (using DefaultHTTPClient) to get some xml. This works fine.
The problem happens right afterwards. Once the activity with the webview finishes (it calls finish on itself), a service is started that has a thread that using DefaultHttpClient to downloaded some xml, process it, etc. The service crashes at arbitrary points with no error messages, simply displaying a memory dump, and kills the main process with it. When I attempt to debug the process, it runs just fine w/ no crashes. I've repeated this at least 30 times, with the same result. (no crash w/ debugger, crash when installing signed apk file to device and running it).
The program doesn't crash when the threads are removed from the activity with webview. So even if the webview activity runs (but all threads are removed), the service runs just fine regardless of the debugger.
Here is how my threads start (both of the ones in the activity with the webview, and the main thread in the service that is launched afterwards):
CODE:..........
.................
Here is what logcat displays:
CODE:..................
View 2 Replies
View Related
Sep 22, 2010
I know how to upload pictures to a Facebook album, and I know how to make a status update, but how do I do both at the same time, so I can comment on the picture? (This is not the same as giving the picture a caption, which I also know how to do.)
View 31 Replies
View Related
Apr 23, 2010
Is it possible to get the emulator to use a real SD card (via a reader attached to the computer) rather than an image?
It's probably something blindingly stupid I missed.
View 2 Replies
View Related
Aug 29, 2010
I have created an app that sends an email with a recording, When the intent is fired and email is chosen as the app to send the attachment, you can see that there is an attachement but the attachment is not delivered. code...
View 1 Replies
View Related
Nov 8, 2010
I am getting this error automatically sent to me from a lot of beta users. ava.lang. Illegal ArgumentException: View not attached to window manager at android.view. Window Manager Impl.findViewLocked(WindowManagerImpl.java: 355) At android.view.Window Manager Impl. removeView(WindowManagerImpl.java:200) at android.view. Window $LocalWindow Manager . removeView(Window.java:43 2) at android.app.Dialog .dismissDialog(Dialog.java:278) at android. app. Dialog. access $000 (Dialog.java:71) at ndroid.app .Dialog$1.run (Dialog. java:111) at android .os.Handler.handleCallback(Handler.java:587) at android.os. Handler. dispatch Message(Handler.java:92) at android. os.Looper. loop (Looper.java:143) at android.app. Activity Thread . main (Activity Thread.java:4701) at java. lang.reflect .Method.invokeNative(Native Method)at java.lang.reflect.Method.invoke(Method.java:521) At com.android. internal.os. ZygoteInit $Method And Args Caller.run (ZygoteInit .java:868) at com.android.internal. os. ZygoteInit .main(ZygoteInit.java:626) at dalvik . system . Native Start.main(Native Method) Since it comes from external beta users I dont know what they were doing when they got it. Nor do i know how to reproduce it. The stack trace does not list any of our code. Usually, this error means that there was an orientation change while a dialog was open, thereby invalidating the reference to the dialog when android recreates it. All of my activities already uses Android:configChanges="keyboardHidden|orientation" in order to prevent them from doing this. We still get the error. Has anyone else seen this before? What could be the problem?
View 6 Replies
View Related
Apr 30, 2010
I have an activity that starts AsyncTask and shows progress dialog for the duration of operation. The activity is declared NOT be recreated by rotation or keyboard slide.
CODE:............
Once task completed, I dissmiss dialog, but on some phones (framework: 1.5, 1.6) such error is thrown:
CODE:...............
My code is:
CODE:................
From what I have read (http://bend-ing.blogspot.com/2008/11/properly-handle-progress-dialog-in.html) and seen in Android sources, it looks like the only possible situation to get that exception is when activity was destroyed. But as I have mentioned, I forbid activity recreation for basic events.
View 4 Replies
View Related
Oct 28, 2009
I have an application that generates a list with two buttons for each entry in the list.
It's working to a limited extent. I have run into a problem which I have not be able to resolve.
Can anyone point me to a tutorial or code sample, or both where I could see a working example of a list with buttons attached to individual list entries?
View 2 Replies
View Related
Nov 20, 2010
I'd like to ask about how to proper handle progressDialog in Thread, since gettings the error from subject.
My code:
CODE:.......
Problem occurs when a dialog progress appears and I change my phone orientation, it freezes and crashes.
View 3 Replies
View Related
May 9, 2009
I am wondering how to track down this IAE? It doesn't mention my code (com.newsrob.*) in the stack trace.
Is there anymore information that I can automatically gather and include in the bug reports to get a better understanding why this happens?
CODE:..............................
View 7 Replies
View Related
Jan 26, 2010
For the past 3 days, everytime someone sends me a text with an attached picture it will not show up. It now shows a box that says download and when I push the download button it doesnt do anything. Before the pic or video would show up, all I had to do was hit the play button and I could view the pic or video.
View 7 Replies
View Related
Jan 22, 2010
Someone sent me a picture attached to a text message. With my old phone I could save these pictures to the memory card and transfer them off of the phone. I can't find a way to save the picture to the Droid, and connecting the phone to my PC and browsing the contents of the Droid doesn't reveal the picture anywhere
View 10 Replies
View Related
May 10, 2010
Two problems:
(1)For some odd reason my Incredible will not charge when the USB adapter is attached to the charger that came with the phone anymore.
(2)As an alternative, I used an DC adapter that accepts a USB. Now, when plugged into my car, there are no problems. However when I attach the DC adapter to an AC/DC adapter that plugs into a normal wall socket, I cannot use the touch screen. Is this an issue w/ the kind of current entering the phone?
View 8 Replies
View Related
Apr 27, 2010
When I put it on I realized that it did not come with the antenna attached to the housing. When I put the new housing on, it looked great, but I had no reception. Looks like 3 stickers. I have looked all over and cant find them. Any idea where I could buy one?
View 2 Replies
View Related
Feb 16, 2010
I am having a problem sending pictures with the gmail widget on my eris. I take the picture and attach it to an email composed with the gmail widget. However, when the recipient (and my own gmail account to test) receives the email, the pictures are not viewable. They just appear as a red "x". I can send the same email from the phone to my hotmail account and the pictures show up fine. I have tried different resolution sizes, but with the same result. I have accessed gmail through the phone's browser to try to send the attachments that way, but cannot see that there is an option to include attachments. It is pretty frustrating to use a gmail widget to have the pictures not appear when sent to my own gmail account. Then to check my hotmail account and see that the pictures appear fine.
View 1 Replies
View Related
Sep 3, 2010
When my hero was on 1.5, normal stereo headphones attached worked a-ok if I used the toggleheadset app. Now I have upgraded to 2.1, when I attach the headphones it automatically detects them but sends the volume down to vibrate... if I try to increase the volume using the volume switch it either tries to increase but forces it back down again or shoots up to maximum... Anyone else had this issue and how did you resolve it? I have removed the toggle app above, and I have restarted the phone. Also, when I attached the headphones sometimes the phone just goes into vibrate mode and stays that way... i.e. it just continoulsy vibrates until I press the home key.
View 1 Replies
View Related