dexapier / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Unable to send MMS through perl as file is not getting attached #627

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
HTC Sensation

What firmware version are you running on the device?
Android 2.3

What steps will reproduce the problem?
1.Execute the perl script with the following code
use Android;
my $droid = Android->new();
my $uri = "content://sdcard//downlooads//samp.jpg";
my $type = "image/jpeg";
my $action = "android.intent.action.SEND_MSG";
my $extras = {'address' => "9739007140", 'sms_body' => "some text"};
my $intent = $droid->makeIntent($action, $uri, $type, $extras);
$droid->startActivityIntent($intent->{'result'});
2. The file samp.jpg is a image file of size 61KB size

What is the expected output? What do you see instead?
Expected Output: The image file should be attached to the SMS and get converted 
to an MMS.
A pop up saying "Sorry,the image cannot be attached"
Note: I can manually attach the file to an MMS and also send it successfully 
only through perl i am not able to do it.

My intention is to send an MMS using perl. If there is any better way or a 
correction that i need to do, please let me know.

Original issue reported on code.google.com by georged...@gmail.com on 10 May 2012 at 7:33

GoogleCodeExporter commented 9 years ago
I am also facing a similar issue is there any we can send an MMS through perl

Original comment by sansuann...@gmail.com on 10 May 2012 at 7:38

GoogleCodeExporter commented 9 years ago
I would also be interested if there is some solution to this

Original comment by prasadch...@gmail.com on 10 May 2012 at 9:13

GoogleCodeExporter commented 9 years ago
Is there any in built way in perl to send an MMS

Original comment by saran.bt...@gmail.com on 10 May 2012 at 9:15

GoogleCodeExporter commented 9 years ago
@Robbie: I have tried with file:// instead of content:// bu that also did not 
help

Original comment by georged...@gmail.com on 14 May 2012 at 9:50