I am using this code to pick image from gallery it was working but now it has stopped working
(items[item].equals("Change from Library")) {
Intent i = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(i, SELECT_FILE);
onActivity Result
Uri selectedImage = data.getData();
String url = "";
String pictureDirectoryPath= Functions.getRealPathFromURI(getActivity(),selectedImage());
Here is my Android monitor log when the button to pick image gallery is clicked
58.819 8995-8995/com.example.sharique.loginapp W/EGL_genymotion: eglSurfaceAttrib not implemented
05-01 08:39:00.375 557-683/system_process W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@52921524 attribute=null, token = android.os.BinderProxy@5296999c