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

Discussion in 'Android Questions' started by opus, Mar 5, 2015.

  1. opus

    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:
    Code:
    mPhone.Manufacturer & "_" & mPhone.model & "_" & mPhone.Product &
    However this "solution" does [edit]NOT[/edit] "look" that good.

    Ideas?
     
    Last edited: Mar 5, 2015
  2. eurojam

    eurojam Well-Known Member Licensed User

    Code:
    Dim mySerial As Serial
    mySerial.Initialize(
    "mySerial")
    Log(mySerial.name)
    needs the Serial Lib
     
    opus likes this.
  3. opus

    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!
     
  4. eurojam

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