• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps passing variables

Bud987

Lurker
Nov 11, 2014
1
0
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 :)
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones