This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async Task GetResourceFile (string fileStorageName, string directory, string fileName) | |
{ | |
var storageInstance = CloudStorageAccount.Parse (Settings.AzureKey); | |
var fileClient = storageInstance.CreateCloudFileClient (); | |
var share = fileClient.GetShareReference (fileStorageName); | |
if (!await share.ExistsAsync ()) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Gets files name in an Azure shared file storage | |
/// </summary> | |
/// <param name="fileStorageName">File storage name. Como fue llamado en Azure</param> | |
/// <returns>An array with the files name</returns> | |
async Task<string []> GetSharedFiles (string fileStorageName) | |
{ | |
// Necesitas un objeto de Microsoft.WindowsAzure.Storage.File.FileContinuationToken en el nuevo metodo | |
// En la primera llamada lo pasas null y el te retornara uno nuevo en el resultado de la llamada. | |
// sigues haciendo llamadas al mismo metodo mientras este sea diferente de null (esto significa que ya no ya mas archivos). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using(var client = new HttpClient()) | |
{ | |
// tuObjeto representa la data que vas a enviar en el post | |
// Y estamos usando json.net para convertirla de una entidad C# a Json (string). | |
// imaginate que quieres enviar un {"nombre":"jose perez", "edad": 45, "activo":true} | |
// tuObjeto debe ser una instancia de una clase que contenga almenos esos campos | |
var json = JsonConvert.SerializeObject(tuObjeto); | |
//aqui el json lo convertimos a lo que el metodo Post esta esperando | |
// Indicando el tipo de Encoding y tambien el tipo de contenido que estamos enviando |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.App; | |
using Android.Widget; | |
using Android.OS; | |
using Android.Content; | |
using Android.Appwidget; | |
using Android.Runtime; | |
using Android.Views; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.App; | |
using Android.Widget; | |
using Android.OS; | |
using Android.Content; | |
using Android.Appwidget; | |
using Android.Runtime; | |
using Android.Views; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.Test"> | |
<uses-sdk android:minSdkVersion="16" /> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-feature android:name="android.hardware.camera" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.Test"> | |
<uses-sdk android:minSdkVersion="16" /> | |
<application android:allowBackup="true" android:icon="@mipmap/icono" android:label="@string/app_name"> | |
</application> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Button addTextBoxButton; | |
LinearLayout textBoxHolder; | |
List<EditText> _myEditTexts; | |
protected override void OnCreate (Bundle savedInstanceState) | |
{ | |
base.OnCreate (savedInstanceState); | |
// Set our view from the "main" layout resource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > | |
<LinearLayout | |
android:layout_alignParentBottom="true" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" |