Hi

1. Basically the error mean I did not declare activity in manifest
where generate this error when I start activity... What I intent to do
is to start activity without declare it at manifest... How can I hard
code those manifest info inside my code to start an activity?

2. 2nd problem is my ApplicationContext.java in android.jar say got
nullpointer error at line 291... How can I know what the error
about??? How can solve it with those little info???

my objective is to start an activity(this activity will not declare it
at manifest) dynamically... Set the new Resources for the activity...
Any one know??? Please guide me some way...

wesley.

On 6/7/08, hackbod <[EMAIL PROTECTED]> wrote:
>
> This isn't enough information; could you post the full stack crawl
> (found in the log)?
>
> Also, PLEASE don't use package names like "com.google.*" for your
> manifest.  That is Google's namespace, not your own.
>
> On Jun 6, 1:14 am, Wesley <[EMAIL PROTECTED]> wrote:
>> DEBUG/dalvikvm(5916): Exception Ljava/lang/NullPointerException; from
>> ApplicationContext.java:291 not caught locally
>>
>> INFO/INFO(5916): ERROR java.lang.reflect.InvocationTargetException
>>
>> How to solve this " ApplicationContext.java:291"
>> java/lang/NullPointerException Error???
>> if I dunno what is the error come from???
>>
>> Wesley.
>>
>> On Mon, Jun 2, 2008 at 6:15 PM, Mark Murphy <[EMAIL PROTECTED]>
>> wrote:
>>
>> > Wesley wrote:
>> > > I got this error...
>>
>> > > ERROR android.content.ActivityNotFoundException: Unable to find
>> > > explicit
>> > > activity class {com.google.apk/com.google.android.AirStrike}; have you
>> > > declared this activity in your AndroidManifest.xml?
>>
>> > > mean I need to set those activity in manifest...
>> > > is there anyway I can just set it to my code without define in
>> > > manifest... and run it...???
>>
>> > Not as an activity. As far as I know, activities must always be declared
>> > in the manifest.
>>
>> > If your goal is that you want a different UI to appear under certain
>> > circumstances, but that different UI is not set up as an activity at
>> > compile time, you might consider trying ViewFlipper. ViewFlipper behaves
>> > like a tabbed window minus the tabs (think CardLayout from Java/Swing).
>> > You could add new views at runtime to the flipper and flip to the right
>> > page as needed, instead of trying to start up a non-activity as if it
>> > were an activity.
>>
>> > --
>> > Mark Murphy (a Commons Guy)
>> >http://commonsware.com
>> > Android Training on the Ranch in September!http://www.bignerdranch.com
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to