onactivityresult Questions

2

Solved

i am using navController.navigate(R.id.FragmentB) to navigate from host fragment in MainActivity to navigate to different fragments and it works like expected except inside onActivityResult it won...

10

Solved

onActivityResult() is not getting called. Below is my code: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // Check which request we're responding to ...
Displant asked 18/11, 2014 at 6:31

6

Solved

The structure of the app is like this: tabHost (in Activity) -> contains -> TabFragment(extend base container fragment) 1. The code in Activity: tabHost.addTab( tabHost.newTabSpec("home"...

2

Solved

So in my adapter class, I would like to allow user to capture image fun dispatchTakePictureIntent() { try { val captureIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE); (context as Activity).s...
Vilayet asked 14/2, 2019 at 8:24

2

Solved

I'm taking photo from dialog fragment. And also I need something like startActivityForResult(takePictureIntent, actionCode); @Override public void onActivityResult(int requestCode, int resultCod...

1

I am using following code to show popup to turn on location LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder() .addLocationRequest(mLocationRequest); SettingsClient...

1

Solved

I am programming a speech recognition app in Kotlin for Android. class MainActivity : AppCompatActivity() { public override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInsta...
Gracegraceful asked 4/10, 2018 at 18:10

4

I tried to crop an image from a Uri after taking a photo or picking a picture. And my codes are like these: public static void cropImage(Uri uri, Activity activity, int action_code) { Intent inte...
Algar asked 7/7, 2015 at 7:14

1

Solved

I am trying the new Android P Developer Preview, and the secenario is as follows: I call Activity B from Activity A with startActivityForResult Finish Activity B with SetResult and go back to A...
Urethroscope asked 22/5, 2018 at 12:16

6

Solved

I'm starting a new Activity from my Fragment with startActivityForResult(intent, 1); and want to handle the result in the Fragment's parent Activity: @Override protected void onActivityResult(i...
Armyn asked 12/5, 2012 at 14:11

2

Solved

Below here sample code intent from camera : val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE) startActivityForResult(intent, REQUEST_CAMERA) Note: when I press back from camera as result on ...
Vincentvincenta asked 4/10, 2017 at 9:36

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

3

Solved

I am using following code to select a image or video from gallery : imgGallery.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent pickPhoto = new Intent(...
Pyrone asked 28/12, 2015 at 6:52

1

I want to use a fragment in multiple activities. In the first activity i will use it in, I created it by final ScoreBoard fragment = new ScoreBoard(); getFragmentManager() .beginTransaction() ...

2

Solved

Does Cordova have any automatic way to pass onActivityResult to its CordovaPlugin classes? Here's my current file, doing it manually: package com.myapp; import android.os.Bundle; import org.apac...
Fairchild asked 3/12, 2014 at 20:4

3

Solved

I am facing a strange issue while returning to an Activity with a Result, I am passing an Intent for startActivityForResult from an Adapter like this : Intent i = new Intent(activity, EditInfoAct...
Carlacarlee asked 25/1, 2017 at 13:11

1

Solved

I have a fragment, where I have a button to choose an image from a gallery. The gallery is open successfully, but when I choose the image, I do not get the result from activity. So I consider to us...
Correspondence asked 25/10, 2016 at 10:22

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'm trying to port an Android app to the new support library (support-v4:21.0.0) and I'm having trouble starting Activities from Fragments with a transition. In my Activities, I've been doing some...

8

Solved

My requirement is to upload camera captured image to the server, but it should be less than 500 KB. In case, if it is greater than 500 KB, it needs to be reduced to the size less than 500 KB (but s...

5

Solved

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); filePath = getOutputMediaFile(FileColumns.MEDIA_TYPE_IMAGE); File file = new File(filePath); ...
Jere asked 24/7, 2013 at 7:13

4

Solved

Hi I am using viewPager with fragmnets inside main fragment. I am trying to get image to bitmap from gallery or from camera, but after picking photo and startActivityForResult it doesn't catch in o...

2

Solved

I am trying to learn how to use the camera in an app and this is what I reached , the idea is having a button that opens the camera and that the picture will instantly show on the screen after we t...
Dipetalous asked 17/5, 2016 at 6:59

3

I have an app with a splash screen Activity, followed by a main Activity. The splash screen loads stuff (database, etc.) before starting the main Activity. From this main Activity the user can navi...
Adrienneadrift asked 21/2, 2016 at 17:20

2

Solved

I have a RecyclerView that creates CardViews from user input (via two EditTexts). I am able to create the new Cards properly. The first CardView shows the two user input fields correctly. When I ...

© 2022 - 2024 — McMap. All rights reserved.