Android Open Source - Amppercent7 Intent Manage






From Project

Back to project page Amppercent7.

License

The source code is released under:

GNU General Public License

If you think the Android project Amppercent7 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 my.amppercent.remoteservice;
// w  ww . ja  v  a2  s  . co m
import my.amppercent.project.TabFragment;
import my.amppercent.types.myNotification;
import android.content.*;
import android.os.*;

/**
 * Parcellizzazione di un Intent che pu essere inviato
 * 
 * @author jack
 * 
 */
public class IntentManage implements Parcelable {

  public final static int DOWNLOAD = my.amppercent.project.R.layout.download_view;

  public final static String KIND = "kind";
  public final static String HANDLED = "handled";

  public int describeContents() {
    return 0;
  }

  public static String getId(String firstarg, String secondarg) {
    return firstarg + "@" + secondarg;
  }

  public String getId() {
    return getId(this.first_argument, this.second_argument);
  }

  public IntentManage(Parcel p) {
    this.first_argument = p.readString();
    this.second_argument = p.readString();
    this.connid = p.readString();
    this.passwo = p.readString();
    this.KindRequest = p.readInt();
    this.handled = (p.readInt() == 1 ? true : false);
  }

  public IntentManage(Intent i) {
    this.first_argument = i.getStringExtra(myNotification.FIRST_BUNDLE);
    this.second_argument = i.getStringExtra(myNotification.SECOND_BUNDLE);
    this.connid = i.getStringExtra(TabFragment.CONNECTIONID);
    this.passwo = i.getStringExtra(TabFragment.PASSWORD);
    this.KindRequest = i.getIntExtra(IntentManage.KIND, -1);
    this.handled = (i.getIntExtra(IntentManage.HANDLED, 0) == 1 ? true
        : false);
  }

  public static final Parcelable.Creator<IntentManage> CREATOR = new Parcelable.Creator<IntentManage>() {

    public IntentManage createFromParcel(Parcel arg0) {
      return new IntentManage(arg0);
    }

    public IntentManage[] newArray(int size) {
      return new IntentManage[size];
    }
  };

  public void writeToParcel(Parcel p1, int p2) {
    p1.writeString(first_argument);
    p1.writeString(second_argument);
    p1.writeString(connid);
    p1.writeString(passwo);
    p1.writeInt(KindRequest);
    p1.writeInt((this.handled ? 1 : 0));
  }

  public String first_argument;
  public String second_argument;
  public Integer KindRequest;
  public String connid;
  public String passwo;
  public boolean handled;
}




Java Source Code List

my.amppercent.adapters.AdapterChat.java
my.amppercent.adapters.AdapterElems.java
my.amppercent.adapters.AdapterIM.java
my.amppercent.adapters.AdapterUStatus.java
my.amppercent.adapters.ListViewAdapting.java
my.amppercent.adapters.ListView_XUser.java
my.amppercent.chatrequest.AvailabilitySettings.java
my.amppercent.chatrequest.SelectConnActivity.java
my.amppercent.chatrequest.connActivity.java
my.amppercent.chatrequest.serverActivity.java
my.amppercent.chattables.UberChat.java
my.amppercent.chattables.XConnect.java
my.amppercent.chattables.XRoster.java
my.amppercent.chattables.myChat.java
my.amppercent.project.Amppercent4Activity.java
my.amppercent.project.DownloadManager.java
my.amppercent.project.IBindRemoteService.java
my.amppercent.project.LaunchMe.java
my.amppercent.project.PrefActive.java
my.amppercent.project.TabFragment.java
my.amppercent.project.TextEntryActivity.java
my.amppercent.remoteservice.IFMessage.java
my.amppercent.remoteservice.IntentManage.java
my.amppercent.remoteservice.XUser.java
my.amppercent.remoteservice.chatAdapter.java
my.amppercent.types.Couple.java
my.amppercent.types.State.java
my.amppercent.types.myATask.java
my.amppercent.types.myNotification.java
my.amppercent.types.myYesNoDialog.java
my.amppercent.types.newActivity.java
org.jivesoftware.smackx.filetransfer.myOutgoingFileTransfer.java