@Zigurd: Using Intents is fine and I'm using that as well. But my question was more about creating a LinearLayout and adding child views to it outside an Activity (like in a regular Java class) and then spawning an Android Activity based on certain parameters (say some parameters derived from a server script). So in some cases it should create 1 LinearLayout and pass to an Activity (how??? i'm not even sure if this is possible at all) and in some cases it mite spawn a TabActivity and pass it 'n' (say 3) LinearLayouts. The main idea was to create a View outside an Activity and then pass it to the Activity. >From what I gathered this is not possible currently right?
On Mon, Mar 1, 2010 at 8:54 AM, Zigurd <[email protected]> wrote: > I'm sure you are starting to see that what you thought of doing was > made intentionally difficult. > > The reason is that, if you do it right, taking the code for an > activity and moving it to another application is easy. It's part of > Android's modularity. The data you pass using an Intent object, and > "return" using Activity.setResult(int, Intent), enables one Activity > to ask another to perform an operation, like cropping an image or > editing an audio clip, and return the result. > > This is meant to work across applications about as readily as it works > within an application. The documentation for the Intent class > describes the standard actions, categories, etc. you can match to in > your intent filters to enable your application to provide > functionality to other applications, and how you can use those > parameters to find Activity objects in other applications that will do > things for you. > > But this is turning into more of a beginner topic. I thought you might > be getting at something else. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. ... Albert Einstein. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Aniruddh Bajirao http://myblog.abajirao.com/myblog -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

