开发者

ACTION_MAIN filter , expecting to receive data

开发者 https://www.devze.com 2023-01-30 11:08 出处:网络
I\'ve been reading the documentation about Intents and Intent-Filters, and I was wondering if there is not such a thing as a predefined action to launch an activity expecting some data, for example, a

I've been reading the documentation about Intents and Intent-Filters, and I was wondering if there is not such a thing as a predefined action to launch an activity expecting some data, for example, an IP address to connect.

I understand ACTION_MAIN is to offer an entry point to the Application, so not to expect data makes se开发者_如何学Pythonnse. But I don't think the case I'm talking about it's that strange.

Maybe I'm thinking too much and I just need a custom ACTION, but I wanted to find the proper way.

Any suggestion is welcome.

Manuel.


I was wondering if there is not such a thing as a predefined action to launch an activity expecting some data, for example, an IP address to connect.

Many Intent actions expect some data. There is no generic "Hi! I want to send you some data!" Intent. You pick (or create) an Intent action based on the operation you want done on that data.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号