Android Question Error in compiling example Local HotSpot for Android 8

Discussion in 'Android Questions' started by welu1805, Dec 10, 2018.

Similar threads

B4A Code Snippet Start Local Hotspot
B4A Library [Class] Screen HotSpots
B4A Question HotSpot API
B4A Library [Code Module] HotSpots
B4A Tutorial B4A-Bridge over wifi without a local network
  1. welu1805

    welu1805 Active Member Licensed User

    Hi all, I tried to compile Erels code snipped to start a local hotspot for Android 8 and get an error:

    Parse den Code. (0.02s)
    Building folders structure. (0.01s)
    Kompiliere den Code. (0.03s)

    Die Datei ObfuscatorMap.txt wurde im Objects-Verzeichnis angelegt.
    Kompiliere Layoutcode. (0.02s)
    Organisiere Libraries. (1.10s)
    Generiere R Datei. (0.28s)
    Kompiliere generierten Java Code. Error
    B4A line: 42
    End Sub
    javac 1.8.0_131
    src\b4a\example\starter.java:264: error: cannot find symbol
    public static class MyHotspotCallback extends WifiManager.LocalOnlyHotspotCallback {
    ^
    symbol: class LocalOnlyHotspotCallback
    location: class WifiManager

    I use B4A 8.50

    Lutz
     
  2. DonManfred

    DonManfred Expert Licensed User

    I don´t see a uploaded project!? You are talking about which example?
     
  3. welu1805

    welu1805 Active Member Licensed User

    Android Code Snippet Start Local Hotspot by Erel, 26.10.2018
     
  4. DonManfred

    DonManfred Expert Licensed User

    Try to reproduce in a small project and upload trhis project. DON´T expect me to get the snippet, build an project from it and then create a hotspot so i could test.

    PD: Great. So you are expecting me to search for the snippet first, then build an project.... You did searched for the thread. Why you not posted a LINK to the thread?
     
  5. welu1805

    welu1805 Active Member Licensed User

  6. DonManfred

    DonManfred Expert Licensed User

    I downloaded the example and compiled the example project.

    It does work. It compiles fine.

    It raises an exception missin permissiong to access network state though
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    You need to use android.jar from platform 28 (Tools - Configure Paths).
     
  8. welu1805

    welu1805 Active Member Licensed User

    Sorry, but I can only select android-19 ... android-25.
     
  9. Erel

    Erel Administrator Staff Member Licensed User

  10. welu1805

    welu1805 Active Member Licensed User

    Thanks. Now I can compile the example.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice