Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. compileSdkVersion 25
  2. buildToolsVersion "25.0.2"
  3. defaultConfig {
  4. applicationId "tam.noc.nooctambulos"
  5. minSdkVersion 15
  6. targetSdkVersion 25
  7. multiDexEnabled = true
  8. vectorDrawables.useSupportLibrary = true
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. shrinkResources true
  16. minifyEnabled true
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21.  
  22. dependencies {
  23. compile fileTree(include: ['*.jar'], dir: 'libs')
  24. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  25. exclude group: 'com.android.support', module: 'support-annotations'
  26. })
  27. compile 'com.android.support:appcompat-v7:25.3.1'
  28. compile 'com.android.support:design:25.3.1'
  29. compile 'com.android.support:animated-vector-drawable:25.3.1'
  30. compile 'com.android.support:mediarouter-v7:25.3.1'
  31. compile 'com.android.support:customtabs:25.3.1'
  32. compile 'com.google.android.gms:play-services-fitness:10.2.1'
  33. compile 'com.google.firebase:firebase-ads:10.0.1'
  34. compile 'com.google.android.gms:play-services:10.2.1'
  35. compile 'com.android.support:multidex:1.0.1'
  36. compile 'com.google.android.gms:play-services-ads:10.2.1'
  37. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  38. testCompile 'junit:junit:4.12'
  39.  
  40. }
  41.  
  42. public class Primera extends AppCompatActivity {
  43. ImageButton mapa;
  44. ImageButton boliches;
  45. ImageButton contacto;
  46. ImageButton sugerencia;
  47. ImageButton previa;
  48. ImageView titulo;
  49. @Override
  50. protected void onCreate(Bundle savedInstanceState) {
  51. super.onCreate(savedInstanceState);
  52. setContentView(R.layout.activity_primera);
  53. //Boliches
  54. boliches = (ImageButton)findViewById(R.id.bolichesybaresbutton);
  55. boliches.setOnClickListener(new View.OnClickListener() {
  56. @Override
  57. public void onClick(View v) {
  58. Intent intent = new Intent(Primera.this, Boliches.class);
  59. startActivity(intent);
  60. }
  61. });
  62. //Titulo
  63. titulo = (ImageView) findViewById(R.id.titulo);
  64.  
  65. //Mapa
  66. mapa = (ImageButton) findViewById(R.id.mapabutton);
  67. mapa.setOnClickListener(new View.OnClickListener() {
  68. @Override
  69. public void onClick(View v) {
  70. Intent intent = new Intent(Primera.this, MapsActivity.class);
  71. startActivity(intent);
  72. }
  73. });
  74. //Contacto
  75. contacto = (ImageButton) findViewById(R.id.buttoncontacto);
  76. contacto.setOnClickListener(new View.OnClickListener() {
  77. @Override
  78. public void onClick(View v) {
  79. Intent intent = new Intent(Primera.this, Contacto.class);
  80. startActivity(intent);
  81. }
  82. });
  83. //Sugerencia
  84. sugerencia = (ImageButton)findViewById(R.id.buttonsugerencia);
  85. sugerencia.setOnClickListener(new View.OnClickListener() {
  86. @Override
  87. public void onClick(View v) {
  88. Intent intent = new Intent(Primera.this, Sugerencias.class);
  89. startActivity(intent);
  90. }
  91. });
  92.  
  93.  
  94. //Previa
  95. previa = (ImageButton)findViewById(R.id.buttonprevia);
  96. previa.setOnClickListener(new View.OnClickListener() {
  97. @Override
  98. public void onClick(View v) {
  99. Intent intent = new Intent(Primera.this, Previa.class);
  100. startActivity(intent);
  101. }
  102. });
  103.  
  104. }
  105.  
  106.  
  107. }
  108.  
  109. <?xml version="1.0" encoding="utf-8"?>
  110. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  111. package="tam.noc.nooctambulos">
  112.  
  113. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  114.  
  115. <application
  116. android:name="android.support.multidex.MultiDexApplication"
  117. android:allowBackup="true"
  118. android:icon="@mipmap/ic_launcher"
  119. android:label="@string/app_name"
  120. android:supportsRtl="true"
  121. android:theme="@style/AppTheme">
  122.  
  123. <meta-data
  124. android:name="com.google.android.geo.API_KEY"
  125. android:value="@string/google_maps_key" />
  126.  
  127. <activity
  128. android:name=".Primera"
  129. android:label="Noc"
  130. android:screenOrientation="portrait"
  131. android:theme="@style/AppTheme.NoActionBar" />
  132.  
  133. <activity
  134. android:name=".MapsActivity"
  135. android:label="@string/title_activity_maps"
  136. android:screenOrientation="portrait" />
  137. <activity
  138. android:name=".Boliches"
  139. android:label="@string/title_activity_boliches"
  140. android:screenOrientation="portrait"
  141. android:theme="@style/AppTheme.NoActionBar" />
  142. <activity
  143. android:name=".Contacto"
  144. android:label="@string/title_activity_contacto"
  145. android:screenOrientation="portrait"
  146. android:theme="@style/AppTheme.NoActionBar" />
  147. <activity
  148. android:name=".Sugerencias"
  149. android:label="@string/title_activity_sugerencias"
  150. android:screenOrientation="portrait"
  151. android:theme="@style/AppTheme.NoActionBar" />
  152. <activity
  153. android:name=".Previa"
  154. android:label="@string/title_activity_previa"
  155. android:screenOrientation="portrait"
  156. android:theme="@style/AppTheme.NoActionBar" />
  157. <activity
  158. android:name=".Splashsuper"
  159. android:label="Noctambulos"
  160. android:theme="@style/AppTheme.NoActionBar">
  161. <intent-filter>
  162. <action android:name="android.intent.action.MAIN" />
  163.  
  164. <category android:name="android.intent.category.LAUNCHER" />
  165. </intent-filter>
  166. </activity>
  167. <activity
  168. android:name=".juegos"
  169. android:label="@string/title_activity_juegos"
  170. android:theme="@style/AppTheme"
  171. android:screenOrientation="portrait"/>
  172. <activity
  173. android:name=".tragos"
  174. android:label="@string/title_activity_tragos"
  175. android:theme="@style/AppTheme"
  176. android:screenOrientation="portrait">
  177.  
  178. </activity>
  179. </application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement