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 7877165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:17:35+00:00 2026-06-03T03:17:35+00:00

I am programming a sms desktop app with java using smslib, my program needs

  • 0

I am programming a sms desktop app with java using smslib, my program needs to store sms in a database table, then compare the sms with another table, and finally return a new sms, how to implement this process, with threads?? timers? I need to keep the app running all the day, the program just need to compare numbers with another table and then return the ones that are different, I have the app but in parts, I just want to know your approach, the user needs to receive a sms with the new numbers thanks

p.d I use smslib and the classes readmessages and sendmessages. I am stucked in this part, I dont want that my program crashes

  • 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-06-03T03:17:36+00:00Added an answer on June 3, 2026 at 3:17 am

    SMSLib has 2 ways to receive messages.

    • using Service.readMessages(). This requires implementing some kind of scheduling. For example your own thread or timer task.
    • implementing callback. This is IMHO preferable way. In this case the library cares about scheduling and everything. You just implement the callback that will be called by SMSLib when SMS message arrives. I just have to store it in DB and implement the logic you described that compares messages and sends replies.

    Due to sending messages may take some time (sometimes several seconds) you should do this asynchronously. Moreover the sending might fail, so you probably will have to implement retry mechanism. So, use queueing. The simplest way is to use Executors framework from java.concurrency package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Programming in vim I often go search for something, yank it, then go back
Programming is learned by writing programs. But code reading is said to be another
Programming in Java, what's the better way to create resource files to save the
While programming under eclipse+PyDev and using Flask framework, I noticed that the auto-organizing imports
I want to make a program that will communicate with a database that has
I'am begginer in android programming and I'am trying to create app that is logging
Programming an iPhone App, I need to use Google Maps api to get directions
Im programming C# WinForm application which have big SQL Server Database. I need to
In programming language like C#, java if a condition has multiple expressions with AND(&&)
After programming with C# and Java for many years I finally decided to learn

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.