我想打开Google设置的下载语言,以便用户可以下载其语言以使用语音识别器离线文本。
打开这样的下载语言(Kotlin):
try {
startActivityForResult(Intent(android.provider.Settings.ACTION_VOICE_INPUT_SETTINGS), 0)
}catch (ex : Exception){
ex.printStackTrace()
}
我不知道如何打开Google设置的下载语言。 你能帮我吗?
答案 0 :(得分:0)
尝试一下:
procedure TfrmFilm.btnAddClick(Sender: TObject);
var
iNumber, iRating: Integer;
begin
iRating := (sedTitle.Value + sedDirector.Value + sedNotes.Value +
sedPlot.Value);
with dmFilm do
begin
tblGenre.Last;
iNumber := tblGenre['GenreID'] + 1;
tblGenre.Insert;
tblGenre['GenreID'] := iNumber;
tblGenre['Title'] := edtTitle.Text;
tblGenre['Genre'] := cbxGenre.Text;
tblGenre['Rating'] := iRating / 4;
tblGenre.Post;
tblFilm.Last;
tblFilm.Insert;
tblFilm['FilmID'] := iNumber;
tblFilm['Title'] := edtTitle.Text;
tblFilm['Director'] := edtDirector.Text;
tblFilm['GenreID'] := cbxGenre.Text;
tblFilm['Age Restriction'] := edtAgeRestriction.Text;
tblFilm['Runtime'] := edtRuntime.Text;
tblFilm['Notes'] := redNotes.Text;
tblFilm['Ownership'] := cbxOwnership.Checked;
tblFilm['Plot'] := redPlot.Text;
tblFilm['Rating'] := iRating / 4;
tblFilm.Post;
end;
end;
请注意,它将打开设置页面,而不是下载语言页面。