Android Question [solved]In need of a name-string that dependent on the device

opus

Member
Licensed User
Hi,
as said above I need of a name-string that dependent on the device. I want to send data-files from my app to other devices, using the same name for all devices sending a files (even with a time-code) would result in loosing the information who did send it.
I read that it isn't possible to get the device name (the one that is used for WiFi- or BlueTooth-Connections). Does anybody have an idea for such a situation?
As of now I use:
B4X:
mPhone.Manufacturer & "_" & mPhone.model & "_" & mPhone.Product &
However this "solution" does [edit]NOT[/edit] "look" that good.

Ideas?
 
Last edited:

eurojam

Well-Known Member
Licensed User
B4X:
Dim mySerial As Serial
mySerial.Initialize("mySerial")
Log(mySerial.name)
needs the Serial Lib
 

opus

Member
Licensed User
Where have I read that is impossible(or not possible anymore) to get the device-name, I must have misunderstood that one.
This one works, at least for me. THANK YOU

My sole problem using b4a, how to know which functions are "hidden" in wich lib!
 

eurojam

Well-Known Member
Licensed User
I search with google in the b4a forum, it brings more precise results then the forum search...like "getLocalBluetoothName b4a"

...may be I don't know the full capacity of the forum search function:confused:
 
Top