Entradas

Hey with this thread, we can learn to get a music players song information and download a thumbnail from iTunes Apple =).

First add a Xamarin.Android project

Now in the Project add the follow components

Json.NetAndroid Support Library v4
After this add a Main.axml layout with only one button.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="@+id/myButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Start Service" />
</LinearLayout>
Now this is the MainActivity.cs Code its very easy we add two clases one as a BroadcastReceiver and the other one as a Service