Mar 14, 2015
09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 14, 2015
09:54 AM
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
Labels
- Labels:
-
BLE
1 Reply
Anonymous
Not applicable
Dec 08, 2015
04:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 08, 2015
04:07 PM
Found this on the internet:
http://javarevisited.blogspot.in/2012/12/how-to-solve-javalangclasscastexception-java.html
Regards,
-Madhu Sudhan