Android Question New activity module

Carthalion

Member
Licensed User
Longtime User
What code can I use to open a new activity? In other words, I have two screens. From the main screen, I want to click a button and have a new screen open.
 

Mark Read

Well-Known Member
Licensed User
Longtime User
B4X:
StartActivity(The name of your activity)

Please note, this is a very basic question. You should really read the beginners guide - here.

A second possibility is to use a panel which you can hide/unhide at will in the same activity.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
@Carthalion , you really should use the tools available in the forum before posting questions as basic as this one..

- activities life-cycle
- beginners guide
- the tutorials sub-forum (specifically the 2 activities example)
 
Upvote 0

Carthalion

Member
Licensed User
Longtime User

Hi fixit30, I appreciate the response. I was pretty sure it is a basic question, but I have been scanning the beginners guide, searching forums etc. for two days. I finally gave up and asked.

Thank you
 
Upvote 0

Carthalion

Member
Licensed User
Longtime User
@Carthalion , you really should use the tools available in the forum before posting questions as basic as this one..

- activities life-cycle
- beginners guide
- the tutorials sub-forum (specifically the 2 activities example)
You are right. It was extremely basic. I just did not know the right key words to search for. I apologize. However, maybe you can point me an a more complex answer. Or should I start a new thread?

I am trying to figure out how to use a Pmt function to calculate a mortgage payment. Pmt is a function that is part of the VB6 library and the .Net library. But apparently n not part of B4A's. I hear that Excel has a Pmt function. What I cannot figure out is how to make that function available for a computation in B4A. Any ideas for me?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…