Android share control

Nowadays, many applications provide the function of sharing information to the outside world. When sharing, the user usually pops up a list of all applications with sharing function from the bottom of the screen, and then selects them Now I'm going to simulate this effect, not only to make the sharing control pop up from the ...

Posted on Mon, 06 Apr 2020 00:35:39 -0700 by robvan75

Android file absolute path and Content starting Uri convert to each other

https://www.jianshu.com/p/02fa61d8dbf5 Problems encountered in work. After taking pictures, the path is file:///storage/emulated/0/Android/data/com.zehin.mingchuliangzao3/cache/PostPicture/20160905182015.jpg But the path I want is: content://media/external/images/media/212304 Of this Uri type Look up the data and ...

Posted on Sun, 05 Apr 2020 22:16:50 -0700 by sarabjit

Running tcpdump tool in Python ADB

This article and the previous one: Python ADB runs shell scripts similar to, The main technical point of the previous article is to say that text files such as shell s are "hidden" in Python code; This article mainly talks about how to hide binary executable files such as tcpdump into Python code. ::: the App with online function of ...

Posted on Sun, 05 Apr 2020 21:37:31 -0700 by Billett

Keyboard pop-up hidden monitor

Source code https://github.com/yescpu/KeyboardChangeListener public class KeyboardChangeListener implements ViewTreeObserver.OnGlobalLayoutListener { private static final String TAG = "ListenerHandler"; private View mContentView; private int mOriginHeight; private int mPreHeight; private KeyBoardListener mKeyBoardListen; ...

Posted on Sun, 05 Apr 2020 06:02:14 -0700 by nels

Audio and video acquisition, coding, packet into mp4 output

Using Android Camera API to complete audio and video collection, coding, packet into mp4 output Based on android.hardware.Camera, create a horizontal screen application, preview the camera image in real time, realize the function of recording and outputting MP4. 1. Application authority <!-- Recording audio and video rights and write extern ...

Posted on Sun, 05 Apr 2020 05:33:30 -0700 by sametch

Customize Dialog pop-up window, such as Taobao, tmall, Jingdong, etc

Dialog has become a common practice for Android developers. It is often used as a reminder function, but it can also be extended to ad pop-up effect. Let's define an ad dialog. Here are the renderings to be realized today 1, Implementation of custom Dialog layout The layout of Dialog is very simple. In fact, it's a p ...

Posted on Sat, 04 Apr 2020 19:12:02 -0700 by edraynham

Practice of Android MVVM+DataBinding framework mode

Recently, I simply learned the MVVM framework and recorded it. Results demonstration:     Analyze the composition of its functions under different frameworks: Frameless     It can be clearly felt that in the absence of framework, although a single Activity can achieve the function, it is overburdened and the code review is tedious. Once it ...

Posted on Sat, 04 Apr 2020 17:54:03 -0700 by rowantrimmer

Custom control: SlideMenu

thinking The sideslip menu has 2 parts, the left layout and the main layout, so you must inherit the ViewGroup. All of them must first measure the width of the menuView+contentView in onMeasure(), so that 2 sub layout is placed in onLayout (), scrollBy() is invoked in the move process to achieve the sliding effect, and the ...

Posted on Sat, 04 Apr 2020 16:14:53 -0700 by CGRRay

Android--------WebView+H5 development of imitating meituan preloading, loading failure and reloading

Android embedded development has occupied the majority, many interfaces are displayed in the form of web pages, WebView can make web pages easily embedded in the app, and can also directly call with js. This blog mainly imitates the preloading of meituan's travel module, web page loading failure and web page reloading, The effect is as follow ...

Posted on Fri, 03 Apr 2020 11:00:33 -0700 by Goose

Android reads table data of JSP page

When doing this, I found that I didn't have enough basic knowledge of java, so I learned a lot in this process. For example, private variables and member variables, that is, how to set variables that can be referenced by the entire project in java. In addition to these, I learned how to use the listView control of Android studio and how to grab ...

Posted on Fri, 03 Apr 2020 10:23:57 -0700 by GrizzlyBear