this is an update to my remote sms project. as was explained previously,
you compose your sms on your desktop and your smartphone sends it. so,
the project consists of a b4j app for composing and a b4a sender on an android
smartphone.
the two apps are a little smarter this time: the android device broadcasts
its willingness to act as a proxy sms sender. the b4j app listens for that
broadcast. when it receives it, the ip address of the proxy sms sender is
revealed, and the composer connects to it. the smartphone of course has been
listening for such a connection.
in the first version, neither device knew the ip address of the other. erel's
example only had the devices' capturing their own ip address. the user then
had to manually key in the other device's address. not much of a problem, but
as an exercise, the devices now do a little "handshake" by themselves.
multicast could be used instead of broadcast, but it's a little more involved,
and my local network is too small to take advantage of multicast's benefits.
for the b4j composer i've added a modest selection of emojis which the user can
insert or append to the sms text. it would be nice maybe to have a grid with all
4 million emojis to choose from, but all i really wanted was some way to use a
fast, full-size keyboard for sms's. to my surprise when i sent a message with an emoji,
it was received in color even though the glyph appears in black and white on the
composer's screen! so win-win.
UPDATE:
have added a contacts search feature. if you don't have the contact's phone number handy,
you can get it from the smartphone. image attached