I have a very simple app with an empty activity. I just tried it over another phone (the Huawei P8 Lite 2017 to be precise), and it seems that onCreate never appears in logcat. Here is the code for the activity ("Empty activity" app created through wizard, using android studio, which recently received a major update).
package com.test.test;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.v("foo","OnCreate");
}
}
On every other phone I tried, it displays fine in logcat. On this phone I get a bunch of info/error messages (as usual I would say, but the messages are somewhat different), and no "OnCreate".
It works fine, for example, for the Galaxy S7 (running "7.0", just like the P8 Lite 2017).
Are there any adb settings that may hide this log from me? What could be the problem?