[android-developers] Re: add an activity pragmatically in Menifest.xml
The PackageManager allows you to retrieve information about application components. I don't really know exactly what you are asking for to help more. On Tue, Aug 11, 2009 at 10:14 PM, Atif Gulzar atif.gul...@gmail.com wrote: is not it an extra task for client to list all activities provided by my Lib? -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 10:41 AM, Dianne Hackborn hack...@android.comwrote: Yes, all activities, services, receivers, and providers must be declared in the manifest. On Tue, Aug 11, 2009 at 9:05 PM, Atif atif.gul...@gmail.com wrote: suppose my library has some activities. Do I need to register these activities in client menifest file? Thanks On Aug 10, 6:10 pm, Andrei Bucur andrei.bu...@gmail.com wrote: This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path - Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at 2:54 PM, Atif atif.gul...@gmail.com wrote: Hi, I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? Actually I am developing a component (Library) that other users can plugged with their programs. Best regards, Atif -- Dianne Hackborn Android framework engineer hack...@android.com 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. -- Dianne Hackborn Android framework engineer hack...@android.com 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. --~--~-~--~~~---~--~~ 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: add an activity pragmatically in Menifest.xml
Atif Gulzar wrote: is not it an extra task for client to list all activities provided by my Lib? Yes. Libraries are not designed for having many activities. Bear in mind also that your library cannot package any resources, making activities that much more difficult to package in a library. You can see a library that I package with an activity here: https://github.com/commonsguy/cwac-custmenu/tree Anyone using this library will need to both list my MenuCustomizer activity in their manifest, but also pass in a couple of resource IDs by integer extras on the launching Intent, to get around the fact that MenuCustomizer cannot have its own resources. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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: add an activity pragmatically in Menifest.xml
suppose my library has some activities. Do I need to register these activities in client menifest file? Thanks On Aug 10, 6:10 pm, Andrei Bucur andrei.bu...@gmail.com wrote: This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path - Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at 2:54 PM, Atif atif.gul...@gmail.com wrote: Hi, I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? Actually I am developing a component (Library) that other users can plugged with their programs. Best regards, Atif --~--~-~--~~~---~--~~ 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: add an activity pragmatically in Menifest.xml
Yes, all activities, services, receivers, and providers must be declared in the manifest. On Tue, Aug 11, 2009 at 9:05 PM, Atif atif.gul...@gmail.com wrote: suppose my library has some activities. Do I need to register these activities in client menifest file? Thanks On Aug 10, 6:10 pm, Andrei Bucur andrei.bu...@gmail.com wrote: This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path - Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at 2:54 PM, Atif atif.gul...@gmail.com wrote: Hi, I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? Actually I am developing a component (Library) that other users can plugged with their programs. Best regards, Atif -- Dianne Hackborn Android framework engineer hack...@android.com 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. --~--~-~--~~~---~--~~ 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: add an activity pragmatically in Menifest.xml
is not it an extra task for client to list all activities provided by my Lib? -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 10:41 AM, Dianne Hackborn hack...@android.comwrote: Yes, all activities, services, receivers, and providers must be declared in the manifest. On Tue, Aug 11, 2009 at 9:05 PM, Atif atif.gul...@gmail.com wrote: suppose my library has some activities. Do I need to register these activities in client menifest file? Thanks On Aug 10, 6:10 pm, Andrei Bucur andrei.bu...@gmail.com wrote: This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path - Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at 2:54 PM, Atif atif.gul...@gmail.com wrote: Hi, I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? Actually I am developing a component (Library) that other users can plugged with their programs. Best regards, Atif -- Dianne Hackborn Android framework engineer hack...@android.com 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. --~--~-~--~~~---~--~~ 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: add an activity pragmatically in Menifest.xml
Atif wrote: I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? It is not possible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ 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: add an activity pragmatically in Menifest.xml
This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path - Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at 2:54 PM, Atif atif.gul...@gmail.com wrote: Hi, I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? Actually I am developing a component (Library) that other users can plugged with their programs. Best regards, Atif --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---