[android-developers] Re: Clarity on Wi-Fi Based application !!??
Thanks Kostya & Murphy, I got a better understanding.. Now its time for some hands-on for me :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??
03.08.2010 16:04, StillALearner пишет: "Unless the router is under your control" Yes, am trying with a Router that is configurable and controlled by us. Also, a lot depends on whether this means that you can configure a router with manufacturer-provided firmware, or you can add your own software to the router. If it's the former, you'd have to set up a separate server that the phone app uses to decide if it should display the activity. If the latter, you can do it on the router itself. You might go with one centralized server to ease configuration. -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??
I see. You are in a closed environment, the routers are under your control, and you need centralized administration. Personally, I would set it up like this: - Phone app: BroadcastReceiver watches for WifiManager.NETWORK_STATE_CHANGED_ACTION. When it sees that a Wifi connection has been established, it starts a service. The service fetches a special URL from the currently connected router, passing in the necessary information like device ID, maybe MAC/IP address, firmware version, whatever. The router's address is the network gateway, so it doesn't have to be hard-coded in the phone app. - A special URL on the router, using PHP or whatever returns information about whether your activity should be started, using whatever logic you deem necessary. - Back to phone app: using the information fetched from the router, displays the activity or does nothing. If there are several routers, it would be better to set up one centralized server, reachable through all the routers, that would host the URL described above. . Then you'd have one place to manage the configuration (i.e. which phones should display the activity). -- Kostya 03.08.2010 16:04, StillALearner пишет: Well Kostya , thanks again.. "Unless the router is under your control" Yes, am trying with a Router that is configurable and controlled by us. "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." Got that, but wat i really need to understand is if android.provider.Settings.System.ANDROID_ID and the physical (MAC)address that gets logged in the Router are the same ? "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" Well, here is my scenario I need to invoke an activity X (via Notification manager ) when am in Access Point 'A'.Assuming neccessary logic is at the mobile end. Now when i add a new access point 'B' and need to invoke X (when am in AP 'A' or 'B') , in this case i need to change the code at mobile end isn't it ? All i need is to avoid that. Rephrasing that , Mobile devices has to be independent of the logic written to invoke notification mgr to call my activity as i need that logic to be dynamically decided at the server end. am trying if something like a push notification sent to the device when in a specific n/w would work out ?! N figuring out like hw 2 implement that !! Let me know if thats feasible or if am missing out something. -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??
On Tue, Aug 3, 2010 at 8:04 AM, StillALearner wrote: > Got that, but wat i really need to understand is if > android.provider.Settings.System.ANDROID_ID and the physical > (MAC)address that gets logged in the Router are the same ? They are not the same. They have nothing to do with each other. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Clarity on Wi-Fi Based application !!??
Well Kostya , thanks again.. "Unless the router is under your control" Yes, am trying with a Router that is configurable and controlled by us. "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." Got that, but wat i really need to understand is if android.provider.Settings.System.ANDROID_ID and the physical (MAC)address that gets logged in the Router are the same ? "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" Well, here is my scenario I need to invoke an activity X (via Notification manager ) when am in Access Point 'A'.Assuming neccessary logic is at the mobile end. Now when i add a new access point 'B' and need to invoke X (when am in AP 'A' or 'B') , in this case i need to change the code at mobile end isn't it ? All i need is to avoid that. Rephrasing that , Mobile devices has to be independent of the logic written to invoke notification mgr to call my activity as i need that logic to be dynamically decided at the server end. am trying if something like a push notification sent to the device when in a specific n/w would work out ?! N figuring out like hw 2 implement that !! Let me know if thats feasible or if am missing out something. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Clarity on Wi-Fi Based application !!??
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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Clarity on Wi-Fi Based application !!??
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 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en