Custom SSL handling stopped working on Android 2.2 FroYo

Here is the answer, with many, many thanks to a helpful Seesmic developer willing to share the fix: In the custom socket factory, the socket creation (with createSocket) has apparently been changed specifically for the SSLSocketFactory implementation. So the old: @Override public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException { … Read more

Android SDK Manager gives “Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml” error when selecting repository

Try this solution and it worked. this problem is caused because ADB is unable to connect to the android servers to fetch updates. (If at home try turning off firewall) Goto Android SDK Manager c://android-sdk-windows/ open SDK-Manager Click Settings – Will be asked for a proxy. If have one enter the IP address and the … Read more

Can I get data from shared preferences inside a service?

You can access the default shared preferences instance, which is shared across all your Activity and Service classes, by calling PreferenceManager.getDefaultSharedPreferences(Context context): SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); This is great for storing simple primitives (like booleans) or serializable objects. However, if you’re capturing a lot of location data, you might consider using a SQLite database instead.