I'm working on an android app that uses firebase storage. The app basically uses a few gestures out of which one is used to open the camera. The clicked photo is then saved to firebase storage. The app runs fine on my end and the clicked photo gets stored into firebase. But the issue is that one of my friends is working with me on this app and we are using the same gradle and android version and I have given her the owner rights for this project on firebase console, but despite that, the app on her device doesn't store the image on the firebase. In all, the app opens the camera on her device, the photo is clicked and then the app stops. Can anyone suggest a fix that is missing here???
logs:
06-14 21:26:12.868 16911-16911/com.example.arshi.auxilio I/art: Late-enabling -Xcheck:jni
06-14 21:26:13.057 16911-16911/com.example.arshi.auxilio D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
06-14 21:26:13.059 16911-16911/com.example.arshi.auxilio D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
06-14 21:26:13.093 16911-16911/com.example.arshi.auxilio I/FirebaseInitProvider: FirebaseApp initialization successful
06-14 21:26:13.199 16911-16954/com.example.arshi.auxilio I/FA: App measurement is starting up, version: 12451
06-14 21:26:13.199 16911-16954/com.example.arshi.auxilio I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
06-14 21:26:13.200 16911-16954/com.example.arshi.auxilio I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.arshi.auxilio
06-14 21:26:13.360 16911-16911/com.example.arshi.auxilio D/ContextHelper: convertTheme. context->name=com.example.arshi.auxilio themeResourceId=2131362077
06-14 21:26:13.408 16911-16911/com.example.arshi.auxilio W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
06-14 21:26:13.434 16911-16911/com.example.arshi.auxilio I/PhoneWindow: [generateLayout] setColorNavigationBar => color=0x ff000001
06-14 21:26:13.443 16911-16911/com.example.arshi.auxilio D/PhoneWindowEx: [PWEx][generateLayout] setNavigationBarColor2 : colors=0xff000000
06-14 21:26:13.443 16911-16911/com.example.arshi.auxilio I/PhoneWindow: [setNavigationBarColor2] color=0x ff000000
06-14 21:26:13.537 16911-16911/com.example.arshi.auxilio I/Activity: Activity.onPostResume() called
06-14 21:26:13.537 16911-16954/com.example.arshi.auxilio I/FA: Tag Manager is not found and thus will not be used
06-14 21:26:13.551 16911-16981/com.example.arshi.auxilio D/OpenGLRenderer: Render dirty regions requested: true
06-14 21:26:13.553 16911-16981/com.example.arshi.auxilio I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: ()
OpenGL ES Shader Compiler Version: E031.25.03.00
Build Date: 03/02/15 Mon
Local Branch: LA.BF.1.1.2_RB1-AU017-20150302-1163306-1163307-1163308-1163309
Remote Branch:
Local Patches:
Reconstruct Branch:
06-14 21:26:13.555 16911-16981/com.example.arshi.auxilio I/OpenGLRenderer: Initialized EGL, version 1.4
06-14 21:26:13.572 16911-16981/com.example.arshi.auxilio D/OpenGLRenderer: Enabling debug mode 0
06-14 21:26:13.583 16911-16911/com.example.arshi.auxilio D/Atlas: Validating map...
06-14 21:26:13.623 16911-16911/com.example.arshi.auxilio I/art: Thread[1,tid=16911,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x759b61f8,"main"] recursive attempt to load library "/system/lib/libhook_jni.so"
06-14 21:26:13.634 16911-16911/com.example.arshi.auxilio E/MediaProfilesEx-JNI: register_com_lge_media_MediaProfilesEx
06-14 21:26:13.634 16911-16911/com.example.arshi.auxilio E/MediaRecorderEx-JNI: register_com_lge_media_MediaRecorderEx
06-14 21:26:13.634 16911-16911/com.example.arshi.auxilio D/AudioSystemEx: register_com_lge_media_LGAudioSystem
06-14 21:26:13.635 16911-16911/com.example.arshi.auxilio E/SurfaceControlEx: register_com_lge_view_SurfaceControlEx
06-14 21:26:13.636 16911-16911/com.example.arshi.auxilio I/art: Thread[1,tid=16911,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x759b61f8,"main"] recursive attempt to load library "/system/lib/libhook_jni.so"
06-14 21:26:13.636 16911-16911/com.example.arshi.auxilio D/LGMtpDatabaseJNI: register_android_mtp_LGMtpDatabase
06-14 21:26:13.637 16911-16911/com.example.arshi.auxilio I/art: Thread[1,tid=16911,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x759b61f8,"main"] recursive attempt to load library "/system/lib/libhook_jni.so"
06-14 21:26:13.638 16911-16911/com.example.arshi.auxilio D/LGMtpServerJNI: register_android_mtp_LGMtpServer
06-14 21:26:13.639 16911-16911/com.example.arshi.auxilio I/art: Thread[1,tid=16911,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x759b61f8,"main"] recursive attempt to load library "/system/lib/libhook_jni.so"
06-14 21:26:13.639 16911-16911/com.example.arshi.auxilio E/MediaPlayerEx-jni: register_com_lge_view_MediaPlayerEx
06-14 21:26:13.640 16911-16911/com.example.arshi.auxilio I/art: Thread[1,tid=16911,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x759b61f8,"main"] recursive attempt to load library "/system/lib/libhook_jni.so"
[ 06-14 21:26:13.640 16911:16911 D/ ]
register_com_lge_emoji_EmojiUtil
06-14 21:26:13.725 16911-16911/com.example.arshi.auxilio I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#2d5a4469 time:103121285
Related
Good day,
My application was working for months now, but all of a sudden it is stuck on splash screen, when using both Android Studio and the live App on Google Play. And I haven't done any change to the app of resent.
Please, anyone help?
Below is the logcat debug result. Thank you
04-08 12:55:42.685 5650-5650/? I/art: Not late-enabling -Xcheck:jni (already on)
04-08 12:55:42.818 5650-5650/com.remmy.wisdomnuggets I/MultiDex: VM with version 2.1.0 has multidex support
04-08 12:55:42.819 5650-5650/com.remmy.wisdomnuggets I/MultiDex: Installing application
04-08 12:55:42.819 5650-5650/com.remmy.wisdomnuggets I/MultiDex: VM has multidex support, MultiDex support library is disabled.
04-08 12:55:42.875 5650-5665/com.remmy.wisdomnuggets W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
04-08 12:55:43.172 5650-5672/com.remmy.wisdomnuggets W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
04-08 12:55:43.175 5650-5650/com.remmy.wisdomnuggets D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
04-08 12:55:43.175 5650-5650/com.remmy.wisdomnuggets I/FirebaseInitProvider: FirebaseApp initialization successful
04-08 12:55:43.211 5650-5672/com.remmy.wisdomnuggets I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
04-08 12:55:43.212 5650-5672/com.remmy.wisdomnuggets I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
04-08 12:55:43.223 5650-5650/com.remmy.wisdomnuggets W/com.facebook.UserSettingsManager: Please set a value for AutoLogAppEventsEnabled. Set the flag to TRUE if you want to collect app install, app launch and in-app purchase events automatically. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-android#disable-auto-events.
04-08 12:55:43.223 5650-5650/com.remmy.wisdomnuggets W/com.facebook.UserSettingsManager: You haven't set a value for AdvertiserIDCollectionEnabled. Set the flag to TRUE if you want to collect Advertiser ID for better advertising and analytics results. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-android#disable-auto-events.
04-08 12:55:43.307 5650-5650/com.remmy.wisdomnuggets I/Hash: Generating for fb.....
04-08 12:55:43.310 5650-5650/com.remmy.wisdomnuggets I/Hashkey: WyU474QvS8TLhPp4Dfi/GTzGyOA=
04-08 12:55:43.355 5650-5679/com.remmy.wisdomnuggets I/FA: App measurement is starting up, version: 16250
04-08 12:55:43.355 5650-5679/com.remmy.wisdomnuggets I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
04-08 12:55:43.355 5650-5679/com.remmy.wisdomnuggets I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.remmy.wisdomnuggets
04-08 12:55:43.355 5650-5679/com.remmy.wisdomnuggets D/FA: Debug-level message logging enabled
04-08 12:55:44.748 5650-5650/com.remmy.wisdomnuggets W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
04-08 12:55:44.812 5650-5650/com.remmy.wisdomnuggets I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
04-08 12:55:44.812 5650-5650/com.remmy.wisdomnuggets I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
04-08 12:55:45.042 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.ManagementUtil.Management: Setting : Working
04-08 12:55:45.042 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.DbQuery: Setting : Working
04-08 12:55:45.042 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.FavouriteQueries: Setting : Working
04-08 12:55:45.042 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.FileQueries: Setting : Working
04-08 12:55:45.043 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.DownloadQueries: Setting : Working
04-08 12:55:45.043 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.Mp3Queries: Setting : Working
04-08 12:55:45.043 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.PurchaseQueries: Setting : Working
04-08 12:55:45.043 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.QueryFactory: Setting : Working
04-08 12:55:45.043 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.DatabaseUtil.QueryRunner: Setting : Working
04-08 12:55:45.058 5650-5650/com.remmy.wisdomnuggets E/JSON: {"functionality":"admob_configuration"}
04-08 12:55:45.060 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.ManagementUtil.Management: Setting : RequestObject{serverUrl='null', requestType='null', photoKeyword='null', perPage='60', page='1', pictureId='null', json='{"functionality":"admob_configuration"}', firstRequest=true, connectionType=UI, connection=ADMOB}
04-08 12:55:45.110 5650-5679/com.remmy.wisdomnuggets I/FA: Tag Manager is not found and thus will not be used
04-08 12:55:45.121 5650-5679/com.remmy.wisdomnuggets D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=Splash, firebase_screen_id(_si)=-9200293164657975561}]
04-08 12:55:45.129 5650-5718/com.remmy.wisdomnuggets D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-08 12:55:45.913 5650-5718/com.remmy.wisdomnuggets I/OpenGLRenderer: Initialized EGL, version 1.4
04-08 12:55:45.914 5650-5718/com.remmy.wisdomnuggets W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
04-08 12:55:45.942 5650-5718/com.remmy.wisdomnuggets D/EGL_emulation: eglCreateContext: 0xaa9d34c0: maj 2 min 0 rcv 2
04-08 12:55:45.989 5650-5718/com.remmy.wisdomnuggets D/EGL_emulation: eglMakeCurrent: 0xaa9d34c0: ver 2 0 (tinfo 0x9dd59780)
04-08 12:55:46.020 5650-5725/com.remmy.wisdomnuggets W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
04-08 12:55:46.021 5650-5672/com.remmy.wisdomnuggets W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
04-08 12:55:46.021 5650-5672/com.remmy.wisdomnuggets I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
04-08 12:55:46.021 5650-5672/com.remmy.wisdomnuggets I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
04-08 12:55:46.073 5650-5718/com.remmy.wisdomnuggets D/EGL_emulation: eglMakeCurrent: 0xaa9d34c0: ver 2 0 (tinfo 0x9dd59780)
04-08 12:55:46.629 5650-5650/com.remmy.wisdomnuggets I/Choreographer: Skipped 42 frames! The application may be doing too much work on its main thread.
04-08 12:55:49.141 5650-5712/com.remmy.wisdomnuggets E/MK Request 2: POST
04-08 12:55:50.189 5650-5712/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.ConnectionUtil.Connection: Working :
04-08 12:55:50.190 5650-5712/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.ConnectionUtil.Connection: POST 200 http://remmyhazzan.com.ng/wisdomnuggets/books4u_home.php {"functionality":"admob_configuration"}
04-08 12:55:50.197 5650-5650/com.remmy.wisdomnuggets E/com.remmy.wisdomnuggets.ConnectionUtil.ConnectionBuilder: Response =
if you didn't changed anything in your app (an we are talking even about app distributed by Google Play) then clearly there is a problem by server side
there is a chance that some network/server side response is just broken, I see you are requesting for something (RequestObject), but also see serverUrl='null', so app may not be configured properly. Also last words of this log is ConnectionBuilder: Response = and... what is the response?
there is no Exception word in block of text posted in question, so app hangs on splash because of wrong logic in code (maybe not aware of some null parameters)
there is also a chance that you are using 3rd party lib connecting to some services (I see Firebase in logs), which is currently deprecated
without line of code all this is guessing...
PS. learn how to post readable logs...
So I'm getting a black screen whenever I try to run my code through android studio
07-06 22:58:42.480 7969-7969/? I/art: Late-enabling -Xcheck:jni
07-06 22:58:42.508 7969-7969/? D/TidaProvider: TidaProvider()
07-06 22:58:42.549 7969-7969/? W/System: ClassLoader referenced unknown path: /data/app/com.example.delma.ins-1/lib/arm64
07-06 22:58:42.551 7969-7969/? W/ResourceType: No package identifier when getting name for resource number 0x00000000
07-06 22:58:42.557 7969-7979/? I/art: Debugger is no longer active
07-06 22:58:42.557 7969-7979/? I/art: Starting a blocking GC Instrumentation
07-06 22:58:42.618 7969-8006/? W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
07-06 22:58:42.624 7969-8006/? W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
07-06 22:58:42.628 7969-7969/? D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
07-06 22:58:42.636 7969-7969/? I/FA: App measurement is starting up, version: 11020
07-06 22:58:42.636 7969-7969/? I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
07-06 22:58:42.642 7969-7969/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.delma.ins
07-06 22:58:42.642 7969-7969/? D/FA: Debug-level message logging enabled
07-06 22:58:42.651 7969-7969/? I/FirebaseInitProvider: FirebaseApp initialization successful
07-06 22:58:42.672 7969-7969/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
07-06 22:58:42.682 7969-7969/? D/AccessibilityManager: current package=com.example.delma.ins, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
07-06 22:58:42.775 7969-7969/? I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:6
07-06 22:58:42.775 7969-7969/? I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 6
07-06 22:58:42.782 7969-7969/? W/System: ClassLoader referenced unknown path:
07-06 22:58:42.784 7969-7969/? W/ResourceType: No package identifier when getting name for resource number 0x00000000
07-06 22:58:42.800 7969-7969/? W/ChimeraDebugLogger: Singleton logger instance not set.
07-06 22:58:42.805 7969-7969/? W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000070/n/arm64-v8a
07-06 22:58:42.818 7969-7969/? W/ResourceType: No package identifier when getting name for resource number 0x00000000
07-06 22:58:42.871 7969-8043/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
07-06 22:58:42.876 7969-7969/? W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
07-06 22:58:43.049 7969-7969/? I/Timeline: Timeline: Activity_launch_request time:452779 intent:Intent { flg=0x10008000 cmp=com.example.delma.ins/.LoginActivity }
07-06 22:58:43.509 7969-7969/? I/Timeline: Timeline: Activity_launch_request time:453239 intent:Intent { flg=0x10008000 cmp=com.example.delma.ins/.MainActivity }
07-06 22:58:43.523 7969-8020/? D/FA: Connected to remote service
07-06 22:58:43.604 7969-7969/com.example.delma.ins W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
07-06 22:58:43.609 7969-7969/com.example.delma.ins I/Timeline: Timeline: Activity_launch_request time:453339 intent:Intent { flg=0x10008000 cmp=com.example.delma.ins/.LoginActivity }
you have heavy work in the main thread, it will happen to ANR (android not responding), you should check your work, and a black screen is your application theme
I want added Firebase into my application. I write below codes, but when running application I can't see TOKEN in log!
My dependencies :
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.google.firebase:firebase-messaging:10.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Manifest :
<application>
...
<!--Firebase service-->
<service android:name=".CloudMSG.MyFirebaseInctanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
</application>
MyFirebaseInctanceIdService :
public class MyFirebaseInctanceIdService extends FirebaseInstanceIdService {
private static final String TAG = "MyFirebaseInctance";
#Override
public void onTokenRefresh() {
// Get updated InstanceID token.
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
Log.d("MyFirebaseInctance", "Refreshed token: " + refreshedToken);
// If you want to send messages to this application instance or
// manage this apps subscriptions on the server side, send the
// Instance ID token to your app server.
//sendRegistrationToServer(refreshedToken);
}
}
Logs:
03-30 13:36:42.943 9487-9487/? I/art: Late-enabling -Xcheck:jni
03-30 13:36:43.218 9487-9487/com.example.mohammad.a1_firebase D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
03-30 13:36:43.269 9487-9487/com.example.mohammad.a1_firebase W/InstanceID/Rpc: Found 10004
03-30 13:36:43.298 9487-9487/com.example.mohammad.a1_firebase D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase I/FA: App measurement is starting up, version: 10084
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase D/FA: Debug-level message logging enabled
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase D/FA: AppMeasurement singleton hash: 720240273
03-30 13:36:43.404 9487-9487/com.example.mohammad.a1_firebase V/FA: Collection enabled
03-30 13:36:43.404 9487-9487/com.example.mohammad.a1_firebase V/FA: App package, google app id: com.example.mohammad.a1_firebase, 1:685652680518:android:0280a3bc1c6da8cb
03-30 13:36:43.405 9487-9487/com.example.mohammad.a1_firebase I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.mohammad.a1_firebase
03-30 13:36:43.463 9487-9487/com.example.mohammad.a1_firebase V/FA: Registered activity lifecycle callback
03-30 13:36:43.465 9487-9487/com.example.mohammad.a1_firebase I/FirebaseInitProvider: FirebaseApp initialization successful
03-30 13:36:43.467 9487-9487/com.example.mohammad.a1_firebase I/InstantRun: Starting Instant Run Server for com.example.mohammad.a1_firebase
03-30 13:36:43.471 9487-9587/com.example.mohammad.a1_firebase V/FA: Using measurement service
03-30 13:36:43.489 9487-9587/com.example.mohammad.a1_firebase V/FA: Connecting to remote service
03-30 13:36:43.528 9487-9587/com.example.mohammad.a1_firebase W/GooglePlayServicesUtil: Google Play services out of date. Requires 10084000 but found 6599430
03-30 13:36:43.612 9487-9487/com.example.mohammad.a1_firebase D/ContextHelper: convertTheme. context->name=com.example.mohammad.a1_firebase themeResourceId=2131230883
03-30 13:36:43.656 9487-9487/com.example.mohammad.a1_firebase W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-30 13:36:43.690 9487-9487/com.example.mohammad.a1_firebase V/FA: onActivityCreated
03-30 13:36:43.696 9487-9487/com.example.mohammad.a1_firebase I/PhoneWindow: [generateLayout] setColorNavigationBar => color=0x ff000001
03-30 13:36:43.718 9487-9487/com.example.mohammad.a1_firebase D/PhoneWindowEx: [PWEx][generateLayout] setNavigationBarColor2 : colors=0xfff5f5f5
03-30 13:36:43.718 9487-9487/com.example.mohammad.a1_firebase I/PhoneWindow: [setNavigationBarColor2] color=0x fff5f5f5
03-30 13:36:43.859 9487-9587/com.example.mohammad.a1_firebase V/FA: Using measurement service
03-30 13:36:43.859 9487-9587/com.example.mohammad.a1_firebase V/FA: Connection attempt already in progress
03-30 13:36:43.864 9487-9587/com.example.mohammad.a1_firebase V/FA: Activity resumed, time: 1436094125
03-30 13:36:43.879 9487-9612/com.example.mohammad.a1_firebase D/OpenGLRenderer: Render dirty regions requested: true
03-30 13:36:43.881 9487-9612/com.example.mohammad.a1_firebase I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.013_msm8974_LA.BF.1.1.1_RB1__release_AU ()
OpenGL ES Shader Compiler Version: E031.25.03.00
Build Date: 01/21/15 Wed
Local Branch: mybranch7061829
Remote Branch: quic/LA.BF.1.1.1_rb1.7
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.013 + NOTHING
03-30 13:36:43.882 9487-9612/com.example.mohammad.a1_firebase I/OpenGLRenderer: Initialized EGL, version 1.4
03-30 13:36:43.910 9487-9612/com.example.mohammad.a1_firebase D/OpenGLRenderer: Enabling debug mode 0
03-30 13:36:43.916 9487-9487/com.example.mohammad.a1_firebase D/Atlas: Validating map...
03-30 13:36:43.927 9487-9487/com.example.mohammad.a1_firebase W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-30 13:36:43.936 9487-9592/com.example.mohammad.a1_firebase D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 30s
03-30 13:36:44.008 9487-9502/com.example.mohammad.a1_firebase W/art: Suspending all threads took: 5.068ms
03-30 13:36:44.047 9487-9487/com.example.mohammad.a1_firebase W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
03-30 13:36:44.183 9487-9487/com.example.mohammad.a1_firebase I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#755dbad time:128236912
03-30 13:37:14.017 9487-10051/com.example.mohammad.a1_firebase D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 60s
How can I fix this issue and show Firebase token in logs?
Firebase onTokenRefresh() will only be called if your token changes. Before that you should invoke
FirebaseInstanceId.getInstance().getToken()
in your initial activity (like MainActivity) maybe.
why you not tried integrated android studio with firebase directly using Tools menu-->firebase
add this line Gradle :-Module(app)
compile 'com.google.firebase:firebase-crash:10.2.0'
compile 'com.google.firebase:firebase-auth:10.2.0'
Try to uninstall the application and re-install , you will see the
Refreshed token in the logcat.
Also check in firebase console that Anonymous sign-in status is
Enabled or not in Authentication menu -> Sign in method
I'm trying to write a function to increment unread message count in a chatapp(android) using transaction in Firebase.
My database structure looks like:
The member list can in fact contain more than 2 users for a group chat which I intend to expand later.
Currently, messages can be added into the messageList but after adding to the messageList I want to increase the unreadCount for all other user except the sender as well. I realised that I need to make use of Transaction to make it atomic so this is my incrementUnreadCount code.
private static void incrementUnreadCount(String chatRoomId) {
DatabaseReference mDatabaseMemberList = mDatabaseChatRooms.child(chatRoomId).child("memberList");
mDatabaseMemberList.runTransaction(new Transaction.Handler() {
#Override
public Transaction.Result doTransaction(MutableData mutableData) {
Map<String, Map<String, Object>> tempMemberList = (Map<String, Map<String, Object>>) mutableData.getValue();
if (tempMemberList == null) {
return Transaction.abort();
}
for (String key : tempMemberList.keySet()) {
// if it is not a sender node
if (!key.equals(TutUserManager.getCurrentUid())) {
Map<String, Object> tempMap = tempMemberList.get(key);
long tempCount = (long) tempMap.get("unreadCount");
tempCount += 1;
tempMap.put("unreadCount", tempCount);
tempMemberList.put(key, tempMap);
}
}
mutableData.setValue(tempMemberList);
return Transaction.success(mutableData);
}
#Override
public void onComplete(DatabaseError databaseError, boolean b, DataSnapshot dataSnapshot) {
}
});
}
The following code works only when I send the second message. So the value of unreadCount is 1 less than what it is expected to be.
I read the doc and realised that for the null case it is supposed to be:
return Transaction.success(mutableData);
and not:
return Transaction.abort();
as abort() will make server abort the transaction instead of trying to make the transaction again.
I try to change the code above to use return ransaction.success(mutableData); but it causes the app to crash upon calling the function.
Did I miss something ?
This is what I get from the console:
11/14 23:19:25: Launching app
No apk changes detected since last installation, skipping installation of C:\Users\Potcharaphol\AndroidStudioProjects\Tut\app\build\outputs\apk\app-debug.apk
$ adb shell am force-stop com.pchatanan.tut
$ adb shell am start -n "com.pchatanan.tut/com.pchatanan.tut.MainActivities.GetStartedActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.pchatanan.tut.test | com.pchatanan.tut
Connecting to com.pchatanan.tut
E/HAL: load: id=gralloc != hmi->id=gralloc
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1339)
I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
[ 11-14 23:19:29.241 2931: 2931 E/ ]
process stopped due to unexpected signal 13
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
[ 11-14 23:19:29.819 2931: 2931 E/ ]
process stopped due to unexpected signal 13
I/FA: App measurement is starting up, version: 9877
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.pchatanan.tut
I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl
I/FirebaseInitProvider: FirebaseApp initialization successful
I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
[ 11-14 23:19:30.422 2931: 2931 E/ ]
process stopped due to unexpected signal 13
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
I/HwSecImmHelper: mSecurityInputMethodService is null
W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:4
I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 4
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000018/n/arm64-v8a
[ 11-14 23:19:31.068 2931: 2931 E/ ]
process stopped due to unexpected signal 13
E/HAL: load: id=gralloc != hmi->id=gralloc
I/OpenGLRenderer: Initialized EGL, version 1.4
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
[ 11-14 23:19:33.493 2931: 2931 E/ ]
process stopped due to unexpected signal 13
W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
[ 11-14 23:19:35.396 2931: 2931 E/ ]
process stopped due to unexpected signal 13
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
W/art: Suspending all threads took: 14.466ms
I/FA: Tag Manager is not found and thus will not be used
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
I/HwSecImmHelper: mSecurityInputMethodService is null
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
E/RecyclerView: No adapter attached; skipping layout
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
E/RecyclerView: No adapter attached; skipping layout
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/Process: Sending signal. PID: 20588 SIG: 9
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
This is what I get from logcat, there seems to be no errors.
[ 11-14 23:21:49.129 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:49.321 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
11-14 23:21:49.522 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
11-14 23:21:49.723 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
[ 11-14 23:21:49.781 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:49.924 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
11-14 23:21:50.125 21571-21571/com.pchatanan.tut I/System.out: debugger has settled (1319)
11-14 23:21:50.149 21571-21571/com.pchatanan.tut I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
[ 11-14 23:21:50.364 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:50.842 21571-21633/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:21:50.863 21571-21633/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:21:50.973 21571-21571/com.pchatanan.tut I/FA: App measurement is starting up, version: 9877
11-14 23:21:50.973 21571-21571/com.pchatanan.tut I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
11-14 23:21:50.980 21571-21571/com.pchatanan.tut I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.pchatanan.tut
[ 11-14 23:21:50.999 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:51.035 21571-21571/com.pchatanan.tut I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl
11-14 23:21:51.043 21571-21571/com.pchatanan.tut I/FirebaseInitProvider: FirebaseApp initialization successful
11-14 23:21:51.140 21571-21571/com.pchatanan.tut I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
11-14 23:21:51.216 21571-21571/com.pchatanan.tut W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-14 23:21:51.601 21571-21571/com.pchatanan.tut I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
[ 11-14 23:21:51.609 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:51.875 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:21:51.925 21571-21571/com.pchatanan.tut W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
11-14 23:21:52.015 21571-21571/com.pchatanan.tut I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:4
11-14 23:21:52.015 21571-21571/com.pchatanan.tut I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 4
11-14 23:21:52.030 21571-21571/com.pchatanan.tut W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000018/n/arm64-v8a
11-14 23:21:52.192 21571-21651/com.pchatanan.tut E/HAL: load: id=gralloc != hmi->id=gralloc
11-14 23:21:52.193 21571-21651/com.pchatanan.tut I/OpenGLRenderer: Initialized EGL, version 1.4
11-14 23:21:52.194 21571-21666/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
[ 11-14 23:21:52.196 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:54.257 21571-21711/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
[ 11-14 23:21:54.586 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:21:55.208 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:56.193 21571-21571/com.pchatanan.tut W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
11-14 23:21:56.248 21571-21743/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
11-14 23:21:56.279 21571-21743/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
[ 11-14 23:21:56.442 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:21:57.081 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:57.204 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:21:57.206 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:01.561 21571-21633/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
[ 11-14 23:22:01.587 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:22:02.195 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:22:02.874 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:22:03.487 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:22:07.605 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:07.720 21571-21641/com.pchatanan.tut I/FA: Tag Manager is not found and thus will not be used
11-14 23:22:07.775 21571-21571/com.pchatanan.tut I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
11-14 23:22:07.985 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:07.985 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:09.062 21571-21942/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
11-14 23:22:09.141 21571-21942/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
11-14 23:22:09.354 21571-21571/com.pchatanan.tut I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
11-14 23:22:09.454 21571-21571/com.pchatanan.tut E/RecyclerView: No adapter attached; skipping layout
11-14 23:22:09.471 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:09.472 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:09.476 21571-21571/com.pchatanan.tut E/RecyclerView: No adapter attached; skipping layout
11-14 23:22:10.246 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:10.308 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:10.309 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:10.313 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:13.747 21571-21571/com.pchatanan.tut I/Process: Sending signal. PID: 21571 SIG: 9
11-14 23:22:13.995 22048-22063/com.pchatanan.tut E/HAL: load: id=gralloc != hmi->id=gralloc
11-14 23:22:14.012 22048-22048/com.pchatanan.tut I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
11-14 23:22:14.575 22048-22083/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:22:14.659 22086-22100/com.pchatanan.tut E/HAL: load: id=gralloc != hmi->id=gralloc
11-14 23:22:14.679 22086-22086/com.pchatanan.tut I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
11-14 23:22:15.323 22086-22133/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:22:15.341 22086-22133/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:22:15.462 22086-22086/com.pchatanan.tut I/FA: App measurement is starting up, version: 9877
11-14 23:22:15.462 22086-22086/com.pchatanan.tut I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
11-14 23:22:15.471 22086-22086/com.pchatanan.tut I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.pchatanan.tut
11-14 23:22:15.524 22086-22086/com.pchatanan.tut I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl
11-14 23:22:15.532 22086-22086/com.pchatanan.tut I/FirebaseInitProvider: FirebaseApp initialization successful
11-14 23:22:25.611 22086-22133/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
In stead of iterate through each node in the Transaction thread, I use .addListenerForSingleValueEvent and iterate through each node. Then for the one that needs to be updated, I run the transaction code. This method works fine.
This is illustrated in the following code:
private static void incrementUnreadCount(String chatRoomId) {
final DatabaseReference mDatabaseMemberList = mDatabaseChatRooms.child(chatRoomId).child("memberList");
mDatabaseMemberList.addListenerForSingleValueEvent(new ValueEventListener() {
#Override
public void onDataChange(DataSnapshot dataSnapshot) {
for(DataSnapshot child : dataSnapshot.getChildren()){
if(!child.getKey().equals(TutUserManager.getCurrentUid())){
mDatabaseMemberList.child(child.getKey()).runTransaction(new Transaction.Handler() {
#Override
public Transaction.Result doTransaction(MutableData mutableData) {
Map<String, Object> tempData = (Map<String, Object>) mutableData.getValue();
if(tempData == null){
return Transaction.success(mutableData);
}
long unreadCount = (long) tempData.get("unreadCount");
unreadCount += 1;
tempData.put("unreadCount", unreadCount);
mutableData.setValue(tempData);
return Transaction.success(mutableData);
}
#Override
public void onComplete(DatabaseError databaseError, boolean b, DataSnapshot dataSnapshot) {
}
});
}
}
}
#Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
when I click on back button my application crashes
This happen in all my pages I have 3 activity and other are fragments in my application I am not getting who is creating this problem
this the full logcat I am not getting any error in my connection or any where but when I click device back button app crashes
09-13 15:00:32.366 3843-3843/com.example.user.soulsystem I/art: Not late-enabling -Xcheck:jni (already on)
09-13 15:00:32.492 3843-3843/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:00:47.049 3843-3843/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:00:47.069 3843-3843/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:00:47.078 3843-3843/com.example.user.soulsystem W/InstanceID/Rpc: Found 10008
09-13 15:00:47.081 3843-3843/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:00:47.107 3843-3843/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:00:47.108 3843-3843/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:00:47.151 3843-3843/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:00:47.232 3843-3843/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:00:47.984 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 30.062ms
09-13 15:00:47.987 3843-3843/com.example.user.soulsystem W/art: Verification of android.view.View android.support.v7.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) took 495.933ms
09-13 15:00:47.988 3843-3853/com.example.user.soulsystem I/art: Background partial concurrent mark sweep GC freed 1579(368KB) AllocSpace objects, 4(80KB) LOS objects, 39% free, 2MB/3MB, paused 440us total 484.103ms
09-13 15:00:48.118 3843-4245/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true [
09-13 15:00:48.142 3843: 3843 D/ HostConnection::get() New Host Connection established 0xab1d6140, tid 3843
09-13 15:00:48.188 3843: 4245 D/ HostConnection::get() New Host Connection established 0xaec47600, tid 4245
09-13 15:00:48.191 3843-4245/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:00:53.820 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 87.047ms
09-13 15:00:58.115 3843-4232/com.example.user.soulsystem I/FA: Tag Manager is not found and thus will not be used
09-13 15:02:23.664 3843-5617/com.example.user.soulsystem D/Volley: [221] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http://192.168.1.10/soulsystem/loginall.php 0x676929bb NORMAL 1> [lifetime=3118], [size=189], [rc=200], [retryCount=1]
09-13 15:02:23.827 3843-3843/com.example.user.soulsystem D/ClientRegistration: Login Response: {"error":false,"error_msg":"Finding Consultancy","uid":"57d245518c9643.05931211","user":{"name":"Ram Waghmare","email":"ram#gmail.com","created_at":"2016-09-09 10:44:57","updated_at":null}}
09-13 15:02:23.832 3843-4245/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa31a2540
09-13 15:02:23.840 3843-3843/com.example.user.soulsystem D/Soulsystem: IN try catch
09-13 15:02:24.073 3843-3843/com.example.user.soulsystem D/SessionManager: User login session modified!
09-13 15:02:24.625 3843-3843/com.example.user.soulsystem D/SQLiteHandler: Database tables created
09-13 15:02:24.994 3843-3843/com.example.user.soulsystem D/SQLiteHandler: New user inserted into sqlite: 1
09-13 15:02:25.028 3843-3843/com.example.user.soulsystem D/Volley: [1] Request.finish: 4483 ms: [ ] http://192.168.1.10/soulsystem/loginall.php 0x676929bb NORMAL 1
09-13 15:02:25.028 3843-3843/com.example.user.soulsystem I/Choreographer: Skipped 71 frames! The application may be doing too much work on its main thread.
09-13 15:02:25.071 3843-3843/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:02:25.215 3843-3843/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:02:25.215 3843-3843/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:02:25.215 3843-3843/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:02:25.268 3843-3843/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:02:25.489 3843-4245/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa31a2460
09-13 15:03:18.027 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 6.244ms
09-13 15:03:34.556 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 7.122ms
09-13 15:05:58.974 3843-3843/com.example.user.soulsystem D/NavigationMenu: In profile Image view
[ 09-13 15:06:13.139 1604: 1882 D/ ]
HostConnection::get() New Host Connection established 0x9ad14230, tid 1882
09-13 15:06:13.360 3843-3843/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:06:13.366 3843-4245/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa31a2770
09-13 15:13:27.679 15191-15191/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:13:27.716 15191-15191/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:13:27.733 15191-15191/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:13:27.766 15191-15191/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:13:27.766 15191-15191/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:13:27.795 15191-15191/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:13:27.857 15191-15191/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:13:27.937 15191-15191/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:13:28.061 15191-15191/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:13:28.061 15191-15191/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:13:28.061 15191-15191/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:13:28.065 15191-15191/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:13:28.071 15191-15273/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-13 15:13:28.075 15191:15191 D/ ]
HostConnection::get() New Host Connection established 0xaaace1a0, tid 15191
[ 09-13 15:13:28.107 15191:15273 D/ ]
HostConnection::get() New Host Connection established 0xaaace5c0, tid 15273
09-13 15:13:28.111 15191-15273/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:13:31.233 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:31.243 15191-15273/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab1f0b70
09-13 15:13:32.265 15191-15270/com.example.user.soulsystem I/FA: Tag Manager is not found and thus will not be used
09-13 15:13:34.089 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:34.188 15191-15191/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:13:34.212 15191-15191/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:13:34.212 15191-15191/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:13:34.212 15191-15191/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:13:34.213 15191-15191/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:13:38.875 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:38.879 15191-15273/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab1f0be0
09-13 15:13:41.251 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:41.327 15191-15191/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:13:41.393 15191-15191/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:13:41.393 15191-15191/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:13:41.393 15191-15191/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:13:41.394 15191-15191/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:18:45.102 15191-15197/com.example.user.soulsystem W/art: Suspending all threads took: 7.875ms
09-13 15:19:29.694 15191-15197/com.example.user.soulsystem W/art: Suspending all threads took: 6.903ms
09-13 15:19:37.196 15191-15197/com.example.user.soulsystem W/art: Suspending all threads took: 6.748ms
09-13 15:20:12.361 21039-21039/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:20:15.446 21039-21039/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:20:15.463 21039-21039/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:20:15.477 21039-21039/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:20:15.517 21039-21039/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:20:15.517 21039-21039/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:20:15.541 21039-21039/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:20:15.606 21039-21039/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:20:15.777 21039-21049/com.example.user.soulsystem I/art: Background partial concurrent mark sweep GC freed 6738(1363KB) AllocSpace objects, 49(820KB) LOS objects, 41% free, 1462KB/2MB, paused 301us total 152.112ms
09-13 15:20:15.826 21039-21039/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:20:15.955 21039-21039/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:20:15.955 21039-21039/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:20:15.955 21039-21039/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:20:15.966 21039-21122/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-13 15:20:15.972 21039:21039 D/ ]
HostConnection::get() New Host Connection established 0xaaacde40, tid 21039
[ 09-13 15:20:16.013 21039:21122 D/ ]
HostConnection::get() New Host Connection established 0xaec47600, tid 21122
09-13 15:20:16.016 21039-21122/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:20:17.984 21039-21045/com.example.user.soulsystem W/art: Suspending all threads took: 7.043ms
09-13 15:20:42.993 21039-21039/com.example.user.soulsystem I/ListPopupWindow: Could not find method setEpicenterBounds(Rect) on PopupWindow. Oh well.
09-13 15:20:43.035 21039-21039/com.example.user.soulsystem W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
09-13 15:20:43.941 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904bc0
09-13 15:20:43.944 21039-21122/com.example.user.soulsystem D/OpenGLRenderer: endAllStagingAnimators on 0xa261c600 (MenuPopupWindow$MenuDropDownListView) with handle 0xaec52fa0
09-13 15:20:47.274 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904bc0
09-13 15:20:47.278 21039-21122/com.example.user.soulsystem D/OpenGLRenderer: endAllStagingAnimators on 0xa14a2d80 (MenuPopupWindow$MenuDropDownListView) with handle 0xab33f630
09-13 15:21:05.931 21039-21112/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/data/com.example.user.soulsystem/lib
09-13 15:21:05.992 21039-21039/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:21:05.999 21039-21039/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:21:05.999 21039-21039/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:21:05.999 21039-21039/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:21:06.009 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904b50
09-13 15:21:06.150 21039-21122/com.example.user.soulsystem V/RenderScript: 0xa1e12000 Launching thread(s), CPUs 2
09-13 15:21:07.974 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904ed0
09-13 15:21:10.712 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904f40
09-13 15:21:17.190 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa29035e0
09-13 15:21:27.843 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2903570
09-13 15:23:27.349 21039-21045/com.example.user.soulsystem W/art: Suspending all threads took: 11.127ms
09-13 15:25:31.502 25691-25691/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:25:35.414 25691-25691/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:25:35.430 25691-25691/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:25:35.463 25691-25691/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:25:35.488 25691-25691/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:25:35.488 25691-25691/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:25:35.513 25691-25691/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:25:35.605 25691-25691/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:25:35.694 25691-25691/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:25:35.825 25691-25691/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:25:35.825 25691-25691/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:25:35.825 25691-25691/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:25:35.834 25691-25786/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-13 15:25:35.840 25691:25691 D/ ]
HostConnection::get() New Host Connection established 0xb2f28600, tid 25691
[ 09-13 15:25:35.874 25691:25786 D/ ]
HostConnection::get() New Host Connection established 0xaec47600, tid 25786
09-13 15:25:35.877 25691-25786/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:26:48.624 25691-25697/com.example.user.soulsystem W/art: Suspending all threads took: 7.614ms
Did you call actionbar.setDisplayHomeAsUpEnabled(true) in your code?
Please try this
#Override
public void onBackPressed() {
super.onBackPressed();
finish();
}
there is another good reference is here