Metal Series II: GPU Devices -- Creating Textures and Samplers for Texture and Samplers

Create texture objects using private storage containing texture states. func makeTexture(descriptor: MTLTextureDescriptor) -> MTLTexture? Creates a texture object with privately owned storage that contains texture state. Required. IOSurface creates texture objects using private storage containing texture states. func makeT ...

Posted by symantec on Tue, 22 Jan 2019 20:39:13 -0800

java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.load.Key.updateDiskCacheKe

Using Glide 4.8 to load network address to achieve Gauss ambiguity. First, import glide implementation 'com.github.bumptech.glide:glide:4.7.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' Looking up the data on the internet, we find that the implementation of Gauss ambiguity by Glide still needs to be ...

Posted by jennifer_ann on Tue, 22 Jan 2019 19:51:13 -0800

Fragment uses the ViewPager+Fragment mode without retaining background activities. After the Activity is destroyed and rebuilt, the Fragment exception occurs.

Cause analysis Activity saves the status of all added Fragments after adding Fragments to Activity; Activity recreates the original fragments and attach es them when it is reclaimed due to problems such as system memory; however, if we use a reference to save and use Fragments in ViewPager, it will cause an exception. Problem ...

Posted by wkerplunk on Tue, 22 Jan 2019 18:03:13 -0800

One pick-up: DS18B20 temperature reading

DS18B20 digital thermometer is a 1-Wire made by DALLAS company, which is a single bus device. It has the characteristics of simple circuit and small volume. Therefore, it can be used to form a temperature measurement system, which has a simple circuit and can hang many such digital thermometers in a communication line. It is ver ...

Posted by jkohns on Mon, 21 Jan 2019 16:39:12 -0800

Android AsyncTask

Android AsyncTask Content partition Introduction to AsyncTask Simple use Analysis of Complex Parts and Source Codes Some pits Introduction to AsyncTask AsyncTask enables proper and easy use of the UI thread. This class allows you to perform background operations and publish results on the UI thread without having to man ...

Posted by etoast on Mon, 21 Jan 2019 13:12:12 -0800

Android closes permissions in application settings and returns to lifecycle processing

problem In dealing with the 6.0 runtime permissions, many people have overlooked such a problem: In an App application, if you have allowed a privilege such as (read communication privilege), call the camera at this moment, pop up the privilege application dialog box, click reject at this moment, and then pop up after processi ...

Posted by cybersurfur on Mon, 21 Jan 2019 09:27:13 -0800

Conversion Quick Search Manual for OC and Swift Requirements for iOS Development (strongly recommended)

This article mainly introduces the relevant information about Objective-C and Swift's Handbook of quick search for conversion. The sample code is introduced in detail in this article. It is highly recommended for your reference and learning. It invites readers to join the small group exchange group: 624212887, to exchange and l ...

Posted by NoBullMan on Sun, 20 Jan 2019 14:12:12 -0800

Android converts Chinese characters into Pinyin, achieves A-Z alphabetic sorting of ListView, and displays multi-syllable city sorting.

Android implements the A-Z alphabet sorting and filtering search function of ListView, and realizes the conversion of Chinese characters into Pinyin. Content source: http://blog.csdn.net/xiaanming/article/details/12684155 I just made some minor changes according to my own needs and sent out a memorandum. Today we bring you t ...

Posted by mothermugger on Sun, 20 Jan 2019 11:42:14 -0800

settings Fast Search Logic Carding (Part I)

Beginning with Android 5.1, google has provided users with a very convenient search function. Users can easily search settings in settings or other configurations of settings for applications specified to inherit from Search Indexables Provider, which greatly improves the search efficiency. Based on Android 8.1, this paper com ...

Posted by bachx on Sun, 20 Jan 2019 09:03:12 -0800

Android 8.1 Source Core Chapter -- Deep Study of Package Manager Service Series (2)

Beginning Core source code Key Classes Route SystemServer.java frameworks/base/services/java/com/android/server/SystemServer.java PackageManagerService.java frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java Process.java frameworks/base/core/java/android/os/Process.java SystemConfig.java frameworks/ba ...

Posted by mike97gt on Sat, 19 Jan 2019 23:27:14 -0800