From 1f0e84746bfad56c5e2758041f99f86ba34bc014 Mon Sep 17 00:00:00 2001
From: venkat <venkatganesh.1596@gmail.com>
Date: Sat, 22 Apr 2017 20:27:10 +0530
Subject: [PATCH] modification in the added new codes

---
 app/src/main/assets/INDEX.txt                 | 76 +++++++++----------
 app/src/main/assets/sample.txt                | 41 ++++++++--
 .../com/example/venkat/and/Disp_code.java     |  3 +
 .../java/com/example/venkat/and/Sample.java   |  2 +-
 4 files changed, 75 insertions(+), 47 deletions(-)

diff --git a/app/src/main/assets/INDEX.txt b/app/src/main/assets/INDEX.txt
index 6cf310d..c027fa3 100644
--- a/app/src/main/assets/INDEX.txt
+++ b/app/src/main/assets/INDEX.txt
@@ -53,76 +53,72 @@ sum of digits
 table of number
 00000027
 armstrong number
-00000028 
+00000028
 binary search
-00000029 
+00000029
 binary to decimal
-00000030 
+00000030
 bubble sort
-00000031 
+00000031
 bucket sort
-00000032 
+00000032
 calender
-00000033 
+00000033
 dictionary sort
-00000034 
+00000034
 divide_by_zero
-00000035 
+00000035
 dynamic memory allocation
-00000036 
+00000036
 exponent power series
-00000037 
+00000037
 factorial
-00000038 
-fibonacci
-00000039 
+00000038
+fibonacc
+00000039
 floyd's triangle
-00000040 
+00000040
 GCD
-00000041 
+00000041
 heap sort
-00000042 
+00000042
 insertion sort
-00000043 
+00000043
 inverse of a matrix
-00000044 
+00000044
 knapsack problem
-00000045 
+00000045
 LCM
-00000046 
+00000046
 magic square
-00000047 
+00000047
 matrix multiplication
-00000048 
+00000048
 merge sort
-00000049 
+00000049
 no of prime between a and b
-00000050 
+00000050
 octal to decimal
-00000051 
+00000051
 prims algorithms
-00000052 
+00000052
 radix sort
-00000053 
+00000053
 reverse a string
-00000054 
+00000054
 Root of a factorial
-00000055 
+00000055
 RSA agorithm
-00000056 
+00000056
 sequential search
-00000057 
+00000057
 singly linked list
-00000058 
+00000058
 standard deviation
-00000059 
+00000059
 tower of hanoi
-00000060 
+00000060
 transpose of a matrix
-00000061 
+00000061
 vowels_or_consonants
-00000062 
-
-
-
-
+00000062
\ No newline at end of file
diff --git a/app/src/main/assets/sample.txt b/app/src/main/assets/sample.txt
index 7f830b6..adbabbb 100644
--- a/app/src/main/assets/sample.txt
+++ b/app/src/main/assets/sample.txt
@@ -24,9 +24,38 @@ selection sort
 simple interest
 square root
 sum of digits
-table of number
-
-
-
-
-
+table of numberarmstrong number
+binary search
+binary to decimal
+bubble sort
+bucket sort
+calender
+dictionary sort
+divide_by_zero
+dynamic memory allocation
+exponent power series
+factorial
+fibonacci
+floyd's triangle
+GCD
+heap sort
+insertion sort
+inverse of a matrix
+knapsack problem
+LCM
+magic square
+matrix multiplication
+merge sort
+no of prime between a and b
+octal to decimal
+prims algorithms
+radix sort
+reverse a string
+Root of a factorial
+RSA agorithm
+sequential search
+singly linked list
+standard deviation
+tower of hanoi
+transpose of a matrix
+vowels_or_consonants
\ No newline at end of file
diff --git a/app/src/main/java/com/example/venkat/and/Disp_code.java b/app/src/main/java/com/example/venkat/and/Disp_code.java
index 17ab876..657e372 100644
--- a/app/src/main/java/com/example/venkat/and/Disp_code.java
+++ b/app/src/main/java/com/example/venkat/and/Disp_code.java
@@ -3,6 +3,7 @@ package com.example.venkat.and;
 import android.support.v7.app.AppCompatActivity;
 import android.os.Bundle;
 import android.widget.TextView;
+import android.widget.Toast;
 
 import java.io.BufferedReader;
 import java.io.IOException;
@@ -15,6 +16,7 @@ public class Disp_code extends AppCompatActivity {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_disp_code);
         String file = getIntent().getExtras().getString("file").toString();
+       // Toast.makeText(this,file, Toast.LENGTH_SHORT).show();
         //String file="INDEX.txt";
         if (file != "NOTHING.txt") {
             StringBuilder Sb;
@@ -38,6 +40,7 @@ public class Disp_code extends AppCompatActivity {
 
             } catch (IOException e) {
                 e.printStackTrace();
+                Toast.makeText(this, e.toString(), Toast.LENGTH_SHORT).show();
             }
         }
         else {
diff --git a/app/src/main/java/com/example/venkat/and/Sample.java b/app/src/main/java/com/example/venkat/and/Sample.java
index 1fbde45..a540bed 100644
--- a/app/src/main/java/com/example/venkat/and/Sample.java
+++ b/app/src/main/java/com/example/venkat/and/Sample.java
@@ -89,7 +89,7 @@ ListView listView=(ListView)findViewById(R.id.sample_list);
                     e.printStackTrace();
                 }
                 fl=fl+".txt";
-                Toast.makeText(Sample.this, fl, Toast.LENGTH_SHORT).show();
+                Toast.makeText(Sample.this, fl, Toast.LENGTH_LONG).show();
 
                 Intent i =new Intent(Sample.this,Disp_code.class);
                 i.putExtra("file",fl);
-- 
GitLab