# Image picker rotating causes app to crash on android

**URL:** <https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387>\
**Category:** Ionic Native\
**Created:** [May 23, 2017, 8:30am UTC](https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387 "2017-05-23T08:30:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Boagey](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@Tom\_Boagey](https://forum.ionicframework.com/u/Tom_Boagey)\
**Post date:** [May 23, 2017, 8:30am UTC](https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387/1 "2017-05-23T08:30:29Z")

</div>

Hi,  
I recently started a new ionic app and added the image picker plugin, I have a simple button on the page which calls:

```auto
  pickImage() {
    this.imagePicker.getPictures(null)
  }

```

When picking the images on android if you rotate to a landscape view then press ok the app orientates to a portrait view, the device then displays a while dialogue box stating [App name] has stopped and asks if I would like to open the app again. I can see no logs in my console.

**Ionic Info**

```auto
Global packages:
    @ionic/cli-utils : 1.1.2
    Cordova CLI : 6.5.0
    Ionic CLI : 3.1.2
Local packages:
    @ionic/app-scripts : 1.3.7
    @ionic/cli-plugin-cordova : 1.1.2
    @ionic/cli-plugin-ionic-angular : 1.1.2
    Ionic Framework : ionic-angular 3.2.1
System:
    Node : v6.9.1
    OS : Windows 10
    Xcode : not installed
    ios-deploy : not installed
    ios-sim : not installed

```

**Plugins**

```auto
com.synconset.imagepicker 2.1.7 "ImagePicker"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.2 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

```

---

<div class="post-metadata">

**Author:** ![cherylhanlon](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@cherylhanlon](https://forum.ionicframework.com/u/cherylhanlon)\
**Post date:** [May 23, 2017, 2:14pm UTC](https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387/2 "2017-05-23T14:14:07Z")

</div>

I have also had the same issue!

---

<div class="post-metadata">

**Author:** ![jinglelin](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jinglelin](https://forum.ionicframework.com/u/jinglelin)\
**Post date:** [June 13, 2017, 5:57am UTC](https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387/3 "2017-06-13T05:57:27Z")

</div>

Have the same issue, too…☹  
The device is samsung galaxy tab s2.

---

<div class="post-metadata">

**Author:** ![huyle](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/huyle/32/92002_2.png) [@huyle](https://forum.ionicframework.com/u/huyle)\
**Post date:** [October 30, 2017, 9:48am UTC](https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387/4 "2017-10-30T09:48:57Z")

</div>

I am facing this issue. ☹

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:01pm UTC](https://forum.ionicframework.com/t/image-picker-rotating-causes-app-to-crash-on-android/91387/6 "2021-07-19T21:01:14Z")

</div>

Closed on July 19, 2021, 9:01pm UTC


