OriginalToast Extension [Free & Open Source]

1.Introduction

OriginalToast is an Extension to show Android Toast. Compatible with all Android Versions,
especially for Devices >= Android 11.

See Also : Custom toasts from the background are blocked

This extension won't be updated anymore, that's why I've provided the source code.

Latest Version: 1
Released: 2020-11-04T23:00:00Z
Last Updated: 2021-09-19T22:00:00Z

2.Blocks

blocks

3.Documentation

  • Show Toast
    to show toast that has been set using the property blocks
    blocks (1)
  • Duration
    to set toast duration, (duration block can only accept "LONG" and "SHORT")
    blocks (5)
  • HTML Format
    to enable HTML Format on toast
    blocks (6)
  • Text
    to set toast text, (if Html Format is enabled, toast text in html form can be executed)
    blocks (7)

4.Screenshots


Screenshot_20210920-171043_1


Screenshot_20210920-171635_1


5.Downloads

com.SalmanDev.OriginalToast.aix (7.0 KB)
Source Code : OriginalToast.txt (3.4 KB)

6.Credits

Thank you to My Best Teacher @MohamedTamer :kissing_heart:
Big Thanks to @vknow360, @WatermelonIce And @Kumaraswamy for helping :heart_eyes:
Thanks to all of you who helped me :star_struck:
And Thanks a lot to MIT :heart:

17 Likes

There's actually no problem at all for the Android 11, but anyways good work!

3 Likes

Great work :+1:

Because Ai2 isn't yet targeting API 30.So custom toasts still works, due to the fact that the custom toasts aren't removed from the Android SDK, they are just deprecated in API version 30, which means that they can be no longer used when Ai2 targets API 30.

4 Likes

Might be useful to provide a list of gravity values for positioning....

2 Likes

They are listed here:
https://developer.android.com/reference/android/view/Gravity#constants_1

1 Like

I saw that, but for most users this would not make much sense.

e.g. what constant would place the toast vertical centre, 2/3 from the top ?

A simple list of these would help, rather than having to figure out the somewhat obscure descriptions from Android, or trial and error, one by one.

2 Likes

Good job.

I didn't help you.

Also sometimes, a combination of more than one constant is needed so providing blocks for it will be useful.

1 Like

Thank you very much @MohamedTamer, @WatermelonIce, @TIMAI2, @vknow360

1 Like

Yes, actually my extension, it works on all versions of Android

1 Like

OK I'll try to add the list like you said


Maybe you have forgotten, you helped me a lot,
but I will never forget your help :innocent:


I think I will do some research for that constant

Nice extensions, Some new features (margin and gravity) :wink:

1 Like

Thank you @newbiedeveloper :kissing_heart:

Okay @TIMAI2 I have Added List For Constant Value.

Good man :+1:

1 Like

Thanks a lot @TIMAI2 for the great idea :kissing_heart:

Awesome work friend! Keep it up

1 Like

Thank you very much for your support @Techno_Vedang :innocent: :kissing_heart:

1 Like

New Update

OriginalToast Extension [Free & Open Source]

  • Fixed Minor Bugs in Toast Duration
2 Likes

Final Update

OriginalToast Extension [FREE]

  • Removed Set Gravity Block (deprecated in API level 30)
  • Removed Set MarginX Block (deprecated in API level 30)
  • Removed Set MarginY Block (deprecated in API level 30)
  • Fixed Minor Bugs in ShowToast Block
3 Likes

Hi Everyone Now This Extension Is Open Source.

OriginalToast Extension [Free & Open Source]

Note: This extension won't be updated anymore, that's why I've provided the source code.


Ko-fi_Icon_RGB_rounded Buy me a coffee

1 Like