I am very new to Mvvmcross and Xamarin Android development. My question are there any examples with the use of MvxObserableCollection method(I read somewhere that this method can help update the list with each api call), I am searching for few hours now but I can't seem to find what I am looking for.
And like I mentioned, in my sample application when user clicks a button an api request is send and the information comes up in second viewmodel but there is a list which is constantly changing with each api call. So is the any other way or are there any MvxObservableCollection examples out there. Thanks!!
Related
I'm looking for a way to start a Teams call from within my own custom application.
Our application has a whole bunch of phone numbers for Customers/Suppliers/... and I want to give my users the option to initiate a call just by clicking a button in the application.
Does anybody have a good sample on how to do this?
I know that in the past, this was fairly easy to do with Skype and Lync. They just had an SDK you could call from your own application.
But when I try to look for the same thing in Teams I always end up in documentation around bots. And it's a bit confusing if you're new to that part :-)
So main question is, how can I start a phone call with Teams from my own code? Phone calls to an actual phone number, not a Teams account.
There's no such API available to create a call. However you can have deep link to make a call. Follow this doc to understand Deep linking to an audio or audio-video call
To make a call to combination of VoIP and PSTN users https://teams.microsoft.com/l/call/0/0?users=<user1>,4:<phonenumber>
To make an audio call you can do -
https://teams.microsoft.com/l/call/0/0?users=<user1>,<user2>
To make a video call you can do - https://teams.microsoft.com/l/call/0/0?users=<user1>,<user2>&withVideo=true
User ID field supports the Azure AD UserPrincipalName, typically an email address, or in case of a PSTN call, it supports a pstn mri 4:.
It will not directly going to start the call. Instead showing a pop-up as below -
Im using Xamarin.Forms for a little project, and im looking for a way to add a floating action button that appears all the time everywhere (something like Facebook Messenger's chat head) , even when the app is closed, to receive notifications and show them to the user.
I did a lot of google searches but managed only to find the solution for native android in java and nothing about Xamarin.
Is this possible in anyway ? (My project is simple, no MVVM, nothing fancy)
UPDATE:
I found a native view for Android that does the same thing:
https://github.com/recruit-lifestyle/FloatingView
Thank you
I'm a second year student and for my last project I'm interested in doing a Xamarin Application. So I just got started with Xamarin and I've been doing the tutorials in developer.xamarin to learn new things. However my ultimate goal is to make an Xamarin.Android App which has multiple screens which will be used to interact with an Azure SQLDatabase which is already being used for my ASP.NET Forms Website, so that I can use both like Facebook to as an App as well as an Website.
While I was searching for examples I got this by Xamarin This Link (Which is quite complicated and some unknown errors pop while I'm developing it) but, while I was reading the forums I got this C-Sharp Corner Tutorial which is quite easier than the original Xamarin Blog Example. Later I found another approach given in StackOverflow which is Hosted In GitHub. It would be grate if someone could explain me what is the correct approach (and what is used in the Industry) from above three and which is the most optimal solution for my app goal.
Plus, According to the articles I read, here's what I understood so far, It is unsafe to directly connect an Azure SQL Database to an Android App like we used to do in ASP.NET applications so what we usually do is use Some Mechanism called REST based on Json requests. It would be great if someone could tellWhat is the way to interact an Android Application with an Azure SQL database
Thanking in advance :-)
There is a really easy way to do this by using the example officially provided by Xamarin about Consuming a RESTful Service which can be found in Consuming a RESTful Service and developing its ASP.NET Core Back-end API which can be found in above URL which is provided my Microsoft
Thanks
Could someone please advise me on the "correct" way of implementing Pull to refresh on UWP?
Below are some examples I've found however I'm not sure which one is using the best approach:
Microsoft sample which is for a ListView - This works however it is specific to the ListView Control
AmazingPullToRefresh is a NuGet package that also works however it is somewhat limited in terms of styling
PullToRefreshUWP_WindowsComposition is another example however it works differently to the other two as it does not use an extension class
Any advice is much appreciated
There is no standard answer for this question, basically, there are two points we need to implement:
Get the offset changes when user pull something on the control
Generate some indicator to notify user
Both XamlPullToRefresh and PullToRefreshUWP_WindowsComposition use the new Windows Composition API: Windows.UI.Composition namespace
Ref Windows.UI.Composition Overview
The API is a powerful supplement to existing frameworks such as XAML
to give developers of UWP applications a familiar C# surface to add to
their application. These APIs can also be used to create DX style
framework-less applications.
Please notice that this API works only on Windows 10.
While AmazingPullToRefresh uses Manipulation API and implement all things by calculating offset changes. A similar implementation can be found here
If you want to implement a cool pull-to-refresh control, I would recommend using the Windows.UI.Composition API. You can get start from here
The functionality of pulling to refresh is not used by microsoft.
Reloading a page / data is something we have still in our mind from thinking apps like a website.
Why not have a synced database and alway update your UI with the data which got changed in your local db? For eg. see firebase.google.com
If you want to implement this feature anyway there is not really a way to go.
I have used the PullToRefresh.UWP library from NuGet. For a tutorial see:
codeproject.com
With some tweaking it works but sometimes when I lift my finger of the screen after pulling down the bar won't go up again.
So the answer is: Sorry, but nobody can give you an answer on how to do this the "correct" way. But is there a correct way anywhere? Like almost always in programming. It depends on the case you will use it.
Hope this will help you.
I'm developing a simple application which will store a contact name and ip address.
In my mind i imagined i would have a text field where i could enter a name, and another text field for the ip address and then a button which when clicked stored the contents of the text fields into some kind of array that could then be called up to show the contacts added.
I'm working in Xamarin for Android and writing my code in C# - except i'm not totally sure where to begin with this task.
Anyone know where to start with this on C#? Examples or existing works would be incredibly useful as i'm very much a beginner when it comes to programming!
Xamarin has a github repository with a lot of different samples and ready made apps.
Also the Xamarin documentation for Xamarin.Android is very useful, as it contains API docs, tutorials and descriptions for some of the samples in the repository along with additional samples.
There are also a couple of books, which gives you a good basis of knowledge of how to use Mono for Android/Xamarin.Android:
Professional Android Programming with Mono for Android and .NET/C#
Mobile Development with C#