send a image file on sdcard with email not messaging or other options

by Gaurav » Mon, 06 Apr 2009 01:11:01 GMT

Sponsored Links
 I need to send an image file on my sdcard using email in my
application. Note that I don't want user to get option to use
messaging or other ways to send the file. My current code, as shown
below, gives option of both email and messaging whereas I want the
user to get only emailing option. How do I do this?

Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:/sdcard/mydir/

Software Developer 

Other Threads

1. How to start a background service on install

I have an app which runs as a background service only. I'l like it to
start up when its installed.
As its just a background service it doesnt show up on the pane of
installed apps. So there is no way for the user to manually start it.
I've already regietered for the BOOT_COMPLETED intent which works but
I dont want the user to have to power off the phone after the app has
been installed, just so as they can start it.

I've looked at the following intents: ACTION_PACKAGE_ADDED/CHANGED/
but it doesnt seem that you can register to listen for them from my

Any idea how I can start my background service without a power off/on?


2. How to use system () call

Hi All
(I am working for an OEM so I have access to full source code)

I have written a daemon and included in the rom (\system\bin
\mydaemon)  I also created another lib and JNI interface (Which I will
call from Android connection Manager)

Now when I get a call from JAVA (through jni) I wanted to start my
I am doing the following  but not working
r= system ("(\system\bin\mydaemon")

Also I tried it using  script, I created /system/etc/ and done
chmod 0777 in init.rc still it is not working

Please help


3. Keyboard log for reference

4. how to fill the irregular shape with the red color?

5. Sms that Allow Permission

6. develop mp3 player on android platform

7. Distributing free licenses to paid apps