Skip to content

Instantly share code, notes, and snippets.

Avatar

VenomVendor

View GitHub Profile
@VenomVendor
VenomVendor / color_n_min.xml
Created Oct 6, 2013
Various colours in "xml" for Android, arranged with reference to HEX values. The Minimum Version.
View color_n_min.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Totally "398 Colors"
Author : VenomVendor
Refer : http://stackoverflow.com/q/3769762/1008278
Reference : http://www.computerhope.com/htmcolor.htm
-->
<!-- Colors arranged from Black to White, i.e., #000000 to #FFFFFF -->
<color name="black">#000000</color>
@VenomVendor
VenomVendor / color_a_min.xml
Created Oct 6, 2013
Various colours in "xml" for Android, arranged alphabetically. The Minimum Version.
View color_a_min.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Totally "398 Colors"
Author : VenomVendor
Refer : http://stackoverflow.com/q/3769762/1008278
Reference : http://www.computerhope.com/htmcolor.htm
-->
<!-- Colors arranged from A -Z -->
<color name="algae_green">#64E986</color>
@VenomVendor
VenomVendor / color_n.xml
Created Oct 6, 2013
Various colours in "xml" for Android, arranged with reference to HEX values.
View color_n.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Totally "960 Colors"
Author : VenomVendor
Refer : http://stackoverflow.com/q/3769762/1008278
Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html
-->
<!-- Colors arranged from Black to White, i.e., #000000 to #FFFFFF -->
<color name="black">#000000</color>
@VenomVendor
VenomVendor / color_a.xml
Created Oct 6, 2013
Various colours in "xml" for Android, arranged alphabetically.
View color_a.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Totally "960 Colors"
Author : VenomVendor
Refer : http://stackoverflow.com/q/3769762/1008278
Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html
-->
<!-- Colors arranged from A -Z -->
<color name="air_force_blue">#5D8AA8</color>
@VenomVendor
VenomVendor / HTTP Get - Android
Last active Dec 20, 2015
One Line Http Get Request with Response in Android.
View HTTP Get - Android
/* Single line request with response */
System.out.println(EntityUtils.toString(new DefaultHttpClient().execute(new HttpGet("http://www.VenomVendor.com")).getEntity()));
/* Equivalent for the above */
String url = "http://www.VenomVendor.com";
HttpClient httpClient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(url1);
HttpResponse response = httpClient.execute(httpGet);
@VenomVendor
VenomVendor / Device Details
Created Apr 18, 2013
Get Device Details in Android Programmatically.
View Device Details
String details = "VERSION.RELEASE : "+Build.VERSION.RELEASE
+"\nVERSION.INCREMENTAL : "+Build.VERSION.INCREMENTAL
+"\nVERSION.SDK.NUMBER : "+Build.VERSION.SDK_INT
+"\nBOARD : "+Build.BOARD
+"\nBOOTLOADER : "+Build.BOOTLOADER
+"\nBRAND : "+Build.BRAND
+"\nCPU_ABI : "+Build.CPU_ABI
+"\nCPU_ABI2 : "+Build.CPU_ABI2
+"\nDISPLAY : "+Build.DISPLAY
+"\nFINGERPRINT : "+Build.FINGERPRINT
@VenomVendor
VenomVendor / Install Multiple APKs
Last active May 13, 2020
Installs Multiple APKs in a Folder
View Install Multiple APKs
:: Check for Devices
adb devices
:: -r >> reinstalls without removing the data
:: -s >> installs in SD Card
:: to install all APKs in folder D:/APK Backup/.
for %f in ("D:/APK Backup/*.apk") do adb install -r -s "%f"
:: to install all APKs in current folder
for %f in ("*.apk") do adb install -r -s "%f"