Q:Starting other Activity but /.main using intents ?

Mickego

Member
Licensed User
Longtime User
I´m playing with NFC Library.
Trying to start my second Activity "tmp"
instead of "main" in an app I´ve made.

Normally when starting the Homemade app,
my main activity only starting a Service checking incoming calls
and then closes Main activity.

Each Incoming call sets a Notification in N-Bar,
when clicking such Notification my second Activity (tmp)
is launched, a List of latest incoming calls shows up.

Now I want the NFC lookup to Launch this second Activity (tmp)

I have No problem to Launch "main" activity at all using this

B4X:
      Dim Intent1 As Intent
      Intent1.Initialize(Intent1.ACTION_MAIN, "")
      Intent1.SetComponent("OvaPhone.mg/.main")
      StartActivity(Intent1)

In my ignorance and Lowskilled level ;-)
I tried to replace :
"OvaPhone.mg/.main"
with
"OvaPhone.mg/.tmp"

But It caused Errormsg´s
Is it Possible at all to Call Second Activity in my app ?
 

Mickego

Member
Licensed User
Longtime User
Sorry for beeing not exactly Clear.

I want to start the "tmp" activity in OvaPhone.mg
from
Another app that reads NFC tag info and
using Intent to start the "Remote" App-tmp-Activity.

"NFC_Test" finds my NFC tag,
reads NDEF text (Here is the info what App/Activity) to start
now By Intent start "OvaPhone.mg"-tmp-Activity

No problem at all starting "OvaPhone.mg"-main-Activity this way,
but I need to start second Activity from "NFC-Test"
 
Upvote 0
Top