2

I was making ImageView activity and when I try to run it through AVD, it stopped.

There are no typing errors.

How can I fix it? I need your help.

Below is my code

package com.android.imgview;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;
}
}
4

1 回答 1

0

重新启动模拟器。我有时也面临这样的问题,但重新启动模拟器可以解决这个问题。

于 2012-10-13T07:12:29.593 回答