0

I am starting to develop an application for Android and was wondering what the common application design/structure looks like.

In iOS, I would generally start with a RootController which contains a UITabBarController and fill this with 4-5 UINavigationControllers. Each UINavigationController would contain its stack with UIViewControllers.

What would a similar application look like for Android?

asked Aug 22, 2011 at 2:35

4 Answers 4

1

Start reading here. The basic building block is an Activity, you setup your UI, display data and respond to events in your Activity classes. Screen navigation is handled by starting other activities using intents.

answered Aug 22, 2011 at 2:46
Sign up to request clarification or add additional context in comments.

Comments

0

I lay out my activities and my activity xml files. Then I code in the components that are needed in the activity classes. Then I set up preferences and my submenu etc. From there I do my support classes and glue it all together.

answered Aug 22, 2011 at 2:45

Comments

0

Egil.. The Android way is significantly different from the iOS way in that it is more like a web interface.

First: "Activities" or UIs can be killed at any time. In fact, rotating the phone can kill an activity. So that each Activity needs to be able to save its state in onSaveInstanceState and restore state in onResume. Furthermore, "shared document like data" is written in onPause() and restored in onResume(). The closest analogy in iOS is saving state on low memory warning.

Second: Activities are relatively independent of each other so that state needs to be passed between Activities (UIs) using intents or saved globally using say Application state.

It is possible to quickly move an iOS TabBar to Android using Androids Options menu, but there is no built in hierarchy of views like UINavigationController.

I have a table comparing and contrasting iOS and Android here.

answered Aug 22, 2011 at 2:46

Comments

0

Take a look at Android Design in Action, they have great video lessons on how to design Android apps!

answered Mar 10, 2014 at 10:11

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.