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
http://developer.blackberry.com/android/downloads/eclipseplugin/
Missing requirement: BlackBerry Eclipse Plugin for Android Development 2.0.4.201405221110 (net.rim.ajde.feature.feature.group 2.0.4.201405221110) 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!!
For mac
For Windows
For Linux
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!
Keep Developing!
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);
QStringList arguments;
arguments << "brightness" << "set_brightness" << "display" << "50"; (50 is the value you want).
myProcess->start(program, arguments);
PS. You may need to connect SINGAL readyReadStandardError(), readyReadStandardOutput() and finished(int, QProcess::ExitStatus) in order to get the output error or result. :)
Enjoy it!