Using few Activity with different modules

mrjaw

Active Member
Licensed User
Longtime User
hi!
I am a developing an app with a few activity. Each activity is a different option and process in my app. My question is
I can associate a different activity to a module?
Something like B4windows. I mean, I create a module and in this module I add all activity that I need.

Example:

User :________
Pass:_________

[OK] [Cance]

It is my first activity, the second is another activity with Tabhost
 

rfresh

Well-Known Member
Licensed User
Longtime User
Each Activity is a different screen. So in your example it would be natural to have an Activity called Login. In the OK button click event for that Activity, you can process the login and check the username and pw, etc. You can also add your code in the Cancel button click event to cancel out.

You can associate any Module with any other module you want.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I mean, I create a module and in this module I add all activity that I need.
No, each Activity has its own module.

For your first 'screen', just for User and Pass, I would either use a CustomDialog or a Panel.

Best regards.
 
Upvote 0
Top