Clone a JSONArray

by AusR » Tue, 26 May 2009 22:19:25 GMT


Sponsored Links
 What's the most efficient way to clone a JSONArray?
--~--~---------~--~----~------------~-------~--~----~



Clone a JSONArray

by Mariano Kamp » Tue, 26 May 2009 22:22:48 GMT


 Stringcopy?





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Problem download source code in linux (ubuntu 8.04)

Thank you very much.  Your solution works very well.  Thanks again~ [?][?][?]

2008/11/18 fajaven <faja...@gmail.com>









> 

2. AlertDialog setSingleChoiceItems

Hello,

I have an AlertDialog with single choice items, but these items
sometimes change, so I have to update the radio buttons every time
when the dialog is showed.
I know there is a method called onPrepareDialog but the dialog doesn't
have the setSingleChoiceItems, only the Builder.

Here is my onCreateDialog:

protected Dialog onCreateDialog(int id) {
                Dialog dialog;
                
                case DIALOG_SOMETHING:
                {
                        final CharSequence[] radiobuttons;
                        int checked;
                        
                        //... here I fill radiobuttons array and set the 
checked item.
                                                
                        // create dialog
                        AlertDialog.Builder builder = new 
AlertDialog.Builder(this);
            builder.setTitle("title")
            .setSingleChoiceItems(radiobuttons, checked, new
DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int radioitem)
                {
                        // ...
                }
            })
            .setPositiveButton("OK", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int id)
                {
                        // ...
                }
            });

                        dialog = builder.create();

                        break;
                }


                default:
                        dialog = null;
                }

                return dialog;
        }


If I copy this code to onPrepareDialog, nothing happens. :-(  The
dialog doesn't update my radiobuttons.
What can I do?

Evi

--~--~---------~--~----~------------~-------~--~----~

3. Possible to rescan sd-card with Media Scanner?

4. Avoid "Force Close Message Box"

5. Can not see my devices on adb devices or DDMS

6. Can Ascender Compact Asian Fonts support for Myanmar Language

7. Multitouch di G1 & nebudroid