可能有不足,但是却可以实现效果。 一、效果图 主要实现可以在手机本地存储中选择文件,获取文件的本地存储路径字符串。 二、AndriodStudio文件及代码 代码文件又有三个-画红圈的部分 1、MainActivity public class MainActivity extends AppCompatActivity { TextView filePathtextView; Button button; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); filePathtextView = findViewById(R.id.fileTextView); button = findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @Override...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with filePathtext
Contact filePathtext, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack