name="com.androidemu.gba.gba.LogOut"/>
finish();
}
while(true)
{
return;
Captain.PN.isGame=false;
klz();
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
分析classLogOutextendsActivity
publicvoidonCreate(BundleparamBundle)
{
requestWindowFeature
(1);
getWindow().setFlags(1024,1024);
super.onCreate(paramBundle);
bujuset();//显示积分大于0即可永久免费无广告全屏运行……等的窗口
如果积分大于0开始真正的游戏,否则如果“获取积分被点击”联网显示应用列表
上传手机信息。
AppConnect.getInstance(this);
}
privatevoidbujuset()
{
LinearLayoutlocalLinearLayout=newLinearLayout(this);
localLinearLayout.setGravity(17);
localLinearLayout.setOrientation
(1);
TextViewlocalTextView1=newTextView(this);
TextViewlocalTextView2=newTextView(this);
localTextView2.setId
(1);
localTextView1.setWidth(-2);
localTextView2.setWidth(-2);
localTextView1.setGravity(17);
localTextView2.setGravity(17);
ButtonlocalButton1=newButton(this);
ButtonlocalButton2=newButton(this);
localButton1.setHeight(90);
localButton2.setHeight(90);
ImageViewlocalImageView=newImageView(this);
localImageView.setImageResource(2130837504);
localTextView1.setText("积分大于0即可永久免费无广告全屏运行");
localTextView2.setText("积分加载中...");
localButton1.setText("开始游戏");
localButton2.setText("免费获取积分");
localLinearLayout.addView(localImageView);
localLinearLayout.addView(localTextView1);
localLinearLayout.addView(localTextView2);
localLinearLayout.addView(localButton1);
localLinearLayout.addView(localButton2);
setContentView(localLinearLayout);
localButton1.setOnClickListener(newView.OnClickListener()//点击开始游戏
{
publicvoidonClick(ViewparamView)
{
if(LogOut.this.point>0)//如果几分大于0那么进入游戏
{
com.trendy.pokemontk.Captain.PN.isGame=true;
IntentlocalIntent=LogOut.this.getBaseContext().getPackageManager().getLaunchIntentForPackage(LogOut.this.getBaseContext().getPackageName());
localIntent.addFlags(67108864);
LogOut.this.startActivity(localIntent);//开启游戏的activitycom.trendy.pokemontk.Alarmreceiver
LogOut.this.finish();
}
while(true)
{
return;
com.trendy.pokemontk.Captain.PN.isGame=false;
Toast.makeText(LogOut.this.getApplicationContext(),"积分不足,请点击免费获取积分的按钮",1).show();
}
}
});
localButton2.setOnClickListener(newView.OnClickListener()//点击获取积分
{
publicvoidonClick(ViewparamView)
{
AppConnect.getInstance(paramView.getContext()).showOffers(paramView.getContext());
}
});
}
publicvoidshowOffers(Contextpara