Fwd: Android cupcacke for Openmoko freerunner

by Davide » Tue, 24 Feb 2009 17:11:42 GMT

Sponsored Links
 There is anywhere a image for openmoko freerunner
with cupcacke version of android?



Other Threads

1. A simple live wallpaper


i just include a new live wallpaper in the market...


it costs 99 cents...

i want some opinions about this kind of strategy...

its a good way for livewallpapers? for games its ok, but for livewallpapers
i am not sure...






2. SSL handsshake error with pkcs12 keystore


I try to set up a secure connection via SSL. I get the following
handshake error:

java.io.IOException: SSL handshake failure: Failure in SSL library,
usually a protocol error error:14094410:SSL
routines:SSL3_READ_BYTES:sslv3 alert handshake failure

My App creates a certificate request, send it to a server and get an
certificate (pem string).
I store the certificate as a .p12 file (PKCS12). This works well so
far... But  when i try to access the webservice with a httpclient i
get the handshake error..

some code snippets:

//creating the pkcs12 file
FileOutputStream fOut = new FileOutputStream(certPath);
store = KeyStore.getInstance("PKCS12");
store.load(null, null);
store.setKeyEntry("alias", keyPair, "password".toCharArray(), chain);
store.store(fOut, "".toCharArray());

//loading the keystore for preparing the ssl connection
trusted = KeyStore.getInstance(KeyStore.getDefaultType());
File directory = getDir("data", Context.MODE_PRIVATE);
String fileName = directory.getAbsolutePath() + "/cert.p12";
FileInputStream fis = new FileInputStream(fileName);
trusted.load(fis, "".toCharArray());

//httpclient init
HttpParams parameters = new BasicHttpParams();
SchemeRegistry schemeRegistry = new SchemeRegistry();

schemeRegistry.register(new Scheme("https", SSLSF, 443));
ClientConnectionManager manager = new ThreadSafeClientConnManager(
parameters, schemeRegistry);
HttpClient httpclient = new DefaultHttpClient(manager, parameters);

HttpPost httppost = new HttpPost(URL);
httppost.setHeader("Content-Type",  "text/xml; charset=UTF-8");
httppost.setHeader("SOAPAction",  SOAP_ACTION);

final StringBuffer soap = new StringBuffer();

HttpEntity entity = new StringEntity(soap.toString());
HttpResponse response = httpclient.execute(httppost);  //fails with
the handshake error...

Many thanks in advance!


3. Java code limited to ~24Mb memory and NDK code has no limit?

4. ContentProviders and authentication

5. Emulator not booting

6. Build error - sun/security/x509/X500Name

7. gsm atau cdma