Is there any way to put extras to Intent from preferences ?

Posted by Alex Volovoy on Stack Overflow See other posts from Stack Overflow or by Alex Volovoy
Published on 2010-01-17T21:06:03Z Indexed on 2010/06/11 6:42 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

Hi i'm launching activity from preferences screen. Activity is shared among three preferences. I wonder if i can set extras for this activity in xml

<Preference
    android:key="action_1"
    android:title="@string/action_1_title"
>
    <intent
        android:action="com.package.SHAREDACTION"
    >

    </intent>
</Preference>

i wonder if i can do something like

<extras>
     <item
      android:name=""
      android:value=""/>
</extras>

All i need to do to pass an integer really. I can different actions and check action instead of extras.

© Stack Overflow or respective owner

Related posts about android

Related posts about intent