1 Reply Latest reply on Dec 8, 2015 4:07 PM by Madhu Lakshmipathy

    CySmart Android App Exception Error

    user_361616940

      Hi All,

         

      I had taken the CySmart example code, and started making my own application for BLE. I am getting some exception errors when adding this following

         

       application = (CySmartApplication) getActivity().getApplication();

         

       

         

      in the profile scanning fragment.java file

         

       

         

      Any idea on it?

         

      error:

         

        Caused by: java.lang.ClassCastException: android.app.Application cannot be cast to com.fair.ashok.cypresssmart.CySmartApplication
          

         

      Thanks,

         

      Ashok r