tauplatform 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG +10 -0
  3. data/lib/build/development/platform.rb +5 -1
  4. data/lib/build/development/web_server.rb +2 -0
  5. data/lib/commonAPI/coreapi/ext/shared/TimerImpl.cpp +10 -1
  6. data/lib/commonAPI/eventsource/ext/platform/android/ext_native.files +4 -4
  7. data/lib/commonAPI/eventsource/ext/shared/EventSource.h +2 -2
  8. data/lib/commonAPI/mediacapture/ext/camera.xml +16 -11
  9. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraEclair.java +17 -6
  10. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +304 -294
  11. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +528 -282
  12. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraSingletonObject.java +119 -94
  13. data/lib/commonAPI/mediacapture/ext/platform/wm/Mediacapture.vcproj +3 -3
  14. data/lib/commonAPI/mediacapture/ext/platform/wp8/src/Camera_impl.cs +63 -43
  15. data/lib/extensions/barcode-old/ext/barcode/platform/iphone/Rakefile +1 -1
  16. data/lib/framework/rhodes.rb +2 -2
  17. data/lib/framework/version.rb +2 -2
  18. data/lib/rhodes.rb +2 -2
  19. data/platform/android/Rhodes/jni/src/sslimpl.cpp +7 -2
  20. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +11 -4
  21. data/platform/android/build/android.rake +6 -0
  22. data/platform/iphone/Classes/SimpleMainView.m +8 -3
  23. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +1 -1
  24. data/platform/shared/common/RhodesApp.cpp +4 -0
  25. data/platform/shared/common/RhodesApp.h +8 -0
  26. data/platform/shared/net/CURLNetRequest.cpp +4 -2
  27. data/platform/shared/net/HttpServer.cpp +2 -2
  28. data/platform/shared/ruby/ext/rho/rhoruby.c +1 -1
  29. data/res/generators/templates/iphone_project/Bremen7.xcodeproj/project.pbxproj +3 -0
  30. data/version +1 -1
  31. metadata +2 -2
@@ -24,7 +24,7 @@ public class CameraSingletonObject implements ICameraSingletonObject {
24
24
  private static final String TAG = CameraSingletonObject.class.getSimpleName();
25
25
  public static boolean deprecated_choose_pic;
26
26
  private int mId;
27
-
27
+
28
28
  static int getCameraIndex(String id) {
29
29
  return Integer.valueOf(id.substring(7)).intValue();
30
30
  }
@@ -41,7 +41,7 @@ public class CameraSingletonObject implements ICameraSingletonObject {
41
41
  public CameraSingletonObject() {
42
42
  mId = 0;
43
43
  }
44
-
44
+
45
45
  @Override
46
46
  public String getDefaultID() {
47
47
  return getCameraId(mId);
@@ -74,52 +74,74 @@ public class CameraSingletonObject implements ICameraSingletonObject {
74
74
 
75
75
  @Override
76
76
  public void choosePicture(Map<String, String> propertyMap, IMethodResult result) {
77
- if(propertyMap.get("deprecated") == null || propertyMap.get("deprecated").equalsIgnoreCase("false")){
78
- propertyMap.put("deprecated", "false");
79
- deprecated_choose_pic = false;
80
- }
81
- else
82
- deprecated_choose_pic = true;
77
+ CameraObject.deprecated_take_pic = false;
78
+ if(propertyMap.get("deprecated") == null || propertyMap.get("deprecated").equalsIgnoreCase("false")){
79
+ propertyMap.put("deprecated", "false");
80
+ deprecated_choose_pic = false;
81
+ }
82
+ else
83
+ deprecated_choose_pic = true;
83
84
  Intent intent = null;
84
85
  String outputFormat = null;
85
- if(propertyMap.get("outputFormat") == null){
86
- propertyMap.put("outputFormat", "image");
87
- outputFormat = propertyMap.get("outputFormat");
88
- }
89
- else{
90
- outputFormat = propertyMap.get("outputFormat");
91
- }
86
+ if(propertyMap.get("outputFormat") == null){
87
+ propertyMap.put("outputFormat", "image");
88
+ outputFormat = propertyMap.get("outputFormat");
89
+ }
90
+ else{
91
+ outputFormat = propertyMap.get("outputFormat");
92
+ }
92
93
  CameraFactory factory = (CameraFactory)CameraFactorySingleton.getInstance();
93
94
  factory.getRhoListener().setMethodResult(result);
94
95
  factory.getRhoListener().setActualPropertyMap(propertyMap);
95
96
  RhodesActivity ra = RhodesActivity.safeGetInstance();
96
97
  intent = new Intent(ra, FileList.class);
98
+
99
+ if ( Boolean.parseBoolean(propertyMap.get("useSystemViewfinder")) ) {
100
+ /*
101
+ Intent getIntent = new Intent(Intent.ACTION_GET_CONTENT);
102
+ getIntent.setType("image/*");
103
+
104
+ Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
105
+ pickIntent.setType("image/*");
106
+
107
+ Intent chooserIntent = Intent.createChooser(getIntent, "Select Image");
108
+ chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});
109
+
110
+ intent = chooserIntent;
111
+ */
112
+
113
+ Intent gallery = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
114
+ gallery.setType("image/*");
115
+ intent = gallery;
116
+
117
+ }
118
+
97
119
  String fileName = null;
98
- if(!propertyMap.containsKey("fileName")){
99
- fileName = "/sdcard/DCIM/Camera/";
100
- }
101
- else{
102
- fileName = propertyMap.get("fileName");
103
- }
104
- if (fileName != null && fileName.length() > 0) {
105
- if (outputFormat.equalsIgnoreCase("image")) {
106
- String tmpPath = getTemporaryLoc(fileName);
107
- if (tmpPath == null) {
108
- throw new RuntimeException("Failed to access shared temporary folder");
109
- }
110
- Uri captureUri = Uri.fromFile(new File(tmpPath));
111
- propertyMap.put("captureUri", captureUri.toString());
112
- intent.putExtra(MediaStore.EXTRA_OUTPUT, captureUri);
113
- }
114
- else
115
- if(outputFormat.equalsIgnoreCase("dataUri"))
116
- {
117
- intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(fileName + ".jpg")));
118
- }
119
- ra.startActivityForResult(intent, 0);
120
- propertyMap.put("ChoosePicture_Key", "ChoosePicture_Value");
120
+ if(!propertyMap.containsKey("fileName")){
121
+ fileName = "/sdcard/DCIM/Camera/";
121
122
  }
122
- else {
123
+ else{
124
+ fileName = propertyMap.get("fileName");
125
+ }
126
+ if (fileName != null && fileName.length() > 0) {
127
+ if (outputFormat.equalsIgnoreCase("image")) {
128
+ String tmpPath = getTemporaryLoc(fileName);
129
+ if (tmpPath == null) {
130
+ throw new RuntimeException("Failed to access shared temporary folder");
131
+ }
132
+ Uri captureUri = Uri.fromFile(new File(tmpPath));
133
+ propertyMap.put("captureUri", captureUri.toString());
134
+ intent.putExtra(MediaStore.EXTRA_OUTPUT, captureUri);
135
+ }
136
+ else
137
+ if(outputFormat.equalsIgnoreCase("dataUri"))
138
+ {
139
+ intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(fileName + ".jpg")));
140
+ }
141
+ ra.startActivityForResult(intent, 0);
142
+ propertyMap.put("ChoosePicture_Key", "ChoosePicture_Value");
143
+ }
144
+ else {
123
145
  result.setArgError("'fileName' parameter is missed");
124
146
  }
125
147
  }
@@ -139,9 +161,10 @@ public class CameraSingletonObject implements ICameraSingletonObject {
139
161
  return null;
140
162
  }
141
163
  }
142
- /* @Override
164
+
165
+ /* @Override
143
166
  public void saveImageToDeviceGallery(String pathToImage, IMethodResult result) {
144
- // TODO Auto-generated method stub
167
+ // TODO Auto-generated method stub
145
168
 
146
169
  }
147
170
  */
@@ -151,58 +174,60 @@ public class CameraSingletonObject implements ICameraSingletonObject {
151
174
  Logger.T(TAG, "createCameraObject: " + id);
152
175
  return new CameraObject(id);
153
176
  }
154
- @Override
155
- public void copyImageToDeviceGallery(String pathToImage,
156
- IMethodResult result) {
157
- // TODO Auto-generated method stub
158
- String imageName = pathToImage.substring(pathToImage.lastIndexOf("/")+1, pathToImage.length());
159
- String abspath = copyImageToDesired(pathToImage, imageName);
160
- String strUri = null;
161
- try {
162
- strUri = MediaStore.Images.Media.insertImage(RhodesActivity.getContext().getContentResolver(), abspath, imageName, "Saving Image to Device Gallery through Camera");
163
- } catch (FileNotFoundException e) {
164
- // TODO Auto-generated catch block
165
- e.printStackTrace();
166
- }
167
- }
168
- private String copyImageToDesired(String pathToImage, String imageName) {
169
- // TODO Auto-generated method stub
170
- File oldFile = new File(RhoFileApi.absolutePath(pathToImage));
171
- File mediafile = new File(RhoFileApi.getDbFilesPath(), imageName);
172
-
173
- InputStream finput= null;
174
- FileOutputStream fout = null;
175
- try {
176
- finput= RhoFileApi.open(pathToImage);
177
- fout = new FileOutputStream(mediafile);
178
- byte[] b = new byte[1024];
179
- int read = 0;
180
- while ((read = finput.read(b)) != -1) {
181
- fout.write(b, 0, read);
182
- }
183
- } catch (FileNotFoundException e) {
184
- e.printStackTrace();
185
- } catch (IOException e) {
186
- e.printStackTrace();
187
- } finally {
188
- if(finput != null){
189
- try {
190
- finput.close();
191
- } catch (IOException e) {
192
- e.printStackTrace();
193
- }
194
- }
195
-
196
- if(fout != null){
197
- try {
198
- fout.close();
199
- } catch (IOException e) {
200
- e.printStackTrace();
201
- }
202
- }
203
- }
204
-
205
- return mediafile.getAbsolutePath();
206
- }
177
+
178
+ @Override
179
+ public void copyImageToDeviceGallery(String pathToImage,
180
+ IMethodResult result) {
181
+ // TODO Auto-generated method stub
182
+ String imageName = pathToImage.substring(pathToImage.lastIndexOf("/")+1, pathToImage.length());
183
+ String abspath = copyImageToDesired(pathToImage, imageName);
184
+ String strUri = null;
185
+ try {
186
+ strUri = MediaStore.Images.Media.insertImage(RhodesActivity.getContext().getContentResolver(), abspath, imageName, "Saving Image to Device Gallery through Camera");
187
+ } catch (FileNotFoundException e) {
188
+ // TODO Auto-generated catch block
189
+ e.printStackTrace();
190
+ }
191
+ }
192
+
193
+ private String copyImageToDesired(String pathToImage, String imageName) {
194
+ // TODO Auto-generated method stub
195
+ File oldFile = new File(RhoFileApi.absolutePath(pathToImage));
196
+ File mediafile = new File(RhoFileApi.getDbFilesPath(), imageName);
197
+
198
+ InputStream finput= null;
199
+ FileOutputStream fout = null;
200
+ try {
201
+ finput= RhoFileApi.open(pathToImage);
202
+ fout = new FileOutputStream(mediafile);
203
+ byte[] b = new byte[1024];
204
+ int read = 0;
205
+ while ((read = finput.read(b)) != -1) {
206
+ fout.write(b, 0, read);
207
+ }
208
+ } catch (FileNotFoundException e) {
209
+ e.printStackTrace();
210
+ } catch (IOException e) {
211
+ e.printStackTrace();
212
+ } finally {
213
+ if(finput != null){
214
+ try {
215
+ finput.close();
216
+ } catch (IOException e) {
217
+ e.printStackTrace();
218
+ }
219
+ }
220
+
221
+ if(fout != null){
222
+ try {
223
+ fout.close();
224
+ } catch (IOException e) {
225
+ e.printStackTrace();
226
+ }
227
+ }
228
+ }
229
+
230
+ return mediafile.getAbsolutePath();
231
+ }
207
232
 
208
233
  }
@@ -16,7 +16,7 @@
16
16
  Name="Win32"
17
17
  />
18
18
  <Platform
19
- Name="MC3000c50b (ARMV4I)"
19
+ Name="STANDARDSDK_500 (ARMV4I)"
20
20
  />
21
21
  <Platform
22
22
  Name="Windows Mobile 6.5.3 Professional DTK (ARMV4I)"
@@ -171,7 +171,7 @@
171
171
  />
172
172
  </Configuration>
173
173
  <Configuration
174
- Name="Debug|MC3000c50b (ARMV4I)"
174
+ Name="Debug|STANDARDSDK_500 (ARMV4I)"
175
175
  OutputDirectory="$(RHO_ROOT)\Platform\wm\Bin\$(PlatformName)\Rhodes\$(ConfigurationName)"
176
176
  IntermediateDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
177
177
  ConfigurationType="4"
@@ -474,7 +474,7 @@
474
474
  />
475
475
  </Configuration>
476
476
  <Configuration
477
- Name="Release|MC3000c50b (ARMV4I)"
477
+ Name="Release|STANDARDSDK_500 (ARMV4I)"
478
478
  OutputDirectory="$(RHO_ROOT)\Platform\wm\Bin\$(PlatformName)\Rhodes\$(ConfigurationName)"
479
479
  IntermediateDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
480
480
  ConfigurationType="4"
@@ -109,7 +109,7 @@ namespace rho
109
109
  /// <param name="native"></param>
110
110
  public override void setNativeImpl(string strID, long native)
111
111
  {
112
-
112
+
113
113
  try
114
114
  {
115
115
  CRhoRuntime.getInstance().logEvent(" Camera class--> setNativeImpl" + strID);
@@ -118,10 +118,10 @@ namespace rho
118
118
  }
119
119
  catch (Exception ex)
120
120
  {
121
-
122
-
121
+
122
+
123
123
  }
124
-
124
+
125
125
  }
126
126
  /// <summary>
127
127
  /// Set Basic Camera style like type of camera.
@@ -129,7 +129,7 @@ namespace rho
129
129
  /// <param name="strId"> Front or Back camera</param>
130
130
  public void InitializeCameraProperties(string strId)
131
131
  {
132
-
132
+
133
133
  double WidthofScreen = 0;
134
134
  double HeightofScreen = 0;
135
135
 
@@ -214,7 +214,7 @@ namespace rho
214
214
  Rho_Flash_Types.Add(FLASH_RED_EYE, 4);
215
215
  Rho_FlashMode = (FlashMode)(Rho_Flash_Types[FLASH_AUTO]);
216
216
  Rho_Flashmodes.Add("flash_mode", FLASH_AUTO);
217
-
217
+
218
218
  LayoutGrid = MainPage.LayoutGrid();
219
219
 
220
220
  }
@@ -282,8 +282,8 @@ namespace rho
282
282
 
283
283
 
284
284
 
285
-
286
-
285
+
286
+
287
287
  }
288
288
 
289
289
 
@@ -295,9 +295,9 @@ namespace rho
295
295
  IMethodResult StoregetCameratypeResult = null;
296
296
  public override void getCameraType(IMethodResult oResult)
297
297
  {
298
-
299
-
300
-
298
+
299
+
300
+
301
301
  CRhoRuntime.getInstance().logEvent("Camera class-> getCameraType");
302
302
  using (PhotoCamera TempCamera = new PhotoCamera((CameraType)Rho_Paramenters["camera_type"]))
303
303
  {
@@ -309,9 +309,9 @@ namespace rho
309
309
  {
310
310
  string strmessage = ex.Message;
311
311
  }
312
-
312
+
313
313
  }
314
-
314
+
315
315
  }
316
316
 
317
317
  /// <summary>
@@ -320,7 +320,7 @@ namespace rho
320
320
  /// <param name="oResult"></param>
321
321
  public override void getMaxWidth(IMethodResult oResult)
322
322
  {
323
-
323
+
324
324
  CRhoRuntime.getInstance().logEvent("Camera class--> getMaxWidth");
325
325
  try
326
326
  {
@@ -331,7 +331,7 @@ namespace rho
331
331
  {
332
332
  CRhoRuntime.getInstance().logEvent("Camera class-> getMaxWidth" + ex.Message);
333
333
  }
334
-
334
+
335
335
 
336
336
 
337
337
  }
@@ -342,7 +342,7 @@ namespace rho
342
342
 
343
343
  public override void getMaxHeight(IMethodResult oResult)
344
344
  {
345
-
345
+
346
346
  CRhoRuntime.getInstance().logEvent("Camera class--> getMaxHeight");
347
347
  try
348
348
  {
@@ -353,7 +353,7 @@ namespace rho
353
353
  {
354
354
  CRhoRuntime.getInstance().logEvent("Camera class->getMaxHeight" + ex.Message);
355
355
  }
356
-
356
+
357
357
 
358
358
 
359
359
  }
@@ -364,7 +364,7 @@ namespace rho
364
364
  /// <param name="oResult"></param>
365
365
  public override void getSupportedSizeList(IMethodResult oResult)
366
366
  {
367
-
367
+
368
368
  CRhoRuntime.getInstance().logEvent("Camera class--> Entered getSupportedSizeList");
369
369
  using (PhotoCamera TempCamera = new PhotoCamera((CameraType)Rho_Paramenters["camera_type"]))
370
370
  {
@@ -393,7 +393,7 @@ namespace rho
393
393
 
394
394
  }
395
395
  CRhoRuntime.getInstance().logEvent("Camera class--> End getSupportedSizeList");
396
-
396
+
397
397
  }
398
398
 
399
399
  /// <summary>
@@ -403,10 +403,10 @@ namespace rho
403
403
 
404
404
  public override void getDesiredWidth(IMethodResult oResult)
405
405
  {
406
-
406
+
407
407
  CRhoRuntime.getInstance().logEvent("Camera class--> getDesiredWidth");
408
408
  oResult.set(Rho_Paramenters["desired_width"].ToString());
409
-
409
+
410
410
  }
411
411
 
412
412
  /// <summary>
@@ -416,7 +416,7 @@ namespace rho
416
416
  /// <param name="oResult"></param>
417
417
  public override void setDesiredWidth(int desiredWidth, IMethodResult oResult)
418
418
  {
419
-
419
+
420
420
  try
421
421
  {
422
422
  CRhoRuntime.getInstance().logEvent("Camera class--> setDesiredWidth " + desiredWidth);
@@ -427,7 +427,7 @@ namespace rho
427
427
  {
428
428
  CRhoRuntime.getInstance().logEvent("Camera class-->setDesiredWidth--> Exception" + ex.ToString());
429
429
  }
430
-
430
+
431
431
  }
432
432
  /// <summary>
433
433
  /// Get the setted Resolution Height of the Camera Type (Back/Front).
@@ -435,10 +435,10 @@ namespace rho
435
435
  /// <param name="oResult"></param>
436
436
  public override void getDesiredHeight(IMethodResult oResult)
437
437
  {
438
-
438
+
439
439
  CRhoRuntime.getInstance().logEvent("Camera class--> getDesiredHeight");
440
440
  oResult.set(Rho_Paramenters["desired_height"].ToString());
441
-
441
+
442
442
  }
443
443
  /// <summary>
444
444
  /// Sets the Height from the avaialble Resolution,if not available then sets to the nearest available Resolution.
@@ -447,7 +447,7 @@ namespace rho
447
447
  /// <param name="oResult"></param>
448
448
  public override void setDesiredHeight(int desiredHeight, IMethodResult oResult)
449
449
  {
450
-
450
+
451
451
  try
452
452
  {
453
453
  CRhoRuntime.getInstance().logEvent("Camera class--> setDesiredHeight" + desiredHeight);
@@ -458,7 +458,7 @@ namespace rho
458
458
  {
459
459
  CRhoRuntime.getInstance().logEvent("Camera class-->setDesiredHeight--> Exception" + ex.ToString());
460
460
  }
461
-
461
+
462
462
  }
463
463
 
464
464
  /// <summary>
@@ -467,10 +467,10 @@ namespace rho
467
467
  /// <param name="oResult"></param>
468
468
  public override void getFileName(IMethodResult oResult)
469
469
  {
470
-
470
+
471
471
  CRhoRuntime.getInstance().logEvent("Camera class--> getFileName" + Rho_StringParameters["filename"]);
472
472
  oResult.set(Rho_StringParameters["filename"]);
473
-
473
+
474
474
  }
475
475
 
476
476
  /// <summary>
@@ -510,7 +510,7 @@ namespace rho
510
510
  /// <param name="oResult"></param>
511
511
  public override void setCompressionFormat(string compressionFormat, IMethodResult oResult)
512
512
  {
513
- //AS WP8 does not support any other format apart from jpeg, need to check in 8.1
513
+ //AS WP8 does not support any other format apart from jpeg, need to check in 8.1
514
514
  // Rho_StringParameters["ImageFormat"] = compressionFormat;
515
515
  }
516
516
  /// <summary>
@@ -529,7 +529,7 @@ namespace rho
529
529
  /// <param name="oResult"></param>
530
530
  public override void setOutputFormat(string outputFormat, IMethodResult oResult)
531
531
  {
532
-
532
+
533
533
  CRhoRuntime.getInstance().logEvent("Camera class->setOutputFormat type");
534
534
 
535
535
  try
@@ -589,7 +589,7 @@ namespace rho
589
589
  /// <param name="oResult"></param>
590
590
  public override void getFlashMode(IMethodResult oResult)
591
591
  {
592
-
592
+
593
593
  string FlashModeType = FlashMode.Auto.ToString();
594
594
  try
595
595
  {
@@ -606,7 +606,7 @@ namespace rho
606
606
  CRhoRuntime.getInstance().logEvent("Camera class->invalid getFlashMode " + ex.ToString());
607
607
  }
608
608
  oResult.set(FlashModeType);
609
-
609
+
610
610
  }
611
611
 
612
612
  /// <summary>
@@ -616,7 +616,7 @@ namespace rho
616
616
  /// <param name="oResult"></param>
617
617
  public override void setFlashMode(string flashMode, IMethodResult oResult)
618
618
  {
619
-
619
+
620
620
  CRhoRuntime.getInstance().logEvent("Camera class--> setFlashMode");
621
621
  try
622
622
  {
@@ -629,7 +629,7 @@ namespace rho
629
629
  Rho_FlashMode = (FlashMode)(Rho_Flash_Types[FLASH_AUTO]);
630
630
  CRhoRuntime.getInstance().logEvent("Camera class->invalid setFlashMode " + ex.ToString());
631
631
  }
632
-
632
+
633
633
  }
634
634
 
635
635
  /// <summary>
@@ -753,6 +753,26 @@ namespace rho
753
753
  // implement this method in C# here
754
754
  }
755
755
 
756
+ /// <summary>
757
+ /// Not supported in WP8.
758
+ /// </summary>
759
+ /// <param name="oResult"></param>
760
+ public override void getUseRealBitmapResize(IMethodResult oResult)
761
+ {
762
+ // implement this method in C# here
763
+ }
764
+
765
+ /// <summary>
766
+ /// Not supported in WP8.
767
+ /// </summary>
768
+ /// <param name="useSystemViewfinder"></param>
769
+ /// <param name="oResult"></param>
770
+ public override void setUseRealBitmapResize(bool useSystemViewfinder, IMethodResult oResult)
771
+ {
772
+ // implement this method in C# here
773
+ }
774
+
775
+
756
776
  /// <summary>
757
777
  /// Not supported in WP8.
758
778
  /// </summary>
@@ -1266,8 +1286,8 @@ namespace rho
1266
1286
 
1267
1287
  }
1268
1288
  }
1269
-
1270
-
1289
+
1290
+
1271
1291
  StorageFile storageFile = await localFolder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting);
1272
1292
  Task<Stream> outputStreamTask = storageFile.OpenStreamForWriteAsync();
1273
1293
  Stream outputStream = outputStreamTask.Result;
@@ -1511,7 +1531,7 @@ namespace rho
1511
1531
 
1512
1532
  //Create a desired Camera Object.
1513
1533
  Rho_StillCamera = new Microsoft.Devices.PhotoCamera((CameraType)Rho_Camera_selected);
1514
- //Create a Video Brush for painting in Canvas.
1534
+ //Create a Video Brush for painting in Canvas.
1515
1535
  Rho_PhotoCameraBrush = new VideoBrush();
1516
1536
  //Create a Camera Rotaion Object.
1517
1537
  Rho_Camera_Rotation = new CompositeTransform();
@@ -1534,7 +1554,7 @@ namespace rho
1534
1554
  SetCameraRotation(Rho_MainPage.Orientation);
1535
1555
  //Set Desired camera as a child for Camera Brush.
1536
1556
  Rho_PhotoCameraBrush.SetSource(Rho_StillCamera);
1537
- //Add Camera Brush as background to the Canvas.
1557
+ //Add Camera Brush as background to the Canvas.
1538
1558
  Rho_PhotoCameraCanvas.Background = Rho_PhotoCameraBrush;
1539
1559
 
1540
1560
  //Add canvas to the Main screen object.
@@ -1710,7 +1730,7 @@ namespace rho
1710
1730
  /// <param name="e"></param>
1711
1731
  void photoChooserTask_Completed(object sender, PhotoResult e)
1712
1732
  {
1713
-
1733
+
1714
1734
  CRhoRuntime.getInstance().logEvent("Camera class-->photoChooserTask_Completed");
1715
1735
  try
1716
1736
  {
@@ -1798,7 +1818,7 @@ namespace rho
1798
1818
  m_StorechoosePictureResult.set(m_choosePicture_output);
1799
1819
  }
1800
1820
 
1801
-
1821
+
1802
1822
  }
1803
1823
  /// <summary>
1804
1824
  /// Stores file in its own virtual drive rho\apps\app
@@ -1875,7 +1895,7 @@ namespace rho
1875
1895
  }
1876
1896
  }
1877
1897
 
1878
-
1898
+
1879
1899
  StorageFile storageFile = await localFolder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting);
1880
1900
  Task<Stream> outputStreamTask = storageFile.OpenStreamForWriteAsync();
1881
1901
  Stream outputStream = outputStreamTask.Result;
@@ -1926,7 +1946,7 @@ namespace rho
1926
1946
  return storecamera;
1927
1947
  }
1928
1948
  }
1929
-
1949
+
1930
1950
  }
1931
1951
  #endregion
1932
1952
  }