Android Open Source - Pyazing Upload Media






From Project

Back to project page Pyazing.

License

The source code is released under:

Apache License

If you think the Android project Pyazing 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 net.ichigotake.pyazing;
//from w w w .jav  a  2s .  c o  m
import android.net.Uri;

final class UploadMedia {

    private final Uri data;
    private final String mimeType;

    UploadMedia(Uri data, String mimeType) {
        this.data = data;
        this.mimeType = mimeType;
    }

    Uri getData() {
        return data;
    }

    String getMimeType() {
        return mimeType;
    }

    boolean isImage() {
        return mimeType.startsWith("image/");
    }

    boolean isVideo() {
        return mimeType.startsWith("video/");
    }

    boolean hasFilenameExtension() {
        return data.getLastPathSegment().contains(".");
    }

}




Java Source Code List

net.ichigotake.pyazing.ApplicationTest.java
net.ichigotake.pyazing.CopyToClipboardService.java
net.ichigotake.pyazing.PazingApplication.java
net.ichigotake.pyazing.Toasts.java
net.ichigotake.pyazing.UploadMediaActivity.java
net.ichigotake.pyazing.UploadMediaService.java
net.ichigotake.pyazing.UploadMedia.java
net.ichigotake.pyazing.UploadMode.java
net.ichigotake.pyazing.UploadingNotification.java
net.ichigotake.pyazing.WelcomeActivity.java