This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void runApplication(const QString &packageName, const QString &className) | |
{ | |
qDebug() << "Start app: " <<packageName <<", "<<className; | |
QAndroidJniObject activity = QAndroidJniObject::callStaticObjectMethod( | |
"org/qtproject/qt5/android/QtNative", "activity", | |
"()Landroid/app/Activity;"); //activity is valid | |
if ( activity.isValid() ) | |
{ | |
// Equivalent to Jave code: 'Intent intent = new Intent();' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var i, elements = document.querySelectorAll('body *'); | |
for (i = 0; i < elements.length; i++) { | |
if (getComputedStyle(elements[i]).position === 'fixed') { | |
elements[i].parentNode.removeChild(elements[i]); | |
} | |
} | |
})(); |