Õª Òª
Androidµã²ËϵͳÊÇ»ùÓÚAndroidÊÖ»úµÄÒ»¿îÍøÂçÓ¦ÓÃÈí¼þ£¬Ä¿µÄÔÚÓÚΪ²Í¹ÝÓû§ºÍ²Í¹ÝÌṩ¼«´óµÄ±ãÀû¡£Ó¦ÓôËÈí¼þ£¬Óû§¿ÉÒÔÇáËɱã½ÝµØʵÏÖ×Ô¼ºµÄµã²ËÒªÇó¡£ ´Ëϵͳ»ùÓÚC/S½á¹¹£¬²ÉÓÃServletºÍMySQL±à³ÌÀ´ÊµÏÖ¶ÔÊý¾ÝµÄ´æ´¢ºÍ²Ù×÷¡£ÊÖ»ú¿Í»§¶ËÖ÷ÒªÓ¦ÓÃAndroid UI¿ª·¢¼¼Êõ£¬Ê¹ÓÃActivity×é¼þ£¬²¢×ñÕÕMVCģʽ½øÐпª·¢¡£ÍøÂçÊý¾Ý½»»¥Ôò×ñÕÕHTTPÐÒéÀ´ÊµÏÖÓë·þÎñÆ÷¶ËµÄͨÐÅ¡£ ±¾ÎĵÚÒ»ÕÂÐ÷ÂÛ²¿·Ö¶ÔÕû¸öϵͳºÍ¿ª·¢¹ý³ÌÖÐËùÓõ½µÄ¼¼Êõ×öÁËÒ»¸ö¼òÂԵĽéÉÜ¡£µÚ¶þÕÂÊÇϵͳµÄÐèÇó·ÖÎöºÍÊý¾Ý¿âµÄÉè¼Æ£¬µÚÈýÕÂÊÇÖ÷Ì幦ÄܵıàÂëʵÏÖ£¬½éÉܱ¾ÏµÍ³¸÷¸ö¹¦ÄÜÄ£¿éµÄ¾ßÌåʵÏÖ¡£µÚËÄÕÂÊÇϵͳ²âÊԺ;À´í²¿·Ö£¬¶ÔÕû¸öϵͳ½øÐÐÈ«ÃæµÄ²âÊÔ¡£×îºóÒ»ÕÂÊÇ×ܽᡣ
¹Ø¼ü´Ê£ºMVC£¬Android£¬MySQL£¬Eclipse£¬Êý¾Ý´æ´¢ ABSTRACT
Android menu-ordering system is an internet-applied application. It aims at offering great convenience to the customers and restaurants. By widely applying the application, customers can order dishes directly in the future. The system is based on the C/S structure. Using the techlonogies of severlet developing and MySQL programming, the system controls and manages data efficiently. The author used Android UI developing techlonogy to design the interface on cellphones, which applied the Activity module and followed the principle of MVC. As for the internet information transformation, the system obeys HTTP file transfor protocol to accomplish the communication with servers. The first chapter breifly introduced the system and all technologies involed. The second chapter presented the requirement analysis and the database structure design. The third chapter described the sytem development procedures. The forth chapter is about the testing and debugging.The last chapter is the conclusion.
Keywords: £ºMVC£¬Android£¬MySQL£¬Eclipse
Ä¿ ¼ Õª Òª I ABSTRACT II µÚ1Õ Ð÷ÂÛ 1 1.1 AndroidÊÖ»úµã²ËÈí¼þ¼ò½é 1 1.2 Androidƽ̨¼òµ¥½éÉÜ 1 1.3 Ö÷Òª¿ª·¢Ë¼ÏëºÍ¼¼Êõ 1 1.3.1 MVCģʽ 1 1.3.2 MySQL 2 1.3.3ÕûÌå¼¼Êõ 2 µÚ2Õ ϵͳÐèÇó·ÖÎöºÍÉè¼Æ 4 2.1ϵͳ·ÖÎö 4 2.1.1 ¿ÉÐÐÐÔ·ÖÎö 4 2.1.2 ϵͳÐèÇó·ÖÎö 5 2.1.3 ϵͳ¹¦ÄÜÄ£¿é 5 2.2 Êý¾Ý¿âÉè¼Æ 6 2.2.1 ±í½á¹¹·ÖÎö 6 2.2.2 ±í½á¹¹¹Øϵ 7 2.2.3 ±íµÄÏêϸÉè¼Æ 8 2.3 Ö÷Òª¿ª·¢¹¤¾ß 9 2.3.1 Eclipse½éÉÜ 9 2.3.2 DroidDraw ½éÉÜ 10 2.3.3 ADT ½éÉÜ 10 µÚ3Õ ϵͳʵÏÖ 11 3.1 Óû§µÇ¼ע²á 11 3.1.1 µÇ¼ע²á˵Ã÷ 11 3.1.2 µÇ¼ע²áʵÏÖ 12 3.2 µã²Ë¹¦ÄÜ 15 3.2.1µã²Ë¹¦ÄÜ˵Ã÷ 15 3.2.2µã²Ë¹¦ÄÜʵÏÖ 17 3.3 ÎҵĶ©µ¥ 18 3.3.1 ¶©µ¥¹ÜÀí˵Ã÷ 18 3.3.2 ¶©µ¥¹ÜÀíʵÏÖ 19 3.4 ½¡¿µ×ÊѶ 20 3.4.1½¡¿µ×ÊѶ˵Ã÷ 20 3.4.2 ½¡¿µ×ÊѶʵÏÖ 20 3.5 ÁªÏµ¿Í·þ 21 3.5.1 ÁªÏµ¿Í»§ËµÃ÷ 21 3.5.2 ÁªÏµ¿Í»§ÊµÏÖ 22 µÚ4Õ ·ÖÎöʵÏÖ½á¹û¼°²âÊÔ 23 4.1 ϵͳʵÏÖ·ÖÎö 23 4.1.1ϵͳ¿ò¼Ü½á¹¹·ÖÎö 23 4.1.2ϵͳ¼Ü¹¹Ä£Ê½·ÖÎö 24 4.2 ϵͳ²âÊÔ 25 4.2.1²âÊÔÄ¿µÄ 25 4.2.2²âÊÔ·½·¨ 25 4.2.3²âÊÔ¹ý³Ì 25 µÚ5Õ ×ܽá 28 ²Î¿¼ÎÄÏ× 29 ¸½ ¼ 30 Ö л 33
µÚ1Õ Ð÷ÂÛ
1.1 AndroidÊÖ»úµã²ËÈí¼þ¼ò½é Android[1]ÊÖ»úÖն˵ã²ËϵͳÊÇÃæÏò¹ã´óʹÓÃAndroidÊÖ»úµÄÓû§ÈËȺ¿ª·¢µÄ£¬ÊÖ»úÓû§°²×°´ËÈí¼þºó¿ÉÒÔÓô˿ͻ§¶ËÈí¼þÀ´½øÐÐÈÕ³£µÄµã²Ë£¬¹¦ÄÜ°üÀ¨£ºµã²Ë¡¢¹ºÎï¡¢ÆÀ·Ö¡¢×ÊѶ¡¢¿Í·þµÈÍêÉƵÄÌåϵ£¬Ê¡È¥È˹¤µã²ËµÄ¸´ÔÓÊÖ¹¤ÀͶ¯ºÍ³ÌÐò£¬ÎªÓû§ºÍ²Í¹Ý½ÚÔ¼±¦¹óµÄʱ¼ä£¬Ìṩ¸ü¶àµÄ±ãÀû¡£¸ÃÈí¼þÓû§Ö»ÒªÐ¯´øÊÖ»úÔÚÁªÍø״̬¾ÍÄÜʹÓøÃÈí¼þ£¬²»ÐèÒª»¨·Ñ¶îÍâµÄ¹ý¶à·ÑÓã¬Èí¼þ²Ù×÷¼òµ¥£¬Ê¹Ó÷½±ã¡£ 1.2 Androidƽ̨¼òµ¥½éÉÜ AndroidÊÇ»ùÓÚLinuxÄں˵IJÙ×÷ϵͳ£¬ÊÇGoogle¹«Ë¾ÔÚ2007Äê11ÔÂ5ÈÕ¹«²¼µÄÊÖ»ú²Ù×÷ϵͳ£¬ÔçÆÚÓÉGoogle¿ª·¢£¬ºóÓÉ¿ª·ÅÊÖ³ÖÉ豸ÁªÃË£¨Open Handset Alliance£©¿ª·¢¡£Ëü²ÉÓÃÁËÈí¼þ¶Ñ²ã£¨software stack£¬ÓÖÃûÒÔÈí¼þµþ²ã£©µÄ¼Ü¹¹£¬Ö÷Òª·ÖΪÈý²¿·Ö¡£µ×²ãLinuxÄÚºËÖ»Ìṩ»ù±¾¹¦ÄÜ£»ÆäËûµÄÓ¦ÓÃÈí¼þÔòÓɸ÷¹«Ë¾×ÔÐпª·¢£¬²¿·Ö³ÌÐòÒÔJava±àд¡£Ä¿Ç°Ö÷ÒªÓ¦ÓÃÓÚÊÖ»ú£¬Æ½°åµçÄÔµÈÊÖ³ÖÉ豸ƽ̨[2]¡£ËüÊÇÒ»¿îÓÅÐãµÄ¿ªÔ´²Ù×÷ϵͳ£¬ÓÉÓÚÆ俪ԴµÄÓÅÊÆ£¬ÎüÒýÁËÖÚ¶àµÄÈí¼þ¿ª·¢ÈËÔ±£¬¼°ÖÚ¶àÓ²¼þ³§ÉÌ£¬Òƶ¯ÔËÓªÉÌ£¬°ëµ¼Ì峧É̵ȡ£ËùÒÔ·¢Õ¹µÄ·Ç³£Ñ¸ÃÍ£¬ÏÖÔÚÊÐÃæÉÏÒ²³öÏÖÁËÖÚ¶àµÄandroid ÊÖ»ú£¬ÕâÖÖ´óÈËȺʹÓõÄÓÅÊÆ£¬Ê¹µÃandroidµÄÓ¦ÓÃÈí¼þ²»¶Ï·¢Õ¹×³´ó[3]¡£
|