Closed zznam closed 6 years ago
Also cant run this on android 4.4.4, exactly the same stack-trace. Wondering if it has anything to do with the SSL issues in android 4.4.4.
I found a solution from this project https://github.com/yurifariasg/android-google-speech-sample `
// Required to support Android 4.x.x (patches for OpenSSL from Google-Play-Services)
try {
ProviderInstaller.installIfNeeded(getApplicationContext());
} catch (GooglePlayServicesRepairableException e) {
// Indicates that Google Play services is out of date, disabled, etc.
e.printStackTrace();
// Prompt the user to install/update/enable Google Play services.
GooglePlayServicesUtil.showErrorNotification(
e.getConnectionStatusCode(), getApplicationContext());
return;
} catch (GooglePlayServicesNotAvailableException e) {
// Indicates a non-recoverable error; the ProviderInstaller is not able
// to install an up-to-date Provider.
e.printStackTrace();
return;
}`
Yeah i came across that, unfortunately i'm working on a robot that makes it awkward to install google play services. The app isn't really intended for the general phone market. I've injecting my own socket factory to replace the one used by okhttp for the api calls but no joy. I had similar problems connecting to my server via the robot but managed to fix them with the custom socket factory. I'll keep plugging away. You've increased the probability that this is indeed related to the SSL problems so that should help to narrow down a solution. Thanks.
Can't run this sample on android 4.4.4 This error appears: