views:

86

answers:

2

Can the bluetooth search run while checking if any SMS messages have been received?

When I try to check if there is a new SMS by the command "msg = smsconn.receive()", the program will not go back to search for bluetooth devices. Meaning that I can't get it to check for SMS while running the bluetooth search.

Can someone please help me!!
Thanks!

+1  A: 

Are you using Java ME? Sounds like you need two seperate threads in your application so that you can run processes concurrently. Of course it would help if you could give some samples of the code you are using.

James
A: 

The only way you can do two things at once when programming (well its technically not two things at once but the quick explaination is that it is) is through the use of threads.

monksy