Hi,
Registering to receive Wifi notifications (either via the app manifest,
or registering a receiver in a service) is not inherently inefficient.
There isn't anything special about them - so all the usual rules
regarding process management apply. Your process will get killed if
necessary, subject to low memory conditions, etc.
A MAC address is just that - a MAC address, in this case, the Wifi
router will see the address of the phone's Wifi adapter. It has nothing
to do with any other IDs, such as the cellular network's IMEI, etc. But
it's guaranteed to be unique.
The central issue is where exactly (phone vs. router) you are able to
run the necessary code. It's easy to do on the phone, difficult or
impossible on the Wifi router.
Unless the router is under your control, and is an old PC running Linux
with hostapd (or something like that), I wouldn't count on being able to
run your code on it.
-- Kostya
30.07.2010 13:19, StillALearner пишет:
Thanks for the early reply Kostya,
"Since your intent is to launch something on the phone, I don't
see why you would want to detect connection on the Wifi router side. "
Well My Idea was to
i) Use the phone resource to the minimal
ii) to have control on when to invoke an activity from the server
end.. I thought there would be more dynamism from the server side.
Let me understand if am missing out something.
"I would suggest you use a Notification, which would launch an
activity when selected , Displaying an Activity in the middle of
whatever the phone user is doing is just plain wrong."
Completely agreed.
"If you did, you'd be able to use the phone's MAC address as
the unique identifier you require."
is it possible to get the MAC address of our phone , is
android.provider.Settings.System.ANDROID_ID as the MAC address you wr
talking about , or is there any physical id which is diff from this
android_id
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en