App Privacy Policy

This software respects and protects the privacy of all users of the service. This software will use and disclose your personal information in accordance with this Privacy Policy.

Information collection and use
This software does not collect personal information in any way, but this software uses third-party services. These services may collect information used to identify you, including but not limited to various advertising SDKs, such as Google and other advertisers. Use this software to
You agree to this in accordance with AdMob’s privacy policy (see http://www.google.com/ads/admob/).
Depending on your preferences, this application may have the right to collect on-device data and unique user identifiers to display your ads. You can change your preferences at any time in the app settings.

Links to other websites
The Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Please note that these external sites are not operated by me. Therefore, I strongly recommend that you read the privacy policies of these websites. I have no control over, and assume no responsibility for, the content, privacy policies, or practices of any third party sites or services.

This software will update this privacy policy from time to time. By agreeing to this Software Service Use Agreement, you are deemed to have agreed to the entire contents of this Privacy Policy. This privacy policy is an integral part of this software service usage agreement.

App隐私政策

本软件尊重并保护所有使用服务用户的个人隐私权。本软件会按照本隐私权政策的规定使用和披露您的个人信息。

信息收集与使用
本软件不会以任何方式收集个人信息,但本软件使用了第三方服务,这些服务可能会收集用于识别您身份的信息,包括但不限于各类广告SDK,例如google等广告商。使用该软件即
表示即您同意根据AdMob的隐私权政策(请参阅http://www.google.com/ads/admob/)。
根据您的首选,此应用程序可能有权收集设备上的数据和用户唯壹标识符以展示您的广告。您可以随时在应用设置中更改首选。

链接到其他网站
该服务可能包含指向其他站点的链接。如果单击第三方链接,您将被定向到该站点。请注意,这些外部站点不是由我操作的。因此,我强烈建议您阅读这些网站的隐私政策。我无法控制任何第三方站点或服务的内容,隐私权政策或行为,也不承担任何责任。

本软件会不定时更新本隐私权政策。您在同意本软件服务使用协议之时,即表示您已经同意本隐私权政策的全部内容。本隐私权政策属于本软件服务使用协议不可分割的一部分。

问题

在Mac上开发Android应用时,如果开启了emulator,会导致Mac上的音频播放出现问题,听起来刺耳

解决

有两种解决方案:

1. 通过控制台启动emulator

1
$> emulator -avd Pixel_C_API_30 -qemu -no-audio

通过这种方式会以独立应用的方式启动对应的模拟器,如果Android Studio里选中的模拟器刚好是这个,点击运行时会自动在这个模拟器运行。但是如果不是,Android Studio里启动的新模拟器依然是带audio的,会影响到音乐播放。

2. 修改Android Studio启动模拟器的参数

Android Studio默认使用的是$ANDROID_SDK/emulator/emulator来启动应用,这个二进制文件一般在~Library/Android/sdk/emulator下。

  1. 进入对应目录
    1
    $> cd ~/Library/Android/sdk/emulator
  2. 重命名emulator
    1
    $> mv emulator emulator-original
  3. 创建一个新文件emulator,注意不要带后缀,并输入以下内容:
    1
    ~/Library/Android/sdk/emulator/emulator-original $@ -qemu -no-audio
  4. 给这个文件添加可执行权限
    1
    $> chmod +x emulator

问题

笔者使用cocos creator开发了一款小游戏,其中需要对某个特定node截图,使用的方式是官方demo里的截图方式,这个截图在微信小游戏上没什么问题,但是在native(iOS)工程上会出现截图不全的问题

解决

经过一番探究发现是坐标系的转换问题,由于iOS的坐标原点在左上角,所以截图代码需要做一些改动。
demo里的代码

1
2
3
4
5
6
7
copyRenderTex() {
var width = this.targetNode.getComponent(UITransform).width;
var height = this.targetNode.getComponent(UITransform).height;
var worldPos = this.targetNode.getWorldPosition();
this._buffer = this.rt.readPixels(Math.round(worldPos.x), Math.round(worldPos.y), width, height);
this.showImage(width, height);
}

将其中的Y坐标调整下即可:
this.rt.height - Math.round(worldPos.y) - height

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

0%