Posts by Angelo Belchior • 361 points
12 posts
-
1
votes1
answer40
viewsA: Htttpurlconnection functions missing in Xamarin Forms development (Java System Conversion to C#)
A much simpler way to download content from the web is this: private async Task<string> DownloadContent(string url) { using(var client = new HttpClient()) { using(var r = await…
-
4
votes1
answer649
viewsA: Should I always use Navigation.Popasync()?
It depends. In the Android and UWP we have physical buttons that can perform the navigation and this navigation pops the pages. No iOS we don’t have that button, so if you’re not in a container…
-
2
votes1
answer84
viewsA: Create customizable parameter for Application Insights
Besides the instrumentationKey you can pass on some other information, among them: appUserId: string accountId: string If you play the value of Clientid in appUserId you will be able to see this…
-
1
votes1
answer86
viewsA: How to give Reload in a Webviewer per time interval in Xamarin Android?
This strategy is not so performative, because it will, in fact lock the App, after all the main thread will be stuck in this while (Thread.Sleep(5);). I recommend signing the event CheckedChange…
-
2
votes1
answer172
viewsA: How to load Tableview Dynamically
You need to set the Tableview Intent. tbMenu.Intent = TableIntent.Settings; //ou TableIntent.Form A nice example (it’s on the Xamarin Docs website): MainPage = new ContentPage { Content = new…
-
1
votes1
answer116
viewsA: Xamarin.Forms.Xaml.Xamlparseexception
Masterdetailpage has the tiny p. The right one would be Masterdetailpage with a capital 'P' :)
-
0
votes1
answer36
viewsA: Reference Xamarin PCL with external PCL’s
This must occur because of compatibility (Targets) between PCL’s. See which platforms the PCL mvvm.Viewmodel is referencing. The targets of this PCL must be the same as the PCL that is receiving the…
-
1
votes1
answer44
viewsA: What is the generic name of the Xamarin search field for use in automated testing?
Use the Automationid property, and access the element this way XAML: <Button AutomationId="MeuBotao" Text="Toque aqui" /> Csharp: app.Query(c=>c.Marked("MeuBotao"))…
-
1
votes1
answer83
viewsA: "Something Went Wrong" when creating project
You need the 64bit version of java installed. Also, update the Xamarin version. Install Android Api 25, Build Tool 25.0.x, and Platform-tools 25.0.x (Note that there may be updates to these tools)…
-
3
votes1
answer223
viewsA: Problem with Mysql connection in C#
You see, there may be a problem of concept there. It’s not safe to access a database directly from an app, so we’ve created an Api bus that exposes information and has a security layer, whether it’s…
-
0
votes1
answer44
viewsA: Emulator only runs old applications
First look at the application output to see if you find any evidence or message. Usually, when deploy is not done, some message appears describing the problem. But I recommend uninstalling the…
-
4
votes1
answer433
viewsA: Create a new instance every time you use Navigationpage in Xamarin Forms?
You should always navigate to Detail. Something like: var masterDetail = new MasterDetail() { Master = new MasterPage(), Detail = new NavigationPage(new DetailPage()) }; MainPage = masterDetail; To…