How to get contact in xamarin forms app using pcl [closed] - xamarin

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a Xamarin.Forms PCL app, and I want to get contacts,
I saw this plugin
https://github.com/enisn/Xamarin.Forms.Contacts
Because I am a new xamarin trainee I could not use it.
I need someone who explain to and train me how I use it.
I need that not for this exact plugin, I need that for another plugins which I will use them in my Journey with xamarin.

Xamarin.Forms.Contacts can be installed via NuGet:
Here's a tutorial to install any nuget via visual studio (it's quite similar for mac as well):
https://dzone.com/articles/install-nuget-packages-in-visual-studio
You also have to add permission on both platforms, as stated in the project readme:
Android -> AndroidManifest.xml
add the following node:
<uses-permission android:name="android.permission.INTERNET" />
iOS -> info.plist
add the following node:
<key>NSContactsUsageDescription</key>
<string>We need contact permission to do ...</string>
After that, you should be able to use it in your project without problems.

Related

How to deploy SwiftUI macOS app directly on you mac? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
When working with SwiftUI iOS App, I can deploy or generate the app on my iPhone easily by running the app project with my plugged device.
However, when working with macOS app, I notice that no matter how many time I run the project, the app is not generated or deployed on my mac.
How can I generate or install the macOS app directly on my mac?
How can I generate or install the macOS app directly on my mac?.
In Xcode, go to the Product menu, then Archive -> Distribute App -> Copy App -> Export As: MyApp
Go to the selected folder and your app is there, double click on it.

Should I develop UI screens separately for android and iOS in Xamarin.Forms [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am starting development of mobile application in xamarin using Xamarin Studio. I have created a sample xamarin.forms project. The project has 3 packages. Sample, Sample.droid and Sample.iOS. Sample.Droid has layout folder and Sample.iOS has storyboards. The package named Sample does not have UI related files Do I need to develop UI in both the packages separately? If yes, what about the logic/code? Please provide a link which explains me this properly. Thanks in advance.
No.Never.No Need to Create UI separately for different platform .if you will do then there is no meaning of xamarin.
Xamarin.forms is used for creating cross platform mobile application.where you can create common code for UI as well as back end logic in shared project and that will be runnable for all platform like IOS,Android,UWP.Thats the the main concept of xamarin.forms.
and of course if you want some UI changes according to platform like.you want some different UI for button in Ios and android then you can use customrenderer for that
That will provide differnt look for differnt plateform runtime.
Here https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/ you can study in detail about custom renderer.

Is blank app (Xamarin portable) actually a combination [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
of :
- an Android class library
- an iOS class library
- and an pcl.
?
Can i create an fully functionnal app with these three projects in a solution instead of simply create a blank app ?
It's just for my education.
A blank Xamarin app template (Portable) consists of a shared PCL and a platform app (not a library) for each selected platform. You're correct that there is nothing in the template that you couldn't create by hand.

Should I choose MvvmLight or MvvmCross on a new project of simple to medium complexity? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am trying to find the main difference between MVVMlight and MVVMCrossthose frameworks. I am planning to develop for Android and Windows Phone. I will use the Xamarin framework. (and Xamarin.Forms)
The project should be a vehicle tracking application that talks to Azure-run server. The app itself will be (as usual in the beginning of a project) very simple (start, stop, keep recorded locations).
Why should I use one over the other?
Other details: VS2012
Completely up to you. People have gotten MvvmCross working with Forms here but still early days. Do you need any of the nice plugins of MvvmCross? Will there be screens that you'll need to manage per platform because they are too complicated for Forms? I don't think there is a right or wrong answer here....

Design pattern in Android (cross platform with xamarin) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make a quite simple application in multiple devices using xamarin (iOS and Android).
So I read/think that the best way to doing this is to put one folder (shared between all projects) that contains all the:
DataLayer (for physical storage)
DataAccessLayer (support data operations)
ServiceAccesslayout (communicate with an external API)
BusinessLayer (Application Facade)
And for the view, the applications will use their custom language
So first question, does it sound great?
Second: How add that kind of folder, that should be updated in every project in Visual Studio 2012? Actually I have one solution with two projects and the two projects (iOS and Android) should have that same folter (tat contains all the "core" layers)
By the way if you have already read a tutorial that talk over that question, please give it to me.
I would have a look at MVVMCross, it is a great way of sharing the maximum amount of code across platforms.
https://github.com/slodge/MvvmCross

Resources