wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Instanceof TextMessage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Instanceof TextMessage" Watch "Instanceof TextMessage" New topic
Author

Instanceof TextMessage

Steve Heasman
Greenhorn

Joined: Feb 14, 2011
Posts: 3

Hi Guys

I am hoping someone can see what I cant in this code I have one phone sending a string in a sms to another below is the code for the sending of the text message


Pretty Straight forward the second phone does get the message but at present doesn't see the message as a instance of TextMessage the code for receiving is below


I put some System prints in their to see where it was getting to so i know it fails at if (msg instanceof TextMessage)

Any ideas ?

Thanks

Steve


Steve Heasman - Bsc Computer Science Student, Teesside University
http://www.steveheasman.com
Vijay Dogra
Greenhorn

Joined: Sep 16, 2004
Posts: 22
I do not see anything wrong in your code, unless the imports are not proper.
 
wood burning stoves
 
subject: Instanceof TextMessage
 
Similar Threads
ConnectionNotFoundException
Problem in Receiving Message
J2ME application sends SMS only to java supported mobile phones
Anybody getting along with wma1.0?
watchdog