Check if information was passed through activities

Put your problem here if it does not fit any of the other categories.

Check if information was passed through activities

Postby pedroteixeira07 » Tue Jun 08, 2010 12:48 pm

Hello there,

I have an activity that makes a search to a database and if a picture exists, it creates an intent that passes the Parseable to another Activity.. how can I make a condition in this new activity to check if the intent is empty or not? Or maybe to see if any content was passed?

Basically I'm searching for a snippet that tell's me:
-If a picture was passed on the intent I execute a snippet of code on the new activity.
-If no picture was passed on the intent I execute another snippet of code on the new activity.

Can someone help me? Thank you in advance.
pedroteixeira07
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Sun Oct 18, 2009 6:06 pm
Location: Funchal

Top

Re: Check if information was passed through activities

Postby pskink » Tue Jun 08, 2010 3:09 pm

hasExtra
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Re: Check if information was passed through activities

Postby pedroteixeira07 » Tue Jun 08, 2010 4:27 pm

Thank You very much
pedroteixeira07
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Sun Oct 18, 2009 6:06 pm
Location: Funchal

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 30 guests