I tried the smsto:uri method. It works fine, but does not allow me to
attach the picture that I am passing with the intent.
it.setType(image/jpeg); causes my application to crash, and without
this line of code, it would not attach an image file with the intent.
My client has now agreed to let a
Unfortunately there doesn't seem to be a way to do what you want to do. The
messaging app is looking for an intent with the SENDTO action and a phone
number, or the SEND action and some data (such as an image), but not both a
phone number and some data.
-Erik
On Monday, March 26, 2012
Hi all,
I am working on an application that allows user to create mms messages
according to a template, for android 2.2. I am done with most of the work,
but I am stuck with one thing. I want to be able to launch the android's
default messaging application to send the mms. I tried to set package
try this
Intent it = new Intent(Intent.ACTION_VIEW);
it.setType(vnd.android-dir/mms-sms);
On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq farhan@gmail.com wrote:
Hi all,
I am working on an application that allows user to create mms messages
according to a template, for android 2.2. I am
I tried to set package of the intent as com.android.mms and it seems to
work fine on my phone, as well as emulator
You don't want to do this... Not all phones will have the stock android app
with that package name. Many manufacturers replace stock android apps with
their own for things like
Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND);
picMessageIntent.putExtra(address, Some Numbers);
picMessageIntent.setType(image/jpeg);
picMessageIntent.putExtra(sms_body, Some Text);
picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
On Sun, Mar 25, 2012 at 7:21 PM, Farhan Tariq farhan@gmail.com wrote:
Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND);
picMessageIntent.putExtra(address, Some Numbers);
picMessageIntent.setType(image/jpeg);
picMessageIntent.putExtra(sms_body, Some Text);
There is no default messaging app. Any messaging application that chooses
to handle MMS can respond to this intent. If the *user* chooses to make one
of the applications a default, then it becomes one until the user unsets it
as the default.
You seem to have a reason for wanting one
I understand that the user should be given option to choose an application,
and why. But it is the requirement of the client that the application
should use the messaging application that came with the phone OR the
default messaging application to send the mms. /And i am kind of stuck here.
Also,
On Sun, Mar 25, 2012 at 7:57 PM, Farhan Tariq farhan@gmail.com wrote:
I understand that the user should be given option to choose an application,
and why. But it is the requirement of the client that the application should
use the messaging application that came with the phone OR the
The reasoning to use 'one' app would simply be that my client wants it to
be like that.
Plus, other applications in chooser do not work properly too. Like, the
addresses do not get populated in the chosen application. It does not give
a choice for the SMS applications, but from a HUGE list if
The smsto: uri part makes more sense to me. I'll try that. Thanks
On Mon, Mar 26, 2012 at 5:08 AM, Mark Murphy mmur...@commonsware.comwrote:
On Sun, Mar 25, 2012 at 7:57 PM, Farhan Tariq farhan@gmail.com
wrote:
I understand that the user should be given option to choose an
application,
If that's the case, then you've written the intent wrong.
However. If you want to artificially impose the constraint of using a
specific messenger, you can always check if the intent will succeed
and fall back to a more generic intent otherwise, by checking to see
if there's anyone registered to
you can always check if the intent will succeed
by checking to see if there's anyone registered to receive it.
How to go about these?
On Mon, Mar 26, 2012 at 5:32 AM, Kristopher Micinski krismicin...@gmail.com
wrote:
If that's the case, then you've written the intent wrong.
However. If
How to go about these?
http://developer.android.com/reference/android/content/pm/PackageManager.html#queryIntentActivities%28android.content.Intent,%20int%29
But seriously... you need to tell your client that they shouldn't lock the
user into trying to use one app. I don't use the default mms
15 matches
Mail list logo