Libraryless. Click here for Pure Java version (173L/2K/6K).
1 | !747 |
2 | |
3 | import android.app.*; |
4 | import android.media.*; |
5 | import android.net.*; |
6 | |
7 | m { |
8 | static Activity androidContext; |
9 | |
10 | p { |
11 | File mp3 = loadLibrary("#1001269"); |
12 | final MediaPlayer mPlayer = MediaPlayer.create(androidContext, Uri.fromFile(mp3)); |
13 | |
14 | mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { |
15 | public void onCompletion(MediaPlayer mp) { |
16 | mPlayer.release(); |
17 | } |
18 | }); |
19 | |
20 | mPlayer.start(); |
21 | } |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, ufhdzwgrioxs, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001270 |
Snippet name: | Android Play MP3 test |
Eternal ID of this version: | #1001270/1 |
Text MD5: | f766fbe9f487815745db58e8ab312f0d |
Transpilation MD5: | ae75881ee8dec2b879db69ab37e7ffba |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-06 12:33:44 |
Source code size: | 471 bytes / 22 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 665 / 687 |
Referenced in: | [show references] |