GetApk Extension [Open Source]

This is a extension which can be very helpful in many cases,And I have also kept it Open Source so that people can try to understand its code :smile:

It have Just one block

GetApkBlocks

With this block you can get the apk file path by the app’s package name

I, AtomDeveloper, attest that I am the author of this extension and grant that MIT has a non-exclusive irrevocable license to republish this extension as part of the project file for the purposes of MIT App Inventor Hackathon 2020.

Download
AIX - com.atomdeveloper.GetApk.aix (4.7 KB)
JAVA - GetApk.java (1.3 KB)

10 Likes

I can’t understand use of this extension

You can use this extension to get the apk file of any installed app
It may be used for many purposes,This was requested by Someone.

Even if app is installed from Play Store???

2 Likes

Yes :kissing_closed_eyes:

Please post sample aia for use of this extension
Because where we attached this extension in Which component to het results

that’s great extension…
will help to embed apk sharing if we build app like shareit…

Loved it :heart: :smiling_face_with_three_hearts:

2 Likes

We can use it following way

1 Like

UsageOfGetApk
Simple usage for copying the installed app’s apk to internal sotrage

3 Likes

You Should Give It On Github With A Liscence

1 Like

It works like apk extractor apps

2 Likes

Small extension but very unique and useful
I don’t have knowledge of java can u tell me how much effort you used to build this extension means it’s easy or hard

Thanks!

It was simple for me

Easy

In some times you released many many good extension
Very good you are a good contributor for kodular

Nice work

3 Likes

:smiling_face_with_three_hearts: :heart_eyes: :smiling_face_with_three_hearts: WOW

1 Like

Hello Atom.
I have edited the source file and made some changes.

What’s new?

  • Added missing description for blocks

  • Changed “GetApk” to “ApkPath”
    component_method (3)
    :warning: This change will break current projects, you’ll need to replace the functions.
    :notebook_with_decorative_cover: The method returns an empty string when there’s an error, so build your blocks to something like the AIA I attached at the end of the post.

  • Added an OnError block.
    component_event

  • Fixed up the Extension’s description and added a help link.
    image

  • Sadly, the extension is now 1.3 kb bigger :slightly_frowning_face:

I also built a sample AIA, which you can’t download yet, but here are the blocks:

blocks (60)

:warning: This isn’t an official update, so I will only publish the updated aix and the source code if @Atom_Developer approves the changes

edit:

3 Likes

I think GetApk was way better coz it results the actual apk.

3 Likes

Nice extension. Keep updating :pray:

1 Like

I have no problem,Anyone can do anything with it

It’s also the name of the extension and could be confusing to some ⁀_⁀

1 Like