Android
-
[Android] WebView interacts with JS
Get WebView object Call the getsettings () method of the WebView object to get the websettings object Call setjavascri…… -
[Android] mobile guard blacklist function (listview optimization)
The previous article recorded that 100 pieces of data were displayed using listview. When dragging slowly, there will …… -
[Android] exercise style theme custom activity switching animation
Mainly practiced customizing styles and themes, inheriting and modifying the default style of Android system, and prac…… -
Startup mode of [Android] activity
Create two activities and two layout files. There are two buttons in the layout to open the first and the second When …… -
[Android] mobile guard input box jitter and mobile phone vibration
Check apidemos, find view / animation / shake, find the corresponding animation code, and copy it directly When import…… -
[Android] mobile guard blacklist function (listview combined with SQLite)
Modify the interface, add an add button on the top bar, click to open a custom dialog box, enter the phone number and …… -
-
[Android] mobile guard interface switching animation
Create the file tran in / RES / anim /_ out.xml Add < translate > node Set X-axis source coordinates Android: fr…… -
[Android] mobile guard mobile phone realizes SMS command to obtain location
Get location Create a new service package Create a new gpsservice class to inherit the service class of the system Reg…… -
[Android] network link types and channels
1. Implementation mode 1.1 using httpurlconnection 1.2 using httpclient 1.3 use sockets, such as pea pods and chat too…… -
[Android] Android custom styles and themes
Simply practice customizing styles and themes. Styles are added to view and themes are added to application or activit…… -
[Android] mobile guard setup wizard page
Set the wizard page, judge whether it has been set through shared preferences, and jump to different pages custom styl…… -
[Android] frame animation and gap animation
Display a picture frame by frame and connect it into animation Create a xxx.xml file in the RES / drawable / directory…… -
[Android] title section management
1.1 general title 1.1.1 Title Content Management 1.1.2 help and return buttons 1.2 unlisted title 1.3 title in login 1…… -
-
[Android] mobile guard custom scroll control
Textview control sets single line display Android: singleline = "true" Set the starting position of textview, display …… -
[Android] mobile guard number attribution query completed
The regular expression completes number verification, ^Starting with a, [] character set (matches any character in bra…… -
[Android] toggle button – Custom Control – drag effect
Override the ontouchevent () method of view and pass in the motionevent object Call the getaction () method of the mot…… -
[Android] weather app layout exercise (4)
Mainly practice getting network data and parsing XML MainActivity.java HttpUtil.java HttpListener.java -
[Android] call system camera and camera
Check the system camera source code and find the manifest file View the intention filter. The action is android.media.…… -
[Android] news client main interface
When we use activity plus fragment, we need to create a fragment for each interface. In each fragment, we need to over…… -
[Android] carousel – slide picture Title Focus
V4 package provided by Google, viewpager In the layout file, first add the < Android. Support. V4. View. Viewpager …… -
[Android] interactive demo with PHP session
Jump from mainactivity to mailindexactivity. The first request interface sets the session, and the second activity req…… -
[Android] Introduction to Android messaging mechanism
In the previous section, first put the part accessing the network into a sub thread for execution. New thread() {}. St…… -
[Android] mobile guard turns off automatic updates
There are four ways to save data: network, broadcast provider, shared preferences and database Get the SharedPreferenc…… -
[Android] WebView custom browser
Add < EditText / > and < button / > controls to the layout file, Add a < WebView / > control to the …… -
[Android] the mobile guard receives the call broadcast and displays the number home
Use the broadcast receiver to receive the call intention and display the number home Create a new broadcastreceiver wh…… -
[Android] network picture viewer
Interface layout, linerlayout, linear layout, ImageView control, EditText control, hint property prompt information, b…… -
[Android] mobile guard custom dialog layout
Mobile phone anti-theft page Click mobile phone anti-theft to judge. If no password is set, a dialog box for setting p…… -
[Android] news client realizes left navigation and click switching
Set the main layout file and set an ID for the root layout as the content area Set the click event for the listview en…… -
Simple animation of [Android] interface switching
1. Create a new XML file for displacement animation Open animation in activity Use the animationutils class to load an…… -
[Android] asynchronous HTTP framework and implementation principle
This paper introduces the development of asynchronous HTTP framework Android async http loopj on GitHub Get the asynch……