[android-developers] [RESOLVED] Use resource from library project in another library project
Went away on its own, somehow... On Tuesday, February 9, 2016 at 5:01:09 PM UTC+2, Eran Berkovitz wrote: > > Hi, > > I'm currently splitting my current library project, to 3 projects. > So basically, I want to have *com.my.libA,* *com.my.libB* which both > depend on *com.my.lib_common*. > > In addition, I want to have *com.my.lib_common* hold resources which will > be used by the other two. > > Finally, there's an *application* project which depends on *com.my.libB*. > > But here is where I fail. > > I can use *R.string.some_string* from my common library in the other two > but then I get an *exception at runtime* saying "No static field > some_string of type I in class Lcom/my/libB.R$string; or its superclasses > (declaration of 'com.my.libB.R$string' appears in > /data/app/com.my_domain.app-1/base.apk)". > > On the other hand, if I use *com.my.lib_common.R.string.some_string*, I > get a compilation error. > > Am I missing something? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/8c866f62-fddd-4651-9f5b-408669e65698%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Use resource from library project in another library project
Hi, I'm currently splitting my current library project, to 3 projects. So basically, I want to have *com.my.libA,* *com.my.libB* which both depend on *com.my.lib_common*. In addition, I want to have *com.my.lib_common* hold resources which will be used by the other two. Finally, there's an *application* project which depends on *com.my.libB*. But here is where I fail. I can use *R.string.some_string* from my common library in the other two but then I get an *exception at runtime* saying "No static field some_string of type I in class Lcom/my/libB.R$string; or its superclasses (declaration of 'com.my.libB.R$string' appears in /data/app/com.my_domain.app-1/base.apk)". On the other hand, if I use *com.my.lib_common.R.string.some_string*, I get a compilation error. Am I missing something? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/8d68aac4-f3da-4403-9f37-10c29d957ba9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] how to get info from a clicked textView?
i set up a TagActivity that has 4 tags, each tag sets the content of a large tableView that holds about 15 textViews Im trying to find a way to get the tag info aswell as the textView info as a return String now i can basicly compare all of the 60 ids one by one, but it seems too long. is there any other way? there was no getText from the selected view, and i cant do much with the id unless i compare it to the r.id so how can i know which textView i'v clicked? -- 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] Event handlers - 1. design time, 2. two different and not anonymous
Im new to the eclipse(Indigo) and android . I do come from the Visual Studio 2010 and C#. 1. In the VS when i double clicking an event in the designer (like the click of the Button class) the VS2010 create but itself the handler method. how can I do it in the eclipse? 2. the event handler registered in the designer(XML). is it possible in here? 3. lets say I have 2 buttons, how do i set to different event handler for each one of them, and not in the anonymous way? 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en