Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将文件类型与我的 android 应用程序相关联。当我打开这样的文件时,它会打开我的活动,到目前为止一切都很好。但是我怎么知道哪个特定文件打开了我的活动?我找不到任何信息:/我会感谢每一个答案。
但是我怎么知道哪个特定文件打开了我的活动?
调用getIntent().getData()以获取Uri用作启动活动的一部分的内容。
getIntent().getData()
Uri