Ryan Chai

Greenhorn
+ Follow
since Aug 26, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ryan Chai

Michael,
in push registry, when we download the midlet via OTA, we will also publish our ip address to the server side app. of course we can't guarantee that our connection is always ON and using the same ip. let's say our connection is lost and a new ip is assigned to our device, will the AMS detect this change and automatically publish this new ip to the server app OR we can write a code segnment to do that??

since according to SUN, we are able do push through Http,datagram and socket and by publishing our ip, the server app can send 'alert' to the device, of course they had thought of this right?

Thanks in advance
17 years ago
sorry bout the name.

yes, some operator do not allow inbound connection through their firewall. in that case nothing can be done, is it?. i've also read that some telco have all their devices under 1 gateway and under that the devices are given different identifier not in terms of IP addresses.
i guessed the only sensible way is to do it the SMS way.
may i know how u get the phone's ip and MSISDN???

thank in advance
17 years ago
sorry bout the name.
can't the CBS be use??? since its purpose is to broadcast messages to multple devices.
[ August 27, 2004: Message edited by: chai ]
17 years ago
i agree with mark. since u r probably registering it dynamically(i doubt ur telco will give u a fixed ip unless with a fee), u'll need to publish it to the server.

mark, by using the getLocalAddress(), can it really get thr phone's ip. i've read in forums that it just return 127.0.1. even if it is not on emulator but on real device. i could not try itcaouse i don own a midp2.0 phone.

i am tryin to create a midlet that awaken when activity is detected on port xxx(without sms). i wrote a midlet on emulator thta listens to port xxx. then i opened up telnet and just 'open' port xxx(doing nothing else), and true enough the midlet awakens cause it detect activitiy on port xxx.

so my theory:
1) hand phone download jar,jad file via OTA also registering ip address n phone number to server side app
2) new info available
3) server side app just opened port xxx(doing nothing else) by socket conn include the phone ip that it received
4)midlet detects activity and awaken, then user can download info fr server.

is thispossible??
thanks in advance
17 years ago
i think what u need is the CBS(cell broadcast service). this enable messages to be broadcast to multiple devices, if i understand ur question correctly.
pls let me know if i m wrong. i m still new to j2me
hope this helps.
[ August 27, 2004: Message edited by: chai ]
17 years ago
so far it seems like everyone is using sms to awaken a midlet.(maybe the only way?)

i think 6600 and 6220 are waht u r looking for.

i wanted to do the same thing as you. i have a midlet in emulator listening to port xxx. then i opened up telnet and just 'open' port xxx(doing nothing else) and true enough the midlet is awaken cause it detected activity on port xxx. i guess it is possible to awaken a midlet even without sms.

i could not prove this cause i do not own a midp2.0 phone. if i use the getLocalHost() on the emulator it will just return the pc's ip.

anyway u could try this:
download ur jar and jad file via OTA. since u say u could get the device ip, when u register ur connection, the server side app can get it automatically(if not just send it there). next, when the server have new information, the server app just need to include the device's ip when it open port xxx, then the midlet detect activity on that port and awaken.

at least in my opinion it can works this way.
so, pls let me know ur progress.
can u tell me how u get the ip and number of the device.(getLocalHost())??

thanks!!!
ps: hope u are able to prove this. in dire need for a sms-less solution

[ August 26, 2004: Message edited by: scud ]
[ August 26, 2004: Message edited by: scud ]
17 years ago