0

I am developing android apps in that i want to develop dialog using SherlockDialogFragment for support all version of the android and this dialog having 4 edittext so user can fill the data and submit it,so my dialog is like following image.1

dialog-

enter image description here

I am already used Dialog class but i don't want to use Dialog. I want to implement DialogFragment for supporting multiple screens as per resolution. i googled but i don't understand how to use Dialogfragment.
please anybody suggest me some answer.

Thanks in advance

nilesh wani
  • 1,261
  • 5
  • 18
  • 30
  • What is the thing you don't understand? Have you read [this](http://android-developers.blogspot.ro/2012/05/using-dialogfragments.html) – bogdan Jul 01 '13 at 09:40
  • How to return string from this DialogFragment to Activity from where this DialogFragment was called? – nilesh wani Jul 01 '13 at 10:02
  • public class KeepOnHoldDialog extends DialogFragment{ @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view= inflater.inflate(R.layout.add_onhold, container); getDialog().getWindow().setSoftInputMode( LayoutParams.FILL_PARENT); return view; } }
    "Encountered exeception like" : java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ojaswitech.bookinscape/com.ex.bs.KeepOnHoldDialog}: java.lang.ClassCastException: com.ex.bs.KeepOnHoldDialog
    – nilesh wani Jul 01 '13 at 10:22
  • google it a bit, for example [this](http://stackoverflow.com/questions/10905312/receive-result-from-dialogfragment) or [this](http://stackoverflow.com/questions/12622742/get-value-from-dialogfragment) – bogdan Jul 01 '13 at 10:24

0 Answers0