App Inventor App is too slow - android

I've developed a simple test app for Android with App Inventor. I've sent the .apk file to my smartphone, installed it and test it.
The app has only a screen view with 2 buttons: play and stop. Play starts the Player play method with a streaming server url string and stop button stops the Player.
The problem is that when I tap Play button, it remains in active state for a long time, until the Player starts to sound. When I tap Stop button, the Player stops immediately the Player but the button remains in active state for a long time like the Play button.
There are no other methods, screens or components.
At the moment the app is "unusable" because of it takes a very long time and I'm sure that the users should close the app.
Why? Which is the problem?

The problem is that the phone spends a lot of time opening the file. Unfortunately the App Inventor is very simple and it doesn´t have a lot of other media tools. You can put a progress bar while the file is charging, but there aren´t many solutions...
Remind that the problem should be in the process of download the file instead of the phone. If you put the audio file in the app resources, it will take you less time.
If you could make the app with Eclipse, you would have more options.
Hope it´s useful

Related

User reported that our app kill spotify background music, how to prevent that to happen?

So we got report that our app stop any music playing in the background like spotify, I also just tried it with youtube music and it also got killed
Our app is just a online f&b shop without any sound (but we use mediaPlayer to play logo animation in the beginning) and I dont think I've ever put some code to kill background music
is there any special setting I need to place in manifest to prevent this happening?
it is quite bewildering to me

jPlayer stops in the middle of track and starts repeating a section of the track

I use jPlayer 2.7.1 (https://cdnjs.cloudflare.com/ajax/libs/jplayer/2.7.1/jquery.jplayer/jquery.jplayer.min.js) on my website to play audio tracks for users. The audio tracks come from an S3 bucket. Recently some users who access the website via an Android WebView that utilizes Chrome Mobile 30, 44, 45 are having issues playing the audio files.
The common complaint seems to be a variation of the track starting to play, and then at some point it gets stuck, skipping or lagging over the remaining audio. Some specific quotes from users:
"after several minutes the sound stop and repeat on the same word it
is like sort of lagging."
"when I press play, the recording plays in second snippets (sort of
like it is very slowly loading), very disjointed. The time bar also
does not progress, it just stays at 0:00 or sometimes to 0:01 and back
again, even though it's playing later parts of the recording."
"the audio plays a few seconds, stops, skips a lot of content, plays
for another second or two, stops, skips, and so on."
"If it does start it keeps cutting out/crackling sound and the time
doesn't start counting down."
Unfortunately I've been unable to recreate the issue myself.
What do you think could be causing this issue? Could moving to jPlayer 2.9.2 fix the issue?

Music stops playing on certain devices and keeps playing on others

Hi everyone I recently made an application that is actually a media player of a football club ultras music. I tested it on my phone (Motorola X running Android 4.4.4) when i go back to the dashboard the music keeps playing and everything is OK. But I had a review that on Samsung Trend Plus running Android 4.2.2 the music stops playing when going back to dashboard. I didn't know what may cause this issue? any ideas? Thanx
Most likely your problem is with audio focus. On certain system, when user go to the dashboard, the launcher might take audio focus (and pause your audio play) to play its launch sound (the clicking noise or w/e). Right after that, it should hand back audio focus to you and you will need to resume your playing.
http://developer.android.com/training/managing-audio/audio-focus.html

Android media player stops when open gallery

I developed a simple music player using MediaPlayer class. I played a song using it, minimize my music player, then I open native gallery, and my application get weird.
It becomes like stuck for a few seconds, and then it started to play new song.
I also did like that using android native player and the player paused when gallery opened.
Do you guys know what might cause my application stucked like that?
I really appreciate any help from you guys,
Regards,
Chrisma Andhika
see in your app, if you minimize your app it goes to onpause() state again come return to app it will call onresume() state. so it takes some time. there is nothing weird in this thing.

Capture video of running android application and then play it

I have developed one application in android and now I wish to add one more functionality in it. I want to capture the video of my application, means there will be one button and when user clicks on that button it starts recording each and everything which user do in the application. Let say user has press 2 buttons and play some sound, animations, etc. This all should be recorded and when user stop recording it gives options to play the video. I got this idea from the Talking Tom app available in android market.
Here is the link of that app.
Talking tom
See the screens, on the top of it the button of movie is there, which is used for recording whatever the user will do after pressing that button will be recorded and then play it, so it will play all the recorded things.
I want to do the same thing, if anyone is having any idea please kindly let me know.
Thnaks
Beside recording a screencapture, you may can only record the users inputs in an file?
So every method the user calls will be recorded with a Timestamp in that file (or something like that). That can be done by the method itself, so all you have to do for playback is, calling your methods in the same order the user did. Games like StarCraft are recording userinputs and repeat them in playback mode. But your App has to produce excatly the same results with the same inputs, any variations in results will crash your playback.

Categories

Resources