Android setContentView or Intents? -


i have simple 2 screen android app.

is there downside switching out layouts via setcontentview or should using intents?don't want bugger app if wrong this.

well stated on android dev http://developer.android.com/reference/android/content/intent.html

an intent provides facility performing late runtime binding between code in different applications. significant use in launching of activities, can thought of glue between activities. passive data structure holding abstract description of action performed.

therefore if 2 screens 2 different applications want use setcontentview.

it simplify code when want pass info 1 other views


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -