鈽?How to use self-signed certificate with Htt psURLConnection? 鈽

by Nickname » Sat, 29 Nov 2008 11:02:02 GMT


Sponsored Links
 Currently I'm experiencing this exception

  javax.net.ssl.SSLException: Not trusted server certificate

when i try to open a SSL connection to my in-house application server
which uses my self-signed certificate.

Does anybuddy know how to fix this problem or how to add a self-signed
Certificate Authority into Android emulator at runtime thru any
Android SDK API functions?

Please help. My thanks in advance!!!



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



鈽?How to use self-signed certificate with Htt psURLConnection? 鈽

by Ralf » Sat, 29 Nov 2008 11:09:23 GMT


 Check the documentation of the SDK. It describes certificates.
R/

2008/11/28 Nickname <[EMAIL PROTECTED]>:

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


Sponsored Links


鈽?How to use self-signed certificate with Htt psURLConnection? 鈽

by Nickname » Sat, 29 Nov 2008 13:37:01 GMT


 Hey man, if I could check it out of SDK doc, I would not be here
asking for help.

MTS, if you wont help, why not save your typing efforts?!

Fortunately, i just found Justin's reply in another thread VERY
HELPFUL.




鈽?How to use self-signed certificate with Htt psURLConnection? 鈽

by Ralf » Sat, 29 Nov 2008 13:48:44 GMT


 2008/11/28 Nickname <[EMAIL PROTECTED]>:

What does "MTS" mean?

Sorry if my reply was not useful; you don't have to take it with an
attitude though.
R/


> 



Other Threads

1. ListView items appear 2 or 3 times

Hi all,

I'm having an issue with the ListView in Android.

So I have an activity extending the ListActivity, in the activity I
have an innerclass for my adapater.
Now both on my device and the emulator some entries appear 2 or 3
times in the list (not always the same items) although the size of my
List<Label> is always the same!

On the emulator I noticed that it's mostly related to the scrolling in
the list... If I scroll down some entries are duplicate, if I scroll
up and down again the entries have changed all over the list...

Is there anything in my code that you guys can see that is wrong?

Here's my code:

        ....
        this.labels = labelService.findAll();
        Collections.sort(this.labels, new LabelByNameComparator());
        Log.d(LOG_TAG, labels.size() + " labels loaded!");
        ManageLabelsListAdapter adapter = new
ManageLabelsListAdapter(labels);
        adapter.notifyDataSetChanged();
        setListAdapter(adapter);

    /**
     * The list adapater private inner-class used to display the
manage labels list.
     */
    private class ManageLabelsListAdapter extends ArrayAdapter<Label>
{
        private final String LOG_TAG =
ManageLabelsListAdapter.class.getSimpleName();
        /**
         * {@inheritDoc}
         */
        public ManageLabelsListAdapter(List<Label> labels) {
            super(ManageLabelsActivity.this,
R.layout.list_item_labels, labels);
            Log.d(LOG_TAG, "Creating the manage labels list
adapater");
        }

        @Override
        public View getView(int position, View convertView, ViewGroup
parent) {
            Log.d(LOG_TAG, "Getting view...");
            View row = convertView;
            ManageLabelsListWrapper wrapper;

            if(row == null) {
                Log.d(LOG_TAG, "Row needs to be created!");
                final Label label = labels.get(position);
                Log.d(LOG_TAG, "Label at list position " + position +
" retrieved from DB list: " + label);

                LayoutInflater inflater = getLayoutInflater();
                row = inflater.inflate(R.layout.list_item_labels,
parent, false);
                Log.d(LOG_TAG, "Label row inflated into layout!");
                wrapper = new ManageLabelsListWrapper(row);
                Log.d(LOG_TAG, "Row wrapped!");

                TextView labelName = wrapper.getLabelname_listitem();
                Log.d(LOG_TAG, "About to update the name of the label
in the view for TextView " + labelName + " with the value: " +
label.getName());
                labelName.setText(label.getName());

                ImageView deleteButton = wrapper.getBtn_delete();
                deleteButton.setOnClickListener(new
View.OnClickListener() {
                    public void onClick(View view) {
                        deleteLabel(label, true);
                    }
                });
            }

            return row;
        }
    }

-- 

2. RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

Hi,

I am using a receiver to handle the receipt of the BOOT_COMPLETED action. It
works well when I am restarting my phone (an HTC Desire HD) but not when I
use power off and then start it up. The receiver is never called and it
seems as if the BOOT_COMPLETED action is never sent. I also noticed that
some other services that run on boot don't run as well after powering off
and starting up again. I have noticed that some handsets don't provide both
the power off and restart functionality.

Any ideas?

thanks in advance!

Yorgos

-- 

3. Is it possible to have dynamicly generated keys in a preferance screen?

4. Application Shutdown

5. Map gps utk gtab

6. Flowchart of "app upgrade procedure"..?

7. Non-Market Devices Increasing