Thanks for the reply Dianne, okay, will try to look at that approach. However, say it is not compiled as a separate shared library, why is it it not working on Windows emulator when it works fine on Ubuntu? Why doesn't simply copying over the jar files work? I understand this is probably not the preferred practice, but just need some understanding why it doesn't work and if there's any way to fix that.
MB On Mar 15, 7:38 pm, Dianne Hackborn <[email protected]> wrote: > I would strongly recommend that you provide your public API as a separate > shared library (like the PlatformLibrary sample) that applications link > against, rather than building your own framework JAR. That is the supported > way of adding new APIs, as it allows developers to build against the > standard framework + your APIs as an ADT plugin, and ensures that > applications properly declare the additional libraries/APIs they need. > > > > > > On Mon, Mar 15, 2010 at 7:34 PM, MBethDev <[email protected]> wrote: > > Hello, > > > I'm not sure if this is the right forum to ask, but I'll ask anyway in > > case someone knowledgeable might know this: > > > I recently added some functionality in the android framework code > > (more specifically I *added* a new class that encapsulates this > > functionality that I'm trying to write, and I'm using android-1.6), > > built it on Ubuntu, and was able to run an application that uses that > > functionality on the Ubuntu emulator. However, when I tried to import > > the framework images as well as the android.jar file over to my > > windows environment (where I code most of the time), the compilation > > failed (I'm using Eclipse on Windows to build my application). I'm > > getting the following errors: > > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:6: ERROR > > Error retrieving parent for item: No resource found that matches the > > given name 'android:style/Theme.Translucent'. > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:9: ERROR > > Error: No resource found that matches the given name: attr > > 'android:colorForeground'. > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:10: ERROR > > Error: No resource found that matches the given name: attr > > 'android:windowAnimationStyle'. > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:7: ERROR > > Error: No resource found that matches the given name: attr > > 'android:windowBackground'. > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:8: ERROR > > Error: No resource found that matches the given name: attr > > 'android:windowNoTitle'. > > > I basically copied the three *.img files to the platform img folder on > > Windows, copied the android.jar file as well as the platform/ > > android-1.6/data directory that was created when I ran "make sdk" on > > Ubuntu, and still get these errors. Am I missing something here? If > > anyone can help me I will truly appreciate it. > > > MBeth > > > -- > > unsubscribe: > > [email protected]<android-porting%2bunsubscr...@googlegroups.com> > > website:http://groups.google.com/group/android-porting > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them.- Hide quoted text - > > - Show quoted text - -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
