• 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
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!