Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:22:24+00:00 2026-05-27T17:22:24+00:00

I have to send sms periodically through my android application to a certain group

  • 0

I have to send sms periodically through my android application to a certain group of people (friends). The messages to be sent will be stored in a database in the application only.

I have seen following threads:

How to send sms programmatically?

Show compose SMS view in Android

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:22:25+00:00Added an answer on May 27, 2026 at 5:22 pm

    Use a Service:

    import java.util.Timer;
    import java.util.TimerTask;
    
    
    import android.app.Service;
    import android.content.Intent;
    import android.os.Handler;
    import android.os.Handler.Callback;
    import android.os.IBinder;
    import android.os.Message;
    import android.widget.Toast;
    
    public class SrvSMSSender extends Service {    
    
        Timer timerSendSMS = new Timer();
    
        class taskSendSMS extends TimerTask {
            @Override
            public void run() {
                hSendSMS.sendEmptyMessage(0);
            }
        };
    
        final Handler hSendSMS = new Handler(new Callback() {
            @Override
            public boolean handleMessage(Message msg) {
                procSendSMS();
                return false;
            }
        });
    
        public void procSendSMS() {
            try {
                // send your SMS here
    
            } catch (Exception e) {
    
            }
        }
    
    
        @Override
        public void onCreate() {
            super.onCreate();
    
        };
    
        @Override
        public void onStart(Intent intent, int startId) {
            try {
                long intervalSendSMS = 10*60*1000;
    
                timerSendSMS = new Timer();
    
                timerSendSMS.schedule(new taskSendSMS(), 0, intervalSendSMS);
    
            } catch (NumberFormatException e) {
                Toast.makeText(this, "error running service: " + e.getMessage(),
                        Toast.LENGTH_SHORT).show();
            } catch (Exception e) {
                Toast.makeText(this, "error running service: " + e.getMessage(),
                        Toast.LENGTH_SHORT).show();
            }
        }
    
        @Override
        public IBinder onBind(Intent arg0) {
            // TODO Auto-generated method stub
            return null;
        }
    
        @Override
        public void onDestroy() {
    
            timerSendSMS.cancel();
            timerSendSMS.purge();
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with my Android application. I need an application that will send
I am developing an Android based application in which I have to send SMS
I'm writing some sms application for android and i have a problem. I send
I have a client that wants the application to be able to send SMS
I am developing an iPhone application that will send sms the logged in user
i will have the following set up: people will be sending text messages to
I want to write application to send sms via COM port. Currently I have
I am doing some thing like SMS application in android Environment. I have a
I have an app where I need to be able to send SMS messages.
I have a trying to send SMS messages with ruby-smpp. Following the project examples

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.