How to know which button is click in previous Intent


Last Updated:

  1. ranjitpatel

    ranjitpatel Member This Topic's Starter

    Joined:
    Dec 21, 2009
    Messages:
    8
    Likes Received:
    0
    Hi All
    In my App in menu view a 6 image button are there,when first button is click one Intent is working.when second is click second is working.but i want to know which button is click in next class where intent is working and use that for some condition.please help me.
     

    Advertisement
  2. KeithG

    KeithG Well-Known Member

    Joined:
    Nov 15, 2009
    Messages:
    103
    Likes Received:
    3
    restatement:

    In my application, I have 6 independent view objects with on click handlers that each launch another activity via an intent (implicit or explicit). How can I know which view object initiated this intent?

    Would that be a fair translation of your question?

    If so, you can use putExtra() to bind data to the Intent call, which the receiving Activity can then unbundle from the call.
     

Share This Page

Loading...