Android Ultimate Plugin part 15 – Android Advance Info

Hi Guys, today we will show you on how to access some advance Information on Android Devices, so let’s Start

Requirements

You need to have an Android Manifest File on “Assets/Plugins/Android” Directory and then you need to make sure that  you have this permission

If you are sure that you have an Android Manifest File and it’s place on the proper Directory “Assets/Plugins/Android” and you the above Permission we can now start coding on C#.

First we need to have the instance of DeviceInfoPlugin

Next we need to off the toast Debug Message, because it’s annoying to see it always

And then we need to Initialized it

Next we setup call back Listener for Android Advertising ID event

To get  Android Advertising Id just do this line of code

To get Android Id

To get Telephony Device ID

To get Telephony Sim Serial Number

To generate Unique ID just do this line of code

 

For Reference here’s the code the we used on Advance Android Info Demo

Note: To Make this code run you need to Drag Text UI on this code Inspector.

 

And That’s it , that’s how easy and simple to used it.

For questions or comments or suggestions or any feed back just email us at gigadrillgames@gmail.com

Android Sensor Tutorial – Shake Sensor

Hi Guys, this is the second tutorial for Android Sensor Plugin for Unity3d and here again we will show you on how easy to use it, so let’s do it.

First always check if you have a Android Manifest File on “Assets/Plugins/Android” Directory without it your app won’t work or it will crashed.

If you have an Android Manifest  File  on the correct directory ( “Assets/Plugins/Android” ) , open it and check if you have this permission

After that setup we can now start coding

First we need to get the instance of  Shake Plugin

Then Set the Debug to 0 to hide the debug toast messages else pass 1 to show debug toast messages

And then we need to initialized it.

and of course don’t forget to Setup a Listener for Shake Sensor Callback event

And Then  we start Registering Listener for Shake Sensor

To modify sensitivity just call SetSensitivity method and pass value that you want the range is 0 to 2000

To Modify Update Interval just call SetDelayUpdate and pass value that you want the range is 0 to 1000

If you are done using Shake sensor just call RemoveSensorListener method

And here’s the  exact code used in our  Shake demo scene

Note: this code needs Text and Slider , just create 4 Text UI and 2 slider inside Uniy3d and drag it on this code Inspector and don’t forget to assign the events for slider.

And That’s it we are done, thank you for reading and happy coding 🙂

For more questions or comments or suggestions just email us at gigadrillgames@gmail.com

Android Sensor Tutorial – Pedometer

Note: we just updated the Pedometer Plugin and we added lots of new features for more information on this features and changes please follow this link

http://www.gigadrillgames.com/2017/04/16/pedometer-plugin-version-1-5-for-unity3d/

After Reading that new changes and feature you can still read this but take note this is a bit old now , but don’t inside our plugin there’s a simple demo that is super easy to follow 🙂

Hi Everyone, we just released an Android Sensor Plugin for Unity3d and this time it’s about sensors and the first feature is Pedometer also known as Step Counter

for more info about Step Counter follow this link https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_STEP_COUNTER

for more info about step detector follow this link https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_STEP_DETECTOR

 

and now we will show you on how to easily use this plugin in no time

Quick note: this plugin will only work if your android device supports this features step detector, step counter and accelerometer without this features it will not work so read this first before purchasing the plugin.

so let’s start.

First Android Manifest Requirements

you need to have this permissions on your android manifest file, found in “Assets/Plugins/Android” directory

After checking that you have Android Manifest file in “Assets/Plugins/Android” directory and you have the required permissions it’s to start coding in C# scripts

First you need to have access on PedometerPlugin instance

Then we set Debug to 1 to see toast Debug messages or 0 to hide them

After that we need to initialize it

Then after that if you want to start on Step zero always pass true on SetAlwaysStartAtZero else if you want to continue step count just pass false

Then we need to setup listener for event callback of pedometer

And Then we start pedometer from listening on step sensor

if you want to reset step call ResetTotalStep

when  you are done using pedometer plugin call RemoveSensorListener method

To See all working codes here’s the exact code inside Pedometer Demo

Note: this code needs Text , just create 2 Text UI inside Uniy3d and drag it on this code Inspector.

Hooray we are done , that’s it i hope i should be clear now how to use it.

For Questions or comments or suggestions or any feed back just email us at gigadrillgames@gmail.com

Android Info Scanner FAQ

Android Info Scanner FAQ

Android Info Scanner is an Android plugin to help you access device and other information in Unity.

If you are developing games for the Android Platform and want to see more specific information on Android Devices, this plugin might help you

List of Features:

Does not extend UnityPlayerActivity

Note: For C# Lovers only

1. Get Android package id at Runtime
2. Get Android version at Runtime
3. Get Battery Life Percentage
4. Get Time
5. Get Phone Number (depends on device)
6. Get Android ID
7. Get Telephony Device ID
8. Get Telephony Sim Serial Number
9. Get Android Advertising ID
10. Generate Unique ID
11. Get Wifi IP
12. Get Wifi SSID
13. Get Wifi BSSID
14. Get Wifi Rssi
15. Get Wifi Speed in MBS
16. Get Wifi Signal Strength
17. Check if Wifi Connected
18. Check if Mobile Connected
19. Check if Wifi Connection is Fast
20. Check if Mobile Connection is Fast
21. Get Account Name (depends on device)
22. Get Account Email (depends on device)
23. Get Account Number (depends on device)
24. Get Contact Name (depends on device)
25. Get Contact Phone (depends on device)

Note: this is just only subset of Android Ultimate Plugin, we suggest you to buy the Android Ultimate Plugin instead

Here’s the Unity3d Asset Store link

https://www.assetstore.unity3d.com/en/#!/content/44553

Hi Guys for more tips on Android Info Scanner on how to use those Hardware specific keys, id or signature here’s some good blog that will discuss it

http://android-developers.blogspot.in/2011/03/identifying-app-installations.html

 

Android Info Scanner for Uniy3d

Android Info Scanner

an Android Plugin for Unity3d that will help you access Information on Android devices with in unity3d.

If you are developing games for Android Platform and want to see more specific information on Android Devices this Plugin is for you

List of Features:

1.  Get Android package id at Runtime
2.  Get Android version at Runtime
3.  Get Battery Life Percentage
4.  Get Time
5.  Get Android ID
6.  Get Telephony Device ID
7.  Get Telephony Sim Serial Number
8.  Get Android Advertising ID
9.  Generate Unique ID
10. Get Wifi IP
11. Get Wifi SSID
12. Get Wifi BSSID
13. Get Wifi Rssi
14. Get Wifi Speed in MBS
15. Get Wifi Signal Strength
16. Check if Wifi Connected
17. Check if Mobile Connected
18. Check if Wifi Connection is Fast
19. Check if Mobile Connection is Fast
20. Get Account Name
21. Get Account Email
22. Get Contact Name
23. Get Contact Phone

and more possible features to be added in the future
Note: Does not extend UnityPlayerActivity

Try Apk Demo
http://www.gigadrillgames.com/2015/08/23/android-info-scanner-demo-apk

Here’s the Unity3d Asset Store link

https://www.assetstore.unity3d.com/en/#!/content/44553

Hi Guys for more tips on Android Info Scanner on how to use those Hardware specific keys, id or signature here’s some good blog that will discuss it

http://android-developers.blogspot.in/2011/03/identifying-app-installations.html

For questions or comments or suggestions just email us at gigadrillgames@gmail.com

Android Ultimate Plugin Demo

Hi Guys, to make things easier for us and for you before purchasing Android Ultimate Plugin please try our demo APK, if the plugin is working on your Android Device and you like how it works that’s the time to purchase it.

Version 1.7.3

https://drive.google.com/file/d/0Bw14w3QBZaGxbHVyaUVrSHdZbEE/view

For more  demos please read and follow this link

http://www.gigadrillgames.com/2017/02/04/android-ultimate-plugin-for-unity3d-demo-apk/

For more questions  or comments or suggestions or you want to add some features just email us at gigadrillgames@gmail.com with subject Android Ultimate Plugin

Android Ultimate Plugin Tutorial part 14 – Android Native UI

Hi Guys, Today we will tackle Android Native UI, so what is Android Native UI well it is UI commonly seen on Android and Android Ultimate Plugin had this four commonly use UI

Android Rate US Pop Up – this can be use when you want to ask player or user to make a rating for your game or application.

 

RateUSPopUp
RateUSPopUp

 

this is very easy to use , first you just need the instance of UtilsPlugin

then we can now pass 0 to SetDebug because we dont want to see those Debug Toast Messages

 

Next the actual implementation of Rate US POPUP

 

Android Alert Message – you can use this if you want to alert your player or user for example you want to say “you need to buy this first” or you are currently not connected to the internet.

Android Alert Pop UP
Android Alert Pop UP

 

To show Android Alert message

 

Android Loading UI – you can use this if you are loading something in  your game that will takes time, and then when you are done doing it or loading for example your game data or your game textures, you can just call the hide method of loading UI

Loading UI
Loading UI

 

To show Android Loading UI

 

To Hide Android Loading UI

 

Android Toast Message – you can use this if you what to say something to player or user and don’t want to interrupt  them.

Android Toast Message
Android Toast Message

 

To show Toast Message

Note: limitations you cannot change the UI skins or graphics.

And that’s it, I Hope you know now what is Android Native UI

 

For more questions or comments or suggestion or any feed back just email us at gigadrillgames@gmail.com

Android Sensor FAQ (Frequently Asked Questions)

Android Sensor FAQ (Frequently Asked Questions)

 

Question:  Why after my first walk the step didn’t count?

Answer:  Because the step sensor and counter needs to calibrate first it needs to get the first cycle of your walking it remembers the speed and your movement  first then if it’s done calibrating it will starts to count.

 

Question: How to start on zero step when starting my game?

Answer:  all you have to do  is call this method and pass true
pedometerPlugin.SetAlwaysStartAtZero(true);

 

Question: How to prevent step from restarting to zero step when restarting the game or application?

Answer:  all you have to do  is call this method and pass false
pedometerPlugin.SetAlwaysStartAtZero(false);

 

Question: What is Step Detect Event for?

Answer: this event is fired to tell you that step is detected

 

Question: I didn’t shake my device at all but shake is detected and counting what is happening, please explain?

Answer: this happened because you set your sensitivity to a very low value try to  increase it to lessen the sensitivity try something like  1100 this is optimize value based on our test.

 

Question: Shake is not detected even if i shake it very strong why?

Answer: this happened because you set your sensitivity to a very High value try to  decrease it to make it more sensitive try something like  1100 this is the optimized value based on our test.

 

Question: Shake is not updating and detected at all why?

Answer: please check delay update, maybe you set it way to high, try something 150 this is the optimized value based on our test. it updates every 0.15 seconds.

 

 

for more questions just email us at gigadrillgames@gmail.com