1. Check out our app, Forums for Android! Download and leave feedback here!

General Not taking picture when a send sms feature is turned on in my app

Discussion in 'App Inventor' started by Dioptre, Jan 12, 2017.

  1. Dioptre

    Dioptre New Member
    Thread Starter
    5

    Jan 12, 2017
    2
    0
    5
    Please refer to this question:
    http://stackoverflow.com/questions/...hen-a-send-sms-feature-is-turned-on-in-my-app

    I'm trying to make a motion detector app (Build on top of https://github.com/phishman3579/android-motion-detection) that captures images on the motion detection and send sms notification(it also sounds an alarm tone). Its working fine & saving the images. The problem is that the app doesn't do the same (It doesn't save the picture) when the 'enable sms notif' switch is turned on. But it does detect motion and sends the SMS successfully. I tried to write 'else if' on the switch but it shows an error "else if without if". Maybe I don't know how to do it properly. Can you please correct the code and tell me what is wrong? I'm planning to put a switch for email notification too.. I'm a newbie to android programming.

    Please see the code here :
    http://stackoverflow.com/questions/...hen-a-send-sms-feature-is-turned-on-in-my-app
     

    Advertisement

Share This Page

Loading...