Android Open Source - MordazaCrush Media Crush Provider






From Project

Back to project page MordazaCrush.

License

The source code is released under:

GNU General Public License

If you think the Android project MordazaCrush 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.confederacionpirata.mordazacrush.api;
/*ww w  . j  a va  2 s .  c om*/
import java.io.File;

import jcrush.JCrush;
import android.location.Location;

public class MediaCrushProvider implements ChannelProvider {

  String serverApiUrl;

  public MediaCrushProvider(String serverApiUrl) {
    this.serverApiUrl = serverApiUrl;
    JCrush.init(serverApiUrl);
  }

  @Override
  public QueuedMessage postImage(File file, String[] hashtags,
      Location location, ActionListener listener) {

    MediaCrushMessage message = new MediaCrushMessage(this, file,
        Message.TYPE_IMAGE_JPEG, listener);

    return message;
  };

  @Override
  public void removeAll() {
    // TODO Auto-generated method stub
  }


  @Override
  public boolean isSupportingImages() {
    return true;
  }

  @Override
  public boolean isSupportingVideos() {
    return false;
  }

  @Override
  public boolean isSupportingAudios() {
    return false;
  }

}




Java Source Code List

org.confederacionpirata.mordazacrush.CameraPreview.java
org.confederacionpirata.mordazacrush.MCApp.java
org.confederacionpirata.mordazacrush.MainActivity.java
org.confederacionpirata.mordazacrush.api.ActionListener.java
org.confederacionpirata.mordazacrush.api.ChannelManager.java
org.confederacionpirata.mordazacrush.api.ChannelProvider.java
org.confederacionpirata.mordazacrush.api.MediaCrushMessage.java
org.confederacionpirata.mordazacrush.api.MediaCrushProvider.java
org.confederacionpirata.mordazacrush.api.Message.java
org.confederacionpirata.mordazacrush.api.QueuedMessage.java