Android Open Source - MobileCrossPlatformTools Weather Day






From Project

Back to project page MobileCrossPlatformTools.

License

The source code is released under:

GNU General Public License

If you think the Android project MobileCrossPlatformTools listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package es.tid.weather.common;
//ww  w .ja  v  a2s.  c  o m
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.Date;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class WeatherDay implements Serializable{
  private static final long serialVersionUID = -1092121797431998037L;
  public Date date;
  public String condition;
  public String iconUrl;
  public transient Bitmap icon;
  public byte[] iconBytes;
  public int tempMin;
  public int tempMax;

  public WeatherDay(Date date, String condition, String iconUrl, byte[] iconBytes, int tempMin, int tempMax) {
    this.date = date;
    this.condition = condition;
    this.iconUrl = iconUrl;
    this.iconBytes = iconBytes;
    this.icon = BitmapFactory.decodeByteArray(iconBytes, 0, iconBytes.length);
    this.tempMin = tempMin;
    this.tempMax = tempMax;
  }
  
  private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    icon = BitmapFactory.decodeByteArray(iconBytes, 0, iconBytes.length);
  }

}




Java Source Code List

es.tid.weather.common.CurrentWeather.java
es.tid.weather.common.Definitions.java
es.tid.weather.common.WeatherApplication.java
es.tid.weather.common.WeatherDay.java
es.tid.weather.common.Weather.java
es.tid.weather.http.ConnectionManager.java
es.tid.weather.http.HttpConnection.java
es.tid.weather.http.HttpResult.java
es.tid.weather.main.GpsListener.java
es.tid.weather.main.WeatherActivity.java
es.tid.weather.opengl.CubeRenderer.java
es.tid.weather.opengl.Cube.java
es.tid.weather.opengl.TranslucentGLSurfaceViewActivity.java
es.tid.weather.splash.SplashActivity.java