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

passing variables

Discussion in 'Android Development' started by Bud987, Nov 11, 2014.

  1. Bud987

    Bud987 Lurker
    Thread Starter

    Hi all.

    Trying to write my first app. Weather app that uses internal S4 sensors to sense temp, humidity, and pressure and then calculate dew point etc. Ithink I've successfully accessed the sensors, but now I'm trying to do some simple arithmetic and pull variables from multiple java files. I have "public double humidity" declared in a HumActivity.java file. I'm trying to reference it in my MainActivity.java file but it says "humidity cannot be resolved into a variable" any ideas?

    any help would be greatly appreciated :)
     


Loading...
Similar Threads - passing variables
  1. RATKEN
    Replies:
    0
    Views:
    130
  2. samantasiddhartha65
    Replies:
    1
    Views:
    464
  3. sariDon2
    Replies:
    0
    Views:
    459
  4. Rob
    Replies:
    0
    Views:
    494
  5. App Update
    Replies:
    0
    Views:
    218
  6. Guitarist
    Replies:
    1
    Views:
    880
  7. Lsepolis123
    Replies:
    0
    Views:
    347
  8. Sound22Card
    Replies:
    9
    Views:
    734
  9. PeakShale
    Replies:
    0
    Views:
    297
  10. Chris zepeda
    Replies:
    5
    Views:
    358

Share This Page

Loading...