Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 07-23-2010, 12:49 AM   #1
New Member
 
Join Date: Jul 2010
Location: Indore
Posts: 11
Friends: 0
View Ankit2502's Profile   View Ankit2502's Photo Album   View Ankit2502's Blog   View Social Groups
Hello Friends,

I am a beginner into a Android world and i need some help of you guys...I want to know that a very simple things that using multiple Activity and view in one application is good or not..Tell me which is good

1.Using one Activity with multiple layouts for multiple view.
2. Using Multiple Activity with multiple layouts for multiple view.

I know this is very silly question but i want to know desperately.

Waiting for reply.

Thank You
Ankit2502 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 07-24-2010, 03:44 AM   #2
New Member
 
Join Date: Jul 2010
Posts: 11
Friends: 0
View Bryter layter's Profile   View Bryter layter's Photo Album   View Bryter layter's Blog   View Social Groups
I think it is more a question of how you want your architecture rather than what's good or bad.

using more activities will:
* Consume more resources (memory, cpu, ..) since activities will be bigger when instantiated and so on.
* force you to consider how you want to handle the life-cycles of the different activities. Which starts which, how to handle back hard key behavior, etc.
* Lets you draw benefit of the activity part of the Android framework. You can e.g. directly specify attributes for each activity in the manifest file or you can use flags, intent filters and so on to control your activities.
Bryter layter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move from one activity to other in android application ritusingh Android Development, Answers, Tutorials, and Code Snippets 2 09-07-2010 06:48 AM
Enjoy a Good Sleep with a Free Android Application-"Brainwave Tuner" Jason J Android Games And Applications 2 03-26-2010 03:30 AM
Enjoy a Good Sleep with a Free Android Application-"Brainwave Tuner" Jason J Android Games And Applications 0 03-25-2010 01:12 AM
How can i send Activity object to another activity through intent? santosh.1243 Android Development, Answers, Tutorials, and Code Snippets 2 06-28-2009 10:08 PM
Is there a way to delete multiple, but not all texts on the g1? Jaelynn Android Chat 0 03-07-2009 12:41 PM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.