Back to project page Pyazing.
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.
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(); } }