Saving State of Media Player

by Andrew » Thu, 13 May 2010 08:19:03 GMT


Sponsored Links
 I wish to make an mp3 file play and loop. This works fine, but when
people hit home or back, after it finishes playing, it stops. I do
have setLooping(true). My other problem is that when I run the app
again while the music is still playing, a new instance of the app is
opened and it overlaps the music, how would I restore the running
state?

--



Other Threads

1. Get Custom Binary Data on Phone - Best Implementation?

Hello, I'm looking for some input on how to go about a problem I have.
We have a device that has binary data that it needs to send out (they
are mainly just symbols, but in a custom binary format) over ethernet.
I need to intercept this data on the phone and display the symbols
over google maps. I'm just wondering the best way to go about this, I
have a few ideas but am not sure if they are possible or feasable:

1. Is it possible for the phone to connect directly to the device if
the device had some sort of server running on it, then poll for new
data? If so, what is the protocol needed to be able to direct connect
like that?
2. Perhaps modify the device software to send data to the phone(s) in
SMS data message format? Im not sure if it is possible for software to
"spoof" an SMS to a phone when it is not a phone itself?
3. Have the device software upload all its binary data to a ftp/http
server that is sitting out there somewhere, have the phone(s) connect
to that server and poll for new data periodically?

I'm brand new to android development, basically all I want to do is
grab this binary data from the device on my phone and parse/display it
over google maps. How do any of those ideas sound, or is there a much
easier way I am overlooking? Thanks!

-- 

2. about library projects

Hi,

I've split my application into a library project and app project, it
mostly works but there are some annoying issues. Hopefully someone has
an idea how to avoid them. Here goes.

This is really basic, and maybe I am missing something, but why isn't
the app project automatically rebuilt after I change the library
project? I've checked the library project in the 'Project References'
of the app project, but that seems to have no effect. No after each
change I make to the library project, I need to remember to clean the
app project to get new code into the apk. Needles to say, I forget all
the time...

Second one might be a bit more involved, but hopefully there is an
easy fix. I have my projects into a subversion repository, but the app
project builder (Android pre-compiler) seems to copy all the source
from the library project, including the .svn folders, to the app/bin
project. As a result of this, I get loads of files checked into the
commit dialog, and I have uncheck all and then hunt down the files I
actually changed. Is there any way to configure it to ignore .svn
files when copying source? I realise that it has to merge source from
both projects to create the final apk, but .svn files are surely not
needed.

Maybe I should bite the bullet and move the whole thing to Maven+Masa,
but it is (still) a fairly simple project so I'm trying to avoid
unneeded complexity.

Any ideas?

-- 

3. J'ai pas trouv茅 le chemin syst em/lib

4. SoundPool and LOADing from a resource

5. ListView not refreshing on back button when cursor is changed

6. Android APIs

7. How to make a imageview at right of linearlayout