Android Question sms.Send2 craches my App

Discussion in 'Android Questions' started by TrisectDevelopment, Dec 9, 2017.

  1. TrisectDevelopment

    TrisectDevelopment Active Member Licensed User

    I have an App where I use sms.Send2 to send a SMS, but it craches in this line

    Sms.Send2("xxxxxxxx", "123", True,True) // xxxxxxxx is a real number in my app.

    I also have the smsDelivered and smsStatusSent subs
    I initialize the Phoneevents variable

    I tried the same code in a new app whith just the SMS code and there it works.

    I also tried to switch of some code to make my app looks like the test app, but it still craches.

    Also I can't se anything in the Log pane, its just blank, no error messages at all.
     
  2. TrisectDevelopment

    TrisectDevelopment Active Member Licensed User

    I created a new App with the same code and it worked.

    But why can't I see anything in the logger window?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Are you using B4A-Bridge? Debug more or release mode?
     
  4. TrisectDevelopment

    TrisectDevelopment Active Member Licensed User

    I'm using B4A-Bridge and debug, but the logger is blank except there is one line saying its using my Huawei phone.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Which version of B4A are you using?
     
  6. TrisectDevelopment

    TrisectDevelopment Active Member Licensed User

    I'm using 7.30
     
  7. TrisectDevelopment

    TrisectDevelopment Active Member Licensed User

    I'm not sure what I did but somehow its showing logs again.
     
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