【发布时间】:2012-08-07 12:24:39
【问题描述】:
我正在制作一个简单的 GUI 程序来更改 Android 手机的启动动画,但从过去 4 天开始,我遇到了一个问题,我不知道是什么原因,这是我的代码
void MainWindow::bootanim1()
{
QProcess rootboot;
QStringList path6,boottarget;
path6<<ui->lineEdit_6->text();
boottarget<<path6<<" /system/media";
ui->textBrowser->clear();
ui->textBrowser->setText("Remounting partitions...");
rootboot.start("bbin\\adb shell su -c \"busybox mount -o remount,rw /system\"");
rootboot.waitForFinished();
ui->textBrowser->setText("\nInstalling bootanimation.zip");
rootboot.start("bbin\\adb push ",boottarget);
rootboot.waitForFinished();
ui->textBrowser->setText("\nBootanimation has been changed! Try shutting down your phone to see new bootanimation");
}
单击按钮时会启动此功能,但我的问题是,这不起作用!其次,您可以在代码中看到更多信息,我使用textBrowser 向用户显示正在发生的事情,例如重新安装分区等,lineEdit_6 是lineEdit 小部件,用户将在其中粘贴引导动画的路径。压缩。所以我的问题是当我点击按钮时只显示这个
Bootanimation has been changed! Try shutting down your phone to see new bootanimation
我认为上面的所有内容都被跳过了,我不知道为什么?谁能给我一些关于我缺少什么的提示?
【问题讨论】:
-
这不是“被跳过”,这是肯定的。
-
那么你怎么看,为什么它不起作用?我的 bootanimation 没有被替换。为什么?有什么解释吗?