NFC - my third extension [FREE]

yes lol
for 16*16 icon size?
@bodymindpower

2 Likes

Do you see the attached image?

I don’t see it → Firefox

Chrome I see it.

1 Like

@Kodular is there a way you can force this to be 16x16 no matter what size image is uploaded? Often people will make larger images for better resolution… If the img element has a specified size, it shouldn’t affect the image resolution.

1 Like

yes, in kodular it is always working
just in app inventor it look like real size…

1 Like

In this extension there was a big bug that caused other imported components to crash!

The repair is now done and the file is up to date. Anyone who downloaded - please delete the file immediately, and save the new file. If not - the system will crash.

3 Likes

thank you for your contribution!

Please remember to follow the naming conventions

Unbenannt

Thank you
Taifun

4 Likes

Ok i will do it now
~
I did.

thank you… you also might want to replace IsExists by only Exists
Taifun

Ok I did it.
Also I changed the IsEnabled to only Enabled.

1 Like

Hello and first of all thank you for this application.

I think there is a little problem with “enable”.

If I activate my NFC and click on “do it”, I get the message “true”. If I disable “False”, so far no problem.

On the other hand if I put a condition of the style when nfc is activated:

“call NFC.enable = true” then do it returns “false” to me when NFC is activated (so true). The result is identical if I activate or not the nfc or if the condition is true or false. the result is always the same “false”.

Also noted that if I want to put “nfc.enable” directly in an IF condition, it is impossible to attach (it is possible with then or else) while it works with “exists”.

cordially
ced

2 Likes

Because it is a String, not a boolean. Check the first post for more info.

2 Likes

Ok, but why do I get this result when dmon nfc is on? or off?
nfc

You’ll have to wait the developer’s reply.

Btw, you should use the red String “true” instead of the green one.

1 Like

Thank you indeed it is necessary to put true in text!

I don’t know to help you, sorry

this is not how the extension should work…
the developer of the extension @Matanel325 might want to fix this and return a boolean value rather than a string

Taifun

2 Likes

I will not do it because the code will not compile if i will do it.
In block “is enabled”, the code does if statement for if exists and also if statement for if enabled.
Sorry for this, but if i will remove the if statement of is exists, the if enabled will return error.

which error message do you get?
what about

  @SimpleProperty()
  public boolean Exists() {
    ....
    return yourBooleanValue;
  }

Taifun

2 Likes

I will send you the code in pm

1 Like

Dear @Matanel325

I saw your extension and it seems very good. As you seem to be quite expert in working with nfc in kodular, do you think you would be able to make a new extension that can make the NFC read-only? Thanks!

Ps. @Taifun if you have any suggestions…