Problems with the SDK using Ubuntu 10.04 64 bit

by Joshua LÁúČckers » Wed, 14 Apr 2010 03:03:42 GMT


Sponsored Links
 I have downloaded the SDK and installed the necessary plugins for
Eclipse to start developing Android applications.
Whenever I try to start the ddms I get the following error(s):

18:57 E/ddms: shutting down due to uncaught exception
18:57 E/ddms: java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or swt-
gtk in swt.library.path, java.library.path or the jar file
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
        at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
        at com.android.ddms.UIThread.runUI(UIThread.java:420)
        at com.android.ddms.Main.main(Main.java:105)

I am using the open jdk and I already installed the package libswt-
gtk-3.5-java.
Does anyone know how to solve this problem?

--



Other Threads

1. Atul Raut wants to chat

-----------------------------------------------------------------------

Atul Raut wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-f1868ff544-b358b8ef65-6Bwpp580cdXJIhugyqARUWh-m_w
You'll need to click this link to be able to chat with Atul Raut.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Atul Raut, visit:
http://mail.google.com/mail/a-f1868ff544-b358b8ef65-6Bwpp580cdXJIhugyqARUWh-m_w

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 

2. Nested dialog and have a child dialog return a string to update EditText file in Parent Dialog, is this possible?

How to do this part correctly?
// Start How do I do this part correction?

                                        EditText ppString = (EditText)
layout1.findViewById(R.id.p_string);
                                        ppString.setText(pString);

// End How do I do this part correction?

I try to put in handler -> runInUIThread seems that I cannot declare
layout1.findViewById(R.id.p_string), if I use only
findViewById(R.id.p_string) I can run but crash.

What I want to do is to have user input a form display as dialog
format, pressing a button will start a child dialog (dialog2)
accepting some radio button to generate a String result to update and
display a EditText field in Dialog1.

Is this possible? How do I do it?

---code---
        @Override
    protected Dialog onCreateDialog(int id) {
        switch (id) {
                case ADD_DIALOG_ID:
                LayoutInflater inflater1 = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                final View layout1 =
inflater1.inflate(R.layout.add_pwd, (ViewGroup)
findViewById(R.id.content0));
                final AlertDialog.Builder builder1 = new
AlertDialog.Builder(this);

                final Button genButton = (Button)
layout1.findViewById(R.id.genpass_button);

                genButton.setOnClickListener(new
Button.OnClickListener() {
                                @Override
                                public void onClick(View v) {
                                        showDialog(GEN_DIALOG_ID);

// Start How do I do this part correction?

                                        EditText ppString = (EditText)
layout1.findViewById(R.id.p_string);
                                        ppString.setText(pString);

// End How do I do this part correction?

                                }
                        });

                builder1.setView(layout1);
                // Now configure the AlertDialog
                builder1.setTitle(R.string.app_name);
                AlertDialog newPDialog = builder1.create();
                return newPDialog;

                case GEN_DIALOG_ID:
                        Main.this.removeDialog(ADD_DIALOG_ID);
                LayoutInflater inflater2 = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                final View layout2 =
inflater2.inflate(R.layout.generate_pwd, (ViewGroup)
findViewById(R.id.generate_pwd));
                final AlertDialog.Builder builder2 = new
AlertDialog.Builder(this);

                RadioGroup radioGroup = (RadioGroup)
layout2.findViewById(R.id.password_type);
                radioGroup.setOnCheckedChangeListener(new
OnCheckedChangeListener()
                {
                                @Override
                    public void onCheckedChanged(RadioGroup group, int
checkedId) {
                        //---displays the ID of the RadioButton that
is checked---
                        switch (checkedId) {
                        case R.id.this:
                            ToastBox("Lowercase");
                            Type = "-l";
                                break;
                        case R.id.that:
                            ToastBox("Uppercase");
                            passwordType = "-u";
                                break;
                        }
                    }
                });

                builder2.setView(layout2);
                // Now configure the AlertDialog
                builder2.setTitle(R.string.sword_type);

                builder2.setPositiveButton(android.R.string.ok, new
DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int
whichButton) {
                        try {
                                final EditText pLength = (EditText)
layout2.findViewById(R.id.p_length);
                                ppLength =
Integer.parseInt(pLength.getText().toString());
                                                        pString = 
PGenerator.GetRandomP(pType, pLength);
                                                } catch (Exception e) {
                                                        // TODO Auto-generated 
catch block
                                                        e.printStackTrace();
                                                }
                                                
Main.this.removeDialog(GEN_DIALOG_ID);
                                                showDialog(ADD_DIALOG_ID);
                        }
                });

                builder2.setNegativeButton(android.R.string.cancel, new
DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int
whichButton) {
                                // We forcefully dismiss and remove the Dialog, 
so it
                                // cannot be used again (no cached info)
                                Main.this.removeDialog(GENPASSWORD_DIALOG_ID);
                        }
                });

                AlertDialog genPasswordDialog = builder2.create();
                return genPasswordDialog;
        }
                return null;
        }

-- 

3. Contact Icons

4. UI Monkey questions

5. launching child preference screen when we start activity

6. LG Ally, Windows Vista, downloaded USB 3, but ADB does not show on Device Manager

7. minimum ram to run Android 2.2