守望者--AIR技术交流

标题: 测试程序是否安装到URL ANE [打印本页]

作者: 破晓    时间: 2015-1-23 13:35
标题: 测试程序是否安装到URL ANE
本帖最后由 破晓 于 2015-3-2 17:39 编辑

Air Native Extension for iOS and Android – Can Open URL

This is an Air native extension to test whether an app is installed to handle a URL scheme on the iOS and Android platforms.

This extension enables checking for the existence of an app to handle any specified URL within an Air project. The extension has a single command that checks for a URL handler.

Version

This is version 1.1 of this extension.

Binary files

The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).

Building

Requirements – Adobe Air SDK 3.1 or later, XCode IDE, Android SDK 2.2 or later, Java SDK, Apache Ant

The test project

A simple test project is included for testing the extension. To build this air project

Using the extensionTo find whether an app exists to open a specific URL -

CanOpenUrl.canOpen( url : String ) : Boolean

Example code

You can see the feature in action in the source code of the test project.

DevelopersGames using this extensionLicense

Author: Richard Lord
Owner: Stick Sports Ltd.
http://www.sticksports.com

Copyright © 2011, Stick Sports Ltd.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.



[attach]587[/attach]


相关链接:



https://github.com/StickSports/ANE-Can-Open-URL


作者: 破晓    时间: 2015-3-2 17:38
支持64位版本:

https://github.com/KnobayTech/ANE-Can-Open-URL


[attach]880[/attach]


其他:

https://github.com/CollabPlus/ANE-Can-Open-URL

[attach]881[/attach]





欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/)