[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-21 Thread Dave Sparks
Right now, the answer is no. Most cameras require that you go to preview mode before you can take a picture so that the image processor can grab some frames for auto-focus, white balance, etc. I'll see if we can get a change into Cupcake that allows you to start preview without a surface. That sh

[android-developers] Re: Make a photo with Android Emulator

2009-01-21 Thread Dave Sparks
You need to call startPreview() before takePicture. You also need to supply a PictureCallback function to receive the encoded JPEG. By passing null, you are telling the camera service you don't want the final JPEG image. On Jan 21, 2:50 am, ANDREA P wrote: > I want to use the camera to make a ph

[android-developers] Re: Camera Focus Facility

2009-01-21 Thread Dave Sparks
calling auto-focus first. You don't want to move the camera until after the shutter callback. On Jan 21, 1:59 am, "mobilek...@googlemail.com" wrote: > Could you list the proper sequence as I'm having hard time working it > out! Thanks > > On Jan 21, 3:21 am, Dave Spar

[android-developers] Re: Play wav files in Media player

2009-01-21 Thread Dave Sparks
I suspect that your problem is in some details that you haven't given us yet. How many media players are you creating at the same time? On Jan 20, 10:47 pm, ena wrote: > On Jan 21, 8:23 am, Dave Sparks wrote:> What is the > format of the data in the WAVE file? > > i pl

[android-developers] Re: Porting JMF - Native source code to android based

2009-01-22 Thread Dave Sparks
We do not support native code on Android at this time, but we have plans to publish a native SDK soon. On Jan 22, 2:03 am, MRK wrote: > I am creating an Android application which uses the JMF (SIP, RTP, > JAIN). So i downloaded the JMF source code for some adhoc change to my > application. > > T

[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-23 Thread Dave Sparks
The camera service has no concept of foreground activity. It simply gives the camera to the app that requests it. If another app currently owns the camera, it is notified when the camera is stolen. I don't know all the rationale for that design decision. It's probably not the way I would have des

[android-developers] Re: Camera.java

2009-01-23 Thread Dave Sparks
If you are looking for the camera application source code, you'll find it on android.git.kernel.org in the packages/apps project. On Jan 23, 5:47 am, ANDREA P wrote: > There is Camera application in Android Emulotor... > > The application code is Camera.java but I don't know where is it

[android-developers] Re: Documentation of MediaPlayer error codes

2009-01-23 Thread Dave Sparks
ect a fix for this in a future OpenCore release. In the meantime, you need to be a bit more conservative about the encoding of your content. On Jan 23, 8:11 am, Allan Beaufour wrote: > On 20 Jan., 18:22, Dave Sparks wrote: > > > We are working on improving media player error codes for t

[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black

2009-01-23 Thread Dave Sparks
ne has not yet had a chance to close it. > > On Fri, Jan 23, 2009 at 9:08 AM, Dave Sparks wrote: > > > > > > > The camera service has no concept of foreground activity. It simply > > gives the camera to the app that requests it. If another app currently > > owns the

[android-developers] Re: How to record calls? Or Is it possible to record calls?

2009-01-24 Thread Dave Sparks
It is not possible to access call audio in the G1. This is a function of the firmware in the radio and DSP and is currently not supported. It is possible that future devices may enable this functionality, but at the moment it is not part of a planned release. On Jan 24, 2:32 am, javame_android

[android-developers] Re: File permission about MediaPlayer

2008-11-14 Thread Dave Sparks
Windows Media is not supported in the emulator due to licensing issues. The T-Mobile G1 supports WMA/WMV because that device is specifically licensed to use the Microsoft codecs. On Nov 14, 4:15 am, Gery <[EMAIL PROTECTED]> wrote: > Hi David, > > Regarding this mediaplayer access right thing, may

[android-developers] Re: processing camera preview before display

2008-11-14 Thread Dave Sparks
You cannot alter the preview frames as they are being displayed. Camera preview uses a private shared interface between the camera and SurfaceFlinger to display preview frames. It would be too costly to pass this data across two process boundaries and a Java VM. You might be able to get away with

[android-developers] Re: Quality of audio recording from MediaRecorder

2008-11-14 Thread Dave Sparks
The MediaRecorder is currently hardcoded for AMR-NB and is intended for MMS messages. You can expect improvements to audio recording in a future SDK. On Nov 14, 12:26 pm, ste <[EMAIL PROTECTED]> wrote: > I'm testing out the MediaRecorder's audio recording capability, and > the quality of the aud

[android-developers] Re: Camera Question: Off on Pause?

2008-11-22 Thread Dave Sparks
Call the release() method on the Camera object and set it to null. In onResume, create a new Camera object. On Nov 22, 1:23 pm, joshbeck <[EMAIL PROTECTED]> wrote: > Here is what my app does: > > It opens the camera. > It draws a preview to a surface. > > Now, if the user pauses the app, > is the

[android-developers] Re: Require Source code of tools

2008-11-25 Thread Dave Sparks
The source for the entire project is at source.android.com. On Nov 25, 1:22 am, Amit <[EMAIL PROTECTED]> wrote: > Hello friends, > > Can u please tell me where can i get the source code of tools provided > in sdk. I need source code of DDMS and traceview. > > Any help appreciated. > > Thanks > Am

[android-developers] Re: how to obtain meda-data (like bit rate) from audio files ?

2008-11-25 Thread Dave Sparks
The metadata retriever currently doesn't support that level of detail. On Nov 24, 12:09 pm, AP08 <[EMAIL PROTECTED]> wrote: > I checked android.provider.MediaStore.Audio.Media, but it can provide > only limited data about audio file. I want to obtain data such as bit- > rate, how do I get that ?

[android-developers] Re: Fw: [android-developers] Re: Android and bluetooth

2008-11-25 Thread Dave Sparks
Bluetooth is a big category. What feature(s) do you need? On Nov 25, 1:26 am, supernova <[EMAIL PROTECTED]> wrote: > Any idea when a version with BT support will be released? > I need to choose a mobile platform for a project and BT support is > required. > > On 24 nov, 13:45, Mark Murphy <[EMAIL

[android-developers] Re: Streaming RTSP directly by suing MediaPlayer

2008-11-25 Thread Dave Sparks
The media framework does support RTSP with RTP payloads. The OpenCore code includes an RTSP/RTP client built on sockets that will handle buffering and transport controls. It does not work in the emulator environment due to some firewall issues in the emulator network layer. On Nov 24, 12:30 pm,

[android-developers] Re: Calling youtube from Android

2008-11-25 Thread Dave Sparks
I think you are looking for the following method in android.content.pm.PackageManager: public abstract Drawable getActivityIcon(Intent intent) On Nov 24, 9:03 pm, "cse.tlin" <[EMAIL PROTECTED]> wrote: > Hi davidsparks, > Can I get the drawable icon ofyoutubeapp from another app? > I want to offe

[android-developers] Re: Getting File Descriptor For Pipe

2008-11-26 Thread Dave Sparks
This is unlikely to work because the OpenCore engine isn't setup to play from a pipe. It plays from a local file, which allows it to seek within the file, or from an HTTP or RTSP/RTP stream, which requires content formatted specifically for streaming. A future version of the SDK will support stre

[android-developers] Re: AIDL in same process

2008-11-26 Thread Dave Sparks
IPC binder calls within the same process are treated as local C++ calls, i.e. they occur synchronously on the same thread. I'm not sure what you are asking in the second part of your question. Is this a request for dependencies in the Market, e.g. Application A requires Application B to be instal

[android-developers] Re: MediaRecorder docs fix

2009-01-26 Thread Dave Sparks
Would you please post a bug with specifics? Thanks! On Jan 26, 12:03 pm, Tim Bray wrote: > The section "Recording Media Resources" > ofhttp://code.google.com/android/toolbox/apis/media.htmlseems to be out of > date and wrong. I got working code > fromhttp://rehearsalassist.svn.sourceforge.net

[android-developers] Re: Recording audio stream

2009-01-26 Thread Dave Sparks
tners You can see the code in development on the Cupcake branch at android.git.kernel.org. On Jan 26, 11:31 am, benmccann wrote: > I'm happy to hear future releases will support the ability to stream > audio being recorded. Any ETA on this? > > On Dec 30 2008, 9:58 am, Dave Sparks wrote:

[android-developers] Re: Identifying pictures taken on 'this' device

2009-01-26 Thread Dave Sparks
The camera application in the Cupcake branch does it somehow. You could try looking at the code in packages/apps/Camera. On Jan 26, 4:38 pm, GiladH wrote: > Hey, > > Is there a way to identify which of the MediaStore images has been > taken > on 'this' device, as opposed to pictures exported/dow

[android-developers] Re: Audio Streaming Integration

2009-01-27 Thread Dave Sparks
If you are really ambitious, you can download the Cupcake source, unhide all the new API's and build the SDK yourself. However, that is a topic for a different list. On Jan 27, 5:58 am, Jean-Baptiste Queru wrote: > You can't. You'll have to wait for an SDK built form the cupcake code > base, and

[android-developers] Re: the problem with libopencoreplayer.so when compile Android source code

2009-01-27 Thread Dave Sparks
This message is off-topic, this forum is for application developers. Try the android-framework list. On Jan 26, 10:53 pm, bardshen wrote: > Dear Sirs: >     when i try to build the Android source code download from internet > use repo. i meet the following problem: > >     external/opencore//an

[android-developers] Re: Can you play a local video not on the sdcard?

2009-01-28 Thread Dave Sparks
Right, which means that you need to open the resource file in your process and pass the file descriptor in setDataSource instead of the URI. On Jan 27, 4:16 pm, Marco Nelissen wrote: > Playback/decoding actually happens in a different process (the media > server), so that process needs to have p

[android-developers] Re: Simultaneous Photography using Andriod

2009-01-28 Thread Dave Sparks
The simplest approach is just firing off an intent to the existing camera app to take a picture. This requires the user to push the shutter button. If you want it purely under program control, you could have the application snap the picture without the user pressing a button. It just takes a bit

[android-developers] Re: Reg playing youtube video in android

2009-01-28 Thread Dave Sparks
If you specifically want to play a YouTube video, you need to register as a YouTube developer to get the keys you need to access the Gdata feeds. I think that the Cupcake release will support a new intent for playing YouTube videos with the YouTube app, but it will be some time before that featur

[android-developers] Re: Video and Audio format Supported by Android

2009-01-28 Thread Dave Sparks
We are getting ready to post some new pages in the SDK area that will cover this information. If you can't wait for that, do a search on this forum for codecs. It has been covered a number of times. On Jan 28, 2:33 am, Tom wrote: > Hi All > >  i want to knw what r the Audio and Video format r s

[android-developers] Re: Reg playing youtube video in android

2009-01-29 Thread Dave Sparks
l launch the youtube player. > The problem is, it doesn't work in the emulator, since there's no > youtube app. > > Michael > > On Jan 28, 3:37 pm, Dave Sparks wrote: > > > If you specifically want to play a YouTube video, you need to register > > as a

[android-developers] Re: what is maximum height and width of image which can display?

2009-01-29 Thread Dave Sparks
The application heap is limited to 16MB. For RGB565, that's a max of 8M pixels, not including the heap that the app uses for other objects. Chances are, you are probably decoding from a JPEG, so you need room for both the compressed and uncompressed version. On Jan 29, 7:41 am, Phill Midwinter w

[android-developers] Re: How to extract an image from a video

2009-01-29 Thread Dave Sparks
This is not possible with the 1.0 SDK. This feature will be available in the Cupcake release. On Jan 28, 11:16 pm, Raghu wrote: > Hi, > >       I want to get thumbnail from a video. So I need to extract first > frame in the video. Please let me know how can I do that in Android. > > Thanks in Ad

[android-developers] Re: Audio chat

2009-01-29 Thread Dave Sparks
This is not really possible with 1.0 SDK. Someone has done a walkie- talkie like program that records audio to a file and then streams it, but not real-time audio. The Cupcake release will add the capability to stream audio from the mic into a Java app and stream audio from a Java app to the audi

[android-developers] Re: Video resolution support

2009-01-29 Thread Dave Sparks
I don't know that there are any specific restrictions on the video resolution for the software codecs. It's really a matter of whether the CPU has adequate cycles to decode it in real-time. Some of the codecs are hardware accelerated and they do have restrictions about frame size, bit-rate, and f

[android-developers] Re: MediaPlayer seeking back

2009-01-29 Thread Dave Sparks
I believe the OpenCore HTTP streaming engine maintains a circular buffer of data. As data is played out, the buffer space it occupied is re-filled with new data. When you seek backwards in the stream, it has to re-fill the buffer from the earlier part of the stream. On Jan 29, 1:05 pm, ed wrote:

[android-developers] Re: gapless playback

2009-01-30 Thread Dave Sparks
Use Ogg files, you can get a nice seamless loop. We use this for the ringtones. On Jan 30, 10:30 am, "ph...@grantmidwinter.com" wrote: > Hoya, > > When using a mediaplayer to play back an audio file, you can set > looping to true - that's not the issue here. > > If looping is set to true, there'

[android-developers] Re: how to overlay an image over the camera preview?

2009-01-30 Thread Dave Sparks
No, you don't draw on the camera preview surface. You create a transparent surface above it in the Z stack and draw on that. On Jan 30, 5:31 pm, srajpal wrote: > I checked out the api demo, it helps to place the camera preview on > top of the surface view, but the buffers are handid over to the

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread Dave Sparks
Are you running on a G1 or on the emulator? If on the emulator, maybe audio input isn't working correctly and it's failing to open the audio input device. On Jan 31, 9:59 am, Phill Midwinter wrote: > Looking at adb logcat I'm getting this error: > > "*Record channel already open*" > > Could this

[android-developers] Re: gapless playback

2009-01-31 Thread Dave Sparks
: > That works perfectly, thanks for the help. > > Do you know why it works? > > 2009/1/31 Dave Sparks > > > > > > > Use Ogg files, you can get a nice seamless loop. We use this for the > > ringtones. > > > On Jan 30, 10:30 am, "ph...@grantmid

[android-developers] Re: MapView disable?

2009-01-31 Thread Dave Sparks
I don't know anything about MapView. What service are you on e.g. WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log? Maybe a proxy failure? On Jan 30, 5:46 pm, Keiji Ariyama wrote: > Hi folks, > > Now, I'm developing an Android app called "Echo". > But 5 hours ago, My Dev phone h

[android-developers] Re: Audio in the emulator...

2009-01-31 Thread Dave Sparks
Try this: emulator -help-audio-in It will tell you which audio backends are available on your system. You didn't specify what OS you are using. I think there was also some sample code in the SDK at one point. Maybe one of the developer advocates can point you to it. Another option is to look fo

[android-developers] Re: MediaRecorder - No value other than 0 returned from getMaxAmplitude

2009-01-31 Thread Dave Sparks
o onpause and ondestroy, > making sure it's released in each case and then run again. Works like a > charm! > > 2009/1/31 Dave Sparks > > > > > > > Are you running on a G1 or on the emulator? If on the emulator, maybe > > audio input isn't working co

[android-developers] Re: android audio

2009-01-31 Thread Dave Sparks
In SDK 1.0, you can only record to a file using the AMR-NB codec, which is bandwidth limited to 4KHz, and the encoding process itself is pretty lossy. If you want to experiment with this on a G1, go to Messaging, create a new message, click menu and select Attach, and select Record Audio. This wil

[android-developers] Re: dbus_bus_get failure in audio flinger

2009-02-02 Thread Dave Sparks
This forum is for application developers. You should try this question in android-porting. On Feb 2, 9:34 am, "henry.lon...@gmail.com" wrote: > Hi, > > I tried to play with audio flinger code. What i did is to call > dbus_bus_get to connect to dbus daemon. However I got the errror > "Failed to c

[android-developers] Re: Audio Volume

2009-02-02 Thread Dave Sparks
The volume adjustment is context sensitive. You can tell which volume is being adjusted by the volume display. If YouTube or the music player, adjusting the volume will affect only the music/video playback volume. The volume display will read "Media Volume". If you're in the home screen, or most

[android-developers] Re: About media player

2009-02-02 Thread Dave Sparks
What kind of plug-in do you want to write? "media player" is kind of a vague term. There is the Music player application, the MusicPlaybackService, the MovieView activity, the VideoView activity, and the MediaPlayer object. Source for all of those is available at source.android.com. On Feb 1, 12

[android-developers] Re: Mediaplayer, retrieving after starting a new activity

2009-02-02 Thread Dave Sparks
If your application is properly written, you should be calling release () on the MediaPlayer object in your onPause() method. There is no guarantee that your app won't be killed while it's sitting in background, which will stop the audio. If you want audio in the background, you need to write a s

[android-developers] Re: Audio in the emulator...

2009-02-02 Thread Dave Sparks
the sound recorder application you where talking about, I > haven't tested it yet, but the source code is 100* bigger than > mine...http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder... > > Maybe I have made a mistake somewhere, any help is greatly appreciated >

[android-developers] Re: RTSP Streaming on g1 phone

2009-02-03 Thread Dave Sparks
Frame size? Video and audio bitrate? Anything in the log? On Feb 3, 3:59 am, Jeff Oh wrote: >  Hi, I'm trying to receive RTSP streaming video with g1. The video > file I made was encoded using QuickTime pro, and they are progressive > streamable with a hint track. Video is encoded in H.264, and

[android-developers] Re: Playing an audio file during a call

2009-02-04 Thread Dave Sparks
No, this is not supported. It requires access to in-call audio which is currently not available to the apps processor. On Feb 4, 3:36 am, Mak wrote: > I want to accept incoming calls and play an audio file for the caller. > Is there a possibility of playing an audio file during a phonecall, > so

[android-developers] Re: About media player

2009-02-04 Thread Dave Sparks
demo system for research and study. > With best wishes > Jerry > > -Original Message- > From: android-developers@googlegroups.com > [mailto:android-develop...@googlegroups.com] On Behalf Of Dave Sparks > Sent: Tuesday, February 03, 2009 6:43 AM > To: Android Developers

[android-developers] Re: problem with playing sounds using media player

2009-02-04 Thread Dave Sparks
The message could be a clue, it's trying to tell you that the CPU is overloaded, i.e. you're trying to do too much. Have you tried running "top" to check the CPU load? On Feb 4, 10:32 pm, suhas wrote: > Hi all, > I m using mp3 sound in my game (used wav format also)  while > playing sou

[android-developers] Re: OpenGL-ES 2.0 support

2009-02-05 Thread Dave Sparks
We are planning Open GL ES 2.0 hardware binding support for Donuts (the next release). There will not be a software renderer, so you'll need to have hardware that supports it. Theoretically it should be possible write a software renderer as well. On Feb 5, 3:55 am, AndroidDev wrote: > Hi. > > Is

[android-developers] Re: Processing audio

2009-02-05 Thread Dave Sparks
This is not possible in SDK 1.0. On Feb 4, 1:01 pm, Natalie wrote: > I would like to be able to extract frequency/amplitude info from > incoming mic audio. From looking at previous posts, it looks like the > way to do this with the current sdk is to write to a file, then tail > that file. This

[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread Dave Sparks
e warning is flashed ? > > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks wrote: > > > The message could be a clue, it's trying to tell you that the CPU is > > overloaded, i.e. you're trying to do too much. Have you tried running > > "top" to check the CPU

[android-developers] Re: About media player

2009-02-05 Thread Dave Sparks
possible? > Thanks > With best wishes > Jerry > > -Original Message- > From: android-developers@googlegroups.com > [mailto:android-develop...@googlegroups.com] On Behalf Of Dave Sparks > Sent: Thursday, February 05, 2009 3:29 PM > To: Android Developers > Su

[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread Dave Sparks
.. But then i tried SoundPool api and it worked fine > . Then also i wonder what was the prb with mediaplayer > > On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks wrote: > > > If you are playing 6 or 7 MP3 files at the same time, you are probably > > saturating the CPU j

[android-developers] Re: "Native code is not supported in the current SDK."

2009-02-05 Thread Dave Sparks
Further clarification: <<< I was under the impression it is possible to download the java source code AND the C source code and build them all. >>> It is possible to download the open source code and build for the emulator. If you want the code to run on a specific device, you need additional li

[android-developers] Re: Sampling

2009-02-06 Thread Dave Sparks
No, this is not supported in SDK 1.0. On Feb 6, 8:34 am, Sundog wrote: > Is it possible to "piggyback" the audio stream or the microphone and > get raw sample data from it? Can anyone point me to some > documentation? > > Thanks. --~--~-~--~~~---~--~~ You received

[android-developers] Re: Updation of the Media Data base in emulator only on bootup/mount/recording?

2009-02-06 Thread Dave Sparks
You need to tell the media scanner that you have added a new file. See http://code.google.com/android/reference/android/media/MediaScannerConnection.html On Feb 6, 4:38 am, Rishi wrote: > When i added a media file to the sdcard an update in the MediaProvider > database is not happening. When i b

[android-developers] Re: problem with playing sounds using media player

2009-02-06 Thread Dave Sparks
played > I mean that same game is working fine on iphone with huge sound files in > term of size also > > On Fri, Feb 6, 2009 at 12:04 PM, Dave Sparks wrote: > > > > > Suggest you try running top to find out what's hogging the CPU. > > > On Feb 5, 9

[android-developers] Re: debugging integrated Java and native code

2009-02-07 Thread Dave Sparks
A few of our developers use Eclipse as a front-end for gdb. I recall that the setup is a bit tricky. Maybe someone can post the magic formula. I use gdb myself, but then I still use vi and makefiles. IDE's are for wimps. :) On Feb 7, 9:22 am, Sergey Ten wrote: > Hi, > > I am trying to figure ou

[android-developers] Re: Multimedia buffering

2009-02-09 Thread Dave Sparks
The files are not stored, they are streamed into a temporary memory buffer. What kind of file are you trying to stream? If it's an MP4 file, you need to make sure that the 'moov' atom comes before the 'mdat' atom. On Feb 9, 3:08 am, AliBaba wrote: > Hi All, > > I am trying to run the media play

[android-developers] Re: Playing video in android

2009-02-09 Thread Dave Sparks
First, the surface type needs to be push buffers. In your Preview constructor, add the following: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); Second, you need to tell the media player where to display the video. You have a line commented out: //mp.setDisplay(mPreview.g

[android-developers] Re: the image captured using Intent i = new Intent("android.media.action.IMAGE_CAPTURE"); is very small

2009-02-09 Thread Dave Sparks
This is an issue that will be fixed in the Cupcake release. On Feb 8, 11:31 pm, jj wrote: > hello everybody > > I am capturing Image from app using : > the image captured using Intent i = new Intent > ("android.media.action.IMAGE_CAPTURE"); > > but it is very small (25*50) > > Why this is happen

[android-developers] Re: Reg playing youtube video in android

2009-02-09 Thread Dave Sparks
I'm pretty sure this is due to the way the emulator handles UDP packets. There is an outstanding bug about this, but no one has had time to work on it. On Feb 9, 10:59 pm, Harishkumar V wrote: > Michael, > > using browser running in the android in emulator mode, i > launchedhttp://m.youtube.com

[android-developers] Re: 3gpp files

2009-02-10 Thread Dave Sparks
Can you elaborate a bit more on how you are playing the file? Did you write your own video player? On Feb 9, 2:57 pm, KC wrote: > I have a video file in 3gpp format and I can use QuickTime to play it. > But when tried with the SDK Windows emulator, I got the error msg: > > [2009-02-09 14:46:23 -

[android-developers] Re: What's in raw data from PictureCallback of camera?

2009-02-10 Thread Dave Sparks
On the G1, no data is returned - only a null pointer. The original intent was to return an uncompressed RGB565 frame, but this proved to be impractical. On Feb 9, 3:57 pm, Xster wrote: > Hi, > Our university is intending to use the Android as a platform for > mobile image analysis. We're wonderi

[android-developers] Re: 3gpp files

2009-02-10 Thread Dave Sparks
ediaPlayer(video); > video.setMediaController(ctlr); > video.requestFocus(); > } > > On Tue, Feb 10, 2009 at 12:00 AM, Dave Sparks wrote: > > > > > Can you elaborate a bit more on how you are playing the file? Did you > > write your own video

[android-developers] Re: changing voice attributes with android

2009-02-10 Thread Dave Sparks
No, there is no way to do this in SDK 1.0. On Feb 10, 9:48 am, "eliak...@gmail.com" wrote: > hello, > I want to create an application that can change one's voice during a > call in real time > is there a way to do that in android? > can you point me to the right package? > thanx --~--~-~

[android-developers] Re: Sampling

2009-02-10 Thread Dave Sparks
It's on the roadmap for Cupcake. On Feb 10, 6:44 pm, clark wrote: > How about SDK 1.1? Or 1.2? Any idea where on the roadmap this feature > stands? > > On Feb 6, 10:18 am, Dave Sparks wrote: > > > No, this is not supported in SDK 1.0. > > > On Feb 6, 8:

[android-developers] Re: What's in raw data from PictureCallback of camera?

2009-02-10 Thread Dave Sparks
ones do not yet support loading such large > images into (java) application memory but I'm hoping the Android > architecture can accommodate this in the not to distant future. > > Regards > > On Feb 10, 7:01 pm, Dave Sparks wrote: > > > On the G1, no data i

[android-developers] Re: 3gpp files

2009-02-10 Thread Dave Sparks
rt MP4 as well? Any plan > for MP4 video (if it's not doing it), in light of the trend that more and > more codec chip vendors are supporting it. > > -KC > > On Tue, Feb 10, 2009 at 9:56 AM, Dave Sparks wrote: > > > > > The problem is that your video path is on yo

[android-developers] Media file formats and codecs supported by Android

2009-02-10 Thread Dave Sparks
A list of media file formats and codecs supported by Android can be found here: http://developer.android.com/guide/appendix/media-formats.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: What's in raw data from PictureCallback of camera?

2009-02-11 Thread Dave Sparks
r SDK 1.0 gives me the impression that things were - > perhaps due to time pressure - thrown together without *any* > background in (real-time) image processing as required for future > augmented reality applications and location-based image processing. > > Regards > > On

[android-developers] Re: Is VideoView Broken?

2009-02-11 Thread Dave Sparks
You can't play a resource file using VideoView by passing a pathname. The file doesn't exist; it's just a binary blob inside the APK file. If you create a content provider, you could pass a URI to setVideo(). I'm not entirely sure that will work because the video file might be compressed inside th

[android-developers] Re: the android's built in video player, supports which file format

2009-02-11 Thread Dave Sparks
We have no plans to support those formats. Android manufacturers always have the option of including other file formats and codecs if the demand is there. On Feb 11, 5:57 pm, waterblood wrote: > Does Google has any plan for other format support , as avi, rm? > > On 1月15日, 下午1时27分, rktb wrote: >

[android-developers] Re: how to get camera object for double camera

2009-02-11 Thread Dave Sparks
SDK 1.0 only has support for one camera. When we have demand for a second camera from an Android partner, we'll add a new API so that you can select the camera. On Feb 11, 1:35 am, Link wrote: > hi, all > > i wonder how to get camera object in android, if there are two or more > cameras in a te

[android-developers] Re: MediaRecorder Sound Quality?

2009-02-11 Thread Dave Sparks
The codec is AMR-NB with an 8KHz sample frequency. In the Cupcake release we will provide access to the raw 16-bit PCM stream so you can do your own encoding or signal processing. On Feb 11, 9:18 am, g1bb wrote: > Hello, > > Is anyone else experiencing poor playback quality on files recorded > w

[android-developers] Re: how to get the first frame of a video file ?

2009-02-11 Thread Dave Sparks
There is no support for thumbnail extraction in SDK 1.0. It's coming in Cupcake as an adjunct to video record. On Feb 11, 7:30 am, Freepine wrote: > Opencore has a frame and metadata utility, and there is also an API as > android.media.MediaMetadataRetriever.captureFrame() > in Java layer, but i

[android-developers] Re: What's in raw data from PictureCallback of camera?

2009-02-11 Thread Dave Sparks
eing reminded of FORTRAN-77 on old IBM mainframes getting compiled > almost 1-to-1 to easy-to-read machine code.) So perhaps rather than a > built-in native signal processing *kernel* I am here thinking of a > built-in native signal processing (JIT) *compiler*. ;-) > > Regards

[android-developers] Re: Recording Audio with MediaRecorder on G1

2009-02-11 Thread Dave Sparks
I looked over the code and didn't see anything obvious. You won't see anything in the log unless an error occurs - we try to minimize logging in production code. Run adb bugreport and take a look at the kernel log. You should see something like this: <6>[ 820.265000] adsp: opening module AUDPRE

[android-developers] Re: I want to use mediaplayer to play avi and other file formats

2009-02-13 Thread Dave Sparks
This is not the appropriate list for your questions. There are lots of threads about this in android-framework. Search for "OMX hardware codecs". There is also a guide to integrating OMX codecs in the OpenCore project. On Feb 12, 7:57 pm, susanner wrote: > Dear all > Is there any support for av

[android-developers] Re: What's in raw data from PictureCallback of camera?

2009-02-13 Thread Dave Sparks
acceleration. > > > Any future JIT compiler support in Android would be complementary, by > > improving efficiency in higher level processing. The vector operators > > would not become obsolete because a JIT compiler would in all > > likelihood never reach the efficiency for

[android-developers] Re: RTSP Video Issues on 1.1 firmware

2009-02-13 Thread Dave Sparks
Can you supply some links so we can try to figure out what's wrong? On Feb 12, 12:15 pm, jz0o0z wrote: > Update: After a little more testing I found some rtsp links that do > play in 1.1, but other links, which I verified are still active and > were working before are giving me the error. > > Is

[android-developers] Re: Playing video in android

2009-02-14 Thread Dave Sparks
We can't help you if you can't describe the errors you are seeing. What is in the log? On Feb 14, 10:01 am, Ash wrote: > Thank u so much for the reply but The program does Not execute at > all.. Can u please help > > On Feb 9, 2:53 am, Dilli wrote: > > > Hi > > > i think you fixed the siz

[android-developers] Re: RTSP and MMS - mediaplayer shenanigans

2009-02-14 Thread Dave Sparks
I'm pretty sure that OpenCore is going to reject the mms URI. On Feb 13, 8:57 pm, Rob Franz wrote: > I believe this is WMA on the other end. Does this present a problem? > > On Feb 13, 2009 11:13 PM, "Rob Franz" wrote: > > Hi all > I'm trying to get an RTSP stream going with a verified source

[android-developers] Re: How to force MediaStore to rescan the SD card

2009-02-14 Thread Dave Sparks
You want something like this in your activity: import android.media.MediaScannerConnection; import android.media.MediaScannerConnection.MediaScannerConnectionClient; private static class MediaScannerNotifier implements MediaScannerConnectionClient { private Context mContext; private Medi

[android-developers] Re: sound effect using SoundPool

2009-02-14 Thread Dave Sparks
There are a lot of fixes to SoundPool coming in the Cupcake release. I need to check on the crash you mentioned - I don't recall seeing that before and it should give you an error, not crash. The range is dependent on the ratio of the sample rate of the source and the hardware output. On Feb 13,

[android-developers] Re: Playing video in android

2009-02-15 Thread Dave Sparks
ogram"; Then scatter log statements around the code in various places: Log.d(TAG, "This will output to the log"); On Feb 14, 11:28 pm, Ash wrote: > thanx for reply... the above code after making changes as mentioned by > Dave Sparks > does not show any error... when i foun

[android-developers] Re: On android.media.MediaRecorder, can it record the voice of speaker?

2009-02-15 Thread Dave Sparks
The G1 does not support recording uplink or downlink audio. On Feb 14, 6:20 am, Shawn_Chiu wrote: > Hello, buddies > It's about android.media.MediaRecorder. > I want to implement a feature to record the conversation, both voice > from speaker and microphone. But I tried on G1 phone, the > MediaR

[android-developers] Re: A safer way of using SoundPool?

2009-02-16 Thread Dave Sparks
I believe we were able to do the fixes for SoundPool without changing the public API. There are no plans to deprecate it at this time. On Feb 16, 6:05 am, "Blake B." wrote: > Great idea, Jon. Thanks for sharing the code. I'm about to start > work on sound in my game, so I'll look into using th

[android-developers] Re: On android.media.MediaRecorder, can it record the voice of speaker?

2009-02-16 Thread Dave Sparks
oice from microphone > no matter the AudioSource is MIC or DEFAULT. Actually, they do the > same thing. > Would other devices such like speaker or both speaker&mic could be > supported in further release? > BR > Shawn > > On Feb 16, 7:12 am, Dave Sparks wrote: > > &

[android-developers] Re: Audio stops after some time in android from video/Music player

2009-02-16 Thread Dave Sparks
Please don't cross-post. This question isn't appropriate for the application developer forum. On Feb 16, 4:01 am, getandroid wrote: > Hi, > >As mentioned audio stops after some random number of times when > played from either Music/Video player. After some debugging, I found > that the probl

[android-developers] Re: playing video from browser in sdk1.1

2009-02-16 Thread Dave Sparks
This list is for application developers. Please post questions about source code in one of the open source forums (android-porting, android- platform, or android-framework). Short answer: There are no plans to publish source to any of the Google properties at this time. On Feb 15, 8:10 pm, Haris

[android-developers] Re: Playing simple sounds on the emulator

2009-02-16 Thread Dave Sparks
Add MIDI to the list. On Feb 16, 1:02 pm, Stoyan Damov wrote: > There's no API which allows you to generate sound. However, you might > record your notes as oggs/wavs/whatever and play them with MediaPlayer > or SoundPool (using the latter you can use the pitch parameter to play > higher/lower o

[android-developers] Re: Can MediaPlayer play .wav fomat audio?

2009-02-16 Thread Dave Sparks
The media player can play 16-bit WAVE files, but only if the format type is PCM and not the extended format type. I've been meaning to fix the OpenCore WAVE parser to handle extended format, but it's not a high priority right now. On Feb 16, 6:39 pm, herain wrote: > I tried to play a piec of 16

[android-developers] Re: How to use AsyncPlayer ()??? Uri?

2009-02-16 Thread Dave Sparks
I think your confusion probably comes from the phrase "plays a series of audio URI's". AudioSyncPlayert's just a simple helper class for playing audio files that runs on its own thread, instead of on the UI thread. The first time you call play, it will start playing a sound. If you call it a seco

[android-developers] Re: Can MediaPlayer play .wav fomat audio?

2009-02-16 Thread Dave Sparks
ool edit which saved a pcm file as windows > PCM format. > I guess it doesn't contain any extended format type as your mentioned. > > On Feb 17, 10:57 am, Dave Sparks wrote: > > > The media player can play 16-bit WAVE files, but only if the format > > type is P

<    1   2   3   4   >