fork download
  1. private void open_photo(){
  2. Intent intent = new Intent();
  3. intent.setType("image/*");
  4. intent.setAction(Intent.ACTION_GET_CONTENT);
  5. startActivityForResult(intent, OPEN_PHOTO);
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
    private void open_photo(){
            ^
Main.java:3: error: class, interface, or enum expected
		intent.setType("image/*");
		^
Main.java:4: error: class, interface, or enum expected
		intent.setAction(Intent.ACTION_GET_CONTENT); 
		^
Main.java:5: error: class, interface, or enum expected
		startActivityForResult(intent, OPEN_PHOTO);
		^
Main.java:6: error: class, interface, or enum expected
    }
    ^
5 errors
stdout
Standard output is empty