payload init, data paths, armv7 detection, typos

Fix: payload initialization in PreferenceActivity
Fix: paths to application data by using Android facilities
Detect ARMv7 by looking at Build.CPU_ABI through reflection
Fix: crash on registration change after LinphoneActivity was killed by Android
This commit is contained in:
Guillaume Beraudo 2011-03-11 11:36:48 +01:00
parent ce0d804023
commit d18561cea4

View file

@ -42,4 +42,13 @@ public class Version {
return buildVersion;
}
public static boolean isArmv7() {
try {
return sdkAboveOrEqual(4)
&& Build.class.getField("CPU_ABI").get(null).toString().startsWith("armeabi-v7");
} catch (Throwable e) {}
return false;
}
}