Android Open Source - SSPIA Planets

From Project

Back to project page SSPIA.


The source code is released under:

MIT License

If you think the Android project SSPIA 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 com.fiec.sspia.db;
// ww  w .ja va 2 s .  c  om
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;

public class Planets extends Celestial implements Parcelable{
  public Planets(String n, String[] inf, int pid, int sat, int imgres) {
    super(n, inf, pid, sat, imgres);

  public Planets(Parcel in) {

  public String getName() {
    return NAME;

  public String[] getinf() {
    return INFO;

  public int getPid() {
    return PID;

  public int getImgres() {
    return IMGREG;

  public SolarDb getDb() {
    return DB;

  public int describeContents() {
    // TODO Auto-generated method stub
    return 0;

  public void writeToParcel(Parcel dest, int flags) {
    Bundle bund = new Bundle();
    bund.putString("namekey", getName());
    bund.putStringArray("infokey", getinf());
    bund.putInt("pidkey", getPid());
    bund.putInt("imgkey", getImgres());
    bund.putInt("satkey", getSat());
  public static final Parcelable.Creator<Planets> CREATOR = 
      new Parcelable.Creator<Planets>(){
        public Planets createFromParcel(Parcel in){
          return new Planets(in);
        public Planets[] newArray(int size){
          return new Planets[size];

Java Source Code List