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?
Asked
Active
Viewed 111 times
1 Answers
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

Software Person
- 2,526
- 13
- 18