[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Marco Nelissen
As I said, use AudioRecord ( http://developer.android.com/reference/android/media/AudioRecord.html ) There might be some sample code in the SDK, I'm not sure. On Thu, May 14, 2009 at 9:43 PM, Anh Khoa Nguyen Pham npak...@gmail.comwrote: Hi Marco, How can i record audio in PCM format in 1.5

[android-developers] Re: Send combination key events

2009-05-13 Thread Marco Nelissen
If you just want to launch email, why not use startActivity() ? On Tue, May 12, 2009 at 4:36 PM, Kai Hu leon.k...@gmail.com wrote: Thanks for your help Marco, I tried exactly the same way but it doesn't work. It brings me search box of google and put e in it, instead of launching email

[android-developers] Re: On Destroy Notification

2009-05-13 Thread Marco Nelissen
On Wed, May 13, 2009 at 2:36 AM, Kamal Hasan kamal.hasa...@gmail.comwrote: Hi All, Any one can please tell me, How to get a notification on dead of my application.Android is killing my app after every 40 mins. When it's in the foreground, or while another app is in the foreground? I'm

[android-developers] Re: recorded audio

2009-05-13 Thread Marco Nelissen
It doesn't show up immediately because your app didn't add it to the media provider. It shows up after a reboot because the media scanner runs at boot and scans the entire sd card. On Wed, May 13, 2009 at 6:32 AM, l hx lihongxia8...@gmail.com wrote: now when i recording a file using sound

[android-developers] Re: Do Cursor s stay valid across database changes?

2009-05-13 Thread Marco Nelissen
The Cursor holds a copy of the data, so it might be holding data that no longer matches what's in the database. Normally you'd use a ContentObserver or DatasetObserver with your cursor to be notified when the cursor needs to be requeried. On Wed, May 13, 2009 at 6:38 AM, Hamy hamilt...@gmail.com

[android-developers] Re: open socket failed: Permission denied when application to run a native C function.

2009-05-13 Thread Marco Nelissen
Your application needs to request the 'INTERNET' permission in its manifest. On Tue, May 12, 2009 at 8:03 PM, Terence terencehsieh0...@gmail.com wrote: Hi I port a tool in native C and builed a executable file or a library, and the executable can work successfully in console (Alt + F1).

[android-developers] Re: what problem is the log.....

2009-05-13 Thread Marco Nelissen
This group is about developing applications using the SDK. You want the android-porting group. On Tue, May 12, 2009 at 7:45 PM, dduri bisc...@gmail.com wrote: hi all... I testing android-1.5 on virtualbox. I compiled x86 porting. success booting and stop dial app. what problem??

[android-developers] Re: SQLLite constraint on delete cascade

2009-05-13 Thread Marco Nelissen
It might help if you posted the final string that you're passing to db.execSQL(), instead of us trying to figure out what the resulting command is by running the code in our heads. My guess is that it doesn't work because you're trying to specify a column-constraint using table-constraint syntax

[android-developers] Re: where to download android 1.5 r1 source code ?

2009-05-13 Thread Marco Nelissen
On Wed, May 13, 2009 at 7:51 PM, rain rain.h...@gmail.com wrote: I know I can find the source code from http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary but I'm not familiar with git, don't know how to download it from there. That's why detailed instructions are

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-12 Thread Marco Nelissen
get from using a File object instead of a FileDescriptor, such as file size. On May 11, 3:16 pm, Marco Nelissen marc...@android.com wrote: Does anyone else besides you need to be able to play back the recording? If not, try opening the file yourself and then passing its FileDescriptor

[android-developers] Re: Back button press programmatically

2009-05-12 Thread Marco Nelissen
Just call finish() in your activity? On Tue, May 12, 2009 at 6:35 AM, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, Are there api to support go to back Programmatically .. i.e same effect as the back button of the phone. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com

[android-developers] Re: MediaPlayer: Prepare failed.: status=0xFFFFFFFC

2009-05-11 Thread Marco Nelissen
On Sun, May 10, 2009 at 4:45 PM, Jonas Alves jona...@gmail.com wrote: Hi all... I'm having really trouble there. When I attempt to play a sound file I have just recorded using MediaRecorder, it fails when I call myMediaRecorder.prepare(). The LogCat gives me: Prepare failed.:

[android-developers] Re: Corrections in Docs

2009-05-11 Thread Marco Nelissen
On Mon, May 11, 2009 at 11:24 AM, jtaylor jatto@gmail.com wrote: Shouldn't there be a place outside of the Issues page, where one can report spelling errors that are in the docs and articles? File a bug for a little spelling error?? You could also submit a patch that fixes the error.

[android-developers] Re: SMS Counter

2009-05-11 Thread Marco Nelissen
On Mon, May 11, 2009 at 11:55 AM, stevenroose stevenro...@gmail.com wrote: Hi, I suggestion for Android I would like to do is a build-in SMS Counter. When having plans that allow you to do a specified amount of SMS messages in a month, an SMS Counter would be very useful, and I can't

[android-developers] Re: Corrections in Docs

2009-05-11 Thread Marco Nelissen
See http://source.android.com/submit-patches On Mon, May 11, 2009 at 12:39 PM, jtaylor jatto@gmail.com wrote: Hello Marco, How do I do that? - juan On May 11, 3:17 pm, Marco Nelissen marc...@android.com wrote: On Mon, May 11, 2009 at 11:24 AM, jtaylor jatto@gmail.com wrote

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-11 Thread Marco Nelissen
Does anyone else besides you need to be able to play back the recording? If not, try opening the file yourself and then passing its FileDescriptor to setDataSource(), instead of specifying the path. On Mon, May 11, 2009 at 1:39 PM, Scott Slaugh xsla...@gmail.com wrote: I'm just using the

[android-developers] Re: Send combination key events

2009-05-11 Thread Marco Nelissen
Use Instrumentation.sendKeySync() to send the key-down and key-up events yourself, e.g. search-down, e-down, e-up, search-up. This should be interpreted by the application in the same way as pressing search+e on the keyboard. On Mon, May 11, 2009 at 2:32 PM, Kai Hu leon.k...@gmail.com wrote:

[android-developers] Re: private media file clean up by media provider

2009-05-09 Thread Marco Nelissen
On Fri, May 8, 2009 at 11:00 PM, jagtap.jj jagtap...@gmail.com wrote: hello the media provider cleans the media files, if files didn't get read since last two month. Are you referring to the media provider deleting database files for an sd card when that sd card hasn't been inserted for 2

[android-developers] Re: mediaplayer listeners

2009-05-09 Thread Marco Nelissen
On Sat, May 9, 2009 at 10:08 AM, Josh joshdo...@gmail.com wrote: I have a media player that plays a sound. I want to call a function as soon as the sound is complete but i cant figure out how to do it. I think im just having a problem with the syntax i tried '''

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-09 Thread Marco Nelissen
else; ... Does anyone know how to solve the problem or know who could help in the Google company? Thanks, On May 7, 2:05 pm, Marco Nelissen marc...@android.com wrote: On Thu, May 7, 2009 at 8:36 AM, android app xiaog...@gmail.com wrote: I uploaded the new updates to the application

[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?

2009-05-09 Thread Marco Nelissen
When the phone is plugged in to your computer, open the USB notification (drag down the status bar, select USB connected), then choose mount. On Fri, May 8, 2009 at 10:30 PM, Mark Carter m...@carter.name wrote: Is it possible to access the filesystem of an sdcard image through something like

[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?

2009-05-09 Thread Marco Nelissen
I should add: while the sd card is mounted on your computer, it won't be accessible to the phone, so it's probably not really going to be more any more convenient than using adb push/pull. On Sat, May 9, 2009 at 3:57 PM, Marco Nelissen marc...@android.com wrote: When the phone is plugged

[android-developers] Re: Media Player sound state problems in G1

2009-05-08 Thread Marco Nelissen
On Fri, May 8, 2009 at 2:31 AM, Sudha sudhaker...@gmail.com wrote: By the way what are these states 1, 2, 128 etc. 1 is 'idle' 2 is 'initialized' 128 is 'playback complete' (see mediaplayer.h) So let's take another look at the error messages you were seeing: 1- E/MediaPlayer( 2173):

[android-developers] Re: Media Player sound state problems in G1

2009-05-08 Thread Marco Nelissen
On Thu, May 7, 2009 at 10:33 PM, Sudha sudhaker...@gmail.com wrote: I have nearly 28 sound files in which most of them have the duration less than a second (i.e in milliseconds), to reduce the delay in creating the player everytime, i created a player for each sound file i.e 28 MediaPlayers

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Marco Nelissen
They don't really 'linger' or 'survive'. What you called the 'task switcher' dialog is actually the 'recent tasks' dialog. It's different from the windows or mac task switcher that shows you currently running apps. On Fri, May 8, 2009 at 11:00 AM, jarkman jark...@gmail.com wrote: OK, thanks.

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Marco Nelissen
(). Does that sound right ? Thanks, Richard On May 8, 7:54 pm, Dianne Hackborn hack...@android.com wrote: Like Marco said, this is NOT running tasks, it is just the most recent tasks the user has started. If they select one of these items, either the current task will be brought

[android-developers] Re: clearing G1 system log?

2009-05-08 Thread Marco Nelissen
On Fri, May 8, 2009 at 4:00 PM, andrew andrewsach...@gmail.com wrote: Hi, How do I clear the log on a device? When I do adb logcat after hooking up my G1 via the USB cord I seem to be getting old logs and don't see the most recent errors that I am trying to diagnose at the end of the

[android-developers] Re: Media Player sound state problems in G1

2009-05-07 Thread Marco Nelissen
Based on the code you posted, the stop called in state 2 is because you call stop() in your OnCompletionListener, which isn't necessary (it's already stopped at that point). I don't see how the other problems could happen with the code you posted, unless you have multiple threads accidentally

[android-developers] Re: Invoking one apk from another

2009-05-07 Thread Marco Nelissen
What do you mean by invoking an apk? An APK file is essentially a zip file, normally used to package android applications, and contains the code and resources for any number of activities, services, broadcastreceivers, etcetera. Do you want to run an activity from that other apk? Run a service?

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-07 Thread Marco Nelissen
On Thu, May 7, 2009 at 8:36 AM, android app xiaog...@gmail.com wrote: I uploaded the new updates to the application in the market. There was no error message shown. It seemed that the uploading was successful. However, the version name and the app itself were still the old version. Please

[android-developers] Re: ALSA channels

2009-05-06 Thread Marco Nelissen
This group is for developing using the SDK. You might want to ask your question in the android-porting group instead. On Wed, May 6, 2009 at 6:31 AM, l hx lihongxia8...@gmail.com wrote: when i use the code below. status_t ALSAStreamOps::channelCount(int channels) { int err; if

[android-developers] Re: MP3 to PCM 16 Bit

2009-05-06 Thread Marco Nelissen
On Wed, May 6, 2009 at 10:19 AM, Vimae mi...@vimae.com wrote: With the new 1.5 now finally being released, I'm trying to give my app a second go. I currently have a service where you can stream your music library from the web. However, each stream has to be authenticated with a cookie or

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Marco Nelissen
When your application is paused, which activity is in the foreground? On Tue, May 5, 2009 at 5:51 AM, Taísa Cristina taisa.san...@gmail.comwrote: My application behavior is similar to voice call, but I need also to handle key events. My application is still running in background and the

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-05 Thread Marco Nelissen
better off placing your startup image in a dedicated activity. On May 5, 12:34 am, Marco Nelissen marc...@android.com wrote: Why not set your content view to be an ImageView with the desired image, and then once you're ready to show the real UI, call setContentView() again

[android-developers] Re: Launch Activity

2009-05-05 Thread Marco Nelissen
http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent) On Tue, May 5, 2009 at 8:00 AM, danielececil...@gmail.com danielececil...@gmail.com wrote: Hi, I try to launch an Activity created with : public class MyActivity extends Activity

[android-developers] Re: Possible to change BroadcastReceiver priority from within Activity

2009-05-05 Thread Marco Nelissen
I don't know if you can change the priority, but you could just have your receiver do nothing when you don't want to handle the button. On Tue, May 5, 2009 at 8:22 AM, Filipe Abrantes filipe.abran...@gmail.comwrote: Hi all, I have developed a music player and the application defines a

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Marco Nelissen
On Tue, May 5, 2009 at 10:14 AM, Taísa Cristina taisa.san...@gmail.comwrote: In fact I do need to handle key strokes. Then you need a foreground activity. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-05 Thread Marco Nelissen
If you want to reliably do something in the background, you need to use a service. Having a static reference to some object is not enough. On Mon, May 4, 2009 at 3:16 PM, ogi.andr...@gmail.com ogi.andr...@gmail.com wrote: I've successfully played shoutcast mp3 streams while the application

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-05 Thread Marco Nelissen
service was stopped because your activity went away and you used bindService() instead of startService(). On Tue, May 5, 2009 at 1:40 PM, Marco Nelissen marc...@android.com wrote: If you want to reliably do something in the background, you need to use a service. Having a static reference to some

[android-developers] Re: Blocking UIThread till the .mp3 file completed in the b/g

2009-05-04 Thread Marco Nelissen
You should never block the UI thread, otherwise you'll get the application not responding dialog. If you want to know when playback completes, just set an OnCompletionListener. On Mon, May 4, 2009 at 6:17 AM, Asif k asifk1...@gmail.com wrote: Hi all, Is there anyway to block the UI Thread

[android-developers] Re: 1.5 bugs reports

2009-05-04 Thread Marco Nelissen
On Fri, May 1, 2009 at 4:47 PM, heasus hea...@gmail.com wrote: Is this the right place to report bugs? No, the right place to report bugs is at http://b.android.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to query the number of rows in a table

2009-05-04 Thread Marco Nelissen
select count(*) from table See also http://sqlite.org/lang.html On Mon, May 4, 2009 at 9:51 AM, Lucius Fox lucius.fo...@gmail.com wrote: Hi, Can you please tell me how to query the number of rows in a table in Android? Assume I have the name of the table in string. Thank you.

[android-developers] Re: sdcard on emulator mounted read only !!

2009-05-04 Thread Marco Nelissen
On Mon, May 4, 2009 at 11:08 AM, Dan Raaka danra...@gmail.com wrote: Using android-1.5 tagged source from cupcake branch created an sdcard image $ ./out/host/linux-x86/bin/mksdcard 64M sdcard.img launched the emulator to use the above image $ emulator -sdcard ./sdcard.img -scale 0.75 $

[android-developers] Re: sdcard on emulator mounted read only !!

2009-05-04 Thread Marco Nelissen
listening on port 5554, ADB on port emulator: sent '0012host:emulator:' to ADB server On Mon, May 4, 2009 at 11:31 AM, Marco Nelissen marc...@android.comwrote: On Mon, May 4, 2009 at 11:08 AM, Dan Raaka danra...@gmail.com wrote: Using android-1.5 tagged source from cupcake branch

[android-developers] Re: sdcard on emulator mounted read only !!

2009-05-04 Thread Marco Nelissen
), adj 15, size 4149, to kill 4send sigkill to 1301 (app_process), adj 15, size 4149 On Mon, May 4, 2009 at 11:53 AM, Marco Nelissen marc...@android.com wrote: Look in the system log or dmesg. On Mon, May 4, 2009 at 11:39 AM, dan raaka danra...@gmail.com wrote: Well the verbose

[android-developers] Re: Handling key events in a paused Activity

2009-05-04 Thread Marco Nelissen
On Mon, May 4, 2009 at 1:02 PM, Taísa Cristina taisa.san...@gmail.comwrote: Hi all, I have the following scenario: - a main task and a secondary task - the secondary task has only one Activity - when that Activity is paused (e.g. Home key pressed), a notification is inserted to the

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread Marco Nelissen
Why not set your content view to be an ImageView with the desired image, and then once you're ready to show the real UI, call setContentView() again with the real UI? On Mon, May 4, 2009 at 2:22 PM, GiladH gila...@gmail.com wrote: Tnx but that is not what I'm looking for. I basically want

[android-developers] Re: How to query the number of rows in a table

2009-05-04 Thread Marco Nelissen
On Mon, May 4, 2009 at 1:17 PM, Lucius Fox lucius.fo...@gmail.com wrote: On Mon, May 4, 2009 at 9:58 AM, Marco Nelissen marc...@android.com wrote: select count(*) from table See also http://sqlite.org/lang.html Thank you. Here is what i try: public void getRow(SQLiteDatabase db

[android-developers] Re: sdcard on emulator mounted read only !!

2009-05-04 Thread Marco Nelissen
/]% === On May 5, 12:42 am, swarup me.s...@gmail.com wrote: yes Marco, you are write, even for RO sdcard.img files, it should be visible for 'mount' command. recreation of the sdcard.img might help in resolving the issue. On May 5, 12:21 am, Marco Nelissen marc...@android.com wrote

[android-developers] Re: Regarding APN settings for 3G network.

2009-05-03 Thread Marco Nelissen
Did you try the suggested settings at the end of this thread: http://groups.google.com/group/android-developers/browse_thread/thread/3bdd893d6b921e0c/64ec8e0cade265ee On Sun, May 3, 2009 at 4:30 AM, sush susama.choudh...@gmail.com wrote: Hi Marco, The carrier netwok was our own testin 3g

[android-developers] Re: AudioFlinger - many write blocked for log WARN messages

2009-05-03 Thread Marco Nelissen
If this is in the emulator, I would just ignore them. On Thu, Apr 30, 2009 at 9:20 PM, Mark Carter m...@carter.name wrote: I'm using the MediaPlayer to play audio (mp3) files. I don't think I'm doing anything out of the ordinary, but, during playback, I get many (several per second) log

[android-developers] Re: Regarding APN settings for 3G network.

2009-05-02 Thread Marco Nelissen
For what carrier/network is your 3G sim, and is there a data plan associated with the sim? On Sat, May 2, 2009 at 12:22 PM, sush susama.choudh...@gmail.com wrote: Hi, I was trying audio/video streaming in android G1 from from rtsp server through a 3G n/w. In order to do that I tried using a

[android-developers] Re: undocumented for recording audio

2009-05-01 Thread Marco Nelissen
On Fri, May 1, 2009 at 6:20 AM, jj jagtap...@gmail.com wrote: some where I read it. the undocumented intent for recording audio Intent intent = new Intent(MediaStoreAudio.Media.RECORD_SOUND_SCTION); is this true, I tested but it is not working. Well, what you typed above won't compile.

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Wed, Apr 29, 2009 at 11:18 PM, westmeadboy mjc1...@googlemail.comwrote: Do you know why the State is not exposed? If there is no good reason, then what are the steps to request that it is exposed in some future SDK release? One reason not to rely on these, and not to expose them

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 8:55 AM, westmeadboy mjc1...@googlemail.com wrote: OK, so you said one reason the State is not exposed is because you don't want client code relying on these States because they are inherently transient. However, the alternative is for the client code to keep track

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 9:33 AM, Tom Gibara m...@tomgibara.com wrote: I have to agree with this. The MediaPlayer API is extremely hard work for precisely the reason that it expects client-code to maintain state that it can't reasonably be expected to know. At the crux of the problem is the

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 9:46 AM, westmeadboy mjc1...@googlemail.com wrote: On Apr 30, 9:29 pm, Marco Nelissen marc...@android.com wrote: No, the fact that a getState() method would be unreliable is reason enough not to have one. Its no less reliable then any other call to any non

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 10:06 AM, westmeadboy mjc1...@googlemail.comwrote: On Apr 30, 9:48 pm, Marco Nelissen marc...@android.com wrote: The problem with that is that the media engine doesn't run in your main thread. It runs in multiple other threads, in a different process. Synchronizing

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 10:50 AM, Tom Gibara m...@tomgibara.com wrote: That's only a cosmetic change though. Instead of calling, say, prepare() and it throwing an exception, you now have it return some token that tells you whether or not it succeeded. That's only a cosmetic change if you

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 3:42 PM, Rob Franz rob.fr...@gmail.com wrote: I was going to let this thread die but I saw this and had to add on to it because I think it reinforces the need for better filtering options in the Market. I posted this originally because I came across one particular

[android-developers] Re: text alignment in edit text

2009-04-29 Thread Marco Schmitz
I think it isn't possible. Maybe u use 2 widgets instead... Greetings, DaRolla 2009/4/29 r3 rakesh.gar...@gmail.com: Hi, Can anybody teell me how to set half  text left aligned and other half right aligned in the edit text thanks, rakesh

[android-developers] Re: MediaPlayer State

2009-04-29 Thread Marco Nelissen
with the real internal state. Is there any reason not to expose the underlying state? On Apr 29, 8:29 am, Marco Nelissen marc...@android.com wrote: You can't get that state directly, but you can infer what state the MediaPlayer is in by whether or not you have successfully called the methods you

[android-developers] Re: has leaked service connection in activity that was originally bound here

2009-04-29 Thread Marco Nelissen
You should unbind() when you're done. On Wed, Apr 29, 2009 at 1:25 AM, mawei1981 mawei...@gmail.com wrote: when I bind service when activity on create: 04-29 16:20:27.797: ERROR/ActivityThread(11629): Activity com.maweis.ToggleSilentActivity has leaked ServiceConnection

[android-developers] Re: MediaPlayer State

2009-04-29 Thread Marco Nelissen
On Wed, Apr 29, 2009 at 8:22 AM, westmeadboy mjc1...@googlemail.com wrote: The documentation lists 10 different states and while I could probably reduce the number relevant to me to about 4 or 5, that doesn't help enough. One example of where this is important is knowing whether the player

[android-developers] Re: java.lang.StackOverflowError when deserializing

2009-04-28 Thread Marco Schmitz
dear fadden, thanks a lot for Thread(ThreadGroup group, Runnable target, String name, long stackSize). this works perfectly :) greetings, darolla 2009/4/22 fadden fad...@android.com: On Apr 21, 2:17 am, DaRolla netzprofi.ma...@googlemail.com wrote: In order to work with a server object

[android-developers] Re: Playing sound from memory

2009-04-28 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 5:50 PM, rookie1_1998 eric.yongjun.c...@gmail.comwrote: I need a way to play a short sound clip repeatedly very fast, with precise timing for musical purpose. I looked around, and it seems like MediaPlayer and SoundPool don't guarantee lag-free playing. Is there

[android-developers] Re: Hiding media files from Music Player

2009-04-28 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 11:32 PM, nEx.Software justin.shapc...@gmail.comwrote: A quick look shows at the source indicates the MediaScanner omits files that begin like ._ or are like Folder.jpg, AlbumArtSmall.jpg, AlbumArt_{...}_Large.jpg or AlbumArt_{...} _Small.jpg. But it all seems to be

[android-developers] Re: Hiding media files from Music Player

2009-04-28 Thread Marco Nelissen
, and hopefully MediaPlayer and SoundPool don't choke. I just have quite a few files and would hate to have to check them and rename them from within the app or have the users re-download the new data. Suggestions welcomed. ~clark On Apr 27, 4:51 pm, Marco Nelissen marc...@android.com wrote

[android-developers] Re: MediaPlayer State

2009-04-28 Thread Marco Nelissen
What do you mean by that? If you want to know if it's playing, call MediaPlayer.isPlaying(). If you want to know how far along it is, call MediaPlayer.getCurrentPosition(). Are those kinds of things you're looking for, or something else? On Tue, Apr 28, 2009 at 11:06 AM, westmeadboy

[android-developers] Re: Observer for Adaper

2009-04-28 Thread Marco Nelissen
That's not what a datasetobserver does, and I suspect that trying to figure out when there's a pause between invocations of getView() is not going to work quite right either. What are you trying to achieve? 2009/4/28 yarik...@gmail.com yarik...@gmail.com Anybody? On 28 апр, 00:26,

[android-developers] Re: MediaPlayer State

2009-04-28 Thread Marco Nelissen
whether I can call prepare without getting an exception. prepare() can only be called in certain Valid states. On Apr 29, 12:00 am, Marco Nelissen marc...@android.com wrote: What do you mean by that? If you want to know if it's playing, call MediaPlayer.isPlaying(). If you want to know how

[android-developers] Re: How can I programatically launch Browser in my android application

2009-04-27 Thread Marco Schmitz
its done using intent: new Intent(android.intent.action.VIEW, new ContentURI(http://www.google.com;)); I googled 10 sec and found this: http://www.ciol.com/developer/languages/tutorial/android-its-anatomy-and-features/20308104622/0/ greetings, darolla 2009/4/23 nathan.charles.sum...@gmail.com

[android-developers] Re: Hiding media files from Music Player

2009-04-27 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 4:36 PM, clark clarkd...@gmail.com wrote: I'm torn between which group to post this too, but since it is for an application I am working on, I guess I'll stick it here. So here we go. I have an application which downloads data onto the sdcard to be used by the

[android-developers] Re: Why corsor need to call setNotificationUri when query from content provider?

2009-04-27 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 6:35 PM, 黃冠宇 orz0...@gmail.com wrote: Hi,I don't got what you mean. @Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sort) { SQLiteQueryBuilder qb = new SQLiteQueryBuilder();

[android-developers] Re: changing language on demand?

2009-04-23 Thread Marco Schmitz
hi, thanks for this. I've found the same sourcecode here: http://almondmendoza.com/2009/01/28/force-localize-an-application-on-android/ :) All I had to add was this: this.setContentView(R.layout.main); This way my layout is updated with the right language. Thought there might be an update

[android-developers] Re: MediaPlayer sound problem

2009-04-23 Thread Marco Nelissen
Does it work with longer sounds? Have you tried using MediaPlayer.setLooping(true) instead of restarting it yourself from the OnCompletionListener callback? On Thu, Apr 23, 2009 at 12:00 AM, BlackLight blacklight1...@gmail.comwrote: Hello. I have this task: Need to play short (0.3-0.4 sec)

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Marco Nelissen
AudioTrack plays PCM data. The reason it sounds like noise is because that's what mpeg sounds like when interpreted as PCM. On Thu, Apr 23, 2009 at 3:44 PM, Moto medicalsou...@gmail.com wrote: Ok at this point I only get white noise? do I need to set the decoder? it's an MPEG stream

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Marco Nelissen
Use the MediaPlayer class. On Thu, Apr 23, 2009 at 6:35 PM, Moto medicalsou...@gmail.com wrote: lol yeah definitely true! But for some reason I thought it would be decoded into a playable format... How do we play AAC+ formats and MPEG formats?

[android-developers] Re: Why corsor need to call setNotificationUri when query from content provider?

2009-04-22 Thread Marco Nelissen
On Wed, Apr 22, 2009 at 2:48 AM, aby orz0...@gmail.com wrote: In the sample code of android developer http://developer.android.com/reference/android/content/ContentProvider.html When query the content provider, the cursor in query () call

[android-developers] Re: Doesn't Android-1.0 support Recording Video well?

2009-04-21 Thread Marco Nelissen
1.0 doesn't support video recording at all. On Tue, Apr 21, 2009 at 2:56 AM, david 1 david...@gmail.com wrote: hi all, I just experienced the video recording on G1 based on the system.img of android1.0. The process just lasts about 3 seconds, then blocks. And the generated file is empty.

[android-developers] Re: Encrypting application data file that is bundled with apk !

2009-04-21 Thread Marco Nelissen
On Tue, Apr 21, 2009 at 12:04 PM, Slater easwar.satras...@gmail.com wrote: Hi, I plan to bundle an xml data file that has all the metadata required by the application. When my app loads for the first time, the xml data file is read and local database is created and populated. This

[android-developers] Re: Elan sues Apple for multitouch patent infringment... and guess what....

2009-04-21 Thread Marco Nelissen
On Tue, Apr 21, 2009 at 12:19 PM, Stoyan Damov stoyan.da...@gmail.comwrote: On Wed, Apr 15, 2009 at 5:11 PM, Jean-Baptiste Queru j...@android.com wrote: Second, more importantly, many people who read and participate in this group and other official Android discussion groups work for

[android-developers] Re: Elan sues Apple for multitouch patent infringment... and guess what....

2009-04-21 Thread Marco Nelissen
On Tue, Apr 21, 2009 at 12:43 PM, Stoyan Damov stoyan.da...@gmail.comwrote: On Tue, Apr 21, 2009 at 10:27 PM, Marco Nelissen marc...@android.com wrote: On Tue, Apr 21, 2009 at 12:19 PM, Stoyan Damov stoyan.da...@gmail.com wrote: On Wed, Apr 15, 2009 at 5:11 PM, Jean-Baptiste Queru j

[android-developers] Re: Getting the ID of a ListView row item from a button click

2009-04-21 Thread Marco Nelissen
Why are you wrapping each checkbox in its own linearlayout? On Tue, Apr 7, 2009 at 10:35 AM, e-satis info.ksam...@googlemail.comwrote: Hello, Each row of my view look like that : LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/row_layout

[android-developers] Re: uninstall vs. upgrade

2009-04-21 Thread Marco Nelissen
Which is really a bug in the application. If an application updates its database schema, it should include code to migrate old versions of the database to the new schema. On Tue, Apr 21, 2009 at 5:26 PM, Dan Pou daniel@gmail.com wrote: As a side note, the SQLite db seems to be a frequent

[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Marco Nelissen
You shouldn't be sending AT commands, as they would very likely interfere with AT commands sent by the system itself, possibly leaving the radio in an inconsistent state. Also, this list is about developing using the SDK, which by definition excludes all the internal APIs. On Mon, Apr 20, 2009

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Marco Nelissen
On Mon, Apr 20, 2009 at 12:15 PM, Mohamed Amir mohamed.a...@gmail.comwrote: OK Mark. I am trying to make an application that show the caller-ID when there is an incoming call. And where there is another call, I wanna update the caller-ID shown. I have tried OnNewIntent but this callback

[android-developers] Re: Grayscaling

2009-04-20 Thread Marco Nelissen
You can do this more efficiently by using a Paint and a ColorFilter. On Mon, Apr 20, 2009 at 3:59 PM, sm12 mata...@gmail.com wrote: Solved. The problem was in the parameters of Color.rgb. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Problems deleting an audio file using a media content uri

2009-04-19 Thread Marco Nelissen
This is a problem with the media provider: it will delete the entry from the database, but won't delete the underlying file. For now, you'll have to do that yourself. On Sat, Apr 18, 2009 at 11:01 AM, estivenrpo estiven...@gmail.com wrote: Hi guys I have a Uri like

[android-developers] Re: Problems deleting an audio file using a media content uri

2009-04-19 Thread Marco Nelissen
/media/ 149 and i don't know how to create a file object with that. I have tried: File fileToDelete = new File(new URI(content://media/external/audio/ media/149)); fileToDelete.delete(); but it doesn't work. Thanks in advance, On 19 abr, 10:19, Marco Nelissen marc...@android.com wrote

[android-developers] Re: Check if a View contains another View

2009-04-18 Thread Marco Nelissen
View.findViewById() ? On Sat, Apr 18, 2009 at 2:52 PM, xspotlivin dmbrown2...@gmail.com wrote: Is there a way to check if a view contains another certain view? I have an AbsoluteLayout view that I add multiple views to (buttons). I have a certain button, let's call it reportButton, and I

[android-developers] Re: reuse IDs?

2009-04-17 Thread Marco Nelissen
yes On Fri, Apr 17, 2009 at 7:22 AM, Derek xianguan...@gmail.com wrote: Because there is no hierarchy in R.id, I presume an ID can be used in many layout.xml files. Am I correct? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Dropping SQLite database

2009-04-17 Thread Marco Nelissen
It looks like you are confusing records, tables and databases. Can you post some more code, like how you create the database, how you create the table in the database, and how you store and retrieve records in the table? On Fri, Apr 17, 2009 at 5:27 AM, Zhubham sahilz...@gmail.com wrote: Hi,

[android-developers] Re: How to dump the content of sqlite via adb shell command

2009-04-16 Thread Marco Nelissen
On Thu, Apr 16, 2009 at 6:08 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, I am trying to dump the content of sqlite via adb shell command. Here is what i did: $ adb shell * daemon not running. starting it now * * daemon started successfully * # sqlite3 SQLite version

[android-developers] Re: multiple successive queries to a database

2009-04-15 Thread Marco Nelissen
What's the error message in the system log? On Tue, Apr 14, 2009 at 10:38 PM, iki qui.af...@gmail.com wrote: The application has stopped unexpectedly. Please try again. One query always works. Two consecutive queries works about 75% of the time. Three consecutive queries works about a

[android-developers] Re: sendBroadcast() is crashing

2009-04-15 Thread Marco Nelissen
What does it say in the system log? On Wed, Apr 15, 2009 at 11:11 AM, Yogi yogesh.agrawal2...@gmail.com wrote: Hi All, I am try to post message with the help of sendBroadcast() API. But its carshing. Please find the piece of code as below:                  public static final String

[android-developers] Re: calling servlet from application

2009-04-14 Thread Marco Schmitz
and how do I use authentication (simple http login /pw) and how https / ssl (with my own licence)? using httpclient its quite simple... do I need to set some htttp headers on my own? greetings, darolla 2009/4/14 Opal maciek.op...@gmail.com: Gr8, thanks for the clues :) On 9 Kwi, 01:03,

[android-developers] Re: using touch screen to draw a straight line

2009-04-14 Thread Marco Nelissen
On Mon, Apr 13, 2009 at 5:12 PM, gandor gand...@gmail.com wrote: Hi Folks, Want to draw a line when I touch screen at two points. I can see OnTouch been invoked but after than everything breaks looks, the application crashes I am using drawLine in Canvas. Please let me know what I am

[android-developers] Re: One line causing lots of garbage collection. String.format with float. Help?

2009-04-14 Thread Marco Nelissen
(0);                        price = mFormatter.format(%.2f, args).toString();                        ((TextView)view).setText(price);                        return true;                }                return false;        } } END CODE On Apr 13, 10:40 pm, Marco Nelissen marc

[android-developers] Re: How to use headset button to pick up/hang up a call?

2009-04-14 Thread Marco Nelissen
The headset button already answers an incoming call, but once you're in the call, it mutes/unmutes. If you want it to hang up the call instead, you'll need to modify the Phone application. On Tue, Apr 14, 2009 at 2:44 AM, sein fang.sh...@zte.com.cn wrote: When I'm testing the functionality of

<    1   2   3   4   5   6   7   8   9   >