设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 开源资讯 查看内容

开源跨平台应用开发框架Appverse Mobile

2014-10-10 13:32| 发布者: joejoe0332| 查看: 1752| 评论: 0|原作者: 刘璐璐|来自: CSDN

摘要: GFT Appverse是西班牙的一家公司,汇集了专门的工程师团队致力于发展创新领域和实现优化开源软件,并领导创建了Appverse项目。其针对移动和Web平台分别推出了Appverse Mobile和Appverse Web框架,且代码皆已托管至Gi ...

  GFT Appverse是西班牙的一家公司,汇集了专门的工程师团队致力于发展创新领域和实现优化开源软件,并领导创建了Appverse项目。其针对移动和Web平台分别推出了Appverse Mobile和Appverse Web框架,且代码皆已托管至GitHub上。其中,Appverse Mobile是一款开源的跨平台框架,目前支持Android、iOS和Windows,它允许开发者使用HTML5、JavaScript、CSS3,且还能够帮助开发者充分利用移动设备的原生功能来构建自己理想中的应用。



  Appverse Mobile通过为开发者提供丰富的JavaScript API来深度集成设备的原生功能,目的就是让设备能够更好的支持开发出的HTML 5应用。此外,即使针对不同的平台,这些API也是一致的,确保开发者能把主要精力投放在自己的应用设计当中,而不用在意这些技术细节。当然,在帮你解决这些技术细节的同时,还让你能自由的使用自己HTML5应用中的原生功能。


  之所以选择开源,Appverse Mobile团队表示,是希望开发者在使用的时候不用顾忌太多,同时还可以借助各位用户的能力经验来让Appverse Mobile变得更好。目前,平台凭借易于使用、部署和管理等优点,成为了多个公司的选择。


代码示例:

  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <launch-config>  
  3. <apps>  
  4.     <!-- The following are examples to call native applications in both platforms iOS and Android -->  
  5.     <!--    example: launching Mail native application.  
  6.             iOS:  
  7.             <a href="mailto:${EMAIL_ADDRESS}?cc=${EMAIL_ADDRESS_CC}&subject=Greetings">mailto:${EMAIL_ADDRESS}?cc=${EMAIL_ADDRESS_CC}&subject=Greetings</a>  
  8.             Android:   
  9.             Using an implicit intent with the action SEND and a plain text mime type. In this case, no URI scheme is used.  
  10.             Parameters passed when launching application (using the Appverse.System.LaunchApplication method) via the query string argument will be parsed and   
  11.             passed to the Intent as extras (name/value string pairs)  
  12.     -->  
  13.     <app name="appmail">  
  14.         <ios uri-scheme="mailto" uri-remove-double-slash="true"/>  
  15.         <android-implicit-intent action="android.intent.action.SEND" mime-type="text/plain" parse-query-as-intent-extras="true"/>  
  16.     </app>  
  17.     <!--    example: launching telephone native application.  
  18.             iOS: tel:${PHONENUMBER}  
  19.             Android:   
  20.             Using an implicit intent with the action DIAL and the "tel:" URI scheme.  
  21.     -->  
  22.     <app name="apptel">  
  23.         <ios uri-scheme="tel" uri-remove-double-slash="true"/>  
  24.         <android-implicit-intent action="android.intent.action.DIAL" uri-scheme="tel" uri-remove-double-slash="true" />  
  25.     </app>  
  26.     <!--    example: launching Maps native application.  
  27.             iOS:   
  28.             Specific URL. Example: <a href="http://maps.apple.com/?daddr?San+Francisco,+CA&saddr=cupertino">http://maps.apple.com/?daddr?San+Francisco,+CA&saddr=cupertino</a>  
  29.             Android:   
  30.             Two options, using explicit intent, or using the action VIEW with a specific "geo:" URI scheme  
  31.             // example: map point based on address  
  32.             geo:0,0?q=1600+Amphitheatre+Parkway,+Mountain+View,+California  
  33.             // Or map point based on latitude/longitude  
  34.             geo:37.422219,-122.08364?z=14  
  35.     -->  
  36.     <app name="appmaps">  
  37.         <ios uri-scheme="http" />  
  38.         <android-explicit-intent component-name="com.google.android.apps.maps/com.google.android.maps.MapsActivity"/>  
  39.     </app>   
  40.     <app name="appmaps-google">  
  41.         <ios uri-scheme="http" />  
  42.         <android-implicit-intent action="android.intent.action.VIEW" uri-scheme="geo" uri-remove-double-slash="true" />  
  43.     </app>  
  44. </apps>  
  45. </launch-config>  


  如果想要了解更多,可以进入项目站点进行详细解读。


  传送门:Appverse Mobile官网Github托管地址mobilehub主页


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部