Android Question Error in compiling example Local HotSpot for Android 8

welu1805

Active Member
Licensed User
Longtime 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
 

DonManfred

Expert
Licensed User
Longtime User
I don´t see a uploaded project!? You are talking about which example?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime 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?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I downloaded the example and compiled the example project.

B4A Version: 8.50
Parse den Code. (0.00s)
Building folders structure. (0.01s)
Kompiliere den Code. (0.01s)
Kompiliere Layoutcode. (0.01s)
Organisiere Libraries. (0.59s)
Generiere R Datei. (0.78s)
Kompiliere generierten Java Code. (1.27s)
Byte-Code konvertieren - optimiert dex. (4.29s)
Packe Dateien. (0.35s)
Kopieren von Bibliothek Ressourcen (0.00s)
Signiere Paketdatei (privater Key). (0.56s)
ZipAlign file. (0.24s)
Installiere Datei auf Gerät.

It does work. It compiles fine.

It raises an exception missin permissiong to access network state though
 
Upvote 0
Top