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.
我有一个Activity以附加功能开头的应用程序。我想看看 Intent 里面有什么额外的东西。两个应用程序(调用和调用)都不是我编写的。
Activity
先发送数据:
Intent i = new Intent(YourActivity.class); i.putExtra("parameter", yourData) startActivity(i);
要获取数据:
Intent i = getIntent(); String data = i.getStringExtra("parameter"); //you can do for integer, etc