-
Android Service ·þÎñ£¨3£©¡ª¡ª bindServiceÓëremoteService
AndroidService·þÎñ£¨Èý£©¡ª¡ªbindServiceÓëremoteServiceÒ»¡¢bindService¼ò½é?bindServiceÊÇ°ó¶¨Service·þÎñ£¬Ö´ÐÐservice·þÎñÖеÄÂß¼Á÷³Ì¡£serviceͨ¹ýContext.startService()·½·¨¿ªÊ¼£¬Í¨¹ýContext.stopService()·½·¨Í£Ö¹£»Ò²¿ÉÒÔͨ¹ýService.stopSelf()·½·¨»òÕßServi...
20
ÈÈ¶È -
Android TraceView¹¤¾ßÊ©ÓÃÏê½â
AndroidTraceView¹¤¾ßʹÓÃÏê½âTraceViewÊÇʲôTraceviewÊÇandroidƽ̨Å䱸һ¸öºÜºÃµÄÐÔÄÜ·ÖÎöµÄ¹¤¾ß¡£Ëü¿ÉÒÔͨ¹ýͼÐλ¯µÄ·½Ê½ÈÃÎÒÃÇÁ˽âÎÒÃÇÒª¸ú×ٵijÌÐòµÄÐÔÄÜ£¬²¢ÇÒÄܾßÌåµ½method¡£TraceviewµÄ×÷ÓÃ1.²é¿´¸ú×Ù´úÂëµÄÖ´ÐÐʱ¼ä£¬·ÖÎöÄÄЩÊǺÄʱ²Ù×÷2.¿ÉÒÔÓÃÓÚ¸ú×Ù·½·¨µÄµ÷Óã¬ÓÈÆäÊÇAndroidFramework²ãµÄ·½·¨µ÷ÓùØϵTraceviewµÄʹÓò½Öè·Ö...
45
ÈÈ¶È -
ÔÉúAndroidËõÂÔͼÌîÂúSD¿¨µÄÓйØÎÊÌâ
ÔÉúAndroidËõÂÔͼÌîÂúSD¿¨µÄÎÊÌâ±¾È˲©¿ÍÔÎÄgoogleÔÉúAndroidÖУ¬MiniThumbFile.javaÀï´æ´¢Í¼Æ¬/ÊÓƵµÄËõÂÔͼµÄËã·¨ÓÐÎÊÌâ¡£¸ÃËã·¨µÄ©¶´Ôì³É΢ËõÂÔͼÎļþ£¨DCIM\.thumbnails\.thumbdata4--1967290299£©·Ç³£ÅÓ´óºÍÓ·Ö×£¬¶à´ï1G£¬ÀíÂÛÉÏ¿ÉÒÔÎÞÏÞ´ó£¬Ö±µ½ÌîÂúSD¿¨ÖØÏÖ²½Ö裺µÚÒ»²½£º²åÈëÒ»ÕÅÓµÓÐ10ÍòÕÅͼƬµÄÍⲿ£Ó£Ä¿¨£¬µÚ¶þ²½£ºµÈ´ýÊÖ...
24
ÈÈ¶È -
AndroidÓ¦ÓõÄ×Ô¶¯Éý¼¶¡¢¸üÐÂÄ£¿éµÄ¶ÒÏÖ
AndroidÓ¦ÓõÄ×Ô¶¯Éý¼¶¡¢¸üÐÂÄ£¿éµÄʵÏÖÎÒÃÇ¿´µ½ºÜ¶àAndroidÓ¦Óö¼¾ßÓÐ×Ô¶¯¸üй¦ÄÜ£¬Óû§Ò»¼ü¾Í¿ÉÒÔÍê³ÉÈí¼þµÄÉý¼¶¸üС£µÃÒæÓÚAndroidϵͳµÄÈí¼þ°ü¹ÜÀíºÍ°²×°»úÖÆ£¬ÕâÒ»¹¦ÄÜʵÏÖÆðÀ´Ï൱¼òµ¥£¬ÏÂÃæÎÒÃǾÍÀ´Êµ¼ùһϡ£Ê×Ïȸø³ö½çÃæЧ¹û£º1.×¼±¸ÖªÊ¶?ÔÚAndroidManifest.xmlÀﶨÒåÁËÿ¸öAndroidapkµÄ°æ±¾±êʶ£ºviewplain<manifest?xmlns:an...
96
ÈÈ¶È -
RubyÖ´ÐÐshellÃüÁîµÄÁùÖÖ²½Öè
RubyÖ´ÐÐshellÃüÁîµÄÁùÖÖ·½·¨RubyÖ´ÐÐshellÃüÁîµÄÁùÖÖ·½·¨NOV18TH,2014ÔÚRubyÖУ¬Ö´ÐÐshellÃüÁîÊÇÒ»¼þ²»Ææ¹ÖµÄÊÂÇ飬RubyÌṩÁË´ó¸Å6ÖÖ·½·¨¹©¿ª·¢Õß½øÐÐʵÏÖ¡£ÕâЩ·½·¨¶¼ºÜ¼òµ¥£¬±¾ÎĽ«¾ßÌå½éÉÜÒ»ÏÂÈçºÎÔÚRuby½Å±¾ÖнøÐе÷ÓÃÖÕ¶ËÃüÁî¡£execexec»á½«Ö¸¶¨µÄÃüÁîÌæ»»µôµ±Ç°½ø³ÌÖеIJÙ×÷,Ö¸¶¨ÃüÁî½áÊøºó£¬½ø³Ì½áÊø¡£12exec'echo"helloworld"'pri...
268
ÈÈ¶È -
C#¿ª·¢UnityÓÎÏ·½Ì³ÌÑ»·±éÀú×÷³öÅжϼ°UnityÓÎϷʾÀý
C#¿ª·¢UnityÓÎÏ·½Ì³ÌÑ»·±éÀú×ö³öÅжϼ°UnityÓÎϷʾÀýC#¿ª·¢UnityÓÎÏ·½Ì³ÌÑ»·±éÀú×ö³öÅжϼ°UnityÓÎϷʾÀýUnityÖÐÑ»·±éÀúÿ¸öÊý¾Ý£¬²¢×ö³öÅжϺܶàʱºò£¬ÓÎÏ·ÔÚÍæ¼Ò×ö³öÅжÏÒÔºó£¬ÓÎÏ·³ÌÐò»á±éÀúÍæ¼ÒÉíÉÏ´óÁ¿µÄËùÐèÊý¾Ý£¬È»ºó×ö³öÅжϣ¬¼´Ê×ÏÈÅж¨Íæ¼ÒÊÇ·ñÓÐȨÏÞ×ö³öÕâÖÖÑ¡Ôñ£¬È»ºó²Å¾ö¶¨ÊÇ·ñΪÍæ¼ÒÖ´ÐдËÑ¡Ôñ¡£ÀýÈ磬¡¶Ïɽ£ÆæÏÀ´«¡·Õâ¿îÓÎÏ·£¬½øÈë¾çÇé¡°ºÉÒ¶ÃÔ¹¬Ê±¡±£¬»áÒªÇóÍæ¼Ò»÷ËéÃÔ¹¬ÀïµÄ5×ð...
77
ÈÈ¶È -
ÒôƵhal²ãС½á+frameworks ¸ÅÒª
ÒôƵhal²ã×ܽá+frameworks¸ÅÒªÒôƵhal²ã×ܽá+frameworks¸ÅÒªµÚÒ»²¿·ÖÈý¸öÎļþ,ÆäÖÐËùÓÐÀà,¶¼Îª¸ùÀà.ÎļþµØÖ·:1:Audio.hÓÐËĸöÀà¢Ù.audio_stream_out:Ö÷ÒªÓÐËĸö³ÉÔ±º¯Êý:*get_latencyset_volumewriteget_render_position²¢ÇÒ°üº¬:structaudio_streamcommon;¢Ú.audio_str...
541
ÈÈ¶È -
[Effective Java]µÚ10Ò»Õ ÐòÁл¯
[EffectiveJava]µÚʮһÕÂÐòÁл¯ÉùÃ÷£ºÔ´´×÷Æ·£¬×ªÔØʱÇë×¢Ã÷ÎÄÕÂÀ´×ÔSAPʦ̫²©¿Í£¬²¢ÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦£¬·ñÔò½«×·¾¿·¨ÂÉÔðÈΣ¡µÚʮһÕÂÐòÁл¯74¡¢½÷É÷µØʵÏÖSerializable½Ó¿ÚʵÏÖSerializable½Ó¿Ú¶ø¸¶³öµÄ×î´ó´ú¼ÛÊÇ£¬Ò»µ©Ò»¸öÀà±»·¢²¼£¬¾Í´ó½µµÍÁË“¸Ä±äÕâ¸öÀàµÄʵÏÖ”µÄÁé»îÐÔ¡£Èç²ÉÓÃĬÈϵÄÐòÁл¯·½Ê½Ê±£¨½öʵÏÖSerializable£©£¬...
499
ÈÈ¶È -
Android-httpClientµÄʹÓÃ
Android----httpClientµÄʹÓÃ1.1Ö´ÐÐÇëÇóHttpClientµÄ×îÖØÒªµÄ¹¦ÄÜÊÇÖ´ÐÐHTTP·½·¨¡£Ò»¸öHTTP·½·¨µÄÖ´ÐÐÉæ¼°µ½Ò»¸ö»ò¶à¸öHTTPÇëÇó»òHTTPÏìÓ¦µÄ½»Á÷£¬HttpClientͨ³£ÊÇÔÚÄÚ²¿´¦ÀíµÄ¡£Óû§½«Ìṩһ¸öÖ´ÐÐÇëÇó¶ÔÏó£¬HttpClient·¢ËÍÇëÇóµ½Ä¿±ê·þÎñÆ÷·µ»ØÒ»¸öÏàÓ¦µÄÏìÓ¦¶ÔÏó£¬Èç¹ûÖ´ÐÐʧ°ÜÔòÅ׳öÒ»¸öÒì³£¡£ËùÒÔ£¬HttpClientAPIµÄÖ÷ÒªÇÐÈëµãÊÇHtt...
3
ÈÈ¶È -
Using lists in Android [´øͨÒë]
UsinglistsinAndroid[´ø·Òë]UsinglistsinAndroid(ListView)¨CTutorialÔÎĵØÖ·£ºhttp://www.vogella.com/tutorials/AndroidListView/article.htmlÉêÃ÷£º±¾ÒëÎIJο¼¹È¸èºÍÔÎÄÐ×÷·Ò룬ÓкÜСһ²¿·ÖÊÇÒâÒë·½±ãÀí½â¡£ÈçÓдíÎóÇëÁªÏµ£¨ÓÊÏ䣺[email protected]/**/£º19...
48
ÈÈ¶È -
androidÄÚºËÆʽâѧϰ±Ê¼Ç£ºAMS£¨ActivityManagerService£©ÄÚ²¿ÔÀíºÍ¹¤×÷»úÖÆ
androidÄÚºËÆÊÎöѧϰ±Ê¼Ç£ºAMS£¨ActivityManagerService£©ÄÚ²¿ÔÀíºÍ¹¤×÷»úÖÆÒ»¡¢ActivityManagerServiceÌṩµÄÖ÷Òª¹¦ÄÜ£º£¨1£©Í³Ò»µ÷¶È¸÷Ó¦ÓóÌÐòµÄActivity£¨2£©ÄÚ´æ¹ÜÀí£¨3£©½ø³Ì¹ÜÀí¶þ¡¢Æô¶¯Ò»¸öActivityµÄ·½Ê½ÓÐÒÔϼ¸ÖÖ£º£¨1£©ÔÚÓ¦ÓóÌÐòÖе÷ÓÃstartActivityÆô¶¯Ö¸¶¨µÄActivity£¨2£©ÔÚHome³ÌÐòÖе¥»÷Ò»¸öÓ¦ÓÃͼ±ê£¬Æô...
89
ÈÈ¶È -
[Effective Java]µÚËÄÕ Àà¸ú½Ó¿Ú
[EffectiveJava]µÚËÄÕÂÀàºÍ½Ó¿ÚµÚËÄÕÂÀàºÍ½Ó¿Ú13¡¢Ê¹ÀàºÍ³ÉÔ±µÄ¿É·ÃÎÊÐÔ×îС»¯ÒªÇø±ðÉè¼ÆÁ¼ºÃµÄÄ£¿éÓëÉè¼Æ²»ºÃµÄÄ£¿é£¬×îºóÖØÒªµÄÒòËØÔÚÓÚ£¬Õâ¸öÄ£¿é¶ÔÓÚÍⲿµÄÆäËûÄ£¿é¶øÑÔ£¬ÊÇ·ñÒþ²ØÆäÄÚ²¿ÁËÊý¾ÝºÍÆäËûʵÏÖϸ½Ú¡£Éè¼ÆÁ¼ºÃµÄÄ£¿é»áÒþ²ØËùÓеÄʵÏÖϸ½Ú£¬°ÑËüµÄAPIÓëËüµÄʵÏÖÇåÎúµØ¸ôÀ뿪À´¡£È»ºó£¬Ä£¿éÖ®¼äֻͨ¹ýËüÃǵÄAPI½øÐÐͨÐÅ£¬Ò»¸öÄ£¿é²»ÒªÖªµÀÆäËûÄ£¿éµÄÄÚ²¿¹¤×÷Çé¿ö¡£Õâ¸ö¸ÅÄî±»³ÆΪÐÅÏ¢Òþ²Ø»ò·â×°...
324
ÈÈ¶È -
androidÏà»ú
androidÕÕÏà»úʹÓÃÏà»úµÄÁ½ÖÖ·½Ê½£º1ʹÓÃIntentÌøתµ½ÏµÍ³Ïà»ú,actionΪ:android.media.action.STILL_IMAGE_CAMERAÕâÖз½·¨Ò»°ãÊÇ×î³£Óõķ½±ã¼òµ¥±Ï¾¹×Ô¶¨ÒåÏà»ú±È½Ï¸´ÔÓ¶øÇÒ»¨·Ñʱ¼ä±È½Ï³¤´úÂëƬ¶Î£¬Ë«»÷¸´ÖÆ010203040506070809101112131415161718192021222324252627282930313233343536...
86
ÈÈ¶È -
<ת>AndroidÖеĶԻ°¿òAlertDialogÓ¦Óü¼Çɺϼ¯
<ת>AndroidÖеĶԻ°¿òAlertDialogʹÓü¼Çɺϼ¯?ÎÄÕÂÀ´×Ô£ºhttp://blog.csdn.net/blue6626/article/details/6641105½ñÌìÎÒÓÃ×Ô¼ºÐ´µÄÒ»¸öDemoºÍ´ó¼ÒÏêϸ½éÉÜÒ»¸öAndroidÖеĶԻ°¿òµÄʹÓü¼ÇÉ¡£?1.È·¶¨È¡Ïû¶Ô»°¿ò¶Ô»°¿òÖÐÓÐ2¸ö°´Å¥??ͨ¹ýµ÷ÓÃsetPositiveButton·½·¨ºÍsetNegativeButton...
67
ÈÈ¶È -
C# Èí¼þ¹¤³Ìʦ×î³£·¸µÄ 10 ¸öÒì³£
C#³ÌÐòÔ±×î³£·¸µÄ10¸ö´íÎó¹ØÓÚC#C#ÊÇ´ï³É΢Èí¹«¹²ÓïÑÔÔËÐп⣨CLR£©µÄÉÙÊýÓïÑÔÖеÄÒ»ÖÖ¡£´ï³ÉCLRµÄÓïÑÔ¿ÉÒÔÊÜÒæÓÚÆä´øÀ´µÄÌØÐÔ£¬Èç¿çÓïÑÔ¼¯³É¡¢Òì³£´¦Àí¡¢°²È«ÐÔÔöÇ¿¡¢²¿¼þ×éºÏµÄ¼òÒ×Ä£ÐÍÒÔ¼°µ÷ÊԺͷÖÎö·þÎñ¡£×÷ΪÏÖ´úµÄCLRÓïÑÔ£¬C#ÊÇÓ¦ÓÃ×îΪ¹ã·ºµÄ£¬ÆäÓ¦Óó¡¾°Õë¶ÔWindows×ÀÃæ¡¢Òƶ¯ÊÖ»úÒÔ¼°·þÎñÆ÷»·¾³µÈ¸´ÔÓ¡¢×¨ÒµµÄ¿ª·¢ÏîÄ¿¡£C#ÊÇÖÖÃæÏò¶ÔÏóµÄÇ¿ÀàÐÍÓïÑÔ¡£C#ÔÚ±àÒëºÍÔËÐÐʱ¶¼ÓеÄÇ¿ÀàÐͼì²é£¬Ê¹...
101
ÈÈ¶È -
eclipse¿ì½Ý¼ü¹é²Ø
eclipse¿ì½Ý¼üÊղرà¼×÷ÓÃÓò¹¦ÄÜ¿ì½Ý¼üÈ«¾Ö²éÕÒ²¢Ìæ»»Ctrl+FÎı¾±à¼Æ÷²éÕÒÉÏÒ»¸öCtrl+Shift+KÎı¾±à¼Æ÷²éÕÒÏÂÒ»¸öCtrl+KÎı¾±à¼Æ÷ɾ³ýµ±Ç°ÐÐCtrl+DÎı¾±à¼Æ÷µ±Ç°ÐеÄÏÂÒ»ÐвåÈë¿ÕÐÐShift+EnterÎı¾±à¼Æ÷µ±Ç°ÐвåÈë¿ÕÐÐCtrl+Shift+EnterÎı¾±à¼Æ÷¶¨Î»µ½×îºó±à¼µÄλÖÃCtrl+QÈ«¾Ö»Ö¸´ÉÏÒ»¸öÑ¡ÔñAlt+Shift+¡ýÈ«¾Ö¿ìËÙÐÞÕýCtrl+1È«¾ÖÄÚ...
41
ÈÈ¶È -
[Effective Java]µÚÈýÕ ¶ÔÈ«²¿¶ÔÏó¶¼Í¨Óõķ½·¨
[EffectiveJava]µÚÈýÕ¶ÔËùÓжÔÏó¶¼Í¨Óõķ½·¨µÚÈýÕ¶ÔËùÓжÔÏó¶¼Í¨Óõķ½·¨8¡¢¸²¸ÇequalsʱÇë×ñÊØͨÓÃÔ¼¶¨Èç¹ûÀà¾ßÓÐ×Ô¼ºÌض¨µÄ“Âß¼ÏàµÈ”¸ÅÄ²»Í¬ÓÚ¶ÔÏóµÈͬ¸ÅÄ£¬¶øÇÒ³¬À໹ûÓи²¸ÇequalsÒÔʵÏÖÆÚÍûµÄÐÐΪ£¬ÕâʱÎÒÃǾÍÐèÒª¸²¸Çequals·½·¨£¬Õâͨ³£ÊôÓÚ“ÖµÀà”µÄÇéÐΣ¬ÀýÈçInteger»òÕßÊÇData£¬³ÌÐòÔ±ÔÚÀûÓÃequals·½...
373
ÈÈ¶È -
AndroidʼþÉ¢·¢»úÖÆÍêÈ«½âÎö£¬´øÄã´ÓÔ´ÂëµÄ½Ç¶È³¹µ×Àí½â
Androidʼþ·Ö·¢»úÖÆÍêÈ«½âÎö£¬´øÄã´ÓÔ´ÂëµÄ½Ç¶È³¹µ×Àí½âÆäʵÎÒÒ»Ö±×¼±¸Ð´Ò»Æª¹ØÓÚAndroidʼþ·Ö·¢»úÖƵÄÎÄÕ£¬´ÓÎҵĵÚһƪ²©¿Í¿ªÊ¼£¬¾ÍÁãÁãɢɢÔںöàµØ·½Ê¹Óõ½ÁËAndroidʼþ·Ö·¢µÄ֪ʶ¡£Ò²ÓкöàÅóÓÑÎʹýÎÒ¸÷ÖÖÎÊÌ⣬±ÈÈ磺onTouchºÍonTouchEventÓÐʲôÇø±ð£¬ÓÖ¸ÃÈçºÎʹÓã¿ÎªÊ²Ã´¸øListViewÒýÈëÁËÒ»¸ö»¬¶¯²Ëµ¥µÄ¹¦ÄÜ£¬ListView¾Í²»Äܹö¶¯ÁË£¿ÎªÊ²Ã´Í¼Æ¬ÂÖ²¥Æ÷ÀïµÄͼ...
41
ÈÈ¶È -
Android so lib¿âԶ·httpÏÂÔغͶ¯Ì¬×¢²á
Androidsolib¿âÔ¶³ÌhttpÏÂÔغͶ¯Ì¬×¢²áÒ»¡¢±³¾°???ÔÚ¿ª·¢AndroidÓ¦ÓóÌÐòµÄʵÏÖ£¬ÓÐʱºòÐèÒªÒýÈëµÚÈý·½solib¿â£¬µ«µÚÈý·½so¿â±È½Ï´ó£¬ÀýÈ翪ԴµÚÈý·½²¥·Å×é¼þffmpeg¿â,Èç¹ûÖ±½Ó´ò°üµÄapk°üÀïÃæ,Õû¸öÓ¦ÓóÌÐò»á´óºÜ¶à.¾¹ý²éÔÄ×ÊÁϺÍʵÑ飬·¢ÏÖͨ¹ýÔ¶³ÌÏÂÔØsoÎļþ£¬È»ºóÔÙ¶¯Ì¬×¢²ásoÎļþʱ¿ÉÐеġ£Ö÷ÒªÐèÒª½â¾öÏÂÔØsoÎļþ´æ·ÅλÖÃÒÔ¼°Îļþ¶ÁдȨÏÞÎÊÌâ¡£?¶þ¡¢Ö÷Ҫ˼·?1¡¢Ê×...
40
ÈÈ¶È -
½â¾öAndroid¼ÓÔØͼƬʱÄÚ´æÒç³öµÄÓйØÎÊÌâ
½â¾öAndroid¼ÓÔØͼƬʱÄÚ´æÒç³öµÄÎÊÌâ?¾¡Á¿²»ÒªÊ¹ÓÃsetImageBitmap»òsetImageResource»òBitmapFactory.decodeResourceÀ´ÉèÖÃÒ»ÕÅ´óͼ£¬ÒòΪÕâЩº¯ÊýÔÚÍê³Édecodeºó£¬×îÖÕ¶¼ÊÇͨ¹ýjava²ãµÄcreateBitmapÀ´Íê³ÉµÄ£¬ÐèÒªÏûºÄ¸ü¶àÄÚ´æ¡£?Òò´Ë£¬¸ÄÓÃÏÈͨ¹ýBitmapFactory.decodeStream·½·¨£¬´´½¨³öÒ»¸öbitmap...
19
ÈȶÈ