CySmart Android App Exception Error | Cypress Semiconductor
CySmart Android App Exception Error
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?
Caused by: java.lang.ClassCastException: android.app.Application cannot be cast to com.fair.ashok.cypresssmart.CySmartApplication