Sorry you cannot add this picture to your message

New Page

“Lo siento, no puedes agregar esta imagen a tu mensaje” al intentionar send an MMS

Pregunta

Preguntó hace 9 years, 10 months

Modified 9 years, 10 months ago

Visto 6k times

Esta pregunta muestra el esfuerzo de investigación; it is useful and clear

0

Esta pregunta no muestra ningún esfuerzo de investigación; no está claro o no es util

Bookmark this question.

View activity on this post.

Estoy tratando de viar un MMS con una imagen que guardé en la tarjeta SD y, al abrir el servicio de mensajería, aparece el mensaje “Lo siento, no puede agregar esta imagen a su mensaje” y no adjunta el archivo. Intended to analyze the archive in a uri, intended to pasar the archive directly at the intention of MMS y algunas otras cosas. Non estoy seguro de lo que me estoy perdiendo y estoy bastante seguro de que lo está guardando, ya que puedo ver el archivo en el Visor de archivos. ¿Tengo que hacer que la imagen esté disponible para la tienda de medios escaneándola (prefiero no ponerla en la galería de imágenes), tengo que abrir el archivo antes de pasarlo? Un poco de dirección en cuanto a lo que debería estar haciendo sería apreciado.

My Archives

Private static final string FILENAME = “data.pic”; File dataFile = new file (Environment.getExternalStorageDirectory(), FILENAME);

keep picture

// Int position of the selected image id = data.getExtras().getInt(“id”); ImageAdapter imageAdapter = new ImageAdapter(this); ChosenImageView.setImageResource(imageAdapter.mThumbIds[position]); Resources res = getResources(); Drawable drawable = res.getDrawable(imageAdapter.mThumbIds[position]); Bitmap bitmap = ((BitmapDrawable)drawable).getBitmap(); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); byte[] bitmapdata = stream.toByteArray(); try { File file = new File(dataFile, FILENAME); file.mkdirs(); FileOutputStream fos = new FileOutputStream(file); fos.write(bitmapdata); fos.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }

}

Dónde quiero adjuntarlo y mi intento actual

// Create a new MMS Intent mmsIntent = new Intent(Intent.ACTION_SEND); mmsIntent.putExtra(“sms_body”, “I sent you a photo!”); mmsIntent. putExtra(“address”, txt1); mmsIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new file(FILENAME))); mmsIntent.setType(“image/png”); startActivity(mmsIntent); }};

  • android
  • horror
  • MMS

To share

Share a link to this question

Copy link CC BY-SA 3.0

Mejora esta pregunta

Seguir

Sigue esta pregunta para recibir notifications

modified on November 24, 2012 at 4:13 PM

User avatar of NewUser

New user

3,649 8 8 gold badges 54 54 silver badges 77 77 bronze badges

requested on November 24, 2012 at 3:57 PM

User avatar of user1409172

user1409172 user1409172

97 1 1 silver badge 11 11 bronze badges

5

  • Just make sure about file extension private static final String FILENAME = “data.pic”; I suggest you to use private static final String FILENAME = “data.jpeg”; So its either “data.jpeg” or “data.png”.

    –  user370305

    Nov 24, 2012 at 16:00

  • look here: stackoverflow.com/questions/10527536/… the difference is the startActivityForResult() is used instead of startActivity()

    –  blacharnia

    Nov 24, 2012 at 16:02

  • Hmm changed it to data.png (as it is a png image) and no luck.

    –  user1409172

    Nov 24, 2012 at 16:04

  • @blacharnia That was the reference I used for my current attempt. I’m missing something and cant quite put my finger on it.

    –  user1409172

    Nov 24, 2012 at 16:07

  • 1

    Look at my answer. Hop you can understand it.

    –  user370305

    Nov 24, 2012 at 16:20

Add a comment  | 

1 respuesta1

Ordenado por: Restablecer a predeterminado

Puntaje más alto (predeterminado) Tendencia (los votos recientes cuentan más) Fecha de modificación (más reciente primero) Fecha de creación (el más antiguo primero)

This answer is helpful

2

This answer is not helpful

View activity on this post.

Aaah Lo siento, no puedes.

Problem :

The new file (FILENAME) does not exist.

Mire estas tres líneas de código de diferentes archives.

1. File dataFile = new file (Environment.getExternalStorageDirectory(), FILENAME); 2. File file = new File(dataFile, FILENAME); 3. Uri.fromFile(new file(FILENAME))

Todos tienen reference de diferencia.

Solution :

Cambia you code

try { File file = new File(dataFile, FILENAME); file.mkdirs(); // Here you create a FileOutputStream directory fos = new FileOutputStream(file); // set Outputstream to the directory which is incorrect fos.write(bitmapdata); fos.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }

Con

try { FileOutputStream fos = new FileOutputStream(dataFile); fos.write(bitmapdata); fos.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }

Y las lines of main code to send MMS,

if(dataFile.exists()) { Intent mmsIntent = new Intent(Intent.ACTION_SEND); mmsIntent.putExtra(“sms_body”, “I sent you a picture!”); mmsIntent. putExtra(“address”, txt1); mmsIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(dataFile)); mmsIntent.setType(“image/png”); startActivity(mmsIntent); }

Only use a single dataFile Filereferencia para all su código.

To share

Share a link to this answer

Copy link CC BY-SA 3.0

improve this respuesta

Seguir

Sigue esta respuesta para recibir notifications

modified on November 24, 2012 at 4:20 PM

answered on November 24, 2012 at 4:07 PM

User avatar of user370305

user370305 user370305

107k 23 23 gold badges 162 162 silver badges 151 151 bronze badges

3

  • Before sending the image, also check whether it exists on external storage or not.

    – utilisateur370305

    24 novembre 2012 à 16:18

  • 1

    Greatly appreciate it, I’m a novice and made a rookie mistake lol and see the problem now. Managed to get it properly attaching the file with your help tho now it seems to be having a problem displaying the image in the MMS. Its showing a generic image that has a triangle with a “!” in it, seems its not converting it properly now. (also wanted to get basic functionality working before adding the check if external is available, will be adding it).

    –  user1409172

    Nov 24, 2012 at 16:30

  • @user1409172 can you send audio or video through mms? i am getting problem sending audio file through mms only for few device like htc,lava or some samsung.

    –  Harshid

    Jan 29, 2013 at 13:22

Add a comment  | 

Tu respuesta

¡Gracias por contribuir con una respuesta a Stack Overflow!

  • Por favor, asegúrese de responder a la pregunta. ¡Proportione detalles y comparta su investigation!

But avoid…

  • Ask for help, clarification, or respond to other responses.
  • Make statements based on opinion; back them up with references or personal experience.

To learn more, check out our tips for writing great answers.

Saved Draft

Draft rejected

Sign up or log in

Sign up with Google

Sign up using Facebook

Sign up using your email and password

Submit

Post as guest

Last name

E-mail

Required, but never displayed

Post as guest

Last name

E-mail

Required, but never displayed

Post your answer Ignore

By clicking “Post your answer” you agree to our Terms of Service, Privacy Policy and Cookies Policy

Not the answer you are looking for? Browse other tagged questions

  • android
  • to register
  • MMS

or ask your own question.

  • The overflow blog
  • Stack Overflow Trends: Weekday vs. Weekend Site Activity

  • Don’t let software steal your time (Ep. 491)

  • Featured on Meta
  • Recent color contrast changes and accessibility updates

  • Reviewer overboard! Or a request for improved onboarding guidance for new…

  • Collectives update: recognized members, articles and GitLab

  • Do I need to explain other people’s answers in code?

Related

0

Android: send an MMS message with an image on an SDCard

Related

5

Compress camera bitmap

0

Android: send an MMS message with an image on an SDCard

0

How to send a picture message (MMS) with PHP

0

send a picture by MMS message

0

My attachment is not being sent when I try to send an attachment

Network burning questions

  • On the LM, what is the difference between ABORT and ABORT STAGE?
  • First salary without tax
  • Coefficient of an interaction term when the regressors are independent
  • Is there a known thing or physical object that absolutely cannot be destroyed?
  • Are university groups allowed to use grant funds to hedge against currency changes?
  • Wrong spacing in margin notes for equations and SI units
  • Why can’t you say “A doll was made me by my sister”?
  • ROT13 encryption using array indexing
  • How to rename a file that contains spaces in terminal?
  • Living room breaker will not turn on after pressure wash
  • Does the key a piece is written in affect playability for piano?
  • Software licence description doesn’t match AGPL licence limitations
  • Splitting and rejoining a trace to reduce resistance
  • How to tell when it’s time to give up on tires?
  • Centering a multi-column cell on top of two cells
  • Why doesn’t the bypass capacitor cause phase shift in this oscillator circuit?
  • How important is to have many gears on a e-bike?
  • Reasons to untrust Let’s Encrypt certificates
  • Found a mistake in a published paper at IEEE Transactions on Industrial Informatics
  • Can this type of function be plotted faster using NDSolve instead of NIntegrate?
  • Mapping Diagram with Parallelograms
  • Fill in color for transparent area in 3D plot
  • How to dispose large amount of wet sugar?
  • Can I work remotely for a non-Singapore employer while visiting Singapore?

Question feed

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Top 5 ways to fix Android won’t send picture messages problem or MMS not being sent

Trying to send a picture via messages and unable to send it? Here is how you can fix it.

Vipul Chandwani

By Vipul Chandwani

Sep 30, 2021

Facebook

Twitter

WhatsApp

Linkedin

ReddIt

    Email

Top 5 Ways to Fix Android Won't Send Picture Messages Issue

– Advertisement –

Trying to send some images directly via SMS to someone who does not use a smartphone? The service has been there for a long and is called MMS (Multimedia Messaging Service). With this service, one can send multimedia like images, short video clips, gifs etc. Android won’t send picture messages? Worry not, here are a few steps which will solve your problem. Before going through the list make sure you have sufficient balance as sending MMS costs more than SMS, so check the tariffs. 

  • Table of Contents

    • Enable mobile data
    • Force stop messaging application
    • Allow unrestricted data use
    • Clear cache
    • Reset Network setting

    Enable mobile data

– Advertisement –

Enable mobile data

Internet connectivity is required to send picture messages on android devices. If the smartphone refuses to send a picture message, check from the drop-down menu if the mobile data is switched on. If you are using Wi-Fi try temporarily disabling it and use cellular data. Service providers don’t allow you to send MMS over Wi-Fi so make sure you have an active data package or sufficient balance. 

  • Force stop messaging application

– Advertisement –

Parada forzosa

One can consider forcefully stopping the messaging application if it is refusing to send MMS to someone. There might have been some bug or issue that has been activated. It’s better to force stop the application and give it a fresh start. It works exactly like restarting your smartphone when some issue occurs. 

– Advertisement –

To force stop hold the application icon for 2 seconds to discover application information. Tap on it to reveal further options, press force stop and try to open the app and send the MMS again. This should fix the most obvious issues.

Read Also: How to reset your Android smartphone

  • Allow unrestricted data use

Android phones are smart and manage things on their own in the background. But sometimes they restrict a few applications unnecessarily as well. Make sure that the Messaging application has an unrestricted foreground and background data usability. To ensure follow these steps

Step 1 – Hold the messaging app to discover more setting

Step 2 – Tap on the app info(or similar setting)

Application Information

Step 3 – In the application setting tap on Mobile Data and Wi-Fi.

Step 4 – make sure both the Background data and Unrestricted data usage options are turned on.

uso sin restrictions

  • Clear cache

While working around the application there are chances that your smartphone might have stored some bad cache data which is causing trouble. Users can clear cache and check if the problem is solved with that. If it doesn’t clear the data as well. To do that, hold the icon for 2 seconds to discover app info, press it to see the settings. There head to storage>clear cache. Try sending the MMS again and see if it solves the problem. 

Hidden Borrar on Android

  • Reset Network setting

Sending any type of multimedia requires the proper configuration of your network settings. If they aren’t configured properly it can cause more issues as well. This can be fixed by resetting the phone’s network setting. To do so one can follow these methods.

Step 1 – Open setting

Step 2 – Search for “Reset Options” in the setting

Step 3 – Press the reset network setting(or similar depending on the phone you use)

Reset options

Step 4 – Confirm the prompt.

Restore WiFi Setup

This will reset your network settings. Some phones might ask you to restart the device. After the process, try sending the MMS again.

Read Also: Top 5 ways to fix if you are unable to download apps 

Estos son algunos pasos simples que uno puede seguir para resolver el problema de que Android no envíe mensajes con imágenes o MMS. También recomendamos buscar actualizaciones tanto para la aplicación como para el teléfono inteligente. A menudo, las actualizaciones pendientes causan problemas. Intente actualizarlos y vea si funciona para usted.

Para conocer las últimas noticias  sobre dispositivos y tecnología , y  reseñas de dispositivos , síganos en  Twitter ,  Facebook  e  Instagram . Para  ver los videos más recientes sobre tecnología y dispositivos,  suscríbase a nuestro  canal de YouTube . También puede mantenerse actualizado con la  aplicación de Android Gadget Bridge . Puede encontrar las últimas noticias  sobre automóviles y bicicletas aquí .

– Advertisement –

Support Us

We are a humble media site trying to survive! As you know, we don’t place any articles, even feature articles, behind a paywall or subscription model. Help us stay afloat, support with all you can!

Pay Pay

make a donation

– Anuncio publicitario –

  • read further
  • android
  • Google
  • messaging app
  • technology 2021
  • unable to send mms

Vipul Chandwani

Vipul Chandwani https://www.gadgetbridge.com/

Facebook

Twitter

WhatsApp

LinkedIn

ReddIt

    E-mail

Artículo anterior Las 4 best formas de eliminar applications chinas de su teléfono inteligente Android

Next story Poco C31 with triple cameras and 5000mAh battery debuts in India

RELATED ARTICULATES

Gadget Stink Like

World Tourism Day: Best apps and websites to find travel deals

Gadget Stink Like

World Tourism Day: The best gadgets to take on your next vacation

Gadget Stink Like

How to Play Online Casino Games Using Your Smartphone Safely

3 COMMENTS

  1. 6574546d5f9d2680d5bb8cd73fbca053Laura Aug 9, 2022 12:03 PM

    The first fixes my problem. Thanks a lot.

    Answer

  2. 954a62888e42f303ebbd963a7b0982ffBev Jordan Apr 21, 2022 @ 4:27 am

    It’s not working for me either, I’ve tried everything, nothing works, still can’t receive picture messaging

    Answer

  3. 17c49ef6c48fb9ad45fef280ba68b7a9Nonna April 15, 2022 @ 10:19 pm

    None of these worked for mine..not one of them 😭

    Answer

LEAVE A REPLY Cancel reply

Comment:

Please enter your comment!

Last name:*

Please enter your name here

E-mail:*

You have entered an incorrect email address!

Please enter your email address here

Website:

Save my name, email and website in this browser for the next time I comment.

– Anuncio publicitario –


Video Sorry you cannot add this picture to your message

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…