F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_23151180_23949\Main.java:40: 错误: 需要')'
        gridview.setAdapter(saImageItems);
                                         ^
0_0_23151180_23949\Main.java:49: 错误: 需要')'
            HashMap<String, Object> item = (HashMap<String, Object>) arg0
                                        ^
0_0_23151180_23949\Main.java:49: 错误: 非法的类型开始
            HashMap<String, Object> item = (HashMap<String, Object>) arg0
                                           ^
0_0_23151180_23949\Main.java:49: 错误: 需要';'
            HashMap<String, Object> item = (HashMap<String, Object>) arg0
                                                   ^
0_0_23151180_23949\Main.java:49: 错误: 非法的类型开始
            HashMap<String, Object> item = (HashMap<String, Object>) arg0
                                                                   ^
0_0_23151180_23949\Main.java:49: 错误: 需要'('
            HashMap<String, Object> item = (HashMap<String, Object>) arg0
                                                                     ^
0_0_23151180_23949\Main.java:50: 错误: 非法的类型开始
                    .getItemAtPosition(arg2);
                    ^
0_0_23151180_23949\Main.java:50: 错误: 需要<标识符>
                    .getItemAtPosition(arg2);
                                           ^
0_0_23151180_23949\Main.java:52: 错误: 非法的类型开始
            if (str.equals("快速拨号")) {
            ^
0_0_23151180_23949\Main.java:52: 错误: 需要<标识符>
            if (str.equals("快速拨号")) {
                          ^
0_0_23151180_23949\Main.java:52: 错误: 需要';'
            if (str.equals("快速拨号")) {
                           ^
0_0_23151180_23949\Main.java:52: 错误: 非法的类型开始
            if (str.equals("快速拨号")) {
                                 ^
0_0_23151180_23949\Main.java:52: 错误: 需要<标识符>
            if (str.equals("快速拨号")) {
                                  ^
0_0_23151180_23949\Main.java:52: 错误: 需要';'
            if (str.equals("快速拨号")) {
                                   ^
0_0_23151180_23949\Main.java:54: 错误: 方法声明无效; 需要返回类型
                startActivity(intent);
                ^
0_0_23151180_23949\Main.java:54: 错误: 需要<标识符>
                startActivity(intent);
                                    ^
0_0_23151180_23949\Main.java:56: 错误: 非法的类型开始
            else {
            ^
0_0_23151180_23949\Main.java:56: 错误: 需要';'
            else {
                ^
0_0_23151180_23949\Main.java:58: 错误: 需要<标识符>
                inte.setClass(GridView9Activity.this, EActivity.class);
                             ^
0_0_23151180_23949\Main.java:58: 错误: 需要<标识符>
                inte.setClass(GridView9Activity.this, EActivity.class);
                                                    ^
0_0_23151180_23949\Main.java:58: 错误: 需要<标识符>
                inte.setClass(GridView9Activity.this, EActivity.class);
                                                                ^
0_0_23151180_23949\Main.java:59: 错误: 方法声明无效; 需要返回类型
                startActivity(inte);
                ^
0_0_23151180_23949\Main.java:59: 错误: 需要<标识符>
                startActivity(inte);
                                  ^
0_0_23151180_23949\Main.java:62: 错误: 需要class, interface或enum
        }
        ^
0_0_23151180_23949\Main.java:67: 错误: 需要class, interface或enum
    public boolean onCreateOptionsMenu(Menu menu) {
           ^
0_0_23151180_23949\Main.java:70: 错误: 需要class, interface或enum
        menu.add(R.id.about, // 组号                1, // 唯一的ID号                1, // 排序号                "关于"); // 标题
        ^
0_0_23151180_23949\Main.java:74: 错误: 需要class, interface或enum
    }
    ^
0_0_23151180_23949\Main.java:77: 错误: 需要class, interface或enum
    public boolean onOptionsItemSelected(MenuItem item) {
           ^
0_0_23151180_23949\Main.java:84: 错误: 需要class, interface或enum
        case 2:
        ^
0_0_23151180_23949\Main.java:87: 错误: 需要class, interface或enum
                    .setMessage("确定退出吗?").setNegativeButton("否",                            new DialogInterface.OnClickListener() {                                @Override                                public void onClick(DialogInterface dialog,                                        int which) {                                }                            }).setPositiveButton("是",                            new DialogInterface.OnClickListener() {                                @Override                                public void onClick(DialogInterface arg0,                                        int arg1) {                                    System.exit(0);                                }                            }).show();
                                                                                                                                                                                                                   ^
0_0_23151180_23949\Main.java:87: 错误: 需要class, interface或enum
                    .setMessage("确定退出吗?").setNegativeButton("否",                            new DialogInterface.OnClickListener() {                                @Override                                public void onClick(DialogInterface dialog,                                        int which) {                                }                            }).setPositiveButton("是",                            new DialogInterface.OnClickListener() {                                @Override                                public void onClick(DialogInterface arg0,                                        int arg1) {                                    System.exit(0);                                }                            }).show();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
0_0_23151180_23949\Main.java:87: 错误: 需要class, interface或enum
                    .setMessage("确定退出吗?").setNegativeButton("否",                            new DialogInterface.OnClickListener() {                                @Override                                public void onClick(DialogInterface dialog,                                        int which) {                                }                            }).setPositiveButton("是",                            new DialogInterface.OnClickListener() {                                @Override                                public void onClick(DialogInterface arg0,                                        int arg1) {                                    System.exit(0);                                }                            }).show();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
0_0_23151180_23949\Main.java:88: 错误: 需要class, interface或enum
            break;
            ^
0_0_23151180_23949\Main.java:90: 错误: 需要class, interface或enum
        default:
               ^
0_0_23151180_23949\Main.java:92: 错误: 需要class, interface或enum
        }
        ^
0_0_23151180_23949\Main.java:95: 错误: 需要class, interface或enum
    }
    ^
0_0_23151180_23949\Main.java:98: 错误: 需要class, interface或enum
    private static Boolean hasTask = false;
                   ^
0_0_23151180_23949\Main.java:99: 错误: 需要class, interface或enum
    Timer tExit = new Timer();
    ^
0_0_23151180_23949\Main.java:100: 错误: 需要class, interface或enum
    TimerTask task = new TimerTask() {
    ^
0_0_23151180_23949\Main.java:103: 错误: 需要class, interface或enum
        public void run() {
               ^
0_0_23151180_23949\Main.java:105: 错误: 需要class, interface或enum
            hasTask = true;
            ^
0_0_23151180_23949\Main.java:106: 错误: 需要class, interface或enum
        }
        ^
0_0_23151180_23949\Main.java:110: 错误: 需要class, interface或enum
    public boolean onKeyDown(int keyCode, KeyEvent event) {
           ^
0_0_23151180_23949\Main.java:116: 错误: 需要class, interface或enum
                Toast.makeText(this, "再按一次后退键退出应用程序", Toast.LENGTH_SHORT)
                ^
0_0_23151180_23949\Main.java:118: 错误: 需要class, interface或enum
                if (!hasTask) {
                ^
0_0_23151180_23949\Main.java:120: 错误: 需要class, interface或enum
                }
                ^
0_0_23151180_23949\Main.java:125: 错误: 需要class, interface或enum
            }
            ^
0_0_23151180_23949\Main.java:129: 错误: 需要class, interface或enum
    }
    ^
48 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 07:20:32, Gzip enabled