android Google Play Warning: SSL Error Handler Vulnerability

To properly handle SSL certificate validation, change your code to invoke SslErrorHandler.proceed() whenever the certificate presented by the server meets your expectations, and invoke SslErrorHandler.cancel() otherwise. For example, I add an alert dialog to make user have confirmed and seems Google no longer shows warning. @Override public void onReceivedSslError(WebView view, final SslErrorHandler handler, SslError error) … Read more

onConnectionFailed giving SIGN_IN_REQUIRED(4)

I had the same problem. From documentation: The client may choose to continue without using the API or it may call startResolutionForResult(Activity, int) to prompt the user to sign in. So you should try to sign in by using startResolutionForResult() function @Override public void onConnectionFailed(ConnectionResult result) { if (result.hasResolution()) { try { // !!! result.startResolutionForResult(this, … Read more

App not compatible with tablet

The tablet may not support some of the features that your app requires. You can make them “not required” for the app (that means that you should check if they are actually available before using them in the code). It is done like that: <!– features –> <uses-feature android:name=”android.hardware.telephony” android:required=”false” /> Other possible features are: … Read more

Crawling the Google Play store

First of all, Google Play’s robots.txt does NOT disallow the pages with base “/store/apps”. If you want to crawl Google Play you would need to develop your own web crawler, parse the HTML page and extract the app meta-data you need (e.g. title, descriptions, price, etc). This topic has been covered in this other question. … Read more

Play store reports “Your device isn’t compatible with this version” but it installs via adb just fine on Nexus7

That’s completely correct this behavior: please refer to the official documentation here http://developer.android.com/guide/topics/manifest/uses-feature-element.html. That’s the relevant part: Declared <uses-feature> elements are informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application. However, other services (such as Google Play) or applications may check your … Read more

This app won’t run unless you update Google Play services error

In the Android SDK Manager, you must install “Google APIs (x86 System Image)” under “Android 4.4.2 (API 19)”. Quit Eclipse and restart it. Then create a new android virtual device in AVD manager and choose “Google APIs x86 (Google Inc.) – API Level 19” as target. Check “Use Host GPU” to ensure the drawing of … Read more

“com.example is restricted” when uploading APK to Play Store

In Android Studio after renaming Package then go “build.gradle (Module:App) defaultConfig { applicationId “com.example.android.abc” minSdkVersion 9 targetSdkVersion 22 versionCode 1 versionName “1.0” } change the line applicationId “com.example.android.abc” to applicationId “com.tanxe.android.abc” relpace “tanxe” with the word you want or your Organization name i.e. your new package name and rebuild the project

You uploaded an APK that is not zip aligned error

You can run zipalign manually in command line: zipalign [-f] [-v] <alignment> infile.apk outfile.apk Note that zipalign is located inside ${sdk.dir}\tools For more details visit zipalign [Update] Also, If you need to sign it you can run: jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore YOURKEYSTORE unsigned.apk alias_name (jarsigner is located inside java JDK_HOME/bin)