Õª Òª
Ëæ×ÅÐÅÏ¢¼¼ÊõµÄ²»¶Ï¸üУ¬ÌرðÊÇ07Äê¹È¸è¹«Ë¾ÍƳöÁËAndroid¿ª·ÅÔ´Â룬ÈÃAndroid²Ù×÷ϵͳ³ÉΪÁËÒƶ¯Æ½Ì¨µÄ³è¶ù£¬¶þάÂëµÄ¹ã·ºÓ¦ÓúÍAndroidÖÇÄÜÊÖ»úµÄ½øÒ»²½ÆÕ¼°£¬Í¨¹ýAndroidƽ̨ϵÄÉãÏñºÍ»æͼ¹¦ÄÜ£¬ÀûÓöþάÂëµÄ±àÂëºÍ½âÂëÔÀí£¬Í¨¹ýAndroidÊÖ»ú¶Ô¶þάÂëµÄÊý¾Ý½øÐнâÎöºÍ±àÂ룬ʵÏÖ¶Ô¶þάÂë¿ìµÝÉú³ÉºÍʶ±ðϵͳ¡£
±¾Éè¼ÆÊÇÒ»¸ö»ùÓÚandriodƽ̨µÄ¶þάÂë¿ìµÝÐÅÏ¢²éѯϵͳ£¬²ÉÓÃC/Sģʽ£¬ÆÊÎöÁË»ùÓÚ¶þάÂë¿ìµÝʶ±ðϵͳµÄÂß¼¼°¹¦ÄÜ»®·Ö£¬²¢Í¨¹ý¶Ô¿ìËÙÏìÓ¦¾ØÕóÂ루QR Code£©Éú³ÉºÍʶ±ð¼¼Êõ£¬Í¨¹ýÖÇÄÜÊÖ»úÉãÏñͷʶ±ð¶þάÂëµÄÐÅÏ¢¡£±¾ÏµÍ³²ÉÓÃJavaµÄMVCģʽ¼°eclipse¿ª·¢¹¤¾ß£¬´ÓÐèÇó·ÖÎöµ½ÓÎÏ·µÄÉè¼Æ¡¢ÊµÏÖ¡¢µ÷ÊÔ£¬×îÖÕʵÏÖʵÏÖÁËÊÖ»ú¶þάÂëʶ±ðºÍÉú³É¹¦ÄÜ¡£²¢¾¹ýÑϸñµÄ²âÊÔ£¬¿ÉÒÔÔÚÊÖ»úÉÏÕý³£Ê¹Óá£
¹Ø¼ü´Ê£ºÊÖ»ú£»Android£»¶þάÂë¿ìµÝ£» Java
Abstract
Along with the information technology unceasing renewal, especially 07 years Google Corporation has launched the Android open source operating system, Android has become the darling of the mobile platform, widely used two-dimensional code and Android intelligent mobile phone further popularization, through the Android platform under the camera and drawing function, the coding and decoding principle of two-dimensional code, through the Android mobile phone the two-dimensional code data parsing and coding, the realization of two-dimensional code express generation and recognition system.
The design is based on the two-dimensional code express information query system of Andriod platform, using C/S model, analyzes the logic and function classification of two-dimensional code recognition system based on the delivery, and by the quick response code (QR Code) generation and recognition technology, through the intelligent mobile phone camera to identify two-dimension code information. The system uses the Java mode of MVC and eclipse development tools, from demand analysis to the game design, implementation, debugging, and ultimately to achieve the mobile phone two-dimensional code recognition and generation function. After rigorous testing, and can be used in the mobile phone.
Key words: mobile phone; Android; two-dimensional code Express; Java
Ŀ ¼
ÌâÄ¿£º»ùÓÚandriodƽ̨µÄ¶þάÂë¿ìµÝÐÅÏ¢²éѯϵͳ II
Õª Òª III
Abstract IV
µÚÒ»Õ ¸ÅÊö 1
1.1 Ñо¿±³¾° 1
1.2 Ñо¿Ä¿µÄ¼°ÒâÒå 1
1.3 AndroidÏÖ×´·ÖÎö 2
1.4 AndroidϵͳµÄËÄ´ó×é¼þ 3
1.5 ¿ª·¢¼¼Êõ¼°Èí¼þ½éÉÜ 4
1.5.1 Java¼¼Êõ 4
1.5.2 Androidƽ̨ 5
1.5.3 AndroidÄÚºË 6
1.5.4 Tomcat 7
1.5.5 Lib 7
1.5 ±¾ÕÂС½á 7
µÚ¶þÕÂAndroidƽ̨´î½¨ 8
2.1 AndroidµÄ¼Ü¹¹·ÖÎö 8
2.2 AndroidÌØÕ÷ 8
2.3 Android¼Ü¹¹ 8
2.3.1¹Ø¼üÓ¦ÓóÌÐò 9
2.3.2 Ó¦ÓóÌÐò¿ò¼Ü 9
2.3.3½ø³Ì¹ÜÀí»úÖÆ 9
2.3.4Ó¦ÓõÄ×é³É 10
2.3.5 ϵͳÔËÐпâ 11
2.4 AndroidÓ¦ÓõĹ¹³ÉºÍ¹¤×÷»úÖÆ 12
2.5 AndroidÓëÆäËûÊÖ»ú²Ù×÷ϵͳµÄ±È½Ï 12
2.6 Android»ù±¾ÖªÊ¶¼ò½é 14
2.6.1 IntentÖ®Action 14
2.6.2 IntentÖ®ÀàÃûÌøת 14
2.6.3 SharedPreferences¼ò½é 15
2.6.4 SQLite¼ò½é 16
2.7 ±¾ÕÂС½á 17
µÚÈýÕ ϵͳÐèÇó·ÖÎö 18
3.1¶þάÂë¼¼Êõ 18
3.2¿ÉÐÐÐÔ·ÖÎö 19
3.2.1¾¼ÃÉϵĿÉÐÐÐÔ 19
3.2.2¼¼ÊõÉϵĿÉÐÐÐÔ 19
3.2.3²Ù×÷ÉϵĿÉÐÐÐÔ 19
3.3ϵͳÓû§ÓÃÀýͼ 20
3.4¹¦ÄÜÐèÇó·ÖÎö 20
3.5 ÔËÐл·¾³ÒªÇó 21
µÚËÄÕ¡¡ÏµÍ³×ÜÌåÉè¼Æ 22
4.1ϵͳ¹¦Äܽṹͼ 22
4.2 Êý¾ÝÁ÷³Ì·ÖÎö 22
µÚÎåÕ ϵͳ¹¦ÄÜʵÏÖ 24
5.1 ϵͳÖ÷½çÃæʵÏÖ 24
5.2 ɨÃè¶þάÂë¿ìµÝ¹¦ÄÜʵÏÖ 25
5.3 Éú³É¶þάÂë¿ìµÝ¹¦ÄÜʵÏÖ 28
5.4 ·ÖÏí¶þάÂë¿ìµÝ¹¦ÄÜʵÏÖ 30
µÚÁùÕ ϵͳ²âÊÔÓëά»¤ 33
6.1 Èí¼þ²âÊÔ¼ò½é 33
6.2 ϵͳ²âÊÔµÄÄ¿µÄºÍÒâÒå 34
6.3 ²âÊÔ¹ý³Ì 34
½á¡¡ÂÛ 35
Ö л 36
²Î¿¼ÎÄÏ× 37
µÚÒ»Õ ¸ÅÊö
1.1 Ñо¿±³¾°
Ëæ×ÅÒƶ¯Í¨Ðŵķ¢Õ¹ÒÔ¼°»¥ÁªÍøÏòÒƶ¯Öն˵ÄÆÕ¼°£¬ÍøÂçºÍÓû§¶ÔÒƶ¯Öն˵ÄÒªÇóÔ½À´Ô½¸ß£¬¶øSymbian£¬Windows Mobile£¬PalmOSµÈÊÖ»úƽ̨¹ýÓÚ·â±Õ£¬²»ÄܺܺõÄÂú×ãÓû§µÄÐèÇó£¬Òò´ËÊг¡ÆÈÇÐÐèÒªÒ»¸ö¿ª·ÅÐÔºÜÇ¿µÄƽ̨¡£¾¹ý¶àÄêµÄ·¢Õ¹£¬µÚÈý´úÊý×ÖͨÐÅ(3G)¼¼Êõ»ñµÃÁ˹㷺µÄ½ÓÊÜ£¬ËüΪÒƶ¯ÖÕ¶ËÓû§´øÀ´Á˸ü¿ìµÄÊý¾Ý´«ÊäËÙÂÊ¡£AndroidÊÇÒ»Ì×ÕæÕýÒâÒåÉϵĿª·ÅÐÔµÄÒƶ¯É豸×ÛºÏƽ̨£¬Ëü°üÀ¨²Ù×÷ϵͳ¡¢Öмä¼þºÍһЩ¹Ø¼üµÄƽ̨ӦÓá£AndroidÊÇÓÉLinux+Java¹¹³ÉµÄ¿ªÔ´Èí¼þ£¬ÔÊÐíËùÓг§É̺͸öÈËÔÚÆä»ù´¡ÉϽøÐпª·¢¡£Androidƽ̨µÄ¿ª·ÅÐÔµÈÌصã¼ÈÄÜ´Ù½ø¼¼Êõ(°üÀ¨Æ½Ì¨×ÔÉí)µÄ´´Ð£¬ÓÖÓÐÖúÓÚ½µµÍ¿ª·¢³É±¾£¬»¹¿ÉÒÔʹÔËÓªÉÌÄܷdz£·½±ãµØÖƶ¨×Ô¼ºµÄÌØÉ«»¯µÄ²úÆ·¡£Òò´Ë£¬Ëü¾ßÓкܴóµÄÊг¡·¢Õ¹Ç±Á¦¡£
¶þάÂëµÄ³öÏÖÊÇΪÁ˽â¾öһάÌõÂëÎÞ·¨½â¾öµÄÎÊÌâ¶ø²úÉú¡£Òò¶øËü¾ßÓиßÃܶȡ¢¸ß¿É¿¿ÐÔµÈÌص㣬ËùÒÔ¿ÉÒÔÓÃËü±íʾÊý¾ÝÎļþ£¨°üÀ¨ºº×ÖÎļþ£©¡¢Í¼ÏñµÈ¡£¶þάÂëÊÇ´óÈÝÁ¿¡¢¸ß¿É¿¿ÐÔÐÅϢʵÏÖ´æ´¢¡¢Ð¯´ø²¢×Ô¶¯ÊʶÁµÄ×îÀíÏëµÄ·½·¨¡£ÊÖ»ú¶þάÂëµÄÒµÎñÀàÐÍÖ÷ÒªÓÐÁ½ÖÖ£ºÒ»ÊÇʶ¶Á£¬¾ÍÊǽèÖúÓ¦ÓÃÈí¼þÖ±½Ó¶Á³öÂëÉÏÐÅÏ¢£¬Ëü¿ÉÒÔÑÜÉú³öÉÏÍøä¯ÀÀ¡¢µç×Ó¹ºÎïµÈ¶àÖÖÓ¦Ó㻶þÊDZ»¶Á£¬¾ÍÊÇÓÉÉ̼ÒÏòÊÖ»úÓû§·¢ËͶþάÂëÐÅÏ¢£¬Í¨¹ýÉ豸ʶ¶Á£¬¿É×÷Éí·Ýʶ±ð¡¢µç×Óƾ֤µÈÖ®Óá£