Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - StartActivity is returning a NullPointException

StartActivity is returning a NullPointException

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

StartActivity is returning a NullPointException

Postby Skeniver » Thu Aug 06, 2009 11:26 am

Hi there

I am trying to run an activity when a button is clicked. It was running earlier, and I can't find what might be causing it...

I execute startActivityForResult(i, ADD_USER);

and before it gets to the NewUser activity, it is giving the null pointer exception before opening the NewUser.class.

I have an AddComputer class that runs on selecting a menu option just fine doing the exact same thing.

The new user activity is in the manifest, and as I say it was running just fine earlier...

Any ideas on what I could check?

Would posting any code help? There is quite a bit all over the place, so I wasn't sure what might be useful...

Thanks in advance!
User avatar
Skeniver
Senior Developer
Senior Developer
 
Posts: 106
Joined: Tue Feb 03, 2009 3:51 pm
Location: Canterbury, UK

Top

Postby sudheer1437 » Tue Aug 18, 2009 10:33 pm

Sorry for late reply...

U need to add the activity in androidmanifest.xml after the first activity ends.

<activity android:name=".NewUser"/>


hence solves the NullPointerException
sudheer1437
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Sat Aug 08, 2009 7:42 am
Location: India

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests