[android-developers] Re: Where to buy a ADP1 Backplate/Battery Cover (with the Android robots)

2009-07-19 Thread Eric Wong (hdmp4.com)
Buy a replacement back cover from ebay ;) Cheers Eric On Jul 18, 2:37 pm, John Smith deltafoxtrot...@gmail.com wrote: 2009/7/17 JBDynamics jer...@jbdynamics.com I bought an ADP1 from Brightstar Corp in November 2008 and everything was great until about a month ago when the camera window

[android-developers] Re: Maven Android Plugin: stable version 2.0.0 released

2009-07-19 Thread Hugo Josefson
Hi Piwaï, Thanks for sharing! To set your expectations right; for the release of version 2.0.0 we focused on bringing in neccessary features for working correctly, stably and easily in both small and large Maven project setups. The focus for 2.0.0 has so far not been IDE integration. However,

[android-developers] How to keep service alive?

2009-07-19 Thread Yossi
Hi, Is it possible to keep service alive even if the foreground app does not run anymore? My app consists of a foreground app (UI) and a service that should keep running in the background until it is being explicitly stopped by the user (similar to a music player). The problem is that if the

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Mark Murphy
Yossi wrote: Is it possible to keep service alive even if the foreground app does not run anymore? Yes, for a while anyway. My app consists of a foreground app (UI) and a service that should keep running in the background until it is being explicitly stopped by the user (similar to a music

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Yossi
Hi Mark, My code is relatively simple public void onResume() { Intent intent = new Intent(this, TrackingService.class); startService(intent); bindService(intent, _connection, Context.BIND_AUTO_CREATE); } public void onPause() { if(shouldStopService()) {

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Mark Murphy
Yossi wrote: Hi Mark, My code is relatively simple public void onResume() { Intent intent = new Intent(this, TrackingService.class); startService(intent); bindService(intent, _connection, Context.BIND_AUTO_CREATE); } Do either startService() or bindService(), not

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-19 Thread Olaf Geibig
My SDK: adb version 1.0.20 from android-sdk-linux_x86-1.5_r3 My phone's info: Model number: Galaxy Firmware version: 1.5 Baseband version: I7500XXIFF Kernel version: 2.6.27 hud...@andy #1 Build number: 76XXCSDCBALUM6375 My udev rule: SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666 My OS:

[android-developers] Date.getTime() and Daylight Saving Time?

2009-07-19 Thread Cheng Zhong
Hi all, What will Date.getTime() returns in a region with Daylight Saving Time enabled? Does this function returns a DST time or not? I call Date.getTime() in a place with DST (such as U.S.), and convert it to a local time in China (no DST), I get a wrong time (one hour ahead of local time in

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-19 Thread Olaf Geibig
Oh I forgot... It might be good to know that Samsung announced a bugfix firmware update for the Samsung Galaxy which shall be released next week. Cheers, Olaf On 19 Jul., 13:53, Olaf Geibig olaf.gei...@googlemail.com wrote: My SDK: adb version 1.0.20 from android-sdk-linux_x86-1.5_r3 My

[android-developers] Re: Date.getTime() and Daylight Saving Time?

2009-07-19 Thread JP
Use Calendar and TimeZone classes to convert timezones to and fro. On Jul 19, 5:44 am, Cheng Zhong hust.zch...@gmail.com wrote: Hi all, What will Date.getTime() returns in a region with Daylight Saving Time enabled? Does this function returns a DST time or not? I call Date.getTime() in

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Guillaume Perrot
Using both startService and bindService is handy to wait for the onServiceConnected callback before requesting a singleton reference that is set in the service's onCreate. If you do this just after the startService, the reference will be null. The startService is needed for the service to

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Mark Murphy
Guillaume Perrot wrote: Using both startService and bindService is handy to wait for the onServiceConnected callback before requesting a singleton reference that is set in the service's onCreate. If you do this just after the startService, the reference will be null. Correct, because

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Guillaume Perrot
I was not aware of the overhead issue with a local Binder, I thought this case was optimized. I hope the Android team will work on this so that we won't have to reinvent the wheel. I will look at your code once it'll be available, this sounds interesting. 2009/7/19 Mark Murphy

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Jason Van Anden
Thanks for the feedback. Jason On Sat, Jul 18, 2009 at 9:40 PM, John Smith deltafoxtrot...@gmail.comwrote: 2009/7/19 Jason Van Anden jason.van.an...@gmail.com I need to zoom-in/zoom-out for my app. Multitouch would be the most obvious way to go about this *sigh*. No it's not the most

[android-developers] Re: Can not start Media Player Service

2009-07-19 Thread MikaSue
I was just trying to get my system to play a sound. It wont play the ring tone it wont start the media player at all. Must I set a permission to get it to open that path? MikaSue On Jul 16, 12:24 pm, Marco Nelissen marc...@android.com wrote: On Thu, Jul 16, 2009 at 5:14

[android-developers] OpenGL on top of camera preview - using two surface views

2009-07-19 Thread indra
Hello, I have openGL layered on top of camera view by using the 'workaround' specified at - http://groups.google.com/group/android-beginners/browse_thread/thread/489e56ea2a1d42a9 and it works great. However, has been mentioned before that surfaceviews were not designed to be layered ontop of

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Alexey Krasnoriadtsev
double tap, that circles through predefined zoom levels. On Jul 18, 11:18 am, Jason Van Anden jason.van.an...@gmail.com wrote: I need to zoom-in/zoom-out for my app.  Multitouch would be the most obvious way to go about this *sigh*. I would prefer not to use the zoom-in/out widget. I have

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Zsolt Váradi
And if we're talking about circles, there was that HTC image viewer where you can zoom in and out by doing a circle gesture. Add some realtime feedback to it, and it's interesting IMO :) On Sunday, July 19, 2009, Alexey Krasnoriadtsev ale...@agilefusion.com wrote: double tap, that circles

[android-developers] Re: Date.getTime() and Daylight Saving Time?

2009-07-19 Thread Brian Conrad
You're lucky because DST is a mess with different starting and ending times all over the world (and the countries will often change them from time to time). It is generally not used in countries near the equator like India where sunrise and sunset won't vary that much during the year to make

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Dianne Hackborn
Ultimately calls through a binder object are a direct function call. Most of my comments along these lines have been about defining aidl interfaces for communicating with local services, which is a waste (there is lots of generated code that will never be used), and a lot more work (you need to

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Dianne Hackborn
The onPause() method in this example is broken, because if shouldStopService() returns false then it won't unbind, and the next time the activity gets resume it will then go and re-build, causing a growing number of bindings. On Sun, Jul 19, 2009 at 7:58 AM, Guillaume Perrot

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Mark Murphy
Dianne Hackborn wrote: Ultimately calls through a binder object are a direct function call. Most of my comments along these lines have been about defining aidl interfaces for communicating with local services, which is a waste (there is lots of generated code that will never be used), and a

[android-developers] Re: OpenGL on top of camera preview - using two surface views

2009-07-19 Thread Tom Gibara
For what it's worth, I asked myself the same question and came to the conclusion based on Dianne's comments that one can't assume any arrangement of an OpenGL surface and Camera surface is certain to work reliably. I'm currently projecting camera previews onto a textured quad to get a similar

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Blake B.
I would agree with the previous post - the early demo video on the HTC Magic of using a circular motion for zooming looked even more useful than pinching, since it can be done more easily with a single hand on the phone. It doesn't appear to have made it to the initial releas of the phone, but

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Romain Guy
This circular zoom widget was an experiment that we decided to not release. On Sun, Jul 19, 2009 at 3:13 PM, Blake B.bbuckle...@yahoo.com wrote: I would agree with the previous post - the early demo video on the HTC Magic of using a circular motion for zooming looked even more useful than

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Mark Murphy
Romain Guy wrote: This circular zoom widget was an experiment that we decided to not release. Is it at http://source.android.com anywhere? If not, would Google consider releasing it as just a random hunk of open source code? Even if you guys don't want to maintain it, somebody out here might.

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Romain Guy
The source code was not released. Not however that rewriting this widget from scratch would not be very difficult. On Sun, Jul 19, 2009 at 3:24 PM, Mark Murphymmur...@commonsware.com wrote: Romain Guy wrote: This circular zoom widget was an experiment that we decided to not release. Is it

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Mark Murphy
Romain Guy wrote: The source code was not released. Not however that rewriting this widget from scratch would not be very difficult. Easy for you to say... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books:

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Streets Of Boston
Currently I'm writing an app that contains an image viewer. I implemented zooming as follows: Zoom in: Long press; Then a zoom-in icon appears at your finger-location. Then drag a rectangle (with aspect ratio of your screen) from your current finger position to another position; Move your finger

[android-developers] Re: Date.getTime() and Daylight Saving Time?

2009-07-19 Thread Streets Of Boston
Be careful with DST and such. I work for a company that tracks time (timecards, scheduling etc.). Handling DST properly is tricky. The method Date.getTime() is timezone-less. It is a 'universal' time, a *timestamp*, just a time without a definition of place/location! It returns the number of

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Guillaume Perrot
Actually I use a local service without aidl, I allocate a dummy binder (new Binder()) in onBind(). This service manages an XMPP connection, even if no screen is shown to user (there is an ongoing notification with a life cycle corresponding to the service's one, and so I guess my use of

[android-developers] Custom Cursor and Expensive Query

2009-07-19 Thread Ivy
i have 3000 contacts in my G1.And i need to display all of them in a app. I have used a thread to query them and set them to a view.(using Handler.) But this is also not very fast.I need to display them all ASAP Now im considering about first displaying a part of the contacts ,when the

[android-developers] SurfaceDestroyed and Game Thread Problem

2009-07-19 Thread Warren
I am having trouble with the order of function callbacks in a game. I create and start a game thread in the onCreate() of my activity. In the onPause() of the activity, I pause the thread. And in surfaceDestroyed() I stop the thread entirely. I have tried several other configurations, but I

[android-developers] Re: how can I catch SCREEN_ON/SCREEN_OFF broadcasts?

2009-07-19 Thread jiaoni
Thanks, JP. I have added following lines in AndroidManifest.xml, but still cannot receive any message in my BroadcastReceiver's onReceive() method. Is there anything I did wrong, or may I need some permission to receive SCREEN_ON/SCREEN_OFF message? Please help. receiver

[android-developers] Re: ListActivity: items with a button

2009-07-19 Thread Ben Caldwell
Try some experiments with the focusable parameter... On Jul 19, 11:03 am, Ivy ytang1...@gmail.com wrote: I hava the same problem ... At last,I change the button to a pic,looks like a button,in fact,it''s a button. Then the item can be selected... On 7月19日, 上午1时29分, BoD bodl...@gmail.com

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Desu Vinod Kumar
HI That means look like Scale frame in Photo Stream example. I also want to do the same multi touch zoom functionality in my app. By this conversation Multi touch functionality is not yet implemented now ,it is not possible to add in my app . thanks On Mon, Jul 20, 2009 at 5:35 AM,

[android-developers] Re: SurfaceDestroyed and Game Thread Problem

2009-07-19 Thread Jon Colverson
On Jul 20, 4:06 am, Warren warrenba...@gmail.com wrote: I am having trouble with the order of function callbacks in a game. I create and start a game thread in the onCreate() of my activity.  In the onPause() of the activity, I pause the thread. And in surfaceDestroyed() I stop the thread

[android-developers] Re: DEVICE_POWER permission denied for using goToSleep

2009-07-19 Thread LeoSnowland
has other way to lock the phone? On Jul 17, 3:50 am, Marco Nelissen marc...@android.com wrote: On Wed, Jul 15, 2009 at 11:19 PM, LeoSnowlandzengrui_...@126.com wrote: I wanted to use the funcion goToSleep() in PowerManager Class to force the device to sleep. But I'm getting an exception