Android creates local folders, creates local files, and accesses local files
Before this, you need to obtain read-write access to the memory. Add the following in AndroidManifest.xml:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:nam ...
Posted by silviuchingaru on Sat, 04 Apr 2020 06:01:33 -0700
My Spring Cloud:Zipkin Service Tracking
1. Overview
*Why should we have service tracking? There are many services in the distributed system calling each other, and the invocation relationship is complex. If there is a problem, we will have a lot of work when we do problem investigation or optimize the architecture. At this time, we need to be able to accurately track each network re ...
Posted by madcat on Sat, 04 Apr 2020 03:23:40 -0700
Developing web project with eclispe
1. After opening eclipse, create a new web project:
new -- dynamic web project
Click Finish to finish the new project!
Adjust font size:
window -- preferences
Select basic,
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...
Posted by jack5100nv on Sat, 04 Apr 2020 03:19:53 -0700
The ExpandableListView control implements the second level list
The renderings are as follows:
Click event is attached to the secondary list.
1. Layout file:
A custom navigation RelativeLayout is added here. Remember to add "Android: theme" = "@ style / theme. Appcompat. Light. Noactionbar" When noting activity to remove the navigation.
1 <?xml version="1.0" encoding="utf-8"?> ...
Posted by meckr on Fri, 03 Apr 2020 17:26:47 -0700
Collection of Android Development Engineers - 1 hour learning how to develop Widget
Preface
Hello, I'm Vic. Today I'll bring you a collection of Android Development Engineers - an overview of learning Widget development in one hour. I hope you like it
Learn to use Widget
Widget widgets are very convenient, fast, personalized, customized, relevant functions, and can update the latest content in real time.
Widg ...
Posted by Nandini on Fri, 03 Apr 2020 14:36:15 -0700
Android develops TabLayout and Fragment to achieve tabbed effect
Android develops TabLayout and Fragment to achieve tabbed effect
Use TabLayout and Fragment to realize the function of tabs
First on the renderings
Write the interface first.
Main activity.xml code
vertical linear layout, two controls, with tabs above and content below
<android.support.design.widget.TabLayout
...
Posted by nafarius1357 on Fri, 03 Apr 2020 13:33:33 -0700
Android background service monitoring key (home,back, volume key)
0. Start the 1x1 size service window to monitor the change, and press the volume button
Touch screen events are not accepted.
public static final int FLAG_NOT_TOUCHABLE = 0x00000010;
When the window can get the focus (without setting the flag not focus option), the point device events (mouse, touch screen) outs ...
Posted by iimrii on Fri, 03 Apr 2020 13:11:54 -0700
Struts 2 and Spring integration
Preface
This post mainly explains how Spring integrates with struts 2 framework
Key points of integration of struts 2 and Spring:
The action object is given to Spring to create
Building environment
Entering the jar package
To import a jar file:
1) Introduce struts. Jar related files
2) Spring core related jar files
3) Spring web support jar ...
Posted by jarv on Fri, 03 Apr 2020 11:58:34 -0700
Wechat applet - complete the payment function of the applet
Recently, we have developed small programs, and we have been looking at the payment of small programs. After a day's hard work, the applet payment function is finally realized.
Thanks to csdn blogger: the "little program and php to realize wechat payment" released by Qiandui xuegedust
Original address:
http:/ ...
Posted by ltoto on Fri, 03 Apr 2020 08:32:08 -0700
maven multi environment configuration (multi environment configuration, development environment, test environment and development environment are packaged separately)
1. Put the public configuration file in resources, the development environment, production environment and test environment in resources.dev, resources.test and resources.prod respectively
2. Set in pom.xml
<build>
<resources>
<resource>
<!--Put the corresponding unique resources(dev,tes ...
Posted by ambivalent on Fri, 03 Apr 2020 07:13:34 -0700