aosp - Source Reading Environment Setup

Article Directory 1 Background 2 Get Source 3 Build Source Index #Problems encountered 1 Background Android development is always looking at the source code in the SDK. Many of the code in the SDK is hidden and can't be seen.There is no source insight tool on the mac, no vscode plug-in to toggle ...

Posted on Sun, 26 Jan 2020 18:03:14 -0800 by curlytail

Avoid too many if-else new postures: guard sentences, small functions, polymorphism, reflection

Catalog   Preface guard clause Code: Small function LoD Concepts: Code: Map Extract Object Stream polymorphic reflex Preface In our normal development process, due to the time constraints of the project, the code can be used as good as possible, often ignoring the quality of the code.S ...

Posted on Sun, 26 Jan 2020 17:46:46 -0800 by IanM

[python] solves its own bugs and remembers the bugs caused in the process of using variables once

[functional requirements] in the SMS editing interface, insert all emoji expressions into the editing area. There are 5 pages of expressions in total. When you traverse one page, you need to automatically turn the page to retrieve and insert the expressions again. There are only 10 expressions on page 5 Let's take a look at this code. Can you s ...

Posted on Fri, 24 Jan 2020 07:30:55 -0800 by tolutlou

Android Studio: take photos with Camera (2) customize Camera

1. Create a new Android project named startcamera 2. Processing interface layout 2.1activity_startcamera.xml 2.2custom.xml 2.3result.xml 2.4strings.xml 3. Edit code 3.1startcamera.java 3.2Customcamera.java 3.3ResultActivity.java 4.AndroidManifest.xml 1. Create a new Android project named startcamera Java f ...

Posted on Fri, 24 Jan 2020 07:08:17 -0800 by mrjiggyhill

A super simple example of how to get started with ViewPager

ViewPager is used for work, but there is no relevant content in the first line of code. Therefore, I can only turn to Du Niang for help. I made the first small demo by learning other blogs and videos. I'm here to sort out the use steps. Effect display (picture author Jan Erik Waider (delete) Related layout ViewPager is a ...

Posted on Fri, 24 Jan 2020 06:36:21 -0800 by gumby51

Android multichannel configuration

Multichannel packaging is not a new technology for a long time. There are thousands of online searches, but for developers who have not used it, they are confused after reading the articles that are copied and copied online, and they can not find the multichannel configuration that meets their own needs ...

Posted on Tue, 21 Jan 2020 03:31:15 -0800 by Kitara

Android automated test: Appium+python+Jenkins automated test framework construction

Catalog   Overall knowledge framework Environment preparation (windows) appium installation and use deviceName can be obtained through adb devices Obtaining appPackage and appActivity: connecting to dos input of mobile phone Pycharm introduces the plug-in Appium Python client ---- associate Ap ...

Posted on Tue, 21 Jan 2020 02:29:57 -0800 by borabora12

Occlusion of mobile soft keyboard

Article directory Introduction to scrollIntoView Specific use of anti blocking Using scroll to prevent occlusion Introduction to scrollIntoView In H5 page of mobile terminal, when the input box element gets the focus, the soft keyboard will be hoisted. If the input box is blocked by the soft key ...

Posted on Mon, 20 Jan 2020 21:02:22 -0800 by sergeidave

Sketch - three and a half sentences - recite apk

1. demand At the annual meeting of the company, each department is required to produce a program. Our interface is the skit "three sentences and a half". Four people, each of them say a sentence, but the line is too long, so they wrote a demo to recite the line. In the final 10 programs of t ...

Posted on Mon, 20 Jan 2020 10:48:02 -0800 by leena86

Generation diary of elderly remote monitoring crutches [the first bullet]

Generation diary of elderly remote monitoring crutches [the first bullet] Design conception Hardware list Hardware connection Related procedures Design conception It's no use talking before you get to the point. This design idea originates from my grandfather. Grandfather is old. Although his bo ...

Posted on Sun, 19 Jan 2020 22:37:22 -0800 by insub2