I have integrated firebase analytics in My android project. I am trying to capture screen visit events like.
Bundle params = new Bundle();
params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "Custom screen");
params.putString(FirebaseAnalytics.Param.ITEM_NAME,"Custom screen name");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
I have also tried from the google sample project with this code
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "1");
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "test name");
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
My debug logs are showing that events are successfully posted.
09-19 14:22:15.364 I/FA ( 3313): App measurement is starting up, version: 9452
09-19 14:22:15.364 I/FA ( 3313): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-19 14:22:15.364 D/FA ( 3313): Debug logging enabled
09-19 14:22:15.365 D/FA ( 3313): AppMeasurement singleton hash: 233567450
09-19 14:22:15.383 V/FA ( 3313): Collection enabled
09-19 14:22:15.383 V/FA ( 3313): App package, google app id: com.prabhu.test, 1:64059382301:android:4262dc7062227fc8
09-19 14:22:15.393 V/FA ( 3313): Registered activity lifecycle callback
09-19 14:22:15.403 V/FA ( 3313): Using measurement service
09-19 14:22:15.404 V/FA ( 3313): Connecting to remote service
09-19 14:22:15.433 V/FA ( 3313): onActivityCreated
09-19 14:22:15.529 I/FA ( 3313): Tag Manager is not found and thus will not be used
09-19 14:22:15.529 D/FA ( 3313): Logging event (FE): select_content, Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]
09-19 14:22:15.530 V/FA ( 3313): Using measurement service
09-19 14:22:15.530 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:15.532 D/FA ( 3313): Logging event (FE): view_item, Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]
09-19 14:22:15.532 V/FA ( 3313): Using measurement service
09-19 14:22:15.532 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:15.532 V/FA ( 3313): Activity resumed, time: 273496560
09-19 14:22:15.698 D/FA ( 3313): Connected to remote service
09-19 14:22:15.698 V/FA ( 3313): Processing queued up service tasks: 3
09-19 14:22:15.751 V/FA-SVC (10602): Logging event: origin=app,name=select_content,params=Bundle[mParcelledData.dataSize=168]
09-19 14:22:15.766 V/FA-SVC (10602): Saving event, name, data size: select_content, 79
09-19 14:22:15.768 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='select_content', params=Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]}
09-19 14:22:16.168 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557230
09-19 14:22:16.171 V/FA-SVC (10602): Background event processing time, ms: 423
09-19 14:22:16.171 V/FA-SVC (10602): Logging event: origin=app,name=view_item,params=Bundle[mParcelledData.dataSize=176]
09-19 14:22:16.175 V/FA-SVC (10602): Saving event, name, data size: view_item, 84
09-19 14:22:16.175 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='view_item', params=Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]}
09-19 14:22:16.212 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557187
09-19 14:22:16.215 V/FA-SVC (10602): Background event processing time, ms: 44
09-19 14:22:20.723 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
09-19 14:22:22.384 V/FA ( 3313): Activity paused, time: 273503415
09-19 14:22:23.515 V/FA ( 3313): onActivityCreated
09-19 14:22:23.531 D/FA ( 3313): Logging event (FE): select_content, Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]
09-19 14:22:23.531 V/FA ( 3313): Using measurement service
09-19 14:22:23.531 V/FA ( 3313): Connecting to remote service
09-19 14:22:23.539 D/FA ( 3313): Logging event (FE): view_item, Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]
09-19 14:22:23.539 V/FA ( 3313): Using measurement service
09-19 14:22:23.539 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:23.539 V/FA ( 3313): Activity resumed, time: 273504562
09-19 14:22:23.594 D/FA ( 3313): Connected to remote service
09-19 14:22:23.594 V/FA ( 3313): Processing queued up service tasks: 2
09-19 14:22:23.602 V/FA-SVC (10602): Saving event, name, data size: select_content, 79
09-19 14:22:23.603 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='select_content', params=Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]}
09-19 14:22:23.630 V/FA-SVC (10602): Upload scheduled in approximately ms: 2549768
09-19 14:22:23.632 V/FA-SVC (10602): Background event processing time, ms: 35
09-19 14:22:23.632 V/FA-SVC (10602): Logging event: origin=app,name=view_item,params=Bundle[mParcelledData.dataSize=176]
09-19 14:22:23.636 V/FA-SVC (10602): Saving event, name, data size: view_item, 84
09-19 14:22:23.636 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='view_item', params=Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]}
09-19 14:22:23.648 V/FA-SVC (10602): Upload scheduled in approximately ms: 2549750
09-19 14:22:23.651 V/FA-SVC (10602): Background event processing time, ms: 18
09-19 14:22:26.687 V/FA ( 3313): Session started, time: 273507718
09-19 14:22:26.699 D/FA ( 3313): Logging event (FE): _s, Bundle[{_o=auto}]
09-19 14:22:26.709 V/FA-SVC (10602): Logging event: origin=auto,name=_s,params=Bundle[mParcelledData.dataSize=36]
09-19 14:22:26.738 V/FA-SVC (10602): Saving event, name, data size: _s, 19
09-19 14:22:26.739 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='_s', params=Bundle[{_o=auto}]}
09-19 14:22:26.754 V/FA-SVC (10602): Upload scheduled in approximately ms: 2546644
09-19 14:22:26.757 V/FA-SVC (10602): Background event processing time, ms: 48
09-19 14:22:31.717 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
09-19 14:24:23.422 V/FA ( 3313): Activity paused, time: 273624439
09-19 14:24:24.423 D/FA ( 3313): Application backgrounded. Logging engagement
09-19 14:24:24.427 D/FA ( 3313): Logging event (FE): _e, Bundle[{_o=auto, _et=126732}]
09-19 14:24:24.427 V/FA ( 3313): Using measurement service
09-19 14:24:24.428 V/FA ( 3313): Connecting to remote service
09-19 14:24:24.444 D/FA ( 3313): Connected to remote service
09-19 14:24:24.444 V/FA ( 3313): Processing queued up service tasks: 1
09-19 14:24:24.450 V/FA-SVC (10602): Logging event: origin=auto,name=_e,params=Bundle[mParcelledData.dataSize=60]
09-19 14:24:24.480 V/FA-SVC (10602): Saving event, name, data size: _e, 30
09-19 14:24:24.481 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='_e', params=Bundle[{_o=auto, _et=126732}]}
09-19 14:24:24.500 V/FA-SVC (10602): Upload scheduled in approximately ms: 2428898
09-19 14:24:24.505 V/FA-SVC (10602): Background event processing time, ms: 56
09-19 14:24:29.455 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
But , In my firebase analytics console events are not shown.
Please help me whats wrong with me?
FYI, For the same Google Firebase Analytics Project, events are shown from IOS app.
Look at the log:
09-19 14:22:16.168 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557230
2557230 ms means 42 min 37 sec
Then also they seem to generate the reports regularly but not realtime.
https://firebase.google.com/docs/analytics/android/events
You can view aggregrated statistics about your events in the Firebase
console dashboards. These dashboards update periodically throughout
the day. For immediate testing, use the logcat output as described in
the previous section.
UPDATE:
See this answer from Steve Ganem, Product Manager for Firebase Analytics:
There is currently no way to manually override these settings.
However, we recognize the need to see your reporting more quickly and
we hope to address this need soon.
BUT, on the same thread Yoxi found a way to force initial upload sooner by clearing application data. I just did myself and I could see the initial upload. But that doesn't seem to make the data visible in the Firebase console any sooner.
11-04 14:46:14.112 V/FA (24746): Upload scheduled in approximately ms: 9028
You can run setprop adb shell setprop debug.firebase.analytics.app <package name>
for example adb shell setprop debug.firebase.analytics.app com.google.android.play.games
If you run this, firebase analytics events are uploaded in near real-time.
check this for more details
https://firebase.google.com/docs/analytics/debugview
Related
I'm trying to add install-attribution to a React Native android app. I believe I'm firing the event correctly in dev mode, but I don't actually see the event in the firebase debug log, or in the conversion. I can see other analytics events, just not this one.
I added this to src/main/AndroidManifest.xml:
<receiver android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
android:permission="android.permission.INSTALL_PACKAGES"
android:enabled="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
Watch the logs:
$ adb shell setprop log.tag.FA VERBOSE
$ adb shell setprop log.tag.FA-SVC VERBOSE
$ adb logcat -v time -s FA FA-SVC
Broadcast the message:
$ adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.example/com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver --es "referrer" "utm_source=medium&utm_medium=test&utm_content=reactnativetest&utm_campaign=reactnativetest"
The logs seem show a "successful upload":
04-09 11:05:04.314 V/FA ( 7426): Local receiver got: com.android.vending.INSTALL_REFERRER
04-09 11:05:04.315 I/FA ( 7426): Install referrer extras are: utm_source=medium
04-09 11:05:04.317 W/FA ( 7426): Install referrer is missing timestamp
04-09 11:05:04.318 I/FA ( 7426): Install Referrer Reporter is initializing
04-09 11:05:04.325 I/FA ( 7426): Install Referrer Service is: available
04-09 11:05:04.330 V/FA ( 7426): Install campaign recorded
04-09 11:05:04.338 D/FA ( 7426): Logging event (FE): firebase_campaign(_cmp), Bundle[{click_timestamp=1554755627203, source=medium, firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=1234512345123451234, campaign_info_source(_cis)=referrer broadcast}]
04-09 11:05:04.362 V/FA ( 7426): Connecting to remote service
04-09 11:05:04.373 D/FA ( 7426): Connected to remote service
04-09 11:05:04.373 V/FA ( 7426): Processing queued up service tasks: 1
04-09 11:05:04.388 V/FA-SVC ( 8508): Logging event: origin=auto,name=firebase_campaign(_cmp),params=Bundle[{click_timestamp=1554755627203, source=medium, firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=1234512345123451234, campaign_info_source(_cis)=referrer broadcast}]
04-09 11:05:04.397 V/FA-SVC ( 8508): Saving event, name, data size: firebase_campaign(_cmp), 147
04-09 11:05:04.398 V/FA-SVC ( 8508): Event recorded: Event{appId='com.example', name='firebase_campaign(_cmp)', params=Bundle[{click_timestamp=1554755627203, source=medium, firebase_event_origin(_o)=auto, _r=1, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=1234512345123451234, campaign_info_source(_cis)=referrer broadcast, _dbg=1}]}
04-09 11:05:04.399 V/FA-SVC ( 8508): Upload scheduled in approximately ms: 500
04-09 11:05:04.400 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:04.403 V/FA-SVC ( 8508): Scheduling upload with DelayedRunnable
04-09 11:05:04.404 V/FA-SVC ( 8508): Scheduling upload with GcmTaskService
04-09 11:05:04.404 V/FA-SVC ( 8508): Scheduling task with Gcm. time: 500
04-09 11:05:04.409 V/FA-SVC ( 8508): Background event processing time, ms: 21
04-09 11:05:04.662 I/FA ( 7426): Install Referrer Service connected
04-09 11:05:04.679 E/FA ( 7426): Service response is missing Install Referrer install timestamp
04-09 11:05:04.907 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:04.910 V/FA-SVC ( 8508): Starting upload from DelayedRunnable
04-09 11:05:04.918 V/FA-SVC ( 8508): Saving bundle, size: 505
04-09 11:05:04.919 D/FA-SVC ( 8508): Uploading events. Elapsed time since last upload attempt (ms): 512
04-09 11:05:04.921 V/FA-SVC ( 8508): Uploading data. app, uncompressed size, data: com.example, 546,
...
04-09 11:05:04.921 V/FA-SVC ( 8508): Not stopping services. fetch, network, upload: false, true, false
04-09 11:05:04.923 V/FA-SVC ( 8508): Uploading data. size: 519
04-09 11:05:05.149 V/FA-SVC ( 8508): Upload scheduled in approximately ms: 3599995
04-09 11:05:05.151 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:05.157 V/FA-SVC ( 8508): Scheduling upload with GcmTaskService
04-09 11:05:05.157 V/FA-SVC ( 8508): Scheduling task with Gcm. time: 3599995
04-09 11:05:05.160 V/FA-SVC ( 8508): Successful upload. Got network response. code, size: 204, 0
04-09 11:05:05.164 V/FA-SVC ( 8508): Nothing to upload or uploading impossible
04-09 11:05:05.165 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:05.169 V/FA-SVC ( 8508): Stopping uploading service(s)
In Firebase under "Conversions", I can see that first_open is set to "Mark as conversion". However, the data only shows google-play, (direct) and google as sources.
Also, I can see "screen_view" and "user_engagement" events in the Firebase DebugView when I turn it on, but nothing related to the referrer attribution.
I'm not sure what the problem is---does it need to be a Google campaign? (Ultimately I want to track facebook campaigns.) Or does it need to be installed from the Play store? Or is there something else I'm missing?
I am new to android development. i am trying to develop a college app, through that the admin will register users in firebase. the code is not showing any error but as i am clicking the register button the app is restarting. Help me please.
Thankyou in advance
here is my code
package com.example.abhisek.abacollege;
import android.app.ProgressDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class AdminLayout extends AppCompatActivity {
private EditText SID;
private EditText SPass;
private Button AReg;
private Prog`enter code here`ressDialog progressDialog;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin_layout);
final DatabaseReference mRootRef = FirebaseDatabase.getInstance().getReferenceFromUrl("https://abacollege-2730a.firebaseio.com/STUDENTS");
progressDialog = new ProgressDialog(this);
SID = (EditText) findViewById(R.id.StID);
SPass = (EditText) findViewById(R.id.StPass);
AReg = (Button) findViewById(R.id.StRegBtn);
AReg.setOnClickListener(new View.OnClickListener() {
#Override
public void onClick(View v) {
String ID = SID.getText().toString();
String Pass = SPass.getText().toString();
DatabaseReference childRef = mRootRef.child(ID);
childRef.setValue(Pass);
}
});
}
my build gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.abhisek.abacollege"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
implementation 'com.android.support:design:26.0.0-beta1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.google.android.gms:play-services-auth:11.8.0'
implementation 'com.google.firebase:firebase-messaging:11.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.google.firebase:firebase-crash:11.8.0'
compile 'com.google.firebase:firebase-auth:11.8.0'
}
apply plugin: 'com.google.gms.google-services'
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
help me please i really need it.. thank you again
CORRECTION
my log cat
03-09 21:19:00.205 2570-2629/com.example.abhisek.abacollege I/FA: Tag Manager is not found and thus will not be used
03-09 21:19:00.282 2570-2629/com.example.abhisek.abacollege D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-1484019674178325915}]
03-09 21:19:01.162 2570-2629/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:19:01.170 2570-2570/com.example.abhisek.abacollege W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-09 21:19:01.193 2570-2629/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 4
03-09 21:19:01.193 2570-2629/com.example.abhisek.abacollege E/FA: Discarding data. Failed to send app launch
03-09 21:19:01.194 2570-2629/com.example.abhisek.abacollege E/FA: Failed to get app instance id
03-09 21:19:01.195 2570-2629/com.example.abhisek.abacollege E/FA: Failed to send current screen to service
03-09 21:19:01.202 2570-2629/com.example.abhisek.abacollege E/FA: Discarding data. Failed to send event to service
03-09 21:19:01.214 2570-2629/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 0
03-09 21:19:11.576 2552-2808/com.google.android.gms I/FA-SVC: App measurement is starting up, version: 11580
03-09 21:19:11.632 2552-2808/com.google.android.gms V/FA-SVC: Collection enabled
03-09 21:19:11.694 2552-2808/com.google.android.gms D/FA-SVC: Debug-level message logging enabled
03-09 21:19:11.815 2552-2808/com.google.android.gms V/FA-SVC: Cancelling job. JobID: 812057698
03-09 21:19:11.916 2552-3368/com.google.android.gms I/FA-SVC: This instance being marked as an uploader
03-09 21:19:11.978 2552-3368/com.google.android.gms V/FA-SVC: Nothing to upload or uploading impossible
03-09 21:19:11.980 2552-3368/com.google.android.gms V/FA-SVC: Cancelling job. JobID: 812057698
03-09 21:19:14.769 2552-3213/com.google.android.gms D/FA-SVC: Got package replaced intent: com.example.abhisek.abacollege
03-09 21:19:15.065 2570-2609/com.example.abhisek.abacollege E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
03-09 21:19:45.096 2570-2609/com.example.abhisek.abacollege E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
03-09 21:20:18.939 2570-3753/com.example.abhisek.abacollege V/FA: Recording user engagement, ms: 79212
03-09 21:20:18.941 2570-3753/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:20:18.955 2570-3753/com.example.abhisek.abacollege V/FA: Activity paused, time: 150300
03-09 21:20:18.976 2570-3753/com.example.abhisek.abacollege D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=79212, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-1484019674178325915}]
03-09 21:20:19.030 2570-2570/com.example.abhisek.abacollege V/FA: onActivityCreated
03-09 21:20:19.345 2570-3753/com.example.abhisek.abacollege V/FA: Connection attempt already in progress
03-09 21:20:19.369 2570-3753/com.example.abhisek.abacollege V/FA: Connection attempt already in progress
03-09 21:20:19.370 2570-3753/com.example.abhisek.abacollege V/FA: Activity resumed, time: 150668
03-09 21:20:19.385 2570-2570/com.example.abhisek.abacollege W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-09 21:20:19.400 2570-3753/com.example.abhisek.abacollege D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=MainActivity, firebase_previous_id(_pi)=-1484019674178325915, firebase_screen_class(_sc)=AdminLogin, firebase_screen_id(_si)=-1484019674178325914}]
03-09 21:20:19.485 2570-3753/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:20:19.506 2570-3753/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 4
03-09 21:20:19.519 2570-3753/com.example.abhisek.abacollege E/FA: Failed to send current screen to service
03-09 21:20:19.530 2570-3753/com.example.abhisek.abacollege E/FA: Discarding data. Failed to send event to service
03-09 21:20:19.531 2570-3753/com.example.abhisek.abacollege E/FA: Failed to send current screen to service
03-09 21:20:19.532 2570-3753/com.example.abhisek.abacollege E/FA: Discarding data. Failed to send event to service
03-09 21:20:19.743 2570-2570/com.example.abhisek.abacollege W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-09 21:20:19.759 2570-3753/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 0
03-09 21:20:20.835 1774-1774/com.google.android.inputmethod.latin W/GInputConnectionWrapper: Fixing selection indices to 0, 0
03-09 21:20:24.650 1774-1774/com.google.android.inputmethod.latin W/GInputConnectionWrapper: Fixing selection indices to 0, 0
03-09 21:20:28.537 2570-3753/com.example.abhisek.abacollege V/FA: Recording user engagement, ms: 9245
03-09 21:20:28.538 2570-3753/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:20:28.542 2570-3753/com.example.abhisek.abacollege V/FA: Activity paused, time: 159912
03-09 21:20:28.551 2570-3753/com.example.abhisek.abacollege D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=9245, firebase_screen_class(_sc)=AdminLogin, firebase_screen_id(_si)=-1484019674178325914}]
03-09 21:20:28.569 2570-2570/com.example.abhisek.abacollege W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-09 21:20:28.592 2570-3753/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:20:28.600 2570-3753/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 2
03-09 21:20:28.600 2570-3753/com.example.abhisek.abacollege E/FA: Failed to send current screen to service
03-09 21:20:28.601 2570-3753/com.example.abhisek.abacollege E/FA: Discarding data. Failed to send event to service
03-09 21:20:28.615 2570-2570/com.example.abhisek.abacollege V/FA: onActivityCreated
03-09 21:20:28.839 2570-3753/com.example.abhisek.abacollege V/FA: Connection attempt already in progress
03-09 21:20:28.839 2570-3753/com.example.abhisek.abacollege V/FA: Activity resumed, time: 160204
03-09 21:20:29.027 2570-3753/com.example.abhisek.abacollege D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=AdminLogin, firebase_previous_id(_pi)=-1484019674178325914, firebase_screen_class(_sc)=AdminLayout, firebase_screen_id(_si)=-1484019674178325913}]
03-09 21:20:29.063 2570-2570/com.example.abhisek.abacollege W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-09 21:20:29.215 2570-3753/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:20:29.237 2570-3753/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 2
03-09 21:20:29.238 2570-3753/com.example.abhisek.abacollege E/FA: Failed to send current screen to service
03-09 21:20:29.239 2570-3753/com.example.abhisek.abacollege E/FA: Discarding data. Failed to send event to service
03-09 21:20:29.477 2570-2570/com.example.abhisek.abacollege W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-09 21:20:29.494 2570-3753/com.example.abhisek.abacollege V/FA: Processing queued up service tasks: 0
03-09 21:20:30.142 1774-1774/com.google.android.inputmethod.latin W/GInputConnectionWrapper: Fixing selection indices to 0, 0
03-09 21:20:34.170 2552-2564/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/networkstatistics.sqlite' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
03-09 21:20:36.380 1774-1774/com.google.android.inputmethod.latin W/GInputConnectionWrapper: Fixing selection indices to 0, 0
03-09 21:20:40.580 2570-3753/com.example.abhisek.abacollege D/FA: Logging event (FE): app_exception(_ae), Bundle[{firebase_event_origin(_o)=crash, firebase_screen_class(_sc)=AdminLayout, firebase_screen_id(_si)=-1484019674178325913, timestamp=1520610640567, fatal=1}]
03-09 21:20:40.621 2570-3753/com.example.abhisek.abacollege V/FA: Connecting to remote service
03-09 21:20:40.625 2570-3753/com.example.abhisek.abacollege V/FA: Recording user engagement, ms: 11798
03-09 21:20:40.633 2570-3753/com.example.abhisek.abacollege D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=11798, firebase_screen_class(_sc)=AdminLayout, firebase_screen_id(_si)=-1484019674178325913}]
03-09 21:20:40.664 2570-3753/com.example.abhisek.abacollege V/FA: Connection attempt already in progress
You are creating two references, but you can simply do this
inside your onClick
mRootRef.child(ID).setValue(Pass);
Make sure that in your rules in firebase you have them set to true if you are not logged in or authenticated
While running the demo (https://github.com/androidthings/doorbell) on my respberry PI, I run into error like the following:
01-01 00:11:00.830 5672-5672/com.company.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service
01-01 00:11:00.835 5672-5672/com.company.androidthings.doorbell D/DoorbellCamera: Using camera id 0
01-01 00:11:00.853 5672-5723/com.company.androidthings.doorbell D/DoorbellCamera: Opened camera.
01-01 00:11:00.995 5672-5715/com.company.androidthings.doorbell I/FA: This instance being marked as an uploader
01-01 00:11:01.122 5672-5715/com.company.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
01-01 00:11:01.253 5672-5732/com.company.androidthings.doorbell D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 10s
The following is the method I tried:
I did some research and find the following relevant post:
adjust/unity_sdk#88
Following the instruction to install play service with android SDK manage tool (using android studio). Clear the project. Rebuild. Install the new apk into respberry PI but still have the same error log.
I also checked on the firebase console, no picture was updated. Even from the android monitor, it was confirmed that button was pushed camera works as expected.
Regarding internet connection, I installed another app on the raspberry PI. It successfully sent the info to the server. It confirms the connectivity works as expected.
Any suggestion?
The log message you are seeing is from FirebaseAnalytics (the "FA" in the log tag), and makes sense since analytics is not enabled in this sample (unless you added code to enable it). Notice this is also a debug message (the "D" in the log tag) and not an error/warning.
This should not be affecting the Doorbell sample, so if you are not able to get the images uploaded properly to Firebase there is likely something else wrong with the project configuration and perhaps there are other clues deeper in the log.
It turns out that configuration is not appropriate. It uses the new SDK path which doesn't install google play service. Once I switch to the default SDK path of system which installed google play service. The logs looks different event though that message "Unable to get advertising id:" is still there. It seems (from FA log) the app can talk to the server.
04-24 15:22:53.659 16642-16642/? I/art: Late-enabling -Xcheck:jni
04-24 15:22:53.661 16642-16642/? W/art: Unknown instruction set features for ARM CPU variant (generic) using conservative defaults
04-24 15:22:53.709 16642-16649/? I/art: Debugger is no longer active
04-24 15:22:53.709 16642-16649/? I/art: Starting a blocking GC Instrumentation
04-24 15:22:54.610 16642-16642/? W/System: ClassLoader referenced unknown path: /data/app/com.company.androidthings.doorbell-1/lib/arm
04-24 15:22:54.678 16642-16642/com.company.androidthings.doorbell D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
04-24 15:22:54.712 16642-16642/com.company.androidthings.doorbell W/InstanceID/Rpc: Found 10007
04-24 15:22:54.723 16642-16642/com.company.androidthings.doorbell D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell I/FA: App measurement is starting up, version: 9452
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell D/FA: Debug logging enabled
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell D/FA: AppMeasurement singleton hash: 202124672
04-24 15:22:54.906 16642-16642/com.company.androidthings.doorbell V/FA: Collection enabled
04-24 15:22:54.907 16642-16642/com.company.androidthings.doorbell V/FA: App package, google app id: com.company.androidthings.doorbell, 1:821276198771:android:044f9c86291658f3
04-24 15:22:54.980 16642-16642/com.company.androidthings.doorbell V/FA: Registered activity lifecycle callback
04-24 15:22:54.986 16642-16642/com.company.androidthings.doorbell I/FirebaseInitProvider: FirebaseApp initialization successful
04-24 15:22:54.989 16642-16642/com.company.androidthings.doorbell I/InstantRun: starting instant run server: is main process
04-24 15:22:55.000 16642-16666/com.company.androidthings.doorbell V/FA: State of service unknown
04-24 15:22:55.000 16642-16666/com.company.androidthings.doorbell V/FA: Checking service availability
04-24 15:22:55.015 16642-16666/com.company.androidthings.doorbell W/GooglePlayServicesUtil: Google Play Store is missing.
04-24 15:22:55.015 16642-16666/com.company.androidthings.doorbell W/FA: Service invalid
04-24 15:22:55.016 16642-16666/com.company.androidthings.doorbell V/FA: Setting useService: false
04-24 15:22:55.019 16642-16666/com.company.androidthings.doorbell V/FA: Using local app measurement service
04-24 15:22:55.449 16642-16642/com.company.androidthings.doorbell V/FA: onActivityCreated
04-24 15:22:55.449 16642-16642/com.company.androidthings.doorbell D/DoorbellActivity: Doorbell Activity created.
04-24 15:22:55.450 16642-16642/com.company.androidthings.doorbell D/DoorbellActivity: No permission
04-24 15:22:55.502 16642-16666/com.company.androidthings.doorbell V/FA: Activity resumed, time: 331914987
04-24 15:22:55.530 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:22:55.563 16642-16642/com.company.androidthings.doorbell V/FA: Bound to IMeasurementService interface
04-24 15:22:55.565 16642-16666/com.company.androidthings.doorbell V/FA: Connected to service
04-24 15:22:55.566 16642-16666/com.company.androidthings.doorbell V/FA: Processing queued up service tasks: 1
04-24 15:22:59.196 16642-16666/com.company.androidthings.doorbell W/art: Long monitor contention with owner pool-2-thread-1 (16678) at long com.android.org.conscrypt.NativeCrypto.RSA_generate_key_ex(int, byte[])(NativeCrypto.java:-2) waiters=0 in java.lang.String com.google.firebase.iid.zzg.get(java.lang.String, java.lang.String) for 3.621s
04-24 15:22:59.236 16642-16666/com.company.androidthings.doorbell I/FA: This instance being marked as an uploader
04-24 15:22:59.696 16642-16666/com.company.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
04-24 15:22:59.711 16642-16666/com.company.androidthings.doorbell D/FA: Setting user property: _fot, 1493049600000
04-24 15:22:59.719 16642-16666/com.company.androidthings.doorbell D/FA: User property set: _fot, 1493049600000
04-24 15:22:59.723 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_f,params=Bundle[{_c=1}]
04-24 15:22:59.790 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _f, 22
04-24 15:22:59.792 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_f', params=Bundle[{_c=1, _o=auto}]}
04-24 15:22:59.802 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14436
04-24 15:22:59.807 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 84
04-24 15:22:59.808 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_e,params=Bundle[{_et=1}]
04-24 15:22:59.840 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _e, 23
04-24 15:22:59.841 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_e', params=Bundle[{_o=auto, _et=1}]}
04-24 15:22:59.847 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14390
04-24 15:22:59.853 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 45
04-24 15:23:04.241 16642-16666/com.company.androidthings.doorbell V/FA: Inactivity, disconnecting from AppMeasurementService
04-24 15:23:04.276 16642-16642/com.company.androidthings.doorbell V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
04-24 15:23:04.277 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:05.504 16642-16666/com.company.androidthings.doorbell V/FA: Session started, time: 331924989
04-24 15:23:05.550 16642-16666/com.company.androidthings.doorbell I/FA: Tag Manager is not found and thus will not be used
04-24 15:23:05.552 16642-16666/com.company.androidthings.doorbell D/FA: Logging event (FE): _s, Bundle[{_o=auto}]
04-24 15:23:05.555 16642-16666/com.company.androidthings.doorbell V/FA: Using local app measurement service
04-24 15:23:05.562 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:23:05.564 16642-16642/com.company.androidthings.doorbell V/FA: Bound to IMeasurementService interface
04-24 15:23:05.564 16642-16666/com.company.androidthings.doorbell V/FA: Connected to service
04-24 15:23:05.565 16642-16666/com.company.androidthings.doorbell V/FA: Processing queued up service tasks: 1
04-24 15:23:05.572 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_s,params=Bundle[{_o=auto}]
04-24 15:23:05.594 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _s, 14
04-24 15:23:05.596 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_s', params=Bundle[{_o=auto}]}
04-24 15:23:05.655 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14850
04-24 15:23:05.660 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 89
04-24 15:23:10.577 16642-16666/com.company.androidthings.doorbell V/FA: Inactivity, disconnecting from AppMeasurementService
04-24 15:23:10.616 16642-16642/com.company.androidthings.doorbell V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
04-24 15:23:10.618 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:20.547 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementReceiver got: com.google.android.gms.measurement.UPLOAD
04-24 15:23:20.562 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:23:20.564 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService called. startId, action: 1, com.google.android.gms.measurement.UPLOAD
04-24 15:23:20.588 16642-16666/com.company.androidthings.doorbell V/FA: Fetching remote configuration: com.company.androidthings.doorbell
04-24 15:23:20.598 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService processed last upload request
04-24 15:23:20.598 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:20.601 16642-17004/com.company.androidthings.doorbell D/NetworkSecurityConfig: No Network Security Config specified, using platform default
04-24 15:23:21.835 16642-16666/com.company.androidthings.doorbell V/FA: Parsed config. version, gmp_app_id: 1492543680583000, 1:821276198771:android:044f9c86291658f3
04-24 15:23:21.841 16642-16666/com.company.androidthings.doorbell V/FA: Successfully fetched config. Got network response. code, size: 200, 52
04-24 15:23:21.892 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _f, 0
04-24 15:23:21.896 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _e, 0
04-24 15:23:21.899 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _s, 0
04-24 15:23:21.901 16642-16666/com.company.androidthings.doorbell V/FA: property, affected audience count: _fot, 0
04-24 15:23:21.924 16642-16666/com.company.androidthings.doorbell V/FA: Saving bundle, size: 301
04-24 15:23:21.947 16642-16666/com.company.androidthings.doorbell V/FA: Uploading data. app, uncompressed size, data: com.company.androidthings.doorbell, 356,
batch {
bundle {
protocol_version: 1
platform: android
gmp_version: 9452
uploading_gmp_version: 9452
gmp_app_id: 1:821276198771:android:044f9c86291658f3
app_id: com.company.androidthings.doorbell
app_version: 1.0
app_version_major: 1
firebase_instance_id: eNnLI0cB484
dev_cert_hash: -8029454304837808102
app_store: manual_install
upload_timestamp_millis: 1493047401878
start_timestamp_millis: 1493047379237
end_timestamp_millis: 1493047385505
app_instance_id: 570e158a1616db1ea428bad0ac67c079
os_version: 7.0
device_model: iot_rpi3
user_default_language: en-us
time_zone_offset_minutes: 0
bundle_sequential_index: 1
service_upload: false
user_property {
set_timestamp_millis: 1493047379237
name: _fot
int_value: 1493049600000
}
event {
name: _f
timestamp_millis: 1493047379237
previous_timestamp_millis: 0
param {
name: _c
int_value: 1
}
param {
name: _o
string_value: auto
}
}
event {
name: _e
timestamp_millis: 1493047379237
previous_timestamp_millis: 0
param {
name: _o
string_value: auto
}
param {
name: _et
int_value: 1
}
}
event {
name: _s
timestamp_millis: 1493047385505
previous_timestamp_millis: 0
param {
name: _o
string_value: auto
}
}
}
}
04-24 15:23:21.950 16642-17004/com.company.androidthings.doorbell V/FA: Uploading data. size: 315
04-24 15:23:22.025 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 3599959
04-24 15:23:22.030 16642-16666/com.company.androidthings.doorbell V/FA: Successful upload. Got network response. code, size: 204, 0
I am trying Firebase Analytics in my app and I assume I have done all the initial setting right. I checked the log on terminal with this command:
adb logcat -v time -s FA FA-SVC
This is the log output -
09-26 11:20:09.760 V/FA (27438): Activity resumed, time: 3451189692
09-26 11:20:11.216 V/FA (27438): Activity paused, time: 3451191151
09-26 11:22:44.674 I/FA ( 5784): App measurement is starting up, version: 9080
09-26 11:22:44.674 I/FA ( 5784): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-26 11:22:44.674 D/FA ( 5784): Debug logging enabled
09-26 11:22:44.674 D/FA ( 5784): AppMeasurement singleton hash: 74700849
09-26 11:22:44.690 V/FA ( 5784): Collection enabled
09-26 11:22:44.690 V/FA ( 5784): App package, google app id: com.gaadi.sfa.dev, 1:450847066500:android:80a026686cf10a8d
09-26 11:22:44.708 V/FA ( 5784): Registered activity lifecycle callback
09-26 11:22:44.714 V/FA ( 5784): Using measurement service
09-26 11:22:44.715 V/FA ( 5784): Connecting to remote service
09-26 11:22:44.859 V/FA ( 5784): onActivityCreated
09-26 11:22:45.011 D/FA ( 5784): Logging event (FE): select_content, Bundle[{item_name=Splash screen opened, _o=app, item_id=7}]
09-26 11:22:45.012 V/FA ( 5784): Using measurement service
09-26 11:22:45.012 V/FA ( 5784): Connection attempt already in progress
09-26 11:22:45.012 D/FA ( 5784): Setting app measurement enabled (FE): true
09-26 11:22:45.012 V/FA ( 5784): Setting measurementEnabled: true
09-26 11:22:45.014 V/FA ( 5784): Using measurement service
09-26 11:22:45.014 V/FA ( 5784): Connection attempt already in progress
09-26 11:22:45.035 V/FA ( 5784): Activity resumed, time: 3451344970
09-26 11:22:45.240 D/FA ( 5784): Connected to remote service
09-26 11:22:45.240 V/FA ( 5784): Processing queued up service tasks: 3
09-26 11:22:45.273 V/FA-SVC ( 784): Logging event: origin=app,name=select_content,params=Bundle[mParcelledData.dataSize=140]
09-26 11:22:45.539 V/FA-SVC ( 784): Saving event, name, data size: select_content, 66
09-26 11:22:45.540 V/FA-SVC ( 784): Event recorded: Event{appId='com.gaadi.sfa.dev', name='select_content', params=Bundle[{item_name=Splash screen opened, _o=app, item_id=7}]}
09-26 11:22:45.565 V/FA-SVC ( 784): Upload scheduled in approximately ms: 14382
09-26 11:22:45.575 V/FA-SVC ( 784): Background event processing time, ms: 303
09-26 11:22:48.198 V/FA ( 5784): Activity paused, time: 3451348134
09-26 11:22:48.346 V/FA ( 5784): Activity resumed, time: 3451348281
09-26 11:22:50.263 V/FA ( 5784): Inactivity, disconnecting from AppMeasurementService
09-26 11:22:50.534 I/FA ( 6365): App measurement is starting up, version: 9452
09-26 11:22:50.535 I/FA ( 6365): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-26 11:22:50.535 D/FA ( 6365): Debug logging enabled
09-26 11:22:50.535 D/FA ( 6365): AppMeasurement singleton hash: 241818726
09-26 11:22:50.549 V/FA ( 6365): Collection enabled
09-26 11:22:50.549 V/FA ( 6365): App package, google app id: com.gaadi.app, 1:29823256680:android:0379d7b84ea091f3
09-26 11:22:50.558 V/FA ( 6365): Registered activity lifecycle callback
09-26 11:22:50.568 V/FA ( 6365): Using measurement service
09-26 11:22:50.576 V/FA ( 6365): Connecting to remote service
09-26 11:22:50.726 D/FA ( 6365): Connected to remote service
09-26 11:22:50.726 V/FA ( 6365): Processing queued up service tasks: 1
09-26 11:22:55.183 V/FA ( 5784): Session started, time: 3451355119
09-26 11:22:55.187 D/FA ( 5784): Logging event (FE): _s, Bundle[{_o=auto}]
09-26 11:22:55.187 V/FA ( 5784): Using measurement service
09-26 11:22:55.187 V/FA ( 5784): Connecting to remote service
09-26 11:22:55.194 D/FA ( 5784): Connected to remote service
09-26 11:22:55.195 V/FA ( 5784): Processing queued up service tasks: 1
09-26 11:22:55.198 V/FA-SVC ( 784): Logging event: origin=auto,name=_s,params=Bundle[mParcelledData.dataSize=36]
09-26 11:22:55.207 V/FA-SVC ( 784): Saving event, name, data size: _s, 19
09-26 11:22:55.211 V/FA-SVC ( 784): Event recorded: Event{appId='com.gaadi.sfa.dev', name='_s', params=Bundle[{_o=auto}]}
09-26 11:22:55.217 V/FA-SVC ( 784): Upload scheduled in approximately ms: 14967
09-26 11:22:55.224 V/FA-SVC ( 784): Background event processing time, ms: 26
09-26 11:22:55.743 V/FA ( 6365): Inactivity, disconnecting from AppMeasurementService
09-26 11:23:00.199 V/FA ( 5784): Inactivity, disconnecting from AppMeasurementService
09-26 11:23:10.373 V/FA-SVC ( 784): Device receiver got: com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.381 V/FA-SVC ( 784): Device PackageMeasurementService is starting up
09-26 11:23:10.381 V/FA-SVC ( 784): Device PackageMeasurementService called. startId, action: 1, com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.386 V/FA-SVC ( 784): Device receiver got: com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.398 V/FA-SVC ( 784): Device PackageMeasurementService called. startId, action: 2, com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.514 D/FA-SVC ( 784): Uploading events. Elapsed time since last upload attempt (ms): 36507706
09-26 11:23:10.522 V/FA-SVC ( 784): Fetching remote configuration: com.gaadi.sfa.dev
09-26 11:23:10.526 D/FA-SVC ( 784): Uploading events. Elapsed time since last upload attempt (ms): 36507847
09-26 11:23:10.528 V/FA-SVC ( 784): Fetching remote configuration: com.gaadi.sfa.dev
09-26 11:23:10.530 V/FA-SVC ( 784): Device PackageMeasurementService processed last upload request
09-26 11:23:10.530 V/FA-SVC ( 784): Device PackageMeasurementService is shutting down
09-26 11:23:11.394 V/FA-SVC ( 784): Successfully fetched config. Got network response. code, size: 304, 0
09-26 11:23:11.428 V/FA-SVC ( 784): Saving bundle, size: 437
09-26 11:23:11.429 D/FA-SVC ( 784): Uploading events. Elapsed time since last upload attempt (ms): 36508720
09-26 11:23:11.448 V/FA-SVC ( 784): Uploading data. app, uncompressed size, data: com.gaadi.sfa.dev, 475,
09-26 11:23:11.448 V/FA-SVC ( 784): batch {
09-26 11:23:11.448 V/FA-SVC ( 784): bundle {
09-26 11:23:11.448 V/FA-SVC ( 784): protocol_version: 1
09-26 11:23:11.448 V/FA-SVC ( 784): platform: android
09-26 11:23:11.448 V/FA-SVC ( 784): gmp_version: 9080
09-26 11:23:11.448 V/FA-SVC ( 784): uploading_gmp_version: 9683
09-26 11:23:11.448 V/FA-SVC ( 784): gmp_app_id: 1:450847066500:android:80a026686cf10a8d
09-26 11:23:11.448 V/FA-SVC ( 784): app_id: com.gaadi.sfa.dev
09-26 11:23:11.448 V/FA-SVC ( 784): app_version: 1.0.0.7
09-26 11:23:11.448 V/FA-SVC ( 784): app_version_major: 100007
09-26 11:23:11.448 V/FA-SVC ( 784): firebase_instance_id: e5ssFe0UGMY
09-26 11:23:11.448 V/FA-SVC ( 784): dev_cert_hash: -6222367415306193050
09-26 11:23:11.448 V/FA-SVC ( 784): app_store: manual_install
09-26 11:23:11.448 V/FA-SVC ( 784): upload_timestamp_millis: 1474869191396
09-26 11:23:11.448 V/FA-SVC ( 784): start_timestamp_millis: 1474869164947
09-26 11:23:11.448 V/FA-SVC ( 784): end_timestamp_millis: 1474869175184
09-26 11:23:11.448 V/FA-SVC ( 784): previous_bundle_start_timestamp_millis: 1474832497931
09-26 11:23:11.448 V/FA-SVC ( 784): previous_bundle_end_timestamp_millis: 1474832497931
09-26 11:23:11.448 V/FA-SVC ( 784): app_instance_id: 46bff6a9cfdd41f9c57bb94ff2a22a0a
09-26 11:23:11.448 V/FA-SVC ( 784): resettable_device_id: 7380f339-aa10-4513-a294-3a11d3048df6
09-26 11:23:11.448 V/FA-SVC ( 784): limited_ad_tracking: false
09-26 11:23:11.448 V/FA-SVC ( 784): os_version: 6.0.1
09-26 11:23:11.448 V/FA-SVC ( 784): device_model: MotoG3
09-26 11:23:11.448 V/FA-SVC ( 784): user_default_language: en-in
09-26 11:23:11.448 V/FA-SVC ( 784): time_zone_offset_minutes: 330
09-26 11:23:11.448 V/FA-SVC ( 784): bundle_sequential_index: 29
09-26 11:23:11.448 V/FA-SVC ( 784): service_upload: true
09-26 11:23:11.448 V/FA-SVC ( 784): user_property {
09-26 11:23:11.448 V/FA-SVC ( 784): set_timestamp_millis: 1474610827551
09-26 11:23:11.448 V/FA-SVC ( 784): name: _fot
09-26 11:23:11.448 V/FA-SVC ( 784): int_value: 1474614000000
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): user_property {
09-26 11:23:11.448 V/FA-SVC ( 784): set_timestamp_millis: 1474832490868
09-26 11:23:11.448 V/FA-SVC ( 784): name: LandingDboard
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: LandingDboard opened
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): event {
09-26 11:23:11.448 V/FA-SVC ( 784): name: select_content
09-26 11:23:11.448 V/FA-SVC ( 784): timestamp_millis: 1474869164947
09-26 11:23:11.448 V/FA-SVC ( 784): previous_timestamp_millis: 1474832486501
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: item_name
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: Splash screen opened
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: _o
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: app
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: item_id
09-26 11:23:11.448 V/FA-SVC ( 784): int_value: 7
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): event {
09-26 11:23:11.448 V/FA-SVC ( 784): name: _s
09-26 11:23:11.448 V/FA-SVC ( 784): timestamp_millis: 1474869175184
09-26 11:23:11.448 V/FA-SVC ( 784): previous_timestamp_millis: 1474830293753
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: _o
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: auto
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.551 V/FA-SVC ( 784): Successfully fetched config. Got network response. code, size: 304, 0
09-26 11:23:11.552 V/FA-SVC ( 784): Uploading data. size: 454
09-26 11:23:11.554 W/FA-SVC ( 784): Uploading requested multiple times
09-26 11:23:12.097 V/FA-SVC ( 784): Upload scheduled in approximately ms: 3599996
09-26 11:23:12.100 V/FA-SVC ( 784): Successful upload. Got network response. code, size: 204, 0
09-26 11:25:33.029 V/FA ( 5784): Activity paused, time: 3451512963
09-26 11:25:33.037 V/FA ( 5784): onActivityCreated
09-26 11:25:33.288 D/FA ( 5784): Setting user property (FE): LandingDboard, LandingDboard opened
09-26 11:25:33.289 V/FA ( 5784): Using measurement service
09-26 11:25:33.289 V/FA ( 5784): Connecting to remote service
09-26 11:25:33.318 V/FA ( 5784): Activity resumed, time: 3451513253
09-26 11:25:33.586 D/FA ( 5784): Connected to remote service
09-26 11:25:33.587 V/FA ( 5784): Processing queued up service tasks: 1
09-26 11:25:33.591 D/FA-SVC ( 784): Setting user property: LandingDboard, LandingDboard opened
09-26 11:25:33.611 D/FA-SVC ( 784): User property set: LandingDboard, LandingDboard opened
09-26 11:25:38.594 V/FA ( 5784): Inactivity, disconnecting from AppMeasurementService
Since my logs are being uploaded successfully, I don't think I have any Manifest Merger problems like this (correct me if I am wrong):
FirebaseApp with name [DEFAULT] doesn't exist
I have already made a demo project and its working fine. But when I am doing same exact thing in a pre-existing project, its not working.
Following is my Analytics code in the Splash Activity -
firebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 7);
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "Splash screen opened");
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
firebaseAnalytics.setAnalyticsCollectionEnabled(true);
I am using firebase-analytics-9.0.0 (same for demo project and its working perfectly)
I even tried adding optional SHA1 key in the Firebase project setting in the console, but no success.
PS - My crash data is showing perfectly for the same project but no luck with Analytics.
I was having an issue with the R symbol in my Android app (it was imported as import com.myName.runmate.R; When I removed this lined, I resynched with Gradle and rebuilt the project but I got the following in Messages Gradle Build - Error:(73, 44) error: package R does not exist
The logcat output:
09-19 13:21:01.969 746-821/? I/PowerManagerService﹕ Going to sleep due to screen timeout (uid 1000)...
09-19 13:21:01.970 746-821/? I/PowerManagerService﹕ Sleeping (uid 1000)...
09-19 13:21:02.078 909-909/? D/PhoneStatusBar﹕ disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH >
09-19 13:21:02.104 188-856/? D/audio_hw_primary﹕ adev_set_parameters: enter: screen_state=off
09-19 13:21:02.127 746-842/? E/WifiStateMachine﹕ cancelDelayedScan -> 2163
09-19 13:21:02.128 746-842/? E/native﹕ do suspend true
09-19 13:21:02.529 746-819/? I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 442.451 x 443.345 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
09-19 13:21:02.529 175-175/? D/SurfaceFlinger﹕ Set power mode=0, type=0 flinger=0xb6482000
09-19 13:21:02.529 175-175/? D/qdhwcomposer﹕ hwc_blank: Blanking display: 0
09-19 13:21:02.530 746-746/? V/ActivityManager﹕ Display changed displayId=0
09-19 13:21:02.813 175-175/? D/qdhwcomposer﹕ hwc_blank: Done blanking display: 0
09-19 13:21:02.813 746-867/? D/SurfaceControl﹕ Excessive delay in setPowerMode(): 284ms
09-19 13:21:02.813 2046-2050/? E/ANDR-PERF-LOCK﹕ Failed to apply optimization for resource: 4 level: 0
09-19 13:21:28.638 746-746/? I/EntropyMixer﹕ Writing entropy...
09-19 13:21:28.640 746-821/? I/PowerManagerService﹕ Waking up from sleep (uid 1000)...
09-19 13:21:28.640 746-821/? I/DisplayPowerController﹕ Blocking screen on until initial contents have been drawn.
09-19 13:21:28.667 1086-1086/? I/PowerConnectionBroadcastReceiver﹕ onReceive() : Device plugged in.
09-19 13:21:28.667 1086-1086/? I/StatsUtilsManager﹕ startPeriodStatsRecorder() : Success
09-19 13:21:28.667 1086-1086/? I/PeriodicStatsRecorder﹕ shouldRecordStats() = Too Soon
09-19 13:21:28.671 8907-8907/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
09-19 13:21:28.671 8907-8907/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
09-19 13:21:28.672 9422-9422/? I/GCoreUlr﹕ Starting service, intent=Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) }, extras=Bundle[{receiverAction=android.intent.action.ACTION_POWER_CONNECTED}]
09-19 13:21:28.674 9422-9422/? I/GCoreUlr﹕ DispatchingService.onCreate()
09-19 13:21:28.678 9496-9496/? I/iu.Environment﹕ update battery state; isPlugged? true*
09-19 13:21:28.684 9496-12232/? I/iu.UploadsManager﹕ num queued entries: 0
09-19 13:21:28.686 9496-12232/? I/iu.UploadsManager﹕ num updated entries: 0
09-19 13:21:28.688 9496-12232/? I/iu.SyncManager﹕ NEXT; no task
09-19 13:21:28.697 9496-28033/? I/iu.FingerprintManager﹕ Start processing all media
09-19 13:21:28.708 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/external/images/media
09-19 13:21:28.719 2046-2050/? E/ANDR-PERF-LOCK﹕ Failed to reset optimization for resource: 4 level: 0
09-19 13:21:28.720 746-819/? I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 442.451 x 443.345 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state ON, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
09-19 13:21:28.720 175-175/? D/SurfaceFlinger﹕ Set power mode=2, type=0 flinger=0xb6482000
09-19 13:21:28.720 175-175/? D/qdhwcomposer﹕ hwc_blank: Unblanking display: 0
09-19 13:21:28.769 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/external/video/media
09-19 13:21:28.775 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/phoneStorage/images/media
09-19 13:21:28.778 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/phoneStorage/video/media
09-19 13:21:28.779 9496-28033/? I/iu.FingerprintManager﹕ Finished generating fingerprints; 0.082 seconds
09-19 13:21:28.779 9496-28033/? I/iu.FingerprintManager﹕ numSeen=680 numGenerated=0 numDeleted=0 numFailed=0
09-19 13:21:28.796 746-746/? V/KeyguardServiceDelegate﹕ onScreenTurnedOn(showListener = com.android.internal.policy.impl.PhoneWindowManager$2#280fe250)
09-19 13:21:28.797 746-746/? V/ActivityManager﹕ Display changed displayId=0
09-19 13:21:28.807 27346-28044/? I/GAv4﹕ Google Analytics 7.8.95 is starting up. To enable debug logging on a device run:
adb shell setprop log.tag.GAv4 DEBUG
adb logcat -s GAv4
09-19 13:21:28.812 9422-28036/? I/GCoreUlr﹕ WorldUpdater received intent Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) } with receiverAction android.intent.action.ACTION_POWER_CONNECTED
09-19 13:21:28.823 746-1213/? V/KeyguardServiceDelegate﹕ **** SHOWN CALLED ****
09-19 13:21:28.823 746-821/? I/DisplayPowerController﹕ Unblocked screen on after 183 ms
09-19 13:21:28.829 188-188/? D/audio_hw_primary﹕ adev_set_parameters: enter: screen_state=on
09-19 13:21:28.845 746-842/? E/WifiStateMachine﹕ cancelDelayedScan -> 2164
09-19 13:21:28.846 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_SET_TECH_CFG_EVT; status=0x0
09-19 13:21:28.846 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_SET_PROTO_CFG_EVT; status=0x0
09-19 13:21:28.846 1148-1379/? D/BrcmNfcJni﹕ RoutingManager::commitRouting
09-19 13:21:28.846 746-842/? E/native﹕ do suspend false
09-19 13:21:28.856 27346-28044/? W/GAv4﹕ AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.856 746-762/? W/ActivityManager﹕ getRunningAppProcesses: caller 10065 does not hold REAL_GET_TASKS; limiting output
09-19 13:21:28.865 27346-28044/? W/GAv4﹕ CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.868 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT
09-19 13:21:28.871 27346-28055/? W/GAv4﹕ AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.906 746-761/? I/art﹕ Explicit concurrent mark sweep GC freed 28154(1676KB) AllocSpace objects, 2(73KB) LOS objects, 30% free, 36MB/52MB, paused 1.413ms total 89.320ms
09-19 13:21:28.919 746-1252/? I/ActivityManager﹕ Start proc 28057:com.estrongs.android.pop/u0a144 for broadcast com.estrongs.android.pop/.app.StartServiceReceiver
09-19 13:21:28.951 28057-28057/? E/ObjectHelper﹕ Can't find method:setCompatibilityInfo
09-19 13:21:28.959 175-175/? D/qdhwcomposer﹕ hwc_blank: Done unblanking display: 0
09-19 13:21:28.959 746-867/? D/SurfaceControl﹕ Excessive delay in setPowerMode(): 239ms
09-19 13:21:28.976 28057-28077/? D/an﹕ Refresh storage info done.21
09-19 13:21:28.982 9422-28036/? I/GCoreUlr﹕ WorldUpdater:android.intent.action.ACTION_POWER_CONNECTED: Ensuring that reporting is stopped because of reasons: {account#-19#=[InactiveReason{mVersionCode=0, mIdentifier=6, mName='ReportingNotEnabled'}]}
09-19 13:21:28.985 9422-28036/? I/GCoreUlr﹕ Unbound from all location providers
09-19 13:21:28.996 9422-9422/? I/GCoreUlr﹕ DispatchingService.onDestroy()
09-19 13:21:28.996 9422-9422/? I/GCoreUlr﹕ Stopping handler for UlrDispSvcFast
09-19 13:21:28.999 9422-9422/? I/GCoreUlr﹕ Unbound from all location providers
09-19 13:21:29.038 28057-28079/? W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000
09-19 13:21:29.453 746-17030/? D/AlarmManagerService﹕ Kernel timezone updated to -60 minutes west of GMT
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ Intent ACTION_SERVICE_STATE_CHANGED
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ Service state changed! 0 Full: 0 0 voice home data home O2 - UK O2 - UK 23410 O2 - UK O2 - UK 23410 UMTS HSPAP CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Current state=-1
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ rematching NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ Network NetworkAgentInfo [MOBILE (HSPA) - 127] was already satisfying request 1. No change.
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ notifyType AVAILABLE for NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.465 746-844/? D/ConnectivityService﹕ notifyType CAP_CHANGED for NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.466 746-844/? D/ConnectivityService﹕ Setting tx/rx TCP buffers to 122334,734003,2202010,32040,192239,576717
09-19 13:21:29.468 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524290
09-19 13:21:29.469 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524290
09-19 13:21:29.470 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524294
09-19 13:21:29.470 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524294
09-19 13:21:29.472 746-746/? I/ValidateNoPeople﹕ skipping global notification
09-19 13:21:29.473 746-746/? V/NotificationService﹕ pkg=android canInterrupt=false intercept=true
09-19 13:21:29.485 746-746/? I/ValidateNoPeople﹕ skipping global notification
09-19 13:21:29.485 746-746/? V/NotificationService﹕ pkg=android canInterrupt=false intercept=true
09-19 13:21:29.496 746-844/? D/ConnectivityService﹕ notifyType IP_CHANGED for NetworkAgentInfo [MOBILE (HSPA+) - 127]
09-19 13:21:29.500 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524295
09-19 13:21:29.501 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524295
09-19 13:21:29.505 27491-28097/? D/CellBroadcastConfigService﹕ enabling emergency cell broadcast channels
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4352 to 4354 from client com.android.cellbroadcastreceiver
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.523 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.524 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4356 to 4356 from client com.android.cellbroadcastreceiver
09-19 13:21:29.524 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.531 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.532 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4371 to 4372 from client com.android.cellbroadcastreceiver
09-19 13:21:29.532 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.547 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableCdmaBroadcastRange
09-19 13:21:29.547 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCdmaBroadcastConfig with 1 configurations
09-19 13:21:29.551 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4097 to 4097 from client com.android.cellbroadcastreceiver
09-19 13:21:29.560 1220-29365/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.560 1220-29365/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4373 to 4378 from client com.android.cellbroadcastreceiver
Just comment the Lines Where your Getting Error With R in Java File
Then Build the project
It Should Rebuild the R file Again
Now Remove Your Comments and You are good to go
Can you ensure all your package names are the same:
package com.khackett.runmate;
Not adding the folder extension for each folder the files are in.
package com.khackett.runmate.adapters;
As you have declared in your manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.khackett.runmate" >