Posts by pnet • 14,727 points
909 posts
-
0
votes0
answers293
viewsQ: Error compiling Xamarin.Forms project
I’m making that mistake: The "Xamlctask" task was not instantiated "C: Labs FCM-Xamarin-Forms-master FCM Packages Xamarin.Forms. 2.2.0.45 build…
-
2
votes3
answers1344
viewsQ: ERROR: No Resource found that Matches the Given name: attr 'colorAccent'
I created a project from scratch and when I went to compile it is giving this error. I already updated the Android SDK and still the error continues. It’s giving in all the nodes of Style.xml.…
-
0
votes0
answers71
viewsQ: How to implement a Pushnotification
I know I need a notification server for this. I chose firebase because it is free and does not require a credit card. What I want to do: 1) When the user changes the flag in the database, then a…
-
6
votes2
answers168
viewsQ: What is Pushnotification really?
I’ve been wondering now about Pushnotification and if it really is what I want. To solve my problem I need to Pushnotification? See, what I want is this: When the user(seller) changes the flag of…
-
2
votes1
answer84
viewsQ: When registering my class, it turns on the Onappearing method
I have been trying to notify with Xamarin and Xam.Plugin.Pushnotification. The problem is when I register the plugin. It does not work at the time when the method Up-to-date() is called. In reality…
-
0
votes1
answer141
viewsA: Application Xamarin.Forms stopped out of nowhere
In my MainPage.xaml there was this: <DataTemplate> <ViewCell.View> When I should have just this <DataTemplate> <ViewCell> Honestly, I don’t know how it got like this. I tried…
-
0
votes1
answer141
viewsQ: Application Xamarin.Forms stopped out of nowhere
I was making a code to receive notification and suddenly the application does not run anymore. Compile, Deploy, but it takes time to consume the service and appears this message: O Android project…
-
1
votes1
answer35
viewsQ: Rest API does not receive anything from another App other than my own
You can prevent another application from sending or receiving information from my REST?
-
0
votes1
answer197
viewsQ: How I publish my application Xamarin.Forms
How do I distribute mine App that I just created? Like, I go to the customer to install a version on the two or three person smartphone to test. What I take to deploy on this device, my app? How do…
-
0
votes1
answer174
viewsA: Call PUT method from an Xamarin.Forms App
First I want to say that the problem is all mine. I was so immersed in the center of the problem that I didn’t look at the periphery of it. This made him unable to analyze each line and try to give…
-
1
votes1
answer174
viewsQ: Call PUT method from an Xamarin.Forms App
I need to do an update of mine App. I’m having some doubts to pass the proper parameters to the URL of the service and perform the PUT. The service is working, testing by Postman, I can perform the…
-
1
votes0
answers88
viewsQ: Route is not being located on my site, but works on localhost
I have a service, with verbs GET and PUT. On localhost is ok, but when I host on my site I get this mistake, only when I call the PUT: IIS 7.5 Detailed Error - 404.6 - Not Found According to the…
-
1
votes2
answers122
viewsA: When consuming a service, error occurs in float or double fields in BD
I resolved!! Guys, what I did: I remade the project, in reality just a service on VS2015. That way, I was able to solve it, but I still think VS2017 it will work because I did something in vs VS2015…
-
2
votes1
answer135
viewsQ: Bank without PK, but I checked the PK by the Entity. Is this a problem?
I’m having trouble with fields float. Well, that post will deal with another matter, but I thought I could somehow infer in this problem. I stopped to think and analyze the subject. This is the…
-
1
votes1
answer1534
viewsQ: Reference with a yellow triangle, what does it mean?
When you have an exclamation, I understand that the reference is in trouble and needs to be removed/reinstalled. But with this little triangle, I don’t know. I saw that the package is installed. In…
-
2
votes2
answers122
viewsQ: When consuming a service, error occurs in float or double fields in BD
When consuming the update service, this error occurs: The 'Datalib' Property on 'Release' could not be set to a 'System.Double' value. You must set this Property to a non-null value of type…
-
1
votes1
answer502
viewsQ: Service is not being called to update the database
I did a job and when I call on URL, passing the appropriate parameters, does not work: Call on URL: http://localhost:9078/api/atualiza/1000012120/teste My service: public class AtualizaController :…
-
0
votes1
answer85
viewsQ: Doubt with Rest service and with put verb
I just need to update two fields of my model. At get I pass a DTO to my App. The question is: When I go to do my update(put verb) do I need to load all the property or just the one I will update?…
-
0
votes1
answer28
viewsA: Button does not appear in the App
I solved it. In Onappearing I created a new instance of Stacklayout and put the buttons, entry, listview and returned this stacklayout. It worked. Something like that: StackLayout stack = new…
-
-1
votes1
answer28
viewsQ: Button does not appear in the App
I made a button, listview. The listview is working because I started it, but how do I do with button? Below my code: protected override async void OnAppearing() { base.OnAppearing();…
-
0
votes1
answer59
viewsA: How to create a Listview with delete action
I don’t know if this will solve: <StackLayout Orientation="Vertical" Padding="10,5,10,0"> <ListView x:Name="listaProdutos" ItemSelected="listaProdutos_ItemSelected" BackgroundColor="Aqua"…
-
0
votes1
answer51
viewsA: Exit from my service does not match my dto
I didn’t understand, but suddenly it worked. I gave some cleans. The colleague Gabriel Colleta, told me that nothing to do with Clean, but after giving some (some 3), it worked. So was my code: DTO…
-
1
votes1
answer51
viewsQ: Exit from my service does not match my dto
On my way out of service to the Dadositens camp, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> Turns…
-
0
votes1
answer121
viewsA: List does not load database data with Xamarin.Forms and c#
It worked after I removed the padding from the stacklayout, that padding: <StackLayout Padding="10,10" Orientation="Horizontal" HorizontalOptions="StartAndExpand"…
-
0
votes1
answer121
viewsQ: List does not load database data with Xamarin.Forms and c#
I created a list by code and I can’t load the data. I made this list by xaml and also not and I have another that works(xaml) and tried to do the same and nothing. When I go up the list appears:…
-
1
votes2
answers447
viewsQ: Formatting numbers is not working
I have this line, where I need to format a field. I did several ways and nothing: lista.ForEach(e => e.Total = string.Format("{0:N}", float.Parse(e.Total))); and so lista.ForEach(e => e.Total…
-
-2
votes1
answer55
viewsQ: Turn float or double into date within a lambda
In BD you have a field with a float value, which is actually the number of days from the date 28/12/1800, that the Clarion programming language stores. Well, I have a service REST that is consumed…
-
1
votes2
answers100
viewsQ: My App does not load list of items
I have a App Xamarin.Formsthat consumes two services rest. The first service, consumes normally. However, the second, that I need to pass a parameter, this is not being consumed. I’ve tried several…
-
1
votes3
answers39
viewsA: Cast error while running the Rest service
I decided to change the method. I didn’t understand, but it worked: [Route("itens/{id}")] public List<ItensLibDTO> getItensLib(int id) { var lista = contexto.ItensLibs .Where(itens =>…
-
0
votes3
answers39
viewsQ: Cast error while running the Rest service
I’m making that mistake: The 'Qtde' Property on 'Itenslib' could not be set to a 'System.Double' value. You must set this Property to a non-null value of type 'System.Single'. What can cause it?…
-
1
votes0
answers21
viewsQ: Error calling route Debugger
I installed Route Debugger via Nuget: Install-Package Webapiroutedebugger. When I run my app, and I call the Bugger a route(http://localhost:9078/Rd), this way, explodes this error: But the…
-
0
votes3
answers1247
viewsQ: Service does not execute controller method
This message I get in the browser or Postman "Message": "No HTTP resources matching URI of request 'http://localhost:9078/api/items/1000012105'.", "Messagedetail": "No action found in 'Items'…
-
0
votes1
answer482
viewsQ: Convert float, double or single value to Datetime
I was having trouble Cast when running a lambda and serializing for the service. Well, the solution was to pass everything to String and I got it. On the other side(Android App) I pick up and do…
-
0
votes1
answer798
viewsQ: Difficulty with listview layout on Xamarin.Forms
See this image My layout is broken. See that the client name is: Sebastiao Loureiro de Almeida and in the listview appears Sebastiao and it is noticed that the rest of the name gets further down,…
-
0
votes1
answer71
viewsA: No Resource Identifier found for attribute 'tabIndicatorColor' in package 'Authorizer.Android' Authorizer.Android
I decided to add some references. What happens is that I didn’t know what they were, so I did so. I created another project the same way, I saw what the DLL's and I took the project with problems…
-
0
votes1
answer71
viewsQ: No Resource Identifier found for attribute 'tabIndicatorColor' in package 'Authorizer.Android' Authorizer.Android
I had several errors, which I was eliminating, with the installation of the packages. However, this three I still could not eliminate. The interesting thing is that everything was working and out of…
-
2
votes1
answer338
viewsQ: An unhandled Exception occured. I cannot understand this message, no detail comes
Personal that message: An unhandled Exception occured. It always happens when I try to consume my service REST. I first made an example, copying from Macoratti and it worked. Then I adapted it to my…
-
1
votes0
answers22
viewsQ: Signal receipt of messages
When I receive 1 or more messages, for example, in the What’s App, let’s say I received 3 messages. On top of the icon of the what’s app, there is an orange "ball" with the number 3, in reality the…
-
3
votes0
answers84
viewsQ: On my site is asking for a dll that does not exist in my project
I’m having this mistake. The question is not how to solve, but understand why ERROR, if in my project this DLL does not exist. In localhost the site rises normally without this Dll. I just wish I…
-
4
votes3
answers750
viewsQ: Is it correct in a DTO class to have attributes of two or more tables?
I need to return in a REST data of two tables, to be consumed in an Android/IOS App, developed with Xamarin. As I return a DTO, I thought to bring in this DTO data of two tables, but I find this…
-
2
votes1
answer321
viewsQ: How to make an event work with Xamarin.Forms and c#
When I declare an event on my Mainpage.xaml, I cannot do the implantation. In the visual says that the implantation was made successfully, but in my cell is all white and can not even navigate it,…
-
2
votes1
answer339
viewsA: My application does not give error, but nothing appears on the screen (Xamarin)
The problem has been solved. What was blurring was that both the button and Listview had click events and those events were only declared. Removing the event statement in Mainpage.xaml works, but I…
-
0
votes1
answer48
viewsQ: Deployment only works with Samsung J5 smartphone plugged into the computer
I can only do implantation when my cell is plugged into my note. If I use the pattern(VisualStudio_android-23_arm_phone(Android 6.0 - API23)), does not work. Build successfully, but deployment…
-
2
votes1
answer339
viewsQ: My application does not give error, but nothing appears on the screen (Xamarin)
Developing and learning Xamarin. I took an example of Macoratti and decided to implement, because it comes to consumption of REST with Xamarin. I did everything as it is on the author’s site and…
-
0
votes0
answers31
viewsQ: Java virtual machine error in Xamarin project
I have an Android project that runs normally. However I created a Cross Platform and is giving this error: Error Could not create the Java Virtual Machine. Authorizer.Android C: Mobile Authorizer…
-
0
votes2
answers366
viewsQ: Return an object from two or more tables to the fields
I have done some posts on Rest and Lambda, and to give a close on this subject(I hope), I have a question. A colleague here at the site recommended that I create a DTO and bring the database data…
-
0
votes1
answer236
viewsQ: Lambda or Linq brings me all the fields and not only those of expression
Just for learning even, understand the section. I did a lambda of a bank with only 6 fields, like this: public List<LiberacaoDTO> getAutoriza(int idorcamento) { var lista = contexto.Liberacoes…
-
0
votes2
answers137
viewsA: Property error cannot be set to System.Double
I decided as follows: In the DTO class constructor I did this for each double(float field did not work) public LiberacaoDTO() { Mapper.Initialize(cfg => { //string userName = null;…
-
0
votes2
answers513
viewsA: Tostring("C3") error
The question was as follows. It gave the error, because the field was set as Nullable<double>, thus: public double? Juros { get; set; } I took the ?(nullable) and it worked.…
-
-2
votes2
answers513
viewsQ: Tostring("C3") error
I did this in the constructor of my class and now gives error saying that there is no overload for the Tostring method with 1 argument. It was working, I gave a clean in the Solution and it broke…