Back to project page ccardstats.
The source code is released under:
GNU General Public License
If you think the Android project ccardstats listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.marwinxxii.ccardstats.notifications; // www.ja v a 2 s . c o m public abstract class SmsParser { public static SmsNotification parse(String body) { for (NotificationService ns : NotificationService.SERVICES) { try { return ns.recognise(body); } catch (IllegalArgumentException e) { continue; } } return null; } public static SmsNotification parse(String address, String body) { for (NotificationService ns : NotificationService.SERVICES) { if (!ns.getAddress().equals(address)) continue; try { return ns.recognise(body); } catch (IllegalArgumentException e) { e.printStackTrace(); continue; } } return null; } }