简体   繁体   English

我们可以在GeneXus android应用程序中使用android库(aar)吗?

[英]Can we use an android library (aar) in a GeneXus android app?

We have an android library for mobile data gathering (location, mobile device, etc.) that I would like to share with a partner. 我们有一个Android库,用于收集移动数据(位置,移动设备等),我想与合作伙伴共享。 This aar component was developed using java and android studio, vanilla stuff. 这个aar组件是使用java和android studio开发的。 Problem is, this partner is using GeneXus platform. 问题是,该合作伙伴正在使用GeneXus平台。 I have performed a research and what I have found is that you can create an android component using GeneXus, but nothing related to consuming one (an external aar file). 我进行了一项研究,发现可以使用GeneXus创建一个android组件,但与使用一个组件(外部aar文件)无关。

Does anyone know if that is possible? 有人知道这是否可能吗?

I also have verified that you can have access to "some" device data, like geo localisation, but that is it. 我还验证了您可以访问“某些”设备数据,例如地理位置本地化,仅此而已。 Point is, I could create something in GeneXus, however with far less data richness than native android. 关键是,我可以在GeneXus中创建一些东西,但是数据丰富性要比本地android小得多。

Yes, you can extend Genexus Android native app by using any native library you need to use. 是的,您可以使用需要使用的任何本机库来扩展Genexus Android本机应用程序。 Genexus provide Extensions Library for extensibility in native application. Genexus提供扩展库以在本机应用程序中进行扩展。 You can create an External Object in Genexus and then use it in your application. 您可以在Genexus中创建一个外部对象 ,然后在您的应用程序中使用它。

You can find a full sample in Github with step by step documentation: 您可以在Github中找到完整的示例 ,以及逐步的文档:

https://github.com/genexuslabs/SDExtensionsSample https://github.com/genexuslabs/SDExtensionsSample

Best, 最好,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM