Hi,
I want to receive Intent android.intent.action.SEND in a Service. Is it
possilbe to register for this Intent via registerReceiver() and get the
Intent in Broadcast receiver in the Service?
Or is there any restrictions that android.intent.action.SEND can only be
registered via Manifest.xml of
Sorry for not responding earlier. This worked for me:
public static void sendFile(Context context) {
String emailPreference =
PreferenceManager.getDefaultSharedPreferences(context).getString(emailPreference,
);
String subjectPreference =
Thanks for your help.
I want to write an application which will send email with an
attachment through GMail on Android.
But I don't have much time to study the basic of JavaMail.
So, I wonder is there any sample for me to get in quickly.
2010/4/14 Kumar Bibek coomar@gmail.com
So, you want
@powder
Where should the setType() be placed then. I'm having difficulties
getting this to work.
Thanks in advance.
On Apr 7, 2:11 pm, powder jonas.hey...@gmail.com wrote:
Hi,
Thanks so much Kumar!
It turned out to be the placement of the line:
sendIntent.setType(text/csv)
Regards
Where should it be placed?
I also get size = 0 and then I get a error saying file//: attachment
paths must point to file:///sdcard Igonoring attachment file
On Apr 7, 11:11 pm, powder jonas.hey...@gmail.com wrote:
Hi,
Thanks so much Kumar!
It turned out to be the placement of the line:
Hi,
Thanks so much Kumar!
It turned out to be the placement of the line:
sendIntent.setType(text/csv)
Regards Jonas.
On Apr 5, 2:43 pm, Kumar Bibek coomar@gmail.com wrote:
public static void sendFile(Context context) {
File exportDir = new
I will try this and let you know.
Thanks and Regards,
Kumar Bibek
On Apr 2, 3:09 am, powder jonas.hey...@gmail.com wrote:
The logcat says:
...
04-01 18:33:06.230: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.SEND typ=text/csv flg=0x300
public static void sendFile(Context context) {
File exportDir = new
File(Environment.getExternalStorageDirectory(),
mydir);
if (!exportDir.exists()) {
exportDir.mkdirs();
}
Some logcat logs will be helpful in trying to figure out what went
wrong.
Thanks and Regards,
Kumar Bibek
On Apr 1, 2:10 pm, powder jonas.hey...@gmail.com wrote:
Hi,
I never got this to work on a real device, got the email but no
attachment, also when installing K9 on a emulator and
then
The logcat says:
...
04-01 18:33:06.230: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.SEND typ=text/csv flg=0x300
cmp=com.google.android.gm/.ComposeActivityGmail (has extras) }
04-01 18:33:06.290: INFO/ActivityManager(76): Starting activity:
Intent {
10 matches
Mail list logo