Skip to content

Commit

Permalink
carpetas y movil
Browse files Browse the repository at this point in the history
Organizacion de carpetas de los proyectos y se agregó el proyecto movil
  • Loading branch information
csotomon committed Jun 21, 2016
1 parent e35e27d commit c8146eb
Show file tree
Hide file tree
Showing 430 changed files with 194,223 additions and 0 deletions.
19 changes: 19 additions & 0 deletions movil/paisitas/Droid/Assets/AboutAssets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with your package and will be accessible using Android's
AssetManager, like this:

public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

InputStream input = Assets.Open ("my_asset.txt");
}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
78 changes: 78 additions & 0 deletions movil/paisitas/Droid/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Locations;
using System.Collections.Generic;

namespace paisitas.Droid
{
[Activity(Label = "paisitas", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity
{
Location _currentLocation;
LocationManager _locationManager;
string _locationProvider;

protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);

// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);

// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);

Button botonDesconectar = FindViewById<Button>(Resource.Id.buttonDesconectar);
Button botonConectar = FindViewById<Button>(Resource.Id.buttonConectar);
TextView textoEstado = FindViewById<TextView>(Resource.Id.textViewEstado);

botonDesconectar.Enabled = false;

botonConectar.Click += (object sender, EventArgs e) =>
{
botonDesconectar.Enabled = true;
botonConectar.Enabled = false;
textoEstado.Text = "Conectando";
};

botonDesconectar.Click += (object sender, EventArgs e) =>
{
botonDesconectar.Enabled = false;
botonConectar.Enabled = true;
textoEstado.Text = "Desconectado";
};

InitializeLocationManager();
}

void InitializeLocationManager()
{
_locationManager = (LocationManager)GetSystemService(LocationService);

Criteria criteriaForLocationService = new Criteria
{
Accuracy = Accuracy.Fine
};
IList<string> acceptableLocationProviders = _locationManager.GetProviders(criteriaForLocationService, true);

if (acceptableLocationProviders.Count>0)
{
_locationProvider = acceptableLocationProviders[0];
}
else
{
_locationProvider = string.Empty;
}

}


}
}


15 changes: 15 additions & 0 deletions movil/paisitas/Droid/Presencia.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
namespace paisitas.Droid
{
public class Presencia
{
public Presencia()
{
}

public void ConectarPresencia() {

}
}
}

8 changes: 8 additions & 0 deletions movil/paisitas/Droid/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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.cycit.paisitas">
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="paisitas"></application>
</manifest>
28 changes: 28 additions & 0 deletions movil/paisitas/Droid/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.

[assembly: AssemblyTitle("paisitas.Droid")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("${AuthorCopyright}")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("1.0.0")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

44 changes: 44 additions & 0 deletions movil/paisitas/Droid/Resources/AboutResources.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Images, layout descriptions, binary blobs and string dictionaries can be included
in your application as resource files. Various Android APIs are designed to
operate on the resource IDs instead of dealing with images, strings or binary blobs
directly.

For example, a sample Android app that contains a user interface layout (main.axml),
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
would keep its resources in the "Resources" directory of the application:

Resources/
drawable/
icon.png

layout/
main.axml

values/
strings.xml

In order to get the build system to recognize Android resources, set the build action to
"AndroidResource". The native Android APIs do not operate directly with filenames, but
instead operate on resource IDs. When you compile an Android application that uses resources,
the build system will package the resources for distribution and generate a class called "R"
(this is an Android convention) that contains the tokens for each one of the resources
included. For example, for the above Resources layout, this is what the R class would expose:

public class R {
public class drawable {
public const int icon = 0x123;
}

public class layout {
public const int main = 0x456;
}

public class strings {
public const int first_string = 0xabc;
public const int second_string = 0xbcd;
}
}

You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main
to reference the layout/main.axml file, or R.strings.first_string to reference the first
string in the dictionary file values/strings.xml.
130 changes: 130 additions & 0 deletions movil/paisitas/Droid/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions movil/paisitas/Droid/Resources/layout/Main.axml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RadioGroup
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/radioGroupMotos">
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="Paisita 1"
android:id="@+id/radioButtonPaisita1" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Paisita 2"
android:id="@+id/radioPaisita2" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Paisita 3"
android:id="@+id/radioPaisita3" />
</RadioGroup>
<Button
android:text="Conectar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/buttonConectar" />
<Button
android:text="Desconectar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/buttonDesconectar" />
<TextView
android:text="Desconectado"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textViewEstado" />
</LinearLayout>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions movil/paisitas/Droid/Resources/values/Strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, Click Me!</string>
<string name="app_name">paisitas.Droid</string>
</resources>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added movil/paisitas/Droid/bin/Debug/System.dll.mdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added movil/paisitas/Droid/bin/Debug/mscorlib.dll.mdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// <autogenerated />
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute("MonoAndroid,Version=v6.0", FrameworkDisplayName = "")]
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions movil/paisitas/Droid/obj/Debug/acw-map.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
paisitas.Droid.MainActivity, paisitas.Droid;md541332169f054e2641c36a65905ba2fa9.MainActivity
paisitas.Droid.MainActivity, paisitas.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null;md541332169f054e2641c36a65905ba2fa9.MainActivity
paisitas.Droid.MainActivity;md541332169f054e2641c36a65905ba2fa9.MainActivity
paisitas.droid.MainActivity;md541332169f054e2641c36a65905ba2fa9.MainActivity
Loading

0 comments on commit c8146eb

Please sign in to comment.