i cant see the onactivityresult in android studio : <p>heres my code i cant see the activity result when i type "on" please help
there is no pop up on onActivityResult.</p>

<p>heres my code i cant see the activity result when i type "on" please help
there is no pop up on onActivityResult.</p>

<p>heres my code i cant see the activity result when i type "on" please help
there is no pop up on onActivityResult.</p>

<pre><code>package com.ssss.myapplication;

import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import java.io.File;

import static android.R.attr.data;

public class MainActivity extends AppCompatActivity {

    Button button;
    ImageView imageView;
    static final int CAM_REQUEST = 1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        button = (Button) findViewById(R.id.button);
        imageView = (ImageView) findViewById(R.id.image_view);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent camera_intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
                File file = getFile();
                camera_intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
                startActivityForResult(camera_intent,CAM_REQUEST);

            }
        });

    }

    private File getFile() {
        File folder = new File("sdcard/camera_app");

        if (!folder.exists()) {
            folder.mkdir();

        }
        File image_file = new File(folder, "hiapp_image.jpg");

        return image_file;



    }
}
</code></pre>
