Modify Adb_usb.iniEnd the ADB command in Task Manager, and then modify the following (may have an impact)Locate or create a new adb_ in the directory where the emulator resides No third-party software ever! Measured environment: Hisense Plate, M3101BW Win7, the ADB cannot find the device. The above 1, 22 steps are indispensable. Workaround: C \ user \melon (own account name) \.android\ Create the Adb_usb.
The Android system will first read the value of the btm_def_local_name, and if it is empty, use "Ro.product.model" as the Bluetooth device name.system/bt/btif/src/btif_dm.cc#define PROPERTY_PRODUCT_MODEL "ro.product.model"......static char* btif_get_default_local_name() { if (btif_default_local_name[0] == '\0') { int max_len = sizeof(btif_default_local_name) - 1; if (BTM_DEF_LOCAL_NAME[0] != '\0') {
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
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
1. Set the environment variables of the android SDKSudo VI ~ /. Bashrc # Set path for Android SDK toolsexport Path = $ path: $ android_sdk_home/platform-toos
2. Exit execution:
Source ~ /. Bashrc3. create a udev rule file. Root permission is required. Sudo Su-
VI/etc/udev/rules. d/70-android.rules
Add the following line:
Subsystem = "USB", ATTR {idvendor} = "18d1", mode = "0666", group = "plugdev"
The ATTR
Configure the Android system language pack for Chinese Simplified. Click the Second menu icon on the left of the navigation bar
Select "System Settings".Select "Language Input"Select "Language"Select "Chinese (Simplified)"Setup is complete.Click on the third "home" icon on the bottom left to view the homepage.
Configurationandroid The date and time of the system. Click the Second menu icon on the left of the navigation bar
Select "System
I do not know that you notice no, in the simulator is installed after the installation can not run, now, because the project needs, also need to implement the same function, nonsense not much to say, directly on the code.Package Com.example.checkisemulator;import Android.os.build;import Android.os.bundle;import android.app.Activity; Import Android.content.context;import Android.telephony.telephonymanager;import Android.view.menu;public class Mainactivity extends Activity {@Overrideprotected void
Android: a reliable method for obtaining the mac address of a device
/*** Get the mac address of the device ** @ param ac * @ param callback * this method is called back after the mac address is obtained successfully */public static void getMacAddress (final Activity ac, final SimpleCallback callback) {final WifiManager wm = (WifiManager) ac. getSystemService (Se
we usually use mobile phone debugging, often is the hand, can download a jar package can be mapped to the computer Desktop screen, but run comparison card, and then give up, and then, the phone is sometimes not easy to connect data cable, PC and mobile phone (even WiFi) in the same network segment, Can be debugged by wireless!Use the Wireless mode method:
One: cmd Open command window: (set ADBD listening port)
adb tcpip 5555 set ports for ADBD services >
Second, CMD opens
1. Install MTP Software FirstApt-get Install Mtpfs libmtp-common mtp-tools libmtp-dev libmtp-runtime LIBMTP92. Edit the/etc/fuse.conf file#/etc/fuse.conf-configuration file for Filesystem in userspace (fuse) #Set The maximum number of fuse mounts allowed to nOn-root users. #The default is. #mount_max = 1000# Allow non-root users to specify the Allow_other or allow_root mount Options.user_allow_otherUncomment the last line as shown above3. Check your Android
ComponentName (this, adminreceiver.class);......private void Startdevicemanager () {Intent localintent = new Intent ("Android.app.action.ADD_DEVICE_ADMIN"); Localintent.putextra ("Android.app.extra.DEVICE_ADMIN", this.componentname); Localintent.putextra ("Android.app.extra.ADD_EXPLANATION", "anti-theft photo assistant"); Startactivityforresult (localintent, 0); }OK, here it is. But the problem comes, dig. No, no, what is this? Search through the source code of
This error occurred while running the Android program: Failed to install homework.apk on device ' emulator-5554 ': EOFJava.io.IOException:EOFFind information online, the problem is the ADB, probably becauseSolution:One: Open cmd command prompt, execute adb kill-server first, then execute ADB start-serverTwo: 1. Cleanup project, Project->clean2. Right-click the project browser and close the project, then cl
Http://www.pocketmagic.net /? P = 762 Android ADB error: "device not found" on specified tuby Radu motisan posted on June 2nd, 2009
I 've been getting this error way too often recently, so I 've decided to point out some of the causes.
1) using my older desktop pc I cannot use ADB to connect to the Android device, b
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.