Add Components in my projects

Excuse me but I haven’t the import .aix components in my projects. Why ?
I need to add netConnected.aix. How I can ?
Thanks for your help

I’m not exactly sure what that is but… Thunkable X cannot import older file formats and cannot import App Inventor files. It also does not support extensions.

Can you re-make what you had before using Thunkable X?

thank you for reply, but is there a way, simple way to know if the phone is connected like the component netConnected ?

1 Like

How about the “device is online” block?

4 Likes

YES, it’s a good way, thank you, and is exactly what I’m searching, BUT
how can close screen or app if is not connected ?
I’m in Screen1 Starts, if statement device connected do … but in else statement ?

1 Like

I don’t know a way to close or quit the app from Thunkable.

1 Like

thanks anyway

@mephjl why quit the app entirely? I’d recommend having a prompt showing the user how to turn on their internet connection, hope this helps to keep your project moving forwards

4 Likes

I added an Alert component without buttons and with dangerous ON, and in the else statement call to show alert1 and there is always a BUT…in then do what can I insert ? Or blank is ok ?

1 Like

If the purpose is to show a message and do not wait for a selection from the user then you can safely leave the then do blank.

2 Likes

screen
and without connection the result is

WHERE IS THE ALERT ?

1 Like

Before anyone can answer, you need to explain how did you run the app?

  • Are you using the Live Test from the computer?
  • Are you using the Thunkable Live app from the mobile?
  • Have you compiled it as APK and installed it in your phone and run it as a separate app?
2 Likes

I compiled as APK and installed it in my phone

I can’t understand how you can close connection in the live test

1 Like

The live app in the mobile will load the project you select. At this point you need an internet connection but after loading you can test the connection by switching your mobile internet OFF.

However, your code will not work because you are attaching it to the Screen Starts. You will need to add a button in the screen and use the Button Click block to test internet connection.

This works for me.


image

I then open the Thunkable live app in my phone and select this project. Once it opens, I close my phone internet connection and click the button.

I can’t understand how you can close connection in the live test (this is only a supplier comment).
I’m not in this condition.

I haven’t and I don’t want to include all my blocks in a button click.

I’m in ON START APP and so in SCREEN1 STARTS.

If the alert not work in this condition I don’t know what to do with it.
I need the app not start without a connection, or close, or at least notify me.
I don’t like seeing that hateful mistake.

1 Like

Put your code in the Screen Opens. Compile another APK, install it and test.

1 Like