本文整理汇总了C#中Android.GetInt方法的典型用法代码示例。如果您正苦于以下问题:C# Android.GetInt方法的具体用法?C# Android.GetInt怎么用?C# Android.GetInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android
的用法示例。
在下文中一共展示了Android.GetInt方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
public override void OnCreate (Android.OS.Bundle savedInstanceState)
{
base.OnCreate (savedInstanceState);
if (savedInstanceState != null) {
mRetryCounter = savedInstanceState.GetInt (KEY_RETRY_COUNTER);
mRetryLoadFullWalletCount = savedInstanceState.GetInt (KEY_RETRY_FULL_WALLET_COUNTER);
mHandleFullWalletWhenReady =
savedInstanceState.GetBoolean (KEY_HANDLE_FULL_WALLET_WHEN_READY);
}
mActivityLaunchIntent = Activity.Intent;
mItemId = mActivityLaunchIntent.GetIntExtra (Constants.EXTRA_ITEM_ID, 0);
mMaskedWallet = mActivityLaunchIntent.GetParcelableExtra (Constants.EXTRA_MASKED_WALLET).JavaCast<MaskedWallet> ();
var accountName = ((BikestoreApplication) Activity.Application).AccountName;
// Set up an API client;
mGoogleApiClient = new GoogleApiClient.Builder (Activity)
.AddConnectionCallbacks (this)
.AddOnConnectionFailedListener (this)
.SetAccountName (accountName)
.AddApi (WalletClass.API, new WalletClass.WalletOptions.Builder ()
.SetEnvironment (Constants.WALLET_ENVIRONMENT)
.SetTheme (WalletConstants.ThemeLight)
.Build ())
.Build ();
mRetryHandler = new RetryHandler (this);
}
示例2: MapScores
private Score MapScores(Android.Database.ICursor cursor)
{
Score scr = new Score ();
scr.ScoreID = cursor.GetInt (0);
scr.ScoreDate = cursor.GetString (1);
scr.PlayerName = cursor.GetString (2);
scr.ScoreNumber = cursor.GetInt (3);
return (scr);
}
示例3: MapScores
private Score MapScores(Android.Database.ICursor cursor)
{
Score scr = new Score();
scr.ScoreID = cursor.GetInt(0);
scr.ScoreDate = cursor.GetString(1);
scr.ScoreNumber = cursor.GetInt(2);
scr.Rating = cursor.GetDouble(3);
scr.Slope = cursor.GetInt(4);
return (scr);
}
示例4: OnActivityCreated
public override void OnActivityCreated(Android.OS.Bundle savedInstanceState)
{
base.OnActivityCreated(savedInstanceState);
if (savedInstanceState != null && savedInstanceState.GetInt(RUN_ID, -1) != -1) {
CurrentRun = mRunManager.GetRun(savedInstanceState.GetInt(RUN_ID));
}
else if (Activity.Intent.GetIntExtra(RUN_ID, -1) != -1) {
CurrentRun = mRunManager.GetRun(Activity.Intent.GetIntExtra(RUN_ID, -1));
}
else if (CurrentRun == null) {
Run run = mRunManager.GetActiveRun();
if (run != null) {
CurrentRun = run;
}
}
}
示例5: OnCreate
public override void OnCreate(Android.OS.Bundle savedInstanceState)
{
if (savedInstanceState != null) {
var savedAvatarIndex = savedInstanceState.GetInt (KeySelectedAvatarIndex);
selectedAvatar = (Avatar)savedAvatarIndex;
}
base.OnCreate (savedInstanceState);
}
示例6: NewQuestion
private Question NewQuestion(Android.Database.ICursor cursor)
{
Question qst = new Question ();
qst.ImageID = cursor.GetInt (1);
qst.QuestionString = cursor.GetString (2);
qst.CorrectAnswer = cursor.GetString (3);
qst.WrongAnswer1 = cursor.GetString (4);
qst.WrongAnswer2 = cursor.GetString (5);
qst.WrongAnswer3 = cursor.GetString (6);
return (qst);
}
示例7: OnCreate
public override void OnCreate(Android.OS.Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
Android.Util.Log.Info("SuperAwesomeCardFragment", string.Format("OnCreate called"));
if (savedInstanceState != null)
{
_position = savedInstanceState.GetInt("position", 0);
_enableProgressButton = savedInstanceState.GetBoolean("enableProgressButton", false);
}
if (this.View != null)
{
Android.Util.Log.Info("SuperAwesomeCardFragment", string.Format(string.Format("View already present for position {0}", _position)));
}
}
示例8: OnGetDefaultValue
protected override Java.Lang.Object OnGetDefaultValue(Android.Content.Res.TypedArray ta, int index)
{
var defaultValue = ta.GetInt (index, DEFAULT_VALUE);
return defaultValue;
}