[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Dave Sparks
Did you enable audio input in the emulator? On Apr 23, 6:48 pm, Steven_T gwb...@126.com wrote: hi Dave Sparks:    I have changed 50 frames to 400 frmaes, it doesn't work.    then I set bufferSizeInBytes to 100 to init AudioRecord object, and set update period to 400,    it dosn't work

[android-developers] Does android kernel supports ACPI?

2009-04-24 Thread tiwana
Does android kernel supports ACPI? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] How to update a Cursor

2009-04-24 Thread Meryl Silverburgh
Hi, I call ContentResolver's query method to get a Cursor, and I would like to update the title of that row to 'new title' can you please tell me how to do it? final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(MY_CONTENT_URI, new String[] { title},

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Mark Murphy
Meryl Silverburgh wrote: Hi, I call ContentResolver's query method to get a Cursor, and I would like to update the title of that row to 'new title' can you please tell me how to do it? final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(MY_CONTENT_URI,

[android-developers] Re: SDK1.5 AudioRecord sample rate problem

2009-04-24 Thread Yoni
Make sure you're using 16 bit samples. 8 bit samples seem to just not work. Don't use the default anythings - actually set it to MIC, PCM_16BIT, 11025, MONO. Then once that works you can try tweaking other options. Also, make sure your buffer is big enough - you can use

[android-developers] Re: Next Focus and the Soft Keyboard

2009-04-24 Thread Brian Conrad
Thanks, that was exactly what I was looking for. Dianne Hackborn wrote: You may not have seen the blog post: http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html On Fri, Apr 24, 2009 at 12:40 PM, Brian Conrad brianjto...@gmail.comwrote: I have a form

[android-developers] How to deal with an app widget that can have variable sizes

2009-04-24 Thread Joel
I want to create an app widget that could take up a different number of cells on the home screen, but I don't think that the app widget framework easily supports this. I know that an app widget can have a configuration screen, and I'd like the user to be able select a sort of small, medium, or

[android-developers] Updated Android Market Developer Distribution Agreement?

2009-04-24 Thread BoD
I'm sorry I know this is slightly off-topic, but since there is no group about the market... When I'm logging in to the Market console, I'm asked to agree with the updated Android Market Developer Distribution Agreement. Is there any info/announcement anywhere highlighting and explaining the

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Meryl Silverburgh
Thank you. I have another question about cursor. I have inserted a ContentValue like this: final ContentResolver cr = context.getContentResolver(); ContentValue values = new ContentValues(); values.put(title, new title); values.put(x, 10); Uri result = cr.insert(CONTENT_URI ,

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Mark Murphy
Meryl Silverburgh wrote: Thank you. I have another question about cursor. I have inserted a ContentValue like this: final ContentResolver cr = context.getContentResolver(); ContentValue values = new ContentValues(); values.put(title, new title); values.put(x, 10); Uri

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Dan Morrill
Hello! You probably need to use android:minSdkVersion rather than minSdkVersion. - Dan On Fri, Apr 24, 2009 at 1:16 PM, 6real xirgon...@gmail.com wrote: Dear all, since today I have the following clear message : Market requires the minSdkVersion to be set in AndroidManifest.xml. but my

[android-developers] Re: How to deal with an app widget that can have variable sizes

2009-04-24 Thread Jeff Sharkey
Yep, that's correct. There isn't a good way of requesting a dynamic size, since some home screens may need to pre-reserve the area needed. In the forecast widget I wrote that offers multiple sizes, I solved it using exactly the approach you described--a separate widget definition for each size.

[android-developers] Re: Updated Android Market Developer Distribution Agreement?

2009-04-24 Thread Dan Morrill
Hello! Actually, the DDA didn't change. What happened is that due to a bug a while back, a few developers were able to create accounts without agreeing to the correct DDA. So when those developers log in, they are now being prompted to agree. The DDA you are seeing should not introduce any new

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Steven_T
hi Dave Sparks: thank you for reply! I didn't disable audio input in avd what you means is use option -audio backend to set an audio input I had used the next code test audio input // Intent intent = new Intent

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Steven_T
hi Dave Sparks: thank you for reply! I didn't disable audio input in avd what you means is use option -audio backend to set an audio input I had used the next code test audio input // Intent intent = new Intent

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Looks like us application developers have been left in the dark again. It would be great if someone from google could fill us in as to this change and any others that may affect our applications and the distribution of those apps on the market. Regards, ~Clark On Apr 24, 1:16 pm, 6real

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Hi Dan, I added uses-sdk android:minSdkVersion=1 / to my manifest and attempting to upload my application to the market I received the following error message: Market requires the minSdkVersion to be set in AndroidManifest.xml. The server could not process your apk. Try again. Before using

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Mark Murphy
clark wrote: Looks like us application developers have been left in the dark again. android:minSdkVersion was documented a while back, with the release of 1.1r1. http://developer.android.com/sdk/android-1.1.html#overview What wasn't mentioned there was any Android Market dependency on

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Mark, My comment about being kept in the dark was regarding not being told of the market dependency. I was well aware of that setting and that it was suppose to be optional, but looks like the optional part went out the door along with not being able to directly turn GPS on and off anymore.

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Mark Murphy
clark wrote: My comment about being kept in the dark was regarding not being told of the market dependency. I was well aware of that setting and that it was suppose to be optional, but looks like the optional part went out the door along with not being able to directly turn GPS on and off

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Romain Guy
It's not like we didn't warn developers about private APIs :) On Fri, Apr 24, 2009 at 12:44 PM, Tom Gibara m...@tomgibara.com wrote: I don't want to single out any particular app, but conversely should a developer sell an application that can't be supported in the future because it uses an

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread s...@zooropa.com
I'm still having the same problem as below when I insert the: uses- sdk android:minSdkVersion=1/uses-sdk right after the manifest. There must be a trick to where it's put?? On Apr 24, 3:10 pm, Hw3699 hw3...@gmail.com wrote: What's your solution? I got the same issure. manifest

[android-developers] Get scroll speed of a Listview

2009-04-24 Thread Ivan Soto
Ivan Soto Fernandez Web Developer http://ivansotof.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: Get scroll speed of a Listview

2009-04-24 Thread Ivan Soto
(Oops, I tabbed extra then Enter... msg sent, blame gmail hehe) I've been playing around with some apps for iphone I realized that a lot of them load pictures from lists when they are slowing down (or stopped). That really increases the overall performance On those apps, if I scroll fast I don't

[android-developers] dear list moderators

2009-04-24 Thread Jason Proctor
how long do i need to be on probation before my posts take less than a week to reach the list, if at all? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] minsdkversion required in manifest to upload an app upgrade

2009-04-24 Thread sage2...@gmail.com
Hi - I just tried tonight (4/24) to upload an upgraded to my app, and saw something new. It won't let me do it, saying that the market requires a minsdkversion spec in the manifest. So I sez to meself: OK, I'll just put one in there. Here is what I put, but it didn't solve the problem - no

[android-developers] Re: minsdkversion required in manifest to upload an app upgrade

2009-04-24 Thread clark
Check out this thread http://groups.google.com/group/android-developers/browse_frm/thread/9ccf30f7c3f20a3 basically you need to put that right under manifest, at least that's what people on that thread are saying and it worked for me. ~clark On Apr 24, 7:17 pm, sage2...@gmail.com

[android-developers] orientation change runtime option?

2009-04-24 Thread andrew
Hi, Is it possible to have a user choose how an app should respond to orientation changes? I have it set to android:screenOrientation=sensor in the manifest but I would like users to be able to turn this on and off or set landscape or portrait orientation permanently. Thanks, Andrew

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Mark, You're right, I was very unclear there. I apologize as well. So it seems the solution so far is to put uses-sdk android:minSdkVersion=1 /, or whatever minSdkVersion you need, right under manifest http://groups.google.com/group/android-developers/browse_frm/thread/9ccf30f7c3f20a3 Worked

[android-developers] Re: Get scroll speed of a Listview

2009-04-24 Thread Romain Guy
Use ListView's scroll listener. You can see how I used it to implement exactly what you describe in my app called Shelves: http://code.google.com/p/shelves On Fri, Apr 24, 2009 at 6:48 PM, Ivan Soto ivanso...@gmail.com wrote: (Oops, I tabbed extra then Enter... msg sent, blame gmail hehe) I've

[android-developers] Re: AutoCompleteTextView and SimpleCursorAdapter

2009-04-24 Thread Randy McEoin
I was struggling with the same problem. Thanks for your code example. I had to do a few tweaks to get it to work. I don't think that ASC is a valid orderby. It should be the name of a field and then the ASC. For example my table has a field called modified which contains the time the

[android-developers] Re: optimization problem

2009-04-24 Thread Sahil Arora
Hi Roman, Can you please give a brief idea about using Package manager's API to simplify my code?? Thanks in advance. Best Regards, Zhubham On Fri, Apr 24, 2009 at 6:25 PM, Romain Guy romain...@google.com wrote: You don't have to use reflection, you can use the package manager's APIs to

[android-developers] Re: optimization problem

2009-04-24 Thread Tom Gibara
I can't claim that this is what Romain meant, but I've done this sort of thing a few times. Here's a snippet of code from a game I'm working on: Resources resources = context.getResources(); FlowerColor[] flowerColors = FlowerColor.values(); String packageName = context.getPackageName(); for (int

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread nEx.Software
It's a good thing I copied and duplicated all of the private APIs I used into my own project. :) I understand though, guess I didn't realize that Power Manager was using private APIs. I still think there were better ways to handle this, such as those mentioned above. I'd gladly make the decision

[android-developers] Recording Audio in a call

2009-04-24 Thread John Doe
Hi guys. I have a question and i am looking for an answer for a very long time. I am trying to record audio when i call someone and when someone calls me.I am using phonestatelisteners and i am able to record audio from outside (my voice) when i call someone. however when somebody calls me it

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread 6real
Yes it works : uses-sdk android:minSdkVersion=2 / as first manifest child. THX !!! On 25 avr, 04:22, clark clarkd...@gmail.com wrote: Mark, You're right, I was very unclear there.  I apologize as well. So it seems the solution so far is to put uses-sdk android:minSdkVersion=1 /, or

<    1   2