I've seen Q&A's about dialogs in fragments, for which the solution was to use a DialogFragment, see here for example. but I'm already compelled to be using a WebFragment - so is it impossible for me to show a dialog from that?
            Asked
            
        
        
            Active
            
        
            Viewed 41 times
        
    1 Answers
1
            No it is not impossible. Use an AlertDialog.Builder to display a dialog at runtime. It's very easy to use. Check this answer
 
    
    
        Community
        
- 1
- 1
 
    
    
        Bogdan Alexandru
        
- 5,394
- 6
- 34
- 54
- 
                    Pass the fragment's `getActivity()` method, e.g.: `new AlertDialog.Builder(this.getActivity())` – Bogdan Alexandru Jul 04 '13 at 13:16
- 
                    Perfect. Thanks. Will mark as correct as soon as SO allows me. – Mick Jul 04 '13 at 13:18
