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.
I've been using Xamarin.Android to build Android apps using VStudio2015/C# with great success. I don't use an emulator, but debug on a physical device (Google Nexus). I find this to be convenient and fast. Haven't yet moved to VS2017.
I don't use an emulator, but debug on a physical device (Google Nexus).
That's probably the best option really.
Lately, I've also ran Android Studio from a VM and then I use Genymotion [^] Amazon Web Service which runs android emulators in your browser. YOu just drag/drop your APK on the emulator running in the browser window and it works quite well and amazingly fast.
It was kind of a pain to set up though, but interesting.
I found that Xamarin was occasionally a pain to install and/or configure.
And VS2017 continue the tradition with a disappointing install experience.
However, once you get it going, it's all good!
My biggest gripe with Xamarin on VS2017 is that it does NOT come with VS Android Emulator.
And one has to go through some hoops to use it...
That's good to hear.
I guess I had issues with AndroidStudio in the beginning too.
I was also fortunate because running the Android emulator is always a pain and I am happy to say that VStudio 2017 seems to find the Android SDK and use the same emulator and images so no double-install.
I find this surprising. I've been doing Xamarin development for a while now and don't see any of these issues. The problem most people have is that they rely on the native Android emulator; this is a slow beast and you're much better off using the x86 emulator.
It wasn't the emulator that was an issue (and to be honest I didn't see a huge difference between the Android one in 2015 and the MS one in 2017 - though I barely used them).
The main issue was that things simply didn't build. I would fire up VS 2015, create a new project from their templates, and they would not even compile.
I had some other issues[^] with iOS, and the Android part seemed a long series of installing 50 SDKs all named the same without any real guidance on what was actually needed. 40Gb later and that seemed to sort itself out.
I do not have my head wrapped around Xamarin forms even vaguely at this point, and the demo apps I've tried (mainly involving bluetooth) just don't work.
My wild guesses as to the issues
- Android moves quickly and keeping up with requirements makes life hard for Xamarin, hence the shotgun approach.
- Xamarin tries to use what the other vendors provide meaning they can't provide a neat, integrated "we'll set this all up for you" experience
- Dealing with XCode is just going to be painful. I'm sure that's not by mistake
- The native iOS/Android community has way more mature and stable examples than the Xamarin community. It's just the nature of the beast
So I'm heading to native so that
a) I can just get started
b) I can lean on lots of existing code samples
c) I can understand what's actually happening before I abstract it all using Xamarin
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...
Why aren't you telling us the web site? It's publicly available right so there's no harm in telling.
Are you sure this isn't a web site set up to get people to join specifically so they can hack the members?
I have about 5 TB of photos and videos, plus some music and lots of code, programs, etc..
I have dropbox and onedrive, and use them to store my documents and share programming bits and pieces, but not much more, as my 5 TB of photos reside on a QNAP NAS.
Until now I was using SOS Online Backup to make a full backup of my main PC and the QNAP NAS for disaster recovery, you know, the house is on fire, full melt-down, etc.. I have USB external HDD where I regularly backup stuff, but those external HDDs still reside at home. Now, SOS Online Backup decided not to offer unlimited backup anymore, and the 5 TB tier would be thousands of dollars, what service can you recommend?
I used in the past CrashPlan, but I found it very buggy and had to map/remap the folders on the NAS all the time for CrashPlan to see them and then hope they get backed-up.
good point. Out of the 5 TB, about 3.8 TB are only photos. I scanned two generations (family was very prolific shooting film ) and have gone full digital since 2004. I go on trips just to take photos and so do other members of the family.
Have them all neatly catalogued in Lightroom, with proper tags and keywords.
Don't look at the photos every day, or every week, but just want to know that if the computer, the NAS and all the HDD were to go, in a disaster, I can still recover the stuff.