damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

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

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

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

Copied from original issue: damonkohler/android-scripting#627

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

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

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

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

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

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

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

@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