Forum Xamarin.Android

Are Activity & Intent the only way to create new UX

Are Activities and Intent the only way one can create new UX?

I'm new to Android, hence the noob question.

On most other UI platforms you simply create the new view, set a couple of properties, and show the view.

For android, Activities and Intents abstract this away to the point of lowering fidelity between different UI components. I can understand the value of Activities for cross process IPC, but for within process, it's a terrible.

I assume I am missing something, this Activity and Intent pattern makes about as much sense is Microsoft's WPF -- another retarded programming paradigm.

Please set me straight, tell me I'm wrong and there's an easier way.

Posts

  • FZelleFZelle DEMember ✭✭✭

    Yes, you are still stuck in Android 1.x.
    Start using Fragments.

    I assume I am missing something, this Activity and Intent pattern makes about as much sense is Microsoft's WPF -- another retarded programming paradigm.

    [RantOn]If you don'tz get the concepts, it is allways hard.[/RantOn]

  • HotBridgeHotBridge GBMember

    What exactly is retarded with WPF?
    What do you consider "decent" UI technology?

  • SKallSKall USMember ✭✭✭✭

    John, using MVVM pattern instead of MVC greatly helps in dealing with Activities. Create a singleton view model for the activity and load/save the values from/to there.

  • DWestyDWesty USMember ✭✭

    Like WPF uses MVVM.. Android naturally (IMO) is MVP. Take advantage of what it gives you and stop trying to work against the framework and the OS. You can write as much UI code as you want. You can even add and remove Views on the fly depending on state. But wouldn't it be better if you could decouple all of your individual pieces? Fragments have been a boon to the Android developer and as scary as their lifecycle diagram looks they really aren't that bad.

Sign In or Register to comment.