WEB开发网
开发学院手机开发Android 开发 Android 字体+程序隐藏+菜单运用+soundpool 阅读

Android 字体+程序隐藏+菜单运用+soundpool

 2012-06-04 16:52:30 来源:WEB开发网   
核心提示:}public void aa21(View view) {mSoundPool.play(soundHashMap.get(21), 1, 1, 0, 0, 1);}public void b1(View view) {mSoundPool.play(soundHashMap.get(22), 1, 1, 0, 0,

}

public void aa21(View view) {
mSoundPool.play(soundHashMap.get(21), 1, 1, 0, 0, 1);

}

public void b1(View view) {
mSoundPool.play(soundHashMap.get(22), 1, 1, 0, 0, 1);

}

public void b2(View view) {
mSoundPool.play(soundHashMap.get(23), 1, 1, 0, 0, 1);

}

public void b3(View view) {
mSoundPool.play(soundHashMap.get(24), 1, 1, 0, 0, 1);

}

public void b4(View view) {
mSoundPool.play(soundHashMap.get(25), 1, 1, 0, 0, 1);

}

public void b5(View view) {
mSoundPool.play(soundHashMap.get(26), 1, 1, 0, 0, 1);

}

public void b6(View view) {
mSoundPool.play(soundHashMap.get(27), 1, 1, 0, 0, 1);

}

public void b7(View view) {
mSoundPool.play(soundHashMap.get(28), 1, 1, 0, 0, 1);

}

public void b8(View view) {
mSoundPool.play(soundHashMap.get(29), 1, 1, 0, 0, 1);

}

public void b9(View view) {
mSoundPool.play(soundHashMap.get(30), 1, 1, 0, 0, 1);

}

public void b10(View view) {
mSoundPool.play(soundHashMap.get(31), 1, 1, 0, 0, 1);

}

protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
mediaPlayer.release();
}

@Override
public void onBackPressed() {
// TODO Auto-generated method stub
super.onBackPressed();

Intent i = new

Intent(Intent.ACTION_MAIN);

i.setFlags

(Intent.FLAG_ACTIVITY_NEW_TASK);

i.addCategory

(Intent.CATEGORY_HOME);

startActivity(i);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// TODO Auto-generated method stub
SubMenu subMenu = menu.addSubMenu(0, 1, 0, "关于");
SubMenu subMenu2 = menu.addSubMenu(0, 2, 0, "退出");
return super.onCreateOptionsMenu(menu);
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
if (item.getItemId() == 1) {
Builder builder = new Builder(XiyangyangActivity.this);
builder.setTitle("软件信息");
builder.setMessage(R.string.about_cont1);
builder.show();

} else {
scrollview.startAnimation(new TV());
new Timer().schedule(new TimerTask() {

@Override
public void run() {

android.os.Process.killProcess(android.os.Process.myPid());

}
}, 1000);
}

return super.onOptionsItemSelected(item);
}

@Override
public void onChannelIdCb(int arg0) {
// TODO Auto-generated method stub

}

@Override
public void onSdkVersionCb(String arg0) {
// TODO Auto-generated method stub

}

@Override
public void onShowAppsFinishCb() {
// TODO Auto-generated method stub

}

@Override
public void onUpdatePointsCb(String arg0, int arg1) {
// TODO Auto-generated method stub

}

@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
}

上一页  1 2 3 4 5 

Tags:Android 字体 程序

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接