Android Open Source - BerryTube Berry Tube Binder






From Project

Back to project page BerryTube.

License

The source code is released under:

GNU General Public License

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

/*
 * BerryTube Service//w w  w.  j a v a 2  s  . co  m
 * Copyright (C) 2012 Daniel Triendl <trellmor@trellmor.com>
 * 
 * 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.trellmor.berrytube;

import java.lang.ref.WeakReference;

import android.os.Binder;

/**
 * BerryTubeBinder is the <code>IBinder</code> implementations for applications to
 * communicate with the <code>BerryTube</code> service class.
 * 
 * @author Daniel Triendl
 * @see android.os.Binder
 * @see android.os.IBinder
 * @see android.app.Service
 */
public class BerryTubeBinder extends Binder {
  private final WeakReference<BerryTube> service;

  /**
   * Constructs a Binder instance for the <code>BerryTube</code> service
   * 
   * @param service
   *            <code>BerryTube</code> service instance
   * @see BerryTube
   */
  public BerryTubeBinder(BerryTube service) {
    this.service = new WeakReference<>(service);
  }

  /**
   * Get the <code>BerryTube</code> service instance
   * 
   * @return Service instance
   */
  public BerryTube getService() {
    return service.get();
  }
}




Java Source Code List

com.trellmor.berrytube.BerryTubeBinder.java
com.trellmor.berrytube.BerryTubeCallback.java
com.trellmor.berrytube.BerryTubeIOCallback.java
com.trellmor.berrytube.BerryTube.java
com.trellmor.berrytube.ChatMessage.java
com.trellmor.berrytube.ChatUser.java
com.trellmor.berrytube.Poll.java
com.trellmor.berrytubechat.BerryTubeUtils.java
com.trellmor.berrytubechat.ChatActivity.java
com.trellmor.berrytubechat.ChatMessageAdapter.java
com.trellmor.berrytubechat.ChatMessageFormatter.java
com.trellmor.berrytubechat.FlairGetter.java
com.trellmor.berrytubechat.MainActivity.java
com.trellmor.berrytubechat.SettingsActivity.java
com.trellmor.berrytubechat.SettingsFragment.java
com.trellmor.berrytubechat.SimpleCrypto.java