[Xamarin] Map not showing in Navigation Page
I am building an app with a map component. I put the Map Control on a navigation page. But I put this code on the button click event.
Code
MapPageXaml page = new MapPage(model); | |
Navigation.PushAsync(page); |
After the button is clicked, nothing happened. No Errors message at all.
I found out the problems is in Key. I need to re-create the key. I need to follow the steps by steps in this page.
Then that is working
Loading Images from Xamarin Forms
Even the UI I built is very simple; I need to load some icons in the UI. I have used navigation page. After I had navigated two pages, then I got an exception, OutOfMemoryException. That is because Bitmap Decode is used a lot of memory. I found we should avoid using:
Code
img.Source = ImageSource.FromFile("test.jpg"); |
We should use the images in the embedded resources
Code
img.Source = ImageSource.FromResource("advgen.test.jpg"); |
Please change the properties of the image file:
Then the problem will solve.
ZXing.Net.Mobile in Xamarin got a black screen
I started to build a library management system for small organisations. This system doesn't require a pc at all. It will works in any iOS and Android devices. It used a camera in the device as a bar scanner. I used an open source framework ZXing.Net.Mobile to do that. I found when I fire the scanner activity, it got a blank back screen. I initialized the framework
Code
MobileBarcodeScanner.Initialize (Application); |
And I gave the camera permission in AndroidManifest.xml, that still got a blank screen.
After I read the document from ZXing.Net.Mobile, it need the flash light. After I gave the flashlight permission, it works.
New version Visual Studio Team Service
In ten years ago, we started to use Visual Studio Team Foundation Server. That sounds only a source control system. Last night, I went .net user group meeting for the new version of Visual Studio Team Service. The presentation is great. The new version have on-premise and on the cloud. Moreover, that is more than a source control system. It is similar with JIRA, and it can handle the change request and user story, you can use it to do scrum meeting. In addition, it is not for Visual Studio, it got the plug-in for eclipse and Android Studio. Also, it got build agents for Android and Linux too, even you use the cloud version, you can install a build agent on your computer. The on-cloud service can trigger the agent. Lastly, it just supports TFS, it supports ZGit, and can link up any external git system. That is great!
.Net Custom SQL Provider for ASP.net Identity
I am working on the redevelopment of AdvGenCMS which is a simple .Net CMS. It built by myself and a couple of intent university students. I have not updated for a few years. These few days, I am working on redevelopment it. Currently, I am working on the authentication framework.I am upgrading that from ASP.net Membership system to ASP.net Identity. In last version, that is using a custom SQL Provider. I found that is more workable with a similar SQL provider. But I need to change the UserStore and my own user class need to be implement IUser interface.
public partial class AdvUser : IAdvUser, IUser