The case of network programming based on HttpClient Download Text and picture download text and picture for Android

The case of downloading text and picture network programming based on HttpClient for Android 1, Operation effect 2, Implementation steps 1. Create android app DownloadTextImageByHttpClient 2, Main layout file activity main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://s ...

Posted by prasitc2005 on Sat, 02 May 2020 19:28:17 -0700

Multiline radio group

demand Implementation method If it is single row or single column, use RadioGroup+RadioButton directly But often the plan can't catch up with the change. The graph given by ui is this kind of multi line single choice One of the ways to think about it is gridview Here we use RecyclerView to encapsulate Finish all the processing, so t ...

Posted by rockroka on Sat, 02 May 2020 19:11:34 -0700

56. (android Development) file read / write operations OpenFileOutput and OpenFileInput

In addition to saving key value data, content can also be saved directly in the form of files in android. Data format can be at will, are in the form of strings in the file. Take the longest txt text file you can see as an example. To read and write files, you need to open them. There are two methods: OpenFileOutput and OpenFileInput The storag ...

Posted by apenster on Sat, 02 May 2020 19:08:17 -0700

Android draggable hover button

This is the main code of the control. In your project, create a new class with the same name, and copy the code directly to use it. In addition, some code of tool class is referenced in this class. Tool class is also posted under the source code of this main class. Copy the relevant code of tool class directly to your own tool class. If you ha ...

Posted by AjithTV on Sat, 02 May 2020 17:29:39 -0700

Steps of map integration

1, Download sdk -- 2dmap? Demo image.png image.png 2, Get appkey (first get the shaw1 value of keystore) image.png (1) , find debug.keystore in the directory C:\Users\Administrator.android, (2) next, enter the cmd command in the address bar of the directory Absolute path of Key ...

Posted by bretx on Sat, 02 May 2020 13:58:59 -0700

Share an android silent installation and restart the app after installation

I. demand introduction Previously, boss put forward a requirement that the app running on the advertiser needs to complete the automatic upgrade function. The advertiser is non touch screen and cannot be clicked manually. Therefore, the app must be downloaded automatically and installed and upgraded automatically. After the installation, the ap ...

Posted by deadimp on Sat, 02 May 2020 13:32:46 -0700

Auto scroll screen capture like miui

Project address: android-notes/auto-scroll-capture Introduction: automatic scrolling screenshots like miui I wrote a blog a long time ago, which is totally different from other long screenshots, but it's very hasty. Now I'll rearrange it android long screenshot beta1 miui auto scroll long screenshot effect painting Nest a FrameLayout ...

Posted by Nukeum66 on Sat, 02 May 2020 11:18:26 -0700

The simplest use of jiecao video player

First of all, we will lead to a dependency. If you report an error when you import a dependency, it means that your version is low, and you need to change it to more than 15. compile 'fm.jiecao:jiecaovideoplayer:5.5'Write the following in our manifest file, but it will report red, but it will not affect our operation. Do not forget to add ...

Posted by DssTrainer on Sat, 02 May 2020 04:30:52 -0700

Network state judgment of android (wifi and mobile network data)

Sometimes we need to monitor the network status changes to remind users of the network status in time. Therefore, we need to monitor more network changes. We don't need to talk about much nonsense. We have listed all network situations in the code. If there is a need, we can prompt according to the actual situation. 1. First of all, it is nece ...

Posted by hermand on Sat, 02 May 2020 04:24:55 -0700

Content provider of Android's four components

1 Introduction As one of the four components of Android, the main function of content provider is to expose private data for other applications. For example, an application needs to read the mobile contacts in the mobile phone for its own use. From this we can know that this is also a way of communication between processes in Android. Content ...

Posted by sava on Sat, 02 May 2020 02:34:36 -0700