install api in blue stack on mac

handong1tekiiMac:~ handong1$ cd /Applications/BlueStacks.app 
handong1tekiiMac:BlueStacks.app handong1$ ls
Contents
handong1tekiiMac:BlueStacks.app handong1$ cd Contents/R
Resources/ Runtime/   
handong1tekiiMac:BlueStacks.app handong1$ cd Contents/Runtime/
handong1tekiiMac:Runtime handong1$ ls
BlueStacks Feedback Tool.app uHD-InstallHelper
BlueStacks Updater.app uHD-Kal
Clear BlueStacks User Data.app uHD-LogRotator
uHD-Adb uHD-Network
uHD-Agent.app uHD-Pal
uHD-BlockDevice uHD-SharedFolder
uHD-BlockDeviceTool uHD-UninstallAgent
uHD-Control uHD-UpdaterAgent
uHD-InstallDetector.bundle
handong1tekiiMac:Runtime handong1$ ./uHD-InstallHelper 
handong1tekiiMac:Runtime handong1$ ./uHD-InstallHelper /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk 
handong1tekiiMac:Runtime handong1$ ./uHD-Adb kill-server
handong1tekiiMac:Runtime handong1$ ./uHD-Adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
handong1tekiiMac:Runtime handong1$ ./uHD-Adb -s "localhost:5037" /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk 
Android Debug Bridge version 1.0.26


 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 environment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>[:<port>]       - connect to a device via TCP/IP
                                 Port 5555 is used by default if no port number is specified.
 disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                 Port 5555 is used by default if no port number is specified.
                                 Using this ocmmand with no additional arguments
                                 will disconnect from all connected TCP/IP devices.


device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of: 
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.


  adb help                     - show this help message
  adb version                  - show version num


DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition


scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns


adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:


  - If <directory> is not specified, both /system and /data partitions will be updated.


  - If it is "system" or "data", only the corresponding partition
    is updated.


environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
handong1tekiiMac:Runtime handong1$ adb
-bash: adb: command not found
handong1tekiiMac:Runtime handong1$ ls
BlueStacks Feedback Tool.app uHD-InstallHelper
BlueStacks Updater.app uHD-Kal
Clear BlueStacks User Data.app uHD-LogRotator
uHD-Adb uHD-Network
uHD-Agent.app uHD-Pal
uHD-BlockDevice uHD-SharedFolder
uHD-BlockDeviceTool uHD-UninstallAgent
uHD-Control uHD-UpdaterAgent
uHD-InstallDetector.bundle
handong1tekiiMac:Runtime handong1$ ./adb
-bash: ./adb: No such file or directory
handong1tekiiMac:Runtime handong1$ uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk 
-bash: uHD-Adb: command not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
Terminated: 15
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
error: device not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
error: device not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
error: device not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
error: device not found
handong1tekiiMac:Runtime handong1$ 
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
error: device not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb devices
List of devices attached 


handong1tekiiMac:Runtime handong1$ ./uHD-Adb kill-server
handong1tekiiMac:Runtime handong1$ ./uHD-Adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
^[[A^[[Ahandong1tekiiMac:Runtime handong1$ ./uHD-Adb devices
List of devices attached 
emulator-5554 device


handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wxqz_klcn_full_ad1_2.apk
6699 KB/s (81349857 bytes in 11.858s)
pkg: /data/local/tmp/wxqz_klcn_full_ad1_2.apk
Success
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wuxiaQchuan_10.apk
error: device not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb start-server
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wuxiaQchuan_10.apk
error: device not found
handong1tekiiMac:Runtime handong1$ ./uHD-Adb kill-server
handong1tekiiMac:Runtime handong1$ ./uHD-Adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
handong1tekiiMac:Runtime handong1$ ./uHD-Adb install /Users/handong1/Downloads/wuxiaQchuan_10.apk
资源下载链接为: https://pan.quark.cn/s/5c50e6120579 在Android移动应用开发中,定位功能扮演着极为关键的角色,尤其是在提供导航、本地搜索等服务时,它能够帮助应用获取用户的位置信息。以“baiduGPS.rar”为例,这是一个基于百度地图API实现定位功能的示例项目,旨在展示如何在Android应用中集成百度地图的GPS定位服务。以下是对该技术的详细阐述。 百度地图API简介 百度地图API是由百度提供的一系列开放接口,开发者可以利用这些接口将百度地图的功能集成到自己的应用中,涵盖地图展示、定位、路径规划等多个方面。借助它,开发者能够开发出满足不同业务需求的定制化地图应用。 Android定位方式 Android系统支持多种定位方式,包括GPS(全球定位系统)和网络定位(通过Wi-Fi及移动网络)。开发者可以根据应用的具体需求选择合适的定位方法。在本示例中,主要采用GPS实现高精度定位。 权限声明 在Android应用中使用定位功能前,必须在Manifest.xml文件中声明相关权限。例如,添加<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />,以获取用户的精确位置信息。 百度地图SDK初始化 集成百度地图API时,需要在应用启动时初始化地图SDK。通常在Application类或Activity的onCreate()方法中调用BMapManager.init(),并设置回调监听器以处理初始化结果。 MapView的创建 在布局文件中添加MapView组件,它是地图显示的基础。通过设置其属性(如mapType、zoomLevel等),可以控制地图的显示效果。 定位服务的管理 使用百度地图API的LocationClient类来管理定位服务
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值