OPERATOR=`getprop ro.build.target_operator GLOBAL`
COUNTRY=`getprop ro.build.target_country COM
# echo $PATH
/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
# Print system *.png images
su -c 'cat /system/DFFileList.txt' | grep '.png'
This file contains hidden or 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
| private class H extends Handler { | |
| public static final int LAUNCH_ACTIVITY = 100; | |
| public static final int PAUSE_ACTIVITY = 101; | |
| public static final int PAUSE_ACTIVITY_FINISHING= 102; | |
| public static final int STOP_ACTIVITY_SHOW = 103; | |
| public static final int STOP_ACTIVITY_HIDE = 104; | |
| public static final int SHOW_WINDOW = 105; | |
| public static final int HIDE_WINDOW = 106; | |
| public static final int RESUME_ACTIVITY = 107; | |
| public static final int SEND_RESULT = 108; |
This file contains hidden or 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
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.Set; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.IntentFilter; | |
| import android.net.Uri; | |
| import android.os.Handler; |
This file contains hidden or 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 enum HttpResponse { | |
| HTTP_100( 100, "HTTP/1.0 100 Continue\r\n\r\n" ), | |
| HTTP_101( 101, "HTTP/1.0 101 Switching Protocols\r\n\r\n" ), | |
| HTTP_200( 200, "HTTP/1.0 200 OK\r\n\r\n" ), | |
| HTTP_201( 201, "HTTP/1.0 201 Created\r\n\r\n" ), | |
| HTTP_202( 202, "HTTP/1.0 202 Accepted\r\n\r\n" ), | |
| HTTP_203( 203, "HTTP/1.0 203 Non-Authoritative Information\r\n\r\n" ), | |
| HTTP_204( 204, "HTTP/1.0 204 No Content\r\n\r\n" ), | |
| HTTP_205( 205, "HTTP/1.0 205 Reset Content\r\n\r\n" ), | |
| HTTP_206( 206, "HTTP/1.0 206 Partial Content\r\n\r\n" ), |
This file contains hidden or 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
| license:none | |
| height:400 | |
| scrolling:yes | |
| border:yes |
This file contains hidden or 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
| license: none | |
| height:400 | |
| scrolling:yes | |
| border:yes |
This file contains hidden or 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
| <input type="file" id="files" accept="image/*" multiple> | |
| document.querySelector('#files').onchange = function(e) { | |
| var files = e.target.files; // FileList of File objects. | |
| for (var i = 0, f; f = files[i]; ++i) { | |
| console.log(f.name, f.type, f.size, | |
| f.lastModifiedDate.toLocaleDateString()); | |
| } | |
| }; |
This file contains hidden or 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
| <title>Broadcast Multiple-Cameras using RTCMultiConnection.js</title> | |
| <h1>Broadcast Multiple-Cameras using <a href="http://www.rtcmulticonnection.org/">RTCMultiConnection.js</a> | |
| </h1> | |
| <style> | |
| video { | |
| width: 30% | |
| } | |
| button { | |
| font-family: Myriad, Arial, Verdana; |
This file contains hidden or 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
| /** | |
| * Create the intent to launch the marketplace for an application | |
| * | |
| * @return the intent instance | |
| */ | |
| public static Intent createAndroidMarketPlaceIntent(String appName) { | |
| final Intent intent = new Intent(Intent.ACTION_VIEW); | |
| intent.setData(Uri.parse(String.format("market://details?id=%s", appName))); | |
| return intent; | |
| } |
NewerOlder