[FREE] Mobile Utils - mobile community project

http://gamednastudio.com/plugins/images/MobileUtils/Promo1.png

Feel free to make pull request! :slight_smile:

Mobile Utils lets you integrate out-of-the-box mobile utilities for iOS & Android into an Unreal Engine 4 project. For example, it allows you to check an Internet connection and Google Play Services availability as well as get persistent Unique Device ID (you can identify users between application installations in order to, for example, store saved games in a cloud). This plugin is a mobile community initiative. Everyone can contribute and pull request with awesome new features to extend the editor and functionality of Unreal Engine 4.

We want to make a big mobile plugin with many features from community so feel free to make pull request! After review, if all is good, it will be merged into plugin. Thank you! :slight_smile:

FEATURES:
★ Checking internet connection availability
★ Checking Google Play Services availability
★ Getting persistent Unique Device ID
★ Retrieving Auth Token from Online Subsystem
★ Works with dev & shipping builds
★ Out-of-the-box for iOS & Android
★ Additional SDK included
★ Works with Blueprint-only & source code projects
★ Works with Launcher & GitHub UE4 versions

INFO:
★ Current version: 1.12.0
★ Required Unreal Engine 4.12 or above.

Plugin is used in my mobile game CHASERS:

http://gamednastudio.com/storage/banners/ChasersBanner.png

Available for FREE on GitHub: GitHub - gameDNAstudio/MobileUtils: A plugin for Unreal Engine 4 that lets you integrate mobile utilities into your project.
Available for FREE on Marketplace: Mobile Utils in Code Plugins - UE Marketplace

Yes this is true. We hope that we can achieve a very high level of functionality that are going to help many fellow developers throughout the globe! Cheers!

Hello again! I just finished refactoring the project to match the new guidelines as well as write general guidelines about testing your integrations on the plugin (no rebuilding the engine required!)!

I’ve refactored code for multiplatform support so you can now simply add your mobile functionalities. I encourage all the people who made something awesome for UE4 mobile to make PR request to our repository. Thank you! :slight_smile:

**Mobile Utils 1.0.1 released!
**

**CHANGELOG:
**- Added new node: GetPersistentUniqueDeviceId - standard UniqueDeviceId is regenerated after every app reinstall on iOS, this new node guarantess returning always the same Device ID

  • Refactor for multiplatform support
  • Refactor for Marketplace

**If you have already done features for mobile on UE4, feel free to make pull request! :slight_smile:
**

Available for FREE on GitHub: https://github.com/gameDNAstudio/MobileUtils

Extra heads-up: lots of android related PRs got evaluated for 4.13, it will be a good release! :smiley:

**Mobile Utils 1.0.2 released!
**

**CHANGELOG:
**- Implemented GetPersistentUniqueDeviceId node for Android - you can now identify users by Device ID between installations!

Get update from GitHub: https://github.com/gameDNAstudio/MobileUtils

**Mobile Utils 1.1.0 for UE 4.13 released!
**

Get update for UE 4.13 from GitHub: https://github.com/gameDNAstudio/MobileUtils

OMG @GameDNA studio 1 divided by 0 Karma to you for making this.

I’m a guy who can do android and java programming but not too good with C++ programming and I was making a game for android but was missing some core android functionalities which I knew I could program with Android but with C++ I was a lost cause.

I was almost on the verge to give up on those small but core functionalities.

By luck I stumbled on your plugin and I was successfully able to implement by doing android code on the IDE I like Eclipse and moving it to Visual Studio when I’m happy with the code.

After I’m done making all of them I would want to make a guide for maybe people like me to use your plugin to get those core functionalities. And heck yeah I will credit you as special thanks when and if I release my game and also in the guide I make. Lots of love for this. The possibilities are endlless with this plugin.

Also, your game CHASERS is amazing.

Peace.
Thank you for awesome plugin.

@Shobhitthackar; thank you for appreciate! I’m glad that you enjoy this plugin :smiley:

I have also plans to make many guides and tutorials for UE4 mobile developers :slight_smile:

Urm, I don’t know if this is the right place to ask this or not and I would understand if no one reply’s but how would one go about adding onActivityResult using the plugin. I already have the code ready and tested and in GameActivity.java, their already exists an onActiviyResult method. I’m trying to use the MediaStore content provider.

public void AndroidThunkJava_OpenGallery()
{
Intent Intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(galleryIntent, RESULT_LOAD_IMG);
}

public void AndroidThunkJava_onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);

if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {
Uri selectedImage = data.getData();
String] filePathColumn = { MediaStore.Images.Media.DATA };

Cursor cursor = getContentResolver().query(selectedImage,
filePathColumn, null, null, null);
cursor.moveToFirst();

int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
String picturePath = cursor.getString(columnIndex);
cursor.close();
}

The project compiles and packages but when I try to run it in my phone, the game crashes on launch. This is the only last thing that I wanted to make. After this guide time :smiley: I have also checked and imported necessary imports

You should call native method from Java to C++ like in GameActivity.java: https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java#L1738

**Mobile Utils 1.2.0 for UE 4.14 released!
**

Get update for UE 4.14 from GitHub: https://github.com/gameDNAstudio/MobileUtils

Mobile Utils 1.3.0 Preview for UE 4.15 Preview!

I’ve just released plugin binaries for Unreal Engine 4.15 Preview.
You can download it from GitHub repository on releases tab.

If you find any bug, feel free to report it :slight_smile:

**Mobile Utils 1.3.0 for UE 4.15 released!
**

Get update for UE 4.15 from GitHub: https://github.com/gameDNAstudio/MobileUtils

Hi GameDnaStudio and thanks a lot to making this useful tool…
I want to know if I could override a method from game main activity in MobileUtil_APL.xml file?
because as I tried, this code has encountered an error for me and I think I must override it from the outside of class or …!!!

It doesn’t work for you because engine already overrides onActivityResult: https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java#L1700

But they are good news! You can add code to the onActivityResult in MobileUtils_UPL_Android.xml!

Simply add to this file:



 <gameActivityOnActivityResultAdditions>
    <insert>
        // code
    </insert>
 </gameActivityOnActivityResultAdditions>


MobileUtils plugin is designed to extending by community. What features do you want to add? Could you make Pull Request? :slight_smile:

thanks a lot…
I think this plugin is perfect even by current features and utilities, but there is no any tutorial video about configuration and using that on youtube…just we can read and apply Git readme texts about configuration and using that…
so I think it’s better to preparing some hello world videos to make it public…
I will try to make some pull requests as soon as I can…
thanks very very much for creating that…good luck…
:slight_smile:

**Mobile Utils 1.4.0 released!
**

**CHANGELOG:
**- Added new functionality: Retrieving Auth Token from Online Subsystem

**If you have already done features for mobile on UE4, feel free to make pull request! :slight_smile:
**

Available for FREE on GitHub: https://github.com/gameDNAstudio/MobileUtils

Awesome many thanks for that gameDNA!