[android-developers] Re: activity and service as a package
Do you have an example of how a single manifest file can do this if both services and activities are of complete diff packages? On Jan 26, 11:05 am, TreKing treking...@gmail.com wrote: On Wed, Jan 26, 2011 at 12:27 PM, Titus titus.mor...@gmail.com wrote: I am making a service which is having its own package name while an activity has a diff package name? That's not a question? is it possible to have a single manifest file which will do the job ? Not only is this possible, it's what you should be doing. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: activity and service as a package
On Wed, Jan 26, 2011 at 1:33 PM, Titus titus.mor...@gmail.com wrote: Do you have an example of how a single manifest file can do this if both services and activities are of complete diff packages? No, because that's not possible, AFAIK. They all have to be in the same package to be in the same app and in the same manifest of that app. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: activity and service as a package
On Wed, Jan 26, 2011 at 2:33 PM, Titus titus.mor...@gmail.com wrote: Do you have an example of how a single manifest file can do this if both services and activities are of complete diff packages? Use a fully-qualified class name in the android:name attributes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- 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: activity and service as a package
On Wed, Jan 26, 2011 at 3:09 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 26, 2011 at 1:33 PM, Titus titus.mor...@gmail.com wrote: Do you have an example of how a single manifest file can do this if both services and activities are of complete diff packages? No, because that's not possible, AFAIK. They all have to be in the same package to be in the same app and in the same manifest of that app. Perhaps I or the OP are getting confused with the multiple definitions of package. If the OP means the package attribute on the manifest element, there can only be one per manifest, by definition. If the OP means the Java package in which the implementation of the activities and services reside, those should be able to be in whatever package you want, with an appropriate android:name attribute for the activity and service elements. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- 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: activity and service as a package
Thank you On Jan 26, 12:15 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jan 26, 2011 at 3:09 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 26, 2011 at 1:33 PM, Titus titus.mor...@gmail.com wrote: Do you have an example of how a single manifest file can do this if both services and activities are of complete diff packages? No, because that's not possible, AFAIK. They all have to be in the same package to be in the same app and in the same manifest of that app. Perhaps I or the OP are getting confused with the multiple definitions of package. If the OP means the package attribute on the manifest element, there can only be one per manifest, by definition. If the OP means the Java package in which the implementation of the activities and services reside, those should be able to be in whatever package you want, with an appropriate android:name attribute for the activity and service elements. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2 -- 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