Finally:
Implement the SD card file browser
Technical analysis:
The main controls used:Listview
How to fill in the listview control, you need to traverse all the files under the entire SD card. If you traverse a folder, first obtain all the files under the folder, then we can fill all the files in this listview, so we can repeat it.
How can I get the modification date of a folder or file?
The file class in Java only provides us with a public long las
After several months and everyone's efforts, mobile phone QQ browser (Android version) from 2.0 gradually updated to 2.6. After a constant attempt at the inscrutable and architecture of the design, a new look has been made, and the experience has improved considerably from previous versions. However, this is only long March first step, here to share with you the first step behind the design experience.
Dom
//invoking the system default browser//Reference:// http://www.cnblogs.com/zhwl/archive/2011/11/15/2249848.html // 1190000003912694 CaseR.id.tv_about_weibo://about Weibo//Open directly//Intent intent= New Intent ();//intent.setaction ("Android.intent.action.VIEW");//Uri Weibo_url = Uri.parse (Tvaboutweibo.gettext (). toString ());//Intent.setdata (weibo_url);//startactivity (Intent); //pop up a box to select a
of the implementation of the file deletion function, the information is the following lines of code:1 New File (Fullpathimg.get (P)); 2 if (Removefile.exists ()) {3 removefile.delete (); 4 }Where Fullpathimg explains that it is the arraylistIt is also important to determine the existence of a file, after which the delete () method is called, but a problem is found: The file Manager does not already have the deleted picture name, but the phone comes with the picture
Title, found a handy Android file Access tool--es File Manager, you can view the files in your phone in a browser under the same LAN1. Open the ES File Manager remote Manager on the phone,2. Make sure your phone and computer are on the same LAN (either wired or WiFi)Stick to my address:(1) My Computer's IP address (wired broadband connection):(2) address of the mobile phone (Wifi):3. Open the above URL on a
Use Chrome on your PC to remotely debug your phone's page
Tool Preparation
Mobile end: Chrome for Android;
PC side: Install Google browser (preferably the latest version of the developer)
USB Cable, that line of your charger.
Turn on debug mode
Use USB to connect your computer and turn on debug mode. Using Android 4.2 or more phones may not have the
between the two methods, and after loading webview for the second time, the last video will be played again, but only the sound can be heard, so I personally feel unreliable, the browser of the system probably uses this method. After closing the browser based on the return part, you can still hear the sound.
If the content cannot be centered in the browser, you
is a delay between the two methods, and after loading webview for the second time, the last video will be played again, but only the sound can be heard, so I personally feel unreliable, the browser of the system probably uses this method. After closing the browser based on the return part, you can still hear the sound.
If the content cannot be centered in the browser
In the previous article, the oauth authentication process obtains the oauth_verifier code by calling the browser in the Android system for user authorization authentication. For details, see: android development my Sina Weibo client-user authorization page function (3.2 ).
The original implementation is as follows:
1. First in androidmanifest. add the following c
Chrome is a very popular global browser, whether on PCs or Android devices, we often see Google Chrome, its brisk browsing style and friendly operating interface, is impressive. Due to the large number of domestic browsers, many mobile phone users do not know much about the Chrome browser, the following small series to share the mobile phone in the Chrome
This article provides a way to "automatically open a specified connection using a browser after an Android app is uninstalled."Principle: Somewhere in the Android program, based on the JNI call C code to open a sub-process monitoring application in the System file directory, once the application is uninstalled, the directory will be deleted by the system, trigger
Do a fake Adnroid app, to achieve a click on the desktop icon, open the mobile browser to enter the appropriate website, the implementation method is very simpleImport Android.app.activity;import android.content.intent;import Android.net.uri;import android.os.Bundle;public Class Mainactivity extends Activity {@Overrideprotected void onCreate (Bundle savedinstancestate) {super.oncreate ( Savedinstancestate); Uri uri = uri.parse ("http://3g.6d32.com/");
Start writing Android's Photo browser today
The first thing to solve is to get sdcard below all the files that are pictures of the directory
So I wrote a generic Java class to get the suffix is. jpg,.bmp.png.jpeg file
Package com.jiangqq.utlis;
Import Java.io.File;
Import java.util.ArrayList;
Public class FileUtils
{
Private static ArrayList filelist = new ArrayList ();
Public static void
The way to start the app in the browser is as follows:Add information about Intent-filter to the activity that needs to jump:The actual proportions are as follows:Then add HTML to the following links, for example: After entering the app, you can use Getintent () to get information about the URL carrying:eg:http://twitter.com/status/1234Uri data = Getintent (). GetData ();String scheme = Data.getscheme (); "http"String host = Data.gethost (); "Twitter.
Android WebView web browser, androidwebview
Component location: composite> WebView
. Xml
1
. Java
1 private WebView webview_pipeweb; 2 3 webview_pipeweb = (WebView) findViewById (R. id. webview_pipeweb); 4 // setWebViewClient opens the web page in the current WebView; otherwise, jump to the default browser to open the web page 5 webview_pipeweb.setWebView
You can block by setting the font of input, and the browser thinks that only the font in input is greater than or equal to 16px before the user can see it clearly. CSS code:@media only screens and (min-device-width:320px) and (max-device-width:1024px) {select:focus, Textarea:focus, INPUT:FO cus {font-size:16px!important;}}This article is from the "Liu Bofang blog" blog, make sure to keep this source http://liubofang.blog.51cto.com/11162557/1861242CSS
This tutorial uses my own phone, Samsung A9, and the other Android phone methods are the same.First step you have to turn on the developer options for your phone, make sure that USB debugging and the app stays open via USBStep two, make sure your PC and Android phone are already installed in Google ChromeThe third step, open your computer on the Google Browser, b
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.