Java Question method inheritance

ltrebuchet

Member
Licensed User
Longtime User
Still working on a library to control the ambient mode of a wearable app, I constructed a jar file with two classes (see attached). Class wearambient extends WearableActivity including a constructor and a method which calls super method setAmbientEnabled. Class wearobject includes a method which intitalizes an instance of wearambient class and calls this method.
These are called in Activity create at FirstTime:
B4X:
Sub Process_Globals
    Dim Wear As wearobject

Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
        Wear.Initialize("Wear")
    End If

The app compiles and does not crash, but does not setAmbientEnabled either. I thought that the instance would inherit this method, it does not seem so.
Thanks for your help, Louis
 

Attachments

  • WearActivity.jar
    2.2 KB · Views: 199
  • WearActivity.xml
    1.2 KB · Views: 240
  • wearambient.txt
    1.4 KB · Views: 206
  • wearobject.txt
    255 bytes · Views: 250
Top