Top sellers

Android Account Info

Android Account Info
Product Code: Android_GoogleID
Availability: In Stock
Built for: Android
Product Version: 1.0.1
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: Android
Price: $9.95
Seller information: Silicon Droid
Country: Spain
Company: Silicon Droid
Qty:     - OR -   Wish List

This plugin enables you to enumerate the account information available on an Android device.

For example you may want to use the google.com account name as a unique identifier for a user. This way you can save game information in a database and tag it for each user.

Instructions for use are simple:

[0] You need to add this to your games manifest.xml:

<uses-permission android:name="android.permission.GET_ACCOUNTS" />

[1] Import the plugin .STE into your game project.

[2] Drag the plugin into the GameEditor/Plugins tab to reference it in your game.

[3] Now you can enumerate the device accounts like this:

local nAccs = Android_GoogleID.getAccountNumber ( )
for nAcc = 0, nAccs - 1
local sNam = Android_GoogleID.getAccountNameAt ( nAcc )
local sTyp = Android_GoogleID.getAccountTypeAt ( nAcc )
local sTxt = "ACCT = " .. nAcc .. "\nNAME = " .. sNam .. "\nTYPE = " .. sTyp
log.message ( sTxt )

Write a review

Your Name:

Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:

Tags: account
ShiVa Store © 2019 - Powered By OpenCart