[android-developers] Re: Galaxy Nexus can't go in USB Host mode, no mouse no usb stick.

2011-11-22 Thread Bret Foreman
What does the logcat say? On Nov 22, 2:24 pm, sblantipodi wrote: > As title. > Is there some android engineer here who can explain me why > galaxy nexus isn't able to go into usb host mode please? > > I connected mouse, keyboards, usb stick, nothing works. > WHy? > > Thanks. -- You received thi

[android-developers] Re: Extreme battery life

2011-11-22 Thread Bret Foreman
On Nov 22, 3:33 pm, "Tommy Hartz" wrote: > Have you considered a solar phone charger? > The environment is too dirty for a solar charger. It doesn't take much dust to cut the panel efficiency down to almost nothing. -- You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: C/C++ struct in android

2011-11-24 Thread Bret Foreman
If the OP is really concerned about performance he can create an array of objects and implement his own protocol for reusing them. Then after the initial creation of the array, no objects need to be either created or destroyed. -- You received this message because you are subscribed to the Google

[android-developers] Re: C/C++ struct in android

2011-11-24 Thread Bret Foreman
On Nov 24, 11:44 am, Lew wrote: > Bret Foreman wrote: > > > If the OP is really concerned about performance he can create an array > > of objects and implement his own protocol for reusing them. Then after > > the initial creation of the array, no objects need to

[android-developers] VerifyException with Android library project

2011-12-08 Thread Bret Foreman
I have some Java code that I "ported" to Android. I created an Android project and imported the source files and also set the "is library" flag. Then, in the project that uses the new library, I added the appropriate imports, added the library project to the build path, and added the library to the

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
Here's an example of what I see in the logcat: 12-08 11:04:01.119: W/dalvikvm(949): VFY: unable to find class referenced in signature (Lcom/pachube/jpachube/Feed;) 12-08 11:04:01.139: E/dalvikvm(949): Could not find class 'com.pachube.jpachube.Data', referenced from method com.sensor2cloud.pachtes

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
No, the classes are wrappers around a web service. Nothing to do with Android system components. On Dec 8, 2:48 pm, TreKing wrote: > On Thu, Dec 8, 2011 at 4:40 PM, Bret Foreman wrote: > > However, at runtime I'm getting a VerifyException for each of the three > > classes t

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
rc and gen directories. On Dec 8, 3:00 pm, TreKing wrote: > On Thu, Dec 8, 2011 at 4:54 PM, Bret Foreman wrote: > > No, the classes are wrappers around a web service. Nothing to do > > with Android system components. > > Is there a need for a Library Project then? A standa

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
I guess I could just create a Java project rather than an Android project and then include the external jar in the Android project build. This might make debugging rather tricky, though. I'm not sure the debugger will know where to find the sources. -- You received this message because you are su

[android-developers] Re: Android emulator is crashing upon startup

2011-12-08 Thread Bret Foreman
I've seen a problem similar to this after I updated my dev environment. I solved it by deleting and recreating the AVD, which is really a 30 second process. I'd start with that and see if it fixes your problem. -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
Kostya, That seems possible. The Java code was written without any idea that it would ever run on Android. But how would I tell from the logcat what standard Java API it might be using that is unsupported by Android? So far, I only see the VerifyException for the actual classes I'm trying to insta

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
kris, Then we're back to the project/library setup. The project builds without errors or warnings, yet fails at runtime. But as far as I know, there are very few steps in setting up and using an Android project and I've gone through the ones described in my OP. I'm looking for ideas of what else

[android-developers] Re: VerifyException with Android library project

2011-12-09 Thread Bret Foreman
then the resulting build is non-functional. On Dec 8, 5:03 pm, TreKing wrote: > On Thu, Dec 8, 2011 at 6:05 PM, Bret Foreman wrote: > > I'm looking for ideas of what else I might try. > > Some stuff I'd try. > 1 - Add a new class to the library and try to instantia

[android-developers] Re: VerifyException with Android library project

2011-12-09 Thread Bret Foreman
kris, You're right, a "bug" is not an accurate way to describe a hard-to- diagnose failure mode that may be due to a possible platform misconfiguration. Perhaps we should call it "job security for Android developers". My main point was to document a possible workaround in the forum in case others

[android-developers] "Converting to string" warning in preferences

2011-12-20 Thread Bret Foreman
I'm getting the following warnings in the logcat when I start my PreferencesActivity. It looks like I've got some data-type issues in my preferences.xml file. I'm guessing I could hunt in R.java somewhere but I took a look and nothing stands out. How do I interpret these warning messages to find th

<    1   2   3   4   5   6