When your phone needs to change the new number, or when you travel abroad do not need to carry domestic mobile phone, your phone can be placed at home, when someone calls automatically hang up, if the other side is a mobile phone number (11 long first 1) will reply to a message.Talk less, go directly to the code!1, must have the following permissions:2. In the project's Package Explorer, right-click on the
code: (1) Call the Java method when you click the text box to bring up the system contact (how Js calls the Java method in the following Js Code)// AddJavascriptInterface () method for interacting with a webpageBrowser. addJavascriptInterface (new Object (){@ SuppressWarnings ("unused ")Public void getContacts (){Intent i1 = new Intent (Intent. ACTION_PICK,Android. provider. Contacts. People. CONTENT_URI );StartActivityForResult (i1, CODE_PHONEBOOK )
This paper introduces a very convenient tool to view SIM card information of mobile phone, and can easily view serial number information such as IMSI on the phone.1. This software can be found on the official website of the stone-cut simulator, found and installed in the Baidu Web-disk link below the stone-cut simulation organ network to find the "cut stone Simulator Installation activation Tutorial".2, directly open the software, you can display the
1. Prepare the tool:
Android phone
Notebook PC
ksweb3.62--Enter any serial number (this version only) 155b-38b1-0ec7-2e29
Internet
2. Installing ksweb3.623. How to hack:
Be sure to have a network; When you're done, swipe to the Settings screen, enter any serial number to crack->155b-38b1-0ec7-2e29
This article is from the "Yang Roo" blog,
Recently in a project to determine whether the user input is a mobile phone number, in fact, this demand in Android is a very common needs such as registration or forget the password and so on may be used! Here's a simple record.Private String Regexphone = "^ (13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]) [0-9]{8}$";Take the value entered by the user in EditText and this regexphone matches a bit regexphone
Android: Use canvas to draw a pie chart (automatically adapts to the number/size of entries). androidcanvas
The purpose of this example is to implement a simple pie chart with the following effects:
Features:
1. Easy to use. You can place the content in the xml layout file and set the content in the code, that is:
PieChartView pieChartView = (PieChartView) findViewById (R. id. pie_chart); PieChartView. pi
One recently written application involves using the GridView display picture, and when using the Baseadapter traditional implementation, the Oom situation occurs when scrolling quickly on a real machine.A temporary solution is to change the image size and reduce the memory. This method is simple but not secure. If there are enough pictures, there is still an oom situation.An efficient way is to use asynchronous loading.Get the maximum available memory for your application:int maxMemory = (int) R
Android obtains the App version number and version name.
// The following is a tool for obtaining version information:
// Version name public static String getVersionName (Context context) {return getPackageInfo (context ). versionName;} // version public static int getVersionCode (Context context) {return getPackageInfo (context ). versionCode;} private static PackageInfo getPackageInfo (Context context)
This configuration is in the early AS2.0 version:Settings in app---->build.gradleApplicationvariants.all {Variant -i = output.outputfile if null outputFile.name.endsWith ('. apk ')) { = "driver_${variant.productflavors[ 0].name}_v${defaultconfig.versionname}.apk " new File (outputfile.parent, FileName ) } } }After 3.0 with the following configuration:buildtypes { debug{ //Modify debug State
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.