/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. All we need * to do is set the type, text and the NEW_DOCUMENT flag so it treats our share as a new task. * See: http://developer.android.com/guide/components/tasks-and-back-stack.html for more info. * * @return the Intent to use to share our weather forecast */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecastSummary + FORECAST_SHARE_HASHTAG) .getIntent(); shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. All we need * to do is set the type, text and the NEW_DOCUMENT flag so it treats our share as a new task. * See: http://developer.android.com/guide/components/tasks-and-back-stack.html for more info. * * @return the Intent to use to share our weather forecast */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecastSummary + FORECAST_SHARE_HASHTAG) .getIntent(); shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. All we need * to do is set the type, text and the NEW_DOCUMENT flag so it treats our share as a new task. * See: http://developer.android.com/guide/components/tasks-and-back-stack.html for more info. * * @return the Intent to use to share our weather forecast */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecastSummary + FORECAST_SHARE_HASHTAG) .getIntent(); shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }
/** * Uses the ShareCompat Intent builder to create our Forecast intent for sharing. We set the * type of content that we are sharing (just regular text), the text itself, and we return the * newly created Intent. * * @return The Intent to use to start our share. */ private Intent createShareForecastIntent() { Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setType("text/plain") .setText(mForecast + FORECAST_SHARE_HASHTAG) .getIntent(); return shareIntent; }