Bug 674725 - Part R - Save sent messages in the Android database. r=cjones

This commit is contained in:
Mounir Lamouri
2012-01-13 14:25:47 +01:00
parent b051f9def3
commit e193d4d788
14 changed files with 176 additions and 6 deletions

View File

@@ -122,6 +122,7 @@ public class GeckoAppShell
public static native void notifyBatteryChange(double aLevel, boolean aCharging, double aRemainingTime);
public static native void notifySmsReceived(String aSender, String aBody, long aTimestamp);
public static native void onSmsSent(String aReceiver, String aBody, long aTimestamp);
// A looper thread, accessed by GeckoAppShell.getHandler
private static class LooperThread extends Thread {
@@ -1696,6 +1697,10 @@ public class GeckoAppShell
GeckoSmsManager.send(aNumber, aMessage);
}
public static int saveSentMessage(String aRecipient, String aBody, long aDate) {
return GeckoSmsManager.saveSentMessage(aRecipient, aBody, aDate);
}
public static boolean isTablet() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
Configuration config = GeckoApp.mAppContext.getResources().getConfiguration();