From 1648f161d9f3dfe90d4aa0580f284b5fdc2afff5 Mon Sep 17 00:00:00 2001 From: Richard Burton Date: Thu, 14 Mar 2013 12:21:59 -0700 Subject: [PATCH] Implemented a conditional check to support providing the duration limit for the Android platform SDK 8 and above. The value is passed using the string literal value to ensure the logic is not dependent on SDK version specifics. --- framework/src/org/apache/cordova/Capture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/Capture.java b/framework/src/org/apache/cordova/Capture.java index e6b94bc9..5f737ca7 100644 --- a/framework/src/org/apache/cordova/Capture.java +++ b/framework/src/org/apache/cordova/Capture.java @@ -219,7 +219,7 @@ public class Capture extends CordovaPlugin { Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); if(Build.VERSION.SDK_INT > 8){ - intent.putExtra(android.provider.MediaStore.EXTRA_DURATION_LIMIT, duration); + intent.putExtra("android.intent.extra.durationLimit", duration); } this.cordova.startActivityForResult((CordovaPlugin) this, intent, CAPTURE_VIDEO); }