The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
Maybe it's because I've used XAML for years now that I find Xamarin Forms simple to grok. I have started on an unofficial Code Project app, using Forms, that I will be writing an article about. It is the final part of the CP API series I started before, and brings the various parts together. Hopefully that will help you to grok how Forms works by the end; along with how to drop back to platform specific when necessary.
I'm going through the same pain and am actually thinking of just switching to native app development.
That's exactly why I was trying out VS 2017...to see if the dream is true -- write once, run anywhere.
I've done native Android and iOS apps and each are painful in their own way but unless VS 2017 / Xamarin can really allow me to build apps with the same power then jumping through hoops to create them there doesn't get me much.
I feel like I might get to a place with Xamarin where there is functionality that I'd need to customize anyways. However, once I got it to build in VS 2017 and run properly, it was enticing.
First things first... It's a write once (almost) run everywhere solution (you have to build for each platform, it is only hidden from you by the environment).
Do you have web development experience? If so, you may try Cordova...
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
Do you have web development experience? If so, you may try Cordova..
I do and thanks for mentioning that.
I was mostly checking out VS 2017 to see how smooth it all works for creating apps across platforms.
In most cases I find that there are just a lot of hoops to jump through.
At some point, I just think, well just write the app natively on each if this "write once, run everywhere" thing has so much to customize anyways.
FWIW my employer does a fair amount of Xamarin. They've told me that the pure runs everywhere Xamarin.Forms UI library is too limited in its ability to customize how UI controls look and function to be useful in anything but the narrowest cases. Instead what my coworkers do is build a shared backend with all the business logic (and a data layer shared with the server if it's done in .net); and then build separate nativish UIs using Xamarin.IOS and Xamarin.Android (C# wrappers of the platforms native components).
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
Very interesting and that is why I was examining how Xamarin really works also.
Again, there are still hoops to jump through. I know that is basically always the case with multi-platform, but again I was just dreaming.
I feel your pain! I've tried to Xamarin Forms for years, but it never worked until VS2017, but worked is somewhat a misnomer.
The connection between building, running and the emulator is so strange that it too a long time before I figured out how to effectively make this process work consistently. I simply run the emulator first before ever trying to debug and I get better results, but it's still very slow.
Watch out where you have your project. They seem to document this nowhere, but I moved a project and it never generated the debug(mdb) file after the move. I looked everywhere with no luck, only to find a post about it having path problems. It appears that if your path has a "$" in it, the debug file won't be generated... yikes!!!
For some strange reason Xamarin Forms XAML decided to do things differently from Microsoft XAML, go figure. For instance, instead of StackPanel, they use Stack Layout, but that's the least of the offenses, so watch out.
Other than that, I've been able to finally develop in a consistent fashion and am now just trying new things in an attempt to jump start the development of my first mobile app.
Thanks for chiming in.
Great info. I will watch for those things.
I was thinking about it today and there are so many differences between iOS and Android (my two main concerns) that it probably doesn't matter anyways.
Here are a couple of examples of what I mean.
Recently I wrote an app that receives SMS text messages and uses Text-To-Speech (TTS) to read them to you (Android). Android Phone Reads SMS (Txt) Messages To You[^]
However, you cannot get received SMS messages like that on iOS anyways.
Also TTS is completely different on iOS. So that app is out.
Also, the app I originally wrote on all 4 (Windows, Web, Android, iOS) platforms the old way uses some interesting Canvas type of elements that are not going to be handled by Xamarin. C'YaPass - Android @ Play[^]
There's also a discussion about this on Reddit[^] - The OP there has a few points, especially
It also completely ignores the fact that so far, emotions have not been programmed in a way that allows a computer to 'develop depression'. Doing so would probably get you a nobel prize and mountains of attention.
Private conversations with Rinna mean people will be feeding in stuff they want to talk about with a bot. In Japan that means a bunch of depressed hikkikomori venting to a robo-buddy. Rinna then learns in a Tay/Cleverbot style fashion, and repeats the pleas for death.
Ya, agree. I thought ai was to make things better, not the same as - waste of bloody time if zero gain.
If we wanted entities equivalent to humans there's a much more fun way to make those, even better if done in practice mode only (that 9 month later consequence of doing it for real will hamper practice sessions for years.)
I make minor changes to code, try to build, Mama opens a file dialogue: Mama wants to save the file; but, Mama, the file no can save ... already open that file.
So, clean and clean project, until Mama sees no shyte on my sneakers ... then build Bill can.
K.D. Lang's ensorcelling song keeps playing in my head: [^] ... only: I am hearing "constant cleaning" instead of "constant craving."
Yes, I have checked every possible build setting (these are WinForms app); this happens with or without having Class Libraries I am developing as part of the App which are external to the WinForms Project.
Not having acquired fresh soy milk today, and out of the divine muddy excrescence of the female Palm tree (sugar): I may be in withdrawal
«When I consider my brief span of life, swallowed up in an eternity before and after, the little space I fill, and even can see, engulfed in the infinite immensity of spaces of which I am ignorant, and which know me not, I am frightened, and am astonished at being here rather than there; for there is no reason why here rather than there, now rather than then.» Blaise Pascal
So a few years back I wanted to participate in some annual event, a midsummer night walk.
Registered on the website, something went wrong, and suddenly I joined a team on the other side of the country.
Back then I could also change the names and emails of the group members, people I didn't know and that I joined by accident
For some reason I lost my password and requested a new one. They sent me my own password in an email...
So accounts are publicly editable (that's a whole new level of security breach) and passwords are stored unencrypted (or at least an easily reversible encryption).
So now, a few years later, I want to participate again.
Went to the website, requested my password (that I changed to something I couldn't remember, just like the rest of my info) and they sent me an email. Except I never got the email.
So I just created a new account, requested a new password again (just to check if they fixed it) and now my old password is invalid, but they also haven't sent me an email.
Good job, within five minutes after registering I'm locked out again
What the hell are these "developers" doing?
Seriously, my grandma could've done a better job and she only just learned how to open Google.
Have you ever considered the possibility that maybe the people in QA are the smarter ones?
At least they know how to subscribe to a website, find the correct forum, and post a question.
A scary thought...