Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

295
Views
Cómo navegar Fragmento desde la notificación en el controlador de navegación de Android

¿Debería hacer una intención que conduzca a MainActivity y luego navegue la función allí? ¿O hay otra manera?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Desde la notificación, escriba la intención pendiente en MainActivity y desde allí navegue hasta un fragmento específico usando su id.

 val bundle = intent.extras findNavController(R.id.homeHostFragment) .navigate(R.id.notificationsFragment, bundle, null)

o

 //here homeHostFragment is the id for fragment in xml for which we set the nav graph val bundle = intent.extras val navHostFragment = homeHostFragment as NavHostFragment navHostFragment.navController.navigate(R.id.notificationsFragment,bundle)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!