Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

sms  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. I am having a problem here. After the client sent a sms to the server, the server will receive the sms and compare the text sent. If the text received is 'addrecord', it will go into a sub routine called addrecord and if it receive the text is 'deleterecord', it will go into the deleterecord sub routine.. but now, after I have received the sms, i can go into the compare sub routine to compare?? why?

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It�s not good to use

string == "Something"

You should use

string.equals(something)

The first form will compare object references, the second form will compare strings.
 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI thanks for your reply.. I have tried it out and it is working thanks..
Now I need your help in RMS.. Example, I will send a sms to get a list of record in the RMS and they will reply me the list of records that are stored in the RMS to my cellphone. records in RMS are stored as bytes but when it reply me , it have to change the bytes into String before it can send to me for reading.

below is my source code :




so if possible, can you provide me with the list record source code or help. Thanks
 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. I also need help in the delete record part..
Currently, my delete record subroutine can only delete record 2 because my recordID, I have set to 2.. What can I do, (example: I will send the recordID to be deleted by sms and upon receiving the sms, it will delete according to the recordID that I have sent) May I know how i do it?
thanks
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!