I'm working on camera application and need to store picture in memory. I'm using android studio. When i connect my device with android studio through usb cable, my sd card not show in my phone, gallery images are not showing there. And unable to create file there. So I run application from android studio then set it on charge only mode and then sd card showing in my mobile and I'm able to create file but due to some error my application crashed. Problem is that I can't see the logs because I set it on charge only mode.
If I not set on charge only mode I'm not able to create file and access sd card. If I set on charge only mode I'm not able to see logs in android studio.
Can you please let me know what I do. If one the problem is fixed it's fine. Show sd card on usb debugging mode or show logs in charge mode.
Is it possible if yes then how ?
Update
I'm using external memory it automatically use sd card.
My major problem is to get logs. is there any way I can save logs and get these when connecting again with usb debugging. or something else