onactivityresult Questions

2

Solved

I have many nested fragments. Activity A MainFragment (in a FrameLayout) Fragment A (in a FrameLayout in MainFragment) Fragment B (in a FrameLayout in MainFragment) Fragment C (in a ViewPag...
Infanticide asked 17/2, 2016 at 14:14

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...

1

Solved

I trying to pick an image from gallery and set the bitmap to my imageview, but I have a problem: in my device, works well, but it doesn't work in other. I start the image picker in my fragment as ...

1

Solved

I'm following the answer https://mcmap.net/q/167632/-how-to-call-android-contacts-list to add a contact picker to my app. The problem is that onActivityResult is immediately invoked with the corre...
Trela asked 18/9, 2015 at 5:31

2

Solved

I have a Fragment that contains a RecyclerView which uses a custom RecyclerAdapter. I have an onClickListener inside my custom RecyclerAdapter - when a position is clicked I want it to start startA...

2

Solved

I have an Activity that calls another Activity, that calls some other Activities. I send to the last Activity to get a result, and then i send back the result to the fist Activity. The flow is som...
Renee asked 1/12, 2014 at 9:14

1

thanks to this answer Android Fragment lifecycle issue (NullPointerException on onActivityResult) I've managed to re-create a scenario when I receive a NPE in my fragment after calling startActivit...
Huppert asked 6/4, 2015 at 4:3

0

I have a user dialog which is created from a fragment. The user can make a choice and I want this choice to be delivered to fragment's onActivityResult. To do so, I use createPendingResult. This me...
Impel asked 12/11, 2014 at 15:58

1

Solved

The 1st Activity (EditCycle) calls the 2nd activity (EditChooseLists) Intent i=new Intent(EditCycle.this,EditChooseLists.class); startActivityForResult(i, RESULT_OK); The 2nd activity (EditChoos...

4

I have a MainActivity with an options menu with a 'settings' item. When I start the SettingsActivity, all works fine until I click the save button and try to finish the SettingsActivity. This activ...
Snell asked 30/6, 2014 at 14:36

1

Solved

I get an issue which for I cannot find any explanation. I have a FragmentActivity that displays fragments using a TabManager, as follows : public class WorkOrderFormTabFragmentActivity extends Fra...
Hullo asked 23/4, 2014 at 13:44

3

Solved

Here is my problem: Create a MainActivity. Add a button which will start another activity SecondActivity. Intent i = new Intent(getActivity(),SecondActivity.class); startActivityForResult(i,0)...
Teat asked 23/11, 2013 at 10:32

7

Solved

I am creating an app where i need to find current location of user . So here I would like to do a task like when user returns from that System intent, my task should be done after that.(Displayin...
Fang asked 14/2, 2014 at 13:6

1

Solved

I'm having a problem in my android application. I don't know why 'onActivityResult' method is not being called when 'Up navigation' button from action bar is pressed. I think I've done everything p...
Metamorphose asked 3/12, 2013 at 15:8

1

Solved

My app is trying to install an APK. Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE); installIntent.setData(Uri.fromFile(new File(pathToApk))); installIntent.putExtra(Intent.EXTRA_...
Cultured asked 7/11, 2013 at 0:19

1

onActivityResult not working with fragments..how to call onActivityResult in a class which extends fragment not fragment activity.Is there any other method similar to onActivityResult in fragments?...
Bohman asked 25/9, 2013 at 12:40

2

Solved

I tried almost all solutions found from the net and still can't solve my problem. Would anyone please help with the following codes? I really can't make it work. Even if I tried to put the setresul...
Lette asked 29/8, 2013 at 9:26

2

Solved

I wonder if it's possible to handle data from e.g. activity 2 and activity 3 in activity 1 that have one onActivityResult(), or do I need to have one method for each activity that return data? Act...
Tomchay asked 21/2, 2013 at 12:0

4

Solved

When I my app is launched I am showing a splash screen. That page is been shown for 10 sec, running on a thread. When it switches over to new activity on a result I want o hit a URL in server and ...
Secondhand asked 19/7, 2011 at 4:53

1

Solved

What is called first when activity is restored? onRestoreInstanceState or onActivityResult?

1

Solved

I have an app that needs to scan a barcode to get a code before it can continue. I use this code to start the scanning activity: finish = (Button) findViewById(R.id.finishButton); finish.setOnCli...

© 2022 - 2024 — McMap. All rights reserved.