Android Open Source - Pyazing Upload Media Activity






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;
/* w  ww .j  a v a 2 s.  c  om*/
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public final class UploadMediaActivity extends Activity {

    private final String LOG_TAG = UploadMediaActivity.class.getSimpleName();

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        try {
            Uri imageUri = Uri.parse(getIntent().getExtras().get(Intent.EXTRA_STREAM).toString());
            String mimeType = getIntent().getType();
            startService(UploadMediaService.createIntent(this, imageUri, mimeType));
        } catch (NullPointerException e) {
            Log.e(LOG_TAG, "", e);
            Toasts.ignoreFile(getApplicationContext());
        }
        finish();
    }
}




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