Skip to content

Commit bbaae99

Browse files
committed
Servicios Web REST
1 parent 95a3d8f commit bbaae99

File tree

133 files changed

+92319
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+92319
-0
lines changed

android-ws-rest/AndroidManifest.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="net.sgoliver.android.rest"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="17" />
10+
<uses-permission android:name="android.permission.INTERNET"/>
11+
12+
<application
13+
android:allowBackup="true"
14+
android:icon="@drawable/ic_launcher"
15+
android:label="@string/app_name"
16+
android:theme="@style/AppTheme" >
17+
<activity
18+
android:name="net.sgoliver.android.rest.MainActivity"
19+
android:label="@string/app_name" >
20+
<intent-filter>
21+
<action android:name="android.intent.action.MAIN" />
22+
23+
<category android:name="android.intent.category.LAUNCHER" />
24+
</intent-filter>
25+
</activity>
26+
</application>
27+
28+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** Automatically generated file. DO NOT MODIFY */
2+
package net.sgoliver.android.rest;
3+
4+
public final class BuildConfig {
5+
public final static boolean DEBUG = true;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package net.sgoliver.android.rest;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class dimen {
14+
/** Default screen margins, per the Android Design guidelines.
15+
16+
Customize dimensions originally defined in res/values/dimens.xml (such as
17+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
18+
19+
*/
20+
public static final int activity_horizontal_margin=0x7f040000;
21+
public static final int activity_vertical_margin=0x7f040001;
22+
}
23+
public static final class drawable {
24+
public static final int ic_launcher=0x7f020000;
25+
}
26+
public static final class id {
27+
public static final int action_settings=0x7f080011;
28+
public static final int btnActualizar=0x7f08000b;
29+
public static final int btnEliminar=0x7f08000c;
30+
public static final int btnInsertar=0x7f08000a;
31+
public static final int btnListar=0x7f08000e;
32+
public static final int btnObtener=0x7f08000d;
33+
public static final int lblResultado=0x7f08000f;
34+
public static final int linearLayout1=0x7f080009;
35+
public static final int linearLayout2=0x7f080006;
36+
public static final int linearLayout3=0x7f080003;
37+
public static final int linearLayout4=0x7f080000;
38+
public static final int lstClientes=0x7f080010;
39+
public static final int textView2=0x7f080007;
40+
public static final int textView3=0x7f080004;
41+
public static final int textView4=0x7f080001;
42+
public static final int txtId=0x7f080002;
43+
public static final int txtNombre=0x7f080005;
44+
public static final int txtTelefono=0x7f080008;
45+
}
46+
public static final class layout {
47+
public static final int activity_main=0x7f030000;
48+
}
49+
public static final class menu {
50+
public static final int main=0x7f070000;
51+
}
52+
public static final class string {
53+
public static final int act=0x7f050007;
54+
public static final int action_settings=0x7f050001;
55+
public static final int app_name=0x7f050000;
56+
public static final int hello_world=0x7f050002;
57+
public static final int idcliente=0x7f050003;
58+
public static final int ins=0x7f050006;
59+
public static final int lis=0x7f050009;
60+
public static final int nombre=0x7f050004;
61+
public static final int obt=0x7f050008;
62+
public static final int telefono=0x7f050005;
63+
}
64+
public static final class style {
65+
/**
66+
Base application theme, dependent on API level. This theme is replaced
67+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
68+
69+
70+
Theme customizations available in newer API levels can go in
71+
res/values-vXX/styles.xml, while customizations related to
72+
backward-compatibility can go here.
73+
74+
75+
Base application theme for API 11+. This theme completely replaces
76+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
77+
78+
API 11 theme customizations can go here.
79+
80+
Base application theme for API 14+. This theme completely replaces
81+
AppBaseTheme from BOTH res/values/styles.xml and
82+
res/values-v11/styles.xml on API 14+ devices.
83+
84+
API 14 theme customizations can go here.
85+
*/
86+
public static final int AppBaseTheme=0x7f060000;
87+
/** Application theme.
88+
All customizations that are NOT specific to a particular API-level can go here.
89+
*/
90+
public static final int AppTheme=0x7f060001;
91+
}
92+
}

android-ws-rest/ic_launcher-web.png

50.2 KB
Loading
473 KB
Binary file not shown.

android-ws-rest/proguard-project.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}

android-ws-rest/project.properties

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-17
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:paddingBottom="@dimen/activity_vertical_margin"
6+
android:paddingLeft="@dimen/activity_horizontal_margin"
7+
android:paddingRight="@dimen/activity_horizontal_margin"
8+
android:paddingTop="@dimen/activity_vertical_margin"
9+
android:orientation="vertical"
10+
tools:context=".MainActivity" >
11+
12+
<LinearLayout
13+
android:id="@+id/linearLayout4"
14+
android:layout_width="match_parent"
15+
android:layout_height="wrap_content" >
16+
17+
<TextView
18+
android:id="@+id/textView4"
19+
android:layout_width="wrap_content"
20+
android:layout_height="wrap_content"
21+
android:text="@string/idcliente" />
22+
23+
<EditText
24+
android:id="@+id/txtId"
25+
android:layout_width="wrap_content"
26+
android:layout_height="wrap_content"
27+
android:layout_weight="1"
28+
android:inputType="number" >
29+
30+
<requestFocus />
31+
32+
</EditText>
33+
34+
</LinearLayout>
35+
36+
<LinearLayout
37+
android:id="@+id/linearLayout3"
38+
android:layout_width="match_parent"
39+
android:layout_height="wrap_content" >
40+
41+
<TextView
42+
android:id="@+id/textView3"
43+
android:layout_width="wrap_content"
44+
android:layout_height="wrap_content"
45+
android:text="@string/nombre" />
46+
47+
<EditText
48+
android:id="@+id/txtNombre"
49+
android:layout_width="wrap_content"
50+
android:layout_height="wrap_content"
51+
android:layout_weight="1"
52+
android:inputType="text" >
53+
54+
<requestFocus />
55+
</EditText>
56+
57+
</LinearLayout>
58+
59+
<LinearLayout
60+
android:id="@+id/linearLayout2"
61+
android:layout_width="match_parent"
62+
android:layout_height="wrap_content" >
63+
64+
<TextView
65+
android:id="@+id/textView2"
66+
android:layout_width="wrap_content"
67+
android:layout_height="wrap_content"
68+
android:text="@string/telefono" />
69+
70+
<EditText
71+
android:id="@+id/txtTelefono"
72+
android:layout_width="wrap_content"
73+
android:layout_height="wrap_content"
74+
android:layout_weight="1"
75+
android:inputType="number" >
76+
77+
<requestFocus />
78+
79+
</EditText>
80+
81+
</LinearLayout>
82+
83+
<LinearLayout
84+
android:id="@+id/linearLayout1"
85+
android:layout_width="match_parent"
86+
android:layout_height="wrap_content" >
87+
88+
<Button
89+
android:id="@+id/btnInsertar"
90+
android:layout_width="wrap_content"
91+
android:layout_height="wrap_content"
92+
android:text="@string/ins" />
93+
94+
<Button
95+
android:id="@+id/btnActualizar"
96+
android:layout_width="wrap_content"
97+
android:layout_height="wrap_content"
98+
android:text="@string/act" />
99+
100+
<Button
101+
android:id="@+id/btnEliminar"
102+
android:layout_width="wrap_content"
103+
android:layout_height="wrap_content"
104+
android:text="Eli" />
105+
106+
<Button
107+
android:id="@+id/btnObtener"
108+
android:layout_width="wrap_content"
109+
android:layout_height="wrap_content"
110+
android:text="@string/obt" />
111+
112+
<Button
113+
android:id="@+id/btnListar"
114+
android:layout_width="wrap_content"
115+
android:layout_height="wrap_content"
116+
android:text="@string/lis" />
117+
118+
</LinearLayout>
119+
120+
<TextView
121+
android:id="@+id/lblResultado"
122+
android:layout_width="wrap_content"
123+
android:layout_height="wrap_content"
124+
android:text="" />
125+
126+
<ListView
127+
android:id="@+id/lstClientes"
128+
android:layout_width="match_parent"
129+
android:layout_height="wrap_content" >
130+
</ListView>
131+
132+
</LinearLayout>

android-ws-rest/res/menu/main.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
2+
3+
<item
4+
android:id="@+id/action_settings"
5+
android:orderInCategory="100"
6+
android:showAsAction="never"
7+
android:title="@string/action_settings"/>
8+
9+
</menu>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<resources>
2+
3+
<!--
4+
Customize dimensions originally defined in res/values/dimens.xml (such as
5+
screen margins) for sw600dp devices (e.g. 7" tablets) here.
6+
-->
7+
8+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<resources>
2+
3+
<!--
4+
Customize dimensions originally defined in res/values/dimens.xml (such as
5+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
6+
-->
7+
<dimen name="activity_horizontal_margin">128dp</dimen>
8+
9+
</resources>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 11+. This theme completely replaces
5+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8+
<!-- API 11 theme customizations can go here. -->
9+
</style>
10+
11+
</resources>
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 14+. This theme completely replaces
5+
AppBaseTheme from BOTH res/values/styles.xml and
6+
res/values-v11/styles.xml on API 14+ devices.
7+
-->
8+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9+
<!-- API 14 theme customizations can go here. -->
10+
</style>
11+
12+
</resources>

android-ws-rest/res/values/dimens.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<resources>
2+
3+
<!-- Default screen margins, per the Android Design guidelines. -->
4+
<dimen name="activity_horizontal_margin">16dp</dimen>
5+
<dimen name="activity_vertical_margin">16dp</dimen>
6+
7+
</resources>
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">Android WS REST</string>
5+
<string name="action_settings">Settings</string>
6+
<string name="hello_world">Hello world!</string>
7+
<string name="idcliente">IdCliente</string>
8+
<string name="nombre">Nombre</string>
9+
<string name="telefono">Telefono</string>
10+
<string name="ins">Ins</string>
11+
<string name="act">Act</string>
12+
<string name="obt">Obt</string>
13+
<string name="lis">Lis</string>
14+
15+
</resources>

android-ws-rest/res/values/styles.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme, dependent on API level. This theme is replaced
5+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Light">
8+
<!--
9+
Theme customizations available in newer API levels can go in
10+
res/values-vXX/styles.xml, while customizations related to
11+
backward-compatibility can go here.
12+
-->
13+
</style>
14+
15+
<!-- Application theme. -->
16+
<style name="AppTheme" parent="AppBaseTheme">
17+
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
18+
</style>
19+
20+
</resources>

0 commit comments

Comments
 (0)