We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 2 columns, instead of 3. in line 2.
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
JIT, AOT | |
Dynamic translate part of bytecode to machine code and cache in memory when app run, Statically translate bytecode to machine code at installation time and store in storage | |
Small memory, One time event, code execute faster but need extra space and time |
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
JVM | DVM | |
---|---|---|
Not free | Free | |
Use .class bytecode | Convert .class bytecode to .dex bytecode using dex compiler (dx tool) | |
Stack based | Register based |
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
language: android | |
jdk: | |
- oraclejdk8 | |
android: | |
components: | |
- tools | |
- platform-tools |
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
def build_param = "${build}" | |
if (build_param == "devCI") { | |
// Exclude all except mockDebug flavor | |
android.variantFilter { variant -> | |
if (variant.getFlavors().get(0).name != 'mock' || variant.buildType.name != 'debug') { | |
variant.setIgnore(true) | |
} | |
} | |
} else if (build_param == "releaseCI") { | |
// Exclude all except prodRelease flavor |
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
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
testCoverageEnabled true | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro' |
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
{ | |
"project_info": { | |
"project_number": "", | |
"project_id": "" | |
}, | |
"client": [ | |
{ | |
"client_info": { | |
"mobilesdk_app_id": "1:123456789012:android:1234567890123456", | |
"android_client_info": { |
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
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
testCoverageEnabled true | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro' |
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
ADB | |
1- Go to your platform-tools folder in a command prompt | |
2- Enter the command adb devices to get the list of your devices | |
C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools>adb devices | |
List of devices attached | |
emulator-xxxx device | |
3- Connect a shell to your device: | |
C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools>adb -s emulator-xxxx shell | |
4a- You can bypass this step on rooted device |
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
Network | |
- HTTPS vs HTTP | |
- HSTS | |
- HTTP/2 | |
- Session vs Cookie | |
- SSL | |
- SSH | |
- Symmetric vs Asymmetric | |
- RSA, RC4, MD5 | |
- AES, DES |
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
namespace Picture_Viewer | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
// Cài đặt thuộc tính pictureBox | |
pictureBox1.ImageLocation = "http://1.bp.blogspot.com/-ZskeiTa6Rig/VZwjEuEQPqI/AAAAAAAAAM0/VK5Im7Cfu3s/s1600/cooltext125983511023412.png"; |