[android-developers] Gmail contact sync issue on Android 2.1-update1 - com.google.process.gapps has stopped unexpectedly

2010-05-18 Thread Mike Collins
This may be the wrong list but I'm not getting any response on the Defect list... I see the force quite dialog any time substantial changes are pushed up to gmail from the device. I have reproduced this issue with the Motorola Droid and Nexus One both running Android 2.1-update1. I first saw it

[android-developers] Re: Inadvertent breakage by SDK going forward

2010-02-15 Thread Mike Collins
Reworking the platform isn't an option...guess that leaves me with some naming convention. thanks, mike -- 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] Inadvertent breakage by SDK going forward

2010-02-12 Thread Mike Collins
Ran into the below issue and wanted to see what solutions people have... In SDK 1.6 Activity did not have a method onBackPressed (), in 2.0 it appeared. Using the current docs I added an onBackPressed to a couple of our classes. We build against 1.6 (customer requirement) it seemed a bit odd that

[android-developers] Re: Variable values just get lost!??!?

2010-02-08 Thread Mike Collins
Some thoughts, Is your service delcared remote in the manifest? If so you do know how to debug into both processes simultaneously? The order of initialization of class variables can get complicated, try moving everything into explicit new's. mike -- You received this message because you

[android-developers] API Demo Slow Adapter issue

2010-02-01 Thread Mike Collins
? mike collins -- 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+unsubscr...@googlegroups.com For more options

[android-developers] Re: switching between cellular network and wi-fi

2010-02-01 Thread Mike Collins
We've found that always retrying failed network requests 3 times before giving up cures almost all these issues. It doesn't take any meaningful amount of time if the network is really gone and smooths out the minor glitching. mike -- You received this message because you are subscribed to

[android-developers] Re: ANDROID_ID always null on devices

2010-02-01 Thread Mike Collins
This is what I'm doing, seems to work on all the devices we've seen Classandroid.os.Build buildClass = android.os.Build.class; android.os.Build build = new android.os.Build (); String board = (String) buildClass.getField(BOARD).get (build); String

[android-developers] Re: API Demo Slow Adapter issue

2010-02-01 Thread Mike Collins
Arghhh. 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

[android-developers] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Mike Collins
Well, there is exactly one place where the code binds and exactly one place where it unbinds. The binding is shared between the activities activity 1 does a bind on create and unbind on destroy. Breakpoints and logging indicate that exactly one bind is called and no unbinds are called during the

[android-developers] ServiceConnectionLeaked warning

2010-01-04 Thread Mike Collins
I'm getting a ServiceConnectionLeaked message that I don't understand. There are 3 activities and a remote service, all the activities use the same remote service. The main window, activity 1, starts up, auto-starts the service and binds to it. The user then starts activity 2 to do something.

[android-developers] Re: How does Android build background?

2009-11-17 Thread Mike Collins
I'm having the opposite problem. Setting the background of a row in my list view it makes the row tall enough to hold the image completely. I tried getting the background resource (a PNG) and setting the gravity to center and that didn't help. tia, mike -- You received this message because

[android-developers] Re: android 1.5 and 1.6 versions of SDK sitting side by side...

2009-09-28 Thread Mike Collins
I have 1.1, 1.5 and 1.6 all peacefully coexisting on my dev boxes. Follow the directions. mike --~--~-~--~~~---~--~~ 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 force soft keyboard to be visible?

2009-09-21 Thread Mike Collins
I have removed all the code around putting up or taking down or otherwise trying to influence the soft keyboard. This is running on a stock G1 with 1.5 I have two activities reachable from one main activity. All three activites have a single AutoCompleteTextView. All 3 edit boxes have

[android-developers] Re: Searchable Dictionary Example: R.raw.definitions cannot be resolved

2009-09-21 Thread Mike Collins
Nope, built straight off for me, ran properly also. mike --~--~-~--~~~---~--~~ 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: How to force soft keyboard to be visible?

2009-09-18 Thread Mike Collins
That does work, thanks. Of course now I can't get it to go down when the activity finishes. Apparently because there is no equivalent of HIDE_FORCED. The only two HIDE's options don't take down a FORCED show. But without a FORCED show it doesn't show up unless the user asks for it. This seems

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-18 Thread Mike Collins
The behavior I'm talking about is on a locked G1 with 1.5, I did not expect the emulator to be very useful. The behavior on a myTouch (locked, 1.5) is really bizarre. I'm beginning to think that I'm going to pull all the soft keyboard code out and let the user do the extra work. mike

[android-developers] How to force soft keyboard to be visible?

2009-09-17 Thread Mike Collins
I have a dialog that requires the use to type something. I'd like to force the soft keyboard to be visible when this window starts. I've tried most everything that looks applicable and nothing works. The API demos of SDK 1.5 have a set of windows that have this

[android-developers] Re: Handling Network Unavailability

2009-09-16 Thread Mike Collins
When we did a major project for Android it took a while for it to sink in that network unavailability is normal. You have to flip your thinking from a wired world. My experience is that network availability on the Android phone is well enough tracked that you can get the job done. mike

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mike Collins
Pulled down just the add-on for the MB200 (Cliq) emulator, I did not pull down or install MOTODEV as I have my Eclipse setup just s. Came up fine, worked as documented. My app seems to function properly, although there may be some minor issues. mike

[android-developers] Re: Is it possible to use the accelerometer in a background service?

2009-09-09 Thread Mike Collins
my service uses getBaseContext(), seems to work just fine. Don't use it for GPS but we do use it for many other things. mike On Sep 9, 6:57 am, John Smith deltafoxtrot...@gmail.com wrote: It seems trivial to use GPS in a background service, but how can you do the same with the

[android-developers] Re: Detecting sensor manager left and right shakes

2009-08-28 Thread Mike Collins
There was a discussion recently about getting the phone orientation converted to earth-relative orientation, that might help. Maybe just monitor phone relative acceleration for -x followed by +x for a left and +x followed by -x for a right shake? On Aug 28, 12:41 pm, karthikr

[android-developers] Re: How to use the RotationMatrix, actually how to get it

2009-08-25 Thread Mike Collins
I'm trying to get the acceleration values in the earth coordinate system. E.g. instead of knowing the phone is accelerating +Z in the phone's coordinate system I'd like to know if the phone is accelerating upwards relative to the earth. Seems like it's almost there since I can get the phone's

[android-developers] Re: How to use the RotationMatrix, actually how to get it

2009-08-24 Thread Mike Collins
matrix by the acceleration vector and also remapped rotation matrix... Any thoughts? On Aug 21, 11:07 am, Mike Collins mike.d.coll...@gmail.com wrote: Thanks, that seems to work, the orientation is now relative to the earth.  The documentation could use a little work...   mike On Aug 20, 7

[android-developers] Re: How to use the RotationMatrix, actually how to get it

2009-08-21 Thread Mike Collins
= getAzimuth(-convert.radToDeg(values[0]));                                 pitch= convert.radToDeg(values[1]);                                 roll = -convert.radToDeg(values[2]);             }         } On Aug 21, 2:39 am, Mike Collins mike.d.coll...@gmail.com wrote: I have a sensor

[android-developers] Re: Prevent menu lock

2009-08-21 Thread Mike Collins
Look at the PowerManager.WakeLock stuff. It works as advertised. mike On Aug 21, 10:54 am, Mark Murphy mmur...@commonsware.com wrote: kaloer wrote: Is it possible to prevent the menu lock while an application is running? My application needs to be visible all the time it's running,

[android-developers] Re: How to slow down SensorEventListener ?

2009-08-21 Thread Mike Collins
From my work with the sensors I think the rates are hints to the OS about prioritization of work. Requesting the highest rate will generally get samples around 10-20ms rate, regardless of system load. It does seem like under low load they all will deliver 10-20ms rates. The sample rate does

[android-developers] How to use the RotationMatrix, actually how to get it

2009-08-20 Thread Mike Collins
I have a sensor event handler that gets fired and I have no problem getting and processing acceleration readings. However this code always fails. if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { float[] geomagnetic = new float[3];

[android-developers] Re: step through code in remote service

2009-08-17 Thread Mike Collins
I'm assuming you are using Eclipse, Ganymede. Go into the Run Debug Configuration and create a new Remote Java Application configuration. Point it at your service project. Make sure the Connection Port is 8700. Start your app that will start the service. With both still running go to DDMS and

[android-developers] Re: Add Contact not working

2009-08-06 Thread Mike Collins
Sort of a silly question, but how do you look at the Contacts manifest? Is there some way short of hunting through the source tree? tia, On Aug 4, 9:57 am, jats1234 jats1...@gmail.com wrote: Using following code I was able to add email and phone number.. Intent addEmailToContactIntent =

[android-developers] Re: Calibration with the environment may improve the readings ?!

2009-07-21 Thread Mike Collins
Can you be a bit more explicit about what you mean by making a bit 8-like gesture. I'm having no luck getting the sensor to make much sense. mike On Jun 16, 3:31 pm, flegare fleg...@gmail.com wrote: I auto answer myself and the poor soul who fall on this post, so far the only way to

[android-developers] Re: Calibration with the environment may improve the readings ?!

2009-07-21 Thread Mike Collins
the subject :P Here what Mr. 3Gs have to say about the 8 gestures:http://mcall.com.com/i/bto/20090622/compcal_270x404.jpg By the way it really work... On Tue, Jul 21, 2009 at 7:18 PM, Mike Collins mike.d.coll...@gmail.comwrote: Can you be a bit more explicit about what you mean

[android-developers] Re: How-to start service automatically on system startup and on installation

2009-04-13 Thread Mike Collins
I have been down this road with my app, you probably don't want to do this. It is much better to have the app that uses the service start the service when it needs it and simply leaves it running. mike On Apr 9, 10:47 am, kijiten orma cutbl...@gmail.com wrote: Translate English version :

[android-developers] Getting the network restarted after phone starts sleeping

2009-04-10 Thread Mike Collins
I have a long lived service, it wakes up (via the AlarmManager) at intervals and connects to a web server. If the phone goes to sleep and one of my polling intervals happens the phone wakes up enough to let me attempt to connect to the network but the ConnectionManager claims there is no

[android-developers] Re: Parsing date with SimpleDateFormat

2009-03-30 Thread Mike Collins
my dates come in looking like this 2004-08-04T19:09:02.768Z and I parse them like this SimpleDateFormat dateFormater = new SimpleDateFormat(-MM- dd'T'HH:mm:ss'.000Z'); dateFormater.setTimeZone(TimeZone.getTimeZone(GMT)); Date d = dateFormater.parse(s); Try creating a Date object and

[android-developers] Re: cant read file from data/data/pkg/files/...

2009-03-30 Thread Mike Collins
If my understanding is correct, in general you can't because of security. Stuff under /data/data/package/... is protected from any code except the package itself. mike On Mar 30, 4:16 pm, Komal komal...@gmail.com wrote: Hello please help me!!! Thank you On Mar 30, 1:29 pm, Komal

[android-developers] How to capture some/all of the log file from an application?

2009-03-13 Thread Mike Collins
I know how to use adb's logcat to capture the log information. I know how to use logcat inside an adb shell to display the log information. Is it possible to do this from my application on the phone? I'm trying to get a bit more context than just the call stack captured when/if my app crashes.

[android-developers] Re: Help using Eclipse to attach to a process on the emulator...

2009-03-09 Thread Mike Collins
, Mar 6, 2009 at 5:48 PM, Mike Collins mike.d.coll...@gmail.com wrote: I am running the Eclipse ADT plugin. Wandering into even blacker magic, two points come up, If the process I want to debug was started because it's a remote service of the application I did start via Eclipse how do I

[android-developers] Re: Help using Eclipse to attach to a process on the emulator...

2009-03-09 Thread Mike Collins
with a manual remote connection. In the debug dialog (Run Open Debug Dialog) you should have an Android Application launch mode that will do everything for you (push the app, launch it, connect a debugger to it) Xav On Mon, Mar 9, 2009 at 9:59 AM, Mike Collins mike.d.coll...@gmail.com wrote

[android-developers] Re: Help: ADT and Eclipse integration problem (I think)

2009-03-09 Thread Mike Collins
Eclipse can get out of synch with itself. Usually I can get it back together by doing Projects | Clean and forcing everything to rebuild. Also right click on each project and do a Refresh. There is a setting Windows | Preferences | General | Workspace that does refresh and build automatically.

[android-developers] Re: Multi-process applications and Android Market

2009-03-06 Thread Mike Collins
to attach a debugger to it. On Thu, Mar 5, 2009 at 5:16 PM, Mike Collins mike.d.coll...@gmail.comwrote: I'm perfectly happy to put everything in one APK if I can make it work. Pardon my ignorance, when you say directly attach adb to a process and debug it does that connect somehow

[android-developers] Help using Eclipse to attach to a process on the emulator...

2009-03-06 Thread Mike Collins
I have a process running on the emulator but can't figure out how to get Eclipse to attach to it so I can debug it. DDMS isn't doing anything useful, it does the ps and shows my process but it is not DDMS aware, has no description and no VM version. Threads don't update, heap doesn't show

[android-developers] Re: Help using Eclipse to attach to a process on the emulator...

2009-03-06 Thread Mike Collins
We are using V1.1R1, does the V1.0R2 work better? That seems to do a bit better, the Eclipse debugger now shows a few of the threads in the process. I still can't seem to set any breakpoints in the process and DDMS is still showing me nothing interesting. That's a pain, mike On Mar 6,

[android-developers] Re: Help using Eclipse to attach to a process on the emulator...

2009-03-06 Thread Mike Collins
there... mike On Mar 6, 11:13 am, Mike Collins mike.d.coll...@gmail.com wrote: We are using V1.1R1, does the V1.0R2 work better? That seems to do a bit better, the Eclipse debugger now shows a few of the threads in the process.  I still can't seem to set any breakpoints in the process and DDMS

[android-developers] Re: Help using Eclipse to attach to a process on the emulator...

2009-03-06 Thread Mike Collins
to connect to them) (Regular Java debuggers actually connect to DDMS which then forwards the packets to the application back and forth.) Xav On Fri, Mar 6, 2009 at 5:18 PM, Mike Collins mike.d.coll...@gmail.com wrote: There seems to be some magical connection between Eclipse and DDMS, after

[android-developers] Multi-process applications and Android Market

2009-03-05 Thread Mike Collins
The Android Market appears to only support applications that are a single APK. I've asked over there if this is not the case and Google says making it a single APK is the answer. We have an application that has a long-lived background service and a user interface application, in two distinct

[android-developers] Re: Multi-process applications and Android Market

2009-03-05 Thread Mike Collins
for the service in your manifest. On Thu, Mar 5, 2009 at 3:01 PM, Mike Collins mike.d.coll...@gmail.com wrote: The Android Market appears to only support applications that are a single APK. I've asked over there if this is not the case and Google says making it a single APK

[android-developers] Re: upload failure on reset phone; Failure [INSTALL_FAILED_ALREADY_EXISTS]

2009-03-04 Thread Mike Collins
You either have to uninstall the app adb uninstall or install over with adb install -r See the adb help for details. On Mar 3, 9:04 am, Jeff jlb...@gmail.com wrote: I and my customer have had the same problem uploading new versions of my App. tried and failed: Load from

[android-developers] Re: Diplay a Euro sign for the currency

2009-03-04 Thread Mike Collins
Try something like this, I used google to find other encodings... public static String SGetCurrencyDisplayString(FormatStyle iFormat, String iCurrency) { if (Constants.GREAT_BRITIAN_POUND_CURRENCY.equals(iCurrency)) { return \u00A3; } else if

[android-developers] Zoom controls and WebView

2009-03-04 Thread Mike Collins
I can get the zoom controls to appear in a WebView but they are stuck in one location on the web page. Zooming in too far and the controls move off-screen. Tried this View zc = m_WebView.getZoomControls(); RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams

[android-developers] ADB blue-screen when installing my app

2008-11-20 Thread Mike Collins
The signed, release build .apk works on the emulator just fine. On a 32-bit Windows XP/Pro SP3 box I can get ADB to see the physical phone, e.g. adb devices lists the device. But every attempt to install (adb install .apk) blue-screens the box. Any ideas? tia, mike collins

[android-developers] Re: ADB via USB

2008-11-20 Thread Mike Collins
via USB adb install xxx.apk blue screen Any ideas? TIA, mike collins --~--~-~--~~~---~--~~ 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

[android-developers] Re: ADB blue-screen when installing my app

2008-11-20 Thread Mike Collins
This appears to be due to the USB drivers only working with USB 2 devices, and failing with USB 1 devices. On a Win32 box with both USB ports, using the USB 2 works just fine, using the USB 1 port blue screens every time. mike --~--~-~--~~~---~--~~ You