Giter Club home page Giter Club logo

Comments (12)

menion avatar menion commented on June 19, 2024

Update to Locus API done in commit to dev/update branch.

from locus-addon-wearables.

wansti avatar wansti commented on June 19, 2024

Am I correct that this doesn't compile yet? Or did I do something wrong?

I'm interested to see what TargetSdk 30 will do to the WearableDrawerView, with Samsung's quick settings panel in WearOS 3.0 effectively breaking the drawer pulled in from the top.

from locus-addon-wearables.

menion avatar menion commented on June 19, 2024

Hi Marek, I've tested the "wear" module yesterday and it worked on the emulator correctly.

You probably miss parameters for signing necessary in the Gradle script.

I've updated the old Locus API wiki ... so here are steps to set this up. Let me know if it helps.

from locus-addon-wearables.

wansti avatar wansti commented on June 19, 2024

Hi Menion, I came across a few classes that still referenced old library components such as "ActionTools". Will double-check that I set it up correctly. Thanks!

from locus-addon-wearables.

wansti avatar wansti commented on June 19, 2024

Update - the errors are in the "device" module (DeviceCommService and PeriodicUpdateReceiver). The "wear" module compiles fine and runs on the emulator. However I cannot connect it to the main app anymore (which worked before).
Screenshot

from locus-addon-wearables.

menion avatar menion commented on June 19, 2024

Thank you Marek! I'll check it more carefully, hopefully, today, and let you know here.

I believe that updating the whole project to the latest versions is necessary before continuing in any development.

from locus-addon-wearables.

menion avatar menion commented on June 19, 2024

Uff, the app now compile and start. But seems there is a new different problem. Created device APK does not contain necessary DeviceCommService and DeviceListenerService objects. Hmm ...

from locus-addon-wearables.

wansti avatar wansti commented on June 19, 2024

Interesting, I'm getting a different error and a crash from "device":

    Process: com.asamm.locus.addon.wear, PID: 29813
    java.lang.RuntimeException: Unable to instantiate application com.asamm.locus.addon.wear.MainApplication: java.lang.ClassNotFoundException: Didn't find class "com.asamm.locus.addon.wear.MainApplication" on path: DexPathList[[zip file "/data/app/~~HVQSrOHb89theKV4LHbELA==/com.asamm.locus.addon.wear-2SbCvNZnYJ4TwJVaj2eQZw==/base.apk"],nativeLibraryDirectories=[/data/app/~~HVQSrOHb89theKV4LHbELA==/com.asamm.locus.addon.wear-2SbCvNZnYJ4TwJVaj2eQZw==/lib/x86, /system/lib, /system_ext/lib]]
        at android.app.LoadedApk.makeApplication(LoadedApk.java:1244)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6683)
        at android.app.ActivityThread.access$1300(ActivityThread.java:237)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.asamm.locus.addon.wear.MainApplication" on path: DexPathList[[zip file "/data/app/~~HVQSrOHb89theKV4LHbELA==/com.asamm.locus.addon.wear-2SbCvNZnYJ4TwJVaj2eQZw==/base.apk"],nativeLibraryDirectories=[/data/app/~~HVQSrOHb89theKV4LHbELA==/com.asamm.locus.addon.wear-2SbCvNZnYJ4TwJVaj2eQZw==/lib/x86, /system/lib, /system_ext/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
        at androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:52)
        at android.app.Instrumentation.newApplication(Instrumentation.java:1158)
        at android.app.LoadedApk.makeApplication(LoadedApk.java:1236)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6683) 
        at android.app.ActivityThread.access$1300(ActivityThread.java:237) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:223) 
        at android.app.ActivityThread.main(ActivityThread.java:7656) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 
W/System: A resource failed to call close. ```

from locus-addon-wearables.

menion avatar menion commented on June 19, 2024

You are fast. Hmm, I've just before commit also change MainApplication from Java to Kotlin and now you have this error. This is a clue, thanks :).

from locus-addon-wearables.

wansti avatar wansti commented on June 19, 2024

Haha I was just looking through the code when your commit came in. Locus Map is literally the reason I own a smartwatch so this is exciting. :)

from locus-addon-wearables.

menion avatar menion commented on June 19, 2024

So, both modules are now working and communication between them should be finally working as well. Uff ...

Seems that dirty work should be done. So if you are still interested, it is time to play ;).

I currently do not have time for active work on this add-on, but I'll be available as much as possible for possible questions or PR reviews. Thanks for your interest btw!

from locus-addon-wearables.

wansti avatar wansti commented on June 19, 2024

Yup, got it working in the emulator! I'll have a play with it and see how far I get.

No worries, thanks for putting in that extra work, and thanks for a great app!

from locus-addon-wearables.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.