Re: [android-developers] Re: Simulating USB connection
On 8 October 2010 13:31, DanH danhi...@ieee.org wrote: Maybe you can think of some other way to cause the equivalent juggling of the notification area. The problem is that anny other juggling just works. USB connection crashes each time, so that would be perfect to have this simulated. I may check android sources too, but it's not what I'd like to do now Will keep trying anyway -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Simulating USB connection
Sometimes the charger can be seen by a phone as a computer connection. My Galaxy S sometimes does this - I guess it depends on the angle at which the usb cable is inserted. -- Kostya 07.10.2010 16:26, DanH пишет: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? Do you get the same failure with just a charger? Are you accessing files on the SD chip? On Oct 7, 6:28 am, { Devdroid }webnet.andr...@gmail.com wrote: Hi, Our app seem to misbehave sometimes when user plug USB cable to the device. Is there any way to simulate this event using Android simulator? Since it does not matter what type of USB connection is set (SD card access or just charging) I may just need the OS to think the USB cable has been connected and do what it does on the device. Can I achieve this in any sane way? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Simulating USB connection
On 7 October 2010 14:26, DanH danhi...@ieee.org wrote: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? No. Plug the cable - boom :) That's why I wonder how can I debug this w/o doing extensive logging and hoping it got written to the log. Unfortunately, for obvious reason I can't debug it on device ;) Do you get the same failure with just a charger? Are you accessing files on the SD chip? Not at all. Not even setting sd card access perm. In fact I suspect it got something to do with pull down notification area as once you plug OS adds own icon there and I got custom view there. Some users also reported my app conflict with some 3rd party apps but this is very rare (I never seen that here anyway) I do not know these apps so not sure if do something similar OS does. Anyway, the cable crash happens each time. Once I disable my custom view it's gone. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Simulating USB connection
I managed to narow down the problem and it seems some combinations of Table Layout can hurt when using with RemoteViews? Did not yet found the exact culprit -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Simulating USB connection
RemoteViews are used by home screen widgets. The guide on creating those has this warning: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout A RemoteViews object (and, consequently, an App Widget) can support the following layout classes: FrameLayout LinearLayout RelativeLayout And the following widget classes: AnalogClock Button Chronometer ImageButton ImageView ProgressBar TextView Descendants of these classes are not supported. I don't know if you are creating a home screen widget, but even if not, I'd certain take the above into consideration. -- Kostya 07.10.2010 19:05, { Devdroid } ?: I managed to narow down the problem and it seems some combinations of Table Layout can hurt when using with RemoteViews? Did not yet found the exact culprit -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en