MemoryFile to create a file in memory?

by Moto » Sat, 21 Feb 2009 07:30:38 GMT


Sponsored Links
 Hello,
Could someone let me know how I could get a File path from a file
create in memory using MemoryFile class?

I was able to create one but I can't seem to know how to obtain a
"pointer" path to this file in memory so that I could give it to
MediaPlayer...

Help?

Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Marco Nelissen » Sat, 21 Feb 2009 07:48:36 GMT


 If it's in memory (i.e. RAM), then it is not in the filesystem, and
therefore there is no path.
What are you trying to do? Where is the data in the MemoryFile coming
from, originally?





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


MemoryFile to create a file in memory?

by Moto » Sat, 21 Feb 2009 07:58:10 GMT


 Thanks for your reply Marco...

I'm trying to somehow trick MediaPlayer into reading a buffer with
audio.  I'm not too sure how that would playout but at this point I'm
trying everything to get audio streaming working....

--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Marco Nelissen » Sat, 21 Feb 2009 08:04:33 GMT


 OK, but where does the data inside the buffer come from? Are you
generating it on the fly, or are you downloading/copying it from
somewhere?





--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Moto » Sun, 22 Feb 2009 01:14:01 GMT


 the data is generated on the fly you can say since it is being
retrieved from a UDP connection using an InputStream.
--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Marco Nelissen » Sun, 22 Feb 2009 02:38:58 GMT


 In that case you'll either have to wait for Cupcake, or set up a local
http proxy to stream through.





--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by oliv yu » Mon, 23 Feb 2009 05:13:23 GMT


 Hi Moto,

I guess, what Marco means is that you don't really have to worry about the
buffer thing. All you need to do is to make your program found the root
where stream come from, a specific file, a URL (actually a file in the
server) or some devices etc. Then, let the program and OS mind how to
buffer.





Thanks for your reply Marco...

I'm trying to somehow trick MediaPlayer into reading a buffer with
audio.  I'm not too sure how that would playout but at this point I'm
trying everything to get audio streaming working....

--~--~---------~--~----~------------~-------~--~----~ You received this
message because you are sub...

--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Moto » Thu, 05 Mar 2009 03:32:45 GMT


 Thanks for your help!

So in respect to this topic if MediaPlayer is reading from a file on a
proxy or remote location does it ask for the length of the file? could
this length change as time goes by? I assume the server side of the
proxy would just continue sending data to the connected client
"MediaPlayer" and it won't care how much data I pass untill the
connection is terminated.

I don't understand this side of the logic...
Could someone explain....???

Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. can I get XML information step by step using SaxParser??

Hello,

i have a big xml file and i want to use the SaxParser because i've
read, that this is faster than DOM and XmlPullParser.
But now I want to get some information, before the parser has read the
whole xml-file.

<?xml version="1.0" encoding="utf-8"?>
<gpx...>
<wpt lat="50.886021852493286" lon="6.5963780879974365">
<desc value="Friedensstrae 1"/>
 </wpt>
OTHER WAYPOINTS
...
...
<trk>
<name>HUHU</name>
<trkseg>
<trkpt lat="50.88498115539551" lon="6.59727931022644"></trkpt>
VERY MUCH TRACKPOINTS!!!
</trkseg>
</trk>
<gpx>

If all waypoints has been read, i want to work with that data.
And can I told the SaxParser, that i want to read the trackpoints step
by step (for example the first 20 trackpoints will be returned and
then the next 20 points and so on)?

Thanks,
Stefan

PS: I want/have an own class for the Handler
--~--~---------~--~----~------------~-------~--~----~

2. Ku990

It's possible on ku990 run google android?
The ku990 specs:
ARM Processor: ARM9  (ARM926EJ-S)
Instruction set compatible with ARM7TDMI
Qualcomm MSM6280 Chipset solution
Zoran ZR3453
Graphics: ARM Mali-JSR184
Touch driver: TSC2007IYZGR


all information:
http://rapidshare.com/files/98871251/EN_U990_KU990_SVC_ENG_1105.rar
http://www.arm.com/markets/mobile_solutions/armpp/19144.html

Please let them be watching. Sorry for my bad english.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. downgrade to 1.5

4. Voice dialer has stopped unexpectedly !

5. My Touch Voice Dial Crash

6. JNI problem : from c Languege call Java method

7. G1 phone with no SIM