Android Open Source - AndroidWeb Web Receiver






From Project

Back to project page AndroidWeb.

License

The source code is released under:

Copyright (c) 2012, The Smyth Group Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in ...

If you think the Android project AndroidWeb 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 org.tsg.web;
/*from ww  w. jav a 2  s  . c o m*/
import android.os.Bundle;

/**
 * Implement to handle service results
 * 
 * @author Daniel Skinner <daniel@dasa.cc>
 * 
 */
public interface WebReceiver {
  public static final int STATUS_CREATED = 0;
  public static final int STATUS_RUNNING = 1;
  public static final int STATUS_FINISHED = 2;
  public static final int STATUS_ERROR = 3;

  // keys for Bundle resultData sent to receiver
  public static final String REQUEST_KEY = "requestKey";
  public static final String RESPONSE_EXCEPTION = "exception";
  public static final String RESPONSE_CODE = "responseCode";
  public static final String RESPONSE_MESSAGE = "responseMessage";
  public static final String DEVELOPER_EXTRAS = "developerExtras";

  public void onReceiveResult(int resultCode, Bundle resultData);
}




Java Source Code List

org.tsg.web.WebClient.java
org.tsg.web.WebContentProvider.java
org.tsg.web.WebReceiver.java
org.tsg.web.WebRequest.java
org.tsg.web.WebResponse.java
org.tsg.web.WebService.java