1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to know which button is click in previous Intent

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

  1. ranjitpatel

    ranjitpatel Lurker
    Thread Starter

    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.
     


  2. KeithG

    KeithG Well-Known Member

    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.
     
Loading...
Similar Threads - button click previous
  1. BushraEisa
    Replies:
    0
    Views:
    254
  2. vsLudwig
    Replies:
    4
    Views:
    225
  3. IvanAFG
    Replies:
    2
    Views:
    240
  4. neerav512
    Replies:
    0
    Views:
    138
  5. Rob Sleurs
    Replies:
    3
    Views:
    689
  6. YellowYoshi
    Replies:
    5
    Views:
    267
  7. xander119
    Replies:
    0
    Views:
    322
  8. Dasheno
    Replies:
    2
    Views:
    698
  9. e_voloshchak
    Replies:
    3
    Views:
    790
  10. Adam123
    Replies:
    3
    Views:
    643

Share This Page

Loading...