Questions tagged [onactivityresult]

Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it. The resultCode will be RESULT_CANCELED if the activity explicitly returned that, didn't return any result, or crashed during its operation.

Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it. The resultCode will be RESULT_CANCELED if the activity explicitly returned that, didn't return any result, or crashed during its operation.

You will receive this call immediately before onResume() when your activity is re-starting.

Click Here for Google Android Documentation

990 questions
-1
votes
2 answers

how to use camera intent in ListView

public void CAPTURE() { final ListView mListView = (ListView)findViewById(R.id.lvImage); .... set adapter ... mListView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView myAdapter,…
-1
votes
1 answer

Toast Message in a ContentResolver

I want to Pick a Contact and display the number as Toast Message with onActivityResult. My Problem is after i've picked a Contact and want to Display the number my programm is Crashing. Here is the code: @Override protected void onActivityResult(int…
-1
votes
2 answers

onActivityResult Implementation Does Not Function As Expected

I'm attempting to use onActivityResult in order to launch the Android Gallery in order to display either photos - or videos depending on the ImageButton selected. The problem is when attempting to open a photo it's attempting to launch the video…
-1
votes
1 answer

How to return result from onActivityresult

I am trying to pick a contact from Default Contact app. I got information from a contact successfuly. Now i want to save this data in an arraylist, type of contact. how from onActivityResult? I am searching this for 5 hours.I am new in android.…
-1
votes
2 answers

Android Intent extras return null attributes

So I start off by creating a custom object "Book" Book b = new Book(id, title.getText().toString(),authors , isbn.getText().toString(), "$9.99"); All of these parameters are defined and not null. Next I take the object "b" and put it into an Intent…
nwnoga
  • 577
  • 3
  • 12
  • 22
-1
votes
3 answers

onActivityResult(int, int, Intent) is undefined for the type Object

I am getting the error on "onActivityResult" stating "onActivityResult(int, int, Intent) is undefined for the type Object" I've looked at people that have had the same problem and they've said that it's caused due to poorly placed curley braces. I…
Jack
  • 2,043
  • 7
  • 40
  • 69
-2
votes
1 answer

In onActivityResult intent.getSerializableExtra is not calling

I am not getting OnActivityResult.This method is not calling when I return seriazable list from my second activity.Pls check below code,if I made any mistake pls let me now` ` List Activity professional_filter.setOnClickListener(new…
learner
  • 331
  • 1
  • 9
  • 22
-2
votes
2 answers

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1888, result=-1, data=null} to activity

I want to show my image in imageview after click but i don't know why this error occur and i searched a lot on this but i could no find solution of this problem and i tried to implement code after see solution but it doesn't work,so i m confused…
Gourav Manuja
  • 89
  • 1
  • 10
-2
votes
1 answer

OnActivityResult in fragment

I'm developing an android application that is dependent on maps and location. I have ActivityA that contains fragmentA. I have an alert that request the user to turn on location service inside fragmentA. When the user accept to turn on the service,…
-2
votes
2 answers

Disable Button that triggered an ActivityforResult

My code goes like this: - A button triggers one Activity on result, meaning that the activity should give back a result. - When the activity finishes and returns to the activity where the button was clicked, I would like to disable this button. I…
M.M.
  • 47
  • 8
-2
votes
1 answer

Unfrotunately app stopped onActivityResult

I am new to android development. This is a test app through which I am trying to invoke an image to my activity. Everything seems fine except when I am returning the camera Image in onACtivityResult(); the app crashes. I have included Logs so that…
-2
votes
1 answer

Fragment is reloaded after getting a result from camera onActivityResult

Android Fragment is reloaded after getting a result from select camera or gallery onActivityResult while using Micromax Q424 in 5.1 version.in other mobiles working but in Micromax Q424 is reloaded the fragment. how avoid after getting results.
ManiK
  • 1
  • 3
-2
votes
2 answers

Is there any way to call onActivityResult() method to return data from Activity in Fragment?

I have a Fragment containing a RecyclerView. I am starting an Intent to a new Activity from this Fragment. Now I want to add some new data in DB from this Activity and update my RecyclerView in Fragment when the Activity is finished. I know that…
-2
votes
1 answer

how to check which onclick is, in onActivityResult

I want to know, where it comes from, which clickListener is clicked in onActivityResult. could anyone give me advice example? where should i edit? how do i edit? Regist_Slide_Images.java iv_slide1 = (ImageView)…
user3662974
  • 85
  • 1
  • 3
  • 11
-2
votes
2 answers

Android: NullPointerException with ImageView.setImageBitmap

I am trying to display picture in ImageView after browsing it from phone within onActivityResult method. I declared my ImageView just before OnCreate method, after I find it by its ID on layout and finally want to display the selected image. But…
1 2 3
65
66