Android Question Phone TextBox

Discussion in 'Android Questions' started by Cableguy, Feb 18, 2015.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi guys

    I want to have a Phone EditBox on one of my layouts with the particular propertie of being able to check if the Phone Number is in a correct format... Upon Saving this info, this Phone Number will be shown in a label... how can I check the number format in the TextBox and how can I execute a "call this number" when the user clicks the label??
     
  2. DonManfred

    DonManfred Expert Licensed User

    Code:
    Dim p As PhoneCalls
    StartActivity(p.Call("1234567890"))
     
    Cableguy likes this.
  3. Cableguy

    Cableguy Expert Licensed User

    Thanks Don, That makes it one less problem, any suggestion for the custom number format?
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Cableguy likes this.
  5. DonManfred

    DonManfred Expert Licensed User

    you can use the masked-edit-text to force the user to give the right syntax
     
    Cableguy likes this.
  6. Cableguy

    Cableguy Expert Licensed User

    Thanks again Don... I'll look info it
     
  7. DonManfred

    DonManfred Expert Licensed User

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