[Q] Android crash when create new mail from intent - Galaxy S 4 Q&A, Help & Troubleshooting

Hi All,
This issue occurs on the 2 9505I have running rt now.
This is what I get:
In gmail, I have a mail with a href tag in order to create new mail. When I click on it, in every other device I can run, or even on laptop, it correclty compose a new mail, but on the S4, it just crash the system.
Here is the logcat of the error: http://pastebin.com/BQJHCkg8
Have you already encounter such an issue (tested on 4.3 and 4.2.1) ?

I have done some more tests:
A mailto action (html code) inside a html page works correctly on both versions (direct call or event using some JS)
But as soon this mailto action is executed from gmail, android is stuck
Can someone check if same behavior ?
Just send yourself an email with some mailto html code :
<!DOCTYPE html>
Code:
<html>
<body>
<p>
This is an email link:
<a href="mailto:[email protected]?Subject=Hello%20again" target="_top">
Send Mail</a>
</p>
<p>
<b>Note:</b> Spaces between words should be replaced by %20 to ensure that the browser will display the text properly.
</p>
</body>
</html>

Related

Outlook and "unique identifiers"

Hi All,
For some time now, I've been using nPop (not bad) instead of pocket outlook on my xda ii, because when i try to asscess my POP3 account using outlook, I get an error message sying that it cannot access my messages as my server does not provide a unique identifier for each message.
However, I recently upgraded to the latest o2 rom, and on a whim tried it again. And hurrah - it worked!.... once....
Now I'm getting the same error again. But it worked once, so these unique identifiers must be out there somewhere, right?
No other version (express or standard PC) of outlook has any problem getting my messages.
Any idea what's going on with all this?
Thanks for any help....
Phil
nPop can check to see if you have any new messages without downloading them. In order to do so, it needs the pop server to list messages using a unique ID. Your POP server can't handle this.
Getting mail once probably worked because nPop didn't care about the unique IDs at that time, since the first time you're checking your e-mail, all messages are new by definition.
You can try the following to test this theory;
open a console (start, run, cmd.exe in windows 2000 or XP)
telnet to the mailserver, like so;
C:\> telnet pop3.example.com 110
where pop3.example.com is the name of your pop server.
Something like the following will happen;
S: is sent by the server
C: must be entered by you
T: is sent by telnet
T:Trying 127.0.0.1...
T:Connected to pop3.example.com.
T:Escape character is '^]'.
S:+OK Qpopper (version 4.0.5) at pop3.example.com starting.
C:user myusername
S:+OK Password required for myusername
Cass [email protected]
S:+OK myusername has 210 visible messages (0 hidden) in 6154998 octets.
Ok, you're in. To see a list of messages, simply type LIST
C:LIST
S:+OK 210 visible messages (6154998 octets)
S:1 5302
S:2 4761
S:3 1737
S:4 11728
....
S:210 754
S:.
Right, so there's the 210 messages, and their sizes.
You can try downloading a message using "RETR 1" (2, 3.. etc.)
But here's the thing. Try using the UIDL command;
C:UIDL
S:+OK uidl command accepted.
S:1 ^U?!!W+P"!##!Jd,!!
S:2 :*[!!)F]!!RJ<"!fMb"!
...
S:210 9*4!!0!)"!N+M"!RB["!
S:.
These are the unique IDs (although they might not look like it to you, they're like unique numbers).
These are needed, because if you delete ("DELE 5") message number 5, number 6 becomes number 5, etc.
If you get an error message when you issue the UIDL command to your POP server, nPop (nor any other program) cannot see which messages are new without downloading them.
Right - cheers for the explaination. But in fact, as I was trying to explain, nPop is absolutely fine - it will detect AND download messages fine.
It's pocket outlook that has the problem, even though other outlook versions are fine (as is nPop). I don't suppose that makes any difference?
Does anybody know of a method to force this to work? It's a right pain not being able to have a unified mail client.
Cheers everyone,
Phil
Ok, I misread your post then, but if it's a pocket outlook error message it's most likely to be complaining exactly about missing UIDL support
http://support.microsoft.com/default.aspx?scid=kb;en-us;321119
How to get around this? Simple - automatically forward all your e-mail to another address, which can be retrieved on a POP3 server that DOES support UIDL. You can still use your original e-mail address as your From: address and give it out to people, the only thing that you'd change is that you'd be forwarding your e-mail to a different server in order to retrieve it from there.
It may not be elegant, but it will work. Also, you'll waste less bandwidth on your xda (altough forwarding it from your original server to an UIDL supporting server does mean another copy will be sent over the Net, but those electrons are recycled).

Modifying the Camera registry to send image by FlexMail, or what is path to temp img?

Hello.
Can someone help me with the registry a bit?
What I am trying to do is modify the registry so that when taking a photo, the HTC HD camera application will allow me to "send by email" using FlexMail instead of default HTC email client.
I made some mods and I think I am close...
I located and edited the value of /[local machine]/HTC/camera/send/
I replaced Email.exe with /path_to/flexmail.exe
Now when taking a photo, I click to send by mail, flexmail loads but it says it "could not load message", most probably it could not attach the temp image from camera.
Someone from FlexMail forums said that flexmail loads the image by this command parameters: -new -attach "<file name>"
Anyone has any tips in order to make this work?
I think it would also help if someone can tell me where the temporary image is saved from the camera, in case this is a fixed file name, then I can pass this name in the registry "send" command.
Thanks in advance.
// BTW: FlexMail rules, it integrates perfectly with Gmail imap and synchronizing flagged messages with GMail starred messages, etc

[APP] Extract Outlook winmail.dat / TNEF attachments

Dear all,
I guess many of us have already stumbled over "winmail.dat" or "attxxxx.dat" attachments in our Android email clients.
These attachment names usually occour, when somebody who is using a Microsoft Outlook EMail client sends you an certain RTF (rich text format) email with attachments. MS Outlook then packs these attachments into a TNEF (Transport-Neutral Encapsulation Format) envelope. Other MS Outlook Clients can deal with this format, but, however, most of the other email clients cannot! They will receive instead an attachment with the above mentioned naming and can basically do nothing with it.
While this is a well known (and annoying) circumstance there are already plug-ins for many open email clients such as Mozilla Thunderbird. For Android however there seemed to be nothing (and I have been doing quite some research on it).
So I finally decided to write my own app to deal with TNEF attachments. Luckily there was already an existing Java package which could do the extraction job so that I "only" had to create the Android app around it and do some debugging on the original code. My kudos here go to Amichai Rothman for his Java TNEF package (http://www.freeutils.net/source/jtnef/)!!
I originally created this application for my own purposes but then I thought it is worth while sharing it with the community. It is already bi-lingual (english and localized to german) and should get its job done.
The app itself registers as a handler for *.dat or *.DAT files and for email attachments. When you e.g. try to open a "winmail.dat" attachment from within your Android email client or a "winmail.dat" file with your file browser the app should be launched or you see a chooser box where you can select this app. When you do so you will see an alert box. When you press "Ok" the app will try to extract the contents of "winmail.dat" to a local folder. The default for this folder is "/sdcard/winmail". After it has successfully completed the extraction the app leaves a notification. When you open the the notification it will show you the contents of the target folder in another alert box. You can then use any file manager to browser to the target directory to access the real attachments out of the "winmail.dat" envelope.
If you launch the app directly it will present you a setup screen with some explanation on it and the possibility to specify your own target directory to where the extracted files should go.
The only system privilege that the app acquires upon installation is to be able to write to the external storage (sdcard). So it does not really have the chance to do severe harm to your device
If you have any questions please feel free to ask. Likewise I'd be interested in any feedback.
New release:
Winmail 2.1 (Donation Version)
In addition to the free version this version adds the following features:
Appointments / Calendar Items extracted into standard *.ics files (VCALENDAR industry standard) which can be imported into the device calendar
Enable / disable file browser in preferences
Launch file browser from within preferences
Browse extraction directory and subdirectories
Tap on files tries to open them according to mime type
Long tap on files opens context menu (open with, rename, send, delete)
Download:
Google Play Link Free Version
Google Play Link Donate Version
Older releases:
Winmail 1.0
some code cleanup
stability improvements
tapping on the explanation screen will launch this thread in web browser
Winmail_0.9.2
Changelog:
added the capability to extract vcards
added the capability to process/extract "multipart/*" type mime files
added user preference whether the app should create an own subdirectory for each file/mail
Winmail_0.9.1
Changelog:
added the capability to extract the message body text in either *.txt, *.html or *.rtf format depending on the original type. The message is written to the extraction directory and its file name contains the actual date and time to be able to distinguish the message files
some minor UI tweaks
Enjoy!
cooltide
reserved for future purposes
There's something I forgot. Here's a winmail.dat file for testing purposes
Superb app
Superb app to view mail attachments which weren't readable on Android otherwise. Any chance to also view or even accept appointments sent from Outlook?
Rgds
Thank you very much! I am currently looking into this calendar issue. This trickier than the other stuff. Will keep you posted.
Brgds
..
It was reported that the app was not shown as a handler for winmail.dat files by some file explorers and mail clients.
While I am investigating this the workaround is to use the OI File Manager which always worked for me.
cooltide said:
It was reported that the app was not shown as a handler for winmail.dat files by some file explorers and mail clients.
While I am investigating this the workaround is to use the OI File Manager which always worked for me.
Click to expand...
Click to collapse
Sent from my Galaxy J3 (2017) using XDA Labs
GM192513d
PepePlemmie3.7

Stock emal not downloading attachments

I have noticed over the last few days that the stock Samsung email client seems to be selective about what email attchments it will show. So I have received emails with and 8mb attchment ( a pdf file) which although the email programme recognises as being there (the summary list of mails has the paperclip icon showing) when iI open the message it does not have the normal attchment notice with a preview/ download etc flag.
Opening the Gmail app reveals the message, and the attchment which can be downloaded. I have now tested and replicated this twice. Testing a smaller PDF has just revealed that I think it might be when you send an email to youerself - not as daft as it sounds, as it can be a quick way to send a file from one device to another. Is this a feature or something that anyone else can replicate?

Contact list filter

Hello everyone,
I'm developing an app that requires the user to be registered in a server. Right now I want to show the user which of its contacts are using the app (registered in the server).
All the request/reply part is implemented. What I can't do is to show a contact list with only the contacts that the app receives as reply from server.
Note that I don't want to make the list myself but rather use something like this:
Code:
Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Phone.CONTENT_URI);
which shows the contact list for the user to pick one.
Just to be absolutely clear, I'm talking about filtering the contacts the following way:
Code:
select * from all_contacts where phone IN reply_array
Thanks

Categories

Resources