Android application to open the phone's network settings interface

Classification: Android finishing 228 people read Comment(0) Collection Report

App application can not be separated from the server and network interaction, but there is time in the network information is not good time, we want to give the user tips for network settings, in our application will generally have a network load error (failure) of the page, above the operating controls, click to enter the mobile phone network settings interface, the code is very simple:

The /**intent object.

Intent Intent = null;
Mobile phone version of the system that determine / * * API greater than 10 is 3 or above and mobile phone Meizu.
If (android.os.Build.VERSION.SDK_INT > 10 & & android.os.Build.MANUFACTURER.equals! ("Meizu")) {
Intent = Intent new (android.provider.Settings.ACTION_WIRELESS_SETTINGS);
Intent = Intent new ();
Component new = ComponentName ComponentName ("", "");
Intent.setComponent (component);
Intent.setAction ("android.intent.action.VIEW");
Context.startActivity (intent);

The above used to determine whether it is the Meizu phone, because we found in the project, the use of the Meizu phone to call the code in else.

Copyright statement: This article is the original article of the main Bo, without the permission of the owner.

Guess what you're looking for.
View comments
* above the user's comments only represent their personal views, do not represent the views or position of the CSDN website
    Personal data
    • Visit35800 times
    • Integral:1718
    • Grade
    • Rank:13145th
    • Original142
    • Reprint:36
    • Translation:1
    • Comment:9
    Latest comments