Swap the open and configure error reporting in the terminal example

It seems they were accidentally misplaced, and it was not caught by anyone while
testing and using this example. Although, I have seen users doing this mistake
on Stack Overflow, so I was wondering where they would get the idea from. It is
possible they have done such mistakes due to a copy/paste operation from this
old example.

Change-Id: Iaa25ae47c5f161856930801611a3dc7ff0aa3b0a
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Obsolete the "settings restore on close" API

Now that the settings detection is removed, it would be better to make this API
deprecate because it does not make much sense anymore. It was a bad idea to add
this, but we cannot remove it for now, hence the obsoletion.

Change-Id: I5e02959cb54281995b911ff0f64bd2fa36b80060
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Fixed info update for FTDI devices on Android

Added check for Q_OS_ANDROID.  If connected to Android, look for a valid TTY_USB id.

Task-number: QTBUG-36296
Change-Id: Ic99b0ddd7afc6621e795e2f6cf2952cae6634fb0
Reviewed-by: Luke Andrew <codereview@lukeandrew.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>