Android Open Source - MobileCrossPlatformTools Current Weather






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;
//  w  w  w  .ja  v  a  2 s .  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 CurrentWeather implements Serializable{
  private static final long serialVersionUID = 2326668849357284612L;
  public Date date;
  public int cloudCover;
  public int pressure;
  public int temp;
  public int humidity;
  public String iconUrl;
  public transient Bitmap icon;
  public byte[] iconBytes;
  public int windspeed;
  public String condition;
  public int tempMin;
  public int tempMax;

  public CurrentWeather(Date date, int cloudCover, int pressure,
      int temp, int humidity, String iconUrl, byte[] iconBytes, int windspeed,
      String condition, int tempMin, int tempMax) {
    this.date = date;
    this.cloudCover = cloudCover;
    this.pressure = pressure;
    this.temp = temp;
    this.humidity = humidity;
    this.iconUrl = iconUrl;
    this.iconBytes = iconBytes;
    this.icon = BitmapFactory.decodeByteArray(iconBytes, 0, iconBytes.length);
    this.windspeed = windspeed;
    this.condition = condition;
    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