Discover how to locate android device, include the articles, news, trends, analysis and practical advice about how to locate android device on alibabacloud.com
1. First connect your Android device with USB, then run the command at the terminal, it can start the device's 5555 port so that it can connect on the network.55552. Disconnect the USB connection now and make sure the device and your computer are connected to the same wireless network.Go to Device View IP address: Set-
The Android device does not recognize the awk command and lacks busyboxFirst, what is BusyBox?BusyBox is a single executable implementation of standard Linux tools. BusyBox contains a few simple tools, such as Cat and Echo, and includes larger, more complex tools such as grep, find, Mount, and Telnet. Some people refer to BusyBox as the Swiss Army knife in the Linux tool. Simply speaking, BusyBox is like a
Overall access can be mobile data on the Internet get IP also can WiFi access methodpublic static String Getphoneip () { try {for (enumerationWiFi Get IP methodPrivate String inttoip (int IP) {return (IP 0xFF) + "." + ((IP >> 8) 0xFF) + "." + ((IP >> +) 0xFF) + "." + ((IP >> +) 0xFF);} Private String GetIP () {//Get WIFI service Wifimanager Wifimanager = (wifimanager) getsystemservice (context.wifi_service);// Determine if WiFi is turned on if (wifimanager.iswifienabled ()) {//wi
Before Android 4.0, you can get the width of the screen in the following way:Displaymetrics dm = new Displaymetrics ();Getwindowmanager (). Getdefaultdisplay (). Getmetrics (DM);int Mscreenw = dm.widthpixels; Get widthint mscreenh = dm.heightpixels; Get highBy the above method before 4.0, the total width and total height of the screen, including the height of the status bar and the height of the navigation bar, such as a 480 * 800
There is no CP command in the andorid command line (why not integrate the command ?), After installing busybox, you can run the CP command.
Why not input the MV command in Android directly?MV/sdcard/testaudio/system/Meida/Audio/testaudioWhat about it? Okay, let's try this command and get the answer: "failed on '/sdcard/test10000'-Cross-device link ", that is to say, the MV command cannot copy files in the
When debugging a mobile phoneProgramWhen an error occurs, we can get the error message,
When we use a real machine for Android Application debugging, we cannot obtain the debugging information. The error message is as follows: Unable to open log device '/dev/log/main': no such file or directory.
This is because our mobile phone has not enabled the log record. The following uses Huawei c8812 as an examp
Get the physical size of the device. Note that it is not the resolution!
The answer http://stackoverflow.com/questions/2193457/is-there-a-way-to-determine-android-physical-screen-height-in-cm-or-inches found from a foreign post
Displaymetrics dm = new displaymetrics (); getwindowmanager (). getdefadisplay display (). getmetrics (DM); Double X = math. pow (DM. widthpixels/DM. xdpi, 2); Double Y = math.
1. To obtain the battery information of the Android device, register a BroadCastReceiver whose Action is Intent. ACTION_BATTERY_CHANGED.
2. In the BroadcastReceiver onReceive () event, the received Intent. ACTION_BATTERY_CHANGED includes the following information:
"Present" (boolean )..."Level" (int )... Remaining battery capacity"Scale" (int )... Maximum battery value, usually 100."Icon-small" (int )... Ic
Now smartphones (the mobile phones in the broad sense, including mobile devices such as mobile phones, tablets, etc.) are becoming more and more important in life, people use mobile phones much more than computers, because of the portability of mobile phones, so many times we will need to use mobile phone to carry data or files, or for entertainment. For example, when riding a train or a car, to see a movie with a mobile phone is quite good, now the phone screen is large enough, storage space is
Android obtains the IP address of the device.
Overall retrieval: You can use mobile data to access the Internet and obtain IP addresses. You can also use WiFi to obtain IP addresses.
public static String getPhoneIp() { try { for (Enumeration
en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface intf = en.nextElement(); for (Enumerat
Workaround 1:lsusb View the VendorID number, and then add (or modify) the 51-android.rules file under the/etc/udev/rules.d/directory.Add a record:subsystem== "USB", sysfs{idvendor}== "xxxx", mode= "0666" where xxxx is the value obtained by LSUSB viewThe common situation is as follows, I have listed here:# HTCsubsystem== "USB", sysfs{idvendor}== "0bb4", mode= "0666"# Motorolasubsystem== "USB", sysfs{idvendor}== "22b8", mode= "0666"# Acer 0502subsystem== "USB", sysfs{idvendor}== "0502", mode= "066
the app's data * Most of the time, when we clear the app's data, we mostly find the app in the settings * and then select its erase data. The code implementation is given below. * * In the above section of the code to remove all the things under the data/data/packagename. * So it is necessary to restart the device, because its lib has been deleted. * After the device restarts, it will voluntarily generate
How does the Android project read the JSON string and androidjson string from the local device?
If I have such a Demo to write, that is, I already have a JSON string at hand and want to parse it now, how should I store this JSON string in this Android project, to be read successfully. The following three solutions are available for analysis.
Assume that the JSON
Simulator cannot be enabled in Android Development
Error message:
Invalid command-line parameter: files \ Android-SDK \ tools/emulator-arm.exe. hint: Use '@ foo' to launch a virtual device named 'foo '. please use-help for more information There are two problems: 1. If your installation path contains Chinese characters, reinstall the SDK and place it in the
First, to get whether the current Android device is networked, Android itself provides us with a service.
Private Connectivitymanager connectivitymanager;//used to determine whether there is a network
Connectivitymanager = (Connectivitymanager) Getactivity (). Getsystemservice (Context.connectivity_service);//Get connection service for current network
Reprint Please specify: http://www.cnblogs.com/frank-zouxu/p/4158159.htmlToday, a company project in progress, encountered the problem of the screen to take the word, the problem is step, the first to solve how to intercept the device screen, because the Android device is based on the Linux kernel, so try to find the android
Fix Android device does not eject debug authorization reminder1, install the Android SDK, set the system environment variable%andriod_sdk_home%, after set up check:C:\users\leizm>echo%andriod_sdk_home%G:\adt-bundle-windows-x86-20131030\sdk\platform-tools2. Install mobile phone Driver3, the installation of ADB, a lot of tools are automatically installed, can be vi
Theme: How do I get the log from device?Detail:get the log from device, and write to the local file.Google Source jar: Use the methods in Ddmlib.jar mostly: import Com.android.ddmlib.AndroidDebugBridge;Import Com.android.ddmlib.AndroidDebugBridge.IDeviceChangeListener;Import Com.android.ddmlib.IDevice; The concrete process:First step: connect the devices through ADB //Import
Android obtains the mobile phone information (device IP, OS version etc .) I haven't written anything for a long time. Today I am making a PV log record. I need to record the OS version, WiFi IP address, current time, and so on. I have investigated and shared the following:
Package com. Osip;
Import java. Text. dateformat;Import java. Text. simpledateformat;Import java. util. date;
Import
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.