Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.19 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3.  
  4.  
  5. List<String> dirs = [
  6. 'main', // main sample code; look here for the interesting stuff.
  7. 'common', // components that are reused by multiple samples
  8. 'template'] // boilerplate code that is generated by the sample template
  9. process
  10.  
  11.  
  12. repositories {
  13. mavenLocal()
  14. maven {
  15. url
  16. 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
  17. }
  18. }
  19.  
  20. android {
  21. signingConfigs {
  22. config {
  23. keyAlias 'key1'
  24. keyPassword 'Marcos&@*34134'
  25. storeFile file('C:/Users/marco/.android/debug.keystore')
  26. storePassword 'android'
  27. }
  28. }
  29. compileSdkVersion 27
  30. buildToolsVersion '27.0.3'
  31. defaultConfig {
  32. applicationId "net.panomaps"
  33. minSdkVersion 17
  34. targetSdkVersion 27
  35. versionCode 24
  36. versionName "5.2.5"
  37. multiDexEnabled true
  38. testInstrumentationRunner
  39. "android.support.test.runner.AndroidJUnitRunner"
  40. javaCompileOptions {
  41. annotationProcessorOptions {
  42. includeCompileClasspath true
  43. }
  44. }
  45. }
  46. compileOptions {
  47. sourceCompatibility JavaVersion.VERSION_1_8
  48. targetCompatibility JavaVersion.VERSION_1_8
  49. }
  50. buildTypes {
  51. release {
  52. minifyEnabled false
  53. proguardFiles getDefaultProguardFile('proguard-android.txt'),
  54. 'proguard-rules.pro'
  55. signingConfig signingConfigs.config
  56. debuggable false
  57. }
  58. debug {
  59. signingConfig signingConfigs.config
  60. debuggable true
  61. }
  62. }
  63. splits {
  64. // Screen density split settings
  65. density {
  66.  
  67. // Enable or disable the density split mechanism
  68. enable false
  69.  
  70. // Exclude these densities from splits
  71. exclude "ldpi", "tvdpi", "xxxhdpi", "400dpi", "560dpi"
  72. }
  73. }
  74. sourceSets {
  75. main {
  76. dirs.each { dir ->
  77. java.srcDirs "src/${dir}/java"
  78. res.srcDirs "src/${dir}/res"
  79. assets.srcDirs = ['src/main/assets/']
  80. }
  81. }
  82. androidTest.setRoot('tests')
  83. androidTest.java.srcDirs = ['tests/src']
  84.  
  85. }
  86. }
  87.  
  88.  
  89. dependencies {
  90. implementation 'com.google.firebase:firebase-core:11.8.0'
  91. compile fileTree(include: ['*.jar'], dir: 'libs')
  92. androidTestCompile('com.android.support.test.espresso:espresso-
  93. core:2.2.2',
  94. {
  95. exclude group: 'com.android.support', module: 'support-annotations'
  96. })
  97. compile 'com.android.support:appcompat-v7:27.0.3'
  98. compile 'com.android.support:support-v4:27.0.3'
  99. compile 'com.android.support:design:27.0.3'
  100. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  101. compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.7'
  102. testCompile 'junit:junit:4.12'
  103. compile 'com.google.android.gms:play-services-ads:11.8.0'
  104. compile 'com.squareup.picasso:picasso:2.5.2'
  105. compile 'com.facebook.android:facebook-android-sdk:4.28.0'
  106. compile 'com.jakewharton:butterknife:8.8.1'
  107. annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
  108. compile 'com.squareup.picasso:picasso:2.5.2'
  109. compile 'org.xwalk:xwalk_core_library:23.53.589.4'
  110. compile 'com.google.firebase:firebase-messaging:11.8.0'
  111. compile 'com.android.support:multidex:1.0.2'
  112. compile 'com.github.jgabrielfreitas:BlurImageView:1.0.1'
  113. }
  114.  
  115. configurations.all {
  116. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  117. def requested = details.requested
  118. if (requested.group == 'com.android.support') {
  119. if (!requested.name.startsWith("multidex")) {
  120. details.useVersion '27.0.3'
  121. }
  122. }
  123. }
  124. }
  125.  
  126. apply plugin: 'com.google.gms.google-services'
  127.  
  128. package net.panomaps;
  129.  
  130.  
  131. import android.annotation.SuppressLint;
  132. import android.content.Context;
  133. import android.content.DialogInterface;
  134. import android.content.Intent;
  135. import android.net.ConnectivityManager;
  136. import android.net.NetworkInfo;
  137. import android.net.Uri;
  138. import android.os.Bundle;
  139. import android.support.annotation.NonNull;
  140. import android.support.design.widget.NavigationView;
  141. import android.support.v4.view.GravityCompat;
  142. import android.support.v4.view.ViewPager;
  143. import android.support.v4.widget.DrawerLayout;
  144. import android.support.v7.app.ActionBarDrawerToggle;
  145. import android.support.v7.app.AlertDialog;
  146. import android.support.v7.app.AppCompatActivity;
  147. import android.support.v7.widget.Toolbar;
  148. import android.view.ContextThemeWrapper;
  149. import android.view.Menu;
  150. import android.view.MenuItem;
  151. import android.view.View;
  152. import android.widget.FrameLayout;
  153. import android.widget.ProgressBar;
  154.  
  155.  
  156. import net.panomaps.animation.CubeOutTransformer;
  157.  
  158. import org.xwalk.core.XWalkResourceClient;
  159. import org.xwalk.core.XWalkView;
  160.  
  161.  
  162. public class WebsiteActivity extends AppCompatActivity
  163. implements NavigationView.OnNavigationItemSelectedListener {
  164.  
  165. private ProgressBar progressbar;
  166. private FrameLayout frameLayout;
  167.  
  168. private XWalkView mXWalkView;
  169.  
  170. @SuppressLint({"SetJavaScriptEnabled", "JavascriptInterface"})
  171. @Override
  172. protected void onCreate(Bundle savedInstanceState) {
  173. super.onCreate(savedInstanceState);
  174. setContentView(R.layout.activity_website);
  175.  
  176. Toolbar toolbar = findViewById(R.id.toolbar);
  177. setSupportActionBar(toolbar);
  178.  
  179. DrawerLayout drawer = findViewById(R.id.drawer_layout);
  180. ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
  181. this, drawer, toolbar, R.string.navigation_drawer_open,
  182. R.string.navigation_drawer_close);
  183. drawer.addDrawerListener(toggle);
  184. toggle.syncState();
  185.  
  186. NavigationView navigationView = findViewById(R.id.nav_view);
  187. navigationView.setNavigationItemSelectedListener(this);
  188.  
  189.  
  190. frameLayout = findViewById(R.id.frameLayout);
  191. progressbar = findViewById(R.id.progressBar);
  192.  
  193. progressbar.setMax(100);
  194.  
  195.  
  196. mXWalkView = findViewById(R.id.activity_main);
  197.  
  198. mXWalkView.load("https://panomaps.net/", null);
  199.  
  200. mXWalkView.setResourceClient(new XWalkResourceClient(mXWalkView) {
  201. public void onProgressChanged(XWalkView view, int progress) {
  202. frameLayout.setVisibility(View.VISIBLE);
  203. progressbar.setProgress(progress);
  204.  
  205. setTitle("Carregando...");
  206.  
  207. if (progress == 100) {
  208. frameLayout.setVisibility(View.GONE);
  209. setTitle(view.getTitle());
  210. }
  211. super.onProgressChanged(view, progress);
  212. }
  213. });
  214.  
  215. progressbar.setProgress(0);
  216.  
  217. if (!haveNetworkConnection()) {
  218. android.app.AlertDialog.Builder Checkbuilder = new
  219. android.app.AlertDialog.Builder(WebsiteActivity.this);
  220. Checkbuilder.setMessage("Por favor conecte-se à internet!");
  221. android.app.AlertDialog alert = Checkbuilder.create();
  222. alert.show();
  223. } else {
  224. mXWalkView.load("https://panomaps.net/", null);
  225. }
  226. }
  227.  
  228. @Override
  229. public boolean onCreateOptionsMenu(Menu menu) {
  230. // Inflate the menu; this adds items to the action bar if it is present.
  231. getMenuInflater().inflate(R.menu.menu_main, menu);
  232. return true;
  233. }
  234.  
  235. @Override
  236. public boolean onOptionsItemSelected(MenuItem item) {
  237.  
  238. int id = item.getItemId();
  239.  
  240. if (id == R.id.action_settings) {
  241. mXWalkView.load("https://panomaps.net/", null);
  242.  
  243. } else if (id == R.id.nav_login) {
  244. mXWalkView.load("https://panomaps.net/login/", null);
  245.  
  246. } else if (id == R.id.nav_information) {
  247. startActivity(new Intent(getApplicationContext(),
  248. AboutActivity.class));
  249.  
  250. } else if (id == R.id.nav_exit) {
  251. finish();
  252. }
  253. return super.onOptionsItemSelected(item);
  254. }
  255.  
  256. @SuppressWarnings("StatementWithEmptyBody")
  257. @Override
  258. public boolean onNavigationItemSelected(@NonNull MenuItem item) {
  259. // Handle navigation view item clicks here.
  260. int id = item.getItemId();
  261.  
  262. if (id == R.id.nav_home) {
  263. mXWalkView.load("https://panomaps.net/", null);
  264.  
  265. } else if (id == R.id.nav_login) {
  266. mXWalkView.load("https://panomaps.net/login/", null);
  267.  
  268. } else if (id == R.id.nav_gallery) {
  269. startActivity(new Intent(getApplicationContext(),
  270. ImageSlideActivity.class));
  271.  
  272. } else if (id == R.id.nav_fanpage) {
  273. mXWalkView.load("https://www.facebook.com/panomaps/", null);
  274.  
  275.  
  276. } else if (id == R.id.nav_weather) {
  277. mXWalkView.load("http://tempo.clic.com.br/sp/panorama", null);
  278.  
  279. } else if (id == R.id.nav_share) {
  280. Intent intent = new Intent(Intent.ACTION_VIEW);
  281.  
  282. intent.setData(Uri.parse("https://play.google.com/store/apps/details?
  283. id=net.panomaps&hl=pt"));
  284. startActivity(intent);
  285.  
  286. } else if (id == R.id.nav_send) {
  287. Intent shareIntent = new Intent(Intent.ACTION_SEND);
  288. shareIntent.setType("text/plain");
  289. shareIntent.putExtra(Intent.EXTRA_TEXT, mXWalkView.getUrl());
  290. startActivity(Intent.createChooser(shareIntent, "Compartilhar esta
  291. página!"));
  292.  
  293. }
  294.  
  295. DrawerLayout drawer = findViewById(R.id.drawer_layout);
  296. drawer.closeDrawer(GravityCompat.START);
  297. return true;
  298.  
  299. }
  300.  
  301. private boolean haveNetworkConnection() {
  302. ConnectivityManager connectivityManager = (ConnectivityManager)
  303. this.getSystemService(Context.CONNECTIVITY_SERVICE);
  304. NetworkInfo activeNetworkInfo = connectivityManager != null ?
  305. connectivityManager.getActiveNetworkInfo() : null;
  306. return activeNetworkInfo != null;
  307.  
  308. }
  309.  
  310. @Override
  311. public void onBackPressed() {
  312. ContextThemeWrapper ctw = new ContextThemeWrapper(this,
  313. R.style.PanomapsTheme);
  314. AlertDialog.Builder builder = new AlertDialog.Builder(ctw);
  315. builder.setMessage("Deseja encerrar?")
  316. .setCancelable(false)
  317. .setPositiveButton("sim", new DialogInterface.OnClickListener()
  318. {
  319. public void onClick(DialogInterface dialog, int id) {
  320. finish();
  321. }
  322. })
  323. .setNegativeButton("Não", new DialogInterface.OnClickListener()
  324. {
  325. public void onClick(DialogInterface dialog, int id) {
  326. dialog.cancel();
  327. }
  328. });
  329. AlertDialog alert = builder.create();
  330. alert.show();
  331. }
  332.  
  333. @Override
  334. protected void onDestroy() {
  335. // TODO Auto-generated method stub
  336. super.onDestroy();
  337. }
  338.  
  339. //ImageSlideActivity Implements
  340.  
  341. public static class ImageSlideActivity extends AppCompatActivity
  342. implements NavigationView.OnNavigationItemSelectedListener {
  343.  
  344. private final String[] images = {
  345. "https://panomaps.net/wp-content/uploads/2017/11/pic1-min-
  346. e1511665172974.jpg",
  347. "https://panomaps.net/wp-content/uploads/2017/11/pic13-min-
  348. e1511665543863.jpg",
  349. "https://panomaps.net/wp-content/uploads/2017/11/pic12-min-
  350. e1511665681915.jpg",
  351. "https://panomaps.net/wp-content/uploads/2017/11/pic11-min-
  352. e1511665716274.jpg",
  353. "https://panomaps.net/wp-content/uploads/2017/11/pic10-min-
  354. e1511665753232.jpg",
  355. "https://panomaps.net/wp-content/uploads/2017/11/pic9-min-
  356. e1511665784493.jpg",
  357. "https://panomaps.net/wp-content/uploads/2017/11/pic7-min-
  358. e1511665817962.jpg",
  359. "https://panomaps.net/wp-content/uploads/2017/11/pic6-min-
  360. e1511665848764.jpg",
  361. "https://panomaps.net/wp-content/uploads/2017/11/pic5-min-
  362. e1511665877509.jpg",
  363. "https://panomaps.net/wp-content/uploads/2017/11/pic4-min-
  364. e1511665926431.jpg",
  365. "https://panomaps.net/wp-content/uploads/2017/11/pic3-min-
  366. e1511665957215.jpg",
  367. "https://panomaps.net/wp-content/uploads/2017/11/pic2-min-
  368. e1511665994140.jpg",
  369. "https://panomaps.net/wp-
  370. content/uploads/2017/09/17022399_1215986178514776_365023691170945603_n.jpg",
  371. "https://panomaps.net/wp-
  372. content/uploads/2017/09/13615136_999490856830977_3122419246868025328_n.jpg",
  373. "https://panomaps.net/wp-
  374. content/uploads/2017/09/17021825_1215986368514757_628206607650428811_n.jpg",
  375. "https://panomaps.net/wp-
  376. content/uploads/2017/09/pôr_do_sol.jpg",
  377. "https://panomaps.net/wp-
  378. content/uploads/2017/09/16700542_1205474846232576_706463914410140412_o.jpg",
  379. "https://panomaps.net/wp-
  380. content/uploads/2017/09/19983497_1352050591575000_363134732384405712_o.jpg",
  381. "https://panomaps.net/wp-content/uploads/2017/10/200_foto-
  382. aérea2.jpg",
  383. "https://panomaps.net/wp-
  384. content/uploads/2017/12/20170730_120143-e1512575761895.jpg",
  385. "https://panomaps.net/wp-
  386. content/uploads/2017/12/20170730_115518-e1512575775276.jpg",
  387. "https://panomaps.net/wp-
  388. content/uploads/2017/12/20170730_114940.jpg",
  389. "https://panomaps.net/wp-
  390. content/uploads/2017/12/20170730_114905-e1512575793297.jpg",
  391. "https://panomaps.net/wp-
  392. content/uploads/2017/12/20170730_113539-e1512575805899.jpg",
  393. "https://panomaps.net/wp-
  394. content/uploads/2017/12/20170730_113506-e1512575721978.jpg",
  395. };
  396.  
  397. @Override
  398. protected void onCreate(Bundle savedInstanceState) {
  399. super.onCreate(savedInstanceState);
  400. setContentView(R.layout.fragment_image_slider);
  401.  
  402. Toolbar toolbar = findViewById(R.id.toolbar);
  403. setSupportActionBar(toolbar);
  404.  
  405. DrawerLayout drawer = findViewById(R.id.drawer_layout);
  406. ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
  407. this, drawer, toolbar, R.string.navigation_drawer_open,
  408. R.string.navigation_drawer_close);
  409. drawer.addDrawerListener(toggle);
  410. toggle.syncState();
  411.  
  412. NavigationView navigationView = findViewById(R.id.nav_view);
  413. navigationView.setNavigationItemSelectedListener(this);
  414.  
  415. ViewPager viewPager = findViewById(R.id.viewPager);
  416. ViewPagerAdapter adapter = new
  417. ViewPagerAdapter(ImageSlideActivity.this, images);
  418. viewPager.setAdapter(adapter);
  419. viewPager.setPageTransformer(true, new CubeOutTransformer());
  420.  
  421. }
  422.  
  423. @Override
  424. public boolean onCreateOptionsMenu(Menu menu) {
  425. // Inflate the menu; this adds items to the action bar if it is
  426. present.
  427. getMenuInflater().inflate(R.menu.menu_main, menu);
  428. return true;
  429. }
  430.  
  431. @Override
  432. public boolean onOptionsItemSelected(MenuItem item) {
  433.  
  434. int id = item.getItemId();
  435.  
  436. if (id == R.id.action_settings) {
  437. Intent intent = new Intent(this, WebsiteActivity.class);
  438.  
  439. startActivity(intent.setData(Uri.parse("https://panomaps.net/")));
  440.  
  441.  
  442. } else if (id == R.id.nav_login) {
  443. Intent intent = new Intent(this, WebsiteActivity.class);
  444.  
  445. startActivity(intent.setData(Uri.parse("https://panomaps.net/login/")));
  446.  
  447.  
  448. } else if (id == R.id.nav_information) {
  449. startActivity(new Intent(getApplicationContext(),
  450. AboutActivity.class));
  451.  
  452. } else if (id == R.id.nav_exit) {
  453. finish();
  454. }
  455. return super.onOptionsItemSelected(item);
  456. }
  457.  
  458. @SuppressWarnings("StatementWithEmptyBody")
  459. @Override
  460. public boolean onNavigationItemSelected(@NonNull MenuItem item) {
  461. // Handle navigation view item clicks here.
  462. int id = item.getItemId();
  463.  
  464. if (id == R.id.nav_home) {
  465. Intent intent = new Intent(this, WebsiteActivity.class);
  466.  
  467. startActivity(intent.setData(Uri.parse("https://panomaps.net/")));
  468.  
  469.  
  470. } else if (id == R.id.nav_login) {
  471. Intent intent = new Intent(this, WebsiteActivity.class);
  472.  
  473. startActivity(intent.setData(Uri.parse("https://panomaps.net/login/")));
  474.  
  475.  
  476. } else if (id == R.id.nav_gallery) {
  477. startActivity(new Intent(getApplicationContext(),
  478. ImageSlideActivity.class));
  479.  
  480. } else if (id == R.id.nav_fanpage) {
  481. Intent intent = new Intent(this, WebsiteActivity.class);
  482. startActivity(intent.setData
  483. (Uri.parse("https://www.facebook.com/panomaps/")));
  484.  
  485. } else if (id == R.id.nav_weather) {
  486. Intent intent = new Intent(this, WebsiteActivity.class);
  487. startActivity(intent.setData(Uri.parse
  488. ("http://tempo.clic.com.br/sp/panorama")));
  489.  
  490. } else if (id == R.id.nav_share) {
  491. Intent intent = new Intent(Intent.ACTION_VIEW);
  492. startActivity(intent.setData(Uri.parse
  493. ("https://play.google.com/store/apps/details?id=net.panomaps&hl=pt")));
  494.  
  495. }
  496.  
  497. DrawerLayout drawer = findViewById(R.id.drawer_layout);
  498. drawer.closeDrawer(GravityCompat.START);
  499. return true;
  500. }
  501.  
  502. @Override
  503. public void onBackPressed() {
  504. super.onBackPressed();
  505. }
  506.  
  507. @Override
  508. protected void onDestroy() {
  509. // TODO Auto-generated method stub
  510. super.onDestroy();
  511. finish();
  512. }
  513. }
  514.  
  515. //AboutActivity Implements
  516.  
  517. public static class AboutActivity extends AppCompatActivity
  518. implements NavigationView.OnNavigationItemSelectedListener {
  519.  
  520. @Override
  521. protected void onCreate(Bundle savedInstanceState) {
  522. super.onCreate(savedInstanceState);
  523. setContentView(R.layout.about_fragment);
  524.  
  525.  
  526. Toolbar toolbar = findViewById(R.id.toolbar);
  527. setSupportActionBar(toolbar);
  528.  
  529. DrawerLayout drawer = findViewById(R.id.drawer_layout);
  530. ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
  531. this, drawer, toolbar, R.string.navigation_drawer_open,
  532. R.string.navigation_drawer_close);
  533. drawer.addDrawerListener(toggle);
  534. toggle.syncState();
  535.  
  536. NavigationView navigationView = findViewById(R.id.nav_view);
  537. navigationView.setNavigationItemSelectedListener(this);
  538.  
  539. Menu menu = navigationView.getMenu();
  540. MenuItem target = menu.findItem(R.id.nav_fanpage);
  541. target.setVisible(true);
  542.  
  543. menu = navigationView.getMenu();
  544. target = menu.findItem(R.id.nav_share);
  545. target.setVisible(true);
  546.  
  547. menu = navigationView.getMenu();
  548. target = menu.findItem(R.id.nav_send);
  549. target.setVisible(false);
  550.  
  551. }
  552.  
  553.  
  554. @Override
  555. public boolean onCreateOptionsMenu(Menu menu) {
  556. // Inflate the menu; this adds items to the action bar if it is
  557. present.
  558. getMenuInflater().inflate(R.menu.menu_main, menu);
  559. return true;
  560. }
  561.  
  562. @Override
  563. public boolean onOptionsItemSelected(MenuItem item) {
  564.  
  565. int id = item.getItemId();
  566.  
  567. if (id == R.id.action_settings) {
  568. Intent intent = new Intent(this, WebsiteActivity.class);
  569. startActivity(intent.setData(Uri.parse
  570. ("https://panomaps.net/")));
  571.  
  572.  
  573. } else if (id == R.id.nav_login) {
  574. Intent intent = new Intent(this, WebsiteActivity.class);
  575. startActivity(intent.setData(Uri.parse
  576. ("https://panomaps.net/login/")));
  577.  
  578.  
  579. } else if (id == R.id.nav_information) {
  580. startActivity(new Intent(getApplicationContext(),
  581. AboutActivity.class));
  582.  
  583. } else if (id == R.id.nav_exit) {
  584. finish();
  585. }
  586. return super.onOptionsItemSelected(item);
  587. }
  588.  
  589. @SuppressWarnings("StatementWithEmptyBody")
  590. @Override
  591. public boolean onNavigationItemSelected(@NonNull MenuItem item) {
  592. // Handle navigation view item clicks here.
  593. int id = item.getItemId();
  594.  
  595. if (id == R.id.nav_home) {
  596. Intent intent = new Intent(this, WebsiteActivity.class);
  597. startActivity(intent.setData(Uri.parse
  598. ("https://panomaps.net/")));
  599.  
  600.  
  601. } else if (id == R.id.nav_login) {
  602. Intent intent = new Intent(this, WebsiteActivity.class);
  603. startActivity(intent.setData(Uri.parse
  604. ("https://panomaps.net/login/")));
  605.  
  606.  
  607. } else if (id == R.id.nav_gallery) {
  608. startActivity(new Intent(getApplicationContext(),
  609. ImageSlideActivity.class));
  610.  
  611. } else if (id == R.id.nav_fanpage) {
  612. Intent intent = new Intent(this, WebsiteActivity.class);
  613. startActivity(intent.setData(Uri.parse
  614. ("https://www.facebook.com/panomaps/")));
  615.  
  616. } else if (id == R.id.nav_weather) {
  617. Intent intent = new Intent(this, WebsiteActivity.class);
  618. startActivity(intent.setData(Uri.parse
  619. ("http://tempo.clic.com.br/sp/panorama")));
  620.  
  621. } else if (id == R.id.nav_share) {
  622. Intent intent = new Intent(Intent.ACTION_VIEW);
  623.  
  624. startActivity(intent.setData
  625. (Uri.parse("https://play.google.com/store/apps/details?
  626. id=net.panomaps&hl=pt")));
  627.  
  628. }
  629.  
  630. DrawerLayout drawer = findViewById(R.id.drawer_layout);
  631. drawer.closeDrawer(GravityCompat.START);
  632. return true;
  633. }
  634.  
  635. @Override
  636. public void onBackPressed() {
  637. super.onBackPressed();
  638. }
  639.  
  640. @Override
  641. protected void onDestroy() {
  642. // TODO Auto-generated method stub
  643. super.onDestroy();
  644. finish();
  645. }
  646. }
  647. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement