Comments (9)
OK found have to change sdk imported to 4.0
from android-smsmms.
Still one beginner issue : import com.koushikdutta.ion.Ion; is not found (' com.koushikdutta' could not be resolved) but i've well ion.aar ! any idea ?
from android-smsmms.
I 've temporary add ion-1.3.7.jar to fix it
from android-smsmms.
I also can't send sms / mms using :
private void sendMMS(String phoneNumber, String message)
{
Settings sendSettings = new Settings();
sendSettings.setMmsc("http://mms1");
sendSettings.setProxy("10.151.0.1");
sendSettings.setPort("8080");
sendSettings.setGroup(true);
sendSettings.setDeliveryReports(false);
sendSettings.setSplit(false);
sendSettings.setSplitCounter(false);
sendSettings.setStripUnicode(false);
sendSettings.setSignature("");
sendSettings.setSendLongAsMms(true);
sendSettings.setSendLongAsMmsAfter(3);
//sendSettings.setAccount("[email protected]");
sendSettings.setRnrSe(null);
Transaction sendTransaction = new Transaction(this, sendSettings);
Message mMessage = new Message(message, phoneNumber);
// mMessage.setImage(BitmapFactory.decodeFile(Environment.getExternalStorageDirectory() + "/DCIM/Camera/20130913_181519.jpg")); // not necessary for voice or sms messages
mMessage.setType(Message.TYPE_SMSMMS); // could also be Message.TYPE_VOICE
sendTransaction.sendNewMessage(mMessage, Transaction.NO_THREAD_ID);
// Intent intent = new Intent(Intent.ACTION_SEND);
//// intent.setClassName("com.android.mms", "com.android.mms.ui.ComposeMessageActivity");
// intent.putExtra("address",phoneNumber);
// intent.putExtra("sms_body",message);
// intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile());
// intent.setType("image/jpg");
// startActivity(intent);
}
But well using
private void sendSMS(String phoneNumber, String message)
{
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message,
null, null);
}
What i miss ?
from android-smsmms.
Note if i clear my sms with the contact i try to send in my android message application when i class sendMMS method i stop at the creation of thread with the contact selected
from android-smsmms.
You should really just use gradle to build the project and then you can include it in your app.
It's as simple as running
./gradlew build
in the project root, then you don't need to worry about importing anything, it will just build it. You can then include the assembled aar from the build/ folder in your gradle project.
from android-smsmms.
And this should solve the second problem ?
from android-smsmms.
You'll need to post a log of the error for the second problem or else I cannot help.
from android-smsmms.
My log is here http://pastebin.com/0DfXrDyy call start at line 84 "sendMMS"
if you need i can also send you my code
thanks in advance
2014-07-23 20:57 GMT+02:00 Jacob Klinker [email protected]:
You'll need to post a log of the error for the second problem or else I
cannot help.—
Reply to this email directly or view it on GitHub
#14 (comment)
.
from android-smsmms.
Related Issues (20)
- Receive MMS Fail, Need change 3 lines of code to make it working HOT 6
- "path" variable from onReceived Intent extra is always null, causing app to crash.
- sms or ms on sending failure doesn't call the sentReceivers
- IOnlyOwnerSimSupport HOT 1
- i cannot send MMS only SMS HOT 2
- Can i send MMS with just Text, No Picture attach HOT 1
- Why does this project contain Android Internals? HOT 2
- Unable to start receiver com.example.mms_test.MmsReceiver: java.lang.NullPointerException: println needs a message
- Cannot call transaction.sendNewMessage to send MMS using system sending without being the default Messaging app
- get the id of the message when sending it HOT 1
- I think it needs more permissions when send Audio Files
- Sending MMS is failing on Android 12 with target API as 31 HOT 4
- com.android.mms.service_alt.exception.MmsNetworkException: Acquiring network timed out at Google Pixel Android 11 HOT 1
- can i use this library in my flutter project?? HOT 1
- App crash in Android 12 HOT 2
- MMS cannot be received when the system signature is present
- did u solve this issue ? i have the same issue HOT 1
- Compiled Jar
- compileSdkVersion 31 compiled and not received MMS,LMS Message HOT 1
- Mms Send Stuck on "Sending" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-smsmms.