startactivityforresult Questions

3

I use registerForActivityResult just like : package com.example.livedata import android.Manifest import android.app.Activity import android.app.AlertDialog import android.app.Dialog import android...

3

I am calling activity B from activity A using the ActivityResultLauncher and setting the result from activity B when the task is done. This works perfectly if orientation is not changed. The proble...

1

Solved

I'm developing a Flutter Plugin for Android using Java. When i call the MethodChannel, I need to call another Android Intent. If I was using an native activity, it would be simple since I can call ...

14

Solved

In my activity, I'm calling a second activity from the main activity by startActivityForResult. In my second activity, there are some methods that finish this activity (maybe without a result), how...

0

Issue, 'onActivityResult(Int, Int, Intent?): Unit' is deprecated. Deprecated in Java As per in-app update docs, the given method requires onActivityResult but that is deprecated. I can't find any...

2

Solved

Is it possible to know if some activity has been called for result, using startActivityForResult() or if was only started using startActivity()? I need to control this, if its called for result th...
Polash asked 25/5, 2013 at 20:34

1

Solved

OnActivityResult() is deprecated in androidx. I took reference from below links https://developer.android.com/training/basics/intents/result https://developer.android.com/jetpack/androidx/releases...

2

Today I switched to the new ResultAPI and I faced this error: java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode at androidx.fragment.app.FragmentActivity.checkForValid...

2

Solved

I am loading images into my app using startActivityForResult() by doing something like this: val intentForLoadingImage = Intent(Intent.ACTION_GET_CONTENT) intentForLoadingImage.type = "image/*...
Beccafico asked 15/10, 2020 at 5:37

0

Background : My app (A) is used by others app (B) to make an action on the behalf. Expected result : Crashing app B => Crash app A and all launched threads. OR launhing app A activity on it's o...

4

Solved

I have four activities, say A, B, C and D. My situation is A will start the activity B by startActivityForResult. startActivityForResult(new Intent(this,B.class),ONE); In another situation I will ...

3

I am getting this exception on crashlytics report frequently don't know why? Fatal Exception: java.lang.RuntimeException: Failure from system at android.app.Instrumentation.execStartActivity(Inst...
Primaveria asked 24/1, 2017 at 6:32

3

Unfortunately I couldn't find an answer at Android Place Picker closes immediately after launch. For me the PlacePicker launches, shows location as Unknown and then returns with the resultCode 2. ...

3

Solved

After updating to API 27 and Support library 27.0.2 suddenly I get a lot of these stack traces in Crashlytics: Fatal Exception: java.lang.IllegalArgumentException at android.os.Parcel.readExcepti...
Elisaelisabet asked 4/12, 2017 at 18:21

4

I try to get the result in a fragment. Code in fragment override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) i...
Duel asked 16/8, 2018 at 12:24

6

Solved

What the differences between startActivityForResult() vs getActivity().startActivityForResult() in Android Fragment? And what is the behaviour differences in onActivityForResult() when called in Fr...
Unwary asked 14/12, 2017 at 6:53

1

Solved

I'm trying to set alarm using my app and for that I'm using Alarm Clock Common Intent as described here. Here's my code: public void createAlarm(String message, int hour, int minutes) { Intent i...

5

With this code, I can easily insert dynamically some layouts. The layout contains a Button, which I want to launch startActivityForResult. Now when I get the result (text), I want to set it on the ...
Ollieollis asked 12/12, 2016 at 17:49

4

I have three activities MessagesAttachPhotoActivity MessageGalleryFolderSelectorActivity ImagePickerActivity MessagesAttachPhotoActivity calls MessageGalleryFolderSelectorActivity with startAct...

2

I have two application separately.Client and Seller App. I want to pay money for client app and get response to seller app. Anyway,i have deep linking concept enabled in seller app. Client App : ...

4

Solved

I have started a child activity from parent activity using startActivityForResult. After performing required functions in child activity I am setting result using setResult. But I am not getting re...

1

Solved

I have two activities, one is UserActivity and other one is CartActivity I am showing a list of products in UserActivity. On click of a button AddtoCart I am adding the products to the cart. I am f...

2

Solved

I'm wondering if I am understanding the concepts of requestCode and resultCode properly? Basically, I have an arbitrary integer (the requestCode) associated with an activity. For example, in the No...
Manger asked 8/8, 2011 at 17:19
1

© 2022 - 2024 — McMap. All rights reserved.