Giter Club home page Giter Club logo

drive-appdatapreferences-android's Introduction

AppdataPreferences for Android SDK

appdatapreferences-android seamlessly syncs your Android application's preferences with a remote JSON file on Google Drive's Application Data folder. Local changes are pushed to the remote file and the remote file changes are periodically polled. Periodic synchonization introduces a sync adapter, based on the existing account synchornization APIs of the Android SDK.

The sample below illustrates to how bind a Google account to a shared preferences instance. Once you're all set, sharedPreferences key/values will be synced to user's Google Drive, under your application's folder.

syncer = AppdataPreferencesSyncer.get(context);
syncer.bind(googleAccountCredential, sharedPreferences);

What can I do with AppdataPreferences?

Some of the common use cases you can easily implement by using this library are:

  • Backing up your application preferences on the cloud.
  • Sharing application preferences and application state among user's different machines.
  • Distributing content or altering application behavior by modifying user's preferences files.

Configure

In order to get started, you need to follow the steps below for the initial configuration.

  • Setup Google APIs access for your Android application.
  • Add the background service that will initiate the synchornization and syncer provider to your AndroidManifest.xml.
  • Configure sync adapter settings.

Google APIs Access

Go to APIs console and create a project if you haven't already. On the "API Access" tab, create a new client ID for installed apps and select Android. Provide your package name and certificate finger print. You can extract SHA1 footprint by executing the following command:

$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v

Our Android quickstart explains the flow more in detail on Google Developers.

Add Sync to your AndroidManifest.xml

Add the background service and the syncer provider to your AndroidManifest.xml file.

<application>
    ...
    <!-- appdatapreferences -->
    <service
        android:name="com.google.drive.appdatapreferences.AppdataSyncerService"
        android:exported="false" >
        <intent-filter>
            <action android:name="android.content.SyncAdapter" />
        </intent-filter>
        <meta-data
            android:name="android.content.SyncAdapter"
            android:resource="@xml/syncadapter" />
    </service>
    <provider
        android:name="com.google.drive.appdatapreferences.AppdataPreferencesProvider"
        android:authorities="com.google.drive.appdatapreferences"
        android:exported="false" >
        <grant-uri-permission android:pathPattern=".*" />
    </provider>
    <!-- end of appdata preferences -->

Configure Adapter Settings

Create an new XML resource (@xml/syncadapter ), and modify it to configure your sync adapter settings. A sample adapter is below:

<?xml version="1.0" encoding="utf-8"?>
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
    android:contentAuthority="com.google.drive.appdatapreferences" 
    android:accountType="com.google"
    android:userVisible="true"
    android:isAlwaysSyncable="true"
    android:supportsUploading="true" />

Authorize and Authenticate

Authorization and authentication is handled by Google Play Service's auth modules. To learn the basics, please read the official Android SDK documentaion for Google Play Services.

Initialize a GoogleAccountCredential with drive.appdata scope and let user to pick a Google Account to use.

GoogleAccountCredential credential =
    GoogleAccountCredential.usingOAuth2(this, "https://www.googleapis.com/auth/drive.appdata");
credential.setSelectedAccountName(getGoogleAccountName());

Synchronize

Once you configure you application to use the sync library, as explained in the Configuration section, you need to bind an account to a shared preferences instance:

AppdataPreferences preferences =
    AppdataPreferences.get(getApplicationContext());
syncer.bind(googleAccountCredential, sharedPreferences);

Use syncer.sync to force sync. It's useful to retrieve the remote preferences initially when application first launches.

syncer.sync();

Listen remote changes by setting syncer an onChangeListener.

syncer.setOnChangeListener(new OnChangeListener() {
  @Override
  public void onChange(SharedPreferences prefs) {
    // preferences are changed
  }
});

If background service recieves authorization errors, you can listen them by setting a OnUserRecoverableAuthExceptionListener.

syncer.setOnUserRecoverableAuthExceptionListener(new OnUserRecoverableAuthExceptionListener(){
  @Override
  public void onUserRecoverableAuthException(final UserRecoverableAuthIOException e) {
    // show user a notification to ask for permissions again.
  }
});

Manage Synchronization

Start/stop synchnonization manually.

  syncer.getSyncManager().startSync();
  syncer.getSyncManager().stopSync();
  syncer.getSyncManager().startPeriodicSync(); // reschedules syncer

A working sample application is available on appdatapreferences-android-quickstart.

License

Copyright 2013 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

drive-appdatapreferences-android's People

Contributors

cbrulak avatar rakyll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drive-appdatapreferences-android's Issues

Getting this Error: Caused by: java.lang.NoSuchMethodError: No direct method .......

java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:330)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:255)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:776)
Caused by: java.lang.NoSuchMethodError: No direct method (Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/http/HttpRequestInitializer;Ljava/lang/String;Ljava/lang/String;Lcom/google/api/client/json/JsonObjectParser;Lcom/google/api/client/googleapis/services/GoogleClientRequestInitializer;Ljava/lang/String;Z)V in class Lcom/google/api/client/googleapis/services/json/AbstractGoogleJsonClient; or its super classes (declaration of 'com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient' appears in /data/app/com.cipherhex.googleintegration-2/split_lib_dependencies_apk.apk)
at com.google.api.services.drive.Drive.(Drive.java:135)
at com.google.api.services.drive.Drive$Builder.build(Drive.java:8036)
at com.cipherhex.sync.AppdataPreferencesSyncer.getDriveService(AppdataPreferencesSyncer.java:181)
at com.cipherhex.sync.AppdataPreferencesSyncer.updateRemote(AppdataPreferencesSyncer.java:213)
at com.cipherhex.sync.AppdataPreferencesSyncer.sync(AppdataPreferencesSyncer.java:111)
at com.cipherhex.googleintegration.SettingsActivity$ForceSyncAsyncTask.doInBackground(SettingsActivity.java:185)
at com.cipherhex.googleintegration.SettingsActivity$ForceSyncAsyncTask.doInBackground(SettingsActivity.java:175)
at android.os.AsyncTask$2.call(AsyncTask.java:316)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:255) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:776) 

NPE/UserRecoverableAuthIOException, Cause=AppDownloadRequired after updating google-play-services.jar

I replaced google-play-services.jar in appdatapreferences-android\libs with the latest from Android SDK.
The appdatapreferences-android-boostrap app still runs fine, prompts for user permission the first time, and syncs periodically thereafter.

However, after the app is dismissed using the back button, a crash occurs on the next periodic sync.
This did not happen with the original google-play-services.jar included in the project.

The sync operation generates a new UserRecoverableAuthIOException (this was not the case with the original google-play-services.jar).
The exception cause is not NeedPermission but instead is AppDownloadRequired
A Null Pointer Exception then occurs in SettingsActivity's onUserRecoverableAuthException at startActivityForResult().

(The motivation for updating google-play-services.jar is because my target app uses the latest and adding a reference to appdatapreferences-android library project resulted in error "Found 2 versions of google-play-services.jar, but not all the versions are identical")

05-30 07:32:52.850: D/preferences(3350): Refreshing the screen
05-30 07:33:08.356: D/syncer(3350): Updating the remote preferences file
05-30 07:33:08.356: W/AbstractGoogleClient(3350): Application name is not set. Call Builder#setApplicationName.
05-30 07:33:08.797: D/dalvikvm(3350): GC_CONCURRENT freed 1726K, 19% free 9746K/12003K, paused 2ms+2ms
05-30 07:33:10.208: D/preferences(3350): Refreshing the screen

<<< BACK button pressed >>>

05-30 07:33:17.616: W/IInputConnectionWrapper(3350): showStatusIcon on inactive InputConnection
05-30 07:33:17.636: D/OpenGLRenderer(3350): Flushing caches (mode 0)
05-30 07:33:17.636: D/memalloc(3350): ion: Unmapping buffer base:0x5098d000 size:1949696
05-30 07:33:17.636: D/memalloc(3350): ion: Unmapping buffer base:0x50f1a000 size:1949696
05-30 07:33:17.636: D/memalloc(3350): ion: Unmapping buffer base:0x510f6000 size:1949696
05-30 07:33:18.067: D/OpenGLRenderer(3350): Flushing caches (mode 1)
05-30 07:33:18.557: D/syncer(3350): Syncing the preferences....
05-30 07:33:18.557: D/syncer(3350): Updating the local preferences file
05-30 07:33:18.567: W/AbstractGoogleClient(3350): Application name is not set. Call Builder#setApplicationName.
05-30 07:33:18.577: D/preferences(3350): Ask for permissions
05-30 07:33:18.577: W/dalvikvm(3350): threadid=13: thread exiting with uncaught exception (group=0x40ace9f0)
05-30 07:33:18.587: E/AndroidRuntime(3350): FATAL EXCEPTION: SyncAdapterThread-2
05-30 07:33:18.587: E/AndroidRuntime(3350): java.lang.NullPointerException
05-30 07:33:18.587: E/AndroidRuntime(3350): at android.content.Intent.(Intent.java:3111)
05-30 07:33:18.587: E/AndroidRuntime(3350): at com.google.android.gms.auth.UserRecoverableAuthException.getIntent(Unknown Source)
05-30 07:33:18.587: E/AndroidRuntime(3350): at com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException.getIntent(UserRecoverableAuthIOException.java:59)
05-30 07:33:18.587: E/AndroidRuntime(3350): at com.google.drive.samples.appdatapreferencesdemo.SettingsActivity.onUserRecoverableAuthException(SettingsActivity.java:144)
05-30 07:33:18.587: E/AndroidRuntime(3350): at com.google.drive.appdatapreferences.AppdataPreferencesSyncer.handleException(AppdataPreferencesSyncer.java:237)
05-30 07:33:18.587: E/AndroidRuntime(3350): at com.google.drive.appdatapreferences.AppdataPreferencesSyncer.sync(AppdataPreferencesSyncer.java:112)
05-30 07:33:18.587: E/AndroidRuntime(3350): at com.google.drive.appdatapreferences.AppdataSyncerAdapter.onPerformSync(AppdataSyncerAdapter.java:58)
05-30 07:33:18.587: E/AndroidRuntime(3350): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:247)

Getting this Please help me out Error: Caused by: java.lang.NoSuchMethodError: No direct method .......

java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:330)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:255)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:776)
Caused by: java.lang.NoSuchMethodError: No direct method (Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/http/HttpRequestInitializer;Ljava/lang/String;Ljava/lang/String;Lcom/google/api/client/json/JsonObjectParser;Lcom/google/api/client/googleapis/services/GoogleClientRequestInitializer;Ljava/lang/String;Z)V in class Lcom/google/api/client/googleapis/services/json/AbstractGoogleJsonClient; or its super classes (declaration of 'com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient' appears in /data/app/com.cipherhex.googleintegration-2/split_lib_dependencies_apk.apk)
at com.google.api.services.drive.Drive.(Drive.java:135)
at com.google.api.services.drive.Drive$Builder.build(Drive.java:8036)
at com.cipherhex.sync.AppdataPreferencesSyncer.getDriveService(AppdataPreferencesSyncer.java:181)
at com.cipherhex.sync.AppdataPreferencesSyncer.updateRemote(AppdataPreferencesSyncer.java:213)
at com.cipherhex.sync.AppdataPreferencesSyncer.sync(AppdataPreferencesSyncer.java:111)
at com.cipherhex.googleintegration.SettingsActivity$ForceSyncAsyncTask.doInBackground(SettingsActivity.java:185)
at com.cipherhex.googleintegration.SettingsActivity$ForceSyncAsyncTask.doInBackground(SettingsActivity.java:175)
at android.os.AsyncTask$2.call(AsyncTask.java:316)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:255) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:776) 

Crash

Two stacktraces:
E/AndroidRuntime( 3202): FATAL EXCEPTION: AsyncTask #3
E/AndroidRuntime( 3202): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 3202): at android.os.AsyncTask$3.done(AsyncTask.java:299)
E/AndroidRuntime( 3202): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
E/AndroidRuntime( 3202): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
E/AndroidRuntime( 3202): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
E/AndroidRuntime( 3202): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
E/AndroidRuntime( 3202): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/AndroidRuntime( 3202): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/AndroidRuntime( 3202): at java.lang.Thread.run(Thread.java:856)
E/AndroidRuntime( 3202): Caused by: java.lang.OutOfMemoryError
E/AndroidRuntime( 3202): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:94)
E/AndroidRuntime( 3202): at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:124)
E/AndroidRuntime( 3202): at java.lang.StringBuilder.append(StringBuilder.java:271)
E/AndroidRuntime( 3202): at com.google.gson.stream.JsonReader.nextString(JsonReader.java:1032)
E/AndroidRuntime( 3202): at com.google.gson.stream.JsonReader.nextValue(JsonReader.java:784)
E/AndroidRuntime( 3202): at com.google.gson.stream.JsonReader.objectValue(JsonReader.java:766)
E/AndroidRuntime( 3202): at com.google.gson.stream.JsonReader.peek(JsonReader.java:380)
E/AndroidRuntime( 3202): at com.google.gson.internal.bind.ObjectTypeAdapter.read(ObjectTypeAdapter.java:54)
E/AndroidRuntime( 3202): at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
E/AndroidRuntime( 3202): at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:188)
E/AndroidRuntime( 3202): at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:146)
E/AndroidRuntime( 3202): at com.google.gson.Gson.fromJson(Gson.java:755)
E/AndroidRuntime( 3202): at com.google.gson.Gson.fromJson(Gson.java:721)
E/AndroidRuntime( 3202): at com.google.gson.Gson.fromJson(Gson.java:670)
E/AndroidRuntime( 3202): at com.google.drive.appdatapreferences.AppdataPreferencesSyncer.updateLocal(AppdataPreferencesSyncer.java:218)
E/AndroidRuntime( 3202): at com.google.drive.appdatapreferences.AppdataPreferencesSyncer.sync(AppdataPreferencesSyncer.java:109)

and

E/dalvikvm-heap( 3202): Out of memory on a 9033410-byte allocation.
I/dalvikvm( 3202): "AsyncTask #3" prio=5 tid=21 RUNNABLE
I/dalvikvm( 3202): | group="main" sCount=0 dsCount=0 obj=0x41c4ab88 self=0x61c69468
I/dalvikvm( 3202): | sysTid=4283 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1074332888
I/dalvikvm( 3202): | state=R schedstat=( 3796668000 1838199000 14458 ) utm=330 stm=49 core=3
I/dalvikvm( 3202): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:~94)
I/dalvikvm( 3202): at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:124)
I/dalvikvm( 3202): at java.lang.StringBuilder.append(StringBuilder.java:271)
I/dalvikvm( 3202): at com.google.gson.stream.JsonReader.nextString(JsonReader.java:1032)
I/dalvikvm( 3202): at com.google.gson.stream.JsonReader.nextValue(JsonReader.java:784)
I/dalvikvm( 3202): at com.google.gson.stream.JsonReader.objectValue(JsonReader.java:766)
I/dalvikvm( 3202): at com.google.gson.stream.JsonReader.peek(JsonReader.java:380)
I/dalvikvm( 3202): at com.google.gson.internal.bind.ObjectTypeAdapter.read(ObjectTypeAdapter.java:54)
I/dalvikvm( 3202): at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
I/dalvikvm( 3202): at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:188)
I/dalvikvm( 3202): at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:146)
I/dalvikvm( 3202): at com.google.gson.Gson.fromJson(Gson.java:755)
I/dalvikvm( 3202): at com.google.gson.Gson.fromJson(Gson.java:721)
I/dalvikvm( 3202): at com.google.gson.Gson.fromJson(Gson.java:670)
I/dalvikvm( 3202): at com.google.drive.appdatapreferences.AppdataPreferencesSyncer.updateLocal(AppdataPreferencesSyncer.java:218)
I/dalvikvm( 3202): at com.google.drive.appdatapreferences.AppdataPreferencesSyncer.sync(AppdataPreferencesSyncer.java:109)
I/dalvikvm( 3202): at com.brulak.android.plasma.LoginActivity$ForceSyncAsyncTask.doInBackground(LoginActivity.java:459)
I/dalvikvm( 3202): at com.brulak.android.plasma.LoginActivity$ForceSyncAsyncTask.doInBackground(LoginActivity.java:450)
I/dalvikvm( 3202): at android.os.AsyncTask$2.call(AsyncTask.java:287)
I/dalvikvm( 3202): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
I/dalvikvm( 3202): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
I/dalvikvm( 3202): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
I/dalvikvm( 3202): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
I/dalvikvm( 3202): at java.lang.Thread.run(Thread.java:856)

Symptoms/situation:

Ran a force sync of preferences on a network with bad wifi. This may have been a weak signal or a port was blocked (does drive use any other port than 80?).

Remote preferences are not downloaded on first sync

The remote preferences are never downloaded on the first sync.

If the mPreferences is unpopulated the map from mPreferences.getAll() will have 0 elements but will not be null. The resulting string generated by the GSON.toJson(values) call will not be null but will be 0 length.

mLastSyncedJson is null since it is not initialized. The logic for determining the remote or local copy to be synced is:

localJson != null && !localJson.equals(mLastSyncedJson)

this will always be true since localJson will never be null and the equals method will always return false since mLastSyncedJson is null.

So, remote preferences will not be downloaded and instead an empty string is uploaded to Drive which replaces the remote preferences.

A pull request will follow shortly.

Application ended/crashed by dalvikvm

Currently, when appdata preferences are synced by the Appdatapreferences syncer concurrently with an async task(in the application), the application is ended. I don't know if this can be deemed as a crash as there are not many log messages except these -
08-14 23:49:13.727: D/dalvikvm(8836): GC_CONCURRENT freed 324K, 4% free 8812K/9164K, paused 4ms+5ms, total 43ms
08-14 23:49:13.977: D/dalvikvm(8836): GC_CONCURRENT freed 334K, 4% free 8971K/9324K, paused 6ms+5ms, total 64ms
08-14 23:49:14.024: D/libEGL(8836): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
08-14 23:49:14.024: D/libEGL(8836): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
08-14 23:49:14.032: D/libEGL(8836): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
08-14 23:49:14.102: D/OpenGLRenderer(8836): Enabling debug mode 0
08-14 23:49:27.508: D/dalvikvm(8836): GC_CONCURRENT freed 203K, 3% free 9178K/9408K, paused 4ms+6ms, total 32ms
08-14 23:49:27.602: D/dalvikvm(8836): GC_CONCURRENT freed 458K, 6% free 9221K/9708K, paused 2ms+2ms, total 22ms
08-14 23:49:27.602: D/dalvikvm(8836): WAIT_FOR_CONCURRENT_GC blocked 15ms
08-14 23:49:27.633: D/dalvikvm(8836): GC_CONCURRENT freed 429K, 6% free 9199K/9752K, paused 3ms+2ms, total 17ms
08-14 23:49:27.633: D/dalvikvm(8836): WAIT_FOR_CONCURRENT_GC blocked 14ms
08-14 23:49:30.078: D/dalvikvm(8836): GC_CONCURRENT freed 265K, 5% free 9328K/9752K, paused 3ms+6ms, total 42ms
08-14 23:49:34.735: D/dalvikvm(8836): GC_CONCURRENT freed 193K, 3% free 9529K/9752K, paused 3ms+6ms, total 34ms
08-14 23:49:34.805: D/syncer(8836): Syncing the preferences....
08-14 23:49:34.828: D/syncer(8836): Updating the remote preferences file
08-14 23:49:34.836: W/AbstractGoogleClient(8836): Application name is not set. Call Builder#setApplicationName.
08-14 23:49:34.938: D/dalvikvm(8836): GC_CONCURRENT freed 592K, 7% free 9443K/10064K, paused 4ms+14ms, total 46ms
08-14 23:49:35.094: A/libc(8836): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 8882 (SyncAdapterThre)

A fatal signal 11(SIGSEGV) and the application is abruptly ended. Currently, this issue only occurs on Android 4.2.2 (Galaxy Nexus). Any guidance will be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.