Hi All!
New here, love the Android SDK, but not so happy with finding pure
references (lists) of things like possible existing ACTIONS (Intents)
or component names.
My specific problem is that I am writing a little app that uses the
Android messaging (intent ACTION_SEND). Problem is that I dont want
that chooser to come up, but instead that its always(!) the messaging
(MMS) which is used.
I found that you can set a specific component for an intent, so I
downloaded the Android sourcecode and found an app
com.android.mms.MmsApp
But if I do that:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("sms_body", message);
sendIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse(APP_DIR
+TEMP_IMAGE));
sendIntent.setType("image/jpg");
sendIntent.setComponent( new ComponentName("com.android.mms",
"com.android.mms.MmsApp" ) );
return sendIntent;
I get an error that com.android.mms/com.android.mms.MMsApp is not
findable, and whether I declared it in my android manifest file (which
clearly I could not, because its a completely different package).
Does anyone know about sites that provides lists of possible Intents
and components (pre-existing on the android system)??
THANKS!!!!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en