I am facing some kind of problem and I can't figure out why. When I call the function "mapFound" by clicking a button, something bad happens. But I think it looks like fine.

```
package com.fva_001.flashvsarrow.com.fva_001;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MapFound extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.find_map);
}
// when I click this button, error happens
public void mapFound(View view){
    MapFoundDialog dialog = new MapFoundDialog(getApplicationContext());
    dialog.show();
}
}

```

And here is my MapFoundDialog class

```
package com.fva_001.flashvsarrow.com.fva_001;

import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.*;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.Button;

public class MapFoundDialog extends Dialog {

public Context c;
public Button yes, no;

public MapFoundDialog(Context a) {
    super(a);
    // TODO Auto-generated constructor stub
    this.c = a;
}

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
    setContentView(R.layout.dialog_map_found);

// Here I want to open a new Activity, I think it has some problem too
    no = (Button) findViewById(R.id.btn_map_open);
    no.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            new ButtonClick(getContext(), v);
            Intent entireMapIntent = new Intent(c, EntireMap.class);
            c.startActivity(entireMapIntent);
        }
    });
}
}

```