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

button to activity in activity

Discussion in 'Android Development' started by Rob Sleurs, Jun 4, 2020.

  1. Rob Sleurs

    Rob Sleurs Lurker
    Thread Starter

    Hello,
    Situation:

    i 've a view medication in an app, i want to make 2 buttons in it calculation and save. This buttons should execute some code when they 're pressed.
    Question:

    Where and how should i implement this codes in the main-activity or in the medication activity?

    thx, Rob
     


    boulnouarmostafa2 likes this.
  2. wseng92

    wseng92 Android Enthusiast

    Where you want to place the two buttons ? In medication view?
     
  3. Rob Sleurs

    Rob Sleurs Lurker
    Thread Starter

    in the bottom just in the view
     
  4. wseng92

    wseng92 Android Enthusiast

    MainActivity normally is the inital page when your app is started. Are the two button need to display in the first page?
     
Loading...
Similar Threads - button activity activity
  1. Georgiaboy9009
    Replies:
    9
    Views:
    178
  2. cbuchananbuchanan
    Replies:
    0
    Views:
    225
  3. amazijn
    Replies:
    11
    Views:
    449
  4. jkgraves
    Replies:
    4
    Views:
    375
  5. Samsung
    Replies:
    1
    Views:
    207
  6. BushraEisa
    Replies:
    0
    Views:
    389
  7. vsLudwig
    Replies:
    4
    Views:
    368
  8. IvanAFG
    Replies:
    2
    Views:
    303
  9. yftach srur
    Replies:
    2
    Views:
    515
  10. nagamothu
    Replies:
    8
    Views:
    869

Share This Page

Loading...