Android Open Source - SSPIA Information Tab






From Project

Back to project page SSPIA.

License

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.main;
// ww w .j  av a  2 s .c  o  m
import com.fiec.ssapp.R;
import com.fiec.sspia.buff.PlanetSource;
import com.fiec.sspia.buff.Tag;
import com.fiec.sspia.db.Planets;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

public class InformationTab extends Fragment {
  public FragmentActivity act;
  public String[] dats;
  private ListView planetinfo;
  public String pname;
  public int position;
  
  private Planets planet;
  private String[] tags;
  
  public InformationTab(){
  }
  
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onActivityCreated(savedInstanceState);
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle saved) {
    View view = inflater.inflate(R.layout.fragment_infotab, container, false);
    Log.w(Tag._TAG,"entra aqui");
    this.planetinfo = (ListView)view.findViewById(R.id.main_planetinfo);
    
    /*if(saved!=null){
      planet = saved.getParcelable("planetkey");
      position = saved.getInt("poskey");
      tags = saved.getStringArray("tagskey");
    }
    else{
      setParams();
    }*/
    setParams();
    setinfo();
    return view;
  }
  
  public void setParams(){
    Log.w(Tag._TAG,"entra qui");
    act = TabsPlanets.act;
    planet = TabsPlanets.planet;
    position = TabsPlanets.pos;
    tags = TabsPlanets.tags;
    Log.w(Tag._TAG,"entra qui");
  }
  
  public void setinfo(){
    act.getActionBar().setTitle(this.planet.getName());
    new PlanetSource(act, planetinfo, planet, tags);
    switch(position){
    case 3:
      this.dats = act.getResources().getStringArray(R.array.fromcuriositi);
      new PlanetSource(act, dats, planet); break;
    }
  }
  
  /*@Override
  public void onSaveInstanceState(Bundle out) {
    out.putParcelable("planetkey", planet);
    out.putInt("poskey",position);
    out.putStringArray("tagskey", tags);
    super.onSaveInstanceState(out);
    Log.w(Tag._TAG,"entra a guardar estado");
  }*/
  
  @Override
  public void onDestroy() {
    super.onDestroy();
  }
}




Java Source Code List

com.fiec.sspia.buff.DefaultNoti.java
com.fiec.sspia.buff.PlanetClass.java
com.fiec.sspia.buff.PlanetSource.java
com.fiec.sspia.buff.Tag.java
com.fiec.sspia.db.Celestial.java
com.fiec.sspia.db.DBHelper.java
com.fiec.sspia.db.DbAuxClass.java
com.fiec.sspia.db.Planets.java
com.fiec.sspia.db.Satellites.java
com.fiec.sspia.db.SolarDb.java
com.fiec.sspia.main.InformationTab.java
com.fiec.sspia.main.SatellitesClass.java
com.fiec.sspia.main.SolarActivity.java
com.fiec.sspia.main.TabsPlanets.java
com.fiec.sspia.mclass.MainClass.java
com.fiec.sspia.mclass.MainFragment.java
com.fiec.sspia.mclass.SSNotific.java
com.fiec.sspia.mclass.SetttingsClass.java
com.fiec.sspia.mclass.SplashClass.java
com.fiec.sspia.system.BroadcastRec.java
com.fiec.sspia.system.SspiaService.java
com.fiec.sspia.system.StartingNotis.java
com.fiec.sspia.util.AbstrCd.java
com.fiec.sspia.util.CdClass.java
com.fiec.sspia.util.CustomInfoAdapter.java
com.fiec.sspia.util.CustomMenuAdapter.java
com.fiec.sspia.util.FillMenuAdapter.java
com.fiec.sspia.util.JSONParser.java
com.fiec.sspia.util.MainGridAdapterClass.java
com.fiec.sspia.util.MenuSettings.java
com.fiec.sspia.util.SSInterfaceNoti.java
com.fiec.sspia.util.SatelliteGridAdapterClass.java
com.fiec.sspia.util.TempClass.java
com.fiec.sspia.util.TransitionClass.java