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
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.


It does work. It compiles fine.

It raises an exception missin permissiong to access network state though
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…