How can I get relative path of the folders in my android project?

前端 未结 8 1661
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 19:16

How can I get the relative path of the folders in my project using code?

I\'ve created a new folder in my project and I want its relative path so no matter where the

8条回答
  •  抹茶落季
    2020-12-08 19:54

    With System.getProperty("user.dir") you get the "Base of non-absolute paths" look at

    Java Library Description

提交回复
热议问题