├── Files to be Placed on Server ├── 11.png.png ├── 12 - Copy.png ├── 12.png ├── 13.png ├── abc.html ├── alert.php ├── appetizers.json ├── appetizers │ ├── 1.png │ ├── 2.png │ └── 3.png ├── beverages.json ├── beverages.txt ├── beverages │ ├── 1.png │ ├── 2.png │ └── 3.png ├── clearcallentries.php ├── deletetable1.php ├── deletetable2.php ├── desserts.json ├── desserts │ ├── 1.png │ ├── 2.png │ └── 3.png ├── get.html ├── icon.png ├── load_data.php ├── maincourse.json ├── maincourse │ ├── 1.png │ ├── 2.png │ └── 3.png ├── rates.json ├── salad.json ├── salads │ ├── 1.png │ ├── 2.png │ └── 3.png ├── score.json ├── score.txt ├── score1.txt ├── soups.json ├── soups │ ├── 1.png │ ├── 2.png │ └── 3.png ├── table_call.php ├── temp2.php └── test.php ├── MenuApp_Android ├── .classpath ├── .project ├── AndroidManifest.xml ├── bin │ ├── Finalpro.apk │ ├── classes.dex │ ├── com │ │ └── project │ │ │ ├── Appetizers$Listener1.class │ │ │ ├── Appetizers$callwaiterListener.class │ │ │ ├── Appetizers$helpListener.class │ │ │ ├── Appetizers$homeListener.class │ │ │ ├── Appetizers$menuListener.class │ │ │ ├── Appetizers$orderListener.class │ │ │ ├── Appetizers.class │ │ │ ├── Beverages$Listener1.class │ │ │ ├── Beverages$callwaiterListener.class │ │ │ ├── Beverages$helpListener.class │ │ │ ├── Beverages$homeListener.class │ │ │ ├── Beverages$menuListener.class │ │ │ ├── Beverages$orderListener.class │ │ │ ├── Beverages.class │ │ │ ├── Dessert$Listener1.class │ │ │ ├── Dessert$callwaiterListener.class │ │ │ ├── Dessert$helpListener.class │ │ │ ├── Dessert$homeListener.class │ │ │ ├── Dessert$menuListener.class │ │ │ ├── Dessert$orderListener.class │ │ │ ├── Dessert.class │ │ │ ├── FinalOrder$callwaiterListener.class │ │ │ ├── FinalOrder$endListener.class │ │ │ ├── FinalOrder$helpListener.class │ │ │ ├── FinalOrder$homeListener.class │ │ │ ├── FinalOrder$menuListener.class │ │ │ ├── FinalOrder$orderListener.class │ │ │ ├── FinalOrder.class │ │ │ ├── First$homeListener.class │ │ │ ├── First.class │ │ │ ├── FoodDetails$addListener.class │ │ │ ├── FoodDetails$callwaiterListener.class │ │ │ ├── FoodDetails$helpListener.class │ │ │ ├── FoodDetails$homeListener.class │ │ │ ├── FoodDetails$menuListener.class │ │ │ ├── FoodDetails$orderListener.class │ │ │ ├── FoodDetails$qtyListener.class │ │ │ ├── FoodDetails.class │ │ │ ├── Help$callwaiterListener.class │ │ │ ├── Help$helpListener.class │ │ │ ├── Help$homeListener.class │ │ │ ├── Help$menuListener.class │ │ │ ├── Help$orderListener.class │ │ │ ├── Help.class │ │ │ ├── MainCourse$Listener1.class │ │ │ ├── MainCourse$callwaiterListener.class │ │ │ ├── MainCourse$helpListener.class │ │ │ ├── MainCourse$homeListener.class │ │ │ ├── MainCourse$menuListener.class │ │ │ ├── MainCourse$orderListener.class │ │ │ ├── MainCourse.class │ │ │ ├── Menu$appetizerListener.class │ │ │ ├── Menu$beveragesListener.class │ │ │ ├── Menu$callwaiterListener.class │ │ │ ├── Menu$dessertListener.class │ │ │ ├── Menu$helpListener.class │ │ │ ├── Menu$homeListener.class │ │ │ ├── Menu$maincourseListener.class │ │ │ ├── Menu$menuListener.class │ │ │ ├── Menu$orderListener.class │ │ │ ├── Menu$saladListener.class │ │ │ ├── Menu$soupsListener.class │ │ │ ├── Menu.class │ │ │ ├── R$attr.class │ │ │ ├── R$drawable.class │ │ │ ├── R$id.class │ │ │ ├── R$layout.class │ │ │ ├── R$string.class │ │ │ ├── R.class │ │ │ ├── Salad$Listener1.class │ │ │ ├── Salad$callwaiterListener.class │ │ │ ├── Salad$helpListener.class │ │ │ ├── Salad$homeListener.class │ │ │ ├── Salad$menuListener.class │ │ │ ├── Salad$orderListener.class │ │ │ ├── Salad.class │ │ │ ├── Soups$Listener1.class │ │ │ ├── Soups$callwaiterListener.class │ │ │ ├── Soups$helpListener.class │ │ │ ├── Soups$homeListener.class │ │ │ ├── Soups$menuListener.class │ │ │ ├── Soups$orderListener.class │ │ │ ├── Soups.class │ │ │ ├── ViewOrder$callwaiterListener.class │ │ │ ├── ViewOrder$confirmListener.class │ │ │ ├── ViewOrder$helpListener.class │ │ │ ├── ViewOrder$homeListener.class │ │ │ ├── ViewOrder$lissListener$1.class │ │ │ ├── ViewOrder$lissListener$2.class │ │ │ ├── ViewOrder$lissListener$3.class │ │ │ ├── ViewOrder$lissListener.class │ │ │ ├── ViewOrder$menuListener.class │ │ │ ├── ViewOrder$orderListener.class │ │ │ ├── ViewOrder.class │ │ │ ├── main$callwaiterListener.class │ │ │ ├── main$helpListener.class │ │ │ ├── main$homeListener.class │ │ │ ├── main$menuListener.class │ │ │ ├── main$orderListener.class │ │ │ ├── main.class │ │ │ ├── menuadapter$ViewHolder.class │ │ │ ├── menuadapter.class │ │ │ ├── menulist.class │ │ │ ├── menulist1.class │ │ │ ├── orderadapter$ViewHolder.class │ │ │ ├── orderadapter.class │ │ │ └── test.class │ └── resources.ap_ ├── default.properties ├── gen │ └── com │ │ └── project │ │ └── R.java ├── proguard.cfg ├── res │ ├── drawable-hdpi │ │ ├── appetizers.jpg │ │ ├── appetizers1.jpg │ │ ├── beverages.jpg │ │ ├── beverages1.jpg │ │ ├── button_salads.jpg │ │ ├── call_waiterbutton.jpg │ │ ├── confirm_button.jpg │ │ ├── dessert.jpg │ │ ├── desserts.jpg │ │ ├── endsession.jpg │ │ ├── first.jpg │ │ ├── header.png │ │ ├── helpbutton.jpg │ │ ├── homebutton.jpg │ │ ├── icon.png │ │ ├── main_course.JPG │ │ ├── maincourse.jpg │ │ ├── maincourse1.jpg │ │ ├── menubutton.jpg │ │ ├── menupic.jpg │ │ ├── newpic1.jpg │ │ ├── salads.jpg │ │ ├── soups.jpg │ │ ├── soups1.jpg │ │ └── view_orderbutton.jpg │ ├── drawable-ldpi │ │ ├── icon.png │ │ ├── imagenotfound.gif │ │ └── noimage.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── layout │ │ ├── finalorder.xml │ │ ├── first.xml │ │ ├── fooddetails.xml │ │ ├── help.xml │ │ ├── lview.xml │ │ ├── main.xml │ │ ├── menu.xml │ │ ├── menulist.xml │ │ ├── menulist1.xml │ │ └── vieworder.xml │ └── values │ │ └── strings.xml └── src │ └── com │ └── project │ ├── Appetizers.java │ ├── Beverages.java │ ├── Dessert.java │ ├── FinalOrder.java │ ├── First.java │ ├── FoodDetails.java │ ├── Help.java │ ├── MainCourse.java │ ├── Menu.java │ ├── Salad.java │ ├── Soups.java │ ├── ViewOrder.java │ ├── main.java │ ├── menuadapter.java │ ├── menulist.java │ ├── menulist1.java │ ├── orderadapter.java │ └── test.java ├── Project_Snapshot └── Menu Replacement │ ├── 1_Splash_Screen.PNG │ ├── 2_.PNG │ ├── 3_Main_Menu.PNG │ ├── 4_Beverages_Menu.PNG │ ├── 5_OnItemClick.PNG │ ├── 6_View_Order.PNG │ └── 7_On_Order_Confirm.PNG └── README.md /Files to be Placed on Server/11.png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/11.png.png -------------------------------------------------------------------------------- /Files to be Placed on Server/12 - Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/12 - Copy.png -------------------------------------------------------------------------------- /Files to be Placed on Server/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/12.png -------------------------------------------------------------------------------- /Files to be Placed on Server/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/13.png -------------------------------------------------------------------------------- /Files to be Placed on Server/abc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | Name: 6 | Qty: 7 | 8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /Files to be Placed on Server/alert.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Files to be Placed on Server/appetizers.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Prawn" 7 | }, 8 | 9 | { 10 | "ingredient" : "Paneerygf" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish1" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Paneer Chilly", 21 | "description" : "Fried paneer pieces in chilly gravy", 22 | "rating" : "4", 23 | "price" : "100", 24 | "cooktime" : "20 mins", 25 | "ingredients" : [ 26 | {"ingredient":"Paneer"} 27 | ] 28 | }, 29 | 30 | { 31 | "name" : "Prawn Stuff Papad", 32 | "description" : "Papad stuffed with prawns and spices", 33 | "rating" : "3", 34 | "price" : "150", 35 | "cooktime" : "25 mins", 36 | "ingredients" : [ 37 | {"ingredient":"Prawn"} 38 | ] 39 | }, 40 | 41 | { 42 | "name" : "Fish Chilly", 43 | "description" : "Fired fish fillets with chilly gravy", 44 | "rating" : "3", 45 | "price" : "175", 46 | "cooktime" : "25 mins", 47 | "ingredients" : [ 48 | {"ingredient":"Fish"} 49 | ] 50 | } 51 | 52 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/appetizers/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/appetizers/1.png -------------------------------------------------------------------------------- /Files to be Placed on Server/appetizers/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/appetizers/2.png -------------------------------------------------------------------------------- /Files to be Placed on Server/appetizers/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/appetizers/3.png -------------------------------------------------------------------------------- /Files to be Placed on Server/beverages.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fish" 7 | }, 8 | 9 | { 10 | "ingredient" : "Coke3" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish2" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Coke", 21 | "description" : "Chilled Coca Cola", 22 | "rating" : "4", 23 | "price" : "100", 24 | "cooktime" : "1 mins", 25 | "ingredients" : [ 26 | {"ingredient":"Coke"} 27 | ] 28 | }, 29 | 30 | { 31 | "name" : "Ice Tea", 32 | "description" : "Lemon Ice tea", 33 | "rating" : "5", 34 | "price" : "100", 35 | "cooktime" : "10 mins", 36 | "ingredients" : [ 37 | {"ingredient":"Tea"} 38 | ] 39 | }, 40 | 41 | { 42 | "name" : "Beer", 43 | "description" : "KingFisher premium beer", 44 | "rating" : "5", 45 | "price" : "100", 46 | "cooktime" : "5 mins", 47 | "ingredients" : [ 48 | {"ingredient":"Beer"} 49 | ] 50 | } 51 | 52 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/beverages.txt: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fish" 7 | }, 8 | 9 | { 10 | "ingredient" : "Coke3" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish2" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Coke", 21 | "description" : "Liverpool", 22 | "rating" : "4", 23 | "price" : "100", 24 | "cooktime" : "1 mins", 25 | "ingredients" : [ 26 | {"ingredient":"Coke"} 27 | ] 28 | }, 29 | 30 | { 31 | "name" : "Ice Tea", 32 | "description" : "Manchester United", 33 | "rating" : "5", 34 | "price" : "100", 35 | "cooktime" : "10 mins", 36 | "ingredients" : [ 37 | {"ingredient":"Tea"} 38 | ] 39 | }, 40 | 41 | { 42 | "name" : "Beer", 43 | "description" : "Manchester City", 44 | "rating" : "5", 45 | "price" : "100", 46 | "cooktime" : "5 mins", 47 | "ingredients" : [ 48 | {"ingredient":"Beer"} 49 | ] 50 | } 51 | 52 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/beverages/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/beverages/1.png -------------------------------------------------------------------------------- /Files to be Placed on Server/beverages/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/beverages/2.png -------------------------------------------------------------------------------- /Files to be Placed on Server/beverages/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/beverages/3.png -------------------------------------------------------------------------------- /Files to be Placed on Server/clearcallentries.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Files to be Placed on Server/deletetable1.php: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /Files to be Placed on Server/deletetable2.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Files to be Placed on Server/desserts.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fish" 7 | }, 8 | 9 | { 10 | "ingredient" : "Fish1" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish2" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Gulab Jamun", 21 | "description" : "Hot gulab jamun", 22 | "rating" : "4", 23 | "price" : "50", 24 | "cooktime" : "20 mins", 25 | "ingredients" : [ 26 | ] 27 | }, 28 | 29 | { 30 | "name" : "Ice Cream", 31 | "description" : "Chilled ice cream", 32 | "rating" : "3", 33 | "price" : "100", 34 | "cooktime" : "5 mins", 35 | "ingredients" : [ 36 | ] 37 | }, 38 | 39 | { 40 | "name" : "Dutch Truffle Pastry", 41 | "description" : "Awesome pastry", 42 | "rating" : "5", 43 | "price" : "100", 44 | "cooktime" : "5 mins", 45 | "ingredients" : [ 46 | ] 47 | } 48 | 49 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/desserts/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/desserts/1.png -------------------------------------------------------------------------------- /Files to be Placed on Server/desserts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/desserts/2.png -------------------------------------------------------------------------------- /Files to be Placed on Server/desserts/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/desserts/3.png -------------------------------------------------------------------------------- /Files to be Placed on Server/get.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
Display the output on the screen
13 | 14 | 15 | 16 |

Http Get Link

17 | 18 | 19 | -------------------------------------------------------------------------------- /Files to be Placed on Server/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/icon.png -------------------------------------------------------------------------------- /Files to be Placed on Server/load_data.php: -------------------------------------------------------------------------------- 1 | 2 | Table Number 1 Order "; 13 | echo "
"; 14 | echo "
"; 15 | while($row = mysql_fetch_array($result)) 16 | { 17 | echo $row['name'] . " " . $row['qty']." ".$row['price']; 18 | echo "
"; 19 | } 20 | ?> 21 | 22 |
23 |
24 | 25 |
26 | 27 | "; 29 | echo "
"; 30 | echo "
"; 31 | echo "Table Num 2 Order"; 32 | echo "
"; 33 | echo "
"; 34 | $result = mysql_query("SELECT * FROM table2"); 35 | 36 | while($row = mysql_fetch_array($result)) 37 | { 38 | echo $row['name'] . " " . $row['qty']." ".$row['price']; 39 | echo "
"; 40 | } 41 | 42 | ?> 43 | 44 |
45 |
46 | 47 |
48 | 49 | 50 | "; 52 | echo "Total Order"; 53 | mysql_query("Truncate forder"); 54 | $row1 = mysql_query("INSERT INTO forder(name, qty, price) SELECT name, qty, price FROM items UNION SELECT name, qty, price FROM table2"); 55 | $result = mysql_query("SELECT name, sum( qty ) As tot_qty , name FROM forder GROUP BY name"); 56 | while($row = mysql_fetch_array($result)) 57 | { 58 | echo ""; 59 | echo ""; 60 | echo ""; 61 | echo ""; 62 | echo "
".$row['tot_qty']."".$row['name']."
"; 63 | echo "
"; 64 | } 65 | mysql_close($con); 66 | -------------------------------------------------------------------------------- /Files to be Placed on Server/maincourse.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fisah" 7 | }, 8 | 9 | { 10 | "ingredient" : "Fish1" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish1" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Paneer Pasanda", 21 | "description" : "Paneer pieces in sweet gravy", 22 | "rating" : "4", 23 | "price" : "100", 24 | "cooktime" : "20 mins", 25 | "ingredients" : [ 26 | {"ingredient":"Paneer"} 27 | ] 28 | }, 29 | 30 | { 31 | "name" : "Chicken Steak", 32 | "description" : "Chicken Steak.....", 33 | "rating" : "3", 34 | "price" : "100", 35 | "cooktime" : "25 mins", 36 | "ingredients" : [ 37 | {"ingredient":"Chicken"} 38 | ] 39 | }, 40 | 41 | { 42 | "name" : "Fish Lobster Mix", 43 | "description" : "Fish and lobster mixed in gravy", 44 | "rating" : "3", 45 | "price" : "100", 46 | "cooktime" : "25 mins", 47 | "ingredients" : [ 48 | {"ingredient":"Fish"} 49 | ] 50 | } 51 | 52 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/maincourse/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/maincourse/1.png -------------------------------------------------------------------------------- /Files to be Placed on Server/maincourse/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/maincourse/2.png -------------------------------------------------------------------------------- /Files to be Placed on Server/maincourse/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/maincourse/3.png -------------------------------------------------------------------------------- /Files to be Placed on Server/rates.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "discount" : "10", 4 | "tax" : "12.5" 5 | } 6 | 7 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/salad.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fisah" 7 | }, 8 | 9 | { 10 | "ingredient" : "Fish1" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish2" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Mexican Salad", 21 | "description" : "Mayonaesse salad", 22 | "rating" : "4", 23 | "price" : "50", 24 | "cooktime" : "20 mins", 25 | "ingredients" : [ 26 | ] 27 | }, 28 | 29 | { 30 | "name" : "Chinese Salad", 31 | "description" : "Salad with chinese chilly", 32 | "rating" : "3", 33 | "price" : "100", 34 | "cooktime" : "5 mins", 35 | "ingredients" : [ 36 | ] 37 | }, 38 | 39 | { 40 | "name" : "French Salad", 41 | "description" : "French type salad", 42 | "rating" : "5", 43 | "price" : "100", 44 | "cooktime" : "5 mins", 45 | "ingredients" : [ 46 | ] 47 | } 48 | 49 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/salads/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/salads/1.png -------------------------------------------------------------------------------- /Files to be Placed on Server/salads/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/salads/2.png -------------------------------------------------------------------------------- /Files to be Placed on Server/salads/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/salads/3.png -------------------------------------------------------------------------------- /Files to be Placed on Server/score.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fish" 7 | }, 8 | 9 | { 10 | "ingredient" : "Fish1" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish1" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Paneer Chilly", 21 | "description" : "Liverpool", 22 | "rating" : "4", 23 | "cooktime" : "20 mins", 24 | "ingredients" : "Paneer" 25 | }, 26 | 27 | { 28 | "name" : "Chicken Chilly", 29 | "description" : "Manchester United", 30 | "rating" : "3", 31 | "cooktime" : "25 mins", 32 | "ingredients" : "Chicken" 33 | }, 34 | 35 | { 36 | "name" : "Fish Chilly", 37 | "description" : "Manchester City", 38 | "rating" : "3", 39 | "cooktime" : "25 mins", 40 | "ingredients" : "Fish" 41 | } 42 | 43 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/score.txt: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | { 4 | "ingredients" : "Fish" 5 | } 6 | 7 | 8 | { 9 | "name" : "Item1", 10 | "description" : "Liverpool", 11 | "rating" : "1", 12 | "cook time" : "10 mins", 13 | "ingredients" : "Fish" 14 | }, 15 | 16 | { 17 | "name" : "Item2", 18 | "description" : "Liverpool", 19 | "rating" : "1", 20 | "cook time" : "10 mins", 21 | "ingredients" : "Dal" 22 | } 23 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/score1.txt: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | 4 | { 5 | "matchid" : "Match 1", 6 | "team1" : 7 | { 8 | "teamname" : "Tottenham Hotspur", 9 | "score" : "1", 10 | "manager" : "Harry Redknapp", 11 | "yellowcards" : "Gareth Bale, Scott Parker", 12 | "redcards" : "" 13 | }, 14 | "team2" : 15 | { 16 | 17 | "teamname" : "Arsenal", 18 | "score" : "1", 19 | "manager" : "Arsene Wenger", 20 | "yellowcards" : "Gervinho, Song, Theo Walcott", 21 | "redcards" : "Robin van Persie" 22 | }, 23 | "timeleft" : "34.22", 24 | "stadium" : "Emirates" 25 | }, 26 | 27 | { 28 | "matchid" : "Match 2", 29 | "team1" : 30 | { 31 | "teamname" : "Manchester United", 32 | "score" : "5", 33 | "manager" : "Sir Alex Ferguson", 34 | "yellowcards" : "Ryan Giggs, Valencia", 35 | "redcards" : "Wayne Rooney, Ferdinand, Vidic, Evra, Ashley Young" 36 | }, 37 | "team2" : 38 | { 39 | 40 | "teamname" : "Manchester City", 41 | "score" : "0", 42 | "manager" : "Roberto Mancini", 43 | "yellowcards" : "Joe Hart, Silva, Edin Dzeko", 44 | "redcards" : "Mario Balotelli" 45 | }, 46 | "timeleft" : "4.23", 47 | "stadium" : "Old Trafford" 48 | }, 49 | 50 | { 51 | "matchid" : "Match 3", 52 | "team1" : 53 | { 54 | "teamname" : "Liverpool", 55 | "score" : "1", 56 | "manager" : "Kenny Daglish", 57 | "yellowcards" : "Charlie Adam, Lucas Leiva", 58 | "redcards" : "Andy Carrol" 59 | }, 60 | "team2" : 61 | { 62 | 63 | "teamname" : "Chelsea", 64 | "score" : "1", 65 | "manager" : "Andre Villas Boas", 66 | "yellowcards" : "", 67 | "redcards" : "Frank Lampard" 68 | }, 69 | "timeleft" : "34.22", 70 | "stadium" : "Anfield" 71 | } 72 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/soups.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "unavailable" : 4 | [ 5 | { 6 | "ingredient" : "Fishygh" 7 | }, 8 | 9 | { 10 | "ingredient" : "Chaicken" 11 | }, 12 | 13 | { 14 | "ingredient" : "Fish1" 15 | } 16 | ] 17 | }, 18 | 19 | { 20 | "name" : "Sweet Corn Soup", 21 | "description" : "Sweet corn soup", 22 | "rating" : "4", 23 | "price" : "100", 24 | "cooktime" : "20 mins", 25 | "ingredients" : [ 26 | {"ingredient":"Corn"} 27 | ] 28 | }, 29 | 30 | { 31 | "name" : "Fish Stew Soup", 32 | "description" : "Fish stew soup", 33 | "rating" : "3", 34 | "price" : "100", 35 | "cooktime" : "25 mins", 36 | "ingredients" : [ 37 | {"ingredient":"Fish"} 38 | ] 39 | }, 40 | 41 | { 42 | "name" : "Veg Soup", 43 | "description" : "Vegetable soup", 44 | "rating" : "3", 45 | "price" : "100", 46 | "cooktime" : "25 mins", 47 | "ingredients" : [ 48 | ] 49 | } 50 | 51 | ] -------------------------------------------------------------------------------- /Files to be Placed on Server/soups/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/soups/1.png -------------------------------------------------------------------------------- /Files to be Placed on Server/soups/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/soups/2.png -------------------------------------------------------------------------------- /Files to be Placed on Server/soups/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/Files to be Placed on Server/soups/3.png -------------------------------------------------------------------------------- /Files to be Placed on Server/table_call.php: -------------------------------------------------------------------------------- 1 | 2 | "; 16 | } 17 | mysql_close($con); 18 | ?> 19 | 20 |
21 |
22 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /Files to be Placed on Server/temp2.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Files to be Placed on Server/test.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /MenuApp_Android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MenuApp_Android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Finalpro 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /MenuApp_Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /MenuApp_Android/bin/Finalpro.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/Finalpro.apk -------------------------------------------------------------------------------- /MenuApp_Android/bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/classes.dex -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers$Listener1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers$Listener1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Appetizers.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Appetizers.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages$Listener1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages$Listener1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Beverages.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Beverages.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert$Listener1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert$Listener1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Dessert.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Dessert.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder$endListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder$endListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FinalOrder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FinalOrder.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/First$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/First$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/First.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/First.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$addListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$addListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails$qtyListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails$qtyListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/FoodDetails.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/FoodDetails.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Help$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Help$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Help$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Help$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Help$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Help$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Help$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Help$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Help$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Help$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Help.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Help.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse$Listener1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse$Listener1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/MainCourse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/MainCourse.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$appetizerListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$appetizerListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$beveragesListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$beveragesListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$dessertListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$dessertListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$maincourseListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$maincourseListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$saladListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$saladListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu$soupsListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu$soupsListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Menu.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Menu.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/R$attr.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/R$drawable.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/R$id.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/R$layout.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/R$string.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/R.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad$Listener1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad$Listener1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Salad.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Salad.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups$Listener1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups$Listener1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/Soups.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/Soups.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$confirmListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$confirmListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$lissListener$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$lissListener$1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$lissListener$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$lissListener$2.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$lissListener$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$lissListener$3.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$lissListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$lissListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/ViewOrder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/ViewOrder.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/main$callwaiterListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/main$callwaiterListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/main$helpListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/main$helpListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/main$homeListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/main$homeListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/main$menuListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/main$menuListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/main$orderListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/main$orderListener.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/main.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/menuadapter$ViewHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/menuadapter$ViewHolder.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/menuadapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/menuadapter.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/menulist.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/menulist.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/menulist1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/menulist1.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/orderadapter$ViewHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/orderadapter$ViewHolder.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/orderadapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/orderadapter.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/com/project/test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/com/project/test.class -------------------------------------------------------------------------------- /MenuApp_Android/bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/bin/resources.ap_ -------------------------------------------------------------------------------- /MenuApp_Android/default.properties: -------------------------------------------------------------------------------- 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 use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=Samsung Electronics Co., Ltd.:GALAXY Tab Addon:8 12 | -------------------------------------------------------------------------------- /MenuApp_Android/gen/com/project/R.java: -------------------------------------------------------------------------------- 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 com.project; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class drawable { 14 | public static final int appetizers=0x7f020000; 15 | public static final int appetizers1=0x7f020001; 16 | public static final int beverages=0x7f020002; 17 | public static final int beverages1=0x7f020003; 18 | public static final int button_salads=0x7f020004; 19 | public static final int call_waiterbutton=0x7f020005; 20 | public static final int confirm_button=0x7f020006; 21 | public static final int dessert=0x7f020007; 22 | public static final int desserts=0x7f020008; 23 | public static final int endsession=0x7f020009; 24 | public static final int first=0x7f02000a; 25 | public static final int header=0x7f02000b; 26 | public static final int helpbutton=0x7f02000c; 27 | public static final int homebutton=0x7f02000d; 28 | public static final int icon=0x7f02000e; 29 | public static final int imagenotfound=0x7f02000f; 30 | public static final int main_course=0x7f020010; 31 | public static final int maincourse=0x7f020011; 32 | public static final int maincourse1=0x7f020012; 33 | public static final int menubutton=0x7f020013; 34 | public static final int menupic=0x7f020014; 35 | public static final int newpic1=0x7f020015; 36 | public static final int noimage=0x7f020016; 37 | public static final int salads=0x7f020017; 38 | public static final int soups=0x7f020018; 39 | public static final int soups1=0x7f020019; 40 | public static final int view_orderbutton=0x7f02001a; 41 | } 42 | public static final class id { 43 | public static final int AbsoluteLayout01=0x7f050000; 44 | public static final int Button01=0x7f050006; 45 | public static final int Button02=0x7f050007; 46 | public static final int Button03=0x7f050008; 47 | public static final int Button04=0x7f05000a; 48 | public static final int Button05=0x7f050009; 49 | public static final int Button06=0x7f05000d; 50 | public static final int Button07=0x7f05001e; 51 | public static final int Button08=0x7f05001f; 52 | public static final int Button09=0x7f050021; 53 | public static final int Button10=0x7f050022; 54 | public static final int Button11=0x7f050023; 55 | public static final int EditText01=0x7f05001a; 56 | public static final int ImageView01=0x7f050011; 57 | public static final int ImageView02=0x7f050012; 58 | public static final int LinearLayout01=0x7f050001; 59 | public static final int LinearLayout02=0x7f050003; 60 | public static final int LinearLayout03=0x7f05000b; 61 | public static final int LinearLayout04=0x7f050013; 62 | public static final int LinearLayout05=0x7f050020; 63 | public static final int ListView01=0x7f05000c; 64 | public static final int TextView001=0x7f050004; 65 | public static final int TextView003=0x7f050005; 66 | public static final int TextView01=0x7f050002; 67 | public static final int TextView02=0x7f05000f; 68 | public static final int TextView03=0x7f050010; 69 | public static final int TextView04=0x7f05000e; 70 | public static final int TextView05=0x7f050014; 71 | public static final int TextView06=0x7f050015; 72 | public static final int TextView105=0x7f050016; 73 | public static final int TextView205=0x7f050017; 74 | public static final int TextView305=0x7f050018; 75 | public static final int TextView405=0x7f050019; 76 | public static final int description=0x7f05001c; 77 | public static final int menu=0x7f050024; 78 | public static final int name=0x7f05001b; 79 | public static final int price=0x7f05001d; 80 | } 81 | public static final class layout { 82 | public static final int finalorder=0x7f030000; 83 | public static final int first=0x7f030001; 84 | public static final int fooddetails=0x7f030002; 85 | public static final int help=0x7f030003; 86 | public static final int lview=0x7f030004; 87 | public static final int main=0x7f030005; 88 | public static final int menu=0x7f030006; 89 | public static final int menulist=0x7f030007; 90 | public static final int menulist1=0x7f030008; 91 | public static final int vieworder=0x7f030009; 92 | } 93 | public static final class string { 94 | public static final int app_name=0x7f040001; 95 | public static final int hello=0x7f040000; 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /MenuApp_Android/proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class com.android.vending.licensing.ILicensingService 14 | 15 | -keepclasseswithmembernames class * { 16 | native ; 17 | } 18 | 19 | -keepclasseswithmembernames class * { 20 | public (android.content.Context, android.util.AttributeSet); 21 | } 22 | 23 | -keepclasseswithmembernames class * { 24 | public (android.content.Context, android.util.AttributeSet, int); 25 | } 26 | 27 | -keepclassmembers enum * { 28 | public static **[] values(); 29 | public static ** valueOf(java.lang.String); 30 | } 31 | 32 | -keep class * implements android.os.Parcelable { 33 | public static final android.os.Parcelable$Creator *; 34 | } 35 | -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/appetizers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/appetizers.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/appetizers1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/appetizers1.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/beverages.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/beverages.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/beverages1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/beverages1.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/button_salads.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/button_salads.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/call_waiterbutton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/call_waiterbutton.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/confirm_button.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/confirm_button.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/dessert.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/dessert.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/desserts.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/desserts.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/endsession.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/endsession.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/first.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/first.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/header.png -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/helpbutton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/helpbutton.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/homebutton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/homebutton.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/main_course.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/main_course.JPG -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/maincourse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/maincourse.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/maincourse1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/maincourse1.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/menubutton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/menubutton.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/menupic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/menupic.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/newpic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/newpic1.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/salads.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/salads.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/soups.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/soups.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/soups1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/soups1.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-hdpi/view_orderbutton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-hdpi/view_orderbutton.jpg -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-ldpi/imagenotfound.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-ldpi/imagenotfound.gif -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-ldpi/noimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-ldpi/noimage.png -------------------------------------------------------------------------------- /MenuApp_Android/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vshivam/android-menu-app/64b3ef304a0e2715a94447891b210627ec205f29/MenuApp_Android/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/finalorder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/first.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/fooddetails.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/help.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/lview.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 30 | 31 | 32 | 33 | 34 | 35 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/menulist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 20 | 21 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/menulist1.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /MenuApp_Android/res/layout/vieworder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /MenuApp_Android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World, main! 4 | Raj Resorts Restaurent Menu 5 | 6 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Appetizers.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | import java.util.ArrayList; 8 | import java.util.UUID; 9 | 10 | import org.apache.http.HttpEntity; 11 | import org.apache.http.HttpResponse; 12 | import org.apache.http.NameValuePair; 13 | import org.apache.http.client.ClientProtocolException; 14 | import org.apache.http.client.HttpClient; 15 | import org.apache.http.client.entity.UrlEncodedFormEntity; 16 | import org.apache.http.client.methods.HttpGet; 17 | import org.apache.http.client.methods.HttpPost; 18 | import org.apache.http.impl.client.DefaultHttpClient; 19 | import org.apache.http.message.BasicNameValuePair; 20 | import org.json.JSONArray; 21 | import org.json.JSONException; 22 | import org.json.JSONObject; 23 | 24 | import android.app.Activity; 25 | import android.app.AlertDialog; 26 | import android.content.Context; 27 | import android.content.Intent; 28 | import android.os.Bundle; 29 | import android.telephony.TelephonyManager; 30 | import android.util.Log; 31 | import android.view.View; 32 | import android.view.View.OnClickListener; 33 | import android.widget.AdapterView; 34 | import android.widget.AdapterView.OnItemClickListener; 35 | import android.widget.ArrayAdapter; 36 | import android.widget.Button; 37 | import android.widget.ListView; 38 | import android.widget.Toast; 39 | 40 | public class Appetizers extends Activity { 41 | 42 | /** Called when the activity is first created. */ 43 | 44 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 45 | Intent homeit, menuit, orderit, helpit, detailsit; 46 | ListView lv1; 47 | ArrayAdapter adapter; 48 | Bundle g; 49 | String build = null; 50 | 51 | ArrayList items = new ArrayList(); 52 | AlertDialog.Builder alert; 53 | boolean temp=true; 54 | int z; 55 | int argv; 56 | 57 | 58 | 59 | @Override 60 | public void onCreate(Bundle savedInstanceState) { 61 | super.onCreate(savedInstanceState); 62 | setContentView(R.layout.menulist); 63 | 64 | g = getIntent().getExtras(); 65 | 66 | 67 | homeButton = (Button)findViewById(R.id.Button01); 68 | menuButton = (Button)findViewById(R.id.Button02); 69 | orderButton = (Button)findViewById(R.id.Button03); 70 | helpButton = (Button)findViewById(R.id.Button04); 71 | callwaiterButton = (Button)findViewById(R.id.Button05); 72 | homeit = new Intent(getBaseContext(), main.class); 73 | menuit = new Intent(getBaseContext(), Menu.class); 74 | helpit = new Intent(getBaseContext(), Help.class); 75 | orderit = new Intent(getBaseContext(), ViewOrder.class); 76 | detailsit = new Intent(getBaseContext(), FoodDetails.class); 77 | 78 | final ListView lv1 = (ListView) findViewById(R.id.menu); 79 | 80 | 81 | 82 | HttpClient httpclient = new DefaultHttpClient(); 83 | //HttpGet httpget = new HttpGet("http://192.168.11.3/lab/appetizers.json"); 84 | HttpGet httpget = new HttpGet("http://192.168.11.3/lab/appetizers.json"); 85 | 86 | 87 | 88 | try { 89 | 90 | HttpResponse response = httpclient.execute(httpget); 91 | HttpEntity entity = response.getEntity(); 92 | 93 | if (entity != null) { 94 | InputStream instream = entity.getContent(); 95 | BufferedReader str = new BufferedReader(new InputStreamReader( 96 | instream)); 97 | 98 | String ans = new String(""); 99 | build = new String(""); 100 | while ((ans = str.readLine()) != null) { 101 | build = build + ans; 102 | Log.d("JSON", ans); 103 | } 104 | 105 | } 106 | 107 | } catch (ClientProtocolException e) { 108 | // TODO Auto-generated catch block 109 | e.printStackTrace(); 110 | } catch (IOException e) { 111 | // TODO Auto-generated catch block 112 | e.printStackTrace(); 113 | } 114 | 115 | 116 | 117 | try 118 | { 119 | JSONArray arr = new JSONArray(build); 120 | String arrlen = Integer.toString(arr.length()); 121 | JSONObject na = arr.getJSONObject(0); 122 | JSONArray ingna = na.getJSONArray("unavailable"); 123 | String [] ingr = new String[ingna.length()]; 124 | for(int k=0;k parent, View view, 192 | int position, long id) { 193 | 194 | } 195 | 196 | @Override 197 | public void onItemClick(AdapterView arg0, View arg1, int arg2, 198 | long arg3) { 199 | // TODO Auto-generated method stub 200 | menulist sr1 = items.get(arg2); 201 | 202 | String nn=sr1.getName(); 203 | int cat = 1; 204 | 205 | detailsit.putExtras(g); 206 | detailsit.putExtra("category", cat); 207 | detailsit.putExtra("food", nn); 208 | 209 | startActivity(detailsit); 210 | } 211 | 212 | } 213 | 214 | 215 | 216 | private class homeListener implements OnClickListener { 217 | 218 | @Override 219 | public void onClick(View arg0) { 220 | // TODO Auto-generated method stub 221 | 222 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 223 | homeit.putExtras(g); 224 | startActivity(homeit); 225 | } 226 | 227 | } 228 | 229 | private class menuListener implements OnClickListener { 230 | 231 | @Override 232 | public void onClick(View arg0) { 233 | // TODO Auto-generated method stub 234 | 235 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_LONG).show(); 236 | menuit.putExtras(g); 237 | startActivity(menuit); 238 | } 239 | 240 | } 241 | 242 | 243 | private class orderListener implements OnClickListener { 244 | 245 | @Override 246 | public void onClick(View arg0) { 247 | // TODO Auto-generated method stub 248 | 249 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 250 | orderit.putExtras(g); 251 | startActivity(orderit); 252 | } 253 | 254 | } 255 | 256 | 257 | private class helpListener implements OnClickListener { 258 | 259 | @Override 260 | public void onClick(View arg0) { 261 | // TODO Auto-generated method stub 262 | 263 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 264 | helpit.putExtras(g); 265 | startActivity(helpit); 266 | } 267 | 268 | } 269 | 270 | private class callwaiterListener implements OnClickListener { 271 | 272 | @Override 273 | public void onClick(View arg0) { 274 | // TODO Auto-generated method stub 275 | 276 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 277 | ArrayList nameValuePairs = new ArrayList(); 278 | final String tmDevice, tmSerial, tmPhone, androidId; 279 | tmDevice = "" + tm.getDeviceId(); 280 | tmSerial = "" + tm.getSimSerialNumber(); 281 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 282 | 283 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 284 | String deviceId = deviceUuid.toString(); 285 | 286 | 287 | 288 | 289 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 290 | System.out.println(deviceId); 291 | 292 | 293 | try 294 | { 295 | 296 | HttpClient httpclient = new DefaultHttpClient(); 297 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 298 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 299 | HttpResponse response = httpclient.execute(httppost); 300 | HttpEntity entity = response.getEntity(); 301 | 302 | 303 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 304 | } 305 | catch(Exception e) 306 | { 307 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 308 | } 309 | finally{ 310 | } 311 | 312 | } 313 | 314 | } 315 | 316 | 317 | 318 | 319 | @Override 320 | public void onBackPressed() { 321 | menuit.putExtras(g); 322 | startActivity(menuit); 323 | return; 324 | } 325 | } 326 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Beverages.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | import java.util.ArrayList; 8 | import java.util.UUID; 9 | 10 | import org.apache.http.HttpEntity; 11 | import org.apache.http.HttpResponse; 12 | import org.apache.http.NameValuePair; 13 | import org.apache.http.client.ClientProtocolException; 14 | import org.apache.http.client.HttpClient; 15 | import org.apache.http.client.entity.UrlEncodedFormEntity; 16 | import org.apache.http.client.methods.HttpGet; 17 | import org.apache.http.client.methods.HttpPost; 18 | import org.apache.http.impl.client.DefaultHttpClient; 19 | import org.apache.http.message.BasicNameValuePair; 20 | import org.json.JSONArray; 21 | import org.json.JSONException; 22 | import org.json.JSONObject; 23 | 24 | import android.app.Activity; 25 | import android.app.AlertDialog; 26 | import android.content.Context; 27 | import android.content.Intent; 28 | import android.os.Bundle; 29 | import android.telephony.TelephonyManager; 30 | import android.util.Log; 31 | import android.view.View; 32 | import android.view.View.OnClickListener; 33 | import android.widget.AdapterView; 34 | import android.widget.AdapterView.OnItemClickListener; 35 | import android.widget.ArrayAdapter; 36 | import android.widget.Button; 37 | import android.widget.ListView; 38 | import android.widget.Toast; 39 | 40 | public class Beverages extends Activity { 41 | 42 | /** Called when the activity is first created. */ 43 | 44 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 45 | Intent homeit, menuit, orderit, helpit, detailsit; 46 | ListView lv1; 47 | ArrayAdapter adapter; 48 | Bundle g; 49 | String build = null; 50 | 51 | ArrayList items = new ArrayList(); 52 | AlertDialog.Builder alert; 53 | boolean temp=true; 54 | int z; 55 | int argv; 56 | 57 | 58 | 59 | 60 | @Override 61 | public void onCreate(Bundle savedInstanceState) { 62 | super.onCreate(savedInstanceState); 63 | setContentView(R.layout.menulist); 64 | 65 | g = getIntent().getExtras(); 66 | 67 | homeButton = (Button)findViewById(R.id.Button01); 68 | menuButton = (Button)findViewById(R.id.Button02); 69 | orderButton = (Button)findViewById(R.id.Button03); 70 | helpButton = (Button)findViewById(R.id.Button04); 71 | callwaiterButton = (Button)findViewById(R.id.Button05); 72 | homeit = new Intent(getBaseContext(), main.class); 73 | menuit = new Intent(getBaseContext(), Menu.class); 74 | helpit = new Intent(getBaseContext(), Help.class); 75 | orderit = new Intent(getBaseContext(), ViewOrder.class); 76 | detailsit = new Intent(getBaseContext(), FoodDetails.class); 77 | 78 | final ListView lv1 = (ListView) findViewById(R.id.menu); 79 | 80 | 81 | HttpClient httpclient = new DefaultHttpClient(); 82 | //HttpGet httpget = new HttpGet("http://192.168.11.3/lab/beverages.json"); 83 | HttpGet httpget = new HttpGet("http://192.168.11.3/lab/beverages.json"); 84 | 85 | 86 | 87 | try { 88 | 89 | HttpResponse response = httpclient.execute(httpget); 90 | HttpEntity entity = response.getEntity(); 91 | 92 | if (entity != null) { 93 | InputStream instream = entity.getContent(); 94 | BufferedReader str = new BufferedReader(new InputStreamReader( 95 | instream)); 96 | 97 | String ans = new String(""); 98 | build = new String(""); 99 | while ((ans = str.readLine()) != null) { 100 | build = build + ans; 101 | Log.d("JSON", ans); 102 | } 103 | 104 | } 105 | 106 | } catch (ClientProtocolException e) { 107 | // TODO Auto-generated catch block 108 | e.printStackTrace(); 109 | } catch (IOException e) { 110 | // TODO Auto-generated catch block 111 | e.printStackTrace(); 112 | } 113 | 114 | 115 | 116 | try 117 | { 118 | JSONArray arr = new JSONArray(build); 119 | String arrlen = Integer.toString(arr.length()); 120 | JSONObject na = arr.getJSONObject(0); 121 | JSONArray ingna = na.getJSONArray("unavailable"); 122 | String [] ingr = new String[ingna.length()]; 123 | for(int k=0;k parent, View view, 191 | int position, long id) { 192 | 193 | } 194 | 195 | @Override 196 | public void onItemClick(AdapterView arg0, View arg1, int arg2, 197 | long arg3) { 198 | // TODO Auto-generated method stub 199 | menulist sr1 = items.get(arg2); 200 | 201 | String nn=sr1.getName(); 202 | int cat = 2; 203 | detailsit.putExtras(g); 204 | detailsit.putExtra("category", cat); 205 | detailsit.putExtra("food", nn); 206 | 207 | startActivity(detailsit); 208 | } 209 | 210 | } 211 | 212 | 213 | 214 | private class homeListener implements OnClickListener { 215 | 216 | @Override 217 | public void onClick(View arg0) { 218 | // TODO Auto-generated method stub 219 | 220 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 221 | homeit.putExtras(g); 222 | startActivity(homeit); 223 | } 224 | 225 | } 226 | 227 | private class menuListener implements OnClickListener { 228 | 229 | @Override 230 | public void onClick(View arg0) { 231 | // TODO Auto-generated method stub 232 | 233 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 234 | menuit.putExtras(g); 235 | startActivity(menuit); 236 | } 237 | 238 | } 239 | 240 | 241 | private class orderListener implements OnClickListener { 242 | 243 | @Override 244 | public void onClick(View arg0) { 245 | // TODO Auto-generated method stub 246 | 247 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 248 | orderit.putExtras(g); 249 | startActivity(orderit); 250 | } 251 | 252 | } 253 | 254 | 255 | private class helpListener implements OnClickListener { 256 | 257 | @Override 258 | public void onClick(View arg0) { 259 | // TODO Auto-generated method stub 260 | 261 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 262 | helpit.putExtras(g); 263 | startActivity(helpit); 264 | } 265 | 266 | } 267 | 268 | private class callwaiterListener implements OnClickListener { 269 | 270 | @Override 271 | public void onClick(View arg0) { 272 | // TODO Auto-generated method stub 273 | 274 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 275 | ArrayList nameValuePairs = new ArrayList(); 276 | final String tmDevice, tmSerial, tmPhone, androidId; 277 | tmDevice = "" + tm.getDeviceId(); 278 | tmSerial = "" + tm.getSimSerialNumber(); 279 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 280 | 281 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 282 | String deviceId = deviceUuid.toString(); 283 | 284 | 285 | 286 | 287 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 288 | System.out.println(deviceId); 289 | 290 | 291 | try 292 | { 293 | 294 | HttpClient httpclient = new DefaultHttpClient(); 295 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 296 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 297 | HttpResponse response = httpclient.execute(httppost); 298 | HttpEntity entity = response.getEntity(); 299 | 300 | 301 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 302 | } 303 | catch(Exception e) 304 | { 305 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 306 | } 307 | finally{ 308 | } 309 | 310 | } 311 | 312 | } 313 | 314 | 315 | 316 | @Override 317 | public void onBackPressed() { 318 | menuit.putExtras(g); 319 | startActivity(menuit); 320 | return; 321 | } 322 | } 323 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Dessert.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | import java.util.ArrayList; 8 | import java.util.UUID; 9 | 10 | import org.apache.http.HttpEntity; 11 | import org.apache.http.HttpResponse; 12 | import org.apache.http.NameValuePair; 13 | import org.apache.http.client.ClientProtocolException; 14 | import org.apache.http.client.HttpClient; 15 | import org.apache.http.client.entity.UrlEncodedFormEntity; 16 | import org.apache.http.client.methods.HttpGet; 17 | import org.apache.http.client.methods.HttpPost; 18 | import org.apache.http.impl.client.DefaultHttpClient; 19 | import org.apache.http.message.BasicNameValuePair; 20 | import org.json.JSONArray; 21 | import org.json.JSONException; 22 | import org.json.JSONObject; 23 | 24 | import android.app.Activity; 25 | import android.app.AlertDialog; 26 | import android.content.Context; 27 | import android.content.Intent; 28 | import android.os.Bundle; 29 | import android.telephony.TelephonyManager; 30 | import android.util.Log; 31 | import android.view.View; 32 | import android.view.View.OnClickListener; 33 | import android.widget.AdapterView; 34 | import android.widget.AdapterView.OnItemClickListener; 35 | import android.widget.ArrayAdapter; 36 | import android.widget.Button; 37 | import android.widget.ListView; 38 | import android.widget.Toast; 39 | 40 | public class Dessert extends Activity { 41 | 42 | /** Called when the activity is first created. */ 43 | 44 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 45 | Intent homeit, menuit, orderit, helpit, detailsit; 46 | ListView lv1; 47 | ArrayAdapter adapter; 48 | Bundle g; 49 | String build = null; 50 | 51 | ArrayList items = new ArrayList(); 52 | AlertDialog.Builder alert; 53 | boolean temp=true; 54 | int z; 55 | int argv; 56 | 57 | 58 | 59 | 60 | @Override 61 | public void onCreate(Bundle savedInstanceState) { 62 | super.onCreate(savedInstanceState); 63 | setContentView(R.layout.menulist); 64 | 65 | g = getIntent().getExtras(); 66 | 67 | 68 | homeButton = (Button)findViewById(R.id.Button01); 69 | menuButton = (Button)findViewById(R.id.Button02); 70 | orderButton = (Button)findViewById(R.id.Button03); 71 | helpButton = (Button)findViewById(R.id.Button04); 72 | callwaiterButton = (Button)findViewById(R.id.Button05); 73 | homeit = new Intent(getBaseContext(), main.class); 74 | menuit = new Intent(getBaseContext(), Menu.class); 75 | helpit = new Intent(getBaseContext(), Help.class); 76 | orderit = new Intent(getBaseContext(), ViewOrder.class); 77 | detailsit = new Intent(getBaseContext(), FoodDetails.class); 78 | 79 | final ListView lv1 = (ListView) findViewById(R.id.menu); 80 | 81 | 82 | HttpClient httpclient = new DefaultHttpClient(); 83 | //HttpGet httpget = new HttpGet("http://192.168.11.3/lab/desserts.json"); 84 | HttpGet httpget = new HttpGet("http://192.168.11.3/lab/desserts.json"); 85 | 86 | 87 | 88 | try { 89 | 90 | HttpResponse response = httpclient.execute(httpget); 91 | HttpEntity entity = response.getEntity(); 92 | 93 | if (entity != null) { 94 | InputStream instream = entity.getContent(); 95 | BufferedReader str = new BufferedReader(new InputStreamReader( 96 | instream)); 97 | 98 | String ans = new String(""); 99 | build = new String(""); 100 | while ((ans = str.readLine()) != null) { 101 | build = build + ans; 102 | Log.d("JSON", ans); 103 | } 104 | 105 | } 106 | 107 | } catch (ClientProtocolException e) { 108 | // TODO Auto-generated catch block 109 | e.printStackTrace(); 110 | } catch (IOException e) { 111 | // TODO Auto-generated catch block 112 | e.printStackTrace(); 113 | } 114 | 115 | 116 | 117 | try 118 | { 119 | JSONArray arr = new JSONArray(build); 120 | String arrlen = Integer.toString(arr.length()); 121 | JSONObject na = arr.getJSONObject(0); 122 | JSONArray ingna = na.getJSONArray("unavailable"); 123 | String [] ingr = new String[ingna.length()]; 124 | for(int k=0;k parent, View view, 191 | int position, long id) { 192 | 193 | } 194 | 195 | @Override 196 | public void onItemClick(AdapterView arg0, View arg1, int arg2, 197 | long arg3) { 198 | // TODO Auto-generated method stub 199 | menulist sr1 = items.get(arg2); 200 | 201 | String nn=sr1.getName(); 202 | int cat = 6; 203 | detailsit.putExtras(g); 204 | detailsit.putExtra("category", cat); 205 | detailsit.putExtra("food", nn); 206 | 207 | startActivity(detailsit); 208 | } 209 | 210 | } 211 | 212 | 213 | 214 | private class homeListener implements OnClickListener { 215 | 216 | @Override 217 | public void onClick(View arg0) { 218 | // TODO Auto-generated method stub 219 | 220 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 221 | homeit.putExtras(g); 222 | startActivity(homeit); 223 | } 224 | 225 | } 226 | 227 | private class menuListener implements OnClickListener { 228 | 229 | @Override 230 | public void onClick(View arg0) { 231 | // TODO Auto-generated method stub 232 | 233 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 234 | menuit.putExtras(g); 235 | startActivity(menuit); 236 | } 237 | 238 | } 239 | 240 | 241 | private class orderListener implements OnClickListener { 242 | 243 | @Override 244 | public void onClick(View arg0) { 245 | // TODO Auto-generated method stub 246 | 247 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 248 | orderit.putExtras(g); 249 | startActivity(orderit); 250 | } 251 | 252 | } 253 | 254 | 255 | private class helpListener implements OnClickListener { 256 | 257 | @Override 258 | public void onClick(View arg0) { 259 | // TODO Auto-generated method stub 260 | 261 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 262 | helpit.putExtras(g); 263 | startActivity(helpit); 264 | } 265 | 266 | } 267 | 268 | private class callwaiterListener implements OnClickListener { 269 | 270 | @Override 271 | public void onClick(View arg0) { 272 | // TODO Auto-generated method stub 273 | 274 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 275 | ArrayList nameValuePairs = new ArrayList(); 276 | final String tmDevice, tmSerial, tmPhone, androidId; 277 | tmDevice = "" + tm.getDeviceId(); 278 | tmSerial = "" + tm.getSimSerialNumber(); 279 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 280 | 281 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 282 | String deviceId = deviceUuid.toString(); 283 | 284 | 285 | 286 | 287 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 288 | System.out.println(deviceId); 289 | 290 | 291 | try 292 | { 293 | 294 | HttpClient httpclient = new DefaultHttpClient(); 295 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 296 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 297 | HttpResponse response = httpclient.execute(httppost); 298 | HttpEntity entity = response.getEntity(); 299 | 300 | 301 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 302 | } 303 | catch(Exception e) 304 | { 305 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 306 | } 307 | finally{ 308 | } 309 | 310 | } 311 | 312 | } 313 | 314 | 315 | 316 | @Override 317 | public void onBackPressed() { 318 | menuit.putExtras(g); 319 | startActivity(menuit); 320 | return; 321 | } 322 | } 323 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/First.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.view.View.OnClickListener; 8 | import android.widget.ImageView; 9 | import android.widget.TextView; 10 | import android.widget.Toast; 11 | 12 | public class First extends Activity { 13 | 14 | @Override 15 | public void onBackPressed() { 16 | return; 17 | } 18 | 19 | Intent home; 20 | Bundle g = new Bundle(); 21 | ImageView t1; 22 | 23 | @Override 24 | public void onCreate(Bundle savedInstanceState) { 25 | super.onCreate(savedInstanceState); 26 | setContentView(R.layout.first); 27 | 28 | t1 = (ImageView)findViewById(R.id.ImageView01); 29 | 30 | int [] tag = new int[100]; 31 | String [] name = new String[100]; 32 | int [] qty = new int[100]; 33 | int [] amount = new int[100]; 34 | 35 | 36 | g.putIntArray("tag", tag); 37 | g.putStringArray("name", name); 38 | g.putIntArray("qty", qty); 39 | g.putIntArray("amount", amount); 40 | 41 | home = new Intent(getBaseContext(), main.class); 42 | t1.setOnClickListener((OnClickListener) new homeListener()); 43 | 44 | 45 | } 46 | 47 | private class homeListener implements OnClickListener { 48 | 49 | @Override 50 | public void onClick(View arg0) { 51 | // TODO Auto-generated method stub 52 | 53 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 54 | home.putExtras(g); 55 | startActivity(home); 56 | } 57 | 58 | } 59 | 60 | 61 | } 62 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Help.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.util.ArrayList; 4 | import java.util.UUID; 5 | 6 | import org.apache.http.HttpEntity; 7 | import org.apache.http.HttpResponse; 8 | import org.apache.http.NameValuePair; 9 | import org.apache.http.client.HttpClient; 10 | import org.apache.http.client.entity.UrlEncodedFormEntity; 11 | import org.apache.http.client.methods.HttpPost; 12 | import org.apache.http.impl.client.DefaultHttpClient; 13 | import org.apache.http.message.BasicNameValuePair; 14 | 15 | import android.app.Activity; 16 | import android.content.Context; 17 | import android.content.Intent; 18 | import android.os.Bundle; 19 | import android.telephony.TelephonyManager; 20 | import android.view.View; 21 | import android.view.View.OnClickListener; 22 | import android.widget.Button; 23 | import android.widget.TextView; 24 | import android.widget.Toast; 25 | 26 | public class Help extends Activity { 27 | 28 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 29 | Intent homeit, menuit, orderit, helpit; 30 | Bundle g; 31 | TextView t1; 32 | 33 | @Override 34 | public void onCreate(Bundle savedInstanceState) { 35 | super.onCreate(savedInstanceState); 36 | setContentView(R.layout.help); 37 | 38 | g = getIntent().getExtras(); 39 | 40 | homeButton = (Button)findViewById(R.id.Button01); 41 | menuButton = (Button)findViewById(R.id.Button02); 42 | orderButton = (Button)findViewById(R.id.Button03); 43 | helpButton = (Button)findViewById(R.id.Button04); 44 | callwaiterButton = (Button)findViewById(R.id.Button05); 45 | t1 = (TextView)findViewById(R.id.TextView02); 46 | homeit = new Intent(getBaseContext(), main.class); 47 | menuit = new Intent(getBaseContext(), Menu.class); 48 | helpit = new Intent(getBaseContext(), Help.class); 49 | orderit = new Intent(getBaseContext(), ViewOrder.class); 50 | 51 | homeButton.setOnClickListener((OnClickListener) new homeListener()); 52 | menuButton.setOnClickListener((OnClickListener) new menuListener()); 53 | orderButton.setOnClickListener((OnClickListener) new orderListener()); 54 | helpButton.setOnClickListener((OnClickListener) new helpListener()); 55 | callwaiterButton.setOnClickListener((OnClickListener) new callwaiterListener()); 56 | 57 | t1.setText("This is Raj Resorts Bogmalo Restaurant Menu Tablet\n" + 58 | "\nThe left sidebar buttons take you to the Home page, Menu page, View Order page and Help page. Also the Call Waiter button will call the waiter upon click." + 59 | "\nIn the menu screen you can choose from various types of dishes like appetizers, soups, maincourse etc." + 60 | "\nWhen in any sub-category of food, you can select the food item from the list by just clicking it and you would be redirected to it's details page where you can find the details of that food item and add it to your order." + 61 | "\nAny time you can go to the View Order Screen and see your current order. You can select any item from the list of your order to edit it's quantity or to remove it from your order." + 62 | "\nOnce you are done selecting your order, you can go to the view order screen and click on confirm order to confirm it and send it to the kitchen for preparation." + 63 | "\nYour final order with discount and taxes will then be displayed to you and henceforth you are not allowed to change your order."); 64 | 65 | } 66 | 67 | private class homeListener implements OnClickListener { 68 | 69 | @Override 70 | public void onClick(View arg0) { 71 | // TODO Auto-generated method stub 72 | 73 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 74 | homeit.putExtras(g); 75 | startActivity(homeit); 76 | } 77 | 78 | } 79 | 80 | private class menuListener implements OnClickListener { 81 | 82 | @Override 83 | public void onClick(View arg0) { 84 | // TODO Auto-generated method stub 85 | 86 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 87 | menuit.putExtras(g); 88 | startActivity(menuit); 89 | } 90 | 91 | } 92 | 93 | 94 | private class orderListener implements OnClickListener { 95 | 96 | @Override 97 | public void onClick(View arg0) { 98 | // TODO Auto-generated method stub 99 | 100 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 101 | orderit.putExtras(g); 102 | startActivity(orderit); 103 | } 104 | 105 | } 106 | 107 | 108 | private class helpListener implements OnClickListener { 109 | 110 | @Override 111 | public void onClick(View arg0) { 112 | // TODO Auto-generated method stub 113 | 114 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 115 | helpit.putExtras(g); 116 | startActivity(helpit); 117 | } 118 | 119 | } 120 | 121 | private class callwaiterListener implements OnClickListener { 122 | 123 | @Override 124 | public void onClick(View arg0) { 125 | // TODO Auto-generated method stub 126 | 127 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 128 | ArrayList nameValuePairs = new ArrayList(); 129 | final String tmDevice, tmSerial, tmPhone, androidId; 130 | tmDevice = "" + tm.getDeviceId(); 131 | tmSerial = "" + tm.getSimSerialNumber(); 132 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 133 | 134 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 135 | String deviceId = deviceUuid.toString(); 136 | 137 | 138 | 139 | 140 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 141 | System.out.println(deviceId); 142 | 143 | 144 | try 145 | { 146 | 147 | HttpClient httpclient = new DefaultHttpClient(); 148 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 149 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 150 | HttpResponse response = httpclient.execute(httppost); 151 | HttpEntity entity = response.getEntity(); 152 | 153 | 154 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 155 | } 156 | catch(Exception e) 157 | { 158 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 159 | } 160 | finally{ 161 | } 162 | 163 | } 164 | 165 | } 166 | 167 | } 168 | 169 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/MainCourse.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | import java.util.ArrayList; 8 | import java.util.UUID; 9 | 10 | import org.apache.http.HttpEntity; 11 | import org.apache.http.HttpResponse; 12 | import org.apache.http.NameValuePair; 13 | import org.apache.http.client.ClientProtocolException; 14 | import org.apache.http.client.HttpClient; 15 | import org.apache.http.client.entity.UrlEncodedFormEntity; 16 | import org.apache.http.client.methods.HttpGet; 17 | import org.apache.http.client.methods.HttpPost; 18 | import org.apache.http.impl.client.DefaultHttpClient; 19 | import org.apache.http.message.BasicNameValuePair; 20 | import org.json.JSONArray; 21 | import org.json.JSONException; 22 | import org.json.JSONObject; 23 | 24 | import android.app.Activity; 25 | import android.app.AlertDialog; 26 | import android.content.Context; 27 | import android.content.Intent; 28 | import android.os.Bundle; 29 | import android.telephony.TelephonyManager; 30 | import android.util.Log; 31 | import android.view.View; 32 | import android.view.View.OnClickListener; 33 | import android.widget.AdapterView; 34 | import android.widget.AdapterView.OnItemClickListener; 35 | import android.widget.ArrayAdapter; 36 | import android.widget.Button; 37 | import android.widget.ListView; 38 | import android.widget.Toast; 39 | 40 | public class MainCourse extends Activity { 41 | 42 | /** Called when the activity is first created. */ 43 | 44 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 45 | Intent homeit, menuit, orderit, helpit, detailsit; 46 | ListView lv1; 47 | ArrayAdapter adapter; 48 | Bundle g; 49 | String build = null; 50 | 51 | ArrayList items = new ArrayList(); 52 | AlertDialog.Builder alert; 53 | boolean temp=true; 54 | int z; 55 | int argv; 56 | 57 | 58 | 59 | 60 | @Override 61 | public void onCreate(Bundle savedInstanceState) { 62 | super.onCreate(savedInstanceState); 63 | setContentView(R.layout.menulist); 64 | 65 | g = getIntent().getExtras(); 66 | 67 | homeButton = (Button)findViewById(R.id.Button01); 68 | menuButton = (Button)findViewById(R.id.Button02); 69 | orderButton = (Button)findViewById(R.id.Button03); 70 | helpButton = (Button)findViewById(R.id.Button04); 71 | callwaiterButton = (Button)findViewById(R.id.Button05); 72 | homeit = new Intent(getBaseContext(), main.class); 73 | menuit = new Intent(getBaseContext(), Menu.class); 74 | helpit = new Intent(getBaseContext(), Help.class); 75 | orderit = new Intent(getBaseContext(), ViewOrder.class); 76 | detailsit = new Intent(getBaseContext(), FoodDetails.class); 77 | 78 | final ListView lv1 = (ListView) findViewById(R.id.menu); 79 | 80 | 81 | HttpClient httpclient = new DefaultHttpClient(); 82 | //HttpGet httpget = new HttpGet("http://192.168.11.3/lab/maincourse.json"); 83 | HttpGet httpget = new HttpGet("http://192.168.11.3/lab/maincourse.json"); 84 | 85 | 86 | 87 | try { 88 | 89 | HttpResponse response = httpclient.execute(httpget); 90 | HttpEntity entity = response.getEntity(); 91 | 92 | if (entity != null) { 93 | InputStream instream = entity.getContent(); 94 | BufferedReader str = new BufferedReader(new InputStreamReader( 95 | instream)); 96 | 97 | String ans = new String(""); 98 | build = new String(""); 99 | while ((ans = str.readLine()) != null) { 100 | build = build + ans; 101 | Log.d("JSON", ans); 102 | } 103 | 104 | } 105 | 106 | } catch (ClientProtocolException e) { 107 | // TODO Auto-generated catch block 108 | e.printStackTrace(); 109 | } catch (IOException e) { 110 | // TODO Auto-generated catch block 111 | e.printStackTrace(); 112 | } 113 | 114 | 115 | 116 | try 117 | { 118 | JSONArray arr = new JSONArray(build); 119 | String arrlen = Integer.toString(arr.length()); 120 | JSONObject na = arr.getJSONObject(0); 121 | JSONArray ingna = na.getJSONArray("unavailable"); 122 | String [] ingr = new String[ingna.length()]; 123 | for(int k=0;k parent, View view, 190 | int position, long id) { 191 | 192 | } 193 | 194 | @Override 195 | public void onItemClick(AdapterView arg0, View arg1, int arg2, 196 | long arg3) { 197 | // TODO Auto-generated method stub 198 | menulist sr1 = items.get(arg2); 199 | 200 | String nn=sr1.getName(); 201 | int cat = 4; 202 | detailsit.putExtras(g); 203 | detailsit.putExtra("category", cat); 204 | detailsit.putExtra("food", nn); 205 | 206 | startActivity(detailsit); 207 | } 208 | 209 | } 210 | 211 | 212 | 213 | private class homeListener implements OnClickListener { 214 | 215 | @Override 216 | public void onClick(View arg0) { 217 | // TODO Auto-generated method stub 218 | 219 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 220 | homeit.putExtras(g); 221 | startActivity(homeit); 222 | } 223 | 224 | } 225 | 226 | private class menuListener implements OnClickListener { 227 | 228 | @Override 229 | public void onClick(View arg0) { 230 | // TODO Auto-generated method stub 231 | 232 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 233 | menuit.putExtras(g); 234 | startActivity(menuit); 235 | } 236 | 237 | } 238 | 239 | 240 | private class orderListener implements OnClickListener { 241 | 242 | @Override 243 | public void onClick(View arg0) { 244 | // TODO Auto-generated method stub 245 | 246 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 247 | orderit.putExtras(g); 248 | startActivity(orderit); 249 | } 250 | 251 | } 252 | 253 | 254 | private class helpListener implements OnClickListener { 255 | 256 | @Override 257 | public void onClick(View arg0) { 258 | // TODO Auto-generated method stub 259 | 260 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 261 | helpit.putExtras(g); 262 | startActivity(helpit); 263 | } 264 | 265 | } 266 | 267 | private class callwaiterListener implements OnClickListener { 268 | 269 | @Override 270 | public void onClick(View arg0) { 271 | // TODO Auto-generated method stub 272 | 273 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 274 | ArrayList nameValuePairs = new ArrayList(); 275 | final String tmDevice, tmSerial, tmPhone, androidId; 276 | tmDevice = "" + tm.getDeviceId(); 277 | tmSerial = "" + tm.getSimSerialNumber(); 278 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 279 | 280 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 281 | String deviceId = deviceUuid.toString(); 282 | 283 | 284 | 285 | 286 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 287 | System.out.println(deviceId); 288 | 289 | 290 | try 291 | { 292 | 293 | HttpClient httpclient = new DefaultHttpClient(); 294 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 295 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 296 | HttpResponse response = httpclient.execute(httppost); 297 | HttpEntity entity = response.getEntity(); 298 | 299 | 300 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 301 | } 302 | catch(Exception e) 303 | { 304 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 305 | } 306 | finally{ 307 | } 308 | 309 | } 310 | 311 | } 312 | 313 | 314 | @Override 315 | public void onBackPressed() { 316 | menuit.putExtras(g); 317 | startActivity(menuit); 318 | return; 319 | } 320 | } 321 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Menu.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.InputStream; 4 | import java.util.ArrayList; 5 | import java.util.UUID; 6 | 7 | import org.apache.http.HttpEntity; 8 | import org.apache.http.HttpResponse; 9 | import org.apache.http.NameValuePair; 10 | import org.apache.http.client.HttpClient; 11 | import org.apache.http.client.entity.UrlEncodedFormEntity; 12 | import org.apache.http.client.methods.HttpPost; 13 | import org.apache.http.impl.client.DefaultHttpClient; 14 | import org.apache.http.message.BasicNameValuePair; 15 | 16 | import android.app.Activity; 17 | import android.content.Context; 18 | import android.content.Intent; 19 | import android.os.Bundle; 20 | import android.telephony.TelephonyManager; 21 | import android.view.View; 22 | import android.view.View.OnClickListener; 23 | import android.widget.Button; 24 | import android.widget.Toast; 25 | 26 | public class Menu extends Activity { 27 | 28 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton, appetizerButton, beveragesButton, soupsButton, maincourseButton, saladButton, dessertButton; 29 | Intent homeit, menuit, orderit, helpit, appetizerit, beveragesit, soupsit, maincourseit, saladit, dessertit; 30 | Bundle g; 31 | 32 | 33 | @Override 34 | public void onCreate(Bundle savedInstanceState) { 35 | super.onCreate(savedInstanceState); 36 | setContentView(R.layout.menu); 37 | 38 | g = getIntent().getExtras(); 39 | 40 | homeButton = (Button)findViewById(R.id.Button01); 41 | menuButton = (Button)findViewById(R.id.Button02); 42 | orderButton = (Button)findViewById(R.id.Button03); 43 | helpButton = (Button)findViewById(R.id.Button04); 44 | callwaiterButton = (Button)findViewById(R.id.Button05); 45 | appetizerButton = (Button)findViewById(R.id.Button06); 46 | beveragesButton = (Button)findViewById(R.id.Button07); 47 | soupsButton = (Button)findViewById(R.id.Button08); 48 | maincourseButton = (Button)findViewById(R.id.Button09); 49 | saladButton = (Button)findViewById(R.id.Button10); 50 | dessertButton = (Button)findViewById(R.id.Button11); 51 | homeit = new Intent(getBaseContext(), main.class); 52 | menuit = new Intent(getBaseContext(), Menu.class); 53 | helpit = new Intent(getBaseContext(), Help.class); 54 | orderit = new Intent(getBaseContext(), ViewOrder.class); 55 | appetizerit = new Intent(getBaseContext(), Appetizers.class); 56 | beveragesit = new Intent(getBaseContext(), Beverages.class); 57 | soupsit = new Intent(getBaseContext(), Soups.class); 58 | maincourseit = new Intent(getBaseContext(), MainCourse.class); 59 | saladit = new Intent(getBaseContext(), Salad.class); 60 | dessertit = new Intent(getBaseContext(), Dessert.class); 61 | 62 | 63 | 64 | homeButton.setOnClickListener((OnClickListener) new homeListener()); 65 | menuButton.setOnClickListener((OnClickListener) new menuListener()); 66 | orderButton.setOnClickListener((OnClickListener) new orderListener()); 67 | helpButton.setOnClickListener((OnClickListener) new helpListener()); 68 | callwaiterButton.setOnClickListener((OnClickListener) new callwaiterListener()); 69 | appetizerButton.setOnClickListener((OnClickListener) new appetizerListener()); 70 | beveragesButton.setOnClickListener((OnClickListener) new beveragesListener()); 71 | soupsButton.setOnClickListener((OnClickListener) new soupsListener()); 72 | maincourseButton.setOnClickListener((OnClickListener) new maincourseListener()); 73 | saladButton.setOnClickListener((OnClickListener) new saladListener()); 74 | dessertButton.setOnClickListener((OnClickListener) new dessertListener()); 75 | 76 | 77 | } 78 | 79 | private class homeListener implements OnClickListener { 80 | 81 | @Override 82 | public void onClick(View arg0) { 83 | // TODO Auto-generated method stub 84 | 85 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 86 | homeit.putExtras(g); 87 | startActivity(homeit); 88 | } 89 | 90 | } 91 | 92 | private class menuListener implements OnClickListener { 93 | 94 | @Override 95 | public void onClick(View arg0) { 96 | // TODO Auto-generated method stub 97 | 98 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 99 | menuit.putExtras(g); 100 | startActivity(menuit); 101 | } 102 | 103 | } 104 | 105 | 106 | private class orderListener implements OnClickListener { 107 | 108 | @Override 109 | public void onClick(View arg0) { 110 | // TODO Auto-generated method stub 111 | 112 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 113 | orderit.putExtras(g); 114 | startActivity(orderit); 115 | } 116 | 117 | } 118 | 119 | 120 | private class helpListener implements OnClickListener { 121 | 122 | @Override 123 | public void onClick(View arg0) { 124 | // TODO Auto-generated method stub 125 | 126 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 127 | helpit.putExtras(g); 128 | startActivity(helpit); 129 | } 130 | 131 | } 132 | 133 | private class callwaiterListener implements OnClickListener { 134 | 135 | @Override 136 | public void onClick(View arg0) { 137 | // TODO Auto-generated method stub 138 | 139 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 140 | ArrayList nameValuePairs = new ArrayList(); 141 | final String tmDevice, tmSerial, tmPhone, androidId; 142 | tmDevice = "" + tm.getDeviceId(); 143 | tmSerial = "" + tm.getSimSerialNumber(); 144 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 145 | 146 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 147 | String deviceId = deviceUuid.toString(); 148 | 149 | 150 | 151 | 152 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 153 | System.out.println(deviceId); 154 | 155 | 156 | try 157 | { 158 | 159 | HttpClient httpclient = new DefaultHttpClient(); 160 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 161 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 162 | HttpResponse response = httpclient.execute(httppost); 163 | HttpEntity entity = response.getEntity(); 164 | 165 | 166 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 167 | } 168 | catch(Exception e) 169 | { 170 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 171 | } 172 | finally{ 173 | } 174 | 175 | } 176 | 177 | } 178 | 179 | private class appetizerListener implements OnClickListener { 180 | 181 | @Override 182 | public void onClick(View arg0) { 183 | // TODO Auto-generated method stub 184 | 185 | Toast.makeText(getApplicationContext(), "Loading Appetizers...", Toast.LENGTH_SHORT).show(); 186 | appetizerit.putExtras(g); 187 | startActivity(appetizerit); 188 | } 189 | 190 | } 191 | 192 | private class beveragesListener implements OnClickListener { 193 | 194 | @Override 195 | public void onClick(View arg0) { 196 | // TODO Auto-generated method stub 197 | 198 | Toast.makeText(getApplicationContext(), "Loading Beverages...", Toast.LENGTH_SHORT).show(); 199 | beveragesit.putExtras(g); 200 | startActivity(beveragesit); 201 | } 202 | 203 | } 204 | 205 | private class soupsListener implements OnClickListener { 206 | 207 | @Override 208 | public void onClick(View arg0) { 209 | // TODO Auto-generated method stub 210 | 211 | Toast.makeText(getApplicationContext(), "Loading Soups...", Toast.LENGTH_SHORT).show(); 212 | soupsit.putExtras(g); 213 | startActivity(soupsit); 214 | } 215 | 216 | } 217 | 218 | private class maincourseListener implements OnClickListener { 219 | 220 | @Override 221 | public void onClick(View arg0) { 222 | // TODO Auto-generated method stub 223 | 224 | Toast.makeText(getApplicationContext(), "Loading Main Course...", Toast.LENGTH_SHORT).show(); 225 | maincourseit.putExtras(g); 226 | startActivity(maincourseit); 227 | } 228 | 229 | } 230 | 231 | private class saladListener implements OnClickListener { 232 | 233 | @Override 234 | public void onClick(View arg0) { 235 | // TODO Auto-generated method stub 236 | 237 | Toast.makeText(getApplicationContext(), "Loading Salads...", Toast.LENGTH_SHORT).show(); 238 | saladit.putExtras(g); 239 | startActivity(saladit); 240 | } 241 | 242 | } 243 | private class dessertListener implements OnClickListener { 244 | 245 | @Override 246 | public void onClick(View arg0) { 247 | // TODO Auto-generated method stub 248 | 249 | Toast.makeText(getApplicationContext(), "Loading Desserts...", Toast.LENGTH_SHORT).show(); 250 | dessertit.putExtras(g); 251 | startActivity(dessertit); 252 | } 253 | 254 | } 255 | 256 | @Override 257 | public void onBackPressed() { 258 | homeit.putExtras(g); 259 | startActivity(homeit); 260 | } 261 | 262 | } 263 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Salad.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | import java.util.ArrayList; 8 | import java.util.UUID; 9 | 10 | import org.apache.http.HttpEntity; 11 | import org.apache.http.HttpResponse; 12 | import org.apache.http.NameValuePair; 13 | import org.apache.http.client.ClientProtocolException; 14 | import org.apache.http.client.HttpClient; 15 | import org.apache.http.client.entity.UrlEncodedFormEntity; 16 | import org.apache.http.client.methods.HttpGet; 17 | import org.apache.http.client.methods.HttpPost; 18 | import org.apache.http.impl.client.DefaultHttpClient; 19 | import org.apache.http.message.BasicNameValuePair; 20 | import org.json.JSONArray; 21 | import org.json.JSONException; 22 | import org.json.JSONObject; 23 | 24 | import android.app.Activity; 25 | import android.app.AlertDialog; 26 | import android.content.Context; 27 | import android.content.Intent; 28 | import android.os.Bundle; 29 | import android.telephony.TelephonyManager; 30 | import android.util.Log; 31 | import android.view.View; 32 | import android.view.View.OnClickListener; 33 | import android.widget.AdapterView; 34 | import android.widget.AdapterView.OnItemClickListener; 35 | import android.widget.ArrayAdapter; 36 | import android.widget.Button; 37 | import android.widget.ListView; 38 | import android.widget.Toast; 39 | 40 | public class Salad extends Activity { 41 | 42 | /** Called when the activity is first created. */ 43 | 44 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 45 | Intent homeit, menuit, orderit, helpit, detailsit; 46 | ListView lv1; 47 | ArrayAdapter adapter; 48 | Bundle g; 49 | String build = null; 50 | 51 | ArrayList items = new ArrayList(); 52 | AlertDialog.Builder alert; 53 | boolean temp=true; 54 | int z; 55 | int argv; 56 | 57 | 58 | @Override 59 | public void onCreate(Bundle savedInstanceState) { 60 | super.onCreate(savedInstanceState); 61 | setContentView(R.layout.menulist); 62 | 63 | g = getIntent().getExtras(); 64 | 65 | homeButton = (Button)findViewById(R.id.Button01); 66 | menuButton = (Button)findViewById(R.id.Button02); 67 | orderButton = (Button)findViewById(R.id.Button03); 68 | helpButton = (Button)findViewById(R.id.Button04); 69 | callwaiterButton = (Button)findViewById(R.id.Button05); 70 | homeit = new Intent(getBaseContext(), main.class); 71 | menuit = new Intent(getBaseContext(), Menu.class); 72 | helpit = new Intent(getBaseContext(), Help.class); 73 | orderit = new Intent(getBaseContext(), ViewOrder.class); 74 | detailsit = new Intent(getBaseContext(), FoodDetails.class); 75 | 76 | final ListView lv1 = (ListView) findViewById(R.id.menu); 77 | 78 | 79 | HttpClient httpclient = new DefaultHttpClient(); 80 | HttpGet httpget = new HttpGet("http://192.168.11.3/lab/salad.json"); 81 | 82 | try { 83 | 84 | HttpResponse response = httpclient.execute(httpget); 85 | HttpEntity entity = response.getEntity(); 86 | 87 | if (entity != null) { 88 | InputStream instream = entity.getContent(); 89 | BufferedReader str = new BufferedReader(new InputStreamReader( 90 | instream)); 91 | 92 | String ans = new String(""); 93 | build = new String(""); 94 | while ((ans = str.readLine()) != null) { 95 | build = build + ans; 96 | Log.d("JSON", ans); 97 | } 98 | 99 | } 100 | 101 | } catch (ClientProtocolException e) { 102 | // TODO Auto-generated catch block 103 | e.printStackTrace(); 104 | } catch (IOException e) { 105 | // TODO Auto-generated catch block 106 | e.printStackTrace(); 107 | } 108 | 109 | 110 | 111 | try 112 | { 113 | JSONArray arr = new JSONArray(build); 114 | String arrlen = Integer.toString(arr.length()); 115 | JSONObject na = arr.getJSONObject(0); 116 | JSONArray ingna = na.getJSONArray("unavailable"); 117 | String [] ingr = new String[ingna.length()]; 118 | for(int k=0;k parent, View view, 187 | int position, long id) { 188 | 189 | } 190 | 191 | @Override 192 | public void onItemClick(AdapterView arg0, View arg1, int arg2, 193 | long arg3) { 194 | // TODO Auto-generated method stub 195 | menulist sr1 = items.get(arg2); 196 | 197 | String nn=sr1.getName(); 198 | int cat = 5; 199 | detailsit.putExtras(g); 200 | detailsit.putExtra("category", cat); 201 | detailsit.putExtra("food", nn); 202 | 203 | startActivity(detailsit); 204 | } 205 | 206 | } 207 | 208 | 209 | 210 | private class homeListener implements OnClickListener { 211 | 212 | @Override 213 | public void onClick(View arg0) { 214 | // TODO Auto-generated method stub 215 | 216 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 217 | homeit.putExtras(g); 218 | startActivity(homeit); 219 | } 220 | 221 | } 222 | 223 | private class menuListener implements OnClickListener { 224 | 225 | @Override 226 | public void onClick(View arg0) { 227 | // TODO Auto-generated method stub 228 | 229 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 230 | menuit.putExtras(g); 231 | startActivity(menuit); 232 | } 233 | 234 | } 235 | 236 | 237 | private class orderListener implements OnClickListener { 238 | 239 | @Override 240 | public void onClick(View arg0) { 241 | // TODO Auto-generated method stub 242 | 243 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 244 | orderit.putExtras(g); 245 | startActivity(orderit); 246 | } 247 | 248 | } 249 | 250 | 251 | private class helpListener implements OnClickListener { 252 | 253 | @Override 254 | public void onClick(View arg0) { 255 | // TODO Auto-generated method stub 256 | 257 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 258 | helpit.putExtras(g); 259 | startActivity(helpit); 260 | } 261 | 262 | } 263 | 264 | private class callwaiterListener implements OnClickListener { 265 | 266 | @Override 267 | public void onClick(View arg0) { 268 | // TODO Auto-generated method stub 269 | 270 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 271 | ArrayList nameValuePairs = new ArrayList(); 272 | final String tmDevice, tmSerial, tmPhone, androidId; 273 | tmDevice = "" + tm.getDeviceId(); 274 | tmSerial = "" + tm.getSimSerialNumber(); 275 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 276 | 277 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 278 | String deviceId = deviceUuid.toString(); 279 | 280 | 281 | 282 | 283 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 284 | System.out.println(deviceId); 285 | 286 | 287 | try 288 | { 289 | 290 | HttpClient httpclient = new DefaultHttpClient(); 291 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 292 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 293 | HttpResponse response = httpclient.execute(httppost); 294 | HttpEntity entity = response.getEntity(); 295 | 296 | 297 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 298 | } 299 | catch(Exception e) 300 | { 301 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 302 | } 303 | finally{ 304 | } 305 | 306 | } 307 | 308 | 309 | } 310 | 311 | 312 | 313 | 314 | @Override 315 | public void onBackPressed() { 316 | menuit.putExtras(g); 317 | startActivity(menuit); 318 | return; 319 | } 320 | 321 | } 322 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/Soups.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | import java.util.ArrayList; 8 | import java.util.UUID; 9 | 10 | import org.apache.http.HttpEntity; 11 | import org.apache.http.HttpResponse; 12 | import org.apache.http.NameValuePair; 13 | import org.apache.http.client.ClientProtocolException; 14 | import org.apache.http.client.HttpClient; 15 | import org.apache.http.client.entity.UrlEncodedFormEntity; 16 | import org.apache.http.client.methods.HttpGet; 17 | import org.apache.http.client.methods.HttpPost; 18 | import org.apache.http.impl.client.DefaultHttpClient; 19 | import org.apache.http.message.BasicNameValuePair; 20 | import org.json.JSONArray; 21 | import org.json.JSONException; 22 | import org.json.JSONObject; 23 | 24 | import android.app.Activity; 25 | import android.app.AlertDialog; 26 | import android.content.Context; 27 | import android.content.Intent; 28 | import android.os.Bundle; 29 | import android.telephony.TelephonyManager; 30 | import android.util.Log; 31 | import android.view.View; 32 | import android.view.View.OnClickListener; 33 | import android.widget.AdapterView; 34 | import android.widget.AdapterView.OnItemClickListener; 35 | import android.widget.ArrayAdapter; 36 | import android.widget.Button; 37 | import android.widget.ListView; 38 | import android.widget.Toast; 39 | 40 | public class Soups extends Activity { 41 | 42 | /** Called when the activity is first created. */ 43 | 44 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 45 | Intent homeit, menuit, orderit, helpit, detailsit; 46 | ListView lv1; 47 | ArrayAdapter adapter; 48 | Bundle g; 49 | String build = null; 50 | 51 | ArrayList items = new ArrayList(); 52 | AlertDialog.Builder alert; 53 | boolean temp=true; 54 | int z; 55 | int argv; 56 | 57 | 58 | 59 | @Override 60 | public void onCreate(Bundle savedInstanceState) { 61 | super.onCreate(savedInstanceState); 62 | setContentView(R.layout.menulist); 63 | 64 | g = getIntent().getExtras(); 65 | 66 | homeButton = (Button)findViewById(R.id.Button01); 67 | menuButton = (Button)findViewById(R.id.Button02); 68 | orderButton = (Button)findViewById(R.id.Button03); 69 | helpButton = (Button)findViewById(R.id.Button04); 70 | callwaiterButton = (Button)findViewById(R.id.Button05); 71 | homeit = new Intent(getBaseContext(), main.class); 72 | menuit = new Intent(getBaseContext(), Menu.class); 73 | helpit = new Intent(getBaseContext(), Help.class); 74 | orderit = new Intent(getBaseContext(), ViewOrder.class); 75 | detailsit = new Intent(getBaseContext(), FoodDetails.class); 76 | 77 | final ListView lv1 = (ListView) findViewById(R.id.menu); 78 | 79 | 80 | HttpClient httpclient = new DefaultHttpClient(); 81 | //HttpGet httpget = new HttpGet("http://192.168.11.3/lab/soups.json"); 82 | HttpGet httpget = new HttpGet("http://192.168.11.3/lab/soups.json"); 83 | 84 | 85 | 86 | try { 87 | 88 | HttpResponse response = httpclient.execute(httpget); 89 | HttpEntity entity = response.getEntity(); 90 | 91 | if (entity != null) { 92 | InputStream instream = entity.getContent(); 93 | BufferedReader str = new BufferedReader(new InputStreamReader( 94 | instream)); 95 | 96 | String ans = new String(""); 97 | build = new String(""); 98 | while ((ans = str.readLine()) != null) { 99 | build = build + ans; 100 | Log.d("JSON", ans); 101 | } 102 | 103 | } 104 | 105 | } catch (ClientProtocolException e) { 106 | // TODO Auto-generated catch block 107 | e.printStackTrace(); 108 | } catch (IOException e) { 109 | // TODO Auto-generated catch block 110 | e.printStackTrace(); 111 | } 112 | 113 | 114 | 115 | try 116 | { 117 | JSONArray arr = new JSONArray(build); 118 | String arrlen = Integer.toString(arr.length()); 119 | JSONObject na = arr.getJSONObject(0); 120 | JSONArray ingna = na.getJSONArray("unavailable"); 121 | String [] ingr = new String[ingna.length()]; 122 | for(int k=0;k parent, View view, 189 | int position, long id) { 190 | 191 | } 192 | 193 | @Override 194 | public void onItemClick(AdapterView arg0, View arg1, int arg2, 195 | long arg3) { 196 | // TODO Auto-generated method stub 197 | menulist sr1 = items.get(arg2); 198 | 199 | String nn=sr1.getName(); 200 | int cat = 3; 201 | detailsit.putExtras(g); 202 | detailsit.putExtra("category", cat); 203 | detailsit.putExtra("food", nn); 204 | 205 | startActivity(detailsit); 206 | } 207 | 208 | } 209 | 210 | 211 | 212 | private class homeListener implements OnClickListener { 213 | 214 | @Override 215 | public void onClick(View arg0) { 216 | // TODO Auto-generated method stub 217 | 218 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_LONG).show(); 219 | homeit.putExtras(g); 220 | startActivity(homeit); 221 | } 222 | 223 | } 224 | 225 | private class menuListener implements OnClickListener { 226 | 227 | @Override 228 | public void onClick(View arg0) { 229 | // TODO Auto-generated method stub 230 | 231 | menuit.putExtras(g); 232 | startActivity(menuit); 233 | } 234 | 235 | } 236 | 237 | 238 | private class orderListener implements OnClickListener { 239 | 240 | @Override 241 | public void onClick(View arg0) { 242 | // TODO Auto-generated method stub 243 | 244 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_LONG).show(); 245 | orderit.putExtras(g); 246 | startActivity(orderit); 247 | } 248 | 249 | } 250 | 251 | 252 | private class helpListener implements OnClickListener { 253 | 254 | @Override 255 | public void onClick(View arg0) { 256 | // TODO Auto-generated method stub 257 | 258 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_LONG).show(); 259 | helpit.putExtras(g); 260 | startActivity(helpit); 261 | } 262 | 263 | } 264 | 265 | private class callwaiterListener implements OnClickListener { 266 | 267 | @Override 268 | public void onClick(View arg0) { 269 | // TODO Auto-generated method stub 270 | 271 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 272 | ArrayList nameValuePairs = new ArrayList(); 273 | final String tmDevice, tmSerial, tmPhone, androidId; 274 | tmDevice = "" + tm.getDeviceId(); 275 | tmSerial = "" + tm.getSimSerialNumber(); 276 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 277 | 278 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 279 | String deviceId = deviceUuid.toString(); 280 | 281 | 282 | 283 | 284 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 285 | System.out.println(deviceId); 286 | 287 | 288 | try 289 | { 290 | 291 | HttpClient httpclient = new DefaultHttpClient(); 292 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 293 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 294 | HttpResponse response = httpclient.execute(httppost); 295 | HttpEntity entity = response.getEntity(); 296 | 297 | 298 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 299 | } 300 | catch(Exception e) 301 | { 302 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 303 | } 304 | finally{ 305 | } 306 | 307 | } 308 | 309 | } 310 | 311 | 312 | 313 | @Override 314 | public void onBackPressed() { 315 | menuit.putExtras(g); 316 | startActivity(menuit); 317 | return; 318 | } 319 | 320 | } 321 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/main.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.util.ArrayList; 4 | import java.util.UUID; 5 | 6 | import org.apache.http.HttpEntity; 7 | import org.apache.http.HttpResponse; 8 | import org.apache.http.NameValuePair; 9 | import org.apache.http.client.HttpClient; 10 | import org.apache.http.client.entity.UrlEncodedFormEntity; 11 | import org.apache.http.client.methods.HttpPost; 12 | import org.apache.http.impl.client.DefaultHttpClient; 13 | import org.apache.http.message.BasicNameValuePair; 14 | 15 | import android.app.Activity; 16 | import android.content.Context; 17 | import android.content.Intent; 18 | import android.os.Bundle; 19 | import android.telephony.TelephonyManager; 20 | import android.view.View; 21 | import android.view.View.OnClickListener; 22 | import android.widget.Button; 23 | import android.widget.Toast; 24 | 25 | public class main extends Activity { 26 | /** Called when the activity is first created. */ 27 | 28 | Button menuButton, homeButton, callwaiterButton, orderButton, helpButton; 29 | Intent homeit, menuit, orderit, helpit; 30 | Bundle g; 31 | 32 | @Override 33 | public void onBackPressed() { 34 | return; 35 | } 36 | 37 | @Override 38 | public void onCreate(Bundle savedInstanceState) { 39 | super.onCreate(savedInstanceState); 40 | setContentView(R.layout.main); 41 | 42 | g = getIntent().getExtras(); 43 | 44 | homeButton = (Button)findViewById(R.id.Button01); 45 | menuButton = (Button)findViewById(R.id.Button02); 46 | orderButton = (Button)findViewById(R.id.Button03); 47 | helpButton = (Button)findViewById(R.id.Button04); 48 | callwaiterButton = (Button)findViewById(R.id.Button05); 49 | homeit = new Intent(getBaseContext(), main.class); 50 | menuit = new Intent(getBaseContext(), Menu.class); 51 | helpit = new Intent(getBaseContext(), Help.class); 52 | orderit = new Intent(getBaseContext(), ViewOrder.class); 53 | 54 | homeButton.setOnClickListener((OnClickListener) new homeListener()); 55 | menuButton.setOnClickListener((OnClickListener) new menuListener()); 56 | orderButton.setOnClickListener((OnClickListener) new orderListener()); 57 | helpButton.setOnClickListener((OnClickListener) new helpListener()); 58 | callwaiterButton.setOnClickListener((OnClickListener) new callwaiterListener()); 59 | 60 | 61 | } 62 | 63 | private class homeListener implements OnClickListener { 64 | 65 | @Override 66 | public void onClick(View arg0) { 67 | // TODO Auto-generated method stub 68 | 69 | Toast.makeText(getApplicationContext(), "Home Screen Loading...", Toast.LENGTH_SHORT).show(); 70 | homeit.putExtras(g); 71 | startActivity(homeit); 72 | } 73 | 74 | } 75 | 76 | private class menuListener implements OnClickListener { 77 | 78 | @Override 79 | public void onClick(View arg0) { 80 | // TODO Auto-generated method stub 81 | 82 | Toast.makeText(getApplicationContext(), "Loading Menu...", Toast.LENGTH_SHORT).show(); 83 | menuit.putExtras(g); 84 | startActivity(menuit); 85 | } 86 | 87 | } 88 | 89 | 90 | private class orderListener implements OnClickListener { 91 | 92 | @Override 93 | public void onClick(View arg0) { 94 | // TODO Auto-generated method stub 95 | 96 | Toast.makeText(getApplicationContext(), "Loading your current Order...", Toast.LENGTH_SHORT).show(); 97 | orderit.putExtras(g); 98 | startActivity(orderit); 99 | } 100 | 101 | } 102 | 103 | 104 | private class helpListener implements OnClickListener { 105 | 106 | @Override 107 | public void onClick(View arg0) { 108 | // TODO Auto-generated method stub 109 | 110 | Toast.makeText(getApplicationContext(), "Loading Help Screen...", Toast.LENGTH_SHORT).show(); 111 | helpit.putExtras(g); 112 | startActivity(helpit); 113 | } 114 | 115 | } 116 | 117 | private class callwaiterListener implements OnClickListener { 118 | 119 | @Override 120 | public void onClick(View arg0) { 121 | // TODO Auto-generated method stub 122 | 123 | final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 124 | ArrayList nameValuePairs = new ArrayList(); 125 | final String tmDevice, tmSerial, tmPhone, androidId; 126 | tmDevice = "" + tm.getDeviceId(); 127 | tmSerial = "" + tm.getSimSerialNumber(); 128 | androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 129 | 130 | UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 131 | String deviceId = deviceUuid.toString(); 132 | 133 | 134 | 135 | 136 | nameValuePairs.add(new BasicNameValuePair("deviceId", deviceId)); 137 | System.out.println(deviceId); 138 | 139 | 140 | try 141 | { 142 | 143 | HttpClient httpclient = new DefaultHttpClient(); 144 | HttpPost httppost = new HttpPost("http://192.168.11.3/lab/alert.php"); 145 | httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); 146 | HttpResponse response = httpclient.execute(httppost); 147 | HttpEntity entity = response.getEntity(); 148 | 149 | 150 | Toast.makeText(getApplicationContext(), "Calling Waiter...", Toast.LENGTH_LONG).show(); 151 | } 152 | catch(Exception e) 153 | { 154 | Toast.makeText(getBaseContext(),"Error in http connection "+e.toString(), Toast.LENGTH_LONG).show(); 155 | } 156 | finally{ 157 | } 158 | 159 | } 160 | 161 | } 162 | 163 | } 164 | 165 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/menuadapter.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.util.ArrayList; 4 | 5 | import android.content.Context; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.BaseAdapter; 10 | import android.widget.TextView; 11 | 12 | public class menuadapter extends BaseAdapter 13 | { 14 | private static ArrayList menuitems; 15 | 16 | private LayoutInflater mInflater; 17 | 18 | public menuadapter(Context context, ArrayList results) 19 | { 20 | menuitems = results; 21 | mInflater = LayoutInflater.from(context); 22 | } 23 | 24 | public int getCount() 25 | { 26 | return menuitems.size(); 27 | } 28 | 29 | public Object getItem(int position) 30 | { 31 | return menuitems.get(position); 32 | } 33 | 34 | public long getItemId(int position) 35 | { 36 | return position; 37 | } 38 | 39 | public View getView(int position, View convertView, ViewGroup parent) 40 | { 41 | ViewHolder holder; 42 | if (convertView == null) 43 | { 44 | convertView = mInflater.inflate(R.layout.lview, null); 45 | holder = new ViewHolder(); 46 | 47 | 48 | holder.txtName = (TextView) convertView.findViewById(R.id.name); 49 | holder.txtDescp = (TextView) convertView.findViewById(R.id.description); 50 | holder.txtPrice = (TextView) convertView.findViewById(R.id.price); 51 | 52 | convertView.setTag(holder); 53 | } 54 | else 55 | { 56 | holder = (ViewHolder) convertView.getTag(); 57 | } 58 | 59 | holder.txtName.setText(menuitems.get(position).getName()); 60 | holder.txtDescp.setText(menuitems.get(position).getdescription()); 61 | holder.txtPrice.setText(menuitems.get(position).getprice()); 62 | 63 | return convertView; 64 | } 65 | 66 | static class ViewHolder 67 | { 68 | TextView txtName; 69 | TextView txtDescp; 70 | TextView txtPrice; 71 | } 72 | } 73 | 74 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/menulist.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | public class menulist 4 | { 5 | 6 | private String name = ""; 7 | private String description = ""; 8 | private String price = ""; 9 | 10 | public void setName(String name) { 11 | this.name = name; 12 | } 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | 18 | public void setdescription(String description) { 19 | this.description = description; 20 | } 21 | 22 | public String getdescription() { 23 | return description; 24 | } 25 | 26 | public void setprice(String price) { 27 | this.price = price; 28 | } 29 | 30 | public String getprice() { 31 | return price; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/menulist1.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | public class menulist1 4 | { 5 | 6 | private String name = ""; 7 | private String quantity = ""; 8 | private String amount = ""; 9 | 10 | public void setName(String name) { 11 | this.name = name; 12 | } 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | 18 | public void setquantity(String quantity) { 19 | this.quantity = quantity; 20 | } 21 | 22 | public String getquantity() { 23 | return quantity; 24 | } 25 | 26 | public void setamount(String amount) { 27 | this.amount = amount; 28 | } 29 | 30 | public String getamount() { 31 | return amount; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/orderadapter.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.util.ArrayList; 4 | 5 | import android.content.Context; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.BaseAdapter; 10 | import android.widget.TextView; 11 | 12 | public class orderadapter extends BaseAdapter 13 | { 14 | private static ArrayList menuitems; 15 | 16 | private LayoutInflater mInflater; 17 | 18 | public orderadapter(Context context, ArrayList results) 19 | { 20 | menuitems = results; 21 | mInflater = LayoutInflater.from(context); 22 | } 23 | 24 | public int getCount() 25 | { 26 | return menuitems.size(); 27 | } 28 | 29 | public Object getItem(int position) 30 | { 31 | return menuitems.get(position); 32 | } 33 | 34 | public long getItemId(int position) 35 | { 36 | return position; 37 | } 38 | 39 | public View getView(int position, View convertView, ViewGroup parent) 40 | { 41 | ViewHolder holder; 42 | if (convertView == null) 43 | { 44 | convertView = mInflater.inflate(R.layout.menulist1, null); 45 | holder = new ViewHolder(); 46 | 47 | 48 | holder.txtName = (TextView) convertView.findViewById(R.id.TextView01); 49 | holder.txtQty = (TextView) convertView.findViewById(R.id.TextView02); 50 | holder.txtAmount = (TextView) convertView.findViewById(R.id.TextView03); 51 | 52 | convertView.setTag(holder); 53 | } 54 | else 55 | { 56 | holder = (ViewHolder) convertView.getTag(); 57 | } 58 | 59 | holder.txtName.setText(menuitems.get(position).getName()); 60 | holder.txtQty.setText(menuitems.get(position).getquantity()); 61 | holder.txtAmount.setText(menuitems.get(position).getamount()); 62 | 63 | return convertView; 64 | } 65 | 66 | static class ViewHolder 67 | { 68 | TextView txtName; 69 | TextView txtQty; 70 | TextView txtAmount; 71 | } 72 | } 73 | 74 | -------------------------------------------------------------------------------- /MenuApp_Android/src/com/project/test.java: -------------------------------------------------------------------------------- 1 | package com.project; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | import java.io.InputStreamReader; 7 | 8 | import org.apache.http.HttpEntity; 9 | import org.apache.http.HttpResponse; 10 | import org.apache.http.client.ClientProtocolException; 11 | import org.apache.http.client.HttpClient; 12 | import org.apache.http.client.methods.HttpGet; 13 | import org.apache.http.impl.client.DefaultHttpClient; 14 | import org.json.JSONArray; 15 | import org.json.JSONException; 16 | import org.json.JSONObject; 17 | 18 | import android.app.Activity; 19 | import android.os.Bundle; 20 | import android.util.Log; 21 | import android.widget.TextView; 22 | import android.widget.Toast; 23 | 24 | public class test extends Activity 25 | { 26 | 27 | Bundle g; 28 | TextView tv; 29 | public void onCreate(Bundle savedInstanceState) 30 | 31 | { 32 | super.onCreate(savedInstanceState); 33 | setContentView(R.layout.vieworder); 34 | 35 | // Toast.makeText(getBaseContext(), "yoyoyo", Toast.LENGTH_SHORT).show(); 36 | 37 | g = getIntent().getExtras(); 38 | 39 | int i,j; 40 | for(i=0;i<100;i++) 41 | { 42 | if(g.getIntArray("tag")[i]==0) 43 | break; 44 | } 45 | 46 | 47 | 48 | HttpClient httpclient = new DefaultHttpClient(); 49 | HttpGet httpget = null; 50 | 51 | 52 | 53 | for(j=0;j