0

I am running shell command where i want to use some images which I have put in res/drawable folder. To run this in shell, i need to pass absolute path. So is there anyway to get the absolute path for this?

I checked Get absolute path of android drawable image

but this is also not working.

Community
  • 1
  • 1
Vikash
  • 213
  • 5
  • 15

1 Answers1

0

its not possible to get path of drawable image directly , but you can get this by storing it in internal memory or sdcard of device. For this check out the link here

Why Not possible directly

When you compile your app to an *.apk file, all resources (ok, except from them in /raw) are compiled as well. You can only acces them, using their R. id.

Jayanth
  • 5,954
  • 3
  • 21
  • 38