How to send SMS automatically from your phone by programming in Android Studio java code?

  Рет қаралды 63,815

Programmer World

Programmer World

5 жыл бұрын

This video shows the simple steps to create an Android App which can be used to send SMS pro-grammatically to any number. The advantage of this App is that it does not opens the default Message App of your phone and will directly send the SMS from your App. So, if you want to design an App which sends some message or data automatically to a number via sms then this can be used.
In this video first it creates simple design by placing one push button and two Edit Text Boxes. The edit text boxes are used to take inputs such as numbers and message. In the Java code it is shown how SmsManager class is used to create a local SmsManager variable. Then it uses sendTextMessage method to send the text message to the destination phone number.
This video also shows how AndroidManifest.xml file can be modified to seek permission to access Read and Send SMS. In java code, the approval to read and send SMS from the user is asked by using the requestPermission method of ActivityCompat. Once the permission is granted in the Oncreate method of the main code, the App is able to send the SMS from the Phone. Please watch this video to see the details on this.
Please subscribe to the channel to learn more about tips and tricks of Android App Development.
Complete Source code is available at below link:
programmerworld.co/android/ho...
We will be glad to hear from you regarding any query, suggestions or appreciations at: programmerworld1990@gmail.com

Пікірлер: 186
@NEBATCNJOVU
@NEBATCNJOVU 3 жыл бұрын
THANKS!!! I cant put the relief in words. GOD BLESS YOU!!
@misc_mania94
@misc_mania94 4 жыл бұрын
thank you so much you solved my 50% of problems through your video
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
this is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@moukaloka9543
@moukaloka9543 3 жыл бұрын
very usefull video thanks
@CuongPham-hu5mk
@CuongPham-hu5mk 2 жыл бұрын
thanks u so much ! from Việt Nam
@sreekumarnr6313
@sreekumarnr6313 3 жыл бұрын
Thank u Sir!!!!
@rauljusti6490
@rauljusti6490 4 жыл бұрын
thanks, worked
@education_beauty
@education_beauty 3 жыл бұрын
Hello sir. Would you have an idea about shake the mobile to send location to saved numbers in particular application
@nikuldobariya6284
@nikuldobariya6284 4 жыл бұрын
hi , my quesion is dual sim selection in this send sms sim 1 and sim 2
@lostguy6123
@lostguy6123 Жыл бұрын
hello sir what if I want to make an app like this but the twist is whenever I ends the call the app should send automated message to that number(it will be useful for businesses)Its possible to make that one?
@fathihakouser2513
@fathihakouser2513 3 жыл бұрын
It was really helpful for me sir thank you. I have to connect some details directly to this app should I use readsms only or something else!!
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
I think read sms will be a good option. You can refer to my below video for steps to implement the read and forward SMS programmatically: kzfaq.info/get/bejne/fc57lNJy2pOWY3U.html Cheers Programmer World programmerworld.co -
@loukaschadjigeorgiou5315
@loukaschadjigeorgiou5315 4 жыл бұрын
This video is very informative thank you very much! What if the user wants to send sms from a smart watch which uses a sim card?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
For smartwatch the concept/ logic of the App (Java code) will remain the same. The only thing which will need adaptation is the layout according to the smartwatch layout. Cheers Programmer World programmerworld.co -
@education_beauty
@education_beauty 3 жыл бұрын
@@ProgrammerWorld how can we send specific message to the numbers feeded by user also kindly give me your email I need help in my final year project
@tuhinhossain8946
@tuhinhossain8946 10 ай бұрын
Thanks. do you know how to send MMS?
@TitanWari
@TitanWari Жыл бұрын
but this is not automatic. u need to tape the number , is there a way to make the app select all numbers in ur phone and send the same message to all of theme ! in one click.
@DaoHue2005
@DaoHue2005 7 ай бұрын
Can it get OTP from other app to sent SMS ?
@chaminduchanaka641
@chaminduchanaka641 4 жыл бұрын
Hi, I need to know SEND_SMS permission is accepted by google play when publishing app?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
I am not sure. It may not be allowed as Google Plat Store has very stringent criteria for App published publicly (due to security risks). PS: I will try to publish it on play store and will let you know once it is accepted (or rejected) by the play store. Cheers Programmer World programmerworld.co/ -
@nadelman6411
@nadelman6411 3 жыл бұрын
you just saved my ass thank you!
@nimoliu1621
@nimoliu1621 3 жыл бұрын
If you wrote the programm can you send it to me please? xD
@MrIMacro
@MrIMacro 3 жыл бұрын
Every time I press the send button it says permission denied even though I have added the permissions in the manifest file and added the dependences and gave the application a permission in my operating system. Any help please?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
I hope you have declared all the 3 permissions as mentioned in the code: If yes, then the reason for the issue could be the model of the phone. Certain OEMs restricts the SMS to built-in Apps though it is allowed at Android OS level. Also, if the latest version Android has brought in some limitations then we will have to check that. So, could you please give below information which will help to understand the issue better: - Which model of the phone you are using? If you are using emulator then this issue should not appear. - What is the error message you are getting? Can you copy the exact error text (permission denied) over here? - Which version of SDK (Android version) you are using? For reference, complete source code of this project is shared in the below link as well: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@purogurama175
@purogurama175 3 жыл бұрын
Hello sir is it possible to enable high volume sound on the recipient's side who ever receives sms through this SmsManager??
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Check below page: programmerworld.co/android/how-to-control-audio-or-ringtone-settings-of-your-android-phone-remotely-without-internet-using-sms/ I think phone volume can be adjusted remotely through SMS. One can send a particular SMS with some specific keywords or passcodes to increase the volume. Then on the recipient side, on the receipt of such a SMS one can use audioManager.adjustVolume method to increase or decrease the volume as shown in the below page: programmerworld.co/android/how-to-adjust-the-volume-of-your-android-phone-programmatically-from-your-app-source-code/ Hope it helps. Cheers Programmer World programmerworld.co -
@cyberwhitedevil5504
@cyberwhitedevil5504 2 жыл бұрын
sir once i clicked stop button alaram couldn't stop how to i fix it please reply
@user-ku7et6up7j
@user-ku7et6up7j 3 жыл бұрын
Thanks! It is very helpful to solve my coding problem. If I want to make an App which is, if i push button, from App I can send particular message(which is already set, like "Please Help!") to already chosen person(like "my parents") Is this coding possible? And I want to send my location(tracking image) by using Google Map to my parents, not just specific location number.
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Yes, that is exactly shown in this video. That is how just by the press of a button you can send a particular message to your pre-chosen phone numbers. For sending the location in google map form refer to the below link: programmerworld.co/android/how-to-track-your-location-using-gps-and-send-it-over-sms-in-your-andoid-app-complete-source-code/ To convert the latitude and longitude in google map link: Convert the string in the below format: maps.google.com/?q=, Below is the example URL for - Latitude = 41.24 Longitude = 2.06 maps.google.com/?q=41.24,2.06 A bit processing may be required to get the strings in above format. Cheers Programmer World programmerworld.co -
@user-ku7et6up7j
@user-ku7et6up7j 3 жыл бұрын
@@ProgrammerWorld Thanks! But as same as in your video, there are some warning messages, but there are also string index out of range: -1, and Render problem. How can I fix them?
@user-ku7et6up7j
@user-ku7et6up7j 3 жыл бұрын
@@ProgrammerWorld I think there are some problems in lines that type the number, and message. In video, you can see the gray underline, but in my design, I cannot see my line and hint message(Type the number for example). How can I fix this problems?
@srikanths.v.3343
@srikanths.v.3343 Жыл бұрын
Sir pls make a program how to send a message for a missed call
@nileshthorat2403
@nileshthorat2403 3 жыл бұрын
Present sir
@gaurisawarkar-xx1ck
@gaurisawarkar-xx1ck Жыл бұрын
Hello sir thank you for this video but on my Android studio sms is not delivered and I also checked in sms app but it's not showing that any alems is delivered Sir please give the solution
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
To test this, you will have to run this in a real phone. As the mobile network isn't available in the emulator, it cannot be tested from Android Studio. To debug the code directly on your physical phone, below link can be referred: programmerworld.co/android/how-to-wirelessly-connect-over-wifi-physical-phone-in-android-studio-for-debugging-your-apps-code/ Cheers Programmer World programmerworld.co -
@ManilMopas
@ManilMopas 2 жыл бұрын
thanks alot sir! , how can i send multiple messages at once, when i copy-paste the send sms line it still sends only one message
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
Simple, just repeat the below line of code for as many mobile numbers as you want to send the messages to multiple numbers at once: mySmsManager.sendTextMessage(number,null, message, null, null); For reference, the complete source code shown in this video is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@smokinamby
@smokinamby Жыл бұрын
I have a complex problem. I have a foreground service, it has a location listener, inside the location listener I have my code in the on location changed. My code gets location, then it sends the gathered location data via sms to my own phone number. Everything works as expected. The problem comes if I run my app to soon after it just already run, it will prevent the text message notification sound from being audible. Any idea why this would be happening? If I replace the send sms with a simple toast that shows location data, it has no problems. The problem is somehow being caused from the sending of the sms. Should I be using one of the smsmanager intents?
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
Ideally it should not be an issue as you are using Foreground service to send the SMSes. Once you restart the App it may be that the earlier thread has not completed yet and new thread loaded causing this racing issue. So, if you are using onStart method to invoke your smsmanager to send the SMS then try to use onRestart mehod also. This may help to address the issue. Otherwise if you can share your code snippet then we can have a quick check. For reference, complete source code and details shown in this video is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@smokinamby
@smokinamby Жыл бұрын
@@ProgrammerWorld I will try this out. I've determined the cursor is sometimes getting the phone number before the phone numbers are updated in the system. (only happens about 1 out of 5 times, but I need it to be 0 times) I'm using 2 different phone numbers to text to my device in an alternative pattern, I've discovered that sometimes when I recieve a text, the number the cursor is getting hasn't been updated yet, resulting in the cursor grabbing the wrong/old phone number. I have temporary fixed this with a sloppy fix. I added a 500ms wait() before the cursor to give it enough time for the phone number to update. I need a better more reliable alternative than just waiting a set amount of time. Is there any way to send an intent or something saying the phone numbers in the text messages has been recently updated, do this
@vojajin6686
@vojajin6686 3 жыл бұрын
I need help how can I make it send sms to numbers from the list (multiple numbers)
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Just repeat the below line of code for as many numbers as you want. mySmsManager.sendTextMessage(number,null, message, null, null); The code shown in this video is also shared in below link for reference: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@norhanmada6652
@norhanmada6652 2 жыл бұрын
Hello sir. I respect all your effort and works. But how to work when you scan qr code then sending the information via gmail or sms. Hope can you help me. It on our project in school . Thank you so much. Sir and god bless you for sharing your knowledge.
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
Please refer to the below for steps on scanning QR Code information: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Refer below for sharing text over gmail or SMS: programmerworld.co/android/how-to-share-file-or-text-on-gmail-whatsapp-sms-bluetooth-from-your-android-app-share-button/ Below can help in making a custom email client App: programmerworld.co/android/how-to-send-email-using-gmail-smtp-server-directly-from-your-android-app/ For reference, the complete source code shown in this video is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@princemuleya7696
@princemuleya7696 2 жыл бұрын
anyone know how i can do this in flutter i need help
@education_beauty
@education_beauty 3 жыл бұрын
Dear I use this but it is used only one time mean once I click button message will sent but when I click button again no operation will done
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
It should work for multiple times also. Are you getting any error? I will suggest to debug and check why the send SMS code is not getting triggered in the 2nd time. Cheers Programmer World programmerworld.co -
@ayshaalf948
@ayshaalf948 4 жыл бұрын
How can I send from one device to other but I wand message show in application
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Then you should watch my below video on how to read the received SMS and show it in your App: kzfaq.info/get/bejne/gZ95n9J7xJyah30.html Good Luck Programmer World programmerworld.co -
@hprojects275
@hprojects275 3 жыл бұрын
Sir, i want to know how to send a message to another after shaking the phone (detecting motion and sending the message automatically) Is there a tutorial for that?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Try the concept shown in my below video: kzfaq.info/get/bejne/pZOho7mWy9jKhnU.html Instead of counting steps you can trigger to send SMS. For adjusting this App for shake motion, adjust the sensitivity of detection accordingly. Good Luck Programmer World programmerworld.co -
@guevannybuco4861
@guevannybuco4861 Жыл бұрын
If I send message using this app and receive to another not virtual device is it possible sir
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
Not possible. You need sim/ real phone number to send the SMS. cheers Programmer World programmerworld.co -
@bhagwanji9340
@bhagwanji9340 Жыл бұрын
i am frustrated , Google play store is not allowing to publish an app which which uses send sms in manifest . Is there any workaround to auto send sms without adding in manifest file or we are forced to use the sms intent to pop open the default sms app already there so that sms can be send without automatic method ?
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
SMS is a critical functionality as lots of sensitive information is received over SMS(such as banking related communication, private info, etc.). So, google restricts this service for normal user Apps. Following are the workarounds: - You may have to create system App for the respective device (but for that permission from the respective OEMs will be required). - Publish the App in private mode. - Use some other messenger, such as WhatsApp/ telegram, to send the data. For reference, details shown in this video is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@bhagwanji9340
@bhagwanji9340 Жыл бұрын
@@ProgrammerWorld cool bro, i had to force use the default sms app to fix my issue.
@itzfruSK24
@itzfruSK24 4 жыл бұрын
I converted this code into apk... And installed in my Mobile... Now I open this app...I entered mobile number and message and then I click send button... The app will crashed... How can I fix it. Help me
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Does this App works in emulator?
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
this is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@jayeshpanchal468
@jayeshpanchal468 2 жыл бұрын
hi sir,if my sms pack is expired, then sms will be delivered or not
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
This App will require mobile service provider network to send SMS. So, if the SMS pack is expired and service provider is not allowing then the SMS will not be delivered. For reference, the complete source code shown in this video is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@mohamedhusseinahmed5911
@mohamedhusseinahmed5911 3 жыл бұрын
It works but it's limited you can't send more than 100 characteristics
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
For me it works for more than 100 characters as well. Probably, some settings on your phone is restricting it to send SMS till 100 characters. For reference, the code shown in this video is also shared in below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@education_beauty
@education_beauty 3 жыл бұрын
Sir if the number is unknown like saved by user then how could I send
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Please refer to my below video for steps to access the contact list: kzfaq.info/get/bejne/mc2Gh8V3lpu9nHk.html Hope it helps. Cheers Programmer World programmerworld.co -
@saqibsaleem2
@saqibsaleem2 2 жыл бұрын
You made an app to send msg to 1 user,i am looking for multiple user where the app would send msg to multiple users,please tell us how to do that🙂🙏🙏
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
Simple, in the code repeat the below line for as many numbers as you want: Ex: mySmsManager.sendTextMessage(number1,null, message1, null, null); mySmsManager.sendTextMessage(number2,null, message2, null, null); mySmsManager.sendTextMessage(number3,null, message3, null, null); For reference, the complete source code shown in this tutorial is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@keshavagarwal5674
@keshavagarwal5674 4 жыл бұрын
Hello sir! Although the code worked in one of my android devices(Samsung), but in the other one(Oppo), it still opens a pop-up asking me the confirmation for sending THE SMS. How should I make the code work in all the devices so that it sends the message automatically?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
SmsManager API shown in this tutorial is offered as part of base Android OS APIs. So, all the phones running Android will support this APIs. Having said that most of this OEMs (Phone manufacturers) puts a layer of their custom OS on top of core Android OS provided by Google. Now, if the 2 brand phones are behaving differently then it is because of their customization. Coming to your question, I will have to check if their is any option in this API which can override the customization by OEMs. Also, I do not have the Oppo phone (as mentioned by you). But I will let you know if I find something on this. Cheers Programmer World programmerworld.co/ -
@keshavagarwal5674
@keshavagarwal5674 4 жыл бұрын
Programmer World Ok sir, Thanks alot 😁
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
this is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@mohsintahir8906
@mohsintahir8906 4 жыл бұрын
sir i got error on android studio 3 5 2 error in String = destination port message it says short? in smsmanager
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Can you please share your complete code so that I can have a look. In the meantime you can also check below webpage where complete code is shared: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ -
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
@@ProgrammerWorldthis is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@lbars
@lbars 3 жыл бұрын
Thanks for video, can we send sms to police too?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
If there is a mobile number where they accept SMSes then yes you can send the SMS to them too. Cheers Programmer World programmerworld.co -
@rauljusti6490
@rauljusti6490 4 жыл бұрын
How can i confirm that The SMS was delived?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
sentIntent along with messageId can be use to track the status of the SMS delivery in the SmsManager.sendTextMessage call. Cheers Programmer World programmerworld.co -
@invalidusername9490
@invalidusername9490 3 жыл бұрын
Can we send msg to real number using this? And also how to send sms directly to phone number that is saved in firestore database...Please help me out with this...
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Yes, SMS can be sent to real phone numbers using this concept. For numbers in firestore, just get the number from the database and then use that in the number attribute in the below lines of code: SmsManager mySmsManager = SmsManager.getDefault(); mySmsManager.sendTextMessage(number,null, message, null, null); For reference, the complete source code of App shown in this video is also shared at the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@cruzsalgado534
@cruzsalgado534 2 жыл бұрын
can this be sent through a different method; like whatsapp or facebook message?
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
All Apps have their own nitty gritty. For example, in WhatsApp one cannot automate the send operation unless one has business account. However, please refer to the below link to learn about sending using different modes: programmerworld.co/android/how-to-share-file-or-text-on-gmail-whatsapp-sms-bluetooth-from-your-android-app-share-button/ For reference, the complete source code shown in this tutorial is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@rethinavel.s9779
@rethinavel.s9779 Жыл бұрын
when received message from GSM to forward automatically with in 30 sec to popup click ok then stop forward otherwise forward forward automatically Android studio Java and XML pls provide code
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
My below page may help. Please refer: programmerworld.co/android/how-to-read-and-forward-certain-smses-programmatically-in-your-android-app-complete-source-code/ Cheers Programmer World programmerworld.co -
@rethinavel.s9779
@rethinavel.s9779 Жыл бұрын
@@ProgrammerWorld thank you for reply
@leobubu3254
@leobubu3254 4 жыл бұрын
sir, im using an actual phone "samsung A80". when i click send it does not appear on my message app. but on emulator it appear in the message app. can you help me? how to make it work on real phone.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
My first guess is in your real phone somehow the App didn't get the permission to send SMS. Check in the App's permission settings and see if it has the send SMS permission. Also, in some of the phones sending SMS may not be a simple privilege but may need system permission like write_setting permission. In that case you will have to provide permission using an intent with ACTION_MANAGE_WRITE_SETTING. One example of that has been shown in below page: programmerworld.co/android/how-to-control-screen-brightness-level-through-your-custom-android-app-complete-source-code/ -
@leobubu3254
@leobubu3254 4 жыл бұрын
Alright thank you sir. I will check.
@fi3ldset303
@fi3ldset303 4 жыл бұрын
@@leobubu3254 did it work? Mera bhi same problem hai
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
this is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@vatsayaynbinay160
@vatsayaynbinay160 4 жыл бұрын
sir you did not add onclicklistener for the button. How can it send message without that?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
OnClickListener is one approach and probably the preferred approach to read the click of button. This gets implemented in Java code. However, in this video, I have added onClick attribute of the button in the layout XML file. So, whenever the button is clicked the respective onClick method is called (which is set in layout file). Good Luck Programmer World programmerworld.co -
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
this is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@vishaltailor2736
@vishaltailor2736 3 жыл бұрын
how to send sms to over contact list member?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Please refer to my below video: kzfaq.info/get/bejne/mc2Gh8V3lpu9nHk.html Cheers Programmer World programmerworld.co -
@Lyes_Abdellatif
@Lyes_Abdellatif Жыл бұрын
How to store all the messages ?
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
Messages can be stored in any of the databases accessible to the app. If local storage (on the device itself) is required then one can use SQLite database. For remote server based db, one can use Firebase, MS SQL, Oracle, etc. Below links may help in configuring such db for your Android Apps. SQLite: programmerworld.co/android/how-to-create-a-custom-calendar-app-to-store-reminders-and-events-using-sqlite-database-in-android-studio/ Oracle DB: programmerworld.co/android/how-to-connect-to-the-oracle-database-using-jdbc-driver-from-your-android-app-android-studio-example/ MS SQL: programmerworld.co/android/how-to-connect-to-ms-sql-server-database-from-your-android-app-complete-steps/ Firebase: programmerworld.co/android/create-your-firebase-realtime-database-calendar-app-to-store-events-or-reminders-android-13-api-33/ programmerworld.co/android/create-location-tracking-android-app-by-exchanging-location-information-over-firebase-database/ Cheers Programmer World programmerworld.co -
@Vathananable
@Vathananable 3 жыл бұрын
Sir how do I pass the phone number to smsManager?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
In the shown video, the SMS is sent to the number in the below line of code: mySmsManager.sendTextMessage(number,null, message, null, null); So, the first argument in the above takes the phone number to which the message has to be sent. Complete source code below: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ You can take this number from user through EditText as shown in this video. Also, it can be directly read from the phone's contacts. Refer below link: programmerworld.co/android/how-to-read-or-access-the-contacts-saved-in-the-phone-from-your-android-app/ Cheers Programmer World programmerworld.co -
@ajayjoseph7418
@ajayjoseph7418 3 жыл бұрын
My messages aren't appearing on the emulator or on the phone for some reason. Everything else work!
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
On the emulator, the message should appear in the sent message list. In the real phone it should work like a SMS/Message App. Are you getting any error? Cheers Programmer World programmerworld.co -
@ajayjoseph7418
@ajayjoseph7418 3 жыл бұрын
​@@ProgrammerWorld I have no idea why it's not working and I am not getting any error either. However, everything works fine on a different PC where I did not use the emulator I used a real phone. I reckon it could be the device I set up on the emulator (Pixel 2 API 24). Thanks for the tutorial and prompt reply. Good day
@outsourcing7089
@outsourcing7089 3 жыл бұрын
Delivery report programing please sir
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Can you please elaborate a bit on what your mean by Delivery report? What kind of report you want to generate. Above information will help me answer the query better. Cheers Programmer World programmerworld.co/ -
@seino__
@seino__ 3 жыл бұрын
please either increase the font or zoom in, it is pain in the eyes to view your video properly.
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Thanks for the suggestion. We will increase the text size in future videos. However, for reference complete source code of this project is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co/ -
@education_beauty
@education_beauty 3 жыл бұрын
Sir Sir I need a code through which a confirmation message will sent to feeded numbers during registration
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
I think the complete Source code shown in this video is available at below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ I hope this will help you in coding your requirement. Cheers Programmer World programmerworld.co -
@education_beauty
@education_beauty 3 жыл бұрын
Thanks a lot I am just asking for confirmation I'll try this for my final year project
@education_beauty
@education_beauty 3 жыл бұрын
@@ProgrammerWorld sir my app is not running on mobile and on laptop it shows emulator was killed
@ananysharma8483
@ananysharma8483 4 жыл бұрын
Sir Mere ko multiple messages send krne hai , vo kaise kru
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Just enhance this App so that it can take multiple messages and send it across. Cheers Programmer World programmerworld.co -
@education_beauty
@education_beauty 3 жыл бұрын
Sir my data is not inserted in database have you any link to solve my problems
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
To which database are you referring to? Can you please give a bit more details here? Cheers Programmer World programmerworld.co/ -
@education_beauty
@education_beauty 3 жыл бұрын
@@ProgrammerWorld sir sqlite database me update query bta de r uri parse to k zariye message bhejna hai message to display hota hai mgr number pick ni krti app database se
@prashantrao9456
@prashantrao9456 4 жыл бұрын
sir i want to send message to multiple numbers stored in database...can you help me with it...i also have emailed you.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
You can repeat the below line of code for as many number as required: mySmsManager.sendTextMessage(number,null, message, null, null); For complete source code, you can refer to the below webpage: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Good Luck Programmer World programmerworld.co -
@prashantrao9456
@prashantrao9456 4 жыл бұрын
Can i contact you...?
@prashantrao9456
@prashantrao9456 4 жыл бұрын
Im a beginner so i don't understand Android that much..and i also don't have time ..i have submit the project
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
You can reach us using below link: programmerworld.co/contact/ Or drop a comment on my website. -
@prashantrao9456
@prashantrao9456 4 жыл бұрын
Done...
@yanamadhiakhila2950
@yanamadhiakhila2950 4 жыл бұрын
Sir is it possible to send my location to worker so that the person have to see my current location in google map
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
That's exactly what is shown in the below video (location tracking by sending the coordinates over SMS): kzfaq.info/get/bejne/fNGehdeam9TDdmw.html You may also refer to the below video which shows the tracking mechanism using Firebase database: kzfaq.info/get/bejne/nt-ZZ8d93rbYoH0.html The source code for above videos are available at respective links below: programmerworld.co/android/how-to-track-your-location-using-gps-and-send-it-over-sms-in-your-andoid-app-complete-source-code/ programmerworld.co/android/create-location-tracking-android-app-by-exchanging-location-information-over-firebase-database/ I hope above helps. Good Luck Programmer World programmerworld.co -
@yanamadhiakhila2950
@yanamadhiakhila2950 4 жыл бұрын
@@ProgrammerWorld not specifying particular number in the code
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
You can take the input of the numbers using a Edit Texts in the layout. Alternatively, you can store the numbers in a database and access it when you need to send the SMSes. Good Luck Programmer World programmerworld.co -
@yanamadhiakhila2950
@yanamadhiakhila2950 4 жыл бұрын
@@ProgrammerWorld tq sir
@yanamadhiakhila2950
@yanamadhiakhila2950 4 жыл бұрын
Sir What to do if I want to send the data from recycler view if i click the particular data then it should send to firebase .Can you say what to do
@muhammadfaisal1983
@muhammadfaisal1983 4 жыл бұрын
this is not automatic but manually...
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
I think in this video it shows how clicking a button in your App sends the SMS to the mentioned phone number. Of course, to trigger the send SMS there has to be a way. In this video it uses a button in the App. But same concept can be used to trigger automatically based on some listener activity (just an example.) Below is another video which shows a practical use case of this concept: kzfaq.info/get/bejne/fNGehdeam9TDdmw.html Hope it helps. Good Luck Programmer World programmerworld.co -
@salehkhalil4140
@salehkhalil4140 4 жыл бұрын
There is no sent messages this code does not work out
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Is there any error thrown? Cheers Programmer World programmerworld.co -
@MyTelentedhands24
@MyTelentedhands24 4 жыл бұрын
this is my video and i hope your problem will be solved 100% after watching this. kzfaq.info/get/bejne/rcqPhZmLzpPJnoU.html
@MAMTAGUPTA-sf8gd
@MAMTAGUPTA-sf8gd 4 жыл бұрын
is app se msg direct send ni ho rha h humhe msg me jakr resend kr krna pd rha h
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
That's weird that the application code is not working in your case and you have to resend the message by going to the message app .... As shown in the video also, smsmanager should be able to send the messages directly unless their is some permission issues either in your OS or restricted by the OEM of your phone. I will suggest to try on other phones and check it. For original source code shown in this video you can refer to my below webpage as well: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@gopianbu4640
@gopianbu4640 4 жыл бұрын
It showing message sent successful but I can't see them in sent items. Why this happens? Is there any solution?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
To be honest, I do not know. All the messages sent or received should show up in your messenger App. The only guess I can do is in your phone (or emulator) the default messenger some other App and you are checking the messages on some other App. Please note: only the default messenger App will have the access to all the messages sent and received.
@gopianbu4640
@gopianbu4640 4 жыл бұрын
I am checking the message in my default messenger only but it is not available there
@gopianbu4640
@gopianbu4640 4 жыл бұрын
I am struck in this point for a long time. Help me out to overcome this
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@gopianbu4640 Send me your code. I will try to check. Either you can paste it here in the comment or email at: programmerworld1990 at gmail dot com
@gopianbu4640
@gopianbu4640 4 жыл бұрын
@@ProgrammerWorld OK will mail you the code after 9pm
@irfanansari85
@irfanansari85 2 жыл бұрын
how o send sms by HTTP
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
There are various commands and APIs to send or share over HTTP protocol. However, if you are looking to directly send a SMS to a mobile number over HTTPs then it will be only possible if there is any server which does this job. If you have any specific use-case for this then please let us know. Further clarity will help us to understand the query better. For reference, the complete source code shown in this tutorial is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@prajil_
@prajil_ 3 жыл бұрын
What is automatic here?? Typing number is manual Typing message is manual Sending is manual.
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
This is just a demo. This whole concept can be used to automate the sending of SMSes in a much larger App's activity. One such use case is shown in the below: programmerworld.co/android/how-to-track-your-location-using-gps-and-send-it-over-sms-in-your-andoid-app-complete-source-code/ Cheers Programmer World programmerworld.co/ -
@digitalcentre2113
@digitalcentre2113 3 жыл бұрын
Where it is working 😕😕plz help me😒😒
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Try on an actual phone, it should work. Good Luck Programmer World programmerworld.co -
@manjulasiddegowda2067
@manjulasiddegowda2067 4 жыл бұрын
Sir it's not working properly
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
What is the error you are getting?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@vintagegear5240 yes, you can test this App in an emulator on your laptop. But of course sms will not go to another phone as emulators are not connected to mobile network. However, you can see that message in the sent items under your message App in your emulator.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@vintagegear5240 Without details on issue it will be tough to explain why your App is not working. The phone number format is usual format. Country code + Area code + mobile number of recipient. Try it on emulator and actual phone both. If it doesn't work on either then debug the code to see for reasons of failure.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@vintagegear5240 Yes, why not. The SMS should work with anything including alphabets, numbers, digits and special characters. The only thing is you have to make sure the numbers (Integers) are converted to text using the toString API. Similarly on the receiving end you may have to convert the numbers from string datatype back to integer datatype using ParseInt API of Integer. Good Luck programmerworld.co
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@vintagegear5240 No, as of now I do not have videos on APPs for Android Watches. But thanks for the idea, probably I will try to make videos for the watches' Apps as well. For your question, I think the concept should remain same for the App development. The only difference would be in the layout design of the App otherwise underlying code logic would remain same.
@English.7310
@English.7310 4 жыл бұрын
Muje application nam do muje download karni hai
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
You can develop the App using the source code shared at the below link. It is very simple. programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@btechcprogrammer116
@btechcprogrammer116 5 жыл бұрын
Brother i am an hacker can i hack any phone by this process 💀💀💀💀💀💀💀💀
@ProgrammerWorld
@ProgrammerWorld 5 жыл бұрын
This App will require explicit permission to send SMS from the user of the phone. So, as long as you are able to get that permission you can technically send a continuous stream of data from one phone to another.
@Muhammadusman-sj6yz
@Muhammadusman-sj6yz 4 жыл бұрын
you are just creating sending sms app not auto sending sms
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Yes, you are right, in this video I have shown how to create a custom SMS App. But you can use this concept and code for any use case where you want to send the messages automatically in the background without accessing the SMS App of your phone. One such use case is to send the location of your phone automatically over SMS. You can watch my below video for details on this using the KZfaq link: kzfaq.info/get/bejne/fNGehdeam9TDdmw.html I am pretty sure once you watch this use case you will appreciate the concept shown in this video.
@nivethaselvaraj5350
@nivethaselvaraj5350 4 жыл бұрын
Damnit Bobby I want to know how to connect a timer with a message app to send messages automatically.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@nivethaselvaraj5350 You can refer to the below videos which shows steps to create a separate service class in which timer runs for doing specific activities after an interval: kzfaq.info/get/bejne/rt5zZ5BzsbS3g5c.html kzfaq.info/get/bejne/iM1_pNCCyN_JpZ8.html Cheers Programmer World programmerworld.co -
@jeroenleermakers1278
@jeroenleermakers1278 4 жыл бұрын
I tried to do the same thing, sending an SMS automatically after a sensor event. Works great. BUT, after I upload the app to the Play Store for official release, Google rejects the app because these kind of permissions have become too sensitive. I have not found a way around this. If anyone knows, let me know.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
@@jeroenleermakers1278 Hi, Great, thanks for notifying this. However, I really doubt if the Google should reject such applications. There are ample of commercial Apps (including financial Apps) which uses this technique of sending SMS from their App for authentication and validation. I will check on this. Thanks for bringing this. Cheers Programmer World programmerworld.co -
@pablomartin5825
@pablomartin5825 Жыл бұрын
no work
@ProgrammerWorld
@ProgrammerWorld Жыл бұрын
What is the error or exception being observed? Could you please post it here? For reference, the complete details and source code shown in this video is also shared in the below link: programmerworld.co/android/how-to-send-sms-automatically-from-your-phone-by-programming-in-android-studio-java-code/ Cheers Programmer World programmerworld.co -
@obidahasdia4095
@obidahasdia4095 3 жыл бұрын
Free?
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
No, standard SMS charges will apply. The phone's network service provider will charge the amount for every SMS sent. Cheers Programmer World programmerworld.co -
@obidahasdia4095
@obidahasdia4095 3 жыл бұрын
@@ProgrammerWorld is there a free way?
@obidahasdia4095
@obidahasdia4095 3 жыл бұрын
@@ProgrammerWorld or free messages ways methods?
app inventor currency converter App
10:08
Mohamed Hedhly
Рет қаралды 3,2 М.
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 11 МЛН
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 18 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 2,5 МЛН
Activities & the Activity Lifecycle - Android Basics 2023
12:47
Philipp Lackner
Рет қаралды 111 М.
How Fast Can You Throw a Car in Poly Bridge 3?
15:06
Reid Captain
Рет қаралды 18 М.
Send BULK SMS From Your OWN Number Using EXCEL [Template]
5:55
Coding Is Fun
Рет қаралды 181 М.
WHAT IS A COROUTINE? - Kotlin Coroutines
4:56
Philipp Lackner
Рет қаралды 152 М.
Android SMS - Messages by Google
13:18
Chanux Bro
Рет қаралды 110 М.
Yaml Tutorial | Learn YAML in 18 mins
18:05
TechWorld with Nana
Рет қаралды 615 М.
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 11 МЛН