Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

-1 votes
0 answers
19 views

My Fragment Result Listener won't update the text

I am trying to get my app to display different text each time a button is pressed. The first time I press any button it works fine, but afterwords it reverts my textviews on the fragment to the ...
Allan Sharad's user avatar
0 votes
1 answer
9 views

Problems with the click event in a TableLayout and view pager in android studio

i was working on an app where i was trying to build tab layout and insert fragments in that but in starting it was blinking and after that it was neither being clicked or being Scrolled Problems with ...
Amritpal Singh's user avatar
0 votes
0 answers
26 views

how to make a Bluetooth connection for all fragments?

I can't make bluetooth connected for all fragments, you need to connect to all fragments once. import android.bluetooth.BluetoothAdapter class BluetoothController(private val adapter: ...
Артем Урманов's user avatar
0 votes
0 answers
39 views

Fragments with Kotlin

package com.fungus.app; import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ArrayAdapter import androidx.fragment....
Deimos's user avatar
  • 45
0 votes
0 answers
25 views

How can I display a custom MaterialAlertDialog in a RecyclerView that is in a Fragment?

I created a RecyclerView with a PopupMenu in a Fragment, when you click in "Editar" i wanted to display a MaterialAlertDialog with an EditText to edit a text, but I can't because everytime I ...
Oliver 128's user avatar
0 votes
0 answers
33 views

How can I post an image to cloudinary using media manager in a fragment?

I have downloaded an Image Picker Library that displays my gallery and crops images for me etc. When I receive the URI from the ActivityResultLauncher I try to upload the image that I had just chosen ...
Neil Gibson's user avatar
0 votes
0 answers
15 views

viewPager inside a fragment (kotlin and xml)

I want to add ViewPager inside a fragment so that it allows you to create a swipeable views structure within that fragment so i have bottom navigation bar that swapes between 3 fragments 1 fragment i ...
paramicia's user avatar
1 vote
1 answer
36 views

How do I solve the in fragment problem in android studio

bottomNavigationView = findViewById(R.id.bottom_navigation); getSupportFragmentManager().beginTransaction().replace(R.id.container, homeFragment).commit(); bottomNavigationView....
Sem's user avatar
  • 13
0 votes
0 answers
50 views

Why i cant properly read arguments from activity

so im sending to ListFieldsFragment game id from activity, and its working here is code from activity class CreateFieldsActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: ...
Matthew's user avatar
  • 21
0 votes
0 answers
11 views

'boolean android.webkit.webview.cangoback()' on a null object reference on backpressed - on multilevel fragments (Bottom tab fragment and webview)

I have an app where I display a webview and for navigation use the bottom tab, where in one of the bottom fragments (Receivable Fragment) I have 3 buttons to go to different webview fragments (...
Azzul Arivin's user avatar
0 votes
0 answers
92 views

Android WebView not reconnecting on network change

I'm currently developing an Android application using WebView, where the WebView should automatically reconnect when the network changes. Unfortunately, I'm facing challenges, and the WebView doesn't ...
Duliba Ionut's user avatar
0 votes
0 answers
6 views

hide Programmatically apk in drawer-android 11

I need help. how to Programmatically hide android app in drawer for android 11 & 11+ I red all topic in internet but they were old. thanks :) I red all topic in internet but they were old. or how ...
noob's user avatar
  • 1
0 votes
0 answers
26 views

Problem on Android Studio (Kotlin). RecyclerView in Fragment not showing anythig

I have a RecyclerView in a Fragment, but the fragment is not showing anything. I thereby use a database for the app's data. Can someone help me about this problem, please? 'Cause I'm about to cry :') ...
Rioo's user avatar
  • 1
0 votes
1 answer
1k views

How do I start an android application automatically when I turn on the TV?

I added these permissions to the manifest <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> and I added the BootReceiver to the Manifest: <receiver ...
Duliba Ionut's user avatar
0 votes
0 answers
18 views

How to send data from activity page to fragment page

I have a problem with passing the data from Main Activity to Home Fragment. If I click the submit button it will automatically showing the result data in the same page, not transfer to the Home ...
Kireina Hidayat's user avatar

15 30 50 per page
1
2 3 4 5
151