# Add Components in my projects

**URL:** <https://community.thunkable.com/t/add-components-in-my-projects/1720847>\
**Category:** Questions about Thunkable X\
**Tags:** components\
**Created:** [February 7, 2022, 4:39pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847 "2022-02-07T16:39:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 7, 2022, 4:39pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/1 "2022-02-07T16:39:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 7, 2022, 4:54pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/2 "2022-02-07T16:54:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 7, 2022, 6:08pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/3 "2022-02-07T18:08:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 7, 2022, 6:40pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/4 "2022-02-07T18:40:21Z")

</div>

How about the “device is online” block?

> **[Device](https://docs.thunkable.com/device#get-online-offline-status)**

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 7, 2022, 6:52pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/5 "2022-02-07T18:52:15Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 7, 2022, 7:09pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/6 "2022-02-07T19:09:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 7, 2022, 7:19pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/7 "2022-02-07T19:19:38Z")

</div>

thanks anyway

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 7, 2022, 8:56pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/8 "2022-02-07T20:56:02Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 8, 2022, 5:06pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/9 "2022-02-08T17:06:31Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 8, 2022, 5:12pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/10 "2022-02-08T17:12:22Z")

</div>

> [@mephjl](#):
>
> in then do what can I insert ? Or blank is ok

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.

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 14, 2022, 10:20am UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/11 "2022-02-14T10:20:35Z")

</div>

![screen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff056827a3101c266f948a61c39b7f57e0b4d536.jpeg)  
and without connection the result is

 ![WhatsApp Image 2022-02-14 at 11.19.40](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/da19c4a0b3f936bb38991f188881a946bc32bdf5.jpeg)

WHERE IS THE ALERT ?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 14, 2022, 10:55am UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/12 "2022-02-14T10:55:20Z")

</div>

> [@mephjl](#):
>
> WHERE IS THE ALERT ?

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?

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 14, 2022, 11:37am UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/13 "2022-02-14T11:37:23Z")

</div>

I compiled as APK and installed it in my phone

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 14, 2022, 11:51am UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/14 "2022-02-14T11:51:57Z")

</div>

> [@mephjl](#):
>
> I can’t understand how you can close connection in the live test

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](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/37a0901412904515bc90263eb8547e930a78e43e.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/1606954fe8ddfb154a321ef27594a4adfa400288.png)

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.

 ![IMG_20220214_145315](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/ef53b8fcfe81a2620b6edb6bbdcaaa93ab0d2af4.jpeg)

---

<div class="post-metadata">

**Author:** ![mephjl](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mephjl/32/126746_2.png) [@mephjl](https://community.thunkable.com/u/mephjl)\
**Post date:** [February 14, 2022, 12:04pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/15 "2022-02-14T12:04:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 14, 2022, 12:08pm UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/16 "2022-02-14T12:08:40Z")

</div>

> [@mephjl](#):
>
> I need the app not start without a connection

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 17, 2022, 9:25am UTC](https://community.thunkable.com/t/add-components-in-my-projects/1720847/18 "2022-05-17T09:25:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
