[Solved] Making an GoBack

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

[Solved] Making an GoBack

Postby felix » Wed Feb 20, 2008 8:24 pm

In my game, the player have many screens to enter, and I need an button with go to the main screen.

the
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. setContentView(R.layout.main);
Parsed in 0.029 seconds, using GeSHi 1.0.8.4


not works succefully, the image and the spinner is empty in the setContent.

Can you help me?

thanks
felix
Junior Developer
Junior Developer
 
Posts: 18
Joined: Thu Feb 14, 2008 4:25 pm
Location: Brasil

Top

Postby plusminus » Wed Feb 20, 2008 9:49 pm

Hello felix,

you are providing very little information on your problem.
How are you "moving" from one Activity to another :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby felix » Wed Feb 20, 2008 10:09 pm

no,
I'm using only the XML file and trying to change beetween us.
felix
Junior Developer
Junior Developer
 
Posts: 18
Joined: Thu Feb 14, 2008 4:25 pm
Location: Brasil

Postby plusminus » Wed Feb 20, 2008 11:01 pm

Hello felix,

i do not know your setup, but I would prefer to separate into different Activities.
It is easy to achieve and works almost without delays.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby felix » Thu Feb 21, 2008 12:13 pm

How I can change between different activies?

I make two class with extends Activity, add this in the Manifest, but i'm not know who change between the activies


Sorry for my poor english

thanks
felix
Junior Developer
Junior Developer
 
Posts: 18
Joined: Thu Feb 14, 2008 4:25 pm
Location: Brasil

Postby Jesmiatka » Thu Feb 21, 2008 12:43 pm

Hi,

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                         intent = new Intent(<currentclassname>.this, <classToLaunch>.class);
  2.  
  3.                         startActivity(intent);
  4.  
  5.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


so for example

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                         intent = new Intent(Navigation.this, MyIssues.class);
  2.  
  3.                         startActivity(intent);
  4.  
  5.  
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
Jesmiatka
Senior Developer
Senior Developer
 
Posts: 164
Joined: Mon Feb 04, 2008 3:37 pm
Location: Netherlands

Top

Postby felix » Thu Feb 21, 2008 12:50 pm

Goal,

it's working.

Thanks for all
felix
Junior Developer
Junior Developer
 
Posts: 18
Joined: Thu Feb 14, 2008 4:25 pm
Location: Brasil

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests