An Android Fragment that displays a dialog window, floating on top of its activity's window.
Questions tagged [dialogfragment]
472 questions
0
votes
1 answer
Touchable on buttons under dialog fragment - android
I have a problem with handling dialog fragment. I thank to you!
My code as below:
Main activity:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
…

Bao HQ
- 1,145
- 7
- 18
0
votes
1 answer
Android DialogFragment
I use a class which extends DialogFragment, and in this class I use an AsyncTask for loading the content of my AlertDialog.
My question is: how I can create an AlertDialog which shows: "Loading..." and then shows the content in my onPostExecute…

John Doee
- 59
- 1
- 7
0
votes
1 answer
AddView on DialogFragment after orientation change not working
I have an activity which needs to trigger 4 different DialogFragments in which i trigger an intent do get images from camera or gallery.
I can retain the fragment state and continue to observe the "onActivityResult" and send it to the…

e_ori
- 845
- 1
- 11
- 29
0
votes
1 answer
Using result from DialogFragment to update database via Gridview OnItemClickListener
I have a Gridview with some times, which are pulled from a database. The Gridview is populated with Textviews (which show the times), which are tagged with the necessary information (ROW ID etc) to make changes to that time in the database. I have…
user5132647
0
votes
1 answer
Use DialogFragment to Validate User Entry
I have a FragmentA which has button DoSomething and a listener which is ActivityA. FragmentA also defines an InterfaceA with method doSomething() in it.
ActivityA implements InterfaceA and as below shows FragmentA (with its button DoSomething on…

pixel
- 9,653
- 16
- 82
- 149
0
votes
1 answer
Updating list fragment with list adapter
Currently ran into an issue trying to update a list fragment with a dialogfragment input (or dummy input) everything compiles but don't see any change to the list.
Please let me know what you think. Thanks.
public class NewEventDialogFragment…

Devilishdil24
- 21
- 2
0
votes
1 answer
Android DialogFragment Update Views Dynamically setText
I know there are numerous posts with similar titles, but I've been searching and experimenting for hours now, and I haven't found anything that helps me, so I'm asking for help before my head explodes with frustration.
I have a dialog fragment that…

Keozon
- 998
- 10
- 25
0
votes
1 answer
How to show loading dialog using DialogFragment in koush/ion
I has written a custom HttpUtil using ion(version 2.1.6) like this:
code snippet:
HttpUtil.get(Context ctx, boolean showProgress, String url, Map params, Class returnObj).setCallback(new HttpResponseCallback(Context ctx) {
…

MikeoLeo
- 1
- 3
0
votes
0 answers
DialogFragment dismisses itself after orientation change
A similar question has been asked before, but my case is different.
I have DialogFragments all over my app. When I rotate the phone, all of the DialogFragments come back without issue except this one.
I've littered the life cycle callbacks with Log…

Tunji_D
- 3,677
- 3
- 27
- 35
0
votes
1 answer
DialogFragment (support v4) crashes the app (NPE)
I already checked a lot of same questions on StackOverflow, but I didn't find any solution to my issue.
In a DialogFragment, I call an AsyncTask method and when the result has been received from the server, I launched another DialogFragment.
Here…

Mornor
- 3,471
- 8
- 31
- 69
0
votes
1 answer
Error when alert dialog shown
I get a NullPointerException when I'm showing alert dialog, however I have no idea how to address it .
the thing is it worked a few times but now something happened.
here is the logcat :
05-10 10:59:34.937 …

yanish
- 257
- 2
- 15
0
votes
1 answer
Get object from ListAdapter/ ListView
Ok so I am trying to create an app that uses a calendar view to get create a calendar of meals and the generates a shopping list. Something I can use in my personal life. what I am running into is trying to grab a recipe from the list adapter and…

Herpuderpules
- 1
- 1
0
votes
1 answer
How to display a Dialog fragment inside location listener to trigger another activity
I have an app location listener which pops up toast alerts when the user gets within a specified distance of any point in a list. Instead of a toast popup I'd like to call a dialog fragment that, when the user selects yes, transfers the user into a…

rtg93
- 23
- 2
- 6
0
votes
1 answer
Show() Method in DialogFragment not working in android
I am calling a DialogFragment from inside a DialogFragment. The Show() method from this class is working in a specific situation only. Here is the code:
//Not Working
DialogBoxFragment dialog = new DialogBoxFragment();
Bundle args = new Bundle();
…
0
votes
1 answer
Call FragmentDialog From another one
In my Android Project I need to call my second dialog from first dialog both are Dialog Fragment. my code seems to be correct because i do the same thing from my activity to call first dialog but for second dialog it doesn't work that…

Adnan
- 814
- 12
- 38