with area code = pattern.compile ("^[1-9]{1}[0-9]{5,8}$"); Verify that there is no area code if (Str.length () > 9) {m = P1.matcher (str); b = m.matches (); } else {m = P2.matcher (str); b = m.matches (); } return B; } public static void Main (string[] args) {String phone = "13900442200"; String phone2 = "021-88889999"; String phone3 = "88889999"; String phone4 = "1111111111"; Test 1 if (Isphone (phone) | | ismobile
Tags: Database condition encountered Lis shared BSP platform Group by centerWork often meet a lot of demand is this, according to the conditions to summarize some fields, such as I encountered is, our company has three investment platform, the same customer with a mobile phone number in three platforms are registered, but the registered user name is not the same, when the display needs to display all registered names according to the phone number. (I'm using an Oracle database)1, the original da
1. Download 360 mobile phone assistant2, find an Android phone connected to the computer, install the driver3, mobile phone assistant can connect mobile phone4, unplug the phone to open the simulator can be used in the ADB to connect the simulatorFind a program that occupies a port and prevents it from running1. First find the process PID which occupies 5037 port, enter "Netstat-aon|findstr 5037" in the command line.2. Set the ADB environment variable
1 /**2 * Get basic information on all installed apps3 * @return Basic information about all apps in the current phone4 */5 PublicListGetappinfos () {6 7ListNewArraylist();8 //Get the Package Manager Object9Packagemanager packagemanager=Context.getpackagemanager ();Ten //get information on all apps that have been installed successfully OneListpackagemanager.getinstalledpackages (packagemanager.get_uninstalled_packages)
1. What are the similarities between content provider and Web pages?ContentProvider uses authority similar to the site's domain name ContentProvider can also provide a site-like indexing methodcontent://media/external/images/# 2, can you list several built-in content provider? Imagestore,constans,media, message,3. What can you do with adb tools? Can get files and manipulate phone4. What is an AVD? Android Vertual Device5. How do you list the available
1. Write the Employee Information table that can be queried by the user:1). user authentication (enter user name, password)2). Search Keywords: name3). Display Id,name,section,phone4). The Employee Information table reads as follows:Cat Search_name.txt001wenlong IT12345678 002xiaojun IT12345678003ankang IT12345678004xiang IT12345678The script is as follows:#!/usr/bin/pythonwhiletrue:# Into the dead Loop input=raw_input (' Pleaseinputyour username: ')
There is nothing to say, directly on the code:1 Public classPhonestatecodeutils {2 /**3 * Get IMEI serial number of phone4 */5 Public StaticString Getimei (context context) {6Telephonymanager TM =(Telephonymanager) Context.getsystemservice (context.telephony_service);7 //Device String Number8String IMEI =Tm.getdeviceid ();9 returnIMEI;Ten } One A /** - * Get phone IP - * the * @return - */ -
. Inside the uiapplicationmain FunctionUiapplicationmain: The third parameter specifies the application Class Name (or subclass). If it is nil, the default value is uiapplication. The fourth parameter specifies the proxy class name.1> Create a uiapplication instance. This uiapplication is a singleton. An IOS program corresponds to a uiapplication object.2> the uiapplication object is a symbol of the application.3> enable a message loop (main loop): used to listen to events on the mobile
Management InstrumentationWindows Firewall2. If other devices connected to the local WiFi, the local computer blue screen, indicating that the network card support for WPA2-PSK/AES-CCMP is not good. Please use the WEP security type, or use TKIP encryption in Mywifi. You cannot use the self-hosted network feature at this time because the default security type and encryption method are WPA2-PSK/AES-CCMP and cannot be changed.3. Ad-hoc network is not supported when connecting using Android
After a period of use, found in the project many places need to use user authentication, SMS verification and mailbox verification as the mainstream trend, wheat summed up if the Laravel framework to implement the sending mail function, will be more on how to implement SMS verification later on. Under the. env file1. Configuring the Laravel FileMAIL_DRIVER=SMTP//SMTP method recommendedMail_host=smtp.163.com//Suggested use 163 mailbox QQ mailbox will have an errorMAIL_PORT=25//SMTP defaults
1No longer contacted-Summer Alex2 Maybe I can see your message on the Internet.3 Maybe the song I sang still exists on your phone4 Maybe I love you buried in my heart to become a secret5 Maybe I was thinking about you when you missed me.6 How many times did I tell myself7 This is a remembrance of what I've been waiting for8 How many times have I told myself9 No More Tears for youTen I'm not in touch with you . One I hope you don't mind . A Blame it on
element;WriteEndDocument ()-xml after the file is created, use this method to finish;Close ()-Closes all text streams and outputs the created XML file to the specified location.To create an XML file using the XmlTextWriter object, you specify the type of the file in the class constructor, and the encoding type must be System.Text.Encoding, such as: System.Text.Encoding.ASCII, System.Text.Encoding.Unicode and System.Text.Encoding.UTF8, in the XmlTextWriter class constructor, specify why the type
360, but there are many such as 540px and 600px such a wonderful. After setting the Device-width is an intermediate layer, for iphone4/5,device-width is 320px; for Iphone6/6+,device-width is 375px/414px; for Android phones, The device-width is mostly 360px.References from the mouth to the mouth of a van3, Hide the navigation bar of an Apple phone4, the Phone "screen width" and "screen resolution" differenceWhen writing a mobile-phone page, just cons
1: Open the computer's command line cmd2:ADB devices View the name of the phone or emulator connected to your computer3: Prepare the APK to install, remember the name of the phone4:adb–s ----------------------------------------------------------------------------------1) mobile phone and computer in the same LAN2) Get the IP of your phone3) Click the icon in the bottom left corner of the computer, enter CMD in the input box, and click the ENTER key4)
Front-end development often encountered the need to determine the user's browsing device, is the PC or mobile, mobile use what mobile phone system? Android, iOS, ipad, Windows Phone, and so on, sometimes you need to know whether the user browsing page is open in the mobile browser, and so on a series of judgments to do some corresponding processing.1, first of all to determine the PC end or mobile side.1 functionIsPC () {2 varUseragentinfo =navigator.useragent;3 varAgents = [
fileData: User program directory (self-installed apk)Dev: Device filesSDcard: SD card file for mobile phone4. OtherFollowing quotes from Lao Luo blog http://blog.csdn.net/luoshengyang/article/details/29688041Brush Rom:The bottom is a variety of hardware devices, the upper layer is bootloader. What is the concept of bootloader? As we all know, there is a small program on the PC motherboard called the BIOS, when the motherboard is power on it is the fi
You often need to enter a URL in your phone browser when testing the API or other situationsA long list of URLs it's really troublesome to lose.Airdroid is very powerful without data cable, but sometimes old disconnect, not very cool. Send to mobile QQ bar still have to manually pasteSo I developed a gadget.Send a command with curl on your PC, enter the URL you want to open, and the phone's browser will automatically open the URL. Of course, mobile phones and PCs have to be networked.Curl-l-H "C
when it comes to mobile development, we often use Chrome's own simulator to simulate a variety of mobile devices. But simulation is simulation after all, when the development is complete, using the real machine to access the page problems when debugging?Here is a debugging method for Android1.Install the latest version of Chrome on both PC and Android phones2.Connect your phone's PC with USB3.USB Debugging on "Settings", "Developer Options", open in your pho
element;WriteEndDocument ()-xml after the file is created, use this method to finish;Close ()-Closes all text streams and outputs the created XML file to the specified location.To create an XML file using the XmlTextWriter object, you specify the type of the file in the class constructor, and the encoding type must be System.Text.Encoding, such as: System.Text.Encoding.ASCII, System.Text.Encoding.Unicode and System.Text.Encoding.UTF8, in the XmlTextWriter class constructor, specify why the type
Computer Modification Method1, the phone must first root, Xiaomi can be Android development version of the system can be2, Android ADB tool (Android Debug Bridge)3. Execute the following command in turn1 , the root authority of the ADB root automatically starts server2, adb remount Settings/system is read-write,3, ADB pull/ system/etc/hosts Copy the Hosts file of the mobile phone to the C packing directory of the PC 4, the PC opens the Hosts file, and after the modification is completed, save
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.