Searched refs:resultCode (Results 1 - 25 of 49) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/app/
H A DReceiveResult.java104 * @param resultCode From sending activity as per setResult().
108 protected void onActivityResult(int requestCode, int resultCode, argument
118 // This is a standard resultCode that is sent back if the
121 if (resultCode == RESULT_CANCELED) {
128 text.append(Integer.toString(resultCode));
H A DRedirectMain.java61 protected void onActivityResult(int requestCode, int resultCode, argument
66 if (resultCode == RESULT_CANCELED) {
80 if (resultCode != RESULT_CANCELED) {
H A DFragmentReceiveResult.java103 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
112 // This is a standard resultCode that is sent back if the
115 if (resultCode == RESULT_CANCELED) {
122 text.append(Integer.toString(resultCode));
H A DVoiceRecognition.java138 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
139 if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {
147 super.onActivityResult(requestCode, resultCode, data);
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DSearchActivity.java57 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
59 " resultCode=" + resultCode +
61 if (requestCode == REQUEST_SPEECH && resultCode == RESULT_OK) {
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
H A DSetupProfileFragment.java90 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
92 if (resultCode == Activity.RESULT_OK) {
99 super.onActivityResult(requestCode, resultCode, data);
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
H A DSetupProfileFragment.java88 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
90 if (resultCode == Activity.RESULT_OK) {
97 super.onActivityResult(requestCode, resultCode, data);
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DFragmentReceiveResultSupport.java105 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
114 // This is a standard resultCode that is sent back if the
117 if (resultCode == RESULT_CANCELED) {
124 text.append(Integer.toString(resultCode));
/development/samples/ApiDemos/src/com/example/android/apis/preference/
H A DLaunchingPreferences.java82 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
83 super.onActivityResult(requestCode, resultCode, data);
/development/samples/BusinessCard/src/com/example/android/businesscard/
H A DBusinessCardActivity.java83 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
84 if (requestCode == PICK_CONTACT_REQUEST && resultCode == RESULT_OK) {
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
H A DNotepadv2.java115 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { argument
116 super.onActivityResult(requestCode, resultCode, intent);
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/
H A DAddVoicemailActivity.java138 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
139 super.onActivityResult(requestCode, resultCode, data);
142 handleRecordingResult(resultCode, data);
168 private void handleRecordingResult(int resultCode, Intent data) { argument
169 if (resultCode != RESULT_OK) {
170 handleError(new Exception("Failed to do recording. Error Code: " + resultCode));
/development/samples/ApiDemos/src/com/example/android/apis/content/
H A DInstallApk.java75 public void onActivityResult(int requestCode, int resultCode, Intent intent) { argument
77 if (resultCode == Activity.RESULT_OK) {
79 } else if (resultCode == Activity.RESULT_CANCELED) {
85 if (resultCode == Activity.RESULT_OK) {
87 } else if (resultCode == Activity.RESULT_CANCELED) {
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
H A DNotepadv3.java119 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { argument
120 super.onActivityResult(requestCode, resultCode, intent);
/development/apps/Development/src/com/android/development/
H A DInstrumentationList.java176 public void instrumentationStatus(ComponentName name, int resultCode, Bundle results) {
183 Log.i("instrumentation", "INSTRUMENTATION_STATUS_CODE: " + resultCode);
186 int resultCode, Bundle results) {
193 Log.i("instrumentation", "INSTRUMENTATION_CODE: " + resultCode);
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
H A DBluetoothChat.java290 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
291 if(D) Log.d(TAG, "onActivityResult " + resultCode);
295 if (resultCode == Activity.RESULT_OK) {
301 if (resultCode == Activity.RESULT_OK) {
307 if (resultCode == Activity.RESULT_OK) {
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
H A DMyRssReader3.java134 protected void onActivityResult(int requestCode, int resultCode, Intent data){ argument
135 if(resultCode == RESULT_OK){
H A DMyRssReader4.java148 protected void onActivityResult(int requestCode, int resultCode, Intent data){ argument
149 if(resultCode == RESULT_OK){
/development/samples/browseable/StorageClient/src/com.example.android.storageclient/
H A DStorageClientFragment.java88 public void onActivityResult(int requestCode, int resultCode, Intent resultData) { argument
95 if (requestCode == READ_REQUEST_CODE && resultCode == Activity.RESULT_OK) {
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
H A DNotepadv2.java127 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { argument
128 super.onActivityResult(requestCode, resultCode, intent);
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
H A DNotepadv3.java127 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { argument
128 super.onActivityResult(requestCode, resultCode, intent);
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
H A DBluetoothChatFragment.java328 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
332 if (resultCode == Activity.RESULT_OK) {
338 if (resultCode == Activity.RESULT_OK) {
344 if (resultCode == Activity.RESULT_OK) {
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
H A DMediaProjectionDemo.java103 public void onActivityResult(int requestCode, int resultCode, Intent data) { argument
108 if (resultCode != RESULT_OK) {
113 mMediaProjection = mProjectionManager.getMediaProjection(resultCode, data);
/development/samples/KeyChainDemo/src/com/example/android/keychain/
H A DKeyChainDemoActivity.java241 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
243 switch (resultCode) {
248 super.onActivityResult(requestCode, resultCode, data);
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
H A DDeviceScanActivity.java131 protected void onActivityResult(int requestCode, int resultCode, Intent data) { argument
133 if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {
137 super.onActivityResult(requestCode, resultCode, data);

Completed in 2828 milliseconds

12