0011 SDK test method &ADB syntax

Source: Internet
Author: User

H1. Mobile Cloud OSS SDK test method, including environment building

Android OSS SDK test Method 1, build the test environment 1.     A ndroid Simulator requires jdk1.62. Installing the Android SDK

1. Download the Android SDK starter package and extract it to a local directory (named SDK)

: http://www.cr173.com/soft/34565.html

2, download the Android SDK API level, extracted to the SDK under the platforms directory, named Android-4. **

: http://www.cr173.com/soft/40881.html

3. Download the Android SDK 4.0.4 system IMG, unzip to the SDK directory, create a new system-images¥android-15 directory, extract armeabi-v7a to system-images\android-15 Recorded in

: http://www.cr173.com/soft/40882.html

4. Download the Android SDK Platform-tools, unzip the platform-tools to the SDK directory

: http://www.cr173.com/soft/40880.html

5. Configure Environment variables:

1. Add Sdk_root variable

Variable name: Sdk_root

Path: D:\03software\sdk\tools (as determined by the SDK storage path)

2.path increase ADB

Path: D:\03software\sdk\platform-tools (as determined by the SDK storage path)

3. Create an Android emulator

1. Enter the SDK directory and double-click Run AVD Manager.exe

2. New virtual machine, click New ... Button

3, set the virtual machine mobile card configuration information

4. Start the simulator after completion

The simulator startup time is a bit long and you have to wait patiently.

4. Mobile interface operation

On the left is the simulated phone interface, the right is the control button: The small house is the home button, menu is the key to return

Start complete and go to the desktop. Click OK, then!

has entered the bottom of the desktop 5 icon buttons are: Phone, contacts, program list, SMS, browser

Click on the middle of the program list, enter the interface, or there is a message that tells you to press and hold the icon can be dragged on the main screen.

Program List Interface
If you need to set the Chinese language, click Settings in the list above, enter the function settings screen
Click Language &input Language and input


Click Default to adjust the input method that the system defaults to using

Select Chinese (US) Android keyboard to

Next up, continue to set the system language to Chinese, click Language

Hold down the list with your mouse and drag, and you'll see Chinese (Simplified)

After clicking on Chinese (Simplified), the interface becomes Chinese!

View version number: 4.0.4 (because the simulator wood has the call function, so the baseband is unknown)

The simulator can also bridge the network of the computer to the Internet Oh!

2, the ADB commonly used command introduction

To operate the ADB command, the root permission is required to delete the system files.

1. ADB remount

2. ADB shell: Log in to the device, enter the Linux command line mode, use the Linux command to operate, such as CD System/app RM Youtube. The subsequent add will be to run the device command directly, equivalent to executing the remote command

3. ADB devices: View device, this command is to view the currently connected device, the Android device connected to the computer or the emulator will list the display

4, adb install: Installation software, this command to install the specified APK file on the device

5. ADB Uninstall < software name >, adb uninstall-k < software name >: Uninstall the Software, if you add the-K parameter, to uninstall the software but retain the configuration and cache files

6. ADB Push < Local path > < remote path >: Send files to device from PC, use push command to copy files or folders on the computer to Device (mobile) (note using the left slash)

7. ADB pull < Remote path > < local path >: Download files from the device to your computer, and use the drag command to copy files or folders on your device (phone) to your computer

3. Test the OSS SDK

Because the OSS SDK is available to AppStore developers, the simulation developer has developed the Andriod apk to invoke the OSS SDK to ensure that the SDK functions correctly.

1. Install the required apk

2. Test method:

1. Put the test apk under Tools

2. Install apk in the directory where apk is located

3. Then open the application in the simulator

You can invoke the OSS SDK.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.