-1

I'm creating an app that want to get some URL at the time of execution on the app layout folder. How can I get the URL on the application run to the program?

PrakashG
  • 1,642
  • 5
  • 20
  • 30
Ajay K S
  • 350
  • 1
  • 5
  • 16

1 Answers1

0

I would generally not recommend to do anything inside the layout folder, since this doesn't handle screen sizes, android versions etc. But here you go:

Uri otherPath = Uri.parse("android.resource://my.package.name/layout/[your resource]");
Log.d(TAG, otherPath.toString());

change my.package.name to your package name and [your resource] with your resource name

src: How to get Uri of res folder?

Software Person
  • 2,526
  • 13
  • 18