[android-developers] Re: SDK 1.5 and multiple projects in an application
Hello, I am in a similar situation. I have a project with a service and I am binding to the service from a different application in different package. I got this whole setup working on Android SDK 1.1. However it is not working in Android 1.5, even when I pick out 1.1 to be used. The emulator fails to lauch my second application (activity trying to bind to the service). The error looks I/ActivityManager( 52): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x1020 comp= {com.xyz.client/com.xyz.client.clientActivity} } I/ActivityManager( 52): Start proc com.xyz.client for activity com.xyz.client/.clientActivity: pid=725 uid=10024 gids={} I/jdwp( 725): received file descriptor 10 from ADB W/dalvikvm( 725): Unable to resolve superclass of Lcom/xyz/client/ clientActivity$1; (19) W/dalvikvm( 725): Link of class 'Lcom/xyz/client/clientActivity$1;' failed E/dalvikvm( 725): Could not find class 'com.xyz.client.clientActivity $1', referenced from method com.xyz.client.clientActivity.init I cannot make the first project to be java project. How do I resolve this issue? Thanks Rashmi. -- Forwarded message -- From: sktech info.sktechnol...@gmail.com Date: Apr 16, 6:47 am Subject: SDK 1.5 and multiple projects in an application To: Android Developers So, what is the preferred way to share android-aware code between applications? On Apr 15, 8:32 pm, Xavier Ducrohet x...@android.com wrote: On Wed, Apr 15, 2009 at 6:27 PM, sktech info.sktechnol...@gmail.com wrote: Thanks Xavier, that is exactly the situation. Can I assume that future releases will allow my android project to reference other standard Java projects? yes, we are not planning on removing this feature, as it's a lot easier to use during development than using a jar file. Xav -- Xavier Ducrohet Android Engineer, Google. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: SDK 1.5 and multiple projects in an application
So, what is the preferred way to share android-aware code between applications? On Apr 15, 8:32 pm, Xavier Ducrohet x...@android.com wrote: On Wed, Apr 15, 2009 at 6:27 PM, sktech info.sktechnol...@gmail.com wrote: Thanks Xavier, that is exactly the situation. Can I assume that future releases will allow my android project to reference other standard Java projects? yes, we are not planning on removing this feature, as it's a lot easier to use during development than using a jar file. Xav -- Xavier Ducrohet Android Engineer, Google. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: SDK 1.5 and multiple projects in an application
Hello, I'm guessing your 2 projects are android (created by ADT) projects? If your Android project references a standard Java project, then the reference project output is added to your Android project. Unfortunately, older versions of ADT would also do this for referenced projects that are also Android project. This should never have happened, as Android projects compile against their own resources (their own R.java), which would conflict with the id values defined in the R.java of the referencing project. To fix this, you need to make sure the referenced projects only contain non Android code, and is a standard java project. Xav On Tue, Apr 14, 2009 at 9:34 AM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: I have an application with 2 projects. Works fine in SDK1.1 and compliles fine in SDK 1.5. I am still using the 1.1 target. But when I try to run it on the emulator in 1.5 it crashes. Logcat indicates that it cannot find the classes of the second project. Is there something special I need to do with 1.5 that was not necessary for 1.1? Applications with only one project seem to run OK in 1.5. -- Xavier Ducrohet Android Engineer, Google. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: SDK 1.5 and multiple projects in an application
Thanks Xavier, that is exactly the situation. Can I assume that future releases will allow my android project to reference other standard Java projects? On Apr 15, 4:06 pm, Xavier Ducrohet x...@android.com wrote: Hello, I'm guessing your 2 projects are android (created by ADT) projects? If your Android project references a standard Java project, then the reference project output is added to your Android project. Unfortunately, older versions of ADT would also do this for referenced projects that are also Android project. This should never have happened, as Android projects compile against their own resources (their own R.java), which would conflict with the id values defined in the R.java of the referencing project. To fix this, you need to make sure the referenced projects only contain non Android code, and is a standard java project. Xav On Tue, Apr 14, 2009 at 9:34 AM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: I have an application with 2 projects. Works fine in SDK1.1 and compliles fine in SDK 1.5. I am still using the 1.1 target. But when I try to run it on the emulator in 1.5 it crashes. Logcat indicates that it cannot find the classes of the second project. Is there something special I need to do with 1.5 that was not necessary for 1.1? Applications with only one project seem to run OK in 1.5. -- Xavier Ducrohet Android Engineer, Google. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: SDK 1.5 and multiple projects in an application
On Wed, Apr 15, 2009 at 6:27 PM, sktech info.sktechnol...@gmail.com wrote: Thanks Xavier, that is exactly the situation. Can I assume that future releases will allow my android project to reference other standard Java projects? yes, we are not planning on removing this feature, as it's a lot easier to use during development than using a jar file. Xav -- Xavier Ducrohet Android Engineer, Google. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---