[android-developers] MapView invalidate (is invalidating?)

2008-04-12 Thread GUS
I have a MapView that I update from time to time from a timing thread. The problem is when the user interacts with the map two invalidate occurs, does anyone know how can I know if the map is alredy drawing for me not to send invalidate again? is there anything like isdrawing or

[android-developers] Re: Cursor c = this.getContentResolver().query( gets nullpointer exception when code is moved

2008-04-12 Thread Megha Joshi
Hi, The code here is incomplete, and does not suggest any reason for an error, I am not sure what the issue might be, could you post the code for your class and its declaration in AndroidManifest.xml? Do you have the permission to read contacts set in AndroidManifest.xml? Thanks, Megha On Fri,

[android-developers] Re: ListView throws Exception

2008-04-12 Thread pyf
Yes, it's working. You mean the way I used is not correct? but that's what mentioned in API. From exception, it seems it could not find android.R.id.list. On Apr 12, 1:17 pm, Dan U. [EMAIL PROTECTED] wrote: You are extending ListActivity right? Maybe you could try using

[android-developers] Re: Tiled Drawable

2008-04-12 Thread Rui Martins
Replying to myself :) I went digging in the documentation, and found BitmapShader http://code.google.com/android/reference/android/graphics/BitmapShader.html Believe me that Shader is not the best name for such a Functionality ! I would have never found it by this name, I just opened it out of

[android-developers] Re: Browser(webkit) Icon?

2008-04-12 Thread Hielko
You can find it in the browser.apk file inside the emulator On Apr 12, 12:12 am, zero [EMAIL PROTECTED] wrote: Hi folks a simple, maybe even stupid question: i'd like to display the browser icon in an activiy menu (as it is supposed to launch the browser with an uri), but i can't find it

[android-developers] Re: Android Emulator Keeps Dying

2008-04-12 Thread Yoshiyuki
I'm also same problem when I try to install m3 version of SDK. On Apr 6, 11:18 pm, sasperilla [EMAIL PROTECTED] wrote: I keep getting this error in my console when I try to startup the emulator.  I've restarted Eclipse, but it keeps croaking with this error.  Also the emulator easily takes 5

[android-developers] Re: Confusing Problem about MediaPlayer

2008-04-12 Thread Robert
Unfortunately setting mSF to null had no influence. Some additional info on what's happening: If I leave SurfaceView in my main.xml, the surface won't show the video, but will contain the info what was displayed on it in the subactivity. If I use VideoView in main.xml, the subactivity info is

[android-developers] Re: Cursor c = this.getContentResolver().query( gets nullpointer exception when code is moved

2008-04-12 Thread franw
thank you for your reply - as i said, the code worked fine in the main activity, sendmail.java, but when i moved it to GetContacts.java i get a nullPrtException from EmailContactsRepeat where the call is. i am also listing the intent reciever where the code is called. here is the manifest ?xml

[android-developers] Re: Tiled Drawable

2008-04-12 Thread Rui Martins
I'm in trouble ! How in the hell do I load a Bitmap from resources ? NOTE: Bitmap, NOT BitmapDrawable ! Because we only have that option in the constructor of a BitmapShader, which IS A Shader (derives from Shader), not a Bitmap ! On another note, We can NOT get the Bitmap from BitmapDrawable,

[android-developers] Re: Tiled Drawable

2008-04-12 Thread Rui Martins
Gee, found it, BitmapFactory. I think, I'm starting to feel the stress of the approaching date ;P, and so much stuff still to do. On 12 abr, 09:30, Rui Martins [EMAIL PROTECTED] wrote: Replying to myself :) I went digging in the documentation, and found

[android-developers] Re: Tiled Drawable

2008-04-12 Thread Rui Martins
Just a comment on this Bitmap issue, in terms of class structure and organization. I understand the Factory Pattern usage and concept, since I have used it before. But why are some of these factory methods (static methods that know how to create Bitmaps) inside Bitmap class, and others inside

[android-developers] DrawRect can throw a NullPointerException

2008-04-12 Thread Rui Martins
Apparently, on M3, canvas.drawRect(...) will throw a NullPointerException, when the rectangle is out of the screen, zero area or something similar. Haven't tested on M5 either. Haven't debugged it further, just asking, maybe someone already knows the answer. So I can't quite exactly pinpoint the

[android-developers] How to edit phone book field?

2008-04-12 Thread Tofik
I tried different methods, but field wasn't updated. 1. ContentValues values = new ContentValues(); values.put(People.NAME, New name); getContentResolver().update(People.CONTENT_URI, values, people._id= + contactId, null); === 2. String[] projection = new String[] {

[android-developers] Re: DrawRect can throw a NullPointerException

2008-04-12 Thread Rui Martins
Ok, confirmed ! When canvas.drawRect( ... ) is given coords that will make it draw outside of the canvas buffer (bitmap), it will throw a NullPointerException. This should NOT happen whatever the draw method is drawRect or other! Any draw method MUST clip the coords to match the available

[android-developers] Re: Changing view widget properties in a ListAdapter

2008-04-12 Thread SnowDrifter
I guess the only other choice is to use a cursor adaptor and bind it to the data. That requires some changes that I don't want to have to do this close to the deadline. On Apr 11, 5:02 pm, SnowDrifter [EMAIL PROTECTED] wrote: After looking at the Activity lifecycle I am not sure if there are

[android-developers] Re: GTalk incoming chat message causes an exception in the emulator

2008-04-12 Thread thrusty
Interesting -- how are you testing this? I mean, how are you sending messages from your desktop PC to your android client, and how are you receiving and handling these messages in your android client? Are you simply using the ApiDemo classes? On Apr 11, 6:41 am, NTR [EMAIL PROTECTED] wrote:

[android-developers] BitmapShader undocument feature!

2008-04-12 Thread Rui Martins
When using BitmapShader, the results might be surprising, or look strange or just erroneous. This looks like a bug or problem, because the class/methods documentation is missing some important info. Nowhere in the documentation is stated that the bitmap will be pinned down to the screen absolut

[android-developers] Re: Porting android to PXA270 board

2008-04-12 Thread renegade
Thanks Qin Shiming, I Think these informations will be very useful, But just tell me if I'm wrong... As far my system contains 2 partitions...FAT16 kernel partition, EXT2 filesystem partition. Both are read only. So what I have to do is : - make system partition to be in read/write mode, But

[android-developers] Discussion on media-sample-apps

2008-04-12 Thread Anil
Can it play wmv files? I used ViewVideoDemo with a streaming wmv url and it failed. --~--~-~--~~~---~--~~ 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: how to play a JSpeex encoded audio file?

2008-04-12 Thread Anil
Comments in the speex forum: Android provides Java SDKs, but the underlying media libraries are in C/C++: http://code.google.com/android/what-is-android.html The M5 release contains support for Ogg Vorbis (.ogg): http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html#media so

[android-developers] Porting android on hardware

2008-04-12 Thread renegade
Hi all, I created this post to help new android developers with porting android on hardware. Very inportant quesion is : How to prepare SD card to run android? Lets say, that I have : - patched compiled kernel, - system dir extracted from android emulator, - userdata dir extracted from android

[android-developers] Re: Media Sample Apps

2008-04-12 Thread fishman
Hello Megha: i try to use MediaPlayer to play a lot files, ArrayListString fileList = new ArrayListString(); fileList.add(/sdcard/01.mp3); fileList.add(/sdcard/02.mp3); fileList.add(/sdcard/03.mp3); fileList.add(/sdcard/04.mp3); ... for(int i=0;i100;i++){ mp = new MediaPlayer();

[android-developers] Checkbox align label

2008-04-12 Thread Redhunt
Here is an easy question but I can't find the easy answer. How can I align the label in a Checkbox widget to the left of the actual checkbox. To label first then checkbox. It seems to default to checkbox first then label. thanks --~--~-~--~~~---~--~~ You received

[android-developers] Re: Checkbox align label

2008-04-12 Thread Dan U.
There's probably some nice way of doing this (styles), but off the top of my head, I'd say don't set any text for the checkbox and add a textview to the left for your label. On Apr 12, 11:41 am, Redhunt [EMAIL PROTECTED] wrote: Here is an easy question but I can't find the easy answer. How can

[android-developers] Re: Is a Service already running?

2008-04-12 Thread Dan U.
Actually, it would be fairly easy to do this, but I don't think there is an existing method for it. First, create some kind of flag in the Service to represent whether it's running. Update this flag in onStart and onDestroy. Then provide a public static method to access this flag. I would be

[android-developers] Re: ListView throws Exception

2008-04-12 Thread Dan U.
The message is a bit vague I guess. The way I read it was that it couldn't find an xml file with that id. That would likely be in reference to an xml in res/layout. I don't know where you see anything mentioned in the API. The docs are empty for createFromResource in my local m5-rc14 copy. The

[android-developers] Re: Is a Service already running?

2008-04-12 Thread Hielko
I think a static variable will stay in the memory when the service is stopped, but there is one way to find out... On Apr 12, 9:08 pm, Dan U. [EMAIL PROTECTED] wrote: Actually, it would be fairly easy to do this, but I don't think there is an existing method for it. First, create some kind

[android-developers] Re: Checkbox align label

2008-04-12 Thread Redhunt
Thanks Dan, I thought about that too. I was trying to keep things nice ! :) On Apr 12, 1:57 pm, Dan U. [EMAIL PROTECTED] wrote: There's probably some nice way of doing this (styles), but off the top of my head, I'd say don't set any text for the checkbox and add a textview to the left for

[android-developers] terrain data

2008-04-12 Thread dante
Is it possible to get the terrain data from Google Maps as is possible with the web version? Thanks --~--~-~--~~~---~--~~ 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] Got reverse geocoding working

2008-04-12 Thread marvin
I've been frustrated for a while by the lack of support for proper reverse geocoding - or at least, proper mock reverse geocoding. And we really need it now for our app (left this bit to the last minute). We didn't want to use the undocumented GML-thing and wanted to stick to the standard format

[android-developers] Re: Got reverse geocoding working

2008-04-12 Thread Ram
why go through the trouble of fixing minor issues with mock geocoding when the bigger problem is that the geodb file only has 1 non-business location (the white house) and one business (Zachary's Pizza in 3 locations) For challenge submissions, instead of the FixedMockGeocoder.java class, I

[android-developers] Re: Is a Service already running?

2008-04-12 Thread Dan U.
Well, I'm not sure the issue is when it is stopped, but when it is taken out of memory when the OS tries to release resources. On Apr 12, 1:29 pm, Hielko [EMAIL PROTECTED] wrote: I think a static variable will stay in the memory when the service is stopped, but there is one way to find out...

[android-developers] Really Hard to Debug Matrix BUG !

2008-04-12 Thread Rui Martins
The following Code works, and does what we expect: android.graphics.Matrix myMatrix = new android.graphics.Matrix(); myMatrix.reset(); myMatrix.setScale( 1, 1 ); myMatrix.preTranslate( 100.0f, 36.5f ); This code, DOES NOT work, i.e. does NOT do what we expect

[android-developers] Updating View in a SimpleCursorAdapter

2008-04-12 Thread SnowDrifter
I am having trouble updating the state of a Checkbox inside a SimpleCursorAdapter. I want to update the checkbox to reflect some data in my DB at the start of my ListActivity. My Layout is as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/

[android-developers] Re: Updating View in a SimpleCursorAdapter

2008-04-12 Thread SnowDrifter
How is this done? I am not having any problems setting String and integer data through the SimpleCursorAdapter constructor at onCreate but I can't figure out how to bind the check state of the checkbox with this method, it always wants to bind to the text field of the checkbox. Here is how I am

[android-developers] Re: Really Hard to Debug Matrix BUG !

2008-04-12 Thread Romain Guy
This is normal and expected, but the docs should be clearer. setScale/setTranslate/etc. on Matrix set the Matrix to the specified transformation. To compose the transformation with the existing Matrix you need to use the pre/post methods. On Sat, Apr 12, 2008 at 3:18 PM, Rui Martins [EMAIL

[android-developers] Re: Porting android on hardware

2008-04-12 Thread Joa
renegade, The guys hanging out on android-internal are doing this kind of stuff. Check out what they've been doing. Joa On Apr 12, 10:25 am, renegade [EMAIL PROTECTED] wrote: Hi all, I created this post to help new android developers with porting android on hardware. Very inportant quesion

[android-developers] Re: Updating View in a SimpleCursorAdapter

2008-04-12 Thread SnowDrifter
Ok nevermind what I just said. I now understand what you are talking about. Thank you very much!!! I have been banging my head on this for several days now and this fixes it! For other people with this problem this is what I did: SimpleCursorAdapter List= new

[android-developers] Re: Tiled Drawable

2008-04-12 Thread Steve Oldmeadow
Has anyone succeeded in using Shaders ? Do they Work ? Yes, I'm using a shader for tiling bitmaps in my view background. I also got a ComposeShader working to apply a gradient across my background. The thread below might help:

[android-developers] setWallpaper

2008-04-12 Thread Redhunt
I am using the setWallpaper method and I am having problems with it. Rarely it seems to work fine, others I just get a white screen on the home screen. And I cannot pin point what the difference is. Right now it is always white. Has anyone else experience problems? Is there any requirements with

[android-developers] Cross-fading?

2008-04-12 Thread Josh Guilfoyle
Does the audio subsystem support cross-fading, or at least offer sufficient features to implement it gracefully? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send