hello @everyone i am trying to make a extension from github but i am failing please help me
link - GitHub - anitaa1990/DeviceInfo-Sample: [Android Library] Get easy access to device information super fast, real quick
please give me a sample code of how to make it in appybuilder
Unfortunately you can’t. Third party libraries aren’t supported for appybuilder, you might want to use the app Inventor Sources, you can see this guide about it:
Or the extension template, see also here:
Open Source Development
Extension Development
Hi all, I have been experimenting on a new system for building extensions. This version no longer requires checking out the whole source tree of App Inventor to build an extension, which means that you can manage extensions in different...
Reading time: 10 mins đź•‘
Likes: 102 ❤
There is also a guide about it:
https://medium.com/@saitwalshreyash19/writing-extensions-for-app-inventor-2-and-kodular-7d20092bff16?sk=1e2ce3fa85dd781c002c78c75ce83ccd
The Aar library is present here:
Note: Aar libraries aren’t supported for extensions, You can extract the classes.jar
file to use it for your extension.
See also here, how to add a library to your extension:
Hi,
Is it possible to import other third-party libraries to an extension?
[image]
the log does say that the package does not exist
[image]
Is there any way to “install” these kind of libraries?
Thanks.
Usage examples are present in the readme.md
file:
# DeviceInfo-Sample
<a href="https://android-arsenal.com/details/1/4581"><img src="https://img.shields.io/badge/Android%20Arsenal-DeviceInfo-blue.svg?style=flat" alt="Android Arsenal" data-canonical-src="https://img.shields.io/badge/Android%20Arsenal-DeviceInfo-blue.svg?style=flat" style="max-width:100%;"></a>
Simple, single class wrapper to get device information from an android device.
This library provides an easy way to access all the device information without having to deal with all the boilerplate stuff going on inside.
<b> As part of the process of my learning kotlin, I migrated the library to support Kotlin as well. If you would like to view the Kotlin version of the library - please checkout branch</b> <i>migrate_to_kotlin</i>
Library also provides option to ask permissions for Marshmellow devices!
<h2>Sample App</h2>
<p><a href="https://play.google.com/store/apps/details?id=com.deviceinfosample"><img width="150" alt="Get it on Google Play" src="https://camo.githubusercontent.com/ccb26dee92ba45c411e669aae47dcc0706471af7/68747470733a2f2f706c61792e676f6f676c652e636f6d2f696e746c2f656e5f67622f6261646765732f696d616765732f67656e657269632f656e5f62616467655f7765625f67656e657269632e706e67" data-canonical-src="https://play.google.com/intl/en_gb/badges/images/generic/en_badge_web_generic.png" style="max-width:100%;"></a></p>
<p>Donwload the sample app on the Google Play Store and check out all the features</p>
<p><a href="https://lh3.googleusercontent.com/np6mWFTBu0GFah9BhO53E2ew5RgychG79Jh9x2Yp1wX_Omb2Eal_3bIL-amWXeDQVX8=h310-rw" target="_blank"><img src="https://lh3.googleusercontent.com/np6mWFTBu0GFah9BhO53E2ew5RgychG79Jh9x2Yp1wX_Omb2Eal_3bIL-amWXeDQVX8=h310-rw" width="180" style="max-width:100%;"></a>
<a href="https://lh3.googleusercontent.com/9q35IMOhQsRAoxCfxHsxBd2S62Ke_yXG_ivgFZwxoCQqVYEFJ7nqu11j_k0QALASYDE=h310-rw" target="_blank"><img src="https://lh3.googleusercontent.com/9q35IMOhQsRAoxCfxHsxBd2S62Ke_yXG_ivgFZwxoCQqVYEFJ7nqu11j_k0QALASYDE=h310-rw" width="180" style="max-width:100%;"></a>
</p>
This file has been truncated. show original
Note : for questions about extension development you should ask in the app Inventor community:
3 Likes
sorry i am not able to understand can you tell step by step
Firstly, need to configure your device for Extension development, you can either use the app Inventor Sources or the extension template, follow one of the guides stated above for that.
1 Like
hello i did not understand so i want to make it from the steps followed here in appybuilder please help me now @Mohamed_Tamer
If you would use the Android built-in BatteryManger
class, so you can do it with appybuilder.You can follow the Android guide to know how to use it
1 Like
well @Mohamed_Tamer i tried but i cant do maybe you can share sample code?