1. Check out our app, Forums for Android! Download and leave feedback here!

How to know which button is click in previous Intent

Discussion in 'Application Development' started by ranjitpatel, Dec 28, 2009.

  1. ranjitpatel

    ranjitpatel Member
    Thread Starter
    5

    Dec 21, 2009
    8
    0
    5
    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
    46

    Nov 15, 2009
    103
    3
    46
    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...