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

android studio code statement syntax. whats wrong?

Discussion in 'Android Development' started by lovingdog, Jul 13, 2020.

  1. lovingdog

    lovingdog Lurker
    Thread Starter

    what is wrong with this code? i am a beginner.
    code:
    Toast.makeText( context: MainActivity.this, text:"hey there!",toast.LENGTH_SHORT).show();
     


    #1 lovingdog, Jul 13, 2020
    Last edited: Jul 13, 2020

    1. Download the Forums for Android™ app!


      Download

       
  2. mb4mobile

    mb4mobile Lurker

    Hi,
    We need more details. Where is this code placed?
     
Loading...
Similar Threads - android studio code
  1. neha goenka
    Replies:
    0
    Views:
    92
  2. GiuseppeSM
    Replies:
    3
    Views:
    327
  3. Brian Roach
    Replies:
    0
    Views:
    166
  4. JHolt
    Replies:
    0
    Views:
    1,058
  5. curvenger
    Replies:
    3
    Views:
    1,377
  6. Tony Gabriel
    Replies:
    1
    Views:
    1,252
  7. Jenny Lee
    Replies:
    1
    Views:
    1,394
  8. Gleis
    Replies:
    1
    Views:
    1,649
  9. jstuardo
    Replies:
    0
    Views:
    698
  10. Rascalsailor
    Replies:
    0
    Views:
    1,068

Share This Page

Loading...