Ask to avoid the problem that the xls file phone number exported by phpexcel and the ID card are displayed in scientific notation! Nbsp; phpexcel is used for export in recent projects. it is good to use, but there are several headaches, that is, when the exported data column contains nbsp; 013434342333, 053482371284, 4222131231231231231 ask to avoid the problem that the xls file
There is a problem today. Because I have met before, solved, but suddenly can't remember how to solveSo, just record this today.The problem is this:A container under the body section height is 100% width of 100%That is, the parent class is the same width as the screen. But the height of the sub-label under the section exceeds the parent tagAt this point scrolling on the phone side is likely to roll the card
This example describes Android's approach to acquiring information about mobile phone SIM card operators, which is of practical value for Android programming. Share for everyone to use for reference. The specific methods are as follows:
The main functional code is as follows:
/**
* Get SIM card operator
* *
@param context
* @return
/public static St
JS mobile phone number, zip code, area code, ID card Verification program
Mobile phone Number Inquiryfunction Checkmobile () {var smobile = Document.mobileform.mobile.valueif (!) ( /^13[0-9]d{4,8}$/.test (Smobile))) {Alert ("Please enter your mobile number (at least the first 7 digits)");Document.mobileform.mobile.focus ();return false;}}Postcode inquiryfunction
Some can query IP location, identity card location, mobile phone ownership of the interface.
Because some interfaces need to provide routing, the following code if JS can not directly read, you can return the results through PHP, and then through JS call back the results of the page.
Source Code and Demo: source code Source Demo source
01
02
/*
Android Regular Expression verifies mobile phone numbers, names (including ethnic minorities), ID card numbers, and android Regular Expressions
The new features in recent projects require verification of mobile phone numbers, names, ID card numbers, and other information. The best way is to use regular expressions for
A simple card-type Word app that you write in your spare time. The thesaurus is a comprehensive English vocabulary of the original, including voice, using card-style design. Offline thesaurus for remembering words anytime, anywhere.Shop: Http://www.windowsphone.com/zh-cn/store/app/%E5%A4%A7%E5%AD%A6%E7%BB%BC%E5%90%88%E8%8B%B1%E8%AF%AD%E8%AF%8D %e6%b1%87/2beffb97-59dc-4d31-b249-b889c5f4bf85?
Sina's IP address query interface: Sina: http://counter.sina.com.cn/ip? Ip = IP address returned Js data, I feel not very accurate, can be removed after the question mark, directly return the local IP address corresponding to the location of a proper ip address query interface: Return XML data: http://www.yodao.com/smartresult-xml/search.s? Type = ip q = 0.0.0.0 the returned JSON data: http://www.yodao.com/smartresult-xml/search.s? JsFlag = true type = ip q = 0.0.0.0 change 0.0.0.0 to the IP
How to specify SIM card to call on dual sim phonePackage Com.example.dualsimtest;import Android.app.activity;import Android.content.intent;import Android.net.Uri; Import Android.os.bundle;import android.view.view;import android.widget.edittext;import android.widget.Toast; public class Mainactivity extends Activity {public static final string[] Dualsimtypes = {"Subscription", "Subscriptio N "," Com.android.phone.extra.slot ","
Many friends are not familiar with the WP8 mobile phone network, so we must use QQ Address book to back up, comb contacts. Here to share with you how to use the SD card to import contacts.
First, connect the phone to the computer into the SD card to create a folder--backup--dta--condact
1, computer login QQ
650) this.width=650; "Src=" http://b172.photo.store.qq.com/psb?/V11u0ZvC2rdUta/ Bx70k9qzd36sqpi.mdhq97dkd4e8jqab3tjb9nfjwwc!/b/dez2kmzdhgaabo=nqigawaaaaabadm!rf=viewer_4 "/>"Donga billion letter network phone calls to save the experts"Do not change the phone, do not change the card, the other side display the machine number, dial simple no need to dial any number
Some mobile phones are inserted into the SD card, and the SD card shows the path "\ Memory Card" or "\ storage card". This value is determined by the following registry key: HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ SD memoryFolder =?If folder = memory card,
To import the phone's contacts into the phone's SD card operation process we together to see, the specific is very simple.
1. Click the "Contact" option in the Samsung A9 interface to enter.2. Enter the contact interface by clicking the "more" option to open the entry.3. Click the "Settings" option, as shown in the Drop-down menu below.4. Click "Import/Export Contact".5. Click "Export".6. Select Export contact person to "SD
Android determines whether the mobile phone has an SD card or USB. Static judgment, androidsd
The determination of SD card is divided into static and dynamic, Dynamic Registration of broadcast, many people are writing online, so I will not elaborate too much here. For this static judgment, I am looking for Environment. getExternalStorageState (). equals (Environm
Replace the phone number string with the asterisk code: The code is as follows:Copy code $ Str = "15832818835 ";Echo substr ($ str,). '*****'. substr ($ str, 8, strlen ($ str); // retain the first and last three digits?>Or use regular expressions.$ S = 'manager Wang of www .111cn.net: 13999312365 manager Li: 13588958741 ';$ S = preg_replace ('# (d {3}) d {5} (d {3 })#', '$ {1} ***** $ {2}', $ s );Echo $ s;
[Ctsimsupportgetsimstatus () isequaltostring:kctsimsupportsimstatusnotinserted] can determine if the Sim card is inserted.The premise is to copy the following code into a header file, and then introduce Coretelephony.framework.extern nsstring* c*****t kctsmsmessagereceivednotification;extern nsstring* c*****t kctsmsmessagereplacereceivednotification;extern nsstring* c*****t kctsimsupportsimstatusnotinserted;extern nsstring* c*****t Kctsimsupportsimsta
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.