Saturday, February 22, 2014
Ask: How to determine whether the code to connect the 3G, and open the browser
Ask a question, the code can determine whether the phone is connected on 3G, if connected, then, open the default browser. Can be realized?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Can be realized. Write a broadcast receiver
Reply:
This possible. . . .
Reply:
Two
First, the phone has when there will be a broadcast network link, including WIFI, cellular data, and the two are combined. You can receive the corresponding broadcast.
The second part, when receiving a broadcast to determine the current operating procedures used to determine the package name, package name com.android.browser browser
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment