Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i cannot send MMS only SMS #175

Open
zouvelekis opened this issue Jul 21, 2020 · 2 comments
Open

i cannot send MMS only SMS #175

zouvelekis opened this issue Jul 21, 2020 · 2 comments

Comments

@zouvelekis
Copy link

zouvelekis commented Jul 21, 2020

This is my code

`
try {
SharedPreferences sharedpreferences = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
String path_camera = sharedpreferences.getString("pref_path_camera", "");

        File f= new File(path_camera);
        BitmapFactory.Options options = new BitmapFactory.Options();
        options.inPreferredConfig = Bitmap.Config.ARGB_8888;
        Bitmap myImg  = BitmapFactory.decodeStream(new FileInputStream(f), null, options);


        Settings settings = new Settings();
        settings.setMmsc("http://mms.vodafone.gr");
        settings.setProxy("213.249.19.49");
        settings.setPort("5080");
        settings.setUseSystemSending(true);

        Transaction transaction = new Transaction(MainActivity.this, settings);
        Message message = new Message("Hello test mms", "6955555555");
        message.setImage(myImg);
        transaction.sendNewMessage(message, Transaction.NO_THREAD_ID);

        } catch (Exception ex) {
            ex.printStackTrace();
            Log.d("TAGer", "Error in load image." + ex);
    }`

If i put into comments the line message.setImage(myImg); the message will be sent like normal SMS

What am I doing wrong ?

@g-radam
Copy link

g-radam commented Dec 26, 2021

Having same issue. Not sure it its 100% related, but getting "E/libc: Access denied finding property "ro.vendor.config.hw_vowifi"" when enabling the message.setImage() line above. Disabling it will send a normal sms without any issue.

@skamensky
Copy link

@zouvelekis , did you ever figure this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants