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#getFloatArrayExtra()
The following examples show how to use
android.content.Intent#getFloatArrayExtra() .
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: ProfileActivity.java From loco-answers with GNU General Public License v3.0 | 6 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) switch (requestCode) { case CODE_FOR_CROP: { float[] points = data.getFloatArrayExtra(Constant.CLIP_POINTS); String name = data.getStringExtra(Constant.PROFILE_NAME); insertDataToDB(new ProfileEntity(1, name, points[0], points[1], points[2], points[3])); new SweetAlertDialog(ProfileActivity.this, SweetAlertDialog.SUCCESS_TYPE).setTitleText("Image Cropped").setConfirmText("Ok").show(); profiles.add(new Profile(name, points[0], points[1], points[2], points[3])); mProfileAdapter.notifyDataSetChanged(); break; } case Constant.CODE_FOR_SCREEN_CAPTURE: { MediaProjectionHelper.setMediaProjectionManager(mMediaProjectionManager); MediaProjectionHelper.setScreenshotPermission(data); startService(mScreenshotIntent); finish(); break; } } }
Example 2
Source File: RunActivity.java From SEAL-Demo with MIT License | 5 votes |
/** * updates sensors data * @param intent the update intent from Service */ private void updateSensorsData(Intent intent){ float accelerometerMatrix[] = intent.getFloatArrayExtra(ACCELEROMETER_KEY); Log.d(TAG,"Accelerometer x = "+accelerometerMatrix[0]+" y = "+accelerometerMatrix[1]+" z = "+accelerometerMatrix[2]); accelerometerValues.add(accelerometerMatrix); float gyroscopeMatrix[] = intent.getFloatArrayExtra(GYROSCOPE_KEY); Log.d(TAG,"Gyroscope x = "+gyroscopeMatrix[0]+" y = "+gyroscopeMatrix[1]+" z = "+gyroscopeMatrix[2]); gyroscopeValues.add(gyroscopeMatrix); }
Example 3
Source File: MainActivity.java From Wrox-ProfessionalAndroid-4E with Apache License 2.0 | 5 votes |
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == TTS_DATA_CHECK) { if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) { tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() { public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { ttsIsInit = true; if (tts.isLanguageAvailable(Locale.UK) >= 0) tts.setLanguage(Locale.UK); tts.setPitch(0.8f); tts.setSpeechRate(1.1f); speak(); } } }); } else { Intent installVoice = new Intent(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA); startActivity(installVoice); } } // Listing 14-3: Finding the results of a speech recognition request if (requestCode == VOICE_RECOGNITION && resultCode == RESULT_OK) { ArrayList<String> results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); float[] confidence = data.getFloatArrayExtra(RecognizerIntent.EXTRA_CONFIDENCE_SCORES); // TODO Do something with the recognized voice strings } }
Example 4
Source File: GpsServiceUtilities.java From geopaparazzi with GNU General Public License v3.0 | 5 votes |
/** * Utility to get the position extras from an intent. * * @param intent the intent. * @return the position as accuracy, speed, bearing. */ public static float[] getPositionExtras(Intent intent) { if (intent == null) { return null; } float[] positionExtras = intent.getFloatArrayExtra(GPS_SERVICE_POSITION_EXTRAS); return positionExtras; }
Example 5
Source File: IntentUtil.java From Ticket-Analysis with MIT License | 4 votes |
public static float[] getFloatArrayExtra(Intent intent, String name) { if (!hasIntent(intent) || !hasExtra(intent, name)) return null; return intent.getFloatArrayExtra(name); }