Pergunta

Intent i = new Intent(Intent.ACTION_VIEW);
Uri uriforintent = Uri.parse(uri);
i.setDataAndType(uriforintent, "video/*");
//startActivity(i);
startActivityForResult(i, 0);

O vídeo é um arquivo local jogável Samsung estoque vid player se eu chamar startActivity().Ele só não consegue reproduzir com startActivityForResult().

Seguinte erro foi registrado:

06-02 19:07:12.742: E/MediaPlayer(23993): Error (1,-2147483648)
06-02 19:07:12.742: E/MoviePlaybackService(23993): TouchPlayer :: mErrorListener = 1<<<<<<<<<<<<
06-02 19:07:12.742: D/MoviePlayer(23993): onSvcNotification - action : 104
06-02 19:07:12.742: E/MoviePlayer(23993): createErrorDialog(action, intent). action = 104

Alguém enfrenta o mesmo problema com Samsung estoque reprodutor de vídeo?

Foi útil?

Solução

Desde ACTION_VIEW não é projetado para uso com startActivityForResult(), e já que você não vai realmente obter um resultado de qualquer maneira, é só usar startActivity().

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top