Android Open Source - GeoDeals-android Main Activity






From Project

Back to project page GeoDeals-android.

License

The source code is released under:

GNU General Public License

If you think the Android project GeoDeals-android 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

/**
 * GeoMoby Pty Ltd//  w  w  w . j  av a2s  . c o  m
 * http://www.geomoby.com
 * Copyright GeoMoby Pty Ltd 2013
 * 
 * @author Chris Baudia
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.geomoby.geodeals;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

@SuppressLint("NewApi")
public class MainActivity extends Activity {

  public final static String TAG = "** Main Activity **";
  private static final String PREF = "GeoMobyPrefs";
  private static final int RESULT_SETTINGS = 1;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Intent i = new Intent(this, DemoService.class);
    startActivityForResult(i, RESULT_SETTINGS);    

    onDestroy();
  }

  @Override
  protected void onDestroy() {
    super.onDestroy();
    finish();
  }

  @Override
  public void onBackPressed() {
    moveTaskToBack(true);
    onDestroy();
  }


}




Java Source Code List

com.geomoby.geodeals.DemoService.java
com.geomoby.geodeals.MainActivity.java
com.geomoby.geodeals.notification.CustomNotification.java
com.geomoby.geodeals.receiver.ServiceStarter.java
com.geomoby.geodeals.splash.SplashActivity.java