Wednesday, June 30, 2010

[android-developers] Re: Can I start a new activity that’s not specified in the AndroidManifst.xml file?

If you're doing what I think you're doing -- do not use a new class
for each activity.

Instead, use a single wrapper class, that instantiates and invokes
your dynamic class. Pass the name of the class to load and run as an
extra value in your intent -- or possibly include it in the getData()
field as a part of the URI, if it's implementing a part of a namespace
in some way.

On Jun 25, 7:00 pm, Snap <snap4...@gmail.com> wrote:
> I'm trying to write some dynamic code that I load a new class that's
> supposed to be an Activity and I want to start it, but using the
> regular startActivity(Intent) wants the Activity to be "Declared" in
> the AndroidManifest.xml file.
>
> Any clue?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate