There are a number of things wrong.
1. The nombreElementsPairs function is inside the main function; it should be a separate block.
2. The list of numbers is supposed to be a parameter passed in to the function, but you ignore that and create a new local list.
3. You create the counter nombreElementsPairs but never refer to it again.
4. You test every element of the list to see if it is even, and if it is you set the resultat variable to zero. Note, that you previously initialised resultat to zero, so if all elements of the list are odd, it will still be zero at the end.
5. The return value of the function is resultat which will always be zero, which is not the count of anything.
6. The print statement does nothing useful.
As I already suggested, you should go to the Dart website and work through the tutorials, so you get to understand how to structure your program logically.
I was able to stop it from automatically coming up with the location of where my Wifi service is (which for some reason is about 350 miles away), and added a few cities, and selected one of the cities, but then when I got out of the app and back to the Android desktop (or whatever it's called), I get one of the other cities in the list of cities. And I don't feel like having to reboot.
hello I want to know how to retrieve the data from an API and display this data in an array for example if I have an array that contains the users how to form an array with their name, first name, city etc ... put the values that I retrieved from an API in react native
please help me with full example
I am trying to get GSM data into the android studio. However, this data must not come through the server. Basically, sending the data from GSM module from Arduino to android application without including any type of server such as Firebase. Need help
Ask the company that will do the development for a quote.
We can't say "It'll be $xxx" becuase we have no idea where the dev company is, what its hour rate works out at, or how long they think it will take to produce.
And I have multiple hourly rate "charge bands" based on experience with that company and how good they are actually paying ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
I do not have any programming background, but I would like to train to become a Hybrid mobile app developer from scratch. What languages and technologies do I need to learn and how can I access this training? Thank You All
I want to try out Xamarin to build my first sample app using VS and C#.
But I obvious ran into problems with my develop environment.
I can’t start the most basic setup.
This may interest some of you. Perhaps you can comment my questions.
This should only require up to date hardware and software.
Here is what I did:
I am working on a standard hardware notebook (HP 255 G7) with an AMD Ryzen3 cpu and Radeon graphics using Microsoft software Windows 10 Home version 2004. I normally only create asp.net apps, so I needed to extended my Microsoft software Visual Studio 2019 16.7.7 with mobile Xamarin.Forms for development with .NET.
I then picked a video series from Microsoft Developer Network channel9.msdn.com – Xamarin 101 with 11 parts to help me enter this new world.
First I needed to set the settings of the Android SDK Manager. I selected Androit 8.0 and 9.0.
Then I needed to setup an Android device. This is the emulator for an Android mobile working with the VS during development. Nice, all software environment.
Troubles started when I had to pick the cpu of the android device or of the emulating pc? X86 or AMD v8a?
I kept the Android Pie 9.0 – API 28 for a x86 (default) setting and choose to edit the Android 8 to an amd v8a thereby forcing the operating system to change to Nougat 7.1 – API 25.??
Stepped back and installed the Android Nougat 7.1 with the SDK Manager.
Let me now just try the two emulators out by pressing the START button.
• The Android Pie 9.0 (x86) pop up with: Hyper-V is not configured. Turn on “Hyper-V” feature to switch to the Native Hypervisor and accelerate your emulator.
Hmm..? I tried: Run Anyway, now that it is an option. It displays, but says: Pixel Launcher isn’t responding.
Is it good or bad? I guess it is not quite ok.
• The Nougat 7.1 (amd v8a) pop up with: Could no start emulator using HOST GPU Mode. Please check if you can update video driver. If it doesn’t help, try to edit the AVD and set “hw.gpu.mode=off”. Then another form from Android Emulator tell you that the emulator has closed due to an internal error. AMD is found but no Vulkan driver found. And it wants to file a report to ? MS perhaps? Will it help??
Well, lets check out if everything is working by deploy emulator Android 9.0 with the blank project solution (part 4 in the video).
A Performance Warning (Intel) pops up: pixel_2_pie_9_0_-_api_28 will run unaccelerated.
This machine does not have an Intel processor, which is required to accelerate the Android emulator. The emulator performance will be impacted. We recommend to use a physical Android device for development.
I guess the choice of cpu was for the pc, but it is just a recommendation. Cancel or Start Anyway?
Lets try and continue. Emulator pop up immediately, but after a couple of minutes it says that there is no reply and the system keeps running in the background. How to break?
Lately there has been much talk about Intellectual Property theft. This can not be the case here, I am not impressed.
Can it be so difficult to build a compiler framework for today’s smart phone?
I just wanted to try and create a test app for my Samsung Galaxy Tab A (2016) Android 8.1. Maybe later try it out on my iPhone 6 iOS 12.4.8. Is that too much to ask?