This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.baidu.com/aaa.mp4 | |
https://www.xy.com/cccc.docx | |
https://www.xy.com/cddd.pdf | |
https://www.xy.com/cmmmm.torrent | |
https://www.xy.com/cmmmm.torrent | |
https://www.xy.com/cddd.pdf | |
www.aa.com/a.txta | |
https://www.baidu.com/bbb.txta | |
http://www.a.com/a.rara | |
http://www.a.com/a.rar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DNS Query Program on Linux | |
//Author : Silver Moon ([email protected]) | |
//Dated : 29/4/2009 | |
//Header Files | |
#include<stdio.h> //printf | |
#include<string.h> //strlen | |
#include<stdlib.h> //malloc | |
#include<sys/socket.h> //you know what this is for | |
#include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dialog dialog = new Dialog(this); | |
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); | |
dialog.setContentView(R.layout.test_dialog); | |
RecyclingImageView imageView = (RecyclingImageView) dialog.findViewById(R.id.dialog_header); | |
String url = "http://x.png"; | |
DisplayImageOptions opts = RecyclingImageView.cloneDefaultOption(); | |
opts.imageScaleType = ImageScaleType.NONE; | |
opts.displayer = new BitmapDisplayer() { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author douzifly | |
* @date 2014-12-4 | |
*/ | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import android.text.TextUtils; | |
import android.webkit.JsPromptResult; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount -o rw,remount rootfs / | |
chmod 777 /mnt/sdcard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intent-filter> | |
<action android:name="android.intent.action.ATTACH_DATA" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<data android:scheme="content" /> | |
<data android:scheme="file" /> | |
<data android:mimeType="image/*" /> | |
<category android:name="android.intent.category.ALTERNATIVE" /> | |
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" /> | |
</intent-filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void show() { | |
final Dialog dialog = new Dialog(this); | |
final Window window = dialog.getWindow(); | |
window.requestFeature(Window.FEATURE_NO_TITLE); | |
window.setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); | |
// set content view must before set other attributes | |
dialog.setContentView(R.layout.dialog_content); | |
final WindowManager.LayoutParams lp = window.getAttributes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void setFullScreen(Window window, boolean fullScreen) { | |
if (fullScreen) { | |
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); | |
} else { | |
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); | |
} | |
} | |
public static boolean isFullScreen(Window window) { | |
return (window.getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void postOnLayoutFinished(final View v, final Runnable r) { | |
if (v == null || r == null) { | |
throw new NullPointerException(); | |
} | |
v.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { | |
@Override | |
public void onGlobalLayout() { | |
r.run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.qvod.player.utils; | |
import java.io.File; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Scanner; | |
import android.annotation.SuppressLint; | |
import android.content.Context; |
NewerOlder