Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialManas Vijaywargiya
12,598 PointsTemperature is not showing on the main Activity and after clicking the 7 Day Button - nothing showing on the next page
After adding getHourlyForecast() & getDailyForeccast(), Temperature is not showing again...... And The button is working but the line - "There is no data to show" is not displaying but after clicking just main Activity got shifted to the white page. Ben Jakuben
Manas Vijaywargiya
12,598 PointsManas Vijaywargiya
12,598 PointsMy codes of Main Activity -
package com.example.manas21094.stormy.ui; import android.content.Context; import android.content.Intent; import android.graphics.drawable.Drawable; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast;
import com.example.manas21094.stormy.R; import com.example.manas21094.stormy.Weather.Current; import com.example.manas21094.stormy.Weather.Day; import com.example.manas21094.stormy.Weather.Forecast; import com.example.manas21094.stormy.Weather.Hour;
import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;
import java.io.IOException;
import butterknife.ButterKnife; import butterknife.InjectView; import butterknife.OnClick; import okhttp3.Call; import okhttp3.Callback; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response;
import static android.R.attr.onClick;
public class MainActivity extends AppCompatActivity { private static final String TAG = MainActivity.class.getSimpleName();
}