I have the Galaxy tab GT-P1000 7 inch with firmware version 2.3.3 and Phones running Android 2.2. In both versions when ever I am trying to get the time from GPS, its showin
It worked for me and I replaced IsValid(String strNMEA) method with this function:
private boolean checksum(String strNMEA)
{
int checksum = 0;
strNMEA = strNMEA.replace("\r", "");
strNMEA = strNMEA.replace("\n", "");
String strChecksum = strNMEA.substring(strNMEA.indexOf("*") + 1);
String str = strNMEA.substring(1, strNMEA.indexOf("*"));
for (int i = 0; i < str.length(); i++) {
checksum = checksum ^ str.charAt(i);
}
return checksum == Integer.valueOf(strChecksum, 16);
}