it looks like the onCreate() method is never called in my library where I have to set the mAmbientController:
Setting it in Initialize fails with an error.
B4X:
public class ABWearOS extends FragmentActivity implements AmbientModeSupport.AmbientCallbackProvider, DataClient.OnDataChangedListener, MessageClient.OnMessageReceivedListener, CapabilityClient.OnCapabilityChangedListener {
private static String _eventName;
private static BA _ba;
private boolean mShowDebug=false;
private AmbientModeSupport.AmbientController mAmbientController;
private boolean mIsLowBitAmbient=false;
private boolean mDoBurnInProtection=false;
@Hide
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BA.Log("onCreate()"); // <-------------- never called
mAmbientController = AmbientModeSupport.attach(this);
}
Setting it in Initialize fails with an error.