package com.jleo;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
public class DisplayCurrentFix extends Activity {
private static final int UPDATE_MAP = 0;
private static final int QUIT = 1;
private static final int QUIT_TO_LOGIN = 2;
protected static final int DIALOG_INTERACT = 0;
private static final int SHOW_MAP = 3;
private Action currentAction;
@Override
protected void onPause() {
super.onPause();
}
public void setCurrentAction(Action action) {
this.currentAction = action;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
new DisplayCurrentFixAction().apply(this);
}
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(0, UPDATE_MAP, 0, "Update Map");
menu.add(0, SHOW_MAP, 0, "Show Map");
menu.add(0, QUIT, 0, "Quit");
menu.add(0, QUIT_TO_LOGIN, 0, "Return To Login");
return true;
}
/* Handles item selections */
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case UPDATE_MAP:
showDialog(DIALOG_PROGRESS_BAR);
return true;
case SHOW_MAP:
// this.finish();
// overridePendingTransition(R.anim.fade, R.anim.hold);
Intent intent = new Intent("android.intent.action.DISP_MAP");
this.startActivity(intent);
return true;
case QUIT:
this.finish();
return true;
}
return false;
}
public static final int DIALOG_PROGRESS_BAR = 1;
public Dialog onCreateDialog(int id) {
ProgressDialog dialog = null;
if (id == DIALOG_PROGRESS_BAR) {
dialog = new ProgressDialog(this);
dialog.setMessage("updating map info");
dialog.setIndeterminate(true);
dialog.setCancelable(true);
}
return dialog;
}
}
分享到:
相关推荐
安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss安装ssss...
编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss编辑器ssss...
ssss 是基于Golang的http、web服务框架。...支持如下特性:MVC,类型内方法路由,JSON/JSON(JQueryCallback)/XML服务,模板,静态文件输出。暂时没有会话管理模块,不支持正则路由。 ... 标签:ssss
计算机行业周报:SssS行业正迎来高速发展黄金期,工业互联网加速落地.pdf
软件项目ssss成本管理.ppt
html推箱子ssss.zip
mong使用与配置ssss
个人后端资源文件ssss
解压缩加密工具类SSSS
NULL 博文链接:https://zhengyao0918.iteye.com/blog/1969915
软件项目ssss成本管理.pptx
ssss及其鉴别诊断PPT教案.pptx
26滇145何顺恩论文2g ssss.zip
包括来自日本漫画SSSS的高清图像 每个新选项卡上的Gridman 对于漫画日本漫画和动漫的迷们! 包括来自日本漫画SSSS的高清图像。 每个新选项卡上的Gridman。 漫画,日本漫画和动漫的粉丝们! 请给我们评分! 如果您...
工程旁站监理方案ssss_工程施工土建监理资料建筑监理工作规划方案报告_监理方案.doc
计算机行业周报:SssS行业正迎来高速发展黄金期,工业互联网加速落地
sum(s, n) = s + ss + sss + ssss + ... + sss ... sss ^^^^^^^ n 个 s 其中: 1. s 为 0 - 9 的整数 2. n 为 0 - 10000 的整数 示例: sum(2, 4) = 2 + 22 + 222 + 2222 sum(8, 7) = 8 + 88 + 888 + 8888 +...
当读DXF文件的时候,dxflib分析文件并且调用用户自己定义的函数来添加
Behind every successful man there's a lot u unsuccessful years.
moodel is on the way