Skip to content

Instantly share code, notes, and snippets.

View VenomVendor's full-sized avatar

VenomVendor

  • Near the edge of the world!
View GitHub Profile
@VenomVendor
VenomVendor / color_a.xml
Created October 6, 2013 18:47
Various colours in "xml" for Android, arranged alphabetically.
<?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 / Device Details
Created April 18, 2013 20:20
Get Device Details in Android Programmatically.
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 / color_n.xml
Created October 6, 2013 18:47
Various colours in "xml" for Android, arranged with reference to HEX values.
<?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_n_min.xml
Created October 6, 2013 19:05
Various colours in "xml" for Android, arranged with reference to HEX values. The Minimum Version.
<?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 / Install Multiple APKs
Last active May 13, 2020 07:21
Installs Multiple APKs in a Folder
:: 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"
@VenomVendor
VenomVendor / color_a_min.xml
Created October 6, 2013 19:04
Various colours in "xml" for Android, arranged alphabetically. The Minimum Version.
<?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 / HTTP Get - Android
Last active December 20, 2015 05:09
One Line Http Get Request with Response in 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);