[android-developers] Re: Radio Button Selection not Visible

2008-04-14 Thread NTR
I don't know if this is of any help, but since myself, I couldn't put all linked RadioButtons inside a single RadioGroup element, but instead, due to how the layout was implemeted, were separated here and there, I wrote this class: public class SeparatedRadioGroup implements CompoundButton.OnChec

[android-developers] Easy way to find taken photos?

2008-04-13 Thread NTR
Is there an easy way to plug in a list of stored photos in a gallery view? --~--~-~--~~~---~--~~ 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@googlegroup

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

2008-04-13 Thread NTR
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] Here's some help for the "Emulator disconnected" launch issue!

2008-04-11 Thread NTR
At least this works for me. 1. Disable automatic launch targeting from the Run...-dialog 2. Run your project as usual 3. The launch target selector opens. Now it's tempting to click "Launch emulator", but the trick is 4. Don't do that! Click "Cancel" instead. 5. Quickly launch the project again a

[android-developers] Re: XferMode

2008-04-11 Thread NTR
Simply: setXfermode(new PorterDuff(PorterDuff.Mode.DARKEN)); tatagogo wrote: > Does anyone know exactly how you set up an Xfermode for use with > Paint..? I'm trying to set up an XferMode with PorterDuff.Mode.DARKEN > so that, when assigned, all pixels painted with the Paint call will > darken t

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

2008-04-11 Thread NTR
When I try to send a GTalk message from the GTalk client in my computer to the emulator client, the following exception is thrown: ERROR/Checkin(520): Error reporting crash: java.lang.NullPointerException ERROR/Notification(6349): This constructor doesn't work correctly anymore ERROR/Notification

[android-developers] Custom mockup location providers - what's wrong with this?

2008-04-11 Thread NTR
I'm trying to make my own mockup location providers, but I just can't get them to work. I have the following file structure in the emulator: /data/misc/location/house/kml /data/misc/location/house/properties The kml file is obtained by saving a path in Google Earth. Code: LocationManager locat

[android-developers] Re: Alternative for Thread.sleep or TimerTasks (as a workaround)?

2008-04-10 Thread NTR
s may be better used elsewhere), then you can use a Handler to > scheduled delayed messages. > > On Apr 10, 6:57�am, NTR <[EMAIL PROTECTED]> wrote: > > As said here: > > > > http://groups.google.com/group/android-developers/browse_thread/threa... > > > >

[android-developers] Re: Thread.sleep() and Lock.lock() don't release CPU

2008-04-10 Thread NTR
You can use a workaround as described in here: http://groups.google.com/group/android-developers/browse_thread/thread/79fe3f22c0c764cf# [EMAIL PROTECTED] wrote: > Do you measure CPU activity in Android, or on your PC? > > On Mar 9, 2:44�pm, Peli <[EMAIL PROTECTED]> wrote: > > If I run > > > > Th

[android-developers] Re: Alternative for Thread.sleep or TimerTasks (as a workaround)?

2008-04-10 Thread NTR
! (damn, what a hack :) NTR wrote: > As said here: > > http://groups.google.com/group/android-developers/browse_thread/thread/8f736492d4ba8e04/51444bb1059a91eb?#51444bb1059a91eb > > I noticed the same - Thread.sleep, and also TimerTasks, take 100% of > my PC's CPU, and also br

[android-developers] Alternative for Thread.sleep or TimerTasks (as a workaround)?

2008-04-10 Thread NTR
As said here: http://groups.google.com/group/android-developers/browse_thread/thread/8f736492d4ba8e04/51444bb1059a91eb?#51444bb1059a91eb I noticed the same - Thread.sleep, and also TimerTasks, take 100% of my PC's CPU, and also bring the emulator to its knees. I'd like to run a service in the ba

[android-developers] Re: Date and time pickers in an XML layout file - how to get to work?

2008-04-09 Thread NTR
It's also clear that the exceptions are caused by those views, since whenever I comment them out, everything works just fine. NTR wrote: > They were also inside a LinearLayout, and a ScrollView: > >android:layout_width="fill_parent" > android

[android-developers] Re: Date and time pickers in an XML layout file - how to get to work?

2008-04-09 Thread NTR
uite a lot of other stuff above them, but nothing that should matter, as they aren't parents of those views. Dan U. wrote: > I put those within a LinearLayout and it worked fine. Can you post > more of your layout and/or code? > > On a side note, I notice DatePicker likes to throw null p

[android-developers] Date and time pickers in an XML layout file - how to get to work?

2008-04-08 Thread NTR
I've tried including date and time pickers in the XML file, like the following: http://schemas.android.com/apk/res/android"; android:layout_width="wrap_content" android:layout_height="wrap_content" /> But I get: ERROR/AndroidRuntime(2930): Caused by: java.lang.RuntimeE

[android-developers] Re: Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-07 Thread NTR
Really? Sounds odd. What about the other issues? Romain Guy wrote: > > And, if I have a horizontal LinearLayout and put an element in the > > middle of it, with horizontal FILL_PARENT, the elements on the right > > of it won't be shown. For workaround, I've set the horizontal span to > > WRAP

[android-developers] Re: Retrieving the location provider "gps" causes a NullPointerException in LocationManager.createProvider

2008-04-07 Thread NTR
The permissions are: Anything missing? Dan U. wrote: > have you set proper uses-permission settings in androidmanifest.xml? > > On Apr 6, 5:36 pm, NTR <[EMAIL PROTECTED]> wrote: > > I even tried running "emulator -wipe-data" again, but it didn&

[android-developers] Is there a way to set the minimum size of a window?

2008-04-07 Thread NTR
So many questions lately... I've got a WebView inside of a Window (using the dialog theme). It works fine as long as the website is loaded quickly. In that case, the WebView resizes the window just correcly. But it seems that if it takes a while to load the page, the WebView "forgets" to resize t

[android-developers] Re: Retrieving the location provider "gps" causes a NullPointerException in LocationManager.createProvider

2008-04-06 Thread NTR
I even tried running "emulator -wipe-data" again, but it didn't help... NTR wrote: > When I try using the "gps" provider, I get the following: > > ERROR/AndroidRuntime(3253): Caused by: java.lang.NullPointerException &g

[android-developers] Retrieving the location provider "gps" causes a NullPointerException in LocationManager.createProvider

2008-04-06 Thread NTR
When I try using the "gps" provider, I get the following: ERROR/AndroidRuntime(3253): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(3253): at android.location.LocationManager.createProvider(LocationManager.java: 61) ERROR/AndroidRuntime(3253): at android.location.Location

[android-developers] Re: Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-06 Thread NTR
iddle of it, with horizontal FILL_PARENT, the elements on the right of it won't be shown. For workaround, I've set the horizontal span to WRAP_CONTENT, but weight to 1.0f. On Apr 7, 2:54 am, NTR <[EMAIL PROTECTED]> wrote: > When I have the contents of the Activity on a

[android-developers] First mouse click in the emulator not taken in account

2008-04-06 Thread NTR
When I reload a package from the Eclipse IDE to run in the emulator, the first mouse click is always discarted when I click the emulator screen, even if the emulator window is already "selected". Has anyone else noticed this? Maybe if so, it's not just my computer :P --~--~-~--~~--

[android-developers] Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-06 Thread NTR
When I have the contents of the Activity on a 9-patch background with background padding, the texts in the radio buttons and checkboxes go behind the buttons. Has anyone else experienced this? Is the only workaround to create a separate TextView for each of those? See the screenshot: http://users

[android-developers] Re: Is it possible to load a view from an XML file, but only to store it to a variable?

2008-04-06 Thread NTR
Ah, thanks a lot! Dan U. wrote: > I think you should look at the docs for ViewInflate. > > On Apr 5, 6:25 pm, NTR <[EMAIL PROTECTED]> wrote: > > I see there's a Resources.getView-method, but it returns an > > XmlPullParser, and I have no idea what to d

[android-developers] Is it possible to load a view from an XML file, but only to store it to a variable?

2008-04-05 Thread NTR
I see there's a Resources.getView-method, but it returns an XmlPullParser, and I have no idea what to do with it. The Views take an AttributeSet and a "Map inflateParams". What should I pass for them? Thanks! --~--~-~--~~~---~--~~ You received this message because

[android-developers] How to bring an overlay to the front?

2008-03-31 Thread NTR
If the map has several overlapping overlays, I'd like to bring the selected one to the front. Is this possible? Also, is there a way to remove an overlay? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Is there a way to manually kill a service?

2008-03-28 Thread NTR
As the subject says, is there a way to kill a service, either from the DDM console or the emulator? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] GTalk connection very slow?

2008-03-28 Thread NTR
It takes about a minute for me to connect to the GTalk service. Is this normal? --~--~-~--~~~---~--~~ 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@google

[android-developers] Re: Is this normal (emulator errors)?

2008-03-28 Thread NTR
Also an another problem - the debugger just doesn't attach anymore. I've tried restarting the emulator several times, but it just stays in the "waiting for emulator to attach"-state forever. The DDM shows the debugger, but Eclipse doesn't attempt to connect to it. --~--~-~--~~-

[android-developers] Is this normal (emulator errors)?

2008-03-28 Thread NTR
With the latest SDK, I'm getting a lot of log entries like these: ERROR/Database(522): Failed to open database file "/data/data/ com.google.android.providers.settings/databases/settings.db" - unable to open database file ERROR/Database(522): Failed to open database file "/data/data/ com.google.an