[Free] ⚠ ImageNotifier

1. Introduction

  • Description: a sister extension to the AltNotifier, this simple extension has two methods not found in the standard notifier component that allow the developer to display an image in a notifier.
  • Latest version: 4.0
  • Released: 2021-09-15T23:00:00Z
  • Last updated: 2022-08-21T23:00:00Z
  • Tested: Android 10 & 11, companion and compiled
  • Built: Using the Rush Extension Builder by @ Shreyash

2. Blocks

  • In both method blocks the developer can provide a Title and a Caption for the imageNotifier. Use a blank text block if not required.
  • Both blocks also offer a maxSize feature. A value of 600 works well for most images, a lower number will provide a smaller image, a higher number a bigger image.

Displaying an image from file. The developer needs, as a minimum, to provide an absolute file path to the image

component_method

There is an after display event

Displaying an image from a base64 string

There is an after display event

  1. Usage

Blocks and Screenshots demonstrating usage

assetINDD

  1. Files

AIX: ImageNotifier
JAVA: imageNotifier.java.txt (4.8 KB)

Enjoy :slight_smile:

  1. Procedure AddOn

Only for the methods in this extension, if you use this draggable procedure in your "title" socket, it will make the buttons fill the width of the notifier in Classic theme.

Changelog

updated to version 4 to adjust notifier button method, which allows for project compilation

Available for use in any MIT AppInventor projects or competitions

#####################################################################
This work by TIMAI2 is licensed under an
MIT Licence.
#####################################################################

  1. Credits & Thanks

go to @shreyash, @Kumaraswamy, @vknow360, @Juan_Antonio for their help, advice and input along the way

30 Likes

Nice extension @TIMAI2

Great Extension @TIMAI2

1 Like

Great extention :ok_hand: @TIMAI2

1 Like

That's Dope

:star_struck: :+1:

1 Like

Super extension @TIMAI2 ! :star_struck: :star_struck:

2 Likes

does gif or any other animation format work

Unfortunately, this extension will only handle jpg, jpeg, png image files.

2 Likes

Can I show a png in asset ? this block does not run

You will need to define the path to the asset (or copy the asset to the ASD)

Make a procedure with file component:

1 Like

Thanks, it runs

Hello
Where the block "Call File1.makeFullpath" comming from.
i can't find it
Thanks Peter

The File component

it works. thanks

hello

Runtime Error

Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
Note: You will not see another error reported for 5 seconds.

what error ?

Yes, not quite sure why this is occurring, will need to investigate. Thanks for reporting.

Still works with a base64 encode...

@mitapp_inventor_user

Can you please try this version of the extension, tested and working for me

uk.co.metricrat.imagenotifierV2.aix

Note should work in companion app, but currently still not compiling?

A slash (/) is missing in front of the image name:

grafik

@Anke

That was not the issue, I have a compile issue now, don't know why....