Free Extension Internet Connection Check With Customizable Dialog

MyInternetExtension

πŸ”Ή Overview

MyInternetExtension is a versatile extension for Kodular that allows developers to check for internet connectivity and display a customizable dialog when there is no connection. It features a sleek design with a gradient background, custom fonts, and adjustable text colors, making it perfect for adding a professional touch to your app's user experience. With easy-to-use properties and events, this extension helps you handle internet connectivity issues seamlessly!


βœ… Key Features

  • 🌐 Internet Check: Detects if the device is connected to the internet.
  • 🎨 Customizable Dialog: Set title, message, button text, and colors.
  • πŸ–ŒοΈ Gradient Background: Customize the dialog's gradient background with two colors.
  • ✍️ Custom Fonts: Apply a custom font from assets to all text elements.
  • πŸ“’ Event Handling: Trigger actions when the user clicks the OK button.
  • πŸ“± Modern Design: Rounded corners, elevation for buttons, and a clean layout.

πŸ› οΈ Functions & Usage

:small_blue_diamond: Core Functions:

  • CheckInternet(): Checks if the device is connected to the internet and shows a dialog if not.
  • image

  • Clicked(): Event triggered when the user clicks the OK button in the dialog.
  • image

:small_blue_diamond: Customization Properties:

  • TitleText(String title): Sets the title text of the dialog.
  • MessageText(String message): Sets the message text of the dialog.
  • ButtonText(String buttonText): Sets the text of the OK button.
  • TitleColor(int color): Sets the color of the dialog title.
  • MessageColor(int color): Sets the color of the dialog message.
  • ButtonColor(int color): Sets the color of the OK button text.
  • BackgroundGradientColors(String colors): Sets the gradient background colors (e.g., "#FF0000,#00FF00").
  • SetFont(String fontPath): Sets a custom font from assets (e.g., "myfont.ttf").

πŸ“Œ How It Works (Step-by-Step Guide)

  1. Step 1: Import the MyInternetExtension (.AIX) into your Kodular project.
  2. Step 2: Add the extension to your screen and configure its properties (e.g., `TitleText`, `MessageText`, `SetFont`).
  3. Step 3: Call the `CheckInternet` function to check for connectivity and display the dialog if there's no internet.
  4. Step 4: Use the `Clicked` event to handle what happens when the user presses the OK button.

*** Example Blocks



Below is an example block showing how to use MyInternetExtension in your Kodular project:

Description: This example sets up the dialog with a custom title, message, and colors. It also sets a custom gradient background and font. When the user clicks the OK button, the `Clicked` event triggers an action (e.g., showing a notification).


*** Video Test

Watch the video below to see MyInternetExtension in action:

Description: This video demonstrates the dialog with a custom gradient background, font, and colors. The dialog appears when there is no internet connection, and an action is triggered when the OK button is clicked.


πŸ”” Events & Error Handling

Note: Ensure the device supports the required Android APIs for connectivity checks (API 23+ recommended).


πŸ› οΈ Troubleshooting & Common Issues

⚠️ "Dialog not displaying"?
β†’ Ensure `CheckInternet` is called and the device has no internet connection.

Troubleshooting Block 1

:warning: β€œCustom font not applied”?

β†’ Verify the font file (e.g., myfont.ttf) is in the assets folder and the path is correct.

Troubleshooting Block 2

:warning: β€œGradient background not changing”?

β†’ Check that the BackgroundGradientColors format is correct (e.g., β€œ#FF0000,#00FF00”).

Troubleshooting Block 3


πŸš€ Why Use This Extension?

βœ… Seamless Connectivity Check: Easily detect internet issues and inform users. βœ… Highly Customizable: Tailor the dialog to match your app’s design. βœ… Modern UI: Gradient backgrounds, custom fonts, and elevation effects. βœ… Easy Integration: Simple functions and events for quick setup.

πŸš€ Over 10 Blocks πŸš€

BackgroundGradientColors_Set_Property
ButtonColor_Set_Property
ButtonText_Set_Property
CheckInternet_Method
Clicked_Event
MessageColor_Set_Property
MessageText_Set_Property
SetFont_Set_Property
TitleColor_Set_Property
TitleText_Set_Property


:link: APK TEST (.APK):
MyInternetExtension.apk (4.7 MB)

:link: AIA TEST (.AIA):
MyInternetExtension.aia (183.2 KB)

:link: Extension (.AIX):

com.idriss.myinternetextension.aix (8.6 KB)



Version: 1.0
Category: Extension
Visibility: Non-Visible
Developer: Idriss (using Fast-CLI)
Size: 8Kb
Date: March 16, 2025
Update: March 16, 2025

Extension Support for Latest Kodular Update

πŸŽ‰ Enjoy using MyInternetExtension! Share your feedback & suggestions below. πŸš€

πŸ’° Get MyInternetExtension: This extension is available for free! Contact me if you need support.

πŸ“© Contact: Reach out on Telegram for support or inquiries.

Telegram: @IdrissCAma

2 Likes