User Profile & Activity

Yudi Member
Page
of 259
Posted: April 27, 2016 3:43 AM

This question related to two properties of ImagePicker attribute. They are: AllowEditing and UseThumbnailResult.

  • AllowEditing
    Description: Gets or sets a value indicating whether the image picker should allow editing.
    Default value: true
  • UseThumbnailResult
    Description: Gets or sets a value indicating whether the image picker should use the thumbnail image or the full-size image for the source of the image view.
    Default value: true

When AllowEditing is enabled, the "Crop App" will run right after image selected (either by taking photo using camera or choose image from gallery). The cropped image will be processed further to create the thumbnail image. Hence, there will be no thumbnail image when AllowEditing is disabled.

The UseThumbnailResult works as follow: when enabled, the ImageData and ThumbnailImageData will use to the thumbnail result (ImageData and ThumbnailImageData will have same value, the thumbnail byte array.
In order to obtain the original size photo, simply set this property to false. The ImageData holds the original image byte array while the thumbnail byte array stored in ThumbnailImageData.

Scenario 1:

... In ImagePicker.Form I have the following:

[ImagePicker(ImageResultMode = ImageResultMode.Both, ActivateCommand = "ActivateImagePickerCommand", PickerResultCommand = "FinishImagePickerCommand", AllowEditing = false)]

This settings says that AllowEditing is disabled (no crop app means no thumbnail image) and UseThumbnailResult is enabled (by default. ImageData and ThumbnailImageData returns same result, null.).

... I see that it is "null" (screenshot scenario1). "Choose From Gallery" returns the same result.

This seems to be a bug. I need the ImageData and the ThumbnailImageData for further processing. Please, fix.

You can disable UseThumbnailResult to retrieve the byte array of the original image (ImageData). In my opinion, this is not bug. Since AllowEditing is disabled, the image doesn't processed further (to create thumbnail image).

Scenario 2:

Almost the same as above. But now I want to allow editing of the taken picture (AllowEditing = true).

... I see that ImageData and ThumbnailImageData have the same size (screenshot scenario2). "Choose From Gallery" returns the same result.

This seems to be a bug. I need the original sized photo in ImageData not the ThumbnailImageData. Please, fix.

This settings says: AllowEditing and UseThumbnailResult are both enabled. Selected image will be processed further to create the thumbnail image. However, ImageData and ThumbnailImageData have same result because UseThumbnailResult is enabled.

For me it is not a bug. Please disable UseThumbnailResult to get the original sized photo in ImageData and get the smaller size image in ThumbnailImageData.

Please feel free to let us know if you have different thoughts.

Posted: April 22, 2016 8:57 AM

I have a WebDesktop project and I am trying to figure out how to programmatically set the size of the Ifram that loads the aspx page.

...

Following snippet code shows how set the width of iframe element of WebDesktopWindow.

function Debug()
{
    var dm = ISGetObject("WebDesktopManager1");
    var wnd = dm.GetWindow("myWindow");

    if (wnd == null)
    {
        var wndIframeElement = wnd.GetWindowIFrameElement();

        wndIframeElement.style.width = "500px";
    }
}

This should helps.

Posted: April 20, 2016 2:07 AM

Currently there is no multiselection picker in the form-builder supported editor types. You might want to try to use ListView which already supports multiple selection.

I have submitted this to Crosslight development team as feature request. It is filed under CROS-1114.

I will keep this thread updated with any news I heard from the team regarding CROS-1114.

Posted: April 18, 2016 1:41 AM

Hello Thomas,

is CROS-1029 already realized or is a already on the schedule of the development team?

As of today nightly-build hotfix for CROS-1029 is not yet available. As soon as the hotfix is ready, I will let you know.

Posted: April 18, 2016 1:38 AM

Hello Thomas,

I will test the described scenarios with other devices, too. And let you know the results.

Thank you very much for your patience and cooperation. The test result will helps to identify the problem related to the push notification feature.

The real show stopper at the moment is CROS-1109. Is there already a fix for this?

As of today nightly-build hotfix for CROS-1109 is not yet available. As soon as the hotfix is ready, I will let you know.

Posted: April 13, 2016 6:11 AM

Hello Thomas,

I performed five different scenarios using our test device . The detail of the devices are:

  • Samsung Galaxy Tab GT-P3110 (API 16) running Android 4.1.2
  • LGE Nexus 4 (API 22) running Android 5.1.1

And here are the detail of the scenarios.

Test #1: App is active

Steps:

  1. Open SyncSample app.
  2. Login.
  3. Send notification from Intersoft staging server.

Test #2: App is suspended

Steps:

  1. Perform steps 1 and 2 for test #1.
  2. Press “Home” button then skip step 3 and step 4. Or...
  3. Press “Recent” button.
  4. Switch to another app.
  5. Send notification from Intersoft staging server.

Test #3: App is off

Steps:

  1. Perform steps 1 and 2 for test #1.
  2. Press “Back” button.
  3. Send notification from Intersoft staging server.

Test #4: App is killed

Steps:

  1. Perform steps 1 and 2 for test #1.
  2. Press “Home” button.
  3. Press “Recent” button.
  4. Remove “SyncApp” by swiping it away from the overview screen (also referred to as the recents screen, recent task list, or recent apps).
  5. Send notification from Intersoft staging server.

Test #5: Device is restarted

Steps:

  1. Turn off device.
  2. Send notification from Intersoft staging server.
  3. Turn on device.

The table below shows the summary of the test result.

Test Result
Test #1 Test #2 Test #3 Test #4 Test #5
Samsung GT-P3110 Notification Received.
No system notification.
Notification Received.
System notification received
Notification Received.
System notification received
Notification Received.
System notification received
Notification Received.
System notification received
LGE Nexus 4 Notification Received.
No system notification.
Notification Received.
System notification received
Notification Received.
System notification received
Notification Received.
System notification received
Notification Received.
System notification received

Could you please try to test the sample (SyncSample from data-os-sync-pns repository) with these scenarios and let me know the result. Test result from two or more devices will helps much.

I had an interesting experience with a device, Xiaomi, where it requires additional steps to be able to receive push notification. Check out this tips from their website to see in detail. You can also test the push notification of the device using Google apps like Hangouts. If I'm not mistaken, Hangouts uses GCM.

Posted: April 13, 2016 1:20 AM

If I understand you right, I can use all the Crosslight features and functions with the Community Editions. Yes or No?

Yes. You can develop and build mobile application using all Crosslight features and functions with Xamarin Studio Community Edition.

Posted: April 12, 2016 8:53 AM

ASPNET-363 is still in progress state. I'll let you know any news I heard from the team regarding ASPNET-363.

Posted: April 12, 2016 2:54 AM

Since March 18, 2016, Microsoft’s acquisition of Xamarin officially closed. Since then, Xamarin is included in Visual Studio at no extra cost. Source: Xamarin has removed the app restrictions for all their Xamarin edition, including Xamarin Studio Community Edition. Source: Visual Studio Comparison Chart.

In the past, before Microsoft’s acquisition of Xamarin, we always recommend developers to choose Xamarin Business or higher plan due to restriction on the app size.

Visual Studio Community and Xamarin Studio Community editions give many more developers the ability to develop Xamarin apps without Starter’s limitations on size or functionality. Source: How do I share code across platforms with Xamarin? and other FAQs.

This should helps.

Posted: April 8, 2016 8:42 AM

I changed the Google Project Id and in the OnNotificationReceived I added a ToastPresenter which shows the message text of the notification. I started the app in debug mode and I logged in. I sent a message through the "staging" web site. The message was delivered immediately and the toast presenter showed the text. The same happens when the app is in the background. In both cases I have no system notification. When the app is not running, I receive a system notification and when I click on it the app starts. Is it ok that I only receive a system notification when the app is not running?

I modified the SyncSample by showing ToastPresenter in OnNotificationReceived. Next, made some test based on your test scenario. Please kindly check the attached video which shows that system notification is received when the app is in following state: suspended, off, and killed.

When I close the running app, turn of WIFI, turn off the phone and turn the phone on again, I receive a message: "SyncSample.Android.Material was closed". Is this a bug or a feature? (Update: WIFI is turned off, I start the app, I shut down the app, I turn device off and on again - the message appears. Is the app running as background process and killed by the system?)

I got following message after follow your instruction: "Unfortunately SyncSample.Android.Material was stopped". This has been forwarded to the development team to be investigated further. The report is filed under CROS-1109.

I'll keep you informed with any news I heard from the team regarding the progress of CROS-1109.

What did you change with the new Google Project Id? Is there anything I have to keep in mind when I set up my own Google Project?

On the day when I pushed the new Google Project Id to the data-os-sync-pns repository, I also renew the API key in the staging server. This is the key which required by RegisterGcmService() method in global.asax.cs file (Web API project). Example:

protected void Application_Start()
{
	IocContainer.Current.Register<iappdomaininfo, appdomaininfo="">();
	AreaRegistration.RegisterAllAreas();
	EntityServerConfig.Initialize();

	...

	PushServiceManager.Instance.RegisterGcmService(new GcmPushChannelSettings("A1azSyCyBvUzGjAsWAlVRqh3VC497zAzhNrBKMU"));
	...
}
All times are GMT -5. The time now is 7:32 AM.
Previous Next