You can, for example, know how long the game has been closed, schedule notifications for the future, show Toast notifications, manage files easily and completely, save and load files, operate device hardware, and even load Web pages within your game, using Webview! To complete, the Native Android Toolkit is completely conflict-free, use all tool functions without worrying about potential conflicts with other native Android code tools, you can use the Native Android Toolkit with any other plugin (like Google Play Services , Facebook and etc).
It's very easy to use the Native Android Toolkit. You can count on a simple and friendly API and documentation with code usage examples. If you want to engage your users even more with your game, while taking advantage of the features of the Android platform, this tool is for you! See the full list of features below!
- Dialogs
A class that offers different dialogs ready for your game to use. Dialogues of alert, confirmation, and so on.
â— Show simple alert dialog.
â— Show confirmation dialog.
â— Show radial list dialog.
â— Show checkbox list dialog.
â— Show confirmation dialog with neutral button.
â— Add listeners to receive the user's response and know which button he pressed in the dialog.
â— All dialogs are native to the Android system, using Google Material Design.
- Notifications
A class that offers ways to send notifications to the player. Be Toast notifications, or in the status bar.
â— Send notifications in the device status bar.
â— Show Toast notifications in various positions on the screen.
â— Schedule downtime notifications (custom notifications that invite the player to play your game after a period of time without playing it).
â— Check for inactivity notifications and delete-if they exist.
â— Make sure your notifications are delivered, even if the device is in deep sleep and on devices that have battery managers.
- Sharing
A class that offers ways to share content from your game. Be simple texts, textures, or screenshots.
â— Share a Texture2D from your game (a dialog box is displayed and the user can share it in applications such as WhatsApp).
â— Share a text from your game (a dialog box is displayed and the user can share it in applications such as WhatsApp).
â— Capture the screen and share the resulting image! (A dialog box is displayed and the user can share the image in other applications).
â— Capture the screen and get a Texture2D of image.
â— Copy text to the device transfer area.
â— Get text that is in the device transfer area.
â— Open a Play Store app by entering the package name.
- Time
A class that offers ways for you to check device time. You can for example, know how much has happened while the game was closed.
â— Use a time picker (with listener to receive the value selected by the user).
â— Use a date picker (with listener to receive the value selected by the user).
â— Get the date the last time the game was closed.
â— Get the time passed since the last time the game was closed.
â— Verify that the system clock was changed by the user while the game was closed.
â— Get the time passed since device initialization.
â— Get the time passed since the last time the game was closed (based on the system clock).
â— Get the time passed since the last time the game was closed (based on an internal Android clock that can never be changed by the user).
â— You do not need to include daylight savings or timezone calculations in your logic, the Native Android Toolkit already takes care of it for you! Just build your logic normally!
- Apps
A class that provides ways for your game to interact with other applications and packages installed on the device.
â— Verify that an app is installed on your device by entering the name of your package.
â— Open an application that is installed on the device, giving the name of your package.
- Webview
A class that offers ways to access the android webview system and open web pages within your game.
â— Open a Web page within your game, with a Webview window, which has navigation controls! (You can also register listeners to see each player's interaction with Webview).
- Scheduled Notifications
A class that provides ways for you to schedule notifications to be delivered in the future. You can, for example, schedule a notification to be delivered when something in the game is ready.
â— Schedule multiple status bar notifications for the future, a great feature to notify the user when something is ready!
â— Easily check which notification is active and how many are active on each channel.
â— Easily cancel notifications that are already scheduled.
- Utils
A class that offers several utilities for your game. Be simple checks, even interactions with device hardware.
â— Check if device supports vibration.
â— Vibrate the device once, or with a vibration pattern.
â— Check if the device supports flash light.
â— Turn on/off the flash light.
â— Check your game permissions.
â— Verify that the application permissions have been given.
â— Get Android system info.
â— Check if the device is connected to a Wi-Fi network.
â— Check if a headset is connected.
â— Check if there is internet connectivity at the moment.
â— Check if bluetooth is active.
â— Restart the game automatically (the game will be closed and opened automatically by the Android system).
â— Open the Wifi settings.
â— Open the Bluetooth settings.
â— Open your app settings.
â— Get Android device unique ID.
- File Manager
A class that provides several tools for your game to create and manage files in the device's internal memory.
â— Check if a file exists.
â— Check if a directory exists.
â— Check if internal memory is available.
â— Create a directory if it does not exists.
â— Create folders.
â— Get the total memory size.
â— Get free memory size.
â— Check if the path is a file.
â— Check if the path is a folder.
â— Check if the path is readable, modifiable, or hidden.
â— Get the size of a file.
â— Get the file modification date.
â— Set a file as read-only, readable, or not readable, editable, or not.
â— Get the path of all files that are in a folder.
â— Delete, move, rename or copy files.
â— Get the name of a file.
â— Load the bytes of a file.
â— Load the text from a file.
â— Load a texture from an image file.
â— Create files.
â— Save bytes, textures, texts and etc in files.
â— All of this is done from your game.
- Tool Features
â— The total size of this Asset will not be included in your final game, just the code files, an average size of 500kb only!
â— Enjoy not only these features, but also others more!.
â— Compatible with all versions of the Android system, equal to or greater than 4.1.
â— No risk of conflicts with Android libraries, or other native code tools.
â— Does not overwrite the main activity of your game.
â— Time calculations take into account summer time and all time zones, you do not have to worry about these details!
â— You can also edit Native Android Toolkit data through an interface within the asset preferences. You can do things like remove unused permissions, or change the notification icon for notifications issued by this tool!
â— Adding the "Calendar" class. This class allows you to make various time calculations such as time/date sum, subtraction and so on. In addition, this class also serves as a storage and time representation. This greatly facilitates calculations and time manipulation within Unity C#.
- I will always be working to bring improvements and new features!
- Email for support or contact (mtassets@windsoft.xyz)
- Website (https://windsoft.xyz/mtassets)
Created with ⤠by MT Assets!