For developers who want to develop Android Apps / Games on BlackBerry 10..
After Google released the ADT 23, many developers encountered the problem of can't build projects...
This version of ADT also effects on BlackBerry Plug-in for Android Development Tools.
When user try to install the plugin via this link
Missing requirement: BlackBerry Eclipse Plugin for Android Development 22.214.171.124405221110 (net.rim.ajde.feature.feature.group 126.96.36.199405221110) requires 'com.android.ide.eclipse.adt.feature.group 0.0.0' but it could not be found
In version 2.0.4 (or previous 2.0 beta), developers just need to simply start the ADB proxy Manager, setup your device and then run as Android Application to deploy apps into their devices / simulators.
(Images from developer.blackberry.com)
What can we do without install the BlackBerry Plug-in for Android Development Tools??
The answer is easy... Just download the Command-line tools!!
After you download the file, you can see several files inside.
Open the "ADB Proxy Manager" and setup your device, just like what you did in eclipse!
Now you can go back to your development and don't need to worry about no eclipse plugin!!
Thanks for BlackBerry!
Sometimes we may need to change the brightness of screen in code.
How to make it happen?
Using the QProcess can help you to do that!
QString program = "bkltctl";
QProcess myProcess = new QProcess(this);
arguments << "brightness" << "set_brightness" << "display" << "50"; (50 is the value you want).
PS. You may need to connect SINGAL readyReadStandardError(), readyReadStandardOutput() and finished(int, QProcess::ExitStatus) in order to get the output error or result. :)