Android Open Source - GeoTagger Geo Tagger






From Project

Back to project page GeoTagger.

License

The source code is released under:

GNU General Public License

If you think the Android project GeoTagger 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 horizon.geotagger;
//w ww  . ja  va2  s  .  com
import horizon.android.logging.Logger;
import horizon.perscon.IPersconService;
import android.app.Application;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.res.Resources;
import android.os.IBinder;
import android.os.RemoteException;

public class GeoTagger
extends Application 
{  
  private static final Logger logger = Logger.getLogger(GeoTagger.class);
  
  @Override
  public void onCreate()
  {
    super.onCreate();
    startService(new Intent(getApplicationContext(), AlertService.class));
    Intent i = new Intent(IPersconService.class.getName());
    startService(i);
    bindService(i, new ServiceConnection()
    {  
      @Override
      public void onServiceDisconnected(ComponentName name)
      {
        logger.debug("Application registered and service unbound");
      }
      
      @Override
      public void onServiceConnected(ComponentName name, IBinder service)
      {
        logger.debug("Registering application");
        Resources r = getResources();
        try
        {
          IPersconService perscon = IPersconService.Stub.asInterface(service);
          perscon.registerApplication(
              r.getString(R.string.application_id),
              r.getString(R.string.application_name),
              r.getString(R.string.application_version));
        }
        catch(RemoteException e)
        {
          logger.error("Unable to register the application", e);
          throw new RuntimeException(e);
        }
        unbindService(this);
      }
    }, Context.BIND_AUTO_CREATE);
  }
}




Java Source Code List

horizon.android.logging.Logger.java
horizon.geotagger.AlertService.java
horizon.geotagger.Base64.java
horizon.geotagger.GeoTagger.java
horizon.geotagger.GeoTagger.java
horizon.geotagger.GeoUtils.java
horizon.geotagger.GeoUtils.java
horizon.geotagger.JavaLoggingAppender.java
horizon.geotagger.JspUtils.java
horizon.geotagger.PMF.java
horizon.geotagger.PersconServiceConnection.java
horizon.geotagger.model.Attachment.java
horizon.geotagger.model.Attachment.java
horizon.geotagger.model.Place.java
horizon.geotagger.model.Place.java
horizon.geotagger.model.Tag.java
horizon.geotagger.model.Tag.java
horizon.geotagger.server.AddTagServlet.java
horizon.geotagger.server.CallbackServlet.java
horizon.geotagger.server.DataBinder.java
horizon.geotagger.server.ModelAndView.java
horizon.geotagger.server.ServletWithView.java
horizon.geotagger.server.TagsAtPointData.java
horizon.geotagger.server.TagsAtPointServlet.java
horizon.geotagger.server.TagsInBoxData.java
horizon.geotagger.server.TagsInBoxServlet.java
horizon.geotagger.view.CameraSurfaceView.java
horizon.geotagger.view.DoImageTagView.java
horizon.geotagger.view.DoTagView.java
horizon.geotagger.view.DoTextTagView.java
horizon.geotagger.view.MapView.java
horizon.geotagger.view.TagOverlay.java
horizon.geotagger.view.TagView.java