How to add Contact info in Android App with Xamarin - c#

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#

Related

Xamarin Android Apps and Azure SQL Databases

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

Send data from UWP app to Unity3D on the same machine

I have a universal apps getting data from Microsoft's Band 2 (accelerometer) and want to export the processed data in the app to the unity project to be used as input control. The data will be frequent, so real-time response is preferred.
What should I learn or use to achieve this?
I'm pretty sure it would be easier to write a plugin for Unity to connect to Band directly rather than to connect to an app that connects to Band (actually I have no clue how to do that).
Having that in mind, you probably should:
download the appropriate Band SDK from the official website
Read about writing plugins for Unity for the platform you need (Desktop/WP, Android, iOS)
Draw a pentagram and hope for the best

What is the best alternative for a native app using webviews interfacing with a C# web based application?

I am building an android + iOS app that has its own functionality as well as incorporates functionality of another web based application.
I am using Telerik to build out the interfaces, and probably OAuth to handle the sign-on.
I do however have the issue of handling portions of the C# functionality within my app, and I wanted to know what the best way was to interface between the database of the C# app.
There are obviously many rules associated with each action. For example, if a student uses the android app and wants to upload a grade to the (previously handled by C# web app) database, how do I go about doing this? Do I have to rebuild all functionality within my app? Is there a way I can use API's to retrieve info defining rules?
I am very against WebViews as it is slow and clunky.
Apologies if I seem silly here, not very experienced in the matter.
Any help or guidance is greatly appreciated.
So, Basically you wanted to go for cross platform mobile application Development !!
Then you have lots of options where you can use your web based knowledge to build mobile application
Like , Phonegap , Titanium and many more , there you can just use you own web based knowledge and make good Mobile application
http://phonegap.com/
http://www.appcelerator.com/
also , if you wanted to go for c# only then i suggest you to go for
xamarin
http://xamarin.com/
Also you will get so many api and guide for that about sqlite and also so many good designs are also available in this all platforms !
Do let me know if you need more information !!
Happy Coding !!

Restore in-app purchases

I'm using Xamarin InAppBilling to do in-app purchases.
Is it possible to restore previous purchases? I have looked everywhere but can't find any information that helps.
Of course.
Xamarin allows you to wrap java jar files, and in this case you need google play store jar (this answer assumes you want to use google play store to do in-app billing from, rather than going on, say, amazons app store) and use the java api. This answer (Cannot figure out how to restore transactions on in-app purchases in Android) explains some of the Java code needed, it shouldn't be at all that difficult to write it in C# as the apis are the same.
One thing to keep in mind is that you may not be able to restore consumable/one-time purchases, such as in game currency.
Here is the official android guide on in game purchases: http://developer.android.com/google/play/billing/billing_integrate.html

Voice over wifi between android phones in C#

I want to develop an application for voice calls between two android devices on my home network (WiFi). I'm new to programming so don't really know where to begin, I have researched around but cannot find anything that fits what I need to do.
The application has to be written in C# as I have a basic understanding of that language and it's the language I want to expand my knowledge in. I'm using MonoDevelop which allows the creation of android apps through C#.
The call will be peer to peer so very basic and no security or encryption will be necessary in these early stages of development.
All help will really be appreciated!
I'd start with this link at code project:
http://www.codeproject.com/Articles/138484/Simple-SIP-VOIP-based-phone-in-C
You will have to adapt it to android, but again is a probably a good starting point to understand how to do voice over IP.
The big things that may differ on android are:
User interface
method to get microphone input
method to play audio output
access to the IP stack
but the basic (encoding, decoding, etc...) should be there.

Categories

Resources