~lifeeth/sahana-eden/mobile

« back to all changes in this revision

Viewing changes to j2me/src/mpeFrame.java

  • Committer: Praneeth Bodduluri
  • Date: 2009-06-22 22:11:38 UTC
  • Revision ID: lifeeth@gmail.com-20090622221138-qwep4d5hvpsa84sp
Changed from threading to a process based system + added helpers for parsing SMS

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                           
58
58
                        }
59
59
                        try {
60
 
                            //  TextMessage textmessage = (TextMessage) clientConn.newMessage(MessageConnection.TEXT_MESSAGE);
61
 
                              //textmessage.setAddress("sms://9198539599");
62
 
                            //  textmessage.setPayloadText(username);
63
 
                            //  clientConn.send(textmessage);
64
 
                             BinaryMessage bm=(BinaryMessage)clientConn.newMessage(MessageConnection.BINARY_MESSAGE);
65
 
                             String ourContent="0605040B8423F0" +
66
 
                        "02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0" +
67
 
                        "011033635333200070103446576446F744D6F62692069732046756E2021000101";
68
 
                                bm.setPayloadData(convertHexToBinary(ourContent));
69
 
                            clientConn.send(bm);
70
 
                        }
71
 
                        catch(Exception e)
 
60
                             TextMessage textmessage = (TextMessage) clientConn.newMessage(MessageConnection.TEXT_MESSAGE);
 
61
                             textmessage.setAddress("sms://9198539599");
 
62
                             textmessage.setPayloadText(username);
 
63
                             clientConn.send(textmessage);
 
64
                          /*BinaryMessage bm=(BinaryMessage)clientConn.newMessage(MessageConnection.BINARY_MESSAGE);
 
65
                            String ourContent="0605040B8423F0" +
 
66
                            "02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0" +
 
67
                            "011033635333200070103446576446F744D6F62692069732046756E2021000101";
 
68
                            bm.setPayloadData(convertHexToBinary(ourContent));
 
69
                            clientConn.send(bm);*/
 
70
                        }catch(Exception e)
72
71
                        {
73
72
                              
74
73
                        }