Available Methods
- putExtra ( )
- setAction ( )
- getStringExtra ( )
- addFlags ( )
- setFlags ( )
- ACTION_VIEW
- getAction ( )
- setData ( )
- getIntExtra ( )
- setType ( )
- putExtras ( )
- addCategory ( )
- getData ( )
- setClass ( )
- getParcelableExtra ( )
- getExtras ( )
- setPackage ( )
- setDataAndType ( )
- getBooleanExtra ( )
- hasExtra ( )
- setComponent ( )
- ACTION_SEND
- setClassName ( )
- resolveActivity ( )
- getSerializableExtra ( )
- ACTION_MAIN
- getLongExtra ( )
- prepareToLeaveProcess ( )
- getComponent ( )
- ACTION_GET_CONTENT
- resolveTypeIfNeeded ( )
- ACTION_PICK
- putParcelableArrayListExtra ( )
- ACTION_SENDTO
- getStringArrayListExtra ( )
- createChooser ( )
- getBundleExtra ( )
- getFlags ( )
- ACTION_MEDIA_SCANNER_SCAN_FILE
- getParcelableArrayListExtra ( )
- putStringArrayListExtra ( )
- getByteArrayExtra ( )
- getDataString ( )
- FLAG_ACTIVITY_NEW_TASK
- ACTION_DIAL
- FLAG_GRANT_READ_URI_PERMISSION
- getType ( )
- ACTION_BATTERY_CHANGED
- ACTION_DELETE
- getStringArrayExtra ( )
- ACTION_CALL
- ACTION_OPEN_DOCUMENT
- parseUri ( )
- getPackage ( )
- setExtrasClassLoader ( )
- getCategories ( )
- FLAG_GRANT_WRITE_URI_PERMISSION
- toUri ( )
- getScheme ( )
- getIntArrayExtra ( )
- removeExtra ( )
- ACTION_MEDIA_BUTTON
- ACTION_SCREEN_OFF
- toString ( )
- ACTION_SCREEN_ON
- getDoubleExtra ( )
- ACTION_OPEN_DOCUMENT_TREE
- ACTION_SEND_MULTIPLE
- getFloatExtra ( )
- getClipData ( )
- setAllowFds ( )
- ACTION_DEVICE_STORAGE_LOW
- ACTION_TIMEZONE_CHANGED
- getParcelableArrayExtra ( )
- putIntegerArrayListExtra ( )
- setClipData ( )
- ACTION_SEARCH
- hasCategory ( )
- ACTION_EDIT
- ACTION_CREATE_DOCUMENT
- ACTION_WEB_SEARCH
- resolveActivityInfo ( )
- ACTION_CHOOSER
- FLAG_GRANT_PREFIX_URI_PERMISSION
- ACTION_HEADSET_PLUG
- ACTION_TIME_CHANGED
- getLongArrayExtra ( )
- ACTION_CLOSE_SYSTEM_DIALOGS
- ACTION_SET_WALLPAPER
- ACTION_BOOT_COMPLETED
- getIntegerArrayListExtra ( )
- getCharSequenceExtra ( )
- FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
- setSourceBounds ( )
- FLAG_DEBUG_LOG_RESOLUTION
- ACTION_PACKAGE_REMOVED
- migrateExtraStreamToClipData ( )
- ACTION_PACKAGE_ADDED
- ACTION_INSERT
- ACTION_INSTALL_PACKAGE
- FLAG_ACTIVITY_NEW_DOCUMENT
- ACTION_USER_PRESENT
- getShortExtra ( )
- ShortcutIconResource ( )
- setSelector ( )
- replaceExtras ( )
- getSelector ( )
- makeRestartActivityTask ( )
- ACTION_UNINSTALL_PACKAGE
- filterEquals ( )
- FLAG_GRANT_PERSISTABLE_URI_PERMISSION
- ACTION_POWER_CONNECTED
- ACTION_BATTERY_OKAY
- EXTRA_DOCK_STATE_LE_DESK
- getDoubleArrayExtra ( )
- ACTION_ATTACH_DATA
- normalizeMimeType ( )
- FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
- getCharSequenceArrayListExtra ( )
- removeCategory ( )
- resolveSystemService ( )
- getSourceBounds ( )
- ACTION_CREATE_SHORTCUT
- makeMainActivity ( )
- getCharExtra ( )
- resolveType ( )
- FilterComparison ( )
- makeMainSelectorActivity ( )
- clone ( )
- FLAG_ACTIVITY_BROUGHT_TO_FRONT
- prepareToEnterProcess ( )
- ACTION_MANAGED_PROFILE_REMOVED
- EXTRA_DOCK_STATE_HE_DESK
- ACTION_MEDIA_MOUNTED
- ACTION_INSERT_OR_EDIT
- CATEGORY_CAR_DOCK
- ACTION_NEW_OUTGOING_CALL
- putCharSequenceArrayListExtra ( )
- ACTION_USER_UNLOCKED
- writeToParcel ( )
- ACTION_APPLICATION_RESTRICTIONS_CHANGED
- ACTION_AIRPLANE_MODE_CHANGED
- ACTION_ASSIST
- ACTION_PACKAGE_DATA_CLEARED
- ACTION_MEDIA_EJECT
- ACTION_POWER_DISCONNECTED
- ACTION_APP_ERROR
- getBooleanArrayExtra ( )
- ACTION_PACKAGE_REPLACED
- ACTION_WALLPAPER_CHANGED
- getFloatArrayExtra ( )
- EXTRA_DOCK_STATE_UNDOCKED
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- java.util.Date
- android.util.Log
- android.widget.TextView
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.view.MenuItem
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.widget.LinearLayout
- android.content.pm.PackageManager
- android.support.annotation.Nullable
- android.widget.EditText
- android.content.SharedPreferences
Java Code Examples for android.content.Intent#getCharSequenceArrayListExtra()
The following examples show how to use
android.content.Intent#getCharSequenceArrayListExtra() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GalleryResultHandler.java From titanium-imagepicker with Apache License 2.0 | 5 votes |
@Override public void onResult(Activity activity, int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_CANCELED){ flushResponse(TiC.PROPERTY_CANCEL, true, TiC.PROPERTY_SUCCESS, false, TiC.EVENT_PROPERTY_MESSAGE, "Result Cancelled"); } else if (Defaults.REQUEST_CODE == requestCode && resultCode == Activity.RESULT_OK) { if (null != data && data.hasExtra(TiC.PROPERTY_SUCCESS) && data.hasExtra(Defaults.Params.IMAGES)) { ArrayList<CharSequence> imagePaths = data.getCharSequenceArrayListExtra(Defaults.Params.IMAGES); flushResponse(TiC.PROPERTY_CANCEL, false, TiC.PROPERTY_SUCCESS, true, Defaults.Params.IMAGES, imagePaths.toArray()); } } }
Example 2
Source File: GalleryResultHandler.java From titanium-imagepicker with Apache License 2.0 | 5 votes |
@Override public void onResult(Activity activity, int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_CANCELED){ flushResponse(TiC.PROPERTY_CANCEL, true, TiC.PROPERTY_SUCCESS, false, TiC.EVENT_PROPERTY_MESSAGE, "Result Cancelled"); } else if (Defaults.REQUEST_CODE == requestCode && resultCode == Activity.RESULT_OK) { if (null != data && data.hasExtra(TiC.PROPERTY_SUCCESS) && data.hasExtra(Defaults.Params.IMAGES)) { ArrayList<CharSequence> imagePaths = data.getCharSequenceArrayListExtra(Defaults.Params.IMAGES); flushResponse(TiC.PROPERTY_CANCEL, false, TiC.PROPERTY_SUCCESS, true, Defaults.Params.IMAGES, imagePaths.toArray()); } } }
Example 3
Source File: CodeConverterDetailsActivity.java From Chimee with MIT License | 5 votes |
private static ArrayList<CharSequence> getTextFromIntent(Intent intent) { ArrayList<CharSequence> renderedParagraphs = new ArrayList<>(); ArrayList<CharSequence> paragraphs = intent.getCharSequenceArrayListExtra(DETAILS_TEXT_KEY); if (paragraphs == null || paragraphs.size() == 0) return renderedParagraphs; for (CharSequence paragraph : paragraphs) { List<String> renderedText = renderText(paragraph.toString()); renderedParagraphs.addAll(renderedText); } return renderedParagraphs; }
Example 4
Source File: MessagingBuilder.java From decorator-wechat with Apache License 2.0 | 4 votes |
@Override public void onReceive(final Context context, final Intent proxy) { final PendingIntent reply_action = proxy.getParcelableExtra(EXTRA_REPLY_ACTION); final String result_key = proxy.getStringExtra(EXTRA_RESULT_KEY), reply_prefix = proxy.getStringExtra(EXTRA_REPLY_PREFIX); final Uri data = proxy.getData(); final Bundle results = RemoteInput.getResultsFromIntent(proxy); final CharSequence input = results != null ? results.getCharSequence(result_key) : null; if (data == null || reply_action == null || result_key == null || input == null) return; // Should never happen final String key = data.getSchemeSpecificPart(), original_key = proxy.getStringExtra(EXTRA_ORIGINAL_KEY); if (BuildConfig.DEBUG && "debug".equals(input.toString())) { final Conversation conversation = mController.getConversation(proxy.getIntExtra(EXTRA_CONVERSATION_ID, 0)); if (conversation != null) showDebugNotification(conversation, "Type: " + conversation.typeToString()); mController.recastNotification(original_key != null ? original_key : key, null); return; } final CharSequence text; if (reply_prefix != null) { text = reply_prefix + input; results.putCharSequence(result_key, text); RemoteInput.addResultsToIntent(new RemoteInput[]{ new RemoteInput.Builder(result_key).build() }, proxy, results); } else text = input; final ArrayList<CharSequence> history = SDK_INT >= N ? proxy.getCharSequenceArrayListExtra(EXTRA_REMOTE_INPUT_HISTORY) : null; try { final Intent input_data = addTargetPackageAndWakeUp(reply_action); input_data.setClipData(proxy.getClipData()); reply_action.send(mContext, 0, input_data, (pendingIntent, intent, _result_code, _result_data, _result_extras) -> { if (BuildConfig.DEBUG) Log.d(TAG, "Reply sent: " + intent.toUri(0)); if (SDK_INT >= N) { final Bundle addition = new Bundle(); final CharSequence[] inputs; final boolean to_current_user = Process.myUserHandle().equals(pendingIntent.getCreatorUserHandle()); if (to_current_user && context.getPackageManager().queryBroadcastReceivers(intent, 0).isEmpty()) { inputs = new CharSequence[] { context.getString(R.string.wechat_with_no_reply_receiver) }; } else if (history != null) { history.add(0, text); inputs = history.toArray(new CharSequence[0]); } else inputs = new CharSequence[] { text }; addition.putCharSequenceArray(EXTRA_REMOTE_INPUT_HISTORY, inputs); mController.recastNotification(original_key != null ? original_key : key, addition); } markRead(key); }, null); } catch (final PendingIntent.CanceledException e) { Log.w(TAG, "Reply action is already cancelled: " + key); abortBroadcast(); } }
Example 5
Source File: IntentUtil.java From Ticket-Analysis with MIT License | 4 votes |
public static ArrayList<CharSequence> getCharSequenceArrayListExtra(Intent intent, String name) { if (!hasIntent(intent) || !hasExtra(intent, name)) return null; return intent.getCharSequenceArrayListExtra(name); }