TCL in Android
- By Trom
- VIP Lounge
- 2 Replies
I make little TCL scripts for personal use, often with a TK/GUI. Does anyone know if there's a toolbox or other to make these run on a telephone? Thought I'd start here, you guys are geeks after all 

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
final Intent batteryStatus = registerReceiver(null, ifilter);
// Are we charging / charged?
int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
boolean isCharging = status == BatteryManager.BATTERY_STATUS_CHARGING ||
status == BatteryManager.BATTERY_STATUS_FULL;
// How are we charging?
int chargePlug = batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
boolean usbCharge = (chargePlug == BatteryManager.BATTERY_PLUGGED_USB);
boolean acCharge = (chargePlug == BatteryManager.BATTERY_PLUGGED_AC);
Subject: I'm Offended that Apple Asked me to Recycle my Working (Not Broken) iPad
Body: I have an iPad, I inherited it from my father (he's now using a more modern iPad). I considered buying a newer iPad, so I checked the trade-in value of my current iPad at the Apple website. My iPad has no trade-in value, but Apple asked me to send it in for recycling.
No trade-in value, that I'm okay with (my iPad is almost a decade old). But there are so many better uses for an old iPad than recycling! Apple made a good product, one that's served my father well for a long time. To treat such a fine product with such disrespect, to suggest destroying my iPad rather than reusing it, and to say that destroying a working iPad is "good for the Earth": That is insulting! It insults my intelligence, it insults my iPad, and it insults the forks at Apple who made my iPad in the first place.