如何使用Android SDK附加组件? [英] How to use Android SDK add-on's?

查看:124
本文介绍了如何使用Android SDK附加组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 任何人都可以共享一些细节来开发新的SDK附加组件,例如一个Google Map API吗?我找不到有关如何构建新的SDK附加组件的任何详细信息?

  1. Can anyone share some details for developing new SDK add-on like the one Google map API? I do not find any details on how to build new SDK add-on?

使用SDK插件连接Twitter,Facebook,YouTube应用程序是一种好方法吗?我的意思是该库将包含访问社交网络应用程序支持的开发人员API的方法.我正在寻找一些开发新的SDK附加组件的想法.

Is that good approach to have SDK add-on for connecting to twitter, Facebook, YouTube applications? I mean the library would contain the methods to access the developer APIs supported by the social networking apps. I am looking out some ideas for developing new SDK add-on.

假设我在android核心框架中添加了新的服务API.现在,我可以构建一个SDK插件来访问该服务吗?(此附加库将具有更简单的API调用,这些调用又可以从android核心服务获得该服务)

Let's assume I have added new service API in the android core framework. Now can I build a SDK add-on in order to access that service? (This add-on library would have simpler API calls that would in turn available the service from android core service)

推荐答案

1.)我本人并没有尝试过太多,但是平台发行版中提供了一个演示SDK插件.查看Android开放源代码项目的vendor/samples文件夹.没有太多的文档.所需要的是您为SDK附加组件创建产品制造文件,并使用此产品描述来构建平台.它将生成需要包含在SDK,文档等中的文件系统映像.

1.) I have not tried this out much myself but there is a demo SDK-addon available in the platform distribution. Look in the vendor/samples folder of the Android Open Source Project. There is not much documentation on it. What is needed is that you create product make files for your SDK-addon and build your platform with this product description. It will generate the file system images needed to include with the SDK, documentation etc.

2.)我不确定SDK-addon是否适合连接您所描述的社交服务.使用常规的Java库并将其直接与您的应用程序链接听起来是一种更好的方法,除非您要针对特定​​的设备进行构建.据我了解,SDK附加组件和框架扩展机制主要用于创建自己的设备并需要将特定于设备的API添加到SDK的人们.一个示例就是您使用Android在船上构建导航系统并希望包含API:s的情况,您可以在其中从系统中的某些其他硬件获取有关速度,引擎状态,测量深度等的信息.在这种情况下,您将构建包括额外服务的系统,然后为想要构建专门针对您的航海用例的应用程序的开发人员生成一个SDK插件.

2.) I am not sure if SDK-addon is suited for connecting social services like you describe. Using a regular Java library and linking it directly with your application sounds like a better way unless your are building for a specific device. As I understand it the SDK-addon and framework extension mechanics are primarily for people who create their own devices and need to add device specific API:s to the SDK. One example would be the case where you are using Android to build a navigation system in a boat and want to include API:s where you can get information about speed, engine status, measured depth etc from some other hardware in the system. In that case you would build your system including the extra services and then generate an SDK addon for developers who would like to build applications specifically targeting your nautical use case.

3.)是的,我相信你可以.但是请记住,SDK附加组件需要与具有附加功能的设备相对应的系统映像,并且使用SDK附加组件编写的应用程序将仅在包含此功能的设备上运行.

3.) Yes, I believe you can. Remember however that SDK addons require system images that correspond to a device with the added capabilities and applications written using the SDK-addon will only work on devices that include this functionality.

这篇关于如何使用Android SDK附加组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆