Sub Activity

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

Sub Activity

Postby wahid2oo9 » Tue Mar 08, 2011 2:27 am

Hi,

Can anyone give me the tutorial or source code for sub activity to activity.

I want an sub activity with text/images in it to go to an activity at a certain time, like for an example,
Im on main activity & after 2seconds my main activity gets a image to it and the user clicks the image then it takes him to another actuvity.

Im having trouble finding the right code for this.

Thank You
Wahid
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Top

Re: Sub Activity

Postby igorski88 » Tue Mar 08, 2011 6:01 am

I believe what you are looking for is a splash screen.

you can find the Tutorial here:
http://www.anddev.org/simple_splash_screen-t811.html
igorski88
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sun Feb 27, 2011 9:03 pm

Re: Sub Activity

Postby raj_J2ME » Tue Mar 08, 2011 7:02 am

This article too can be of any help,
http://www.anddev.org/simple_splash_screen-t811.html
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Sub Activity

Postby wahid2oo9 » Tue Mar 08, 2011 7:35 am

Ok i think u didnt get what i meant, i have splashscreen, but splashscreen just flashes to the next activity, i want something like if a user click a button he wont tell his on the next one,
like the Moron Test game, it asks the user to touch red, blue, green and when the user does that, his still in the same page but colors just change...

do u understand what i mean ?
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Re: Sub Activity

Postby raj_J2ME » Tue Mar 08, 2011 11:19 am

wahid2oo9 wrote:Ok i think u didnt get what i meant, i have splashscreen, but splashscreen just flashes to the next activity, i want something like if a user click a button he wont tell his on the next one,
like the Moron Test game, it asks the user to touch red, blue, green and when the user does that, his still in the same page but colors just change...

do u understand what i mean ?

That means you don't wanna load the next activity on the button pressed?
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Sub Activity

Postby wahid2oo9 » Tue Mar 08, 2011 1:24 pm

Hmm.. i think wat u said not sure loadin results without changing activities?

Sorry let me start again.

I created a game and in the activity i created a question that has answers.

Activity one
Question - touch in order house, dog then cat
Answers shown - dog, cat house

User has to touch in order the house, dog then cat
Once the user touches a answer, the same acitivity still remains and he can still press buttons on the activity but the answers are shown the other way around. Example: house, dog, cat

LOLL do u get me now :/

Play the Moron Test and you will understand what i mean.
Thanks for the help man
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 20 guests