android – How to navigate from specific selected item RecyclerView Inside the Fragment, to 2 different Activity from same RecyclerView in Kotlin?

How to navigate from a specific selected item RecyclerView Inside the Fragment, to 2 different Activity in Kotlin? i have the basic wireframe layout, who describe my question, because i don’t know how to explain with good typing. so here from the wireframe, i have 1 Activity with TabLayout, which is filled with Fragment and … Read more

java – Data being passed from Activity to Fragment is returning null

I have reviewed multiple solutions to my question, but each attempt results in my android application crashing due to the data being sent returning null. I am attempting to send an ArrayList of Strings to a fragment, but when I launch my application I receive the following error. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.assignment2, PID: … Read more

android – Barcode scanner not working 2nd time activity launched

I am building barcode scanning functionality into an app, and have followed this guide: https://learntodroid.com/how-to-create-a-qr-code-scanner-app-in-android/. I have a main activity, which launches my QR scanning activity. When I detect a particular uri from the QR code (based on scheme, host and path), I want to end the QR scanning activity, return to my main activity … Read more

Broadcast Receiver doesn’t work on Activity Recognition Android Kotlin

I’m trying to get activity transition from users on Pixel 2 API 30, Kotlin. The logs from onReceive doesn’t appear, so I guess the fun doesn’t call. It worked only once without changing anything. Class ActivityTransitionReceiver.kt package com.example.licenta_1 import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.util.Log import android.widget.Toast import com.example.licenta_1.placeholder.Constants import com.google.android.gms.location.ActivityTransitionResult import java.text.SimpleDateFormat import … Read more

android – How to send from Fragment when clicking on ImageButton to Activity?

It is necessary that in the Fragment, when you click on the ImageButton, the Activity opens.I’ve been reading all possible resources for two days and tried different methods, but none of them work. I am writing in Kotlin. Thanks in advance) PS A student, there is not much time left to submit the work, so … Read more