SSL Cert Issue javax.net.ssl.SSLException: Not trusted server certificate

by Loki117 » Tue, 29 Jun 2010 04:21:32 GMT


Sponsored Links
 Hey Guys,

I get the following issue javax.net.ssl.SSLException: Not trusted
server certificate when contacting a server via a 3G network only. Has
anyone else seen this issue?

Thanks guys,

Tom

--



Other Threads

1. How to change ClassLoader of Activity

Hi,
I newed a DexClassLoader to load one jar file dynamicly:

DexClassLoader cl = new DexClassLoader("my.jar",
                getFilesDir().getAbsolutePath(),
                null,
                this.getClassLoader());

It is OK to loadClass and execute method with reflection like below:

Class<?> handler = Class.forName(handlerClassName);
         Method m = handler.getDeclaredMethod(
                "addMyPreferences",
                Class.forName("android.content.Context"),
 
Class.forName("android.preference.PreferenceCategory"),
                Class.forName("java.lang.String"));
         m.invoke(handler.newInstance(), this, mExtraSettingsCategory,
defaultValue);

I want the new classloader to be the one of my activity so I can new
instance and execute method more easily like below:

HandlerClass hc = new HandlerClass();
hc.addMyPreferences(activity,category,"test");

I think I have to set my cl to be default ClassLoader of Activity.
After googling web, some google guy suggest to use
Thread.currentThread().setContextClassLoader(cl) to achieve similar
thing.

However, it does not work.
I found Thread.currentThread().getContextClassLoader() is different
from Activity.class.getClassLoader().
So event I changed Thread's context classloader, Activity's
classloader is not my cl.

My question is how to change Activity's ClassLoader?

-- 

2. Placing focusable & clickable views in a custom expanded view in the notification bar

Hi!

Has anyone tried to put Views, e.g. Buttons, into a list item of the
notification bar?
In my opinion this would be really helpful for actions that should be
accessible in a very fast manner, like activating/deactivating WiFi or
the 3G network. In fact I saw something like this implementet on the
Samsung Galaxy S device, and now I am trying to achieve the same for
all devices.

I created a custom Notification using this guide:
http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView

Placing two buttons in my own layout was easy. But here is the
problem: The class RemoteViews ( 
http://developer.android.com/reference/android/widget/RemoteViews.html
) has a method called setOnClickPendingIntent(int viewId,
PendingIntent  pendingIntent), but it doesn't seem to work. The
buttons are not focusable nor clickable, only the whole list item as
such is clickable. And when it is clicked the PendingIntent of the
notification is executed, not the PendingIntent of one of my buttons.

Any suggestions?


Regards

Marc Reichelt   ||   http://www.marcreichelt.de/

-- 

3. Mod: Invitation, Bada Developer Day

4. Paging HTC Tattoo user

5. ContentProvider onCreate() onDestroy()

6. Problem Using Geocoder

7. Arabic :(