[android-developers] Camera Flash Turns Off Automatically After A Few Seconds (Galaxy Nexus, 4.0.1)

2011-12-27 Thread bklik
I have code that works without fail on all my LED flash enabled devices (Droid, Nexus One, Galaxy Tab 10.1). But, on my Galaxy Nexus, the app will launch, turn the LED flash on, then after ~1.5 seconds, it turns the flash off. If I then turn it back on via a button, it will stay on. If I delay the

[android-developers] Re: publishing two versions of same application

2011-12-27 Thread bklik
As far as I know, everything has to be kept separate. On Dec 27, 10:29 am, John Goche johngoch...@googlemail.com wrote: Hello, I have an application which I would like to publish as a free version and then another with some extra features as a paid version. I was wondering, if my package

[android-developers] Re: Detect direction of shake movement in SensorListener

2011-02-20 Thread bklik
I think what you're after is the difference in values between X (left and right), Y (up and down), Z (toward you and away). My code looks something like this: public void onSensorChanged(SensorEvent event) { long curTime = System.currentTimeMillis(); x = Math.abs(event.values[0]); y

[android-developers] What Cancels Timer and TimerTasks?

2011-01-30 Thread bklik
I'm trying to write an egg timer application. Here's what I have: * An Activity that has the UI for adding timer and displaying time remaining * A Service that has a Timer/TimerTask which controls the countdown When I set a really long time, say nine hours and go to bed, somewhere in the night

[android-developers] Timer Question

2011-01-25 Thread bklik
I have lots of issues with my egg timer application. I started by just writing the application all in an action. That of course didn't work because once the user left the application, it would get garbage collected after a while and longer timers would fail. So, I tried a Service. My main

[android-developers] How To Install SDK Behind Authenticated Proxy

2010-01-12 Thread bklik
I'm unable to configure the Android SDK and AVD Manager to acquire packages from behind an authenticated proxy server. I've filled out the proxy fields in the Settings area, but am never ask my username or password. I tried the username:password@proxyurl method, which doesn't work either. How

[android-developers] Re: Updates to the Android SDK

2010-01-08 Thread bklik
I'm having the same issue. I'm behind an authenticated proxy so I can't install the SDK. I've tried everything. On Dec 31 2009, 9:13 am, teryz teryzpl...@gmail.com wrote: I have a problem using AndroidSDKUpdater (revision 4). For the record I'm under win xp 32-bits, jdk 1.6. I set up the

[android-developers] Re: SDK 2.0 Auto Dim Control?

2009-11-30 Thread bklik
force a particular brightness for your window.  This is currently broken on Droid if auto brightness is enabled (because of conflicts between the framework and underlying driver doing the brightness adjustment), but should be fixed in an update. On Tue, Nov 24, 2009 at 7:35 AM, bklik brenton.k

[android-developers] Re: SDK 2.0 Auto Dim Control?

2009-11-24 Thread bklik
, 2009 at 7:01 AM, Wes wes.beli...@gmail.com wrote: Good question.  I'd like to know too because I find the placement (or actions) of the ambient light sensor to be arbitrary and erratic :-/ On Nov 23, 8:40 am, bklik brenton.k...@gmail.com wrote: Has a way been added to the Android 2.0

[android-developers] SDK 2.0 Auto Dim Control?

2009-11-23 Thread bklik
Has a way been added to the Android 2.0 SDK to disable auto dimming on the Motorola Droid? Brenton -- 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

[android-developers] Re: How Do You Disable Hero's Auto-Dimming Feature

2009-11-17 Thread bklik
Just wanted to poke this issue. Has anything changed in the 2.0 SDK that will resolve this? On Oct 5, 1:12 pm, bklik brenton.k...@gmail.com wrote: Thanks Dianne, I'm using a wake lock to prevent it from sleeping anddimmingafter the default 30 seconds, and I'm using the brightness API from

[android-developers] How Do You Disable Hero's Auto-Dimming Feature

2009-10-05 Thread bklik
I'm getting a lot of requests by users of my flashlight application, that they want me to disable the HTC Hero's automatic dimming feature that works off the light sensor. How do you disable it through code? Or, isn't there a way? Brenton --~--~-~--~~~---~--~~

[android-developers] Re: How Do You Disable Hero's Auto-Dimming Feature

2009-10-05 Thread bklik
have that same problem.  For the device I know of, we need to do some work in the platform to better integrate with the manufacturer's auto-dimming code, so hopefully this will only be a temporary problem. On Mon, Oct 5, 2009 at 6:54 AM, bklik brenton.k...@gmail.com wrote: I'm getting a lot

[android-developers] Re: Launch Application

2009-03-13 Thread bklik
...@android.com wrote: The is a home screen sample code in the SDK.  I would suggest using that that to see how to do things. On Thu, Mar 12, 2009 at 8:45 AM, bklik brenton.k...@gmail.com wrote: Update: OK, I can get my application to launch another application if I explicitly type

[android-developers] Launch Application

2009-03-12 Thread bklik
I want to basically create an application launcher. How do do this? Shouldn't the following just work? PackageManager pm = this.getPackageManager(); ListApplicationInfo appList = pm.getInstalledApplications (0); Intent i = new Intent();

[android-developers] Re: Launch Application

2009-03-12 Thread bklik
the Activity Name is for each package? I only guessed Calculator in the example above after a couple tries. I also tried: appList.get(0).getClassName; But, it returns null. Brenton On Mar 12, 8:21 am, bklik brenton.k...@gmail.com wrote: I want to basically create an application launcher.  How do do

[android-developers] Alarm Clock Broadcasts?

2009-02-11 Thread bklik
Does the Alarm Clock broadcast any intents? I would like to be able to have my application automatically launch after a person's alarm clock goes off, and they press dismiss (rather than sleep). I assume that would require a receiver looking for a broadcast of some kind. Brenton

[android-developers] Re: XML file parsing (big size xml file) throws IOException

2009-01-08 Thread bklik
It is hitting the 5 second timeout barrier? Did you try putting in parse in a Service rather than an Activity so that it can take it's time parsing the large file? Brenton On Jan 8, 7:51 am, saagar.par...@gmail.com saagar.par...@gmail.com wrote: When I try to load a big XML file (1.2 MB),

[android-developers] Re: Hidden Contacts

2008-12-11 Thread bklik
contacts to see if the people you're seeing appear there as well?  GMail creates ahiddencontact for everyone you've traded emails with and perhaps thehiddenpeople are coming from here? On Dec 6, 4:07 pm, bklik [EMAIL PROTECTED] wrote: Did anyone else find that when you dump all your contacts

[android-developers] Hidden Contacts

2008-12-07 Thread bklik
Did anyone else find that when you dump all your contacts to a ListView, you see hidden contacts that don't show up in your regular contact list under the Dialer? I found nameless contacts, contacts with names but no numbers. When I returned their email address, I found emails to sale-