Sogou -------> transplantation and debugging of Android system how to add an ADB WiFi wireless debugging function [developer options] - [WiFi debugging]

First, understand how to set the ADB WiFi wireless debugging function, as shown below. 1 mobile terminal opens TCP ADB connection port: service.adb.tcp.port /$setprop 5555 Adbd /$stop : adbd setprop where /$start is used to set the system properties, there is no need to root permissions, Su can be. Can be set through the shell ADB, can also be installed on the phone through the terminal Android settings. 2 computer terminal design...
Read(495) comments(2)

Sogou CSDN2015 blog star selection of canvassing session

Recently received CSDN invited in 2015 CSDN blog star selection activities, the following is link address to my vote: http://prog3.com/sbdm/vote.blog/blogstar2015/candidate? Username=qq446282412 my declaration from the initial start learning software programming, the problem Baidu often see there is related to the method to solve the problem in CSDN, slowly began to like the website CSDN. Every day there are bloggers diligently...
Read(596) comments(2)

Sogou To solve the English string automatically capitalized my advanced Android ------>android trip Button the above problems

Today I encountered a problem for the button: Android button above the English string will automatically into capital, running Android version 5.1, as shown below: definition code of figure 1:Button figure 2:TextView this button are as follows <Button @+id/addContacts "android:id=" Match_p "android:layout_width=...
Read(875) comments(2)

Sogou Advanced my android trip ------>Java string formatting string. Format (format float type decimal point into a comma

Today I received a Polish customers say there is an app in the English state all normal operation, but when the switch system language to polish language. The program ran collapse the. All right, I'll keep it. , first switch system language to polish, switch to polish method to view the article I of the Android advanced travel ------>Android [settings] - [language and input method] - [language] list to find corresponding language corresponding to the list item address: http: / / Prog3.com/sbdm/blog/ouyang_peng/arti Prog3.com/sbdm/blog/ouyang_peng/arti...
Read(836) comments(0)

Sogou My android advanced travel ------>Android [settings] - [language and input method] - [language] list to find corresponding language corresponding to the list item

Today I received a Polish customers say there is an app in the English state all normal operation, but when the switch system language to polish language. The program ran collapse the. So first of all I have to switch the language system to polish, the question is which is the polish? I really don't know which list represents the polish. As shown below: into [settings] - [language and input method] - [language] list, I was dumbfounded, which is the polish? This article will introduce how to find the corresponding list of items in the list. [Settings] - [Langua...
Read(808) comments(0)

Sogou Git ------> learning how to use the GIT log command to view a specified file history record

Sometimes took over a new code, see some files change, but it is not clear the author and reasons for this change, want to view the file specific submitted to the historical record. Today a colleague is done directly knock git log "command, and then use VIM commands of the keyword search method to view the documents submitted to the record, as shown below: for example: I want to commit record view frameworks/base/packages/SystemUI/AndroidManifest.xml the file of the knock git log life...
Read(514) comments(0)

Sogou -------> transplantation and debugging of Android system how to modify the Android system default display options [developers] and is turned on by default [USB debugging] and [unknown source] switch

Today a user to [set] have a special request, namely: 1, the boot when the default display [developers option and open [USB debugging] switch (options [developer] -- > [USB debugging) 2, boot time to open the default [security] -- > [unknown source] switch ([security] I [unknown sources]) 1, first of all solve [settings] interface default display [developers option, see the source code package.
Read(675) comments(4)

Sogou My Dialog system Android advanced tour ------>Android style to explain

Today in the maintenance of a company's APP, there are the following scenarios. A pop-up alertdialog, during a Chinese language system is as follows: a pop-up alertdialog. Is English in language system, as shown below: can be found in the language system for English, white text in the dialog box has the completely clear, the background color of the dialog box has become a white. Therefore need to modify the theme of the dialog box. ...
Read(711) comments(3)

Sogou Android system porting and debugging of the -------> increased physical buttons with a double click to open and close the flash and the flash sync to the drop-down menu

A recent customer have the demand: 1, in [settings] [i] no obstacle to add a button. If the switch is open, double-click a physical buttons, turn on the flash, double-click the physical buttons, turn off the flash. If you close the switch, when you double-click the physical buttons, without any treatment. 2, turn off the flash of the state, in the drop-down menu to synchronize. As shown in the figure below:...
Read(702) comments(0)

Sogou I service Android advanced ------>android trip in onStartCommand (intent) method for the null problem

Today in a maintenance company's app, suddenly burst a null pointer exception, caused by java.lang.NullPointerException: attempt to invoke the virtual method'boolean android.content.Intent.getBooleanExtra (java.lang. String, Boolean) 'on a null object refe...
Read(1068) comments(2)

Sogou -------> transplantation and debugging of Android system of how to modify the Android NFC mobile phone module, the black screen when to use NFC

We all know that in the case of the source code is not modified, can only be unlocked after the use of NFC function. But there is no way to use NFC in the lock screen and black two state, but in a recent customer requirements of mobile phone in the black state to use NFC, so we need to modify Android source code on the NFC module. Started can be viewed through the analysis of source code, to find NfcService code. Packages\apps\Nfc\src\com\android\nfc\NfcSer...
Read(773) comments(3)

Sogou I Android advanced tour ------> [strongly recommended] Android open source library XCL-Charts version and chart display page

Because to do chart application later Baidu found a very good Android open source graphics library (XCL-Charts is a free charting library for the Android platform.) Below Reprint: http://prog3.com/sbdm/blog/xcl168/article/details/29675613, detailed introduced the XCL-Charts show...
Read(700) comments(4)

Sogou -------> transplantation and debugging of Android system of how to modify the 4G signal intensity of Android mobile phone shows the number of squares

Before modifying the signal intensity of the show, first understand what is dB, what is dBm? 1.dB DB is a characterization of the relative value of value, ratio of pure, saying only that the relative sizes of the two relations, no units, when considering a power compared to B power big or small number of DB. According to the following formula: 10log (a power / B power), if the use of both the voltage ratio calculation, 20log (a voltage / b voltage). ) A power is twice larger than B power, then 10lg (a power / B power) =10...
Read(2159) comments(1)

Sogou I view the application signature information Android advanced trip ------>Android

One, to view their own certificate signature information Above an article "------>Android advanced my android trip make and view address custom debug versions of Android signature certificate": Http://prog3.com/sbdm/blog/ouyang_peng/article/details/49023569 Http://prog3.com/sbdm/blog/ouyang_peng/article/details/49023569 The same as introduced in. The relevant information generated by baiduMapLoc-release-key.keystore commands, such as command...
Read(351) comments(0)

Sogou Debug version of the Android signature certificate production and custom] my top view Android advanced trip in ------>Android

Android application development access SDK will find, there are many SDK is identified by package name and certificate fingerprint SHA1 code requires, such as Baidu map SDK. So if you use the default automatically generated debug will give the development and debugging work to bring some trouble. Then you can modify the formal release keystore, generating a comply with the rules of the temporary custom commissioning certificate for a development, much more convenient, specific methods are as follows. First to know the default position in debug certificate...
Read(367) comments(0)

Sogou MediaRecorder.stop my Android tour in ------>Android (Advanced) java.lang.RuntimeException: error stop failed.

Today E/AndroidRuntime (7698): by: java.lang.RuntimeException: stop failed. Cause E/AndroidRuntime (7698): android.media.MediaRecorder.stop at (Method Native) E/AndroidRuntime (7698):...
Read(572) comments(0)

Sogou Tour of ------>Android advanced my android listview data is updated, how to make the latest entries can be automatically scrolls to the visual range?

Add android:transcriptMode= "alwaysScroll" in the layout configuration of ListView" <ListView @+id/listView "android:id=" Match_parent "android:layout_width=" Wrap_content "android:layout_height="...
Read(657) comments(0)

Sogou I Android advanced tour ------>/storage/sdcard0, /sdcard, /mnt/sdcard, /storage/emulated/legacy difference

Turn from: http://bbs.gfan.com/android-5382920-1-1.html 4.2 of the 0 folder on the Android. ---- Android 4 ---- In the galaxy Nexus (GN) mobile phone UserData partition is hanging in the directory / data and user data is usually placed on the SD card, however, GN is no SD card, so Google to think a way is a virtual one. So, in us...
Read(1696) comments(0)

Sogou I android:windowSoftInputMode Android advanced tour ------>Android in usage

Interview questions: how to display a Activity immediately when the soft keyboard pop up? Answer: in the androidmanifest.xml file set label android:windowSoftInputMode attributes can display activity immediately pops the current input method of soft keyboard (regardless of whether the focus space). Setting: android:windowSoftInputMode= "stateVisible|adjustPan" code such as...
Read(1404) comments(2)

Sogou The difference between getLocationInWindow and getLocationOnScreen I Android advanced trip in ------>android

View.getLocationInWindow (location int[]) Coordinate position of a control at his father in the window View.getLocationOnScreen (location int[]) The coordinate position of a control over its entire screen GetLocationInWindow is based on C as the origin of the coordinates of the B A to getLocationOnScreen as the origin. Below
Read(1452) comments(2)

Sogou Automatic type conversion to develop my Java learning journey ------> Java FAQ three eye operation time

Today saw two interview questions, actually did wrong. Through these two interview questions, but also to deepen the understanding of the automatic type conversion of the three item operation. Topic 1 the following code output is (). Class Test public { Static void main public (args String[]) { A=5 int; System.out.println ("is value:" + ((a<5) 10.9:9); } }...
Read(1067) comments(4)

Sogou My Java development study tour ------>Java uses the Fork/Join framework to execute tasks in parallel.

The modern computer has to the development of a multi CPU, even if is ordinary PC, even today's smartphones, multi-core processor has been widely used. In the future, there will be more and more CPU cores. Although hardware on a multicore CPU has been very mature, but many applications did not the multi-core CPU ready, and therefore can not well using the performance advantages of multi-core CPU. In order to make full use of the advantage of the performance of multi CPU and multi core CPU, the soft base level system should be fully "mining" each CPU computing power, never let a CPU in the "idle".
Read(4866) comments(1)

Sogou My journey of learning ------>Java Java development NIO java.nio.charset.MalformedInputException: Input length = 1 abnormal

Today in the use of Java NiO channel and buffer of file operation time and reported to the java.nio.charset.MalformedInputException: input length = 1 abnormalities, as follows: Input length java.nio.charset.MalformedInputException: = 1 Java.nio.charset.CoderResult.t at...
Read(826) comments(0)

Sogou My learning java development brigade ------>Java use objectoutputstream and an objectinputstream sequence object number reported java.io.EOFException solution to abnormal

Today with Ob...
Read(822) comments(0)

Sogou My Java development learning trip ------>Java language in the method of parameter transfer mechanism

If you declare a method to contain the parameter declarations, method invocation must give these parameter to specify parameter values, the method is called, the transmission parameters to the parameter value is also known as shican Java programming language only transfer value parameters. When an instance of an object as a parameter is passed to the method, the value of the parameter is a reference to a copy of the object. Point to the same object, the contents of the object can be the method call to change, but object references (not quoting the copy is never going to change. Java parameter, whether it is the original type or the reference type...
Read(565) comments(0)

Sogou My trip to write their own ------> Android advanced Activity Android system to adjust the brightness of the backlight Brightness

Today we finally preliminary written code of regulation system of the brightness of the backlight brightness, didn't see Android source code that can directly call an action to start the system the brightness adjustment dialog, but look at the code found system regulates the brightness of the custom component BrightnessPreference inherited the SeekBarDialogPreference, but finally the parent class or preference, so not to start a separate, must be the...
Read(2521) comments(3)

Sogou My trip to Android advanced ------>Android detection WiFi connection status

Today to achieve the monitoring system Wifi connection status, the following code simplified extracted after the use of. Step1. prepared BroadcastReceiver Android.content.BroadcastReceiver import; Android.content.Context import; Android.content.Intent import; Android.net.Connect import...
Read(3439) comments(0)

Sogou A preliminary understanding of /**@hide*/ Java in the comments of my Android tour ------> advanced

Today to write a regulation of the brightness of backlight system, reference to the Android in the setting of source, in the source code is so a piece of code: Static final int MAXIMUM_BACKLIGHT private = android.os.PowerManager.BRIGHTNESS_ON; Then I copied its code to write my application, but when I copy this code error Baocuo as follows: ...
Read(4869) comments(0)

Sogou I used to operate Android advanced tour ------> review Sqlite3

Today to write an application to adjust the Brightness value of the system, to change the system backlight brightness. Since the minimum value at the beginning of some did not consider Brightness, direct support SeekBar to the minimum value (0). In a flash, the screen turns all black, fails. In order to make the screen light it up again, I must have to save changes inside the database of the brightness values, by reviewing SQLite3 common operations, long useless. Step1. to find the brightness se database storage...
Read(2975) comments(0)

Sogou Java development learning journey ------> tools: Java I use regular expressions separated string in Chinese and English

Today saw a tool using regular expressions will be a string of Chinese and English are separated out the, on this record, readers can be used! Java.util.ArrayList import; Java.util.Collection import; Java.util.List import; Java.util.regex.Pattern import; / * * * separate the Chinese and English from the string. * @author...
Read(1029) comments(0)

Sogou Ubuntu12.04 how to modify the window background color for eye protection to protect the eyes, a strong recommendation!!

Recent discoveries have suddenly stare at the screen for a long time, the eyes will be very painful, so want to change the window background color about the system. In fact, looking at the code is mainly in the eclipse observation, so from the beginning I want to change the eclipse text edit box background color, effect as shown below. Figure 1 the background color of the whole white, look for a long time is very dazzling Figure 2 Eclipse set the background color in Windows-->Preferences-->General-->Editors-->Text Editors-...
Read(1852) comments(1)

Sogou The solution does not recognize the Android equipment Android advanced tour under ------>Ubuntu

Today do not know Ubuntu crazy, yesterday also used well, today suddenly can't identify my Android device, no way, with reference to the Android website re configuring the USB, http://developer.android.com/tools/device.html The first step: use the lsusb command list, USB mounted equipment Lsusb ouyangpeng@oyp-ubuntu:~$ Bus 001 002: Device...
Read(1174) comments(0)

Sogou Please listen to a story ------> three 70 year old story (Li Zhi)

Review: This is three more than 70 year old business stories. They are very character and life. However, they are not communicated with the money situation, began life second times, even third venture. (this article is reproduced in ps:: http://www.sj998.com/m/news/429326.html, I can see that after the share out) Usually the 70 year old's goal in life has nothing to do with them, those 70 year old happy and pessimism has nothing to do with them. They are a kind of special people in the crowd, they both keep the green...
Read(1715) comments(0)

Sogou I Android advanced tour ------> directly used! The most fire Android open source project

Http://prog3.com/article/2013-05-03/2815127-Android-open-source-projectshttp://prog3.com/article/2013-05-08/2815145-Android-open-source-projects-twohttp://prog3.com/article/2013-05-21/2815370
Read(1789) comments(0)

Sogou Java development learning journey ------> tools: Java I get the string and file MD5 value

MD5 message digest algorithm 5 (message digest algorithm 5), is a kind of used to generate the digital signature of the one-way hash algorithm, in 1991 by the MIT Laboratory for computer science, MIT Laboratory for Computer Science) and RSA data security Inc. (RSA data security Inc.) Ronald L. Rivest, professor has developed out, via the MD2 and MD3 MD4 and developed and. MD5 algorithm to make...
Read(1456) comments(0)

Sogou My trip to ------>Android Android advanced by using Matrix to simulate the process of loading the disc rotation picture

Today to achieve a simulated disc loading process of small demo, this show. Because the company is not good, the interception of dynamic pictures, so in the interception of two still images to see the effect of the first. The following simple column out of the code. Setp1, prepare two for image rotation, as follows: loading Loading_disc.png is the first picture, the loading Loading_light.png is the second picture. (1) (2) Step2, self...
Read(1870) comments(0)

Sogou Java development learning journey ------> tools I: the player progress value into the corresponding time format

In my blog, "my trip to learn java development ------>Java formatted class java.util.Formatter basic usage" use the formatter will be the player's progress value is converted to the corresponding time, the following tools can also achieve the same effect. / * * * get (the current play time / total play time) format such as: * 00:00:08/00:01:40 * 00:03:00/00:30:00 * @au...
Read(1368) comments(0)

Sogou My journey of learning ------> Java development using Working Setst in the Eclipse project classification project at a glance

Today if there are too many projects, Eclipse mixed, looks very painful. Today consult company's predecessors to a method, in eclipse, when comparing different projects, we can workingset will the project classification and the relevant engineering put in a Java working set again to display the tick, so in the package Explorer tab can make all types of items at a glance. Below will show the specific steps, for reference only. First...
Read(1239) comments(1)

Sogou Git "Agent admitted failure to ------> learning sign using the key." solution to the problem

Today with git clone command clone server when the code reported the following error: Ouyangpeng@oyp-ubuntu:~/Android/git_canplay_code$Ouyangpeng@oyp-ubuntu:~/Android/git_canplay_code$Ouyangpeng@oyp-ubuntu:~/Android/git_canplay_code$git clone gitcply:canplay/vendor/mstar/Canplay/apps/Video Into'Video'Cloning... Admitted failure to sign Agent...
Read(1265) comments(0)

Sogou My android advanced travel ------>Android using regular expression matching scans the specified directory of all the media files (music, images, video files)

Today use regular expressions that match the specified directory of all the media files, the following will be this code is simplified, can be used down, as tools. Package match; Java.io.File import; Java.util.regex.Matcher import; Java.util.regex.Pattern import; Class Utils public { / * * * traverse the resources in the specified folder...
Read(1842) comments(2)

Sogou My trip to ------>Android Android advanced by SeekBar to implement custom video playback progress bar

First look at the effect chart, as shown below: The progress bar is as follows: Then, said my train of thought, the above drag the progress bar custom thumb thumb just above a popupwindow window, the window shows the current playback time. On the right side of the SeekBar has a text box showing the current playback time / total time. Step1, first look at the layout of the PopupWindow file, seek_popu.xml, the results as shown below: <Rela...
Read(3255) comments(8)

Sogou My trip to ------>Android Android advanced how to remove the GridView press or click on the background after effect

Today with the GridView do a interface, their self well a component, and set the click and click on components when the effect, but run time found in my definition of good background below and a layer of don't know where the background, serious impact on the effect of my custom components. Then check the relevant information that is GridView by default has a selected state under the background picture. So I have to put it in the background check to get rid of the background. I use the method is to use a hard encoding to change the GridView of the selected state of the background for the transparent color. ...
Read(3498) comments(0)

Sogou My trip to Android advanced ------>android video playback only sound no picture of the solution

Today, debugging with VideoView player to play the video when only the voice output without screen output. First thought it was their own procedures, debugging a long time without fruit. Doubt is the real problem, so a few third-party player to play video, for example: Nora, storm, baidu video and MoboPlayer. All is aborted. This sure is a real machine decoding problem. The solution is my: 1, replacing the libstagefright.so library file, because the file...
Read(2118) comments(1)

Sogou My trip to ------> at error: Android advanced Apostrophe not preceded by \ error solution

The following error occurred during the international translation of the project on the project. "Apostrophe notpreceded by error: \ (" Such errors because the strings.xml file in a string tag string containing '(single quote), as long as we in the' before add \ escape can resolve this error. Such as Sorry, video doesn't support this format. Change...
Read(1315) comments(1)

Sogou Ubuntu how to configure the terminal transparent

Today to learn the trick how Ubuntu terminal background color becomes transparent, transparent feeling after good, such as online some commands can directly cover the original homepage observes, and then click the command. The following is to look at the end of the background before and after the contrast effect. Completely opaque, to maximize the time can not see other things become partially transparent, more convenient, maximize can see other things Here to talk about the specific configuration steps Click to edit the configuration file (E) ------> preferences (O) to enter, click on the Background tab and then click on the transparent back...
Read(3563) comments(0)

Sogou My trip to ------> advanced Android using ThumbnailUtils class to obtain video thumbnails

I read a piece of code is about thumbnails of the video acquisition, let me know a ThumbnailUtils class code for the as these. Bitmap bitmap = ThumbnailUtils.createVideoThumbnail (path, ThumbnailUtils.OPTIONS_RECYCLE_INPUT recycle the input); / / for thumbnails of the video acquisition Background=new BitmapD BitmapDrawable...
Read(6350) comments(1)

Sogou My trip to ------> Android advanced really see a few days in the company code feeling

In this paper only to review the work of this week, and the feeling of the trigger. ============================================================= Came to the new company for 5 days, 5 days to see a video player on the application, feeling a lot. Originally thought that a playback video application should architecture is not very big, read the code of the company only to find themselves before does not have written so much of the architecture of the application and before their own learning Android...
Read(3069) comments(8)

Sogou I \u2026 Android advanced tour ------>Android resource files in string.xml.

I read a string.xml file, to \u2026 contained in one line of code is not very understanding, then access to data found the meaning. Code as follows: Load video \u2026 Explain: The \u2026 is said ellipsis is Unicode 16 hexadecimal, So the loading_video above said: load the video... Also found \u0020 means to represent spaces,...
Read(3168) comments(1)

Sogou I use string can replace the Android advanced tour ------>Android, getString (int resId, Object formatArgs...)

Official documents are described below: Address: http://developer.android.com/reference/android/content/Context.html#getString%28int,%20java.lang.Object,%29... Final public GetString String (resId int, Object... FormatArgs... Re...
Read(2567) comments(0)

Sogou My trip to ------>Handlerr.removeCallbacksAndMessages Android advanced (null) role

Today to a piece of code, in the onDestroy () method, the use of the following code: MHandler.removeCallbacksAndMessages (null); At first I totally cannot read, why I parameter is null, if NULL is also need to remove what Callbacks and Messages. Then see the official documents have the following instructions: Address: http://developer.android.com/reference/an...
Read(4523) comments(2)

Sogou I Android advanced tour ------>Android KeyCode list

KEYCODE list Telephone key Key Description Key   KEYCODE_CALL dial key Five KEYCODE_ENDCALL Hang up button Six KEYCODE_HOME Button Home Three KEYCODE_MENU Menu key Eighty-two KEYCODE_BACK Return key...
Read(2895) comments(2)

Sogou My Java development learning trip ------>Java format class (java.util.Formatter) basic usage

Reference paper: Http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.htmlhttp://www.blogjava.net/AS-COM/archive/2011/03/15/346321.html opt=admin Sometimes want to put numbers, dates, strings in accordance with the given rules to format. JDK SUN To provide us with this...
Read(2500) comments(4)

Sogou The difference between my trip ------>Android android:visibility Android advanced VISIBLE, INVISIBLE, GONE attribute

In the Android development, most of the controls are the property of visibility and its properties have three respectively for the "visible" and "invisible", "gone". Mainly used to set the display and control of the control. Some people may wonder what is the difference between gone and Invisible??? Well, we take this question to see the following: the XML file and the Java code is set as follows:   Visible (visible) XML file: android:visibilit...
Read(2095) comments(0)

Sogou Ancient and modern into the great cause, the University asked, will go through three kinds of state

Ancient and modern into the great cause, the University asked, will go through three kinds of state: "Energy-saving. Alone on the high-rise, looking at the end of the world road. This is also the first Habitat. "My end is no regrets, for pining away." This second habitat also.     "He found the degreeses, suddenly look back, that person but in the lights dim.". This third habitat also." - Wang Guowei ==========...
Read(1677) comments(1)

Sogou My trip to ------> on advanced Android Webservice query interface calls several train schedule introduction

Today found a can provide train tickets timetable query WebService, after the first recorded if write a train ticket time table query android app with the. First of all, the web service name is TrainTimeWebService and address of the is: http://webservice.webxml.com.cn/WebServices/TrainTimeWebService.asmx. Of course on the WebService related knowledge...
Read(3579) comments(2)

Sogou My trip to ------>Android Android advanced implementation of the crazy Lianliankan game logic (five)

On the tour of ------>Android advanced my android crazy again and again see game loading screen images and mentioned game activity (4), the two classes: GameConf: is responsible for managing the game's initialization settings information. GameService: responsible for the logic of the game to achieve. Where the GameConf code is as follows: cn\oyp\link\utils\GameConf.java Cn.oyp.link.uti package...
Read(3739) comments(11)

Sogou My trip to Android advanced ------>Android crazy Lianliankan realized the interface picture and loading game game Activity (four)

As in "advanced my android trip ------>Android crazy Lianliankan game to achieve the state data model (3)" in an article to see the, in the AbstractBoard code. When a program needs to create N piece object, the program will directly call ImageUtil of getPlayImages () to get the picture, the method will be random n picture is taken from the res/drawable directory. The following is the res/drawable catalog view: In order to make getPla...
Read(3340) comments(2)

Sogou My trip to ------>Android Android advanced crazy Lianliankan realized state data model of the game (three)

For game players, game interface to see a kaleidoscope of "elements"; but for game developers, game interface elements at the bottom are some data, different data to draw the picture of differences. Therefore, the establishment of the game state data model is an important step in the game logic. 1, defined data model Repeatedly look at the interface is a NxM of the "grid", showing a picture on each grid. And the grid requires only a two-dimensional array to can be defined, and each grid as shown in the picture, for the underlying data model, a different picture for a different value can be...
Read(3129) comments(4)

Sogou My trip to Android advanced ------>Android crazy Lianliankan game development game interface (two)

Look again and again the game interface is very simple, can be divided into two areas: Control button and data display area of the main interface area of the game 1, the development of the layout of the interface This program uses a relativelayout as the overall layout of the interface elements and interface layout above is a custom component. The following is a horizontally aligned LinearLayout. The following is the layout of the program file: /res/layout/main.xml Xmlns:androi <RelativeLayout...
Read(4330) comments(3)

Sogou My trip to Android advanced ------>Android crazy Lianliankan game to achieve the game preview effect (a)

Read today "lectures on Android crazy" Li Gang teacher's book Chapter 18 "crazy Lianliankan", to learn how to write a simple Android crazy Lianliankan game. Development, the popular small game, moderate difficulty and fully arouse the enthusiasm of learning, suitable for beginners Android is a good choice. For the development of the game, you need to focus on the master of stand-alone game interface analysis and data modeling capabilities: gamers serious saw the game interface, but in the eyes of developers see should is a data model. In addition, single travel...
Read(20804) comments(54)

Sogou I support StateListDrawable Android advanced tour in ------>Android state

Status of StateListDrawable support in Android Android:state_active Is the representative in the active state Android:state_active Is the representative in the active state Android:state_checked Is the representative of the selected state Android:state_checkable On behalf of whether...
Read(1972) comments(0)

Sogou My trip to Android advanced ------>Android color value (RGB) of four kinds of common forms of support

Android in a color value is the red (red), green (green), blue (blue) colors, and a transparency (alpha) to represent the values, the color values are always well, #) at the beginning, the next step is to Alpha-Red-Green-Blue form. The Alpha value can be omitted if omitted, the value of Alpha, then the default color is fully opaque. The color value of Android supports four common forms as shown below: #RGB: designated red green and blue values (only support...
Read(3442) comments(3)

Sogou My trip to ------> Android Advanced startup Category standard Action and Activity

Android provides a large number of standard Action and Category constants. Which is used to start the Activity standard Aciton and the corresponding string as shown in the following table: Start Activity standard Aciton Action constant Corresponding string simple declaration ACTION_MAIN Android.intent.action.MAIN Application Portal ACTI...
Read(2763) comments(2)

Sogou My trip to ------> Android advanced an interview questions about android:layout_weight attributes

Recently encountered an interview questions, as shown below, the interface consists of a button and the EditText kitchen layout code to solve this problem requires the use of Android: layout weight of knowledge. First of all the above analysis shows the interface can be seen as a part of the 3. 3 buttons at the top of the interface. EditText in the middle of the interface. 1 buttons at the bottom of the interface. The first part and the third part respectively at the interface between the top and bottom, and the second part of the EditText with the rest of the space. If you want...
Read(2239) comments(16)

Sogou A JS code on the Chinese provinces and cities

ArrCity var = [ {name: "select" sub:[{name: ", select"}], type:1}, { Name: "Beijing", Sub:[{name: "select"}, Xicheng District of {name: {name: "Dongcheng District"}}, {name: "Chongwen District"}, {name: "Xuanwu District"}, {name: "Chaoyang District,"}, {name: "Haidian District"}, {name: "Fengtai District"}, {name: "...
Read(4683) comments(2)

Sogou Design patterns ------> study notes the singleton pattern I (Singleton)

First, the foreword Sometimes allowed the freedom to create an instance of a class is meaningless, and may also cause system performance degradation (because the object is created by the system overhead problem). For example, the entire Windows system is only a window manager, there is only a recycling station, etc.. In Java EE application may only need a database engine access point, access hibernate only need a sessionfactory instances, if in the system they create multiple instances there is no much significance. If a class can always create an instance, this class is...
Read(1287) comments(0)

Sogou My design pattern study notes ------>Java design pattern general overview

The concept of design patterns the earliest origins in architectural design master Alexander of the construction of the timeless way of a book, although Alexander's works in the construction field, but his view actually used for all engineering design field, including the field of software design. In "the construction of the eternal way" in a book is such a description of the model: Model is a composed of three parts of general rules: he said a specific environment, a class of problems and a resolve the relationship between the plan. Each pattern describes a recurring problem, the core design solutions and the problem...
Read(1461) comments(0)

Sogou My trip to ------>HTTP Android advanced Header Xiangjie

HTTP (HyperTextTransferProtocol) hypertext transfer protocol, the transmission protocol ". The HTTP protocol uses the request / response model, a browser or other client requests, the server responded to. As far as the whole network resources transmission is concerned, including message-header and message-body two parts. First of all pass message- header, HTTP header news. Http Header messages are usually divided into 4 parts: ge...
Read(3530) comments(0)

Sogou Analysis of Android advanced tour ------>Android AsyncTask source

In presented my's advanced my android trip ------>android asynchronous loading picture, and the picture of cache instances, "the article, has used the handler and the asynctask two ways to realize the asynchronous task mechanism. First look at a section of the code, this code is used to display the method when the entry call. @Override View getView public (position int, convertView View, View...
Read(1527) comments(2)

Sogou How to change the style of the CSDN blog highlighted code skin, so that the blog looks more fan (recommended)

Since the time I write blog, there is no configuration blog related attributes, so sticking out of the code block is the default CSDN, so code background color is white, as follows: But I browse other people's blogs, and found some blog code blocks look more fan, the background color of the entire code base is pure black, as shown below. The above two copies of the code is the same code, but due to the configuration of the highlighted code is not the same as the skin caused by. Now how to configure code blocks the entire block of code skin, looks more comfortable (I think). ...
Read(1364) comments(0)

Sogou My trip to the ------> Android advanced a set of recording and editing as one of the screen GIF animation tool GifCam

Since the last article I: Frame animation Android advanced tour of ------>Android Shown in the animation example frame animation, but before I is the interception of images, not that exact animation process, therefore today, baidu a GIF animation production tools, found this good software GifCam. Then I use the software making animated gif animation, then update on the upload the new GIF animation, the blog effect is better. The boundaries of the software...
Read(3036) comments(9)

Sogou My trip to Android advanced ------>Android custom window title examples

The instance of the function is relatively simple, but by expanding the instance can make menu navigation and other useful features in the title of the custom, in order to implement a custom window title and need to do the following steps: 1, to provide a custom title interface 2, the custom Title Application to the Activity window 3, the Android system to set the default theme for Activity The example below to view ============================ specific code ===========...
Read(2980) comments(0)

Sogou My animation Android advanced ------>Android Frame trip Animation instance

============================ first look at the official website of Frame animation introduction ran Address: http://developer.android.com/guide/topics/resources/animation-resource.html#Frame Animation Frame...
Read(2591) comments(4)

Sogou Several ways of my trip to ------>Android Android advanced security exit application

When the application is no longer in use, usually need to close the application, you can use the following methods to close the Android application: The first method: first to get the current process of ID, and then kill the process. Recommended this way Android.os.Process.killProcess (android.os.Process.myPid ()) Second ways: to terminate the currently running Java virtual machine, leading to the termination of the program System.exit (0);...
Read(1427) comments(3)

Sogou 40 optimization suggestions for my Android tour ------> advanced useful for Android developers

Here is a good way to start Android programming: Find some and you want to do something similar to the code adjust it and try to make it do what you like to do experience uses stackoverflow to solve problems Repeat the above process for each feature you add to your image. This method can inspire you, because you keep in constant iteration, you learn a lot of. However, you need to do something more when you are applying. From some working code into a terrible application is a big jump, compared to the iOS platform...
Read(1855) comments(2)

Sogou -------> transplantation and debugging of Android system of how to modify the Android own APK a similar pattern of egg

Has recently been a trouble to is android4.1 system comes with email, file manager, information APK appear a problem, that is the real on the plate will appear a circle similar to egg pattern. I think two ways to solve, the first method is not resolved, the second methods to solve the problem. Now I'm going to talk about my first approach: I try to directly modify the image corresponding to the APK res/drawable directory, because the source code in the pictures are not pure white, so I do the picture replacement into the. And then re compiled...
Read(1730) comments(0)

Sogou CMD the windows7 command window does not have the scroll bar of the rescue method

Because of yesterday's good 123 problem has not been solved, I want to check the machine's IP address, so I opened the CMD window, input ipconfig / all command to view, but found that the following window appears, can not be rolling, completely unable to view detailed information. Then I Baidu, found the solution, the original is the CMD command window properties I don't know who is over. Here are my steps to change: 1, the title of the window, right click on the button, there is the option, click the "properties" option 2, in the property options, select the layout...
Read(1314) comments(0)

Sogou Ask God to save ------> domain was hijacked, 123 hijacked the Sogou search

These two days suddenly computers do not know how to return a responsibility, when a request www.hao123.com, was hijacked to the http://index.woai310.com/index.htm? U=1324 1, open the Baidu home page 2, click on the hao123 link 3, is to jump to the u=1324 http://index.woai310.com/index.htm this rogue link I found this interface is too disgusting, through the view of this network...
Read(2489) comments(4)

Sogou -------> transplantation and debugging of Android system of how to modify the Android default font size and font size ratio settings

Because I modify the values Ro.sf.lcd_density density will it from 160 to modify 120, thus resulting in the system fonts are quite small. It needs to be the font, and set 4 options - > -- > display font size value must be larger. The idea that I think is to adjust the size of the font size, the following is my steps. 1, modify the size of the default font Step1: modify frameworks/base/core/java/android/content/res...
Read(3095) comments(0)

Sogou I Android advanced tour ------>HTTP returns a status.

(this article is reproduced in: http://prog3.com/sbdm/blog/ithomer/article/details/10240351) When the user clicks or search engine to the web server sends the browser request, the server will return the HTTP header HTTP header information state code, several common are as follows: 1, Http/1.1 OK 200 normal access Said the successful visit, normal access to the state for the web site. 2, Http/1.1...
Read(1836) comments(0)

Sogou My trip to the classic Android advanced ------> Daniel blog recommendation (in alphabetical order)!!

Today saw an article, used a lot of Daniel's blog, here to share (reproduced in: http://prog3.com/sbdm/blog/wujxiaoz/article/details/8237096) Android Chinese Wiki The development of AndroidStudio-NDK mobile development team humble world - blog - gundumw100 blog Android advanced category list - ITeye technology website CSDN blog Featured: Andro...
Read(18731) comments(6)

Sogou ------->MTK system transplantation and debugging of the Android standard compiler

Command format: [option] [project] [action] [modules]./maketek Option: -t, -tee: log information output to the current terminal -o, -opt=...... Compile additional conditions, the general use of -opt=TARGET_BUILD_VARIANT=user to compile the user board software -h, help: print help message and exit ...
Read(3216) comments(0)

Sogou My trip to ------> Android advanced Android source code into Eclipse to view (very useful)

Android source download completed directory structure as shown in: .classpath will copy the step1: file to the root directory of the source code Android source code to support a variety of IDE, if it is developed for APP layer, recommend the use of Eclipse development environment. In the source path (~/development/ide/eclipse), the Android provides the. Classpath configuration files (Note: the file is hidden files). Cp...
Read(9567) comments(10)

Sogou -------> transplantation and debugging of Android system of how to modify the Android device to add 3G function

-------> transplantation and debugging of Android system of how to modify the Android device to add 3G function...
Read(2003) comments(0)

Sogou My trip to Android advanced ------>Android based on Multithreading breakpoint HTTP protocol to download

My android advanced travel ------>Android realization based on HTTP multithreading breakpoint download, the download and multithreading breakpoint Download 1 multiple threads to download the principle of Note: due to the Android mobile device and PC processor is not compared, so open thread suggest not more than 5. Of course, now some high-end machine processor capacity is relatively strong, can open up a few note thread. 2, in order to achieve breakpoint download the database to record the download progress, so when you exit the application, click to download the next time, the program will to see the download link is to download the record if there is a download history will judge downloaded into...
Read(5185) comments(26)

Sogou Android system porting and debugging of the -------> how to modify Android devices add restart, flight mode, mute mode functions (II)

Today is for Android devices add restart, flight mode, silent mode button, customer requirements need to add this feature, in the long press the power button pop-up menu in none of these options, this article would like to record their own add the function of the process. First of all to find long press the power button pop-up dialog box, in the frameworks\base\policy\src\com\android\internal\policy\impl\GlobalActions.java file and modify createDialog (...
Read(3051) comments(0)

Sogou Android system porting and debugging of the -------> how to modify Android devices add restart, flight mode, mute mode function (a)

1, first look at the changes before and after the effect of contrast Modified picture Confirm restart interface Specific modifications in the next chapter specific introduction. ...
Read(2425) comments(0)

Sogou -------> transplantation and debugging of Android system of how to modify the default Android device sleep time

1, find the ~/mx0831-0525/frameworks/base/packages/SettingsProvider/res/values/ defaults.xml file 2, modify the default sleep time 3 to re compile 4. The compiler then found no effect, the original is device/other/TBDG1073/overlay/frameworks/base/packages/SettingsPr...
Read(2359) comments(0)

Sogou -------> transplantation and debugging of Android system of how to modify the Android desktop background picture

1, switch to the ~/mx0831-0525/device/other/TBDG1073/overlay/frameworks/base/core/res/res directory 2, to prepare a corresponding size of the picture and named default_wallpaper.jpg 3, modify the default_wallpaper.jpg folder under the drawable* image file Replace the default_ with the 3 directories with the ready picture...
Read(1699) comments(0)

Sogou -------> transplantation and debugging of Android system of how to modify the Android equipment boot Logo second stage

-------> transplantation and debugging of Android system of how to modify the Android equipment boot Logo second stage 1, modify the location: /home/pyou/mx0831-0525/device/other/TBG1073 directory 2, the robot.1024x600.png replacement for want to set up their own picture naming should be consistent, directory and other corresponds to the resolution of the picture can be according to their own needs to change the corresponding picture. 3, the production of robot.1024x600.raw files. Use the ImageMagick comes with the convert command, raw format conversion Command...
Read(1660) comments(0)

Sogou On the first stage of Logo -------> transplantation and debugging of Android system of how to modify the Android equipment

On the first stage of Logo -------> transplantation and debugging of Android system of how to modify the Android equipment...
Read(1559) comments(0)

Sogou Android system porting and debugging of the -------> how to modify the Android device status bar add and subtract the volume keys in the horizontal and vertical screen switching display to hide

Android system porting and debugging of the -------> how to modify the Android device status bar add and subtract the volume keys in the horizontal and vertical screen switching display to hide This two days due to a customer's request, the MID vertical screen of the state bar on the volume keys removed. So try to modify it, success, and share the experience. First look at the modified effect diagram, as shown below. Horizontal screen of the time: the volume of the addition and subtraction keys Vertical screen time: the volume of the keys were removed Then said about my solution. First I looked at \mx0831-0525\frameworks\base\packages\SystemU...
Read(2482) comments(0)

Sogou -------> transplantation and debugging of Android system of how to modify the Android storage drive name and Android device model

1, modify the device/other/TBDG1073/system.prop file 2, change the ro.media.patition.label property to OuyangPeng 3, change after recompiling 4, MID through USB connection to the computer display drive letter OuyangPeng...
Read(1894) comments(0)

Sogou -------> transplantation and debugging of Android system of how to modify the default language, Android default zone

1 set default time zone PRODUCT_PROPERTY_OVERRIDES = \ Persist.sys.timezone=Asia/Shanghai\ Note: search for "persist.sys.timezone" and change its value Persist.sys.timezone range Marshall Islands - the Marshall Islands Pa...
Read(4437) comments(0)

Sogou -------> transplantation and debugging of Android system in two ways how to modify the boot animation analysis

First of all, we have to analyze the source: Frameworks/base/cmds/bootanimation/BootAnimation.cpp First look at the definition of the constant: BootAnimation:: readyToRun () Enter a if judgment statement BootAnimation:: threadLoop () ==> BootAnimation...
Read(7103) comments(0)

Sogou Analysis of ------->build.prop generation process for Android system porting and debugging

In this paper, a brief analysis of how build.prop is generated. Android build.prop file is in the Android compile time to collect the various property (LCD density/ language / compile time, etc.), after the compilation, file spanning in out/target/product//system/ directory under the. Running time in the property_get can be through the [c/c++ () Android domain] / SystemProperties_...
Read(5995) comments(0)

Sogou How to -------> transplantation and debugging of Android system using PhotoShop transform 24 bit BMP image for the 16 bit BMP images

Using Android transplant when, a lot of pictures need 16 BMP format. Therefore, the research about how from 24 bit conversion into 16 bits, for all to see Step1: to view the properties of the BMP image, as shown in the figure below, is the 24 bit Step2: to open this picture with PhotoShop, and then click the file - > for storage Step3: in the pop-up Options box to select the BMP format, and then click save Step4: will pop up options to let you choose how many bits are stored in the BMP, select the 24 bit...
Read(2165) comments(0)

Sogou Android system porting and debugging ------->Amlogic program compilation steps

1 copy Amlogic SourceCode Mx0831-0525.tgz copied to the directory /home/pyou/ change directory to /home/roco/work/amlogic/SourceCode/mx0831-0525, decompression generated list of mx0831-0525. This directory is the working directory in the future. Tar.bz2 -jxvf tar command: *.tar.bz2 2 configuration environment variable...
Read(2772) comments(1)

Sogou The ------->build.prop file system transplantation and debugging of Android with appreciation

Build.prop is Android system an important attributes of files. It records the Android system of some important settings information, change it to get some unexpected results, but it is also because of the importance of.Prop. If you don't understand the specific meaning and the vast of don't just move it. A properties file is /system/build.prop, in the Android system file.Prop is important, record the system settings and changes, similar to the files in / etc. This document is how to generate it? Build/tools/buildinfo.sh script is specifically used to generate build.prop files Build/c...
Read(13701) comments(1)

Sogou Vi/vim basic use method

Vi/vim basic use method This paper introduces the basic use of VI (VIM) method, but for the average user is basically enough! Simple point i/vim difference between. They are multi pattern editor, unlike VIM is an upgraded version of the VI, it is not only compatible with the VI all instructions, but there are some new characteristics on the inside. Such as syntax highlighting, visual operation can not only in the terminal operation, can also run on X window, Mac OS, windows. The VI editor is the index of all Unix and Linux systems...
Read(1330) comments(0)

Sogou My trip to ------>Android Android advanced many detailed layout attributes

Android many of the layout attributes explain...
Read(1466) comments(0)

Sogou My trip to ------>RGB Android advanced color control query table

Online can view the corresponding color corresponding to the RGB code is very useful tool...
Read(2742) comments(0)

Sogou My trip to ------>Android Android advanced screen switch summary

In the default case when the screen from a vertical evaluation to horizontal screen can trigger onConfigurationChanged events in the default case will re loading screen and display and horizontal screen picture, it will have two problems. * layout problem in vertical display layout to horizontal screen in because of the wide and high occurrence of the change all how much will affect to the layout (unless you customize 2 sets of pictures in and then add a judgment in the horizontal screen shows how, in the vertical screen shows how), of course, the most simple way is in the androidmanifest.xml...
Read(11459) comments(3)

Sogou My Java development and learning trip ------>Eclipse project has a red exclamation point solution

Today a reader asked me about Android by invoking WebService, realize the weather forecast that the source code download error Not find class'org.ksoap2.transport.HttpTransportSE Could The solution to this problem is:     SDK upgrade to R17, the original normal program problem, it has cited the error in the jar package Prompt not find class'O Could...
Read(4505) comments(0)

Sogou My trip to ------>Android using advanced Android 9Patch images as the background without distortion

Man should be generous, Heiner rivers, work to be tactful, resourceful, it makes me think programming is so, the code has to be extended, the interface should be considered adaptive. This article is the necessary knowledge for Android developers, is my special for everyone and summarized. Do not seek perfection, but it works. 1 background adaptive and non distortion problem Making adaptive background image is the UI development a wide range of issues, but also interface designers eager to solve the problem, I believe each of us have a deep understanding. For example, list the background map, but the column...
Read(4349) comments(1)

Sogou My Java development study tour ------>Java character encoding analysis

Java development, often encounter garbled, once encountered this problem, often is bullshit, each people are not willing to admit there is a problem in your own code. In fact, encoding problem is not so mysterious, so subtle, making clear the essence of encoding Java The case is entirely cleared..               In fact, encoding problems exist in two aspects: JVM and JVM outside.   1, Java documents compiled after the formation of class Here Java encoding may have a variety of documents...
Read(2429) comments(1)

Sogou The Java array operation tool to develop my Java learning journey ------> write your own

See a section of the network on the operation of the code, feel useful, in this spare. Java.util.ArrayList import; Java.util.Arrays import; Java.util.List import; Java.util.Map import; Java.util.Random import; Java.util.TreeMap import; / * * * @desc array operation tool *...
Read(1453) comments(0)

Sogou My trip to ------>Android Android advanced permissions reference

Access registration properties Android.permission.ACCESS_CHECKIN_PROPERTIES, read or write check-in database table attribute registration Get the wrong location Android.permission.ACCESS_COARSE_LOCATION coarse location, through WiFi or mobile base station access to a user's longitude and latitude, positioning accuracy about error meters in 30~1500 Get accurate location Android...
Read(1744) comments(3)

Sogou My Java development study tour ClassLoader ------>Java two (turn)

One, what is ClassLoader? We know when we write a java program, not a pipe is CS or BS application is composed of a plurality of. Class file organization and a complete Java applications, when the program at runtime, which will be an entry function to the program to call the system call related functions, and these functions are encapsulated in different class files, so often from the class file to call another a class file method, and forever if another file does not exist
Read(1226) comments(0)

Sogou My journey of learning Java development ------>Java double checked locking and single mode detailed cases (turn)

Introduction: All programming languages have some common idioms. Understand and use idioms are very useful, programmers spend valuable time to create, study and implement these idioms. The problem is that later proved that some idioms don't completely as it claims that, or simply inconsistent with the description of the function. In the Java programming language, a double check lock is an idiom that should never be used. In this paper, Peter Haggar introduces the double checked locking idiom origin, its development and its causes of failure. ...
Read(1651) comments(0)

Sogou My journey of learning ------>Java Java development resources internationalization Xiangjie

Mutual (International) referred to as I18N, because between the I and N and 18 characters, localization (localization), referred to as L10n. International related Java class Java internationalization is mainly completed through the following 3 categories Java.util.ResourceBundle: for loading a resource package java.util.Locale: corresponding to a particular country / region, language environment. Java.tex...
Read(2436) comments(0)

Sogou My trip to ------>Android Android advanced weather forecast by calling Webservice

Through this article WebService reading notes on the Web Service awareness, now to write a small Android applications by calling WebService realization of weather forecast to strengthen the learning of Web srevice Before the development of weather forecast for the Android application, you first need to find a can provide external weather forecast web service, through the search found that the site http://webservice.webxml.com.cn/WebServ...
Read(5893) comments(33)

Sogou My trip to ------>WebService Android advanced reading notes

================================================================================================== Author: Ouyang Peng welcome to reprint, and sharing with others is the source of progress! Please keep the original address: http://prog3.com/sbdm/blog/ouyang_peng ====================...
Read(2555) comments(7)

Sogou My trip to ------>Android Android advanced development error summary

Everyone in the development project success and joy, but can not success along the way will often make mistakes, the following is I met some of the errors collection. [error message] 16:39:10 ApiDemos] - WARNING: Application does not [2011-01-19 specify an API level requirement! 16:39:10 ApiDemos] - Devic [2011-01-19...
Read(4417) comments(1)

Sogou My trip to Android advanced ------>Android common measurement unit (Dimension) of the (PX, in, mm, Pt, DP, dip, SP)

In the development of PX commonly used in Android, in, mm, Pt, DP, dip, SP these units, you can not be confused Source: http://developer.android.com/guide/topics/resources/more-resources.html#Dimension a brief introduction Dimension Dimension value defined in XML. A di A...
Read(2081) comments(0)

Sogou My trip to the Animations ------>Android Android advanced animation.

Animation type Animation of Android consists of four types: scale, alpha, translate, rotate XML Alpha Gradient transparency animation Scale Gradient size telescopic animation Translate Moving animation effect Rotate Picture transfer rotation animation effect In JavaCode...
Read(1431) comments(1)

Sogou My trip to learn java development ------>JAVA notes ClassLoader.getResourceAsStream () and Class.getResourceAsStream) (difference between

Today, readers in my android by invoking WebService realization of mobile phone number attribution query article in give me reply the question, because there is no specific description of my sop12.xml file is placed in the SRC directory, not specific operation AddressService.java placed in the same directory, caused a misunderstanding. InputStream = AddressService.class.getClassLoader (inputStream...
Read(3327) comments(2)

Sogou I ListView Android advanced tour ------>Android drop-down refresh rebound

Step1: new project PullToRefresh UI design and application of the step2: interface A./layout/pull_to_refresh.xml Xmlns:android= http://schemas.android.com/apk/res/android "<LinearLayout" Android:orientation= "vertical" an...
Read(2738) comments(1)

Sogou My trip to the Android advanced ------>android Gallery add 3D reflection effect

After the preview and slide the two picture browser on the Android gallery and GridView two way and ImageSwitcher, and occasionally see some Gallery 3D effect of the case, learning about, and now the case is written, for everyone to share. We can see. Http://prog3.com/sbdm/blog/leehong2005/article/details/8070538 and http://android...
Read(2578) comments(4)

Sogou Preview and slide the two photo browser with advanced my android trip ------>Android gallery and GridView two way and ImageSwitcher

Brief introduction Function and usage of a.GridView (network view) B.ImageSwitcher (graphics switcher) function and usage Function and usage of c.Gallery (gallery view) Two, through an example to learn Gallery, GridView and ImageSwitcher Step1: a new project MyGridViewAndGallery...
Read(4082) comments(4)

Sogou My trip to Android Advanced tab ------>Android (TabHost) function and usage

brief introduction The following to learn TabHost through an example, based on a Android drag bar (SeekBar and RatingBar) function and usage The use of the project to optimize the use of TabHost to make the interface looks more friendly. Step1: a new project MyTabHost UI design and application of the step2: interface...
Read(2101) comments(1)

Sogou Drag my trip to the Android advanced ------>Android (SeekBar and RatingBar) of the function and usage

brief introduction       The following example to learn SeekBar and RatingBar by using a drag slider to change the image transparency Step1: a new project MySeekBar Step2: preparation of the application of the UI interface A. /layout/seekbar.xml Xmlns:android= http://schemas.andr "<LinearLayout...
Read(2540) comments(1)

Sogou The progress of my trip to the advanced Android ------>Android (ProgressBar) function and usage

Brief introduction The UI in a very useful components progress bar exit a consumption compared with complete operation time percentage for displaying to the user. Therefore, the progress bar can dynamically display the progress, to avoid the long time to perform a time consuming operation, Let the user feel the process has lost the response, so as to better improve the user friendly interface. The progress of Android supports several styles, you can specify the style of Progress through the style property. This property can support the following values. ...
Read(8122) comments(1)

Sogou My trip to ------>Android DatePicker and Android advanced TimePicker case

brief introduction Following a let the user select the date and time of the example to demonstrate the function and usage of DatePicker and TimePicker Step1: a new project DateAndTimePicker Step2: written application UI interface /layout/main.xml Xmlns:android= http://schemas.android.com/apk "<LinearLayout...
Read(5781) comments(0)

Sogou My trip to ------>Android Android advanced AutoCompleteTextView search history tips

. In our usual online often used when Google or Baidu, in the input box input we want to input the information will be other related message, very convenient. This effect in Android is implemented by using the AutoCompleteTextView the, AutoCompleteTextView is a can edit text view, when a user is typing will automatically display the completion of the proposed information.   The proposed list is displayed in the drop-down list box, you can select the contents of a certain item instead of the edit box.   When used...
Read(5068) comments(1)

Sogou Read the file from the FTP server to return to the TelnetInputStream stream file name, file size, file date

These two days in the graduation design, the use is sun.net.ftp.FtpClient, including a problem is how to get the list of files in the server and displayed, finally get out now, write a note of it Step1: access to the server file list of information, return to a TelnetInputStream TelnetInputStream = ftpClient.list (list); / / listFtpFiles (LIS access server file list...
Read(1581) comments(0)

Sogou My trip to ------>Android Widget Android advanced desktop digital clock (DigtalClockWidget) example

The new step1: DigtalClockWidget project, and will display the picture into the drawable directory folder to time:                                                         Pictures all are as follows:...
Read(4132) comments(1)

Sogou My trip to ------>android Android advanced asynchronousloading picture display, and cache instances on the picture

Step1: new project DataAsyncLoad, as shown below Step2: set up the application of the UI interface The application of A. interface main.xml Xmlns:android= http://schemas.android.com/apk/res/android "<LinearLayout" Vertical "android:orientation=" Android:lay...
Read(2816) comments(6)

Sogou I Android advanced tour ------>Android using PopupWindow to achieve a pop-up menu examples

Step1: new project PopWindow, and import menu items to use the picture to the /res/drawable directory (project overview diagram) (drawable directories screenshot) The application of UI interface step2: settings The general interface of A. application, main.xml <LinearLayout...
Read(5600) comments(5)

Sogou My trip to ------>Android Android advanced by Sensor (sensor) to achieve the compass function

Step1: to create a new project Compass, and a compass picture into the res/drawable-hdpi directory Step2: design and application of the UI interface, main.xml Xmlns:android= http://schemas.android.com/apk/res/android "<LinearLayout" Vertical "android:orientation=" And...
Read(3742) comments(0)

Sogou My trip to ------>android Matrix Android advanced photo random zoom, drag

Step1: a new DragAndZoom project, and prepare a photograph in the res/drawable-hdpi directory, as shown below:         Step2: set up the application of the UI interface, set in main.xml: Xmlns:android= http://schemas.android.com/apk/res/android "<LinearLayout" Android:orienta...
Read(10441) comments(10)

Sogou My trip to ------>Android Drawable Android advanced subtotals Xiangjie

The Android object can be abstracted as drawing Drawable, graphic images of different resources represent the different types of drawable. The Android framework provides some specific drawable implementation, usually in the code are not in direct contact with drawable implementation class. In the actual development process, the use of the resources are placed in the directory of res/drawable and pay the rest of the work to the Android SDK on the line, when you need to use a picture...
Read(5903) comments(3)

Sogou My trip to ------>Android Android advanced ViewFlipper realize the use of sliding flip

Switching the screen to see the screen in the same activity switching, the most common is in a FrameLayout have multiple pages, such as a system settings page; a personalized settings page. By viewing the ophone API documentation can be found, there is a android.widget.ViewAnimator class inheritance to the FrameLayout. ViewAnimator is provide the animation effect for the FrameLayout view switch. The class has the following...
Read(3303) comments(5)

Sogou My trip to ------>Android Android advanced Gusture gesture recognition case

Step1: produced a Android Gusture Builder program used to draw Gusture and then stored for other projects   The first item into Android SDK \android-sdk-windows\samples\android-8\ directory GestureBuilder for generating Gusture Library The import process to add a few files can be imported into Eclipse, as shown below: these documents can...
Read(1885) comments(0)

Sogou My trip to ------>Android in the use of advanced Android HTML layout file and call the Javascript

In the Android development, usually use XML format to describe the layout file by Android layout sometimes simply can not meet our requirements for the interface, sometimes not web pages that Hyun. For the present, there are few people who are familiar with Android layout and landscaping, and there are serious faults. Most of the business, in fact, is the programmer's own layout. This is a waste of time and energy, and may not be able to achieve the desired results. However, in the development of the Android enterprise, use the HTML page layout, also has a lot of advantages (...
Read(2318) comments(7)

Sogou I AIDL Android advanced tour ------>Android Service learning, Parcelable and remote service instance

Through introduction of an article (Aidl Android service learning, Parcelable and remote service), this article to write a small example to practice Step1: the establishment of two applications, respectively, RemoteService and RemoteServiceClient                                         Write the contents of the server side Step2: began to write a StudentQue...
Read(1672) comments(0)

Sogou I AIDL Android advanced tour ------>Android Service learning, Parcelable and remote service

The role of AIDL Because each application runs in its own process space and can run another process of services from the app UI, and often pass objects between the different processes. On the Android platform, a process can not normally access the memory of another process, so to want to talk to, need the object is decomposed into the operating system can understand the basic unit, and ordered the boundary through the process. Through the code to realize the data transmission process is tedious, Android offers the Aidl tool to deal with this work. ...
Read(1653) comments(0)

Sogou My trip to ------>Android Android advanced phone hacking case

Step 1: a new Android project, named PhoneListenerService, the service does not need the interface 2: PhoneService.java main control program Step code as follows: Cn.roco.phonelistener package; Java.io.File import; Java.io.OutputStream import; Java.io.P import...
Read(2433) comments(10)

Sogou My trip to ------>Android MediaPlayer Android advanced audio broadcast network examples -- Network MP3 player

The last one wrote a simple MP3 player, this time to write a player can play network audio resources Examples can be achieved in this music player except when the calls would pause playback, call ends after the resumption of play, open the other activity can continue playing music, enjoy listening to music while doing other things. The player can achieve the progress bar display, drag the progress bar, you can adjust the playback progress. Step 1: a new Android project, named AudioNetPlayer Step 2...
Read(6538) comments(2)

Sogou My trip to ------>Android MediaPlayer Android advanced MP3 player example simple MP3 player

Hello everyone, today we are studying the Android is very important and the most complex media player ---MediaPlayer. Android mediaplayer contains audio and video playback, in the Android interface, music and video two applications are calling mediaplayer. First, look at the life cycle of MediaPlayer: From MediaPlayer...
Read(8184) comments(0)

Sogou Java multithreading breakpoint download file _ Xiangjie

Basic principle: using urlconnection get to download a file length, head and other related information, and set the response header information. And urlconnection obtain input stream, the file into the specified block. Each block separately open a thread to complete the data read and write. Through the input stream to read the file download information, and then read the information use RandomAccessFile random writes to local files. At the same time, each thread writes the data are the file pointer is write data length and need is stored in a temporary file. So when...
Read(2430) comments(0)

Sogou HttpClient4.2.2 several commonly used methods, access to the page after login problem, download the file

In the work to be used in Android, and then the network request, intended to use httpClient. Sum up some of the basic use of httpClient. Version is 4.2.2. Use this version of the process, a lot of Baidu, result is the emergence of org.apache.commons.httpclient. the package name, and not here I org.apache.http.client.HttpClient---------- the former version is common.
Read(1350) comments(0)

Sogou I Android advanced tour ------>Android send GET and POST and the HttpClient POST request is sent to the server response

Effect as shown below:   Layout main.xml < LinearLayout xmlns:Android =“http://schemas.android.com/apk/res/android” 安卓:方向=“垂直” 安卓:layout_width =“fill_parent” 安卓:layout_height…
阅读(1690) 评论(0)

[置顶] 我的Android进阶之旅------ > Android通过调用WebService实现手机号码归属地查询

此APP的实现功能如图所示:   注:HTTP:/ /服务。webxml com. cn /服务/ mobilecodews .asmx是本文WebService的提供商 具体的用法见:http://webservice.webxml.com.cn/webservices/mobilecodews.asmx?OP = getmobilecodeinfo   以下是…
阅读(3460) 评论(6)

[置顶] 我的Android进阶之旅------ > Android获取服务器上格式为JSON XML两种格式的信息的小程序和

首先写一个应用服务器端的JSP JSP Servlet程序,用和简单实现,如下图所示     包cn.roco.domain; 公开课新闻{ 私人整数标识; 私人字符串标题; 私人的整数时间; 公共news() { } 公共东北…
阅读(1515) 评论(0)

[置顶] 我的Android进阶之旅------ > ListView应用解析(使用ArrayAdapter,SimpleAdapter和simplecursoradapter适配器)

在Android开发中ListView是比较常用的组件,它以列表的形式展示具体内容,并且能够根据数据的长度自适应显示。抽空把对ListView的使用做了整理,并写了个小例子,如下图。 列表的显示需要三个元素: 1.listveiw用来展示列表的观。 2。适配器用来把数据映射到ListView上的中介。 3。数据   具体的将被映射的字符串,图片,或者基本组件。 根据列表的…
阅读(1588) 评论(1)

[置顶] 我的Android进阶之旅------ > Android声明和使用权限

Android定义了一种权限方案来保护设备上的资源和功能。例如,在默认情况下,应用程序无法访问联系人列表、拨打电话等。下面就以拨打电话为例介绍一下系统对权限的要求。一般在我们的应用中,如果要用到拨打电话的功能,我们会这样编码: [爪哇] 查看plaincopyprint? URI的URI,URI。解析(“电话:12345678”);  强度…
阅读(1216) 评论(0)

[置顶] 我的Android进阶之旅------ > Android中解析XML技术详解---->萨克斯解析、DOM解析、拉解析

XML在各种开发中都广泛应用,Android也不例外。作为承载数据的一个重要角色,如何读写XML成为Android开发中一项重要的技能。今天就由我向大家介绍一下在Android平台下几种常见的XML解析和创建的方法。 在Android中,常见的XML DOM解析器分别为SAX解析器、解析器和拉解析器,下面,我将一一向大家详细介绍。 萨克斯解析器: 萨克斯(对..简单的API
阅读(1541) 评论(1)

[置顶] 我的Android进阶之旅------ > Android实现数据存储技术

本文介绍Android中的5种数据存储方式。 数据存储在开发中是使用最频繁的,在这里主要介绍Android平台中实现数据存储的5种方式,分别是: 1使用SharedPreferences存储数据 2文件存储数据 3数据库存储数据SQLite 4使用ContentProvider存储数据 5网络存储数据 下面将为大家一一详细介绍。 第一种:使用sharedpr…
阅读(1513) 评论(0)

[置顶] 我的Android进阶之旅------ > QR的生成(二维码)

本文转载于:http://prog3.com/sbdm/blog/dlutbrucezhang/article/details/8582839 二维码的定义: 二维码(二维 条码),是用某种特定的几何图形按一定规律在平面(二维方向上) 分布的黑白相间的图形记录数据符号信息的。 在许多种类的二维条码中,常用的码制有:数据矩阵,最大…
阅读(1835) 评论(2)

[置顶] Linux /etc/passwd /etc/group /etc/shadow文件的格式说明

/etc/passwd deposit account information: Root:x:0:0:root:/root:/bin/bash Jianing:x:1011:100:: /home/jianing:/bin/bash Username:password:uid:gid:allname:homedir:shell User name: Password: user ID: group ID: user name: the main directory: login shell...
Read(3987) comments(0)

Sogou My Java development and learning trip ClassLoader ------>Java analytic one (turn)

ClassLoader architecture jvm: Bootstrap ClassLoader/ boot classloader Mainly responsible for the core of the jdk_home/lib directory of the API or -Xbootclasspath option specifies the jar package into the work. Extension ClassLoader/ extension class loader Mainly responsible for the jdk_home/lib/ext directory jar package or -Djava.ext.dirs...
Read(1314) comments(0)

Sogou My Java development study tour IO ------>JAVA design pattern thorough analysis

A. Introduction (brief introduction of Java IO) Regardless of what kind of programming language, input and output are an important part of, Java is no exception and Java input / output function and use the category do greatly expanded. It uses the flow mechanism to achieve input / output, so-called flow is the orderly arrangement of data and flow can be from a source (known as flow source or source of stream out, to a destination (for flow sinks or sink of stream) to. The direction of the flow can be divided into input and output streams,...
Read(1428) comments(1)

Sogou My Java development learning journey ------> experience summary: Java performance optimization technique highlights

First, the general article The general article discusses the problem for most Java applications. 1.1 do not use the new keyword to create an instance of the class An instance of a class is created with new keywords, all constructors in the chain constructor will be invoked automatically. But if an object implements the Cloneable interface, we can call it the clone () method. Clone () method does not call any class constructor. In the use of design patterns (Pattern Design) of the occasion, if you use the Factory model to create...
Read(1349) comments(2)

Sogou My Java development learning trip ------>Java amount of the case to write the conversion

/ * * * NumberConvert.java @Title: * com.im20.sc.test @Package * TODO @Description: * oyp @author * 2013-3-07 16:08:10 PM @date * V1.0 @version * / Com.im20.sc.test package; / * * * @ClassName...
Read(1356) comments(5)

Android installation APK error: error: INSTALL_FAILED_UPDATE_INCOMPATIBLE Installation solution

Today, when debugging a Android application, the installation of the following errors:...
Read(710) comments(0)

Fast pressure, compression, 360 WinRAR on the fast open pressure by high compression ratio after the file is not compatible with the problem

Today received a colleague sent me of a compressed file, with 360 compression open and use winrar to open the zip file, dumbfounded, this is what ghost compressed package. Compressed package file size 27533KB, 360 compression decompression tool view only 121.5kb, and completely not display out real content of the compressed file, as shown below: using WinRAR decompression tool view is more wonderful, only an HTML file, as shown in the following: click on the HTML file, display web content is as follows: OK, the page tips I "due to resource the resources used.
Read(690) comments(4)

Please listen to a story ------> a programmer job hopping to the satisfaction of all pay

Source: blog park to refer to the original: the http://www.cnblogs.com/justnow/p/4903436.html: GG2014 articles address: https://linux.cn/article-6464-1.html, my friend a gentleman is a typical. Net developers, technology is good, character is good, in a small company, tentatively known as a company) to do project development, technical backbone. 3 months ago, he found me and said I wanted to quit, so I can help you with your work. I said, why do you want to dance? ...
Read(144) comments(0)

Basic knowledge of civil radio

For friends who travel often, hand this thing must not unfamiliar general partners about a friend will have multiple, to keep the team cohesion but exactly what kind of hand for us so often travel donkey? This might don't below everybody I in the past few days visit, and we do a share hope to then and I would like to hand the donkey friends of some help ~ ~ what is the English name of the walkie talkie is a two way radio. It is a two-way mobile communications industry and trade with and without the need for any network support, you can call, no bills, for...
Read(164) comments(0)

Baidu Encyclopedia

Original: http://baike.baidu.com/view/34537.htm? English name wtp=tt walkie talkie of the is a two way radio. It is a two-way mobile communication tools, without the need for any network support, you can call, no bills, applicable to relatively fixed and frequent communication occasions. There are three main types of radio: analog radio, digital intercom, IP radio. Chinese name English name two way radio radio type mobile communication tools special point two-way birth...
Read(201) comments(0)

Basic knowledge of the intercom literacy

The basic knowledge of the basic knowledge of the intercom 1 the distance between the phone call how far? Radio communication without "distance" of the indicators, because ultrashort wave communication for line of sight propagation, signal from buildings, hills, forests, fields blocking and interference, the impact of the actual call distance and quality. In the ideal state (without any blocking and interference) the distance of professional walkie talkie call at 10 km above and beyond, while the actual distance calls only 3 ~ 5 km, in the tall buildings, mountains blocking or space electromagnetic interference under the serious situation, call distance will very short or even communication. 2 use the intercom...
Read(130) comments(0)

DMR technology white paper

1, the limitations of simulation technology Although the simulation technology still has many advantages, such as low cost, self function and simple way to build etc.. But simulation technology has been restricted from its own technology and policy, the main limiting including battery life short, voice quality (at the edge of coverage), poor communication and data integration applications inefficient. In addition, various wireless communication faces limiteduser spectrum simulation, the result of communication congestion and mutual interference. The LMR system uses 25 kHz broadband bandwidth, but the current utilization of the spectrum has been unable to meet the needs of users of professional wireless communications. In December 2004, the Federal Communications Commission forced all 512MHz LMR users, unified switching to 12.5kHz band...
Read(120) comments(0)
371 data a total of 19 pagesOne Two Three Four Five ... The Library Shadowe
    personal data
    • Visit654526 times
    • Integral:Nine thousand nine hundred and seventy-eight
    • Grade
    • Rank:852nd name
    • Original273
    • Reproduced:98
    • Translation:0
    • Comments:454
    Latest comments