private void open_photo(){
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent, OPEN_PHOTO);
}
ICAgIHByaXZhdGUgdm9pZCBvcGVuX3Bob3RvKCl7CiAgICAJSW50ZW50IGludGVudCA9IG5ldyBJbnRlbnQoKTsKCQlpbnRlbnQuc2V0VHlwZSgiaW1hZ2UvKiIpOwoJCWludGVudC5zZXRBY3Rpb24oSW50ZW50LkFDVElPTl9HRVRfQ09OVEVOVCk7IAoJCXN0YXJ0QWN0aXZpdHlGb3JSZXN1bHQoaW50ZW50LCBPUEVOX1BIT1RPKTsKICAgIH0=
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