id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,246,536 | I want the character to walk not only in x but also in y | <p><strong>I want the character to walk not only in x but also in y</strong></p>
<pre><code>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Control : MonoBehaviour
{
public float speed; // speed
private float input;
private Rigidbody2D ... | I want the character to walk not only in x but also in y [CODE] I want the character to walk not only in x but also in y | c#|android|unity3d|topdown | 0 | 2022-05-15T08:04:28.877Z | 2,022 | 5 | 8 | 6 | 43 | 1 | 120 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
72,246,551 | Including android library in flutter app - Plugin with id 'com.android.library' not found | <p>I'm creating a flutter ebook reader app using a package named <a href="https://pub.dev/packages/epub_viewer" rel="nofollow noreferrer">epub_viewer</a> that uses <a href="https://github.com/FolioReader/FolioReader-Android" rel="nofollow noreferrer">Folioreader</a> for reading ebooks. but I need to make some customiza... | I'm creating a flutter ebook reader app using a package named epub_viewer that uses Folioreader for reading ebooks. but I need to make some customizations in the main library Folioreader for my project so I've tried to add Folioreader as a library for making my customizations and testing the package. this is the origin... | android|flutter|epub | 1 | 2022-05-15T08:07:44.217Z | 2,022 | 5 | 8 | 6 | 120 | 0 | 680 | 89 | 3 | 3 | true | true | false | false | false | false | low |
72,246,692 | initial videos lag on WebRTC connection | <p>what is the correct peer connection setting in android?</p>
<p>I have recently developed an app that establishes a connection to another device using WebRTC.
I have managed to receive four video streams through four tracks.
videos start with lags and after 4/5 minutes it continues correctly.
how can I solve this lag... | what is the correct peer connection setting in android? I have recently developed an app that establishes a connection to another device using WebRTC. I have managed to receive four video streams through four tracks. videos start with lags and after 4/5 minutes it continues correctly. how can I solve this lag at beginn... | android|webrtc|webrtc-android|video-tracking|peer-connection | 0 | 2022-05-15T08:31:31.970Z | 2,022 | 5 | 8 | 6 | 120 | 0 | 371 | 39 | 5 | 1 | true | true | false | false | false | false | zero |
72,246,787 | Does a custom renderer not work when it is used inside a data template within the resource dictionary? | <p>I am trying to make a chat page where the messages are arranged from the left side(conversee) or right side(user). So, I will be using a data template selector and a listview/collection view to hold the messages. Everything works fine if I use the default "Label" view, but if I change it to my own custom &... | I am trying to make a chat page where the messages are arranged from the left side(conversee) or right side(user). So, I will be using a data template selector and a listview/collection view to hold the messages. Everything works fine if I use the default "Label" view, but if I change it to my own custom &quo... | c#|xamarin|xamarin.forms|xamarin.android | 1 | 2022-05-15T08:45:30.787Z | 2,022 | 5 | 8 | 6 | 27 | 1 | 813 | 102 | 4 | 3 | true | false | false | false | false | false | low |
72,246,835 | How to create common style with guidelines ConstraintLayout? | <p>I have 10 xml files with common code for setting guidelines:</p>
<pre><code><androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline_top"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ori... | I have 10 xml files with common code for setting guidelines: [CODE] I don't understand how to create some common style which will be set for all these files without usage of common code? I saw that I can use constraints in style, but how I can call guideline in style? | android|android-constraintlayout | 0 | 2022-05-15T08:52:05.963Z | 2,022 | 5 | 8 | 6 | 21 | 1 | 268 | 60 | 2 | 1 | true | false | false | false | false | false | zero |
72,246,837 | Is the collect function of Flow a block function in Kotlin? | <p>I hope to delete records by Id list and relative files with Room.</p>
<p>I find the files can be deleted and the records can't be deleted when I run Code A</p>
<p>I find the records can be deleted when I run Code B.</p>
<p>It seems that <code>Log.e("My","Fire")</code> is not launched in Code A. I... | I hope to delete records by Id list and relative files with Room. I find the files can be deleted and the records can't be deleted when I run Code A I find the records can be deleted when I run Code B. It seems that Log.e("My","Fire") is not launched in Code A. I don't know why? Q1: What's wrong wit... | kotlin|android-room|kotlin-flow | 0 | 2022-05-15T08:52:57.897Z | 2,022 | 5 | 8 | 6 | 168 | 1 | 819 | 59 | 3 | 4 | true | false | false | false | false | false | zero |
72,246,858 | Difference between ExecutorService and Volley | <p>I'm learning <code>Volley</code> as my network library to fetch data from the internet because <code>AsyncTask</code> is deprecated and I've come across <code>ExecutorService</code> that works like <code>Asynctask</code> so what's the difference between <code>Volley</code> and <code>ExecutorService</code></p> | I'm learning Volley as my network library to fetch data from the internet because AsyncTask is deprecated and I've come across ExecutorService that works like Asynctask so what's the difference between Volley and ExecutorService | android|android-studio | 0 | 2022-05-15T08:54:49.837Z | 2,022 | 5 | 8 | 6 | 26 | 1 | 228 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
72,246,893 | Can intent filter works with Worker Manager | <p>Previously, I had a service that started using an intent filter</p>
<pre><code><service
android:name="abcservice"
android:exported="true">
<intent-filter>
<action android:name="com.sdk.service.ACTION_TO_DOWNLOAD_PARAMS" />
</inten... | Previously, I had a service that started using an intent filter [CODE] Nevertheless, IntentService is deprecated and replaced with Worker Manager . The issue is the tutorial does not mention away to wake the Worker class to work as a service. I would like to know a proper steps to migrate the legacy intent service to w... | android|intentfilter|android-workmanager | 0 | 2022-05-15T09:00:39.440Z | 2,022 | 5 | 9 | 6 | 34 | 0 | 405 | 43 | 3 | 1 | true | true | false | false | false | false | zero |
72,247,087 | All buttons are of same color, they should not be | <p>I am working on simple color picker in Android. I've setup <a href="https://developer.android.com/guide/topics/resources/string-resource" rel="nofollow noreferrer">Android Array String Resource</a> for colors:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<resources>
<s... | I am working on simple color picker in Android. I've setup Android Array String Resource for colors: [CODE] I import these colors through my populateFetchedColors() method: [CODE] which workss fine, I've double checked via Android Studio Debugger . Now, I had to create custom ArrayAdapter , named ColorPickerFragmentAda... | java|android | 0 | 2022-05-15T09:35:32.300Z | 2,022 | 5 | 9 | 6 | 33 | 2 | 485 | 49 | 2 | 3 | true | false | false | false | false | false | zero |
72,247,111 | Flutter - How to broadcast in GetX? | <p>I have a requirement: I have A, B, C, D, E.... multi pages in App. And now When I click a button in Page E, change the keyword, All page's controller will get this notification and use this changed keyword to query the web server then update page's UI.</p>
<p>I know 'EventBus' can achieve this goal. Do you know how ... | I have a requirement: I have A, B, C, D, E.... multi pages in App. And now When I click a button in Page E, change the keyword, All page's controller will get this notification and use this changed keyword to query the web server then update page's UI. I know 'EventBus' can achieve this goal. Do you know how to do in G... | android|ios|flutter|dart|flutter-getx | 0 | 2022-05-15T09:40:36.483Z | 2,022 | 5 | 9 | 6 | 78 | 1 | 324 | 35 | 5 | 0 | false | false | false | false | false | false | zero |
72,247,143 | Why i am getting this issue Flutter Upi Package Build Error | <pre><code>Execution failed for task ':upi_pay:compileDebugKotlin'.
</code></pre>
<blockquote>
<p>A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction</p>
</blockquote> | [CODE] A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction | android|flutter|flutter-dependencies|stack-overflow | 0 | 2022-05-15T09:45:02.520Z | 2,022 | 5 | 9 | 6 | 34 | 0 | 140 | 59 | 4 | 1 | true | true | false | false | false | false | zero |
72,247,189 | Android: Image offset within ImageView | <p>I have an image file (.png) within my app's assets directory and an ImageView. I want to place the image at an arbitrary position within the ImageView (x/y offset). How do I do this? I do NOT want to move the ImageView (i.e. the container/control/view) itself, only the image within. Thanks.</p> | I have an image file (.png) within my app's assets directory and an ImageView. I want to place the image at an arbitrary position within the ImageView (x/y offset). How do I do this? I do NOT want to move the ImageView (i.e. the container/control/view) itself, only the image within. Thanks. | android|image|imageview|assets|offset | 0 | 2022-05-15T09:50:33.533Z | 2,022 | 5 | 9 | 6 | 28 | 0 | 291 | 38 | 5 | 0 | false | true | false | false | false | false | zero |
72,247,247 | setOnClickListener has not been written well, it gives an error | <p>I'm trying to rewrite my code from <code>android:onClick9" to </code>setOnClickListener`
since that crashes, bu I'm getting an error. <strong>Code</strong></p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_m... | I'm trying to rewrite my code from android:onClick9" to setOnClickListener` since that crashes, bu I'm getting an error. Code [CODE] EDIT EDIT 2 I have tried button9 but still the label of button9 doesn't change and new Button.OnClickListener() is shadowed. [CODE] | java|android-studio|onclicklistener | 0 | 2022-05-15T10:01:16.973Z | 2,022 | 5 | 10 | 6 | 47 | 1 | 269 | 63 | 3 | 2 | true | false | false | false | false | false | zero |
72,247,272 | Android - Jetpack Compose draw text with centered lines on sides | <p>I am trying to make this simple view in Compose, but cant seem to get it right.
<a href="https://i.stack.imgur.com/ITeGW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ITeGW.png" alt="enter image description here" /></a></p>
<p>I have tried using dividers, and now switched to canvas, but cant see... | I am trying to make this simple view in Compose, but cant seem to get it right. I have tried using dividers, and now switched to canvas, but cant seem to get correct result. [CODE] I have played with arragments, weights, sizes, but always get some quirky result. | android|kotlin|android-jetpack-compose|android-jetpack | 1 | 2022-05-15T10:04:53.473Z | 2,022 | 5 | 10 | 6 | 286 | 1 | 262 | 64 | 4 | 1 | true | false | false | false | false | false | low |
72,247,278 | Navigate the BottomNavBar on Button click - Jetpack Compose | <p>My BottomNavigationBar has 4 items, I want to navigate to the last item when the user clicks a button.</p>
<p>Here is my BottomNavigationBar:</p>
<pre><code>@Composable
fun BottomNavigationBar(navController: NavController) {
val items = listOf(
BottomNavigationItem.Home,
BottomNavigationItem.Expl... | My BottomNavigationBar has 4 items, I want to navigate to the last item when the user clicks a button. Here is my BottomNavigationBar: [CODE] and here is how I try to navigate to the "Profile" screen when the user clicks a button (in my MainActivity NavGraph): [CODE] Unfortunately this gives me a weird behavi... | android|kotlin|navigation|android-jetpack-compose | 2 | 2022-05-15T10:05:26.180Z | 2,022 | 5 | 10 | 6 | 139 | 1 | 642 | 59 | 4 | 2 | true | false | false | false | false | false | low |
72,247,375 | android kotlin '1.6.21 breaks navigation component | <p>my project was using kotin '1.5.10' when I updated to 1.6.21 , the navigation component breaks
what happens?</p>
<p>Screen A is navigation to B</p>
<pre><code> findNavController().navigate((
CarFragmentDirections.actionCarFragmentToCarDetailsFragment(
selectUrl, viewModel.CarParameters()))
</code></pr... | my project was using kotin '1.5.10' when I updated to 1.6.21 , the navigation component breaks what happens? Screen A is navigation to B [CODE] B is working is opened but when I press the phone back button, Fragment A recreates everything, all text files lose data, however, ViewModel is no anymore connected to the view... | android|kotlin | 1 | 2022-05-15T10:21:00.643Z | 2,022 | 5 | 10 | 6 | 54 | 1 | 415 | 50 | 2 | 1 | true | false | false | false | false | false | low |
72,247,415 | How to construct an Android applicationId wisely | <p>Android apps have an <code>applicationId</code> that looks like <code>com.example.app</code>. I'm currently looking at how to correctly define one as this cannot be changed after release. In particular since we also have a website what I'm interested about is the relation between the website URL and the application ... | Android apps have an applicationId that looks like com.example.app . I'm currently looking at how to correctly define one as this cannot be changed after release. In particular since we also have a website what I'm interested about is the relation between the website URL and the application id, since it seems that it a... | android|flutter|android-build | 0 | 2022-05-15T10:26:25.473Z | 2,022 | 5 | 10 | 6 | 34 | 1 | 568 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
72,247,472 | Godot Android export : Execution failed for task ':processDebugResources' | <p>When I export my game in .aab format, the compiler stop with this error :</p>
<blockquote>
<p>FAILURE: Build failed with an exception.</p>
</blockquote>
<ul>
<li>What went wrong:
Execution failed for task ':processDebugResources'.</li>
</ul>
<blockquote>
<p>A failure occurred while executing com.android.build.gradle... | When I export my game in .aab format, the compiler stop with this error : FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':processDebugResources'. A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource... | android|godot | 0 | 2022-05-15T10:35:48.500Z | 2,022 | 5 | 10 | 6 | 17 | 0 | 627 | 73 | 2 | 0 | false | true | false | false | false | false | zero |
72,247,495 | Flutter : Resource and asset merger: Can't determine type for tag '<external-path name="external_files" path="."/>' | <p>I am developing an app with InAppWebview package in Flutter 3.0. In this package we can't access file in webview in android device. That's why I added provider in <code>AndroidManifest.xml</code> file and add a new file <code>provider_paths.xml</code> in res>value folder. But now I am facing an error when I run l... | I am developing an app with InAppWebview package in Flutter 3.0. In this package we can't access file in webview in android device. That's why I added provider in AndroidManifest.xml file and add a new file provider_paths.xml in res>value folder. But now I am facing an error when I run like this [CODE] My AndroidManife... | flutter|path|android-external-storage|flutter-inappwebview|flutter-3.0 | 2 | 2022-05-15T10:38:43.470Z | 2,022 | 5 | 10 | 6 | 69 | 1 | 407 | 115 | 5 | 3 | true | false | false | false | false | false | low |
72,247,533 | When manually drawing in OnDraw in an Android Edittext, the drawing doesn't scroll with the Text. How can this be fixed? | <p>I'd like to create an Android EditText with line numbers as per this post:
<a href="https://stackoverflow.com/questions/47579338/how-to-show-line-number-in-edittext">How to show line number in EditText</a></p>
<p>The code works, but when the text scrolls, the numbers don't scroll with it.</p>
<p>How can I resolve th... | I'd like to create an Android EditText with line numbers as per this post: How to show line number in EditText The code works, but when the text scrolls, the numbers don't scroll with it. How can I resolve this? [CODE] | android|canvas|scroll|android-edittext|ondraw | 0 | 2022-05-15T10:45:19.127Z | 2,022 | 5 | 10 | 6 | 18 | 0 | 218 | 120 | 5 | 1 | true | true | false | false | false | false | zero |
72,247,673 | i want to push notification when i recieve a message from mqtt broker | <p>I'm working on flutter app ( notify user when a raspberry pi detect a movement). Everything works fine.</p>
<ol>
<li>connecting the flutter app to mqtt broker</li>
<li>subscribing to the topic</li>
<li>getting the messages from the mqtt broker and i can see them in console log</li>
</ol>
<p>My problem is that I want... | I'm working on flutter app ( notify user when a raspberry pi detect a movement). Everything works fine. connecting the flutter app to mqtt broker subscribing to the topic getting the messages from the mqtt broker and i can see them in console log My problem is that I want to push notification when I get a message from ... | android|flutter|dart|push-notification|mqtt | -1 | 2022-05-15T11:06:16.677Z | 2,022 | 5 | 11 | 6 | 234 | 1 | 454 | 69 | 5 | 1 | true | false | false | false | false | true | negative |
72,247,693 | Basic Android Studio surfaceView code only works for old devices | <p>So i was trying to make a simple mobile game for a school project. I setted up a simple SurfaceView thing and builded it on my phone with Android 12 (Api 32), but it doesn't draw anything. It enters the draw function of the view, but i can't see an output. It only works on a old friend's tablet with Android 4.4.2.</... | So i was trying to make a simple mobile game for a school project. I setted up a simple SurfaceView thing and builded it on my phone with Android 12 (Api 32), but it doesn't draw anything. It enters the draw function of the view, but i can't see an output. It only works on a old friend's tablet with Android 4.4.2. MySu... | java|android|surfaceview | 0 | 2022-05-15T11:09:15.093Z | 2,022 | 5 | 11 | 6 | 43 | 0 | 533 | 64 | 3 | 3 | true | true | false | false | false | false | zero |
72,247,702 | Is it possible to disable slide animation in the toolbar? | <p>I navigate between fragments using the <a href="https://developer.android.com/guide/navigation/navigation-getting-started" rel="nofollow noreferrer">Navigation component</a>.</p>
<p>As you can see when I press the back button it moves me to the previous fragment but the title and overflow icon is sliding from right ... | I navigate between fragments using the Navigation component . As you can see when I press the back button it moves me to the previous fragment but the title and overflow icon is sliding from right to left. How can I disable this animation, I don't need any animation. What should I use to disable it? Please if that is n... | android|android-fragments|android-architecture-components|android-architecture-navigation | 0 | 2022-05-15T11:09:57.560Z | 2,022 | 5 | 11 | 6 | 35 | 0 | 389 | 57 | 4 | 0 | false | true | false | false | false | false | zero |
72,247,842 | How to make AppWidgetProvider receive intent | <p>I have a TextView in my Widget and I expect it to trigger an intent whenever it is clicked. I am trying to receive this intent, check if the action is the desired one and then running a function. The problem is that this intent is not being received. Instead when I click the TextView, my app starts. This is the code... | I have a TextView in my Widget and I expect it to trigger an intent whenever it is clicked. I am trying to receive this intent, check if the action is the desired one and then running a function. The problem is that this intent is not being received. Instead when I click the TextView, my app starts. This is the code fo... | java|android | 0 | 2022-05-15T11:29:44.220Z | 2,022 | 5 | 11 | 6 | 15 | 0 | 433 | 44 | 2 | 1 | true | true | false | false | false | false | zero |
72,247,872 | Need efficient way to update view on click for category list | <p>I have a view in which I need to select one of the three categories.</p>
<p>Each category is a Button.</p>
<p>Selected category should have black background with white text while other categories should have white background with black text.</p>
<p>I have done it by creating button for each category and updating on ... | I have a view in which I need to select one of the three categories. Each category is a Button. Selected category should have black background with white text while other categories should have white background with black text. I have done it by creating button for each category and updating on each click event. Is the... | android|kotlin|android-layout | 0 | 2022-05-15T11:34:26.883Z | 2,022 | 5 | 11 | 6 | 31 | 2 | 564 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
72,247,896 | How do I use Intent.putExtra dynamically? | <p>I have 2 Activities which are (<code>MainActivity</code>, <code>LoadIntentActivity</code>). I know how to <code>putExtra()</code> from <code>MainActivity</code> and receive the value in <code>LoadIntentActivity</code> with <code>getIntent().getExtra()</code>. However, I want to start <code>LoadIntentActivity</code> ... | I have 2 Activities which are ( MainActivity , LoadIntentActivity ). I know how to putExtra() from MainActivity and receive the value in LoadIntentActivity with getIntent().getExtra() . However, I want to start LoadIntentActivity with 2 method: 1 is with the putExtra() and the other is without putExtra() . But the Load... | java|android|android-intent | -1 | 2022-05-15T11:36:40.613Z | 2,022 | 5 | 11 | 6 | 45 | 1 | 617 | 41 | 3 | 4 | true | false | false | false | false | true | negative |
72,247,978 | How to get object value of data class? | <p>This is my data class main constructor.</p>
<pre><code>@Parcelize
data class CharacInfo(
@PrimaryKey val uid: Long?,
@ColumnInfo var category: Int,
@ColumnInfo var img: Int,
@ColumnInfo var job: String,
@ColumnInfo var birth: String,
@ColumnInfo var onoff: Boolean
) : Parcelable
</code></pre>... | This is my data class main constructor. [CODE] I want to get the value of each parameter of the data class from the service class. This is my service class. [CODE] But I can't initialize the info object. I don't want to insert a new value, I want to get an existing value. I wanted to create an empty constructor, but I ... | android | 0 | 2022-05-15T11:49:20.640Z | 2,022 | 5 | 11 | 6 | 25 | 1 | 381 | 38 | 1 | 2 | true | false | false | false | false | false | zero |
72,248,048 | How can we remove 3rd party framework permissions in Android Studio? | <p>Is it possible to remove 3rd party framework permissions in Android Studio? I cannot trust the security of 3rd party frameworks.</p>
<p>In terms of technical terminology, I believe that maybe ios developers can contribute if they have knowledge on the android side.</p>
<p>According to the iOS developers, it is possi... | Is it possible to remove 3rd party framework permissions in Android Studio? I cannot trust the security of 3rd party frameworks. In terms of technical terminology, I believe that maybe ios developers can contribute if they have knowledge on the android side. According to the iOS developers, it is possible. For example,... | android|ios|android-studio|kotlin|permissions | 4 | 2022-05-15T11:59:41.523Z | 2,022 | 5 | 11 | 6 | 104 | 0 | 543 | 68 | 5 | 0 | false | true | false | false | false | false | low |
72,248,118 | How to open activity from bottom navigation view with Kotlin | <p>I have a bottom navigation view. I would like to open an activity, not a fragment when clicking on one of the items. This is my code:</p>
<pre><code>override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val navControlle... | I have a bottom navigation view. I would like to open an activity, not a fragment when clicking on one of the items. This is my code: [CODE] While trying to figure out how to solve this problem, I realized that when the bottomNavigationView.setOnItemSelectedListener method is executed, it nullifies the bottomNavigation... | android|kotlin|bottomnavigationview | 0 | 2022-05-15T12:09:25.973Z | 2,022 | 5 | 12 | 6 | 120 | 1 | 518 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
72,248,267 | launchCamera() in react-native-image-picker doesn't open anything when installed on a device | <p>amazing developers. I am building an app that would offer opportunity to either take a photo on spot and upload it, or choose an image from gallery. I am using <code>react-native-image-picker</code> for it. So far, my life was going great and everything ran smoothly on the emulator, however, once I installed the APK... | amazing developers. I am building an app that would offer opportunity to either take a photo on spot and upload it, or choose an image from gallery. I am using react-native-image-picker for it. So far, my life was going great and everything ran smoothly on the emulator, however, once I installed the APK file on my andr... | android|reactjs|react-native|android-camera|react-native-image-picker | 0 | 2022-05-15T12:29:30.573Z | 2,022 | 5 | 12 | 6 | 876 | 1 | 896 | 92 | 5 | 3 | true | false | false | false | false | false | zero |
72,248,359 | ListView Filter With CheckBox | <p>I am trying to implement a ListView with CheckBox, the filter works fine but the checkbox state retains its position whenever the filter is applied. If item (apple) on row 2 is checked, and I filter with "B" and the list returns 3 items (Biscuit, Banana, Ball), item Banana will show checked from previous c... | I am trying to implement a ListView with CheckBox, the filter works fine but the checkbox state retains its position whenever the filter is applied. If item (apple) on row 2 is checked, and I filter with "B" and the list returns 3 items (Biscuit, Banana, Ball), item Banana will show checked from previous chec... | android | 0 | 2022-05-15T12:41:32.733Z | 2,022 | 5 | 12 | 6 | 13 | 0 | 568 | 29 | 1 | 2 | true | true | false | false | false | false | zero |
72,248,383 | How do I use Solana.kt library in Android project? | <p>I'm trying to import Solana.kt library - <a href="https://github.com/ajamaica/Solana.kt" rel="nofollow noreferrer">https://github.com/ajamaica/Solana.kt</a>
into my android project, so I could try creating solana wallet/sending tokens. I'm noob, so I can't figure out how do I go exactly adding library into the proje... | I'm trying to import Solana.kt library - https://github.com/ajamaica/Solana.kt into my android project, so I could try creating solana wallet/sending tokens. I'm noob, so I can't figure out how do I go exactly adding library into the project and then how to I use it? (For example from my MainActivity I want to click bu... | android|android-studio|solana | 0 | 2022-05-15T12:45:20.080Z | 2,022 | 5 | 12 | 6 | 79 | 1 | 566 | 50 | 3 | 0 | false | false | false | false | false | false | zero |
72,248,448 | Compose not refreshing view on change of mutableStateOf value | <p>I have a ViewModel with the property</p>
<p><code>var uiState by mutableStateOf(UiState())</code></p>
<p>I have a composable that accesses this value like so</p>
<pre><code>fun AppView(viewModel: BridgeViewModel) {
val uiState = viewModel.uiState
when {
uiState.isLoading -> {
LoadingV... | I have a ViewModel with the property var uiState by mutableStateOf(UiState()) I have a composable that accesses this value like so [CODE] After the composable is created I trigger a function in my ViewModel that changes the state like so uiState = UiState(isLoading = true) The problem is, the composable is not being re... | android|kotlin|android-jetpack-compose|android-viewmodel | 0 | 2022-05-15T12:53:44.580Z | 2,022 | 5 | 12 | 6 | 447 | 0 | 439 | 61 | 4 | 1 | true | true | false | false | false | false | zero |
72,248,474 | layout_constraintHorizontal_weight=1 is not working in ConstraintLayout | <p>I have used layout_constraintHorizontal_weight=1 in three constraintLayout to make them equally divide horizontally. But it is not working. Why it is not taking in my code I am not getting.
at the same time I need to make the contents of three constraintLayout center.
xml code:</p>
<pre><code><?xml version="... | I have used layout_constraintHorizontal_weight=1 in three constraintLayout to make them equally divide horizontally. But it is not working. Why it is not taking in my code I am not getting. at the same time I need to make the contents of three constraintLayout center. xml code: [CODE] This the code which I am working. | android|android-constraintlayout|android-layout-weight | 0 | 2022-05-15T12:56:27.300Z | 2,022 | 5 | 12 | 6 | 37 | 2 | 319 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
72,248,549 | Change value of parameter inside GET call in kotlin using TMDB api | <p>So I was requested to create an app which fetch 120 movies from TMDB api, using kotlin coroutines and injections. So I build that app using MVVM architecture and livedata coroutine scope. The question is how can I fetch 120 movies without send many GET requests with different page parameter to the server. I want to... | So I was requested to create an app which fetch 120 movies from TMDB api, using kotlin coroutines and injections. So I build that app using MVVM architecture and livedata coroutine scope. The question is how can I fetch 120 movies without send many GET requests with different page parameter to the server. I want to mak... | android|api|kotlin|get|kotlin-coroutines | 0 | 2022-05-15T13:07:52.340Z | 2,022 | 5 | 13 | 6 | 22 | 0 | 409 | 66 | 5 | 0 | false | true | false | false | false | false | zero |
72,248,578 | safe args navigation not work in android kotlin | <p>I'am trying to use Safe Args plugin to generate fragment direction that will used to navigate to another fragment with action,i include the dependency but it still not work</p>
<p>gradle project:</p>
<pre><code>buildscript {
ext.kotlin_version = "1.4.32"
ext {
version_navigation = "2.3.0"
}
... | I'am trying to use Safe Args plugin to generate fragment direction that will used to navigate to another fragment with action,i include the dependency but it still not work gradle project: [CODE] gradle module: [CODE] | android|android-studio|kotlin|navigation|arguments | 0 | 2022-05-15T13:12:12.943Z | 2,022 | 5 | 13 | 6 | 292 | 1 | 217 | 47 | 5 | 2 | true | false | false | false | false | false | zero |
72,248,598 | navigation disconnect fragments and view | <p>I have navigation competent just go from Fragment A to B , however going back from B to A , making A loose everything, text field data, click linstners, there is code inside oncreeteView to init view also does be called , ViewModel live data no more active</p>
<pre><code><fragment
android:id="@+id/bo... | I have navigation competent just go from Fragment A to B , however going back from B to A , making A loose everything, text field data, click linstners, there is code inside oncreeteView to init view also does be called , ViewModel live data no more active [CODE] Oncreate [CODE] In nav_graph [CODE] Fragment A : [CODE] | android | 0 | 2022-05-15T13:15:10.137Z | 2,022 | 5 | 13 | 6 | 14 | 1 | 319 | 40 | 1 | 4 | true | false | false | false | false | false | zero |
72,248,626 | Jetpack Compose and Dependency Inversion | <p>In Jetpack Compose, most examples look something like this:</p>
<pre><code>ScreenLevelContainer {
TopBar { ... }
ContentA { ... }
ContentB { ... }
// etc.
}
</code></pre>
<p>Contents of any given composable may be comprised of other deeply nested composables.</p>
<p>They talk about "state hoisting"... | In Jetpack Compose, most examples look something like this: [CODE] Contents of any given composable may be comprised of other deeply nested composables. They talk about "state hoisting" such that application state should be stored at the high levels in the UI, or outside the UI entirely. There seems to be a m... | dependency-injection|android-jetpack-compose|dagger-hilt|dependency-inversion | 1 | 2022-05-15T13:18:20.173Z | 2,022 | 5 | 13 | 6 | 143 | 0 | 1,146 | 40 | 4 | 2 | true | true | false | false | false | false | low |
72,248,639 | Android studio SurfaceView onTouchEvent | <p>I have a SurfaceView in my activity xml and I want to get some informations when the SurfaceView is clicked. For that I have a class like below</p>
<pre><code>class ImageTable extends SurfaceView implements SurfaceHolder.Callback {
public ImageTable(Context context, SurfaceView surfaceView) {
super(context... | I have a SurfaceView in my activity xml and I want to get some informations when the SurfaceView is clicked. For that I have a class like below [CODE] my activity is [CODE] and xml file [CODE] onTouchEvent does not work with this way but if I set it by test.setOnTouchListener(...) it works. I think I should relate Surf... | android|surfaceview|ontouchlistener | 0 | 2022-05-15T13:20:49.473Z | 2,022 | 5 | 13 | 6 | 21 | 1 | 653 | 39 | 3 | 3 | true | false | false | false | false | false | zero |
72,248,714 | How to work with activities and fragments (Kotlin) | <p>I'm new at app development and Kotlin and I'm trying to do my first app for learning purposes but I'm kinda lost.</p>
<p>Right now, I have an activity where to log in to my app via firebase. Then what I'm trying to do is a bottom navigation bar where to go between activities. Via some tutorials, I found that the bes... | I'm new at app development and Kotlin and I'm trying to do my first app for learning purposes but I'm kinda lost. Right now, I have an activity where to log in to my app via firebase. Then what I'm trying to do is a bottom navigation bar where to go between activities. Via some tutorials, I found that the best way to d... | android|android-studio|kotlin|android-fragments|android-activity | 0 | 2022-05-15T13:31:44.930Z | 2,022 | 5 | 13 | 6 | 211 | 3 | 2,678 | 50 | 5 | 5 | true | false | false | false | false | false | zero |
72,248,715 | how to fix Cannot resolve symbol 'GradleException'? | <p>So im using an old sdk version which is "Android API 21 Platform" because I'm only trying to make a simple application for my school project, and I want to add google maps to my flutter app which needs for minSdkVersion to be changed to 20
while my build.gradle file looks like this:</p>
<pre><code>android ... | So im using an old sdk version which is "Android API 21 Platform" because I'm only trying to make a simple application for my school project, and I want to add google maps to my flutter app which needs for minSdkVersion to be changed to 20 while my build.gradle file looks like this: [CODE] so is it possible t... | flutter|android-studio|dart | 0 | 2022-05-15T13:32:01.343Z | 2,022 | 5 | 13 | 6 | 74 | 0 | 420 | 51 | 3 | 1 | true | true | false | false | false | false | zero |
72,248,758 | How can I receive notification when app is closing in Android TV? | <p>I develop an app for TV to handle voice calls, is there any way to receive a notification while the app is closed to inform the user there is a call for you?</p> | I develop an app for TV to handle voice calls, is there any way to receive a notification while the app is closed to inform the user there is a call for you? | android|firebase-cloud-messaging|android-tv | 0 | 2022-05-15T13:38:47.107Z | 2,022 | 5 | 13 | 6 | 25 | 0 | 157 | 65 | 3 | 0 | false | true | false | false | false | false | zero |
72,248,812 | How to only get callbacks from physical cameras in one Android logical camera | <p>I am working on a project that requires me to use Android NDK to manipulate cameras.
(Our platform supports android logical cameras in our Camera HAL)</p>
<p>There is not much tutorials using NDK for logical camera, so basically, I reference the VNDK test code for our development.
(<a href="http://aospxref.com/andro... | I am working on a project that requires me to use Android NDK to manipulate cameras. (Our platform supports android logical cameras in our Camera HAL) There is not much tutorials using NDK for logical camera, so basically, I reference the VNDK test code for our development. ( http://aospxref.com/android-12.0.0_r3/xref/... | android|camera|android-ndk | 0 | 2022-05-15T13:45:13.153Z | 2,022 | 5 | 13 | 6 | 34 | 0 | 2,096 | 77 | 3 | 0 | false | true | false | false | false | false | zero |
72,248,913 | Exoplayer android can't mute audio on Samsung, but successfully muted on Xiaomi | <p>I have two device Xiaomi and Samsung. I use the Exoplayer, and when i do setVolume(o), the two devices behave differently. Xiaomi - became muted, but Samsung is still unmute, i can hear sound, and after few second, volume fade, but i can hear sound but very quiet.</p>
<p>Has anyone experienced this behavior?</p> | I have two device Xiaomi and Samsung. I use the Exoplayer, and when i do setVolume(o), the two devices behave differently. Xiaomi - became muted, but Samsung is still unmute, i can hear sound, and after few second, volume fade, but i can hear sound but very quiet. Has anyone experienced this behavior? | android|exoplayer|mute | 0 | 2022-05-15T13:54:20.210Z | 2,022 | 5 | 13 | 6 | 70 | 0 | 302 | 79 | 3 | 0 | false | true | false | false | false | false | zero |
72,248,941 | Issue creating a button variable in Flutter | <p>I am currently using flutter for an android app and I am using the "Routegenerator.dart" method for navigating . In this project, a certain button gets repeated multiple times and always leads to the same page. I want to create a variable of this button to clean the code a bit and avoid myself useless repe... | I am currently using flutter for an android app and I am using the "Routegenerator.dart" method for navigating . In this project, a certain button gets repeated multiple times and always leads to the same page. I want to create a variable of this button to clean the code a bit and avoid myself useless repetit... | android|flutter|dart | 0 | 2022-05-15T13:57:58.547Z | 2,022 | 5 | 13 | 6 | 29 | 1 | 534 | 43 | 3 | 0 | false | false | false | false | false | false | zero |
72,248,947 | ninja: error: '../arm64-v8a/libknox_remotedesktopclient.so', needed by '.../arm64-v8a/libremote-desktop-sample-jni.so', missing | <p>I have a working Android Studio project. However after I commit it to SVN and try to checkout the project, I get the following error:</p>
<pre><code>Build command failed.
Error while executing process /home/usr/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/usr/AndroidStudioProjects/test/React... | I have a working Android Studio project. However after I commit it to SVN and try to checkout the project, I get the following error: [CODE] | android | 1 | 2022-05-15T13:59:37.493Z | 2,022 | 5 | 13 | 6 | 51 | 0 | 140 | 127 | 1 | 1 | true | true | false | false | false | false | low |
72,248,958 | imageSegmentationResult.original return null in android 12 - huawei image segmentation | <p>I'm using huawei image segmentation for background remove from the image. this code work perfectly fine up to android 11 but it get crash on android 12.</p>
<p><strong>Code:</strong></p>
<pre><code>private final void analyse(Bitmap bitmap) {
pd = new ProgressDialog(this, R.style.MyAlertDialogStyle);
pd.setM... | I'm using huawei image segmentation for background remove from the image. this code work perfectly fine up to android 11 but it get crash on android 12. Code: [CODE] Dependencies: [CODE] | android|image|image-segmentation | 0 | 2022-05-15T14:00:55.737Z | 2,022 | 5 | 14 | 6 | 125 | 0 | 186 | 86 | 3 | 2 | true | true | false | false | false | false | zero |
72,248,972 | I want to add multi-language support for my modularly implemented project | <p>I want to add multi-language support for my modularly implemented project. What is the best way or method you suggest to do this? General in one module)
Please help me.</p> | I want to add multi-language support for my modularly implemented project. What is the best way or method you suggest to do this? General in one module) Please help me. | android|kotlin|modular | -1 | 2022-05-15T14:04:02.763Z | 2,022 | 5 | 14 | 6 | 59 | 2 | 168 | 73 | 3 | 0 | false | false | false | false | false | true | negative |
72,248,992 | Android Studio Intent getIntExtra not Working | <p>I have a foreground service in which the notification sends Intents to a Broadcast Receiver, but the extra content of the intent are not been passed to the broadcast receiver.</p>
<p>In the service:</p>
<pre><code>private void proceedToStartService(Intent intent) {
String input = intent.getStringExtra("... | I have a foreground service in which the notification sends Intents to a Broadcast Receiver, but the extra content of the intent are not been passed to the broadcast receiver. In the service: [CODE] And in the broadcast receiver [CODE] But always the value is the default 890... I also tried use intent.getExtras().getIn... | android|android-intent|broadcastreceiver|android-notifications|foreground-service | 0 | 2022-05-15T14:06:15.943Z | 2,022 | 5 | 14 | 6 | 45 | 0 | 351 | 45 | 5 | 2 | true | true | false | false | false | false | zero |
72,249,006 | having problem in a fragment view (View Root) in android studio | <p>'''
public class HomeFragment extends Fragment {</p>
<pre><code>public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
View root =inflater.inflate(android.R.layout.fragment_home,container,false)
return root;
}
</code></pre>
<p>}... | ''' public class HomeFragment extends Fragment { [CODE] } ''' fragment_home created but not being recognized. | java|android|android-studio|rootview | 0 | 2022-05-15T14:07:29.047Z | 2,022 | 5 | 14 | 6 | 59 | 2 | 109 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
72,249,016 | Recycler View not displaying inside a Fragment | <p>I'm using Recycler view to show items in my Fragment named Recent History. I want to display user data from firebase to my recent history Fragment. But the recycler view is not showing on the fragment. Please Help me out in this. What did I do wrong here? or what's the solution so that my fragment shows the recycler... | I'm using Recycler view to show items in my Fragment named Recent History. I want to display user data from firebase to my recent history Fragment. But the recycler view is not showing on the fragment. Please Help me out in this. What did I do wrong here? or what's the solution so that my fragment shows the recycler vi... | kotlin|android-fragments|firebase-realtime-database|android-recyclerview|fragment | 0 | 2022-05-15T14:08:21.710Z | 2,022 | 5 | 14 | 6 | 159 | 1 | 575 | 46 | 5 | 5 | true | false | false | false | false | false | zero |
72,249,068 | how to read a smaller chunk of a bigger file as byte array and treat it as a video or audio file in java android | <p>I have one big file (I used a hex editor to simply put a few .mp4 and .mp3 files next to each other and saved them as one big ~500mb raw data file and recorded each file's starting offset/index and their lengths, i.e. file Sizes) now I want to put that big file in android external storage and read one of these video... | I have one big file (I used a hex editor to simply put a few .mp4 and .mp3 files next to each other and saved them as one big ~500mb raw data file and recorded each file's starting offset/index and their lengths, i.e. file Sizes) now I want to put that big file in android external storage and read one of these videos o... | android|android-mediaplayer | 0 | 2022-05-15T14:15:47.087Z | 2,022 | 5 | 14 | 6 | 106 | 1 | 843 | 112 | 2 | 0 | false | false | false | false | false | false | zero |
72,249,075 | The following StateError was thrown while executing callbacks for FrameTiming: | <p>I have the Flutter 2.10.5 version of android studio, the app works fine when I run it, but on terminal showed this messages, what should I do? I got this error from terminal:</p>
<pre><code>Performing hot restart...
Syncing files to device sdk gphone x86...
Restarted application in 1,150ms.
======== Exception caug... | I have the Flutter 2.10.5 version of android studio, the app works fine when I run it, but on terminal showed this messages, what should I do? I got this error from terminal: [CODE] This is my code: home_screen.dart [CODE] main.dart [CODE] add_task.dart [CODE] task_widget.dart [CODE] all_tasks.dart [CODE] textfield_wid... | flutter|android-studio | 0 | 2022-05-15T14:16:50.430Z | 2,022 | 5 | 14 | 6 | 31 | 0 | 391 | 78 | 2 | 9 | true | true | false | false | false | false | zero |
72,249,140 | how I can solve this problem "The minCompileSdk (31) specified in a dependency " | <p>I have a problem my application was working fine but suddenly when I tried run it its not working anymore and my app not opening it show this</p>
<pre><code> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's co... | I have a problem my application was working fine but suddenly when I tried run it its not working anymore and my app not opening it show this [CODE] how I can solve this ?? and run my app again and why it show this message ?? update : I tried to fix it but it show me this now [CODE] | java|android|android-studio|android-layout | 0 | 2022-05-15T14:24:37.597Z | 2,022 | 5 | 14 | 6 | 67 | 1 | 283 | 80 | 4 | 2 | true | false | false | false | false | false | zero |
72,249,223 | How to join a local WIFI network using URL | <p>I am trying to make my Guests connect to my local WIFI network with minimum effort.</p>
<ol>
<li>I tried creating a captive portal on the Tejas Network router but found that I am unable to perform so on my router.</li>
<li>Next, I tried to provide a QR code, but for that, every time I need to bring the person the QR... | I am trying to make my Guests connect to my local WIFI network with minimum effort. I tried creating a captive portal on the Tejas Network router but found that I am unable to perform so on my router. Next, I tried to provide a QR code, but for that, every time I need to bring the person the QR code. Now I am trying to... | android|ios|xcode|react-native|android-studio | 0 | 2022-05-15T14:35:09.457Z | 2,022 | 5 | 14 | 6 | 376 | 0 | 823 | 42 | 5 | 1 | true | true | false | false | false | false | zero |
72,249,254 | After merging two branch and then rebuilding I am getting these errors related to Dagger/missing binding | <p>I am working on a client project via GitHub, there is two branches let's say branch 1 and branch 2, and both are working perfectly separately, but when I merge branch 1 into branch 2 and resolve all conflicts and then after resolving all conflicts, i clean the project, sync it and then try to rebuild it then it is t... | I am working on a client project via GitHub, there is two branches let's say branch 1 and branch 2, and both are working perfectly separately, but when I merge branch 1 into branch 2 and resolve all conflicts and then after resolving all conflicts, i clean the project, sync it and then try to rebuild it then it is thro... | android|android-studio|kotlin | 1 | 2022-05-15T14:38:51.957Z | 2,022 | 5 | 14 | 6 | 46 | 0 | 471 | 104 | 3 | 1 | true | true | false | false | false | false | low |
72,249,416 | I am trying to set a back arrow in my toolbar but I can't get it to take you to the previous page when clicked | <p>I am working with xamarin.android.
I have tried to use the SetNavigationOnClickListener method but I have not been able to implement it. Could someone tell me what to set so that when I click the arrow it returns me to the previous page?
XML:</p>
<pre><code><androidx.appcompat.widget.Toolbar
android:id=&q... | I am working with xamarin.android. I have tried to use the SetNavigationOnClickListener method but I have not been able to implement it. Could someone tell me what to set so that when I click the arrow it returns me to the previous page? XML: [CODE] Code: [CODE] | xamarin|xamarin.android | 0 | 2022-05-15T14:54:48.897Z | 2,022 | 5 | 14 | 6 | 82 | 1 | 262 | 110 | 2 | 2 | true | false | false | false | false | false | zero |
72,249,594 | Mutable shared flow failed to collect emitted values | <p>I started on building Apps using Android Compose and am learning Kotlin's coroutine and stuff. Below are the samples of code that I have written for an app, where I tried to use MutableSharedFlow <strong>emit</strong> and <strong>collectLatest</strong> for updating UI.
<a href="https://i.stack.imgur.com/nKWMw.png" r... | I started on building Apps using Android Compose and am learning Kotlin's coroutine and stuff. Below are the samples of code that I have written for an app, where I tried to use MutableSharedFlow emit and collectLatest for updating UI. Init Method of ViewModel [CODE] This is the view modal for the Login SingUp screen. ... | android|kotlin|android-jetpack-compose|kotlin-coroutines|sharedflow | 1 | 2022-05-15T15:19:54Z | -1 | -1 | -1 | -1 | 836 | 0 | 993 | 52 | 5 | 3 | true | true | false | false | false | false | low |
72,249,674 | flutter- D8: Type com.dexterous.flutterlocalnotifications.utils.BooleanUtils is defined multiple times: | <p>I am pretty new at this so the question might be stupid but-
I'm working on a flutter app and I'm trying to add notifications to it.
Everything works fine, but when I add <code>'flutter_local_notifications: ^9.5.3'</code> under dependencies in the pubspec file, I get this error:</p>
<blockquote>
<p>...Documents/proj... | I am pretty new at this so the question might be stupid but- I'm working on a flutter app and I'm trying to add notifications to it. Everything works fine, but when I add 'flutter_local_notifications: ^9.5.3' under dependencies in the pubspec file, I get this error: ...Documents/projectname/build/flutter_local_notifica... | android|flutter|flutter-dependencies|flutter-local-notification | 0 | 2022-05-15T15:29:19.903Z | 2,022 | 5 | 15 | 6 | 20 | 0 | 669 | 103 | 4 | 0 | false | true | false | false | false | false | zero |
72,249,927 | Getting ENOENT error when deploying a function for the notifications of my application (Firebase function) | <p>I'm trying to deploy a function to send notifications for my chat application. I get this error shown below, but I can't understand where the it comes from.</p>
<p>Could you help me to understand where the error comes from? Is this a problem with my code in the index.js file?</p>
<p>Here is the error:</p>
<p><a href... | I'm trying to deploy a function to send notifications for my chat application. I get this error shown below, but I can't understand where the it comes from. Could you help me to understand where the error comes from? Is this a problem with my code in the index.js file? Here is the error: index.js : [CODE] firebase.js :... | javascript|java|firebase|android-studio|google-cloud-functions | 0 | 2022-05-15T15:58:54.100Z | 2,022 | 5 | 15 | 6 | 19 | 0 | 327 | 106 | 5 | 2 | true | true | false | false | false | false | zero |
72,249,931 | Populating RecyclerView with all of the childs of Realtime Database with certain value | <p>I have to populate a RecyclerView with all of the children that have <code>favourite = true</code>, this is my database structure:
<a href="https://i.stack.imgur.com/7C6Ys.png" rel="nofollow noreferrer">https://i.stack.imgur.com/7C6Ys.png</a></p>
<p><strong>EDIT</strong>
The response I was looking is in the comments... | I have to populate a RecyclerView with all of the children that have favourite = true , this is my database structure: https://i.stack.imgur.com/7C6Ys.png EDIT The response I was looking is in the comments provided by alex [CODE] | android|firebase|kotlin|google-cloud-platform|firebase-realtime-database | 0 | 2022-05-15T15:59:21.830Z | 2,022 | 5 | 15 | 6 | 36 | 1 | 229 | 86 | 5 | 1 | true | false | false | false | false | false | zero |
72,249,985 | How to enlarge images android studio | <p>The gallery app. I made my adapter. I want to make it so that when you click on the image, it increases. I found a ready-made code, but it only shows a toast here. As I understand it, something needs to be added in the listener, but I don't know what. What do I need to add in the listener to make the picture bigger?... | The gallery app. I made my adapter. I want to make it so that when you click on the image, it increases. I found a ready-made code, but it only shows a toast here. As I understand it, something needs to be added in the listener, but I don't know what. What do I need to add in the listener to make the picture bigger? [C... | java|android | 0 | 2022-05-15T16:06:44.717Z | 2,022 | 5 | 16 | 6 | 27 | 0 | 324 | 36 | 2 | 1 | true | true | false | false | false | false | zero |
72,249,992 | How do I programmatically scroll a Xamarin Android listview? | <p>I want to coordinate the scroll between an editor and a listview filled with checkboxes. Each checkbox should correspond to a row in the editor.</p>
<p>Creation all works fine but when I try to sync the scrolling, the checkboxes scroll, but nothing past the bottom of the screen is rendered when it supposedly scrolls... | I want to coordinate the scroll between an editor and a listview filled with checkboxes. Each checkbox should correspond to a row in the editor. Creation all works fine but when I try to sync the scrolling, the checkboxes scroll, but nothing past the bottom of the screen is rendered when it supposedly scrolls into view... | listview|scroll|xamarin.android|custom-renderer | 0 | 2022-05-15T16:08:18.320Z | 2,022 | 5 | 16 | 6 | 36 | 0 | 712 | 60 | 4 | 1 | true | true | false | false | false | false | zero |
72,250,017 | proguard wont let me to do readText by ktor to convert it to data class by Google Json | <p>as you can see the sample:</p>
<pre class="lang-kotlin prettyprint-override"><code>val response = service.sendPhoneNumber(phoneNumber = phoneNumber)
val user = Gson().fromJson(response.readText(), User::class.java)
</code></pre>
<p>after active proguard, I won't be able to get User, response works fine but user is e... | as you can see the sample: [CODE] after active proguard, I won't be able to get User, response works fine but user is empty, I use ktor to connect to network but to convert response to data class I use google json; tried to add rules in proguard file, but it wouldn't help, any idea how can to fix that? Edit: figure it ... | android|kotlin|proguard|ktor-client | 0 | 2022-05-15T16:11:28.783Z | 2,022 | 5 | 16 | 6 | 72 | 0 | 390 | 86 | 4 | 1 | true | true | false | false | false | false | zero |
72,250,120 | How can I create a global object/service that can be used across my Viewmodels/controllers android | <p>I am creating an app that is powered by firebase. I want to implement the firebase auth, which according to the <a href="https://firebase.google.com/docs/auth/android/password-auth" rel="nofollow noreferrer">documentation</a> would require me to initialize the auth object and use it around the application:</p>
<pre>... | I am creating an app that is powered by firebase. I want to implement the firebase auth, which according to the documentation would require me to initialize the auth object and use it around the application: [CODE] Is there a way to have the initialized auth object global, and probably lifecycle aware, so I can just us... | android|kotlin | 0 | 2022-05-15T16:23:22.943Z | 2,022 | 5 | 16 | 6 | 22 | 1 | 406 | 98 | 2 | 1 | true | false | false | false | false | false | zero |
72,250,320 | Padding in textview in example.java | <pre><code> StringBuilder sb = new StringBuilder();
for (int x = 0; x <= 5; x++) {
sb.append(x).append("\n");
}
textView.setText(sb);
</code></pre>
<p>In the above problem the textView is printing <br>
0 <br>
1 <br>
2 <br>
3 <br>
4 <br>
5 <br></p>
<p>I am unable to print the number with ... | [CODE] In the above problem the textView is printing 0 1 2 3 4 5 I am unable to print the number with paddingTop or paddingBottom like the below given example 0 1 2 3 Please help me to achive the above target. | java|android | 0 | 2022-05-15T16:50:54.310Z | 2,022 | 5 | 16 | 6 | 27 | 1 | 209 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
72,250,340 | How to use GpuDelegate in case of no OpenCL found in Android Device? | <p>I am very new to Android ,I am making CV application which uses tensorflow lite 'GpuDelegate'.
it works perfectly fine on Redmi 8A cause device supported OpenCl while when i installed in Infinix Hot 8 lite , it crashes with this error.</p>
<blockquote>
<p>java.lang.IllegalArgumentException: Internal error: Failed t... | I am very new to Android ,I am making CV application which uses tensorflow lite 'GpuDelegate'. it works perfectly fine on Redmi 8A cause device supported OpenCl while when i installed in Infinix Hot 8 lite , it crashes with this error. java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: Can no... | java|android|opencv|opencl|tensorflow-lite | 1 | 2022-05-15T16:54:10.990Z | 2,022 | 5 | 16 | 6 | 159 | 0 | 886 | 68 | 5 | 0 | false | true | false | false | false | false | low |
72,250,384 | Same fragment layout different ImageView and text | <p>I have a fragment that contains 3 different ImageButtons, that links to a new fragment with some information.</p>
<p>All info.fragments have the same layout, only different is the image and text.</p>
<p>I would like to reuse the layout on the info.fragment and pass the image and text value instead. ex. StarImage and... | I have a fragment that contains 3 different ImageButtons, that links to a new fragment with some information. All info.fragments have the same layout, only different is the image and text. I would like to reuse the layout on the info.fragment and pass the image and text value instead. ex. StarImage and StarText and the... | android|kotlin|android-fragments | 0 | 2022-05-15T16:58:41.247Z | 2,022 | 5 | 16 | 6 | 20 | 1 | 433 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
72,250,386 | items on my list doesn't get cleared new items add on the bottom | <p>I'm doing a api request with paramether from a edittext the items comes from api being added to list but I wanna clear the old list and create a new list for this items how can I do that?</p>
<p>when I try differ.currentList.clear() is crashes the app and I can't think of anything else</p>
<p>here is my MainActivity... | I'm doing a api request with paramether from a edittext the items comes from api being added to list but I wanna clear the old list and create a new list for this items how can I do that? when I try differ.currentList.clear() is crashes the app and I can't think of anything else here is my MainActivity [CODE] and my Ad... | android|kotlin | 0 | 2022-05-15T16:58:50.883Z | 2,022 | 5 | 16 | 6 | 39 | 1 | 332 | 64 | 2 | 2 | true | false | false | false | false | false | zero |
72,250,431 | Change background on an activity from another activity | <p>I'm trying to change the background on an activity from another activity but it's not working.
ConstraintLayout layout = findViewById(R.id.main_layout);
layout.setBackgroundResource(R.drawable.summer);</p>
<p>When I change the main_layout (main activity) to second_layout (second activity) it works on the second acti... | I'm trying to change the background on an activity from another activity but it's not working. ConstraintLayout layout = findViewById(R.id.main_layout); layout.setBackgroundResource(R.drawable.summer); When I change the main_layout (main activity) to second_layout (second activity) it works on the second activity, but ... | android|background | 0 | 2022-05-15T17:04:00.820Z | 2,022 | 5 | 17 | 6 | 41 | 1 | 365 | 54 | 2 | 0 | false | false | false | false | false | false | zero |
72,250,470 | BitmapFactory.decodeFile() returns null when file exists in internal memory | <p>I have the following jpg image in the internal memory, but <code>BitmapFactory.decodeFile</code> returns <code>null</code>:</p>
<p><a href="https://i.stack.imgur.com/Dv0To.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dv0To.jpg" alt="enter image description here" /></a></p>
<pre><code> File im... | I have the following jpg image in the internal memory, but BitmapFactory.decodeFile returns null : [CODE] It can detect that imgFile exists, but the return value is null. Does anyone know what might be the reason? | android|android-bitmap | 0 | 2022-05-15T17:07:50.997Z | 2,022 | 5 | 17 | 6 | 130 | 0 | 213 | 75 | 2 | 1 | true | true | false | false | false | false | zero |
72,250,522 | cocos2dx crash on android | <p>My game has a high flash back rate on Android platform, but the flash back stack can't provide the reason. Can anyone provide clues.</p>
<p><a href="https://i.stack.imgur.com/QJcEl.png" rel="nofollow noreferrer">crash-statck.png</a></p>
<pre><code>0 libcocos2djs.so js::ObjectImpl::initializeSlotRange(unsigned int, u... | My game has a high flash back rate on Android platform, but the flash back stack can't provide the reason. Can anyone provide clues. crash-statck.png [CODE] environment: cocos2dx-3.17 on mac android There are several explanations: arm64 caused this. Used memory that has been freed. If anyone can provide the right solut... | android|firebase|cocos2d-x-3.17 | 0 | 2022-05-15T17:15:21.500Z | 2,022 | 5 | 17 | 6 | 15 | 0 | 358 | 25 | 3 | 1 | true | true | false | false | false | false | zero |
72,250,571 | Send a notification in app to another user using Firebase Messaging given user's device token in Flutter | <p>I came across Firebase Messaging, and after reading through the guide, they have posted here: <a href="https://firebase.google.com/docs/cloud-messaging/flutter/client" rel="noreferrer">https://firebase.google.com/docs/cloud-messaging/flutter/client</a>, I was able to get a user's device token. However, the tutorial ... | I came across Firebase Messaging, and after reading through the guide, they have posted here: https://firebase.google.com/docs/cloud-messaging/flutter/client , I was able to get a user's device token. However, the tutorial only presents an example of sending a test message to a device using the Firebase console. How wo... | android|firebase|flutter|firebase-cloud-messaging|devicetoken | 5 | 2022-05-15T17:23:07.963Z | 2,022 | 5 | 17 | 6 | 216 | 0 | 528 | 104 | 5 | 0 | false | true | false | false | false | false | low |
72,250,617 | Causing issue in printing image using blue thermal package Flutter | <p>When I connect the printer and print the first time image, It's working fine. But in second time when I try to print that image text moved from left to right. In the third time again it moved from left to right.</p> | When I connect the printer and print the first time image, It's working fine. But in second time when I try to print that image text moved from left to right. In the third time again it moved from left to right. | android|flutter|dart|printing|package | 0 | 2022-05-15T17:29:10.680Z | 2,022 | 5 | 17 | 6 | 84 | 0 | 211 | 66 | 5 | 0 | false | true | false | false | false | false | zero |
72,250,644 | KeyboardAvoidingView doesn't work on selecting emojis from the keyboard | <p>The <code>KeyboardAvoidingView</code> covers the <code>TextInput</code> UI while selecting emojis from the virtual keyboard.</p>
<p>Here is a sample code, <code>KeyboardAvoidingView</code> in this case works fine on entering the text from the virtual keyboard. however, on switching to the emoji picker in the virtual... | The KeyboardAvoidingView covers the TextInput UI while selecting emojis from the virtual keyboard. Here is a sample code, KeyboardAvoidingView in this case works fine on entering the text from the virtual keyboard. however, on switching to the emoji picker in the virtual keyboard the automatically adjusted padding | he... | android|ios|react-native|keyboard | 2 | 2022-05-15T17:32:02.513Z | 2,022 | 5 | 17 | 6 | 100 | 1 | 404 | 71 | 4 | 1 | true | false | false | false | false | false | low |
72,250,744 | Android BottomNavigationView: too much space between icon and text | <p>As of recently the bottom nav bar started to include some strange space between the text and icons (I think after I updated the dependency):</p>
<p><a href="https://i.stack.imgur.com/pzOVz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pzOVz.png" alt="enter image description here" /></a><br />
(C... | As of recently the bottom nav bar started to include some strange space between the text and icons (I think after I updated the dependency): (Colored red to see the boundaries) There seems to be a spacer inbetween the icon and text now, which pushes both to the extreme ends of the bar. All I found so far is to use app:... | android|bottomnavigationview|android-bottomnav | 1 | 2022-05-15T17:43:20.440Z | 2,022 | 5 | 17 | 6 | 588 | 1 | 555 | 66 | 3 | 1 | true | false | false | false | false | false | low |
72,250,753 | Show dialog every time turn on phone | <p>I need to show custom dialog that's gite data from Api and display it in this dialog on the screen every time the user open his phone from lock it.</p>
<p>I know how to setup the Api call and All these thing, but I don't know how can I show the dialog screen every time the user open his phone.
And also How can I sho... | I need to show custom dialog that's gite data from Api and display it in this dialog on the screen every time the user open his phone from lock it. I know how to setup the Api call and All these thing, but I don't know how can I show the dialog screen every time the user open his phone. And also How can I show the dial... | java|android|kotlin | 1 | 2022-05-15T17:44:29.130Z | 2,022 | 5 | 17 | 6 | 34 | 0 | 376 | 36 | 3 | 0 | false | true | false | false | false | false | low |
72,250,823 | How to update options in Firebase Paging Adapter? | <p>I am using Firestore Paging Adapter to display posts from Firestore. Initially it shows all the posts. I want to add button that will filter posts, for example for particular date.</p>
<pre><code>query = firebaseFirestore.collectionGroup("posts")
.orderBy("start", Query.Direction.... | I am using Firestore Paging Adapter to display posts from Firestore. Initially it shows all the posts. I want to add button that will filter posts, for example for particular date. [CODE] How can I update options object or the query inside it? I found article that told we can use updateOptions() method in Kotlin, but i... | android|firebase|google-cloud-firestore|firebaseui|android-paging | 0 | 2022-05-15T17:51:42.183Z | 2,022 | 5 | 17 | 6 | 72 | 0 | 477 | 49 | 5 | 1 | true | true | false | false | false | false | zero |
72,250,985 | ERROR Facebook Login disabled in Ionic 3 Cordova | <p>For your account security logging into from an embedded browser is disabled</p>
<p>I have tried to <a href="https://developers.facebook.com/docs/facebook-login/android/deprecating-webviews" rel="nofollow noreferrer">updating</a> the <code>facebook-sdk-android</code> package from v4.14.+ to v8.2.0</p>
<pre><code>/app... | For your account security logging into from an embedded browser is disabled I have tried to updating the facebook-sdk-android package from v4.14.+ to v8.2.0 [CODE] But it doesn't work, when built it takes the previous version of v4.14.+ | javascript|android|angular|cordova|ionic3 | 0 | 2022-05-15T18:10:50.390Z | 2,022 | 5 | 18 | 6 | 73 | 0 | 236 | 48 | 5 | 1 | true | true | false | false | false | false | zero |
72,251,000 | Is there the way to change LinearLayout width in recyclerview adapter (Kotlin) | <p>I have some diff blocks generated with RecyclerView, according the design the last two blocks should have another text size. I do this programmatically:</p>
<pre><code> when(position){
0 -> {
holder.catCard.setCardBackgroundColor(Color.parseColor("#FF5668"))
}
1 ->... | I have some diff blocks generated with RecyclerView, according the design the last two blocks should have another text size. I do this programmatically: [CODE] But I also have to change the view one of the LinearLayout: [CODE] the variable from inner class. I try to implement some solution but it does not work at all. ... | android-studio|kotlin|android-recyclerview | 0 | 2022-05-15T18:12:32.057Z | 2,022 | 5 | 18 | 6 | 55 | 1 | 367 | 78 | 3 | 2 | true | false | false | false | false | false | zero |
72,251,167 | LocalDatabase_Impl does not exist | <pre><code>@Database(entities = [AepsBankTokenModel::class], version = 1)
abstract class LocalDatabase : RoomDatabase() {
abstract fun aepsBankTokenDao(): AepsBankTokenDao
companion object {
private var DATABASE_INSTANCE: LocalDatabase? = null
private const val DB_NAME = "wla.db"
fun getInstance(... | [CODE] all the above files are created in one module and accessing into another module using aar file but every time it gives below error 2022-05-15 23:39:04.895 15276-15276/com.a W/System.err: java.lang.RuntimeException: cannot find implementation for com.a.sdk.database.LocalDatabase. LocalDatabase_Impl does not exist... | android|database|android-room|kapt | 0 | 2022-05-15T18:35:16.277Z | 2,022 | 5 | 18 | 6 | 46 | 2 | 931 | 33 | 4 | 1 | true | false | false | false | false | false | zero |
72,251,217 | Bottom Sheet for multiple items inside RecyclerView | <p>I have a posts feed that looks like Twitter. Each item in that feed has a button that when clicked should open up a bottom sheet. The feed uses the RecyclerView layout and the paging library. My question is how do I go about implementing bottom sheet for each individual item dynamically so that when a user clicks on... | I have a posts feed that looks like Twitter. Each item in that feed has a button that when clicked should open up a bottom sheet. The feed uses the RecyclerView layout and the paging library. My question is how do I go about implementing bottom sheet for each individual item dynamically so that when a user clicks on th... | android|kotlin|bottom-sheet | 0 | 2022-05-15T18:42:07.930Z | 2,022 | 5 | 18 | 6 | 329 | 2 | 578 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
72,251,311 | Could not get unknown property 'uploadArchives' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer | <p>how to repair this problem,...</p>
<p>A problem occurred configuring project ':DragRecylerView'.</p>
<blockquote>
<p>Could not get unknown property 'uploadArchives' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.</p>
</blockquote>
<pre><code>dependencies {
classpath 'com.android.too... | how to repair this problem,... A problem occurred configuring project ':DragRecylerView'. Could not get unknown property 'uploadArchives' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. [CODE] | android | 1 | 2022-05-15T18:53:20.663Z | 2,022 | 5 | 18 | 6 | 1,268 | 1 | 217 | 119 | 1 | 1 | true | false | false | false | false | false | low |
72,251,344 | EAS completed APK build not working on some Androids, but Expo build works on all | <p>I'm building a react native app using Expo's managed app service.</p>
<p>The app has been working great and bug-free on all android phones using the Expo Build:android apk.
Yesterday I upgraded to the 45 expo SDK and have built the app using the EAS build command.
Now, the app works on all iOS devices, but some andr... | I'm building a react native app using Expo's managed app service. The app has been working great and bug-free on all android phones using the Expo Build:android apk. Yesterday I upgraded to the 45 expo SDK and have built the app using the EAS build command. Now, the app works on all iOS devices, but some android now cr... | android|react-native|expo | 1 | 2022-05-15T18:58:27.023Z | 2,022 | 5 | 18 | 6 | 497 | 0 | 583 | 81 | 3 | 2 | true | true | false | false | false | false | low |
72,251,352 | Android Navigation Component Bottom Navigation Bar With Multiple Backstack - routing from one bottom navigation page to another bottom navigation page | <p>i have a question about to the navigation. could you please to help me resolve this.
There are nav graphs attached to BottomNavigationView and they have separate backstacks.
my main nav graph :</p>
<pre><code><navigation
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="... | i have a question about to the navigation. could you please to help me resolve this. There are nav graphs attached to BottomNavigationView and they have separate backstacks. my main nav graph : [CODE] In this way, I want to switch from the home screen to the leaderboard page without clicking the bottom navigation. [COD... | android|kotlin|navigation|android-architecture-navigation|android-jetpack-navigation | 0 | 2022-05-15T18:59:16.663Z | 2,022 | 5 | 18 | 6 | 33 | 0 | 1,528 | 150 | 5 | 2 | true | true | false | false | false | false | zero |
72,251,432 | How to get scrollposition | <p>How do you get scrollposition off LazyRow. is it possible in any way to get the float position of user scroll in LazyRow. I understand that you have to dceal with listState but i cant find the position inside the list state... Please help<a href="https://i.stack.imgur.com/1efD4.png" rel="nofollow noreferrer"><img sr... | How do you get scrollposition off LazyRow. is it possible in any way to get the float position of user scroll in LazyRow. I understand that you have to dceal with listState but i cant find the position inside the list state... Please help | list|android-jetpack-compose | 0 | 2022-05-15T19:09:58.827Z | 2,022 | 5 | 19 | 6 | 31 | 0 | 238 | 25 | 2 | 0 | false | true | false | false | false | false | zero |
72,251,433 | How to correct missing pending intent on android 12 in a third party library? | <p>I have a 3rd party library that uses pending intent and my app crushes on android 12 because of that:</p>
<blockquote>
<p>java.lang.IllegalArgumentException: com.myapp: Targeting S+ (version
31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be
specified when creating a PendingIntent.
Strongly conside... | I have a 3rd party library that uses pending intent and my app crushes on android 12 because of that: java.lang.IllegalArgumentException: com.myapp: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE,... | java|android|android-studio|libpd | 2 | 2022-05-15T19:10:01.623Z | 2,022 | 5 | 19 | 6 | 414 | 1 | 722 | 77 | 4 | 3 | true | false | false | false | false | false | low |
72,251,485 | How to show some native Toast message depending on orientation of a device when a user takes a photo? Xamarin.forms | <p>I use for taking photo this:</p>
<p>using (IMediaFile captureFile = await MediaGallery.CapturePhotoAsync())</p>
<p>But I want next behavior. Check orientation (very important orientation of Native Camera View). If the user hold phone vertically -> he sees some message on the top like "Please take photo ONLY ... | I use for taking photo this: using (IMediaFile captureFile = await MediaGallery.CapturePhotoAsync()) But I want next behavior. Check orientation (very important orientation of Native Camera View). If the user hold phone vertically -> he sees some message on the top like "Please take photo ONLY on landscape mode&qu... | xamarin|xamarin.forms|xamarin.android|xamarin.ios | 0 | 2022-05-15T19:18:33.170Z | 2,022 | 5 | 19 | 6 | 42 | 0 | 525 | 115 | 4 | 0 | false | true | false | false | false | false | zero |
72,251,642 | Super fast Bitmap 180 degrees rotation using OpenCV on Android | <p>I am looking for a fast way to rotate a <code>Bitmap</code> 180 degrees using OpenCV on Android. Also, the <code>Bitmap</code> may be rotated in place, i.e. without allocation of additional memory.</p>
<p>Here <a href="https://stackoverflow.com/users/986216/riwnodennyk">riwnodennyk</a> described different methods of... | I am looking for a fast way to rotate a Bitmap 180 degrees using OpenCV on Android. Also, the Bitmap may be rotated in place, i.e. without allocation of additional memory. Here riwnodennyk described different methods of rotating Bitmap s and compared their performances: https://stackoverflow.com/a/29734593/1707617 . He... | android|opencv|optimization | 0 | 2022-05-15T19:40:07.047Z | 2,022 | 5 | 19 | 6 | 119 | 1 | 961 | 62 | 3 | 1 | true | false | false | false | false | false | zero |
72,251,655 | How do I properly use this kotlin library? | <p>I'm working to implement a library that calls RPC calls and I can't understand how exactly I can implement library functionality into my MainActivity.</p>
<p>I've succesfully imported library as a module, but just don't know how to use.
Lirabry link - <a href="https://www.google.com/search?client=safari&rls=en&a... | I'm working to implement a library that calls RPC calls and I can't understand how exactly I can implement library functionality into my MainActivity. I've succesfully imported library as a module, but just don't know how to use. Lirabry link - https://www.google.com/search?client=safari&rls=en&q=solana+kotlin&ie=UTF-8... | android|kotlin|solana | 0 | 2022-05-15T19:41:31.457Z | 2,022 | 5 | 19 | 6 | 48 | 0 | 415 | 42 | 3 | 0 | false | true | false | false | false | false | zero |
72,251,672 | Error Execution failed for task ':google_api_headers:compileReleaseKotlin'. > | <p>I have this error while i build my flutter apk</p>
<blockquote>
<p>e:
C:\Users\Utilisateur\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_api_headers-1.1.1\android\src\main\kotlin\io\github\zeshuaro\google_api_headers\GoogleApiHeadersPlugin.kt:
(52, 8 1): Type mismatch: inferred type is String? but String wa... | I have this error while i build my flutter apk e: C:\Users\Utilisateur\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_api_headers-1.1.1\android\src\main\kotlin\io\github\zeshuaro\google_api_headers\GoogleApiHeadersPlugin.kt: (52, 8 1): Type mismatch: inferred type is String? but String was expected FAILURE: Bui... | android | 1 | 2022-05-15T19:44:04.430Z | 2,022 | 5 | 19 | 6 | 204 | 0 | 752 | 77 | 1 | 0 | false | true | false | false | false | false | low |
72,251,700 | recyclerView on android Studio | <pre><code>RecyclerView recyclerView = findViewById(R.id.recyclerView);
recyclerView.setHasFixedSize(true);
recyclerView.setLayoutManager(new LinearLayoutManager(NoticeMngActivity.this));
RecyclerView.Adapter mAdapter = new noticeListAdapter(NoticeMngActivity.this, notice... | [CODE] I did this code in the main activity and there was error java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference This error pointed to [CODE] But I checked noticeList size is 4 by log.d()...before passing to Adapter. why doesn't it work.... And... | java|android|android-recyclerview|adapter | 0 | 2022-05-15T19:47:19.810Z | 2,022 | 5 | 19 | 6 | 16 | 0 | 498 | 30 | 4 | 4 | true | true | false | false | false | false | zero |
72,252,108 | How to find and retrieve live photos from external or media storage in android? | <p>I want to retrieve all live photos from android device, any advices?</p> | I want to retrieve all live photos from android device, any advices? | android|kotlin|mediastore|android-external-storage | 0 | 2022-05-15T20:53:11.507Z | 2,022 | 5 | 20 | 6 | 51 | 1 | 68 | 79 | 4 | 0 | false | false | false | false | false | false | zero |
72,252,270 | How to add search filter inside recyclerview? | <p>I created two different lists inside the recycling but when I add the <code>search filter</code> I don't know what to do when I was dealing with one list the placement was easy for me but now I am confused I want help from anyone who has experience dealing with recyclerview</p>
<pre><code>public class RecyclerViewAd... | I created two different lists inside the recycling but when I add the search filter I don't know what to do when I was dealing with one list the placement was easy for me but now I am confused I want help from anyone who has experience dealing with recyclerview [CODE] | android|android-recyclerview|adapter|searchview | 0 | 2022-05-15T21:21:36.680Z | 2,022 | 5 | 21 | 6 | 74 | 0 | 268 | 45 | 4 | 1 | true | true | false | false | false | false | zero |
72,252,367 | Unconditional layout inflation from view adapter: Should use View Holder pattern - Kotlin | <p>I was working through a tutorial, and I am getting following warning in Android Studio: "Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling." on inflater.inflate(R.layout.animal_ticket, ... | I was working through a tutorial, and I am getting following warning in Android Studio: "Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling." on inflater.inflate(R.layout.animal_ticket, nul... | android|android-studio|kotlin | 0 | 2022-05-15T21:37:45.357Z | 2,022 | 5 | 21 | 6 | 92 | 1 | 467 | 89 | 3 | 1 | true | false | false | false | false | false | zero |
72,252,436 | How can I check if a document exist on Firebase Firestore? | <p>this is my function, my problem is: When I'm call this function, first return a null value, after that, the "println" line prints in console all the content of the document and it´s not null</p>
<pre><code>fun readDescriptor(email: String): HashMap<String, Any>? {
var result: HashMap<String, A... | this is my function, my problem is: When I'm call this function, first return a null value, after that, the "println" line prints in console all the content of the document and it´s not null [CODE] how can I get objectively if a document exist or not? ty | android|firebase|kotlin|google-cloud-firestore | 0 | 2022-05-15T21:50:01.930Z | 2,022 | 5 | 21 | 6 | 20 | 0 | 264 | 58 | 4 | 1 | true | true | false | false | false | false | zero |
72,252,577 | What is the simplest way to make a post request in Kotlin for Android app | <p>The question about post requests in android has been asked before, but all the solutions I've tried have not worked properly. On top of that, a lot of them seem to be overly complicated as well. All I wish to do is make a post to a specific sight with a few body parameters. Is there any simple way to do that?</p> | The question about post requests in android has been asked before, but all the solutions I've tried have not worked properly. On top of that, a lot of them seem to be overly complicated as well. All I wish to do is make a post to a specific sight with a few body parameters. Is there any simple way to do that? | android|kotlin|post | -1 | 2022-05-15T22:15:59.233Z | 2,022 | 5 | 22 | 6 | 557 | 1 | 310 | 73 | 3 | 0 | false | false | false | false | false | true | negative |
72,252,580 | Xamarin.UITest package does not have a signature matching the target | <p>I am very new in Xamarin and automation mobile testing as well. I created the Xamarin.UITest Cross-Platform Test Project in visual studio and try to run some simple tests for virtual device from Android Device Manager.</p>
<p>I'm trying to use this, but get the message
'Failed to execute: C:\Program Files (x86)\And... | I am very new in Xamarin and automation mobile testing as well. I created the Xamarin.UITest Cross-Platform Test Project in visual studio and try to run some simple tests for virtual device from Android Device Manager. I'm trying to use this, but get the message 'Failed to execute: C:\Program Files (x86)\Android\androi... | c#|android|xamarin|automation | 1 | 2022-05-15T22:17:08.507Z | 2,022 | 5 | 22 | 6 | 42 | 0 | 823 | 68 | 4 | 1 | true | true | false | false | false | false | low |
72,252,602 | Flutter build faild after updating kotlin plugin in android studio | <p>last week i updated Kotlin IDE plugin in android studio IDE but after that my flutter project faild to build to debugin or release i face this error, i thought android studio is the problem but vscode is the same result so after googling in 7 days i tried many solutions but im facing new errors so this the first err... | last week i updated Kotlin IDE plugin in android studio IDE but after that my flutter project faild to build to debugin or release i face this error, i thought android studio is the problem but vscode is the same result so after googling in 7 days i tried many solutions but im facing new errors so this the first error ... | android|flutter|android-studio|gradle | 0 | 2022-05-15T22:22:46.617Z | 2,022 | 5 | 22 | 6 | 187 | 1 | 568 | 66 | 4 | 3 | true | false | false | false | false | false | zero |
72,252,720 | Opening Activity from anywhere using buttons | <p>I am working on an App that should perform a function when a certain sequence of buttons are pressed from anywhere in an Android device. For example, if the volume down button is hold pressed for more than 10 seconds and activity in the app will start.</p>
<p>I have been looking up stuff, and all I seem to get is ho... | I am working on an App that should perform a function when a certain sequence of buttons are pressed from anywhere in an Android device. For example, if the volume down button is hold pressed for more than 10 seconds and activity in the app will start. I have been looking up stuff, and all I seem to get is how you can ... | android|android-studio|android-activity | 0 | 2022-05-15T22:53:07.050Z | 2,022 | 5 | 22 | 6 | 23 | 0 | 452 | 44 | 3 | 0 | false | true | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.