How do I get result from activity starter?

i was trying to use this action"android.intent.action.HEADSET_PLUG" but how to get its value please help

and whats is the use of result name block

Please show your relevant blocks

I believe you need more than just running that intent (e.g. extension code) in order to get output

so how to use after acivity block to get output

whats does that mean

read this topic, it may provide you with some answers:

i know theres a headset extension but i was just learning to get the the result of many actions and i didnt find examples any where

Because you need extension code in order to do it

can you provide this extension

Follow the links in the topic I provided