Re: [android-developers] Re: Application invisible in Market from Nexus One. Please test.

2010-03-29 Thread Evgeny V
Thanks, It's not mine. On Mon, Mar 29, 2010 at 6:33 PM, sbw.android sbw.andr...@gmail.com wrote: On 29 mar, 13:29, EvgenyV evgen...@gmail.com wrote: My app is universal unit converter ConvertMe(Beta) free. on a nexus one, I can see the ConvertMe application (no beta in the name) from

Re: [android-developers] Re: Moving CursorAdapter cursor creation to background thread

2010-03-29 Thread Mark Murphy
Paul Turchenko wrote: What is the most correct way to populate your list items from database/ contentprovider records when querying then takes too long? Run your query in an AsyncTask and call setListAdapter() in onPostExecute() of the task. What, precisely, is not desirable about that

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread Rootko
Let me add my 5 cents :D Slovakia, EU still waiting (although I'm for 2 weeks abroad, so plenty of time there :) ) -- 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

Re: [android-developers] Re: Android Developer Device Seeding Program - Updates?

2010-03-29 Thread Yves Liu
I only did the developer program and got an email confirmation on Mar. 5th saying there will be 2 to 4 weeks for me to get mine. I haven't received mine yet. On Fri, Mar 26, 2010 at 2:15 PM, Jeremy Logan jeremy.lo...@gmail.comwrote: But was yours for the market program, or the developer

Re: [android-developers] Advice on buying android phone for development

2010-03-29 Thread Sean Hodges
On Mon, Mar 29, 2010 at 1:05 PM, Venky.Vijay venkyinw...@gmail.com wrote: Hello everyone, I'm from India and I want to buy an Android phone for developing applications for it. I shortlisted two phones the SAMSUNG I7500 and HTC Hero. But the problem is that i7500 doesn't have much support as

[android-developers] Re: onRelease for ListView-Adapter

2010-03-29 Thread Kevin S.
Have you tried view.setOnTouchListener()? I think you then get a motionEvent which you can look at to determine if the event was a touch up or a touch down. I've not tried it in a listview before, however. -Kevin On Mar 27, 1:54 pm, lukas lukas.zielin...@googlemail.com wrote: Hello everyone,

Re: [android-developers] Custom Dialog help!!!

2010-03-29 Thread ~ TreKing
On Sun, Mar 28, 2010 at 6:00 PM, James jkavana...@gmail.com wrote: Hey i'm in need of some help. I want my menu item info to create a custom dialog. Yet i appear to to be having trouble What, exactly, is the trouble ?

[android-developers] Re: deleteOnExit when and how does an Android JVM exit

2010-03-29 Thread fadden
On Mar 29, 11:33 am, Mark Murphy mmur...@commonsware.com wrote: 2) When does an Application's JVM exit - assuming there is one JVM per application. That is unclear and definitely varies. For example, the process may be terminated quickly enough that the JVM does not go through a normal

[android-developers] Re: Sound Processing

2010-03-29 Thread BobG
Read about AudioTrack, AudioRecord, and Soundpool I think. -- 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, send email to

[android-developers] Re: deleteOnExit when and how does an Android JVM exit

2010-03-29 Thread lordjoe
So my take on this is not only can I not COUNT on deleteOnExit() behaving properly but I can basically count on it never being called. This raises one more question which might need a separate thread - is it ever right for an application to call System.exit(). We are trained not to do this but

[android-developers] Re: ADP3? When?

2010-03-29 Thread cloudguy
Can it be used to install different versions of the OS, or is not something any phone can do? Jamie On Mar 24, 10:21 am, Romain Guy romain...@android.com wrote: The Nexus One can be used as a development phone. On Tue, Mar 23, 2010 at 11:21 AM, cloudguy jamiebri...@gmail.com wrote: I'm

[android-developers] Re: deleteOnExit when and how does an Android JVM exit

2010-03-29 Thread Streets Of Boston
Usually, calling System.exit() should not be done. Depending on your manifest settings of your activity, it could be that your activity is loaded into a process of another application. Calling System.exit() will kill the entire application, not just your activity. In short, don't call

[android-developers] Re: Android market - limited distribution

2010-03-29 Thread Streets Of Boston
It would be nice if the Android Market would have some form of an 'enterprise application' section, where companies can publish apps just for their employees or customers outside of the general public. I'm not aware of any such plans by Google. It is possible with the 'Unknown Sources' setting

[android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Streets Of Boston
Nope. Your emulator won't 'shake'. I'm not sure what the call to 'context.getSystemService(Context.VIBRATOR_SERVICE);' returns when there is no vibration device in the phone. But i would check the return value of this call. If this call throws an exception, put it inside a 'try - catch' block:

Re: [android-developers] Re: Notification manager question

2010-03-29 Thread ~ TreKing
On Mon, Mar 29, 2010 at 4:37 AM, guru guru.nav...@gmail.com wrote: What I have to need to achieve single icon and number of notification on the status bar? Make sure you use the same ID when you call NotificationManager.notifiy().

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread Arnon
You mean 4 weeks? ;-) Quote: Please allow 2-4 weeks from the date of submission of the form for delivery of the phone. If you do not receive the phone within that timeframe, please send an email to... On Mar 29, 3:48 pm, zneref zne...@gmail.com wrote: People relax, 6-weeks term doesn't passed

Re: [android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
Ok, so that's the only way ;) Thanks a lot Simone On Mon, Mar 29, 2010 at 11:35 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Nope. Your emulator won't 'shake'. I'm not sure what the call to 'context.getSystemService(Context.VIBRATOR_SERVICE);' returns when there is no vibration

[android-developers] Re: compatible screen sizes on droid G1

2010-03-29 Thread FrankD
Thanks!!! i wll check those out On Mar 28, 1:06 pm, Mark Murphy mmur...@commonsware.com wrote: FrankD wrote: I have read the documentation on supporting multiple screens but can't seem to figure it out. I mean, i understand that resolution effects it but it just doesn't make sense to me

Re: [android-developers] Re: Http proxy settings not working in Android Emulator 2.1

2010-03-29 Thread David Turner
b.android.com On Mon, Mar 29, 2010 at 12:54 AM, Corrie corrie.me...@gmail.com wrote: Yes, I can confirm this works in Linux but not on Windows. I am a newbie, how do we reports this as a bug on the windows sdk version? Regards, Corrie On Mar 18, 5:07 pm, David Turner di...@android.com

Re: [android-developers] Testing telephony signal strength changes in emulator?

2010-03-29 Thread David Turner
No, i'ts not possible, I'm afraid. On Mon, Mar 29, 2010 at 12:56 PM, goosedroid alexrhel...@gmail.com wrote: I was wondering if there is a way to manipulate the emulator to simulate telephony signal strength changes. I would like to test code that uses TelephonyManager.listen() with

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread SoftwareForMe.com SoftwareForMe.com
Washington State, USA. Still waiting. On Mon, Mar 29, 2010 at 2:41 PM, Arnon arnonse...@gmail.com wrote: You mean 4 weeks? ;-) Quote: Please allow 2-4 weeks from the date of submission of the form for delivery of the phone. If you do not receive the phone within that timeframe, please send

[android-developers] Re: ADP3? When?

2010-03-29 Thread cloudguy
Can you flash different versions of the OS onto it? On Mar 24, 10:21 am, Romain Guy romain...@android.com wrote: The Nexus One can be used as a development phone. On Tue, Mar 23, 2010 at 11:21 AM, cloudguy jamiebri...@gmail.com wrote: I'm waiting to buy an android phone until I can get a

Re: [android-developers] eclipse issue

2010-03-29 Thread Xavier Ducrohet
Hi, this should not happen. I regularly have 2+ phones connected with emulator(s) running as well and DDMS handles it no problem. Could you: - make sure Eclipse is NOT running - launch the standalone version of DDMS from a terminal - plug 2+ devices - grab the error output from the terminal and

Re: [android-developers] Re: ADP3? When?

2010-03-29 Thread Disconnect
For os hacking your options are ADP1 or 2. (You can do it on nexus one, but it immediately voids the warranty. Makes me wonder about quality.. IANAL but it might not hold up in court if you can prove the failure was due to manufacturing and not software - depending on state, etc. And how much

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-29 Thread AuxOne
It turns out SystemClock.elapsedRealtime() is horribly wrong on a real device (or at least mine). After turning my phone off then running an app that just prints out the value for this, it came out to 870495360. On the emulator it's a much nicer number. Having said that, it still works fine if

[android-developers] Re: Custom Dialog help!!!

2010-03-29 Thread James
When I hit on the info on my menu nothing happens. On Mar 29, 9:56 pm, ~ TreKing treking...@gmail.com wrote: On Sun, Mar 28, 2010 at 6:00 PM, James jkavana...@gmail.com wrote: Hey i'm in need of some help. I want my menu item info to create a custom dialog. Yet i appear to to be having

[android-developers] Is this is possible in Android ?

2010-03-29 Thread AJ
Hi Group, As we know the following command is for using Emulator console. telnet localhost console-port But this works only for Emulator. I tried for read android Devices that did not work It says Connecting To localhost...Could not open connection to the host, on port 5700efa84f37: Connect

Re: [android-developers] Re: Custom Dialog help!!!

2010-03-29 Thread ~ TreKing
On Mon, Mar 29, 2010 at 5:13 PM, James jkavana...@gmail.com wrote: When I hit on the info on my menu nothing happens. Are you actually handling this case in onOptionsItemSelected() (that may not be the right name, going off the top of my head) and are you actually calling showDialog()

[android-developers] Re: how to detect screen is on or off?

2010-03-29 Thread Flying Coder
I also listen to SCREEN_ON/OFF broadcasts in a couple of my apps. But, starting in 2.1 there is a new isScreenOn method: PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); boolean isScreenOn = pm.isScreenOn(); It won't actually help me with my apps since I'm interested

[android-developers] Re: Sound Processing

2010-03-29 Thread Gabriel Simões
AudioTrack and AudioRecord will do the trick. If you are thinking about using the emulator to test your app then I should add luck to you. Could never make audioRecord work on the emulator. On 29 mar, 18:06, BobG bobgard...@aol.com wrote: Read about AudioTrack, AudioRecord, and Soundpool I

[android-developers] Re: Advice on buying android phone for development

2010-03-29 Thread Gabriel Simões
Can´t any android device use any android version just like the iphone? On 29 mar, 17:52, Sean Hodges seanhodge...@googlemail.com wrote: On Mon, Mar 29, 2010 at 1:05 PM, Venky.Vijay venkyinw...@gmail.com wrote: Hello everyone, I'm from India and I want to buy an Android phone for developing

Re: [android-developers] Re: ADP3? When?

2010-03-29 Thread Dianne Hackborn
On Fri, Mar 26, 2010 at 2:49 AM, String sterling.ud...@googlemail.comwrote: Someone might want to mention that to ATT. Apparently they've disabled Unknown sources on the Motorola Backflip: http://tinyurl.com/yat7cqe (among other sources) That is not the same thing. This is about

[android-developers] Re: Custom Dialog help!!!

2010-03-29 Thread James
Hmmmh, now how do i do that :) On Mar 29, 11:29 pm, ~ TreKing treking...@gmail.com wrote: On Mon, Mar 29, 2010 at 5:13 PM, James jkavana...@gmail.com wrote: When I hit on the info on my menu nothing happens. Are you actually handling this case in onOptionsItemSelected() (that may not be the

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-29 Thread Samsyn
just a little followup.. thanks again Robert for encouraging me to use nanoclock. I eventually got around to the conversion (I had been invoking System.currentMillis in a thousand individual locations, of course :-) Anyway clock sync is better than ever, whether I am on Wifi/3gs or lagging my

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread havexz
I jst got my Droid ...thanks to Google any one any idea how to make Droid (the one we got from Google) work with our SDK. I mean how can i start deploying my app on Droid? I enabled the USB debugging but still i cant see the device listed in the DDMS? Any idea? On Mar 29, 4:58 pm,

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread Andrei
FL still waiting On Mar 29, 5:58 pm, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: Washington State, USA. Still waiting. On Mon, Mar 29, 2010 at 2:41 PM, Arnon arnonse...@gmail.com wrote: You mean 4 weeks? ;-) Quote: Please allow 2-4 weeks from the date of

[android-developers] Free MEM and SD CARD

2010-03-29 Thread Porting beginner
Hi, I have Android (eclair)running on armv6 target platform. I am trying to check how much memory is currently in used and how much left ( free ) ? During boot I can observe that memory is going in in-active partition and at the end when all processes ( zygote, system ) and apps up and running

[android-developers] Re: Advice on buying android phone for development

2010-03-29 Thread davemac
I didn't know the iPhone supported all Android versions. Good to know ;-) - dave On Mar 29, 7:02 pm, Gabriel Simões gsim...@gmail.com wrote: Can´t any android device use any android version just like the iphone? On 29 mar, 17:52, Sean Hodges seanhodge...@googlemail.com wrote: On Mon, Mar

Re: [android-developers] Android market - limited distribution

2010-03-29 Thread Chi Kit Leung
As I remember, Android Market policy doesn't allow this. (Free App needs to be an application without restrictions). On Tue, Mar 30, 2010 at 5:50 AM, Sean Hodges seanhodge...@googlemail.comwrote: On Mon, Mar 29, 2010 at 6:42 PM, Mark Murphy mmur...@commonsware.com wrote: ole! wrote: Now

Re: [android-developers] Re: Advice on buying android phone for development

2010-03-29 Thread Chi Kit Leung
how's about htc legend? much better to have sense UI, better UI. On Tue, Mar 30, 2010 at 10:25 AM, davemac davemac...@gmail.com wrote: I didn't know the iPhone supported all Android versions. Good to know ;-) - dave On Mar 29, 7:02 pm, Gabriel Simões gsim...@gmail.com wrote: Can´t any

[android-developers] Re: android.location.Location.distanceTo algorithm

2010-03-29 Thread Andreas
Yes. According to the source code (http://source.android.com/download), the section 4 of this document is used to calculate the distance: http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf Good luck. On Mar 29, 3:31 pm, Patrick patrick.ribb...@gmail.com wrote: Hello! I'm developing an Android app

[android-developers] Global font size?

2010-03-29 Thread paladin
Is there a single place/call where I could increase all font sizes in the app all at once, programmatically? -- 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

[android-developers] Re: Question for Admob users

2010-03-29 Thread Emmanuel
The location is also used to determine the language the ad should use. In my games, Word Prospector and Chasseur de Mots, I essentially have ads in english and in french, and, for some reasons, click on the ads in french are much more expensives ! So if your application is used world wide, I

Re: [android-developers] Global font size?

2010-03-29 Thread Dianne Hackborn
There is a font scale, but it hasn't been officially documented and thus most applications won't use it. On Mon, Mar 29, 2010 at 5:49 PM, paladin quoti...@gmail.com wrote: Is there a single place/call where I could increase all font sizes in the app all at once, programmatically? -- You

[android-developers] Re: ADP3? When?

2010-03-29 Thread JP
On Mar 25, 10:21 am, Disconnect dc.disconn...@gmail.com wrote: Almost any phone can be used for app development. Thats one of the awesome bit about Android. (I say 'almost' because I heard rumours of one that had a market-apps-only lock.) Not to toot the horn for Google here, but I'd stick

Re: [android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-29 Thread Dianne Hackborn
Fwiw, we generally use SystemClock.uptimeMillis() in the platform. This is monotonic and should not jump. It does not increment when the CPU is not running, but typically this is actually fine or even good behavior. (For example, it is used to time messages in handlers; if you post a delayed

[android-developers] Re: R.id cannot be resolved

2010-03-29 Thread DonFrench
Can you show us the contents of R.java. It is in the gen folder. On Mar 29, 3:17 am, mnavlani monishanavl...@gmail.com wrote: thanks for your reply! I used the following code in main.xml: ?xml version=”1.0” encoding=”utf-8”? LinearLayout xmlns:android=”http://schemas.android.com/apk/res/

[android-developers] Bluetooth file trasfer

2010-03-29 Thread Jobs He
Hello: I want to know android can or not transfer through Bluetooth,and now,android have how much capalicity about Bluetooth.Thank you ! -- 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] Re: Bug or feature?

2010-03-29 Thread DonFrench
I based my statement on the fact that the example I gave works correctly (treating the space as just another character) in all the browsers I tested it on, which wasn't that many (IE 8 and FF3.6.2). I assumed that if it worked it was valid, which obviously isn't necessarily true. On Mar 29,

[android-developers] Re: Variable rate audio playback

2010-03-29 Thread ps
Anyone? On Mar 14, 7:45 pm, ps peter.sugih...@gmail.com wrote: Hey guys, I'm new to development on Android and thought maybe you could shed some light on my problem.  I'm trying to code up a little object to take care of playing a list of songs at a constantly varying playbackrate. I just

[android-developers] Re: How to prevent long URL from breaking in generated email?

2010-03-29 Thread DonFrench
As you might have guessed from a subsequent post of mine, it turns out that the culprit was an embedded space in the URL. On Mar 28, 8:12 pm, DonFrench dcfre...@gmail.com wrote: I am generating an email in my app in which I include a long URL.  The entire URL appears in the email but the

[android-developers] Re: Programmatically setting a new default ringtone without the ringtone picker

2010-03-29 Thread HippoMan
I figured out a way to do this. This is a stripped down version (no error checking, etc.). I set the default ringtone and notification to my preferred values from out of the standard set that comes with my N-1. Then, I make sure that the volume is set to the maximum on ringtones, notifications,

[android-developers] Re: Sound Processing

2010-03-29 Thread Janaka
I am testing the application on the emulator and i couldn't get the AudioTrack or AudioRecord to work. I am trying to apply fast furior transform to the input so implementation in Java may be too slow. I learned there is Native Development Kit for android. Does it have libraries for audio

[android-developers] How to slip right/left to review next/previous item in the listview?

2010-03-29 Thread David
Dear All, There are some items in the listview, they list normally, click one item and an activity comes out for corresponding details, I wanna know how to slip right/left on the activity page to review next/previous item's detail with another activity page ? Thanks, Best Regards, David

[android-developers] Re: Disable Home Key?

2010-03-29 Thread DroidBy
Hi HackNone, You can handle the Home Key inside the PhoneWindowManager itself. This is up to your way to handle the key there. On Mar 21, 9:18 pm, HackNone clzq...@gmail.com wrote: Hi, DroidBy. Do you solve this problem now? I also have this question. I am trying my best to solve it. --

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-29 Thread Robert Green
Dianne, I don't know why but I found that my games were jittery using SystemClock.uptimeMillis(). It's as if there was a little inconsistency and when doing time-interpolated movements, it shows. I've never run a test comparing the output of nanoclock vs uptime so I have no empirical evidence,

Re: [android-developers] Re: Disable Home Key?

2010-03-29 Thread Dianne Hackborn
Since this is not talking about the SDK, please move the discussion to android-porting. Thanks. On Mon, Mar 29, 2010 at 8:22 PM, DroidBy meikeng@gmail.com wrote: Hi HackNone, You can handle the Home Key inside the PhoneWindowManager itself. This is up to your way to handle the key

[android-developers] How can I upload a device recorded Video to a specific YoutTube account?

2010-03-29 Thread Juan David Trujillo C.
Hello everyone, I have read previous posts that somehow mention how to upload videos to YouTube, but I would like to get the whole picture of what I mention, considering new OS versions have been released: Is it possible to record a video directly from the device, and then use some sort of

[android-developers] Re: onRelease for ListView-Adapter

2010-03-29 Thread Kumar Bibek
TouchListener would work in this case. You can act upon specific events such as MOUSE_DOWN, MOUSE_UP etc. Thanks and Regards, Kumar Bibek On Mar 30, 1:54 am, Kevin S. dada...@gmail.com wrote: Have you tried view.setOnTouchListener()?  I think you then get a motionEvent which you can look at to

[android-developers] Re: ImageView: zoom proportionally to width=fill_parent ???

2010-03-29 Thread Kumar Bibek
Well, I guess, if it's a background or a texture image that you want to scale, it's advisable to go the 9-patch way. Else, if it is a normal picture, if stretched, it would obviously not look good. By the way, to stretch an image, you can try FIT_XY. But I don't know if it works all the time.

[android-developers] Re: Database : XML or SQLite ?

2010-03-29 Thread Kumar Bibek
Yes you can do this. You can put your xml file in the assets directory. When you app is launched, read this file, and do whatever you want. Note: You cannot delete this file from the assets directory from within the app. It will be there forever. Thanks and Regards, Kumar Bibek On Mar 25, 1:03 

[android-developers] Re: ScrollView listview again again

2010-03-29 Thread Kumar Bibek
It will work. Try making the contents go beyond the screen height, and it would start showing you the scroll bars. Thanks and Regards, Kumar Bibek On Mar 25, 3:18 pm, Lars axberg.l...@gmail.com wrote: Hi I'm new to Android development and having a hard time making the UI, so hopefully someone

[android-developers] Re: media player source code

2010-03-29 Thread grace
u can check out in the api demos for one.. http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/index.html On Mar 28, 7:18 am, jana janarthanan jana87@gmail.com wrote: Dear sir            Good morning to all. please send the media player source code

[android-developers] Re: Application not re-launching.

2010-03-29 Thread Bhargavi
Hi, Please let us know how to resolve the application re-launch issue. Regards, Bhargavi On Mon, Mar 29, 2010 at 11:30 AM, Bhargavi bhargavi.miriy...@gmail.comwrote: Hi, I have written an application which calls native methods through JNI. In the native library 4 threads are started. On

[android-developers] How to load html file embedded with javascript using WebView

2010-03-29 Thread monty
Culd any1 plz tell How to load a html file embedded with javascript using WebView .I m not able to display the image in ythe html usin WebView. -- 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] Camera in Portrait on Surface View

2010-03-29 Thread Prasanna Perera
Hello, I tried several things to try to get the camera preview to show up in portrait on a SurfaceView. Nothing worked. I am testing on a Droid that has 2.0.1. I tried: 1) forcing the layout to be portrait by: this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); 2) using

[android-developers] restarting the application

2010-03-29 Thread Asif k
Hi All, I have kept the title bar in my application. But I have also given an option in the menu to invisible title bar. If someone clicks that menu option then my application need to restart and clear all the activities from the task. For time being, I had thrown an unhandled exception

[android-developers] Re: Camera in Portrait on Surface View

2010-03-29 Thread grace
i tried the following method, it worked out for me.. Parameters params = mCamera.getParameters(); params.set(orientation, portrait); mCamera.setParameters(params); u need to add this code before calling setPreviewDisplay() in the public void

<    1   2   3