Activity or Layout

tboy

Member
Licensed User
Longtime User
What is the best solution, I am creating a fitness application with several
menu screens, i.e.

Screen1: TitleScreen
Screen2: ExerciseList
Screen3: VideoView (to view exercise)

Currently I am using an Activity for each menu screen, would you use an activity for each screen or use a layout for each screen but only one activity.

Many thanks for your suggestions.
 

mangojack

Expert
Licensed User
Longtime User
I was about to ask the same .. do I think of activities as VB Forms ??

My project consists of a main activity module and 3 class modules.
The Main activity consists of Tabhost (3 Tabs) , the first tab holds 3 panels with many views , the other 2 tabs mainly 1 panel holding very large customListViews,

There is now 2000 lines of code in the main activity.

Is this acceptable / OK as far as performance goes or should I be trying to break things up to other activities. The app runs fine ... although i am aware I will have to reduce image sizes ect. in the CLV's

coming from vb i still cant get a clear picture of when More layouts or more Activities

Many thanks Cheers mj
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
I tend to think of activities in exactly the same way I think of vb forms. The more complicated the project, the more forms/activities.
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
mc73 and Erel .. many thanks. Ill have a read up on the Services part.

Merry Christmas to all ...

Cheers mj
 
Upvote 0

tboy

Member
Licensed User
Longtime User
Ah good stuff, many thanks for your help, I will implement the way that is suggested!

also Merry Christmas!

:)
 
Upvote 0
Top