[android-developers] Re: Android 2.0

2009-10-27 Thread Marco Nelissen
On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote: Yeah it would but given it's their job to support the community and the community is demanding more maybe they should start to look at their practices. It's not my job to support the community, but since I'm obviously

[android-developers] Re: Mediaplayer error PVMFErrCorrupt

2009-10-26 Thread Marco Nelissen
On Mon, Oct 26, 2009 at 3:15 AM, OnlineRadioSDK aor.leada...@gmail.com wrote: Hi, we have developed android mmsradio channel player. It works on android sdk1.5r2  ( Emulator / device ) well. but when we recompiled the same to Sdk1.6r1. It fails. Does it work if you use the 1.5 binary on a

[android-developers] Re: modifying init.rc file

2009-10-26 Thread Marco Nelissen
Questions about modifying the system are best asked in the android platform group. On Mon, Oct 26, 2009 at 2:51 AM, RohitAil rohit@gmail.com wrote: Hello All, I modified the init.rc file to import a new configuration file by adding the following lines in the init.rc file import

[android-developers] Re: Android 2.0

2009-10-26 Thread Marco Nelissen
On Mon, Oct 26, 2009 at 4:29 PM, Frank arro...@gmail.com wrote: Why is the SDK for all android releases always so late on arrival? Developers usually have barely 1-2 weeks to prepare before the release is dropped into consumer's hands.  With Android 2.0 coming out soon on the Droid, set to

[android-developers] Re: Handler behaving strangely after orientation change

2009-10-25 Thread Marco Nelissen
Your activity and all its views get recreated during the orientation switch. Your handler is still trying to modify the old activity and view. It also sounds like you're creating a new handler without stopping the old one first, hence you end up with two of them running, and therefore you get

[android-developers] Re: [Help] - Play video in Android Media Player from given URL

2009-10-25 Thread Marco Nelissen
On Sat, Oct 24, 2009 at 12:25 PM, skcratch skcra...@gmail.com wrote: Hi there! Can anyone please tell me if Android Media Player is able to play a video that is placed in a remote server, in a supported format? If by Android Media Player you mean the MediaPlayer class, then obviously, yes.

[android-developers] Re: Why a single String.format reduce the FPS from 35 to 25 ?

2009-10-25 Thread Marco Nelissen
You don't want to use String.format() if performance is an issue. String.format() internally creates a new Formatter every time, which in turn pulls in all kinds of localization stuff. Instead, create a Formatter yourself (once), and then reuse it for all your string formatting needs. On Sun,

[android-developers] Re: Any word on a dev phone for motorola droid?

2009-10-24 Thread Marco Nelissen
On Sat, Oct 24, 2009 at 5:24 PM, sherifffruitfly sherifffruit...@gmail.com wrote: Uh... I didn't *assume* anything. I asked. There's a new android phone coming out with a new android os. I thought it therefore made sense to wonder if there was a dev version of it to be made available,

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-21 Thread Marco Nelissen
I meant: implement your own http server to run on the phone. This server would also be a shoutcast client, and connect to the remote shoutcast server. It would process the data, and then pass it to its own clients as if it were serving up regular mp3 files. Your MediaPlayer would then connect to

[android-developers] Re: Google wave invitations...?

2009-10-20 Thread Marco Nelissen
This thread has now seen almost a hundred people saying me too!. Seriously people, what part of I have 16 invitations did you not understand? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: MediaPlayer.Create returns null on some Android handsets?

2009-10-20 Thread Marco Nelissen
There seems to be a problem with some Hero builds (but not all of them) that causes playback from resources to not work quite right. On Tue, Oct 20, 2009 at 12:29 PM, Chister Nordvik cnord...@gmail.com wrote: Hi! I have a background service that plays a sound when an event has happened

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Marco Nelissen
On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream:        MediaPlayer mp = new MediaPlayer();        try {                mp.setDataSource(http://xxx.net/my.mp3;);                mp.prepare();        }        

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Marco Nelissen
can stream progressively?  If yes than can we also stream AAC+ content? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream:        MediaPlayer mp = new

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Marco Nelissen
for the info. By level 3, I meant API Level 3. If android doesn't support it natively in 1.5, does anyone know if there is code available to do it? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do

[android-developers] Re: the if_nameindex is missing

2009-10-20 Thread Marco Nelissen
Since you're asking about native code development, you might want to ask your question on the Android NDK group. On Tue, Oct 20, 2009 at 12:01 PM, Debbie debbi...@gmail.com wrote: Hi, I'm porting a linux (FC9) user space application to Android. The original code uses if_nameindex() which

[android-developers] Re: Google wave invitations...?

2009-10-19 Thread Marco Nelissen
The original message spoke of 16 invitations (nominations, really), and we're now at 66 me too's. I think you can all stop now. On Mon, Oct 19, 2009 at 2:34 AM, iñaki inaki.s...@gmail.com wrote: Please me too Regards 2009/10/19 erick nicolas ericknico...@gmail.com Please me too thnkx

[android-developers] Re: DB Cursor not working

2009-10-19 Thread Marco Nelissen
a bug in Cursor.move(). Try using moveToFirst() or moveToNext() instead. On Oct 18, 8:07 pm, Marco Nelissen marc...@android.com wrote: On Sun, Oct 18, 2009 at 7:50 AM, Yayo eduy...@gmail.com wrote: Hi all, I've got this piece of code where I count words in a dictionary and then I try

[android-developers] Re: Linux version

2009-10-19 Thread Marco Nelissen
The linux sdk downloadable from here has a tgz extension: http://developer.android.com/sdk/1.6_r1/index.html On Sun, Oct 18, 2009 at 7:32 PM, a.muel...@urbian.org a.muel...@urbian.org wrote: If one downloads the Linux SDK (1.6) the extension of it is .zip but in fact it uses the .tgz format.

[android-developers] Re: Error: MediaPlayer start called in state 64

2009-10-19 Thread Marco Nelissen
On Mon, Oct 19, 2009 at 12:05 PM, Mike internet...@hotmail.com wrote: Hello, calling MediaPlayer.onStart() from Activity.onResume() (after the Activity has been paused) causes the following messages in logcat: MediaPlayer start called in state 64 MediaPlayer error (-38, 0) MediaPlayer

[android-developers] Re: Possible to calculate yaw,pitch,roll from x,y,z magnetic field values alone?

2009-10-18 Thread Marco Nelissen
I think you'd have to at least also take your location in to account. On Mon, Oct 12, 2009 at 2:25 AM, DD daviddiaofri...@gmail.com wrote: Hi, is it possible to calculate yaw,pitch,roll solely from x,y,z magnetic field values obtained from the magnetometer, for example, according to

[android-developers] Re: DB Cursor not working

2009-10-18 Thread Marco Nelissen
On Sun, Oct 18, 2009 at 7:50 AM, Yayo eduy...@gmail.com wrote: Hi all, I've got this piece of code where I count words in a dictionary and then I try to query them:                String params[] = { Integer.toString(minlength),                                Integer.toString(maxlength)

[android-developers] Re: Logging in Android

2009-10-17 Thread Marco Nelissen
On Sat, Oct 17, 2009 at 7:03 AM, Christine christine.kar...@gmail.com wrote: On Oct 16, 12:51 am, jotobjects jotobje...@gmail.com wrote: This is still a little unclear to me.  AFAIK this is a recommendation to strip out debug logging - logging is not automatically stripped? Read a message

[android-developers] Re: Interrupted audio playback.

2009-10-15 Thread Marco Nelissen
That will have no effect whatsoever, since media playback already happens in a separate thread (several, actually), which is owned by the system and runs at elevated priority. The priority of the thread that calls in to MediaPlayer has no influence on this at all. On Thu, Oct 15, 2009 at 7:02

[android-developers] Re: Android Lock-down

2009-10-15 Thread Marco Nelissen
On Wed, Oct 14, 2009 at 8:27 PM, MT Tang munthy...@hotmail.com wrote: I have a question on Android's capabilities and if the envisioned functionality is possible using Android platform. My colleague and I are tasked to develop an application in Android which requires a phone lock-down.

[android-developers] Re: SAR(Specific Absorption Rate) values of Android phones on the market

2009-10-15 Thread Marco Nelissen
This question has nothing to do with android development. I suggest you do a Google search for sar values. On Thu, Oct 15, 2009 at 9:02 AM, dave dayong...@gmail.com wrote: Hello everyone, I would appreciate if someone here in the group point me to the source of the SAR values of the

[android-developers] Re: occasionally SIGBUS crash in JNI

2009-10-14 Thread Marco Nelissen
You're probably passing a NULL pointer to your native code, which is rarely a good idea. On Wed, Oct 14, 2009 at 2:37 AM, allstars allstars@gmail.com wrote: and sometimes i met SIGBUS from other lib below is the log Build fingerprint: 'generic/generic/generic/:1.6/Donut/eng.allstars.

[android-developers] Re: Audio Stream from currently playing song

2009-10-14 Thread Marco Nelissen
No On Tue, Oct 13, 2009 at 7:20 PM, joelt j...@harpsoft.com wrote: I can capture an audio stream from the mic, but can I capture the currently playing audio stream? Thanks, Joel --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Can't use commands in command prompt.

2009-10-14 Thread Marco Nelissen
and ANDROID_SWT is pointing to that folder. what now? On 14 Okt, 00:20, Marco Nelissen marc...@android.com wrote: Well, given the error message you mentioned in your original post, the folder where java.exe is located would be good to have in your path. On Tue, Oct 13, 2009 at 3:15 PM, Carl

[android-developers] Re: Max app size

2009-10-14 Thread Marco Nelissen
That doesn't make sense. The ratio follows from how the system installs apps, so it would be silly to allow apps to override it. On Tue, Oct 13, 2009 at 10:21 PM, westmeadboy westmead...@yahoo.co.uk wrote: It would be nice if the Manifest could specify the ratio (default would be 4). On

[android-developers] Re: play video backward

2009-10-13 Thread Marco Nelissen
Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 12, 8:25 am, Marco Nelissen marc...@android.com wrote: On Mon, Oct

[android-developers] Re: Can't use commands in command prompt.

2009-10-13 Thread Marco Nelissen
Sounds like you didn't install a JDK, or it's not in your path. On Tue, Oct 13, 2009 at 12:49 PM, Carl cm.sandens...@gmail.com wrote: Hi, When i'm in the directory tools and try to use android create avd... i get an error like ' java is not recognizable as an internal or external

[android-developers] Re: My application has died when I started to use Browser

2009-10-13 Thread Marco Nelissen
On Tue, Oct 13, 2009 at 4:05 AM, newra...@gmail.com newra...@gmail.com wrote: My application is background application.It uses WIFI lock and INTERNET permission. It is doing some socket communication with a Remote Host PC and as well as with a local android application. It will start based

[android-developers] Re: Can't use commands in command prompt.

2009-10-13 Thread Marco Nelissen
I don't think it matters as long as the relevant parts of the SDK are in your path. On Tue, Oct 13, 2009 at 1:48 PM, Carl cm.sandens...@gmail.com wrote: I have a JDK installed on C: but put the SDK on D:. Does it matter? On 13 Okt, 22:24, Marco Nelissen marc...@android.com wrote: Sounds

[android-developers] Re: Can't use commands in command prompt.

2009-10-13 Thread Marco Nelissen
Sorry, I meant 'JDK'. On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen marc...@android.com wrote: I don't think it matters as long as the relevant parts of the SDK are in your path. On Tue, Oct 13, 2009 at 1:48 PM, Carl cm.sandens...@gmail.com wrote: I have a JDK installed on C: but put

[android-developers] Re: Can't use commands in command prompt.

2009-10-13 Thread Marco Nelissen
if they are there. Thanks. On 14 Okt, 00:12, Marco Nelissen marc...@android.com wrote: Sorry, I meant 'JDK'. On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen marc...@android.com wrote: I don't think it matters as long as the relevant parts of the SDK are in your path. On Tue, Oct 13, 2009

[android-developers] Re: resource with name from numbers

2009-10-13 Thread Marco Nelissen
Start your filenames with a letter. On Tue, Oct 13, 2009 at 10:49 AM, Wouter wouterg...@gmail.com wrote: Hey, I had imported several .png files with names like 1.png, 2.png untill 59.png in my Android Project.. But it gives this error: Description     Resource        Path    Location    

[android-developers] Re: rename column sqlite database

2009-10-12 Thread Marco Nelissen
On Mon, Oct 12, 2009 at 8:12 AM, Wouter wouterg...@gmail.com wrote: Hey, I have a database that I download external and save on my sdcard. But this database is also used for an iPhone app and has a column id and not _id (sqlite uses _id). How can i rename this column to _id? So this is

[android-developers] Re: play video backward

2009-10-12 Thread Marco Nelissen
On Mon, Oct 12, 2009 at 3:34 AM, RS rajeshs...@gmail.com wrote: How to play video in a time reversed direction? You can't. The requirement is to loop playing forward and backward repeatedly. Thanks a lot! R.S ps: The video is shot on the same android device (g1/adp1)

[android-developers] Re: Notification sound loop

2009-10-12 Thread Marco Nelissen
Pick another sound, one that doesn't loop. On Mon, Oct 12, 2009 at 3:03 AM, Neil neilb...@gmail.com wrote: I am setting Notification.sound to the URI of a ringtone and it plays the ringtone.  The problem is that the sound loops forever which I understand is the correct behaviour.  However

[android-developers] Re: rename column sqlite database

2009-10-12 Thread Marco Nelissen
but id (for iPhone? ) Ok i will try your sample code! Thanks, Wouter On 12 okt, 17:23, Marco Nelissen marc...@android.com wrote: On Mon, Oct 12, 2009 at 8:12 AM, Wouter wouterg...@gmail.com wrote: Hey, I have a database that I download external and save on my sdcard. But this database

[android-developers] Re: The application android has stopped unexpectedly

2009-10-12 Thread Marco Nelissen
Instead of the console, look at the system log (either using adb logcat or with the ddms perspective in eclipse), and it will tell you exactly where and why it crashed. On Mon, Oct 12, 2009 at 5:33 AM, Sunny atulpmaha...@gmail.com wrote: Hi , I am testing basic AndroidPhoneDialer application

[android-developers] Re: How to build android source code and SDK correctly by cygwin?

2009-10-12 Thread Marco Nelissen
Building the entire platform under cygwin is not supported. On Mon, Oct 12, 2009 at 2:39 AM, chuck u2160...@yahoo.com.tw wrote: Hi all:    The code was downloaded successfully by cygwin. But when I make it, the errors were as follows:

[android-developers] Re: stopped unexpectedly when run on emulator

2009-10-12 Thread Marco Nelissen
Look at the system log (either using adb logcat or with the ddms perspective in eclipse), and it will tell you exactly where and why it crashed. On Mon, Oct 12, 2009 at 7:37 AM, 登辉 黄 huangdeng...@gmail.com wrote: we modifid snake from sdk samples. there is a running exception stopped

[android-developers] Re: Problems playing MP3s on real device

2009-10-12 Thread Marco Nelissen
I suspect this might be a bug in the opencore implementation for the Hero. On Mon, Oct 12, 2009 at 10:32 AM, Adrian adrian.ma...@gmail.com wrote: Hello, I'm desperately trying to get my soundboard application to work. I have a GridView consisting of Buttons, which have an OnClickListener

[android-developers] Re: Problems playing MP3s on real device

2009-10-12 Thread Marco Nelissen
Tested it on a number of phones, including a Hero, and it worked as expected. Note that there are many different versions of the Hero being sold though, so the problem you are seeing could be specific to the particular build on the phones you tried. On Mon, Oct 12, 2009 at 3:33 PM, Marco

[android-developers] Re: WiMAX for Android

2009-10-08 Thread Marco Nelissen
You also need a phone that can act as a USB host. On Wed, Oct 7, 2009 at 6:11 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Yep, you would have to implement the usb driver support for your WiMax card on Android which also includes platform/framework changes to recognize

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-10-08 Thread Marco Nelissen
On Thu, Oct 8, 2009 at 1:21 AM, Kevin Gaudin kevin.gau...@gmail.com wrote: Hello, thanks for this, I have been also browsing the Camera app code which hosts the Gallery and considering to hack something in order to achieve an additional goal. In my view of thumbnails management, the

[android-developers] Re: Sharing code between activities

2009-10-08 Thread Marco Nelissen
How would using asynctask help with this? On Wed, Oct 7, 2009 at 7:42 AM, Agus agus.sant...@gmail.com wrote: use asynctask. On Wed, Oct 7, 2009 at 7:36 AM, amiz aarn...@gmail.com wrote: I have an app with two activities. Both activities among other functions have to perform the same

[android-developers] Re: is there a way to put entire folder from assets to sdcard? not just individual files.

2009-10-08 Thread Marco Nelissen
Why do you need your mp3s to be named a certain way? If you can copy them out of your resources using whatever name they have there, and copy them to sd card under another name, then clearly you are already able to match up the resource name with the desired name, so why bother making a copy?

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread Marco Nelissen
Donut (1.6) shipped with OpenCore 2.x, whereas previously we were using OpenCore 1.x. From your description is sounds like opencore 2 is more aggressive about buffering on slow connections, to avoid running out of data at the end. On Thu, Oct 8, 2009 at 9:09 AM, dadical keyes...@gmail.com

[android-developers] Re: Is network slower when screen is blacked out?

2009-10-08 Thread Marco Nelissen
Are you using wifi? I think wifi turns off after a while unless you're holding a wifi wakelock. So it might be you're downloading over wifi when the screen is on, but over 3G when the screen is off. On Thu, Oct 8, 2009 at 4:18 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I

[android-developers] Re: could not run any raw aac files (e.g xxx.aac) in native Android music player: Google I/O phone

2009-10-08 Thread Marco Nelissen
JNI has nothing to do with it. In Donut and earlier releases, the media scanner will ignore .aac files. That means they won't be added to the database, and so the music app won't show them. If you want them to show up in the music app, you could try renaming them with a different extension. On

[android-developers] Re: Keeping MediaController from timing out after a certain amount of time

2009-10-07 Thread Marco Nelissen
. Is there a way to override how the VideoView will hide/show the MediaController? On Oct 6, 4:23 pm, Marco Nelissen marc...@android.com wrote: VideoView itself will hide/show the MediaController as it sees fit, so your call to show() will only be in effect until VideoView decides to hide (or show

[android-developers] Re: Keeping MediaController from timing out after a certain amount of time

2009-10-06 Thread Marco Nelissen
VideoView itself will hide/show the MediaController as it sees fit, so your call to show() will only be in effect until VideoView decides to hide (or show with a timeout) it again. Also, you are calling MediaController.show() before the MediaController is even attached to the VideoView. On Tue,

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Marco Nelissen
On Fri, Oct 2, 2009 at 12:54 AM, Gavin Bong gavin.emp...@gmail.com wrote: In the android Launcher app, Workspace.java accesses the mScrollX member variable. http://www.google.com/codesearch/p?hl=frsa=Ncd=2ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.javaq=computeScroll However it

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread Marco Nelissen
The other side of that of course is that persistent storage like you describe would allow the phone to be filled with data that the user has no visibility in to and no way to remove. On Fri, Oct 2, 2009 at 9:32 AM, chrisoz kristian.aus...@gmail.com wrote: Interesting! Our appplication on

[android-developers] Re: How to play music album?

2009-09-29 Thread Marco Nelissen
There is no intent for playing an album On Tue, Sep 29, 2009 at 5:43 AM, extrapedestrian extra.pedestr...@gmail.com wrote: Anyone? On Sep 28, 12:07 pm, extrapedestrian extra.pedestr...@gmail.com wrote: I have album id, how can I start activity to play album? I tried this: Uri album =

[android-developers] Re: Can't i call a service function in activity's onStart/onCreate?

2009-09-28 Thread Marco Nelissen
You need to wait until you actually receive the service connection callback before you do anything with the service. You can't simply assume that the callback has already happened when you reach your onStart. On Mon, Sep 28, 2009 at 7:36 AM, bear tung beart...@gmail.com wrote: My activity bind

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Marco Nelissen
On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Marco Nelissen
? On 27 sep, 20:23, Marco Nelissen marc...@android.com wrote: On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-26 Thread Marco Nelissen
On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override #     public void onCreate(Bundle icicle) { #         super.onCreate(icicle); # #         ListMapString,? security = new

[android-developers] Re: Computational cost of calling getReadableDatabase or getWriteableDatabase?

2009-09-26 Thread Marco Nelissen
On Fri, Sep 25, 2009 at 11:19 AM, Mark Murphy mmur...@commonsware.com wrote: Also, batch insert generally means you insert multiple items at once, so you should only need to do one call to bulkInsert(), and hence one call to getWriteableDatabase. bulkInsert() is only for content providers;

[android-developers] Re: Computational cost of calling getReadableDatabase or getWriteableDatabase?

2009-09-26 Thread Marco Nelissen
improves db insertion speed. Agus. On Sat, Sep 26, 2009 at 1:37 PM, Marco Nelissen marc...@android.com wrote: On Fri, Sep 25, 2009 at 11:19 AM, Mark Murphy mmur...@commonsware.com wrote: Also, batch insert generally means you insert multiple items at once, so you should only need to do one

[android-developers] Re: How to prematurely stop a long-running SQLite query?

2009-09-26 Thread Marco Nelissen
The specific search you mention should still benefit from an index, since it's matching on prefix. If you also wanted it to match unthinkable, that's a different story. In that case you might want to consider a storage mechanism other than a relational database. On Sat, Sep 26, 2009 at 5:58 PM,

[android-developers] Re: How to prematurely stop a long-running SQLite query?

2009-09-26 Thread Marco Nelissen
much whenever you want, at the expense of having to aggregate the results yourself. On Sat, Sep 26, 2009 at 6:56 PM, Marco Nelissen marc...@android.com wrote: The specific search you mention should still benefit from an index, since it's matching on prefix. If you also wanted it to match

[android-developers] Re: Custom layout for MediaController

2009-09-26 Thread Marco Nelissen
You could implement your own and make it look however you like. On Sat, Sep 26, 2009 at 7:19 PM, brooke brooke.ma...@gmail.com wrote: Hi Group - I'm trying to modify the default layout for the MediaController.  I'd like to remove the fastForward/fastRewind buttons and maybe do some

[android-developers] Re: Custom layout for MediaController

2009-09-26 Thread Marco Nelissen
Other than enabling/disabling some of the standard buttons, no. On Sat, Sep 26, 2009 at 7:35 PM, brooke brooke.ma...@gmail.com wrote: But is there a way to simply modify the existing one? On Sep 26, 7:27 pm, Marco Nelissen marc...@android.com wrote: You could implement your own and make

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-25 Thread Marco Nelissen
.. On 25 sep, 00:04, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 2:12 PM, Wouter wouterg...@gmail.com wrote: On 24 sep, 22:53, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 1:41 PM, Wouter wouterg...@gmail.com wrote: I have no problem with the data

[android-developers] Re: event for button on headphone chord...

2009-09-25 Thread Marco Nelissen
On Fri, Sep 25, 2009 at 7:57 AM, sdphil phil.pellouch...@gmail.com wrote: okay, first a couple of gripes -- gripe 1: why oh why t-mobile/htc did you decide to make a phone with a non-standard USB/Power connector?  I mean seriously, wth!!!  just what the world needs, yet another frigging

[android-developers] Re: Computational cost of calling getReadableDatabase or getWriteableDatabase?

2009-09-25 Thread Marco Nelissen
Why are you calling getWriteableDatabase so often? You should only need to call it once, and then use that database for all your insertions. Also, batch insert generally means you insert multiple items at once, so you should only need to do one call to bulkInsert(), and hence one call to

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-25 Thread Marco Nelissen
On Fri, Sep 25, 2009 at 10:18 AM, Wouter wouterg...@gmail.com wrote: On 25 sep, 16:57, Marco Nelissen marc...@android.com wrote: So there's your problem then, probably. The adapter expects each item to have the same items, so that it can assign the fields from your Cursor

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Marco Nelissen
Somewhere in your code, you are passing a resource ID to the system that should refer to a TextView, but doesn't. My guess is you've set your data mapping up incorrectly. On Thu, Sep 24, 2009 at 1:25 PM, Wouter wouterg...@gmail.com wrote: Can someone help me please! Really need to get this

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Marco Nelissen
On Thu, Sep 24, 2009 at 1:41 PM, Wouter wouterg...@gmail.com wrote: I have no problem with the data mapping and TextViews. The stack trace and crash you're seeing indicate otherwise. Unless you're doing something specific in bindView, the adapter expects each list item layout to be the same.

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Marco Nelissen
On Thu, Sep 24, 2009 at 2:12 PM, Wouter wouterg...@gmail.com wrote: On 24 sep, 22:53, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 1:41 PM, Wouter wouterg...@gmail.com wrote: I have no problem with the data mapping and TextViews. The stack trace and crash you're

[android-developers] Re: What does database pageSize do ?

2009-09-24 Thread Marco Nelissen
On Thu, Sep 24, 2009 at 2:18 PM, Agus agus.sant...@gmail.com wrote: What does database setPageSize method do? It does exactly what the javadoc says. For slightly more information, see http://www.sqlite.org/pragma.html#pragma_page_size Will it improve sql insertion time? I doubt it.

[android-developers] Re: VideoRecorder and VideoPlayer

2009-09-24 Thread Marco Nelissen
VideoRecorder and VideoPlayer don't exist in the Android SDK. If you meant MediaRecorder and MediaPlayer, then the answer to your question is no. At best, you could have a local proxy on the phone to feed data to MediaPlayer for playback. On Thu, Sep 24, 2009 at 5:15 PM, fala70

[android-developers] Re: fit text on 1 line

2009-09-21 Thread Marco Nelissen
On Mon, Sep 21, 2009 at 10:36 AM, Wouter wouterg...@gmail.com wrote: Ok I had to place android:singleLine=true (http://code.google.com/p/ android/issues/detail?id=882) and now it is working :) Other question: when you look at this picture: http://snapplr.com/stxg you can see that there

[android-developers] Re: problem in List Activity

2009-09-18 Thread Marco Nelissen
And what were you expecting that code to do? The code you posted will display a list showing a few items. If you want something to happen when any of those items are selected, you'll have to write code for that too. You'll probably want to implement your Activity's onListItemClick. On Fri, Sep

[android-developers] Re: how do you quit an app...

2009-09-18 Thread Marco Nelissen
Why do you want to kill the process? On Fri, Sep 18, 2009 at 5:30 PM, sdphil phil.pellouch...@gmail.com wrote: i have an app with multiple activities and a local service. if I finish() all the activites and stop the service, the process still exists (if I go into adb shell and type ps, I

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-18 Thread Marco Nelissen
Sure you can, you just need a phone. On Fri, Sep 18, 2009 at 9:21 PM, !oEL runzhou...@gmail.com wrote: So there is no way I can really test it? On 9月18日, 下午1时07分, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: You don't have Wifi support on the emulator -- Roman

[android-developers] Re: TextView marquee scroll behavior different in AVD 1.6r1

2009-09-18 Thread Marco Nelissen
On Fri, Sep 18, 2009 at 9:08 PM, greg sep...@eduneer.com wrote: My application has a list of species names, some of which are too long to fit in the TextView.  For example, Black-bellied Whistling-duck gets truncated at -duck.  Using AVD 1.5r3, the TextView's marquee scroll does a nifty

[android-developers] Re: Why does media scanner not list the audio file suffixed with .aac.

2009-09-17 Thread Marco Nelissen
On Thu, Sep 17, 2009 at 12:23 AM, Tony Yang tonyyang...@gmail.com wrote: I push a audio file named music.aac into SD card, and then execute Media Scanner application or re-start the device. I found that media scanner didn't process .aac file, so the music.aac file doesn't exist in music

[android-developers] Re: MPEG4 playback issue?

2009-09-17 Thread Marco Nelissen
On Thu, Sep 17, 2009 at 2:59 PM, GP gphill...@plowdigital.com wrote: We have a clent that has videos online that stream... we are taking the same videos an converting them to MPEG4 for mobile playback thhey work for fine for most of the phones that we tested except the Andiod Phone?

[android-developers] Re: requestWindowFeature crashing

2009-09-16 Thread Marco Nelissen
On Wed, Sep 16, 2009 at 3:27 PM, Felix Oghina felix.ogh...@gmail.com wrote: My application dies (application has stopped unexpectedly blah blah) on this line (in my onCreate function): requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); I know it's on this line because if I put a

[android-developers] Re: stereo audio is not coming via headset

2009-09-15 Thread Marco Nelissen
You will probable have more luck getting your question answered in the android-porting group. On Tue, Sep 15, 2009 at 8:06 AM, sunee suneetha.kalahas...@wipro.com wrote: I am working on android for omap zoom2 target. When I play audio clips, playback is fine and audio is coming via headset

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-13 Thread Marco Nelissen
source        mPlayer.setDataSource(songUri); // IDLE is valid state for this method        // plat the new source async        mPlayer.prepareAsync(); } On Sat, Sep 12, 2009 at 6:46 PM, Marco Nelissen marc...@android.com wrote: What does your code look like? On Sat, Sep 12, 2009 at 6:41 AM

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-12 Thread Marco Nelissen
What does your code look like? On Sat, Sep 12, 2009 at 6:41 AM, manigault manig...@gmail.com wrote: Hi, I have the following issue i have an application that uses android.media.MediaPlayer and got this exception: 09-12 16:21:05.921: ERROR/AndroidRuntime(9890): Uncaught handler: thread

[android-developers] Re: appending video files

2009-09-12 Thread Marco Nelissen
You can't just concatenate multiple video files like that. On Sat, Sep 12, 2009 at 7:07 AM, JoyLakh sivarajend...@gmail.com wrote: Dear All, My intention is to add pause and resume functionality to my video recording app, for which on selecting pause I am releasing the recorder and on

[android-developers] Re: SQLiteOpenHelper.onUpgrade

2009-09-10 Thread Marco Nelissen
On Thu, Sep 10, 2009 at 8:44 AM, c.a.due...@googlemail.comc.a.due...@googlemail.com wrote: Hi Droids! I get a SQLiteException if I try to issue an alter statement in the onUpgrade method of SQLiteOpenHelper subclass: Can't upgrade read-only database from version X to Y: /path/to/db That

[android-developers] Re: MediaPlayer playback is interrupted by user interface interaction

2009-09-08 Thread Marco Nelissen
On Sun, Sep 6, 2009 at 2:59 AM, Ludvig Svenoniusludvig.svenon...@gmail.com wrote: I have a rather mysterious problem with the simple test application below... package com.example.helloandroid; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle;

[android-developers] Re: How many times a song has played?

2009-09-08 Thread Marco Nelissen
That information is not available in the system. On Tue, Sep 8, 2009 at 6:59 AM, Nathan Ekstromnat...@whiteboxdev.com wrote: I've searched the list and the documentation but have not found anything that tells you how to tell how many times a song has played.  Is there something in the OS

[android-developers] Re: Anyone else notice that the Top apps in android.market.com seem inaccurate?

2009-09-08 Thread Marco Nelissen
On Tue, Sep 8, 2009 at 9:31 AM, niko20nikolatesl...@yahoo.com wrote: If you look at the apps that are in the Top paid category, and then go to Cryket.com and look them up, I find it hard to believe that these apps are really the top paid. For example, Buka is 1000-5000 downloads at about

[android-developers] Re: Ongoing...

2009-09-08 Thread Marco Nelissen
On Tue, Sep 8, 2009 at 8:09 AM, sdphilphil.pellouch...@gmail.com wrote: how does the media player put itself in the Ongoing group when playing? http://developer.android.com/reference/android/app/Notification.html Specifically: Notification.FLAG_ONGOING_EVENT

[android-developers] Re: Problem with MediaScannerConnection scanFile

2009-09-08 Thread Marco Nelissen
On Mon, Sep 7, 2009 at 9:30 AM, karthikrkarthik.scintill...@gmail.com wrote: Hi Guys, Im trying to open an image edit it and save it back. And im using the below code, mScanner = new MediaScannerConnection(this, new MediaScannerConnection.MediaScannerConnectionClient() { public void

[android-developers] Re: Returning files through a Cursor

2009-09-03 Thread Marco Nelissen
On Thu, Sep 3, 2009 at 7:13 AM, David Givend...@cowlark.com wrote: I would like my app to start an email app such as GMail with an attached file. For various technical reasons we can't use a file: URL for this --- we have to pull the file out of our ContentProvider. So, I need some way to

[android-developers] Re: Changing a Back button press to Home button press

2009-09-03 Thread Marco Nelissen
See http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) for an explanation of why onSaveInstanceState is not called in your use case. You should save your state somewhere else, like in onPause() On Thu, Sep 3, 2009 at 1:09 AM,

[android-developers] Re: Command

2009-09-02 Thread Marco Nelissen
What do you mean by access in this context? On Wed, Sep 2, 2009 at 7:46 AM, Michelle Cristina de Melo Silvam...@cin.ufpe.br wrote: Hi,     Is there a command that i can access directly a key into an application? I don't wanna capture when user press the key, i wanna access it without press.

[android-developers] Re: Inserting large volumes of data into SQLite - speed issues

2009-09-02 Thread Marco Nelissen
Are you using bulkInsert? On Wed, Sep 2, 2009 at 8:47 AM, mjc147westmead...@yahoo.co.uk wrote: I need to insert approximately one million rows of data (spread over 4 tables) - each row has one or two numeric fields, and two or three text fields (normally quite short). Single-column indexes

[android-developers] Re: Inserting large volumes of data into SQLite - speed issues

2009-09-02 Thread Marco Nelissen
On Wed, Sep 2, 2009 at 10:18 AM, mjc147westmead...@yahoo.co.uk wrote: On Sep 3, 12:43 am, Marco Nelissen marc...@android.com wrote: Are you using bulkInsert? Actually, I don't. I looked at it but it seemed to be related to ContentProvider and ContentResolver neither of which I'm using. Am I

[android-developers] Re: Getting failed to copy 'content' to '/sdcard/content': Read only file system on donut compilation.

2009-09-01 Thread Marco Nelissen
on a saphire... suspect some startup script is not doing it's thing? On Aug 31, 11:47 am, Marco Nelissen marc...@android.com wrote: What does 'adb shell df' say? On Mon, Aug 31, 2009 at 7:26 AM, Anandanandss2...@gmail.com wrote: While the emulator is launched successfully, the sdcard is shown

  1   2   3   4   5   6   7   >