Summary of applet Bluetooth

  Question: Recently I have made a small program involving Bluetooth module, make a summary, make a record of your growth, if you can help you, it would be great; 1. Applet Bluetooth Search Can Search Mobile Devices 2. How to determine if Bluetooth is on or off 3. Search for specified devices 4. The deviceId obtained on th ...

Posted by Aptana on Fri, 10 May 2019 09:58:03 +0200

Android Design Patterns - Agent Patterns

1. definition Providing a proxy for an object and controlling the reference of the original object by the proxy object is an object structural pattern. 2. role In some cases, customers do not want or can not directly refer to an object, which can be indirectly referred to by a third party called a "proxy". Proxy objects c ...

Posted by railgun on Thu, 09 May 2019 05:06:04 +0200

pygame Learning Notes Add a Wizard: Tank Moving and Rotating

Content of this article Use of Elves Use of Rect Class Realize the movement and rotation of a tank Effect demonstration Add a static tank We already know how to create a game window, set up background pictures, and let the game program respond to keyboards and mice. Then we need to add an elf to the game. Elves are a co ...

Posted by darkfreaks on Wed, 08 May 2019 13:15:03 +0200

android hides desktop icons

It's very important to make product retention, and it's very important to make small white. How to keep your app active all the time? Here's another way to create a shortcut like system icon in the mobile phone's breath screen. Then hide the icon of your application. Now let's look at the concrete steps: 1. How to monitor the ...

Posted by KingIsulgard on Wed, 08 May 2019 08:00:06 +0200

Android clicks on the notification bar message to open the activity and determine if the app is running

android notification bar message click event if an activity is opened, we need to consider two situations: The application is running in the foreground. The application has exited. If it's the first case, it's handled. Set flag to FLAG_ACTIVITY_NEW_TASK for Intent directly, and then call the context.startActivity method. Flag ...

Posted by mentor on Wed, 08 May 2019 05:10:05 +0200

Creative Patterns: Factory Approach

Article firstCreative Patterns: Factory Approach brief introduction Name: Factory Method English name: Factory method Pattern Values: Expansion is my monopoly Personal introduction: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Methods lets a class defer instantiation to subclasses. ...

Posted by FFEMTcJ on Tue, 07 May 2019 18:45:04 +0200

Solution for automatic update of Chinese word segmentation full-text index in NEO4J

Solution for automatic update of Chinese word segmentation full-text index in NEO4J 1. Sample data 2. Differences between English and Chinese Full-Text Indexes 1. Create NEO4J default index 2. Delete Index 3. Create an index that supports Chinese words 3. APOC has its own English full-text indexing process (indexing can be ...

Posted by frog_ on Mon, 06 May 2019 13:10:03 +0200

Clever positioning of ANR issues

It must be that children's shoes that have been developed with Android have met anr (Application Not Responding).The general practice is to go to/data/anr/trace.txt and fetch the corresponding file.Then, find the result you want from this huge stack of information.But it's crazy to get a bunch of arn stack information. How can I find my problem ...

Posted by jplock on Sun, 05 May 2019 23:00:02 +0200