package com.zigapk.weather;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class DetailsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_details);
    }
}

@@ -41,292 +41,3270 @@
 oid.
-support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0A%0Apublic class DetailsActivity extends AppCompatActivity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_details);
+content.Intent;%0Aimport android.os.Bundle;%0Aimport android.os.Handler;%0Aimport android.os.Looper;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.view.View;%0Aimport android.widget.ProgressBar;%0Aimport android.widget.TextView;%0A%0Apublic class DetailsActivity extends AppCompatActivity %7B%0A%0A    private static TextView cityNameTv;%0A    private static TextView temperatureTv;%0A    private static TextView humidityTv;%0A    private static TextView descriptionTv;%0A    private static ProgressBar progressBar;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_details);%0A%0A        cityNameTv = (TextView) findViewById(R.id.city_name);%0A        temperatureTv = (TextView) findViewById(R.id.temperature);%0A        humidityTv = (TextView) findViewById(R.id.humidity);%0A        descriptionTv = (TextView) findViewById(R.id.description);%0A        progressBar = (ProgressBar) findViewById(R.id.progressBar);%0A%0A        Intent intent = getIntent();%0A        final City city = (City) intent.getSerializableExtra(%22city%22);%0A        if (city.get_performed) %7B%0A            cityNameTv.setText(city.user_input_name);%0A            temperatureTv.setText(city.main.formatedTemp());%0A            humidityTv.setText(Integer.toString(city.main.humidity));%0A            descriptionTv.setText(city.weather%5B0%5D.description);%0A        %7Delse %7B%0A            progressBar.setVisibility(View.VISIBLE);%0A            cityNameTv.setText(city.user_input_name);%0A%0A            new Thread(new Runnable() %7B%0A                @Override%0A                public void run() %7B%0A                    try %7B%0A                        final City tempCity = city.get();%0A                        new Handler(Looper.getMainLooper()).post(new Runnable() %7B%0A                            @Override%0A                            public void run() %7B%0A                                cityNameTv.setText(tempCity.name);%0A                                temperatureTv.setText(tempCity.main.formatedTemp());%0A                                humidityTv.setText(Integer.toString(tempCity.main.humidity));%0A                                descriptionTv.setText(tempCity.weather%5B0%5D.description);%0A                                progressBar.setVisibility(View.GONE);%0A                            %7D%0A                        %7D);%0A                    %7D catch (Exception e) %7B%0A                        new Handler(Looper.getMainLooper()).post(new Runnable() %7B%0A                            @Override%0A                            public void run() %7B%0A                                cityNameTv.setText(MainActivity.context.getResources().getString(%0A                                        R.string.no_data_for, city.user_input_name));%0A                                cityNameTv.setTextColor(MainActivity.context.getResources().%0A                                        getColor(R.color.red));%0A                                temperatureTv.setText(%22/%22);%0A                                humidityTv.setText(%22/%22);%0A                                descriptionTv.setText(%22/%22);%0A                                progressBar.setVisibility(View.GONE);%0A                            %7D%0A                        %7D);%0A                    %7D%0A%0A                %7D%0A            %7D).start();%0A        %7D
 %0A   

add DetailsActivity functionality