Today, I took a photo on my cell phone for almost one day. Later, I thought about it, and now I don't know what I know, right? First, if I use this method to take a photo,ProgramIn the simulator, problems may occur when it is started. I don't know what the cause is. I guess it may be because of the simulator. At present, there is no mobile phone for testing, whic
system memory sizearrayofstring= Str2.split ("\\s+"); for(String num:arrayofstring) {log.i (str2, Num+ "\ T");} Initial_memory= Integer.valueof (Arrayofstring[1]). Intvalue () * 1024;//gets the total system memory, in kilobytes, multiplied by 1024 to bytelocalbufferedreader.close ();} Catch(IOException e) {}returnFormatter.formatfilesize (Getbasecontext (), initial_memory);//byte converted to KB or MB, memory size normalized}/**Called when the activity is first created.*/@Override Public voidon
1. Terminology and concepts
Terms
Description
Note
Screen size
Refers to the actual physical size of the phone, such as the usual 2.8-inch, 3.2-inch, 3.5-inch, 3.7-inch
Motorola milestone phone is 3.7 inches
Aspect Ratio (width/height ratio)
Refers to the actual physical dimensions of the width-to-height ratio, divided into long and nolong
the right bottom of the cell phone that is placed horizontally. The x direction is the horizontal direction of the phone, rightThe y direction is the horizontal vertical direction of the cell phone, the front is positiveThe y direction is the
The effect diagram looks like this:
First of all, let's say to realize Android jump to the Address Book realization idea:
1. Click to jump to the Address Book interface
2. Get Address Book name and cell phone number
3. Callback display name and cell phone number
1 fir
network type is EVDO0int network_type_evdo_a network type is EVDOAint NETWORK_TYPE_GPRS network type is GPRSint NETWORK_TYPE_HSDPA network type is HSDPAint NETWORK_TYPE_HSPA network type is HSPAint Network_type_hsupa network type is HSUPAint NETWORK_TYPE_UMTS network type is UMTSIn China, Unicom's 3G is UMTS or HSDPA, mobile and Unicom 2G for GPRS or EGDE, telecom 2G for CDMA, telecom 3G for EVDOThree, the type of mobile phone formatGet
", new Onclicklistener () {@Overridepublic void OnClick (Dialoginterface dialog, int which) {try {Different Android version network settings interface The Intent-filetr,action in activity is not the same.Different Android versions of the code are not the same.int androidversion=android.os.build.version.sdk_int;Get the phone manufacturer's name through the code,Di
If you are still using the original data line when uploading files to your mobile phone, or using Bluetooth for transmission, the data line transmission is not very convenient because it is affected by the line and interface. Data cable connection is used for a long time, which can easily damage the data port of the mobile phone. Bluetooth transmission is relatively troublesome. A computer must have a bluet
This section
1. Some traditional methods2. Generate a QR code image from the program code.3. Scan the generated QR code on your mobile phone and convert it to a py script.Preface
Writing scripts on the most mobile phone is a hard task. Although SL4A provides us with the API Quick insertion function, in addition, the elegant Python saves us the trouble of entering semicolons and parentheses, but it does not
TheProgramYou can test the resolution of a personal mobile phone device, which DPI level is used for development reference.
Main. xml
String. xml
JavaCode:
Package COM. shine. android; import android. app. activity; import android. OS. bundle; import android. ut
compatibility issues
: The software does not install properly, or it may be because of a compatibility problem with the Third-party software you have downloaded, it is recommended that you uninstall incompatible software or install a different software version attempt.
The software does not install properly, or it may be because of a compatibility problem with the Third-party software you have downloaded, it is recommended that you uninstall incompatible software or install an addition
In the development of mobile apps, in addition to understanding the API, more important is the screen.
Screen Resolution is an important factor for images. Because the cell phone screen sizes are different, you need to consider this issue during screen layout.
Android can be set to adjust the zoom ratio with the window size, but even so, the mobile
Mobile phone numbers are not available for all. Just a part of it can get. This is due to the fact that the mobile operator does not write data from the mobile phone number to the SIM card. The SIM card only has the unique number, for the network and the device recognition that is the IMSI number, the cell phone signal
deploying hardware is high.
Although C2DM services may not be stable in the country or some areas are not available, it is still necessary to introduce the principles of C2DM. However, it is best to use a third-party push service for applications that are used domestically, or to assume a push server.
C2DM and iOS APNs and window phone's MPNs are similar. You will also need to prepare a push server yourself and implement the push of the message through the following steps.
1th: The C2DM serv
SetrecordinghintThis function is to improve the performance of Mediarecorder recording camera video.Problem:If this function is set to True, the preview screen on some phones is distorted, and there is no mention in the official Android documentThis change, the reason is unclear, for compatibility, had to comment out this function.Phones that are known to be faulty:MI 2, LG part phoneThen search this functi
Analysis of COM. Android. Internal. telephony, which is implemented in the Android system.
1. itelephony. aidl
Interface itelephony
/*** Interface used to interact with the phone. Mostly this is used by* Telephonymanager class. A few places are still using this directly.* Please clean them up if possible and use telephonymanager insteadl.
*/
This is an interface
Android Phone Restart method:
1, Millet Mobile phone Restart method:
Press and hold "power button" + "Volume + key" Not put, about 5-10 seconds can restart the phone.
2, Huawei Mobile phone
Long Press the power button, about 10 seconds or so, you can restart the
Android phone using pattern patterns encryption, if forgotten password or multiple unlock failed, will be Google automatically locked, can not enter the boot home again.
This article is aimed at this situation, research and explore a solution to the specific locking environment and operation steps as follows.
One, the cell
I am using the Samsung i9220 android system 2.3.5The precondition for this information leakage is that the mobile phone has enabled the screen unlocking setting function and is bound to a google account or password protection.By default, you need to enter the unlock password or pattern after the mobile phone locks the screen to enter the mobile phone.Below is my
the password document.
The rationale for this approach is similar to what we discussed earlier about cracking Windows passwords, where the password for the PC system exists in Sam, and the Android system password exists in the Password.key file. Users who have root systems or brushes are supposed to know about the ADB, right? So, if we can delete this file, the Android password will be solved!
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.