Android Open Source - SSPIA Solar Activity






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;
//  w w  w.  j  av  a 2  s.  com
import com.fiec.ssapp.R;
import com.fiec.sspia.db.SolarDb;
import com.fiec.sspia.mclass.MainClass;
import com.fiec.sspia.mclass.SetttingsClass;
import com.fiec.sspia.mclass.SplashClass;
import com.fiec.sspia.system.IRemoteService;
import com.fiec.sspia.util.MenuSettings;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.*;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.*;
import android.widget.ProgressBar;

public class SolarActivity extends MainClass{
  
  private String _isChk = "false";
  private SolarDb db;
  public IRemoteService serv;
  private static int _POS = 0;
  
  
  
  /*@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //setContentView(R.layout.prototipe);
    setContentView(R.layout.activity_solar);
      
    new MenuSettings(this).show();
    if(firstini() == true){
      getActionBar().hide();
      Fragment splash = new SplashClass1(this);
      FragmentManager fragmentManager = getSupportFragmentManager();
        fragmentManager.beginTransaction().replace(R.id.content_frame, splash).commit();        
    }
    else{  
      //checkUpdate(this);
      clase = new SSClass(this);
      SSClass.drawerToggle.syncState();
      clase.selectItem(_POS);
      super.start();
    }
  }
  
  @Override
  protected void onResume() {
    super.onResume();    
  }
  
  @Override
  protected void onPause() {
    super.onPause();    
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.solar, menu);

        return true;
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        SSClass.drawerToggle.onConfigurationChanged(newConfig);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
      switch(item.getItemId()){
      case R.id.action_settings: new SetttingsClass(this).isNoty(_isChk); break;
      case R.id.about: new SetttingsClass(this).isAbout();
      }
        if (SSClass.drawerToggle.onOptionsItemSelected(item)) { 
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

  @Override
  public boolean onPrepareOptionsMenu(Menu menu) {
    return super.onPrepareOptionsMenu(menu);
  }

  private boolean firstini() {
    db = new SolarDb(this);
    db.open();
    String aux = db.getPlanet();
    if (aux == null) {
      db.close();
      return true;
    }
    db.close();
    return false;
  }
  
  @Override
  protected void onStop() {
    super.onStop();
    this.finish();
  }
  
    @Override
    public void onBackPressed() {
      super.onBackPressed();
      //this.finish();
    }
    
    @Override
    protected void onDestroy() {
      super.onDestroy();
      this.finish();
      clase = null;
    }
}

class SplashClass1 extends Fragment{
  
  private ProgressBar progress;
  private View relative;
  private Activity context;
  
  public SplashClass1(Activity context) {
    this.context = context;
  }      
    
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
      relative = inflater.inflate(R.layout.loadingactivity, null);
      progress = (ProgressBar)relative.findViewById(R.id.loading_progress);
      new SplashClass(context, progress).execute();
      return relative;
  }*/
}




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