Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
Three methods to add ListView
no vote
ListView is one of the very important components of the Android software development, is basically a basic software will use the ListView, today I passed a demo to teach you how to use the ListView component paints a beautiful list, says ListView Adapter that would have to say, because only it can map data list by Adapter to the ListView. In the android development can be divided into a total of most Adapter ArrayAdapter, BaseAdapter, CursorAdapter, HeaderViewListAdapter, ResourceCursorAdapter, SimpleAdapter, SimpleCursorAdapter, WrapperListAdapter Software development is the most commonly used ArrayAdapter, BaseAdapter, SimpleAdapter, today I used a piece of code to tell you the interpretation of how to use the ListView control.
yulin123
2016-08-23
0
1
Bluetooth find
no vote
1. Register broadcastreceiver with registerreceiver to obtain Bluetooth status, search device and other messages; 2. Search with blueadatper; 3. Obtain the Bluetooth device information (such as name, MAC, RSSI) obtained from the search in onreceive() of broadcastreceiver; 4. Establish a Bluetooth device object through the MAC address of the device; 5. Derive the Bluetooth socket from the Bluetooth device to prepare the Bluetooth device Socket to read and write devices; 6. Select the protocol / service of the connection through the createrfcomsockettoservicerecord() method of Bluetooth socket, here spp is used( UUID:00001101-0000-1000-8000-00805F9B34FB )7. After connect (if it is not paired, the system will automatically prompt), use getinputstream() and getoutputstream() of Bluetooth socket to read and write Bluetooth devices.  
yulin123
2016-08-23
0
1
No more~