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,153,393
How can I change my recyclerView items order?
<p>I would like to sort my items in order to put at the beginning chosen elements, I created a small piece of code allowing it which works rather well, but when I update my array in the adapter, the recyclerview is unchanged. I tried to do it with an update function in my adapter, and with the debugger, I see that the ...
I would like to sort my items in order to put at the beginning chosen elements, I created a small piece of code allowing it which works rather well, but when I update my array in the adapter, the recyclerview is unchanged. I tried to do it with an update function in my adapter, and with the debugger, I see that the pas...
java|android|kotlin|android-recyclerview|adapter
-1
2022-05-07T14:23:10.237Z
2,022
5
14
5
184
1
705
45
5
3
true
false
false
false
false
true
negative
72,153,415
How can I load image from Picasso to androidStudio project?
<p>I develop to weather application with &quot;OpenWeatherMap&quot; API. I can write to load image command from this API but can't load weather icon to ImageView as &quot;ImageWeat&quot;.</p> <pre><code> JSONArray jsonArray = jsonObject.getJSONArray(&quot;weather&quot;); JSONObject object...
I develop to weather application with &quot;OpenWeatherMap&quot; API. I can write to load image command from this API but can't load weather icon to ImageView as &quot;ImageWeat&quot;. [CODE]
java|android|picasso|openweathermap
0
2022-05-07T14:25:58.850Z
2,022
5
14
5
42
1
191
59
4
1
true
false
false
false
false
false
zero
72,153,475
How to move across multiple activities
<p>I need help with moving from one activity to another. I am a beginner just learning how to use Kotlin to build Apps.</p> <p>So my project contains about 14 activities and I need to be able to move from one activity to the other and backwards when I click on the &quot;continue&quot; or &quot;back&quot; buttons respec...
I need help with moving from one activity to another. I am a beginner just learning how to use Kotlin to build Apps. So my project contains about 14 activities and I need to be able to move from one activity to the other and backwards when I click on the &quot;continue&quot; or &quot;back&quot; buttons respectively. I ...
android|kotlin|android-activity
0
2022-05-07T14:33:29.907Z
2,022
5
14
5
111
2
1,033
38
3
8
true
false
false
false
false
false
zero
72,153,542
I don't know how to solve this 'on a null object reference'
<p>I'm working on the code right now, and I can't move forward after I face that problem What should I do?</p> <p><strong>java.lang.RuntimeException: Unable to start activity ComponentInfo{org.techtown.voiceletter/org.techtown.voiceletter.VoiceRecord_Text_List}: java.lang.NullPointerException: Attempt to invoke virtual...
I'm working on the code right now, and I can't move forward after I face that problem What should I do? java.lang.RuntimeException: Unable to start activity ComponentInfo{org.techtown.voiceletter/org.techtown.voiceletter.VoiceRecord_Text_List}: java.lang.NullPointerException: Attempt to invoke virtual method 'void andr...
java|android|android-recyclerview
0
2022-05-07T14:41:05.667Z
2,022
5
14
5
23
0
3,440
59
3
3
true
true
false
false
false
false
zero
72,153,606
'awaitClose { yourCallbackOrListener. cancel() }' should be used in the end of callbackFlow block
<p>How to properly use callBacFlow of Coroutie with Firebase i am working on image processig app in which i am converting task class to flow api callback</p> <pre><code> //Callback for this fun requestDetectInImageFlow(firebaseVisionImage: FirebaseVisionImage, imageProxy: ImageProxy): Flow&lt;String...
How to properly use callBacFlow of Coroutie with Firebase i am working on image processig app in which i am converting task class to flow api callback [CODE]
android|android-studio
0
2022-05-07T14:48:47.273Z
2,022
5
14
5
31
0
157
97
2
1
true
true
false
false
false
false
zero
72,153,695
Problem accessing specific field dynamically
<p>So kost of you just be know about mealDB, and i have problem accessing one of it's data for GridView.builder, named stringredient inside the detail of food.</p> <p>Usually i access this kind of data using</p> <pre><code>Text(&quot;${data.meals[0].stringredient[index]&quot;) </code></pre> <p>But because it have it's ...
So kost of you just be know about mealDB, and i have problem accessing one of it's data for GridView.builder, named stringredient inside the detail of food. Usually i access this kind of data using [CODE] But because it have it's own field rather than inside of list [CODE] I don't know how to access it dynamically for ...
android|json|flutter|api|gridview
0
2022-05-07T15:01:01.497Z
2,022
5
15
5
15
0
359
44
5
2
true
true
false
false
false
false
zero
72,153,709
Getting error - Cannot resolve method 'getInstance' in 'FirebaseAuthException'
<p>Getting error when trying to fAuth = FirebaseAuthException.getInstance();</p> <pre><code>public class Register extends AppCompatActivity { FirebaseAuthException fAuth; FirebaseDatabase db; DatabaseReference users; @Override protected void onCreate(Bundle savedInstanceState) { super.onCre...
Getting error when trying to fAuth = FirebaseAuthException.getInstance(); [CODE]
java|android|firebase
0
2022-05-07T15:02:14.877Z
2,022
5
15
5
42
1
80
78
3
1
true
false
false
false
false
false
zero
72,153,728
Add animation to custom SnapHelper in recycler view when items are scrolled
<p>I'm using custom SnapHelper which extends LinearSnapHelper to automatically scroll in recycler view.Code can be found below. The scrolling however is way too fast and i want to add a slide or fade animation. Please guide<a href="https://i.stack.imgur.com/sBBz6.gif" rel="nofollow noreferrer">Link to scrolling effect ...
I'm using custom SnapHelper which extends LinearSnapHelper to automatically scroll in recycler view.Code can be found below. The scrolling however is way too fast and i want to add a slide or fade animation. Please guide Link to scrolling effect in which animation needs to be added Auto scroll code(Fragment1.kt)- [CODE...
android|kotlin|android-recyclerview|pagersnaphelper
0
2022-05-07T15:05:22.613Z
2,022
5
15
5
205
0
367
75
4
2
true
true
false
false
false
false
zero
72,153,763
soft keyboard pops up when trying to resize an image in flutter_quill
<p>i am using <a href="https://pub.dev/packages/flutter_quill" rel="nofollow noreferrer">flutter_quill</a> as rich text editor for my project. I am facing an issue related to soft keyboard, whenever i try to use the resize feature provided by default in flutter quill, soft keyboard pops up and blocks the UI of resizing...
i am using flutter_quill as rich text editor for my project. I am facing an issue related to soft keyboard, whenever i try to use the resize feature provided by default in flutter quill, soft keyboard pops up and blocks the UI of resizing bars. Is there any workaround for this. I'll try to describe the issue in images....
flutter|android-softkeyboard|quill
0
2022-05-07T15:09:49.263Z
2,022
5
15
5
110
0
745
69
3
1
true
true
false
false
false
false
zero
72,153,811
How to create a button on a different activity programmatically and save it on this activity?
<p>I wanted to create a button on Homepage activity by clicking the button on GroupSettings activity. However, when I do so, and go back to Homepage, the button is not saved on the page. Here is the java code that i have:</p> <pre><code>public void btnpressedme(View caller){ ConstraintLayout constraintLayout = ...
I wanted to create a button on Homepage activity by clicking the button on GroupSettings activity. However, when I do so, and go back to Homepage, the button is not saved on the page. Here is the java code that i have: [CODE]
java|android|button|android-activity|onclick
0
2022-05-07T15:15:29.493Z
2,022
5
15
5
32
0
225
93
5
1
true
true
false
false
false
false
zero
72,153,831
In Android Exoplayer, how to implement setOnFullScreenModeChangedListener?
<p>I'm using <strong>com.google.android.exoplayer2.ui.StyledPlayerView</strong> and <strong>ExoPlayer</strong> on my Android app.</p> <p>According to <a href="https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/ui/StyledPlayerControlView.html#setOnFullScreenModeChangedListener(com.google.android.exoplayer...
I'm using com.google.android.exoplayer2.ui.StyledPlayerView and ExoPlayer on my Android app. According to this Doc , I should Set a listener to be called when the fullscreen mode should be changed. setOnFullScreenModeChangedListener public void setOnFullScreenModeChangedListener​(@Nullable StyledPlayerControlView.OnFul...
android|android-studio|exoplayer2.x
0
2022-05-07T15:18:34.030Z
2,022
5
15
5
174
0
733
74
3
2
true
true
false
false
false
false
zero
72,153,850
Read NDEF Message from Android/IOS using NFC Reader
<p>I want to transfer a tiny bit of data from my phone to an NFC reader (max 256 chars). It seems that IOS and Android can read/write tags, is there any way I can read these NDEF messages using an NFC reader and then process them?</p> <p>Minimal experience with NFC stuff, so I apologise if I've completely misunderstood...
I want to transfer a tiny bit of data from my phone to an NFC reader (max 256 chars). It seems that IOS and Android can read/write tags, is there any way I can read these NDEF messages using an NFC reader and then process them? Minimal experience with NFC stuff, so I apologise if I've completely misunderstood the funct...
android|ios|nfc
0
2022-05-07T15:20:24.880Z
2,022
5
15
5
279
1
338
51
3
0
false
false
false
false
false
false
zero
72,153,865
How to Copy Text to Clip Board in Compose?
<p>simple question: How to Copy Text to Clip Board in Compose?</p> <p>before Compose we used to do something like this:</p> <pre class="lang-kotlin prettyprint-override"><code>val clipboardManager = getSystemService(CLIPBOARD_SERVICE) as ClipboardManager val clipData = ClipData.newPlainText( content_et.getText().to...
simple question: How to Copy Text to Clip Board in Compose? before Compose we used to do something like this: [CODE] what we should do in compose?
android|kotlin|android-jetpack-compose
1
2022-05-07T15:21:47.637Z
2,022
5
15
5
233
1
146
42
3
1
true
false
false
false
false
false
low
72,153,869
How to animate the icon in xamarin forms tabbed page
<p>It shows the images but doesn't play the animation.</p> <p>That's my XML code.</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; &lt;TabbedPage xmlns=&quot;http://xamarin.com/schemas/2014/forms&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2009/xaml&quot; ...
It shows the images but doesn't play the animation. That's my XML code. [CODE]
c#|xml|xamarin|xamarin.forms|xamarin.android
0
2022-05-07T15:22:04.713Z
2,022
5
15
5
114
0
78
52
5
1
true
true
false
false
false
false
zero
72,153,939
Can I put a variable into openFD()?
<p>I have some audios in my assets and I want to play them randomly. For that I would like to use a String variable like openFD(&quot;<strong>variable</strong>&quot;).</p> <pre><code> AssetFileDescriptor descriptor = getAssets().openFd(&quot;variable&quot;); </code></pre> <p>Is that possible to put that variable into t...
I have some audios in my assets and I want to play them randomly. For that I would like to use a String variable like openFD(&quot; variable &quot;). [CODE] Is that possible to put that variable into the openFD() method? Maybe there is antoher way to do?
java|android-studio
0
2022-05-07T15:30:22.973Z
2,022
5
15
5
12
0
254
35
2
1
true
true
false
false
false
false
zero
72,153,976
How to pass CheckBox state from activity to a fragment
<p><strong>My application background:</strong></p> <p>This is a workout monitoring app.</p> <p><strong>What I want to do:</strong></p> <p>If the user clicks on the CheckBox, exercise progress has to be updated, for example</p> <p><a href="https://i.stack.imgur.com/3Ygay.png" rel="nofollow noreferrer"><img src="https://...
My application background: This is a workout monitoring app. What I want to do: If the user clicks on the CheckBox, exercise progress has to be updated, for example And I want to update adequate TextView (in this case for squats) to the current level. What my app currently does: I have a RecyclerView adapter for exerci...
android|android-fragments|arraylist|android-activity|android-recyclerview
0
2022-05-07T15:35:12.400Z
2,022
5
15
5
37
1
960
54
5
3
true
false
false
false
false
false
zero
72,154,287
Why FileUtils can not be used in a common gradle transform code?
<p>I just write a class which extends Transform class like this:</p> <pre><code>package com.example.plugin; import org.gradle.internal.impldep.org.apache.commons.io.FileUtils; import ...; public class MyTransform extends Transform{ ... @Override public void transform(TransformInvocation transformInvoca...
I just write a class which extends Transform class like this: [CODE] However, when I use it on other gradle application, it got error with gradle build : [CODE] It seems that the class FileUtils has some problems, but I just don't know what's wrong. Here is the build.gradle of plugin: [CODE] build.gradle of application...
java|android|android-studio|gradle
0
2022-05-07T16:09:58.800Z
2,022
5
16
5
44
0
701
64
4
4
true
true
false
false
false
false
zero
72,154,291
Response Code 301 while sending request from Android
<p>I need help, my app was working fine but after renew of Domain name, I started getting error 301. Is something to be fixed in my below code? Though if I use <a href="https://Google.com" rel="nofollow noreferrer">https://Google.com</a> with same code, response code is 200. Hostgator is also not able to find the issue...
I need help, my app was working fine but after renew of Domain name, I started getting error 301. Is something to be fixed in my below code? Though if I use https://Google.com with same code, response code is 200. Hostgator is also not able to find the issue to fix. Can someone help, pls. [CODE] If i open this using we...
java|android|httpurlconnection
0
2022-05-07T16:10:23.607Z
2,022
5
16
5
37
1
355
52
3
1
true
false
false
false
false
false
zero
72,154,302
react native app needs to be deployed on multiple store listings at once [both android and ios]
<p>We have a SaaS platform where tenets can opt for a dedicated (white labeled) mobile apps for both platforms - Android + iOS. Programmatically its the same app cooked for multiple tenets on both ios and android platforms under different names. We want a CI/CD for both stores, meaning once we push an update to master ...
We have a SaaS platform where tenets can opt for a dedicated (white labeled) mobile apps for both platforms - Android + iOS. Programmatically its the same app cooked for multiple tenets on both ios and android platforms under different names. We want a CI/CD for both stores, meaning once we push an update to master bra...
android|ios|react-native|google-play|app-store
1
2022-05-07T16:11:46.117Z
2,022
5
16
5
80
1
510
95
5
0
false
false
false
false
false
false
low
72,154,347
custom push notification sound not working in android (FCM)
<p>Be informed we are trying to send push notification to a device with custom sound. The custom mp3 file (120 seconds) is stored in res/raw file. The notification is sent successfully, but the sound never plays out even after many tries. The code is as given below:</p> <p>Update:Based on suggestion given in the commen...
Be informed we are trying to send push notification to a device with custom sound. The custom mp3 file (120 seconds) is stored in res/raw file. The notification is sent successfully, but the sound never plays out even after many tries. The code is as given below: Update:Based on suggestion given in the comments, create...
android|push-notification|firebase-cloud-messaging
0
2022-05-07T16:17:25.883Z
2,022
5
16
5
233
0
525
59
3
1
true
true
false
false
false
false
zero
72,154,389
Xamarin app shows blank page while looping
<p>I'm making an Android application on Xamarin and I want this code to be looped over and over. But when it's looping it shows literally nothing</p> <pre><code>public MainPage() { InitializeComponent(); for (int i = 0; i &lt; 100; i++) { Thread.Sleep(2000); string app = &quot;notepad&quot;;...
I'm making an Android application on Xamarin and I want this code to be looped over and over. But when it's looping it shows literally nothing [CODE]
c#|android|xamarin|xamarin.forms|xamarin.android
0
2022-05-07T16:21:52.143Z
2,022
5
16
5
44
1
149
42
5
1
true
false
false
false
false
false
zero
72,154,429
ionic capacitor building app error when app launches
<p>I have created a capacitor application form starter. I have installed few plugins and tried to build application through android studio. There is no error on building application but when it launches it gives error like</p> <p><a href="https://i.stack.imgur.com/MLpZ4.png" rel="nofollow noreferrer">Capacitor build er...
I have created a capacitor application form starter. I have installed few plugins and tried to build application through android studio. There is no error on building application but when it launches it gives error like Capacitor build error My package.json is { &quot;name&quot;: &quot;Ionic App&quot;, &quot;version&qu...
android|capacitor|android-build|capacitor-plugin|ionic6
0
2022-05-07T16:27:20.313Z
2,022
5
16
5
299
0
3,893
52
5
0
false
true
false
false
false
false
zero
72,154,536
Parse an Array into a Recycler view from Json with Retrofit
<p>Hello i am practicing my kotlin skills with retrofit and recycler views, and i found this type of data in some JSON i found for my practice</p> <pre><code>&quot;capital&quot;:[ &quot;Montevideo&quot; ] </code></pre> <p>I know this is an array, and i was able to parse it to my Recyler View by declaring in...
Hello i am practicing my kotlin skills with retrofit and recycler views, and i found this type of data in some JSON i found for my practice [CODE] I know this is an array, and i was able to parse it to my Recyler View by declaring in my data class that capital is a List like this: [CODE] I made things normal in my adap...
kotlin|android-recyclerview|retrofit
0
2022-05-07T16:40:56.913Z
2,022
5
16
5
104
2
511
59
3
3
true
false
false
false
false
false
zero
72,154,628
How to add a single annotation / marker with Mapbox Maps SDK for Android in Java
<p>So, I have problem converting <code>kotlin</code> to <code>java</code> lang from their guideline. I have tried it on many way such as converting kotlin to java file but still cannot got it.</p> <p>I have this code which is work with no annotation / marker. I call this method in <code>onCreateView</code></p> <pre cla...
So, I have problem converting kotlin to java lang from their guideline. I have tried it on many way such as converting kotlin to java file but still cannot got it. I have this code which is work with no annotation / marker. I call this method in onCreateView [CODE]
java|android|kotlin|mapbox-android
0
2022-05-07T16:53:08.770Z
2,022
5
16
5
214
1
265
80
4
1
true
false
false
false
false
false
zero
72,154,696
MediaRecorder produces jaudiotagger CannotReadException
<p>I am creating a m4a file with MediaRecorder as follows:</p> <pre><code> recorder2 = new MediaRecorder(); recorder2.setAudioSource(MediaRecorder.AudioSource.MIC); recorder2.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); recorder2.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); recorder2.setAu...
I am creating a m4a file with MediaRecorder as follows: [CODE] It works perfectly. After the file is created, I want to add ID3 tags to it using jaudiotagger. So I do: [CODE] This is working great with WAV files generated with AudioRecord, but for m4a files generated as above with MediaRecorder I get an exception in th...
android|tags|audio-recording|jaudiotagger
1
2022-05-07T17:01:45.877Z
2,022
5
17
5
68
0
1,067
55
4
4
true
true
false
false
false
false
low
72,154,732
Launching Activity with extra attached to Intent in Instrumented test, running on espresso and JUnit 5
<p>I'd like to launch my <code>ActivityScenarioExtension</code> with an extra attached to the <code>startActivityIntent</code>. The extra-less scenario extension launching, which works just as intended, I carry out via</p> <pre><code>internal class TestMainActivity{ @JvmField @RegisterExtension val scenario...
I'd like to launch my ActivityScenarioExtension with an extra attached to the startActivityIntent . The extra-less scenario extension launching, which works just as intended, I carry out via [CODE] , however I'm not sure as to how to add in the required extra. Not having found any real reference addressing how to achie...
java|android|kotlin|android-espresso|junit5
1
2022-05-07T17:08:09.427Z
2,022
5
17
5
193
1
661
102
5
3
true
false
false
false
false
false
low
72,154,818
Convert IntRange to listOf String in Kotlin
<p>I want to convert a IntRange:</p> <pre><code>val years = 1900..2020 </code></pre> <p>to a <code>listOf&lt;String&gt;</code> with all the values from 1900 to 2022, how do I do it?</p> <p>I need it as a String list cause I'm passing it with other String lists into an composable.</p>
I want to convert a IntRange: [CODE] to a listOf<String> with all the values from 1900 to 2022, how do I do it? I need it as a String list cause I'm passing it with other String lists into an composable.
android|list|kotlin
0
2022-05-07T17:16:47.573Z
2,022
5
17
5
49
1
203
43
3
1
true
false
false
false
false
false
zero
72,154,882
I need help implementing notifyItemChanged for my recyclerview
<p>I am trying to set a background color for 1 item in my recyclerview when I click on a button. I get the index of the particular item and try to use a function that includes notifyItemChange in the onclick method of my button in Activity. But it keeps changing the color of the first item in the recyclerview even if ...
I am trying to set a background color for 1 item in my recyclerview when I click on a button. I get the index of the particular item and try to use a function that includes notifyItemChange in the onclick method of my button in Activity. But it keeps changing the color of the first item in the recyclerview even if I ha...
android|kotlin|android-recyclerview|notifyitemchanged
0
2022-05-07T17:23:18.047Z
2,022
5
17
5
328
2
1,138
62
4
7
true
false
false
false
false
false
zero
72,154,929
Get genre name corresponding to genre_id in TMDB API
<p>Could you please help me? I try to get the movie title, image, and genre from TMDB API and show it in recycler view. I managed to get the image and title but I have problems with the genre. Instead of the genre names I get an array of integers. How can I get names instead? Should I create a hashmap with ids and name...
Could you please help me? I try to get the movie title, image, and genre from TMDB API and show it in recycler view. I managed to get the image and title but I have problems with the genre. Instead of the genre names I get an array of integers. How can I get names instead? Should I create a hashmap with ids and names a...
android|api|rest|retrofit
0
2022-05-07T17:31:21.083Z
2,022
5
17
5
201
1
491
52
4
5
true
false
false
false
false
false
zero
72,155,091
How to add tabItems in design mode to a tablayout
<p>In my Android App, I'm using a TabLayout. I use a TabLayout (com.google.android.material.tabs.TabLayout). The fragments are inserted programmatically during execution. I need to add TabItem in design mode. With recycler views, I already use the <code>tools</code> namespace to add items only during design time. Is it...
In my Android App, I'm using a TabLayout. I use a TabLayout (com.google.android.material.tabs.TabLayout). The fragments are inserted programmatically during execution. I need to add TabItem in design mode. With recycler views, I already use the tools namespace to add items only during design time. Is it possible to do ...
android|android-studio|android-layout|android-tablayout
0
2022-05-07T17:50:49.533Z
2,022
5
17
5
23
0
436
49
4
0
false
true
false
false
false
false
zero
72,155,222
Make android launcher with html
<p>How can I make new android launcher like nova or etc Using JavaScript?</p> <p>1_How list apps and add them to HTML?</p> <p>2_How run apps inside JavaScript?</p> <p>3_How Change system settings?</p> <p>Can I Use React native or etc to make Android launcher?</p>
How can I make new android launcher like nova or etc Using JavaScript? 1_How list apps and add them to HTML? 2_How run apps inside JavaScript? 3_How Change system settings? Can I Use React native or etc to make Android launcher?
android|react-native|android-launcher
1
2022-05-07T18:06:44.203Z
2,022
5
18
5
72
0
228
31
3
0
false
true
false
false
false
false
low
72,155,225
Adding expo modules in Cli project ended up with white screen on android
<p>I added expo-modules into existing project to use a module from expo.I followed the <a href="https://docs.expo.dev/bare/installing-expo-modules/" rel="nofollow noreferrer">docs</a> and it worked perfectly on <strong>iOS</strong> but on <em><strong>android</strong></em> it created issues and I fixed the issue by usin...
I added expo-modules into existing project to use a module from expo.I followed the docs and it worked perfectly on iOS but on android it created issues and I fixed the issue by using the code in MainActivity.java .code is given below to fixed the issues. [CODE] [CODE] When I installed the expo modules the getMainCompo...
android|react-native|expo
0
2022-05-07T18:07:03.423Z
2,022
5
18
5
46
0
650
72
3
2
true
true
false
false
false
false
zero
72,155,570
Android intent always has null in callback (using registerForActivityResult)
<p>I am using this code and I am missing something, because almost everything is working, but I get a null in the data when the callback responds:</p> <pre><code>private inner class JavascriptInterface { @android.webkit.JavascriptInterface fun image_capture() { val photoFileName = &quot;photo.jpg&quot; ...
I am using this code and I am missing something, because almost everything is working, but I get a null in the data when the callback responds: [CODE] My manifest snippet related to this looks like this: [CODE] and my fileprovider.xml looks like this: [CODE] Any help is appreciated. Thanks!
android|kotlin|android-intent|registerforactivityresult
1
2022-05-07T18:55:19.283Z
2,022
5
18
5
362
2
291
76
4
3
true
false
false
false
false
false
low
72,155,599
Specifying the element uses-sdk in AndroidManifest makes the manifest unparsable at runtime, when AAPT is used
<p>I observe a real weird problem: I build .apk package using base tools as aapt, d8 and so on. The manifest file has the following line:</p> <pre><code>&lt;uses-sdk android:minSdkVersion=&quot;24&quot; android:targetSdkVersion=&quot;32&quot;/&gt; </code></pre> <p>If I try to deploy the .apk , then the following proble...
I observe a real weird problem: I build .apk package using base tools as aapt, d8 and so on. The manifest file has the following line: [CODE] If I try to deploy the .apk , then the following problem reported by the packageinstaller: 2022-05-07 11:45:07.491 5998-5998/com.google.android.packageinstaller W/PackageInstalle...
android
0
2022-05-07T18:58:47.170Z
2,022
5
18
5
38
1
749
110
1
1
true
false
false
false
false
false
zero
72,155,676
Kotlin code convert to Java code Hide Bottom navigation bar?
<p><strong>How to Implement code to java</strong><br /> I'm confused about this line of code <code>_, destination, _ -&gt;</code><br /> I want this code to be possible in java</p> <pre><code> navController.addOnDestinationChangedListener { _, destination, _ -&gt; if(destination.id == R.id.full_screen_destination) { ...
How to Implement code to java I'm confused about this line of code _, destination, _ -> I want this code to be possible in java [CODE]
java|android|kotlin
0
2022-05-07T19:09:24.677Z
2,022
5
19
5
37
1
134
60
3
1
true
false
false
false
false
false
zero
72,155,680
Android studio drawing rectangle
<p>im new to app development and im working on my first android app and its gonna be a small app that will generate pascal's triangle <a href="https://en.wikipedia.org/wiki/Pascal%27s_triangle" rel="nofollow noreferrer">(Wikipedia page)</a>. It generates an ArrayList of BigInteger arrays and i wanna show that as a tria...
im new to app development and im working on my first android app and its gonna be a small app that will generate pascal's triangle (Wikipedia page) . It generates an ArrayList of BigInteger arrays and i wanna show that as a triangle. How can i draw these rectangles? this is an example of how the arraylist looks like: [...
java|android|android-studio|drawing|pascals-triangle
1
2022-05-07T19:10:00.097Z
2,022
5
19
5
30
0
370
32
5
1
true
true
false
false
false
false
low
72,155,702
I am getting a break in my android emulator: failed to load libc++_shared exception dalvik.system.PathClassLoader[DexPathList[[zip file \"/system/…"
<p>I am trying to implement a routine to cast a video stream using LibVLCSharp but when it gets to where I invoke the core.initialise command, it triggers the above error.</p> <p>Here's the code in question:</p> <pre><code> private void BroadcastStream() //string[] args) { var serverIpAddress = &quot...
I am trying to implement a routine to cast a video stream using LibVLCSharp but when it gets to where I invoke the core.initialise command, it triggers the above error. Here's the code in question: [CODE] I am using using &quot;LibVLCSharp.Shared;&quot; in the code file and as per instructions I invoked &quot;LibVLCSha...
c#|android|ios|xamarin.forms|chromecast
0
2022-05-07T19:13:33.983Z
2,022
5
19
5
37
1
511
148
5
1
true
false
false
false
false
false
zero
72,155,754
Android inflate layout crashes after adding fragment container view
<p>currently I have a custom drawer activity that extends AppCompatActivity, which looks like the following:</p> <pre><code>public class DrawerActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener{ ... @Override protected void onCreate(Bundle savedInstanceState)...
currently I have a custom drawer activity that extends AppCompatActivity, which looks like the following: [CODE] As you can see here, I overwrite the setContentView method, so the layout id of the activity that extend this drawer activity will be passed into this method and inflated in the drawer activity's subview. In...
java|android|android-fragments|android-appcompat|appcompatactivity
1
2022-05-07T19:21:13.527Z
2,022
5
19
5
270
1
1,289
67
5
6
true
false
false
false
false
false
low
72,155,803
React Native Release App.apk search metro server
<p>I have created a release of my android application. I have used Android Studio to create it, however, when I install the application it closes automatically. The error that appears is the following: <a href="https://i.stack.imgur.com/VCoPY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VCoPY.png"...
I have created a release of my android application. I have used Android Studio to create it, however, when I install the application it closes automatically. The error that appears is the following: The specifications of my first application are as follows (app1): [CODE] The same goes for my second app with the followi...
android|react-native|android-studio|apk|release
1
2022-05-07T19:31:02.970Z
2,022
5
19
5
359
1
446
48
5
2
true
false
false
false
false
false
low
72,155,855
Android app doesn't connect to peerjs server
<p>am working on a project to make android app stream camera to another app i made peerjs server to work with html and java website then used webview to use it in the app on the emulator everything is working but the problem is when i install the app on my android it doesn't connect to the peerjs server even when both ...
am working on a project to make android app stream camera to another app i made peerjs server to work with html and java website then used webview to use it in the app on the emulator everything is working but the problem is when i install the app on my android it doesn't connect to the peerjs server even when both my ...
android|peerjs
0
2022-05-07T19:38:31.277Z
2,022
5
19
5
54
0
542
44
2
1
true
true
false
false
false
false
zero
72,156,118
Bottom Navigation bar Hide Click other menu Android?
<p><a href="https://i.stack.imgur.com/jc3Yj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jc3Yj.jpg" alt="enter image description here" /></a></p> <p><strong>Press <code>2</code> or <code>3</code> to hide the bottom navigation bar programmatically!</strong><br /> After that fragment manage to tool...
Press 2 or 3 to hide the bottom navigation bar programmatically! After that fragment manage to toolbar
java|android|android-fragments|android-activity
0
2022-05-07T20:25:54.170Z
2,022
5
20
5
109
1
102
52
4
0
false
false
false
false
false
false
zero
72,156,158
Using Dependencies
<p>When I try using using the dependency <code>implementation 'com.github.dhaval2404:imagepicker:2.1'</code> or <code>implementation 'com.github.dhaval2404:imagepicker-support:1.7.1'</code> I will get a warning message that says &quot;Failed to resolve: com.github.dhaval2404:imagepicker-support:1.7.1 Show in Project St...
When I try using using the dependency implementation 'com.github.dhaval2404:imagepicker:2.1' or implementation 'com.github.dhaval2404:imagepicker-support:1.7.1' I will get a warning message that says &quot;Failed to resolve: com.github.dhaval2404:imagepicker-support:1.7.1 Show in Project Structure dialog</ a > Affected...
java|android-studio|dependencies
0
2022-05-07T20:32:45.070Z
2,022
5
20
5
67
1
768
18
3
0
false
false
false
false
false
false
zero
72,156,165
Using animateCamera in functional components in react native
<p><strong>Summary</strong></p> <p>I'm using <code>react-native-map</code> and trying to use <code>animateCamera</code> and <code>animateMarkerToCoordinate</code> both at the same time but couldn't animate the <code>animateCamera</code> at all.</p> <p><strong>The working part so far</strong></p> <p>The &quot;red circle...
Summary I'm using react-native-map and trying to use animateCamera and animateMarkerToCoordinate both at the same time but couldn't animate the animateCamera at all. The working part so far The &quot;red circle&quot; in the gif I've shared below, should be moving from one location to another location with animation. I'...
android|react-native|animation|react-native-maps
0
2022-05-07T20:33:34.077Z
2,022
5
20
5
210
1
1,197
60
4
5
true
false
false
false
false
false
zero
72,156,184
How to make Preference widget appear below title in Android?
<p>I'm new to Android development and wonder if there is an easy way to have a Preference (<code>androidx.preference.Preference</code>) with the widget appearing below the title? I am aware that <code>layoutResource</code> can be set to a custom layout, but I actually only need to change the widget (so I can set <code>...
I'm new to Android development and wonder if there is an easy way to have a Preference ( androidx.preference.Preference ) with the widget appearing below the title? I am aware that layoutResource can be set to a custom layout, but I actually only need to change the widget (so I can set widgetLayoutResource instead of l...
android|android-preferences
0
2022-05-07T20:35:36.043Z
2,022
5
20
5
72
0
571
60
2
0
false
true
false
false
false
false
zero
72,156,210
Select and extract contact details using Intent and ActivityResultContracts
<p>I have a button to open and select a contact for some of it's specific data - name and number using <a href="https://developer.android.com/reference/androidx/activity/result/contract/ActivityResultContracts" rel="nofollow noreferrer">ActivityResultContracts.PickContact</a>. Using the guide from <a href="https://deve...
I have a button to open and select a contact for some of it's specific data - name and number using ActivityResultContracts.PickContact . Using the guide from this page and some modifications, I was able to retrieve the contact name successfully. I have this in my manifest file for permission [CODE] Issue is my app cra...
android|android-intent|android-jetpack-compose|android-contacts|activityresultcontracts
0
2022-05-07T20:40:37.097Z
2,022
5
20
5
210
1
545
75
5
2
true
false
false
false
false
false
zero
72,156,315
Video/Camera is not opening in Android Web View, is there a way to fix?
<p>I have tried <code>android:hardwareAccelerated=&quot;true&quot;</code> and <code>webSettings.setMediaPlaybackRequiresUserGesture(false);</code> but still the video does not play or display. Here is the problem:</p> <p><a href="https://i.stack.imgur.com/toxbl.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
I have tried android:hardwareAccelerated=&quot;true&quot; and webSettings.setMediaPlaybackRequiresUserGesture(false); but still the video does not play or display. Here is the problem: It stays only that image, so is there a way to open this video/camera? Here what I have done so far. Manifest: [CODE]
android|android-webview
0
2022-05-07T20:55:45.617Z
2,022
5
20
5
172
0
302
71
2
1
true
true
false
false
false
false
zero
72,156,459
How to toggle the "hide keyboard button" on android one
<p>, running android 11 , nokia g20</p> <p>was wondering how to remove the whole hide keyboard button / bar area on android one , this is a feature on one ui and other roms but not android one/stock android</p> <p>i've seen people moving the whole user interface down to hide it through adb but i dont wanna change the w...
, running android 11 , nokia g20 was wondering how to remove the whole hide keyboard button / bar area on android one , this is a feature on one ui and other roms but not android one/stock android i've seen people moving the whole user interface down to hide it through adb but i dont wanna change the whole UI , is ther...
android
1
2022-05-07T21:23:42.913Z
2,022
5
21
5
66
0
390
55
1
0
false
true
false
false
false
false
low
72,156,464
Mock Locations on Android 12
<p>I am testing an app that uses geofencing and I need to be able to specify mock locations. In my research I found old posts (5 years) talking about using Allow Mock Locations in developer options but that seems to only be in older versions of Android. Now I see a place to specify a mock location app but no way to s...
I am testing an app that uses geofencing and I need to be able to specify mock locations. In my research I found old posts (5 years) talking about using Allow Mock Locations in developer options but that seems to only be in older versions of Android. Now I see a place to specify a mock location app but no way to specif...
android|location|geofence
0
2022-05-07T21:25:03.477Z
2,022
5
21
5
728
1
536
28
3
0
false
false
false
false
false
false
zero
72,156,487
write COMMENT tag to WAV and M4A
<p>I have an audio app and I need to read and write the COMMENT tag of WAV and M4A files. This is all I need. I had struggled for hours without success.</p> <p>The closest I arrived is using <code>com.github.goxr3plus:jaudiotagger:2.2.7</code>. I had success with WAV written with <code>AudioRecord</code> but <a href="h...
I have an audio app and I need to read and write the COMMENT tag of WAV and M4A files. This is all I need. I had struggled for hours without success. The closest I arrived is using com.github.goxr3plus:jaudiotagger:2.2.7 . I had success with WAV written with AudioRecord but exception with M4A written with MediaRecorder...
android|metadata|wav|m4a|riff
0
2022-05-07T21:29:11.380Z
2,022
5
21
5
64
1
670
32
5
0
false
false
false
false
false
false
zero
72,156,702
After installing my .apk won't load on my phone
<p>I'm trying to make Android app using Visual Studio and Xamarin. I've signed the app with a sign which I've created (it's on release mode). I've installed this apk on my phone (sign via Ad Hoc, then I download the .apk file and then I installed it) and this is ok, but when I open the app all I see is blank space. It ...
I'm trying to make Android app using Visual Studio and Xamarin. I've signed the app with a sign which I've created (it's on release mode). I've installed this apk on my phone (sign via Ad Hoc, then I download the .apk file and then I installed it) and this is ok, but when I open the app all I see is blank space. It doe...
android|xamarin
0
2022-05-07T22:10:15.747Z
2,022
5
22
5
56
0
493
47
2
0
false
true
false
false
false
false
zero
72,156,706
react native android build error (on mac) - unexpected end of file (gradlew)
<p>I am using a mac mini M1 to build a react native app for Android. The app builds fine on my windows computer, but when trying to build on my mac mini I get the error</p> <pre><code>Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 ./gradlew: line 188: syntax error: unexpected end of f...
I am using a mac mini M1 to build a react native app for Android. The app builds fine on my windows computer, but when trying to build on my mac mini I get the error [CODE] Im wondering if this has anything to do with fact that I created the app originally on Windows.....and this is the first time Im trying to build on...
react-native|android-gradle-plugin|gradlew
1
2022-05-07T22:11:16.617Z
2,022
5
22
5
194
1
449
76
3
1
true
false
false
false
false
false
low
72,156,742
cometchat implementation in kotlin
<p>I asked a question on integrating cometchat into my application. i didnt get any reply but i will continue to ask unti i solve my problem as i am very new to kotlin. Following the instruction from the cometchat website on how to register my user i added the following code to my Main activity</p> <pre><code>val authK...
I asked a question on integrating cometchat into my application. i didnt get any reply but i will continue to ask unti i solve my problem as i am very new to kotlin. Following the instruction from the cometchat website on how to register my user i added the following code to my Main activity [CODE] Unfortunately, user....
android|kotlin|sdk|cometchat|chatsdk
0
2022-05-07T22:20:26.687Z
2,022
5
22
5
27
1
449
34
5
2
true
false
false
false
false
false
zero
72,156,771
Android ViewPager 2 - Fragment no longer exists for key
<p>I have an app in which a main fragment contains a tab layout tied to a ViewPager2 in order to navigate between three different fragments. When I rotate my phone's screen, the app crashes with this error:</p> <p>Fragment no longer exists for key f#0: unique id c4576c9c-4bbd-4dc0-a304-b86653ed2820 (complete error stac...
I have an app in which a main fragment contains a tab layout tied to a ViewPager2 in order to navigate between three different fragments. When I rotate my phone's screen, the app crashes with this error: Fragment no longer exists for key f#0: unique id c4576c9c-4bbd-4dc0-a304-b86653ed2820 (complete error stack at the e...
java|android|xml|android-fragments
0
2022-05-07T22:28:19.060Z
2,022
5
22
5
335
0
735
55
4
8
true
true
false
false
false
false
zero
72,156,774
How to store day time slots that generates weekly
<p>Let's say i have an app with a calendar each day is divided into time-slots, example :</p> <p>Monday : 8-10h 10-12h 12-14h</p> <p>Tuesday : 8-10h 10-12h 12-14h</p> <p>and every time slot has an event and the calender is updated weekly which means that this weeks time slots and events will no longer be available and ...
Let's say i have an app with a calendar each day is divided into time-slots, example : Monday : 8-10h 10-12h 12-14h Tuesday : 8-10h 10-12h 12-14h and every time slot has an event and the calender is updated weekly which means that this weeks time slots and events will no longer be available and will be replaced by a ne...
android|database|date|calendar|storage
0
2022-05-07T22:28:39.313Z
2,022
5
22
5
129
1
405
49
5
0
false
false
false
false
false
false
zero
72,156,980
Java socket io client fail to connect to socket io nodejs server
<p>I am using v4 of socket-io nodejs server. I am using v2 of java socket-io client.</p> <pre><code>private val uri: URI = URI.create(&quot;MY_URL&quot;) private val options: IO.Options = IO.Options.builder() // IO factory options .setForceNew(false) .setMultiplex(true) // low-level engine options ...
I am using v4 of socket-io nodejs server. I am using v2 of java socket-io client. [CODE] Nothing really happens. No error msgs.There are definitely no issues from server side as our web app which uses reactjs and socket-io client library for web is able to connect to the server and pass messages. I am not able to figur...
java|android|node.js|socket.io
0
2022-05-07T23:09:30.933Z
2,022
5
23
5
55
1
354
64
4
1
true
false
false
false
false
false
zero
72,156,985
How can I search data from firebase using searchview in android studio?
<p>I want to create query, for example when enter the 15 number from the keywords in the searchView,I want to show only first cardView in the recyclerview.I searched but ı can't find useful solutions. Can anyone help me ? How Can ı fix this ? I am using firebase firestore database. <a href="https://i.stack.imgur.com/Cf...
I want to create query, for example when enter the 15 number from the keywords in the searchView,I want to show only first cardView in the recyclerview.I searched but ı can't find useful solutions. Can anyone help me ? How Can ı fix this ? I am using firebase firestore database. here is my android studio code here is f...
android|firebase|android-studio|kotlin
0
2022-05-07T23:11:13.237Z
2,022
5
23
5
124
0
336
71
4
0
false
true
false
false
false
false
zero
72,157,154
Make a phone call in android even the app is closed
<p>i'm currently developing an app that read data from firebase and when the data change it must phone call a specific person to notifiy them and this must happen even if the app is closed i tried with Intent but it just work when app is opened is there a way to make this possible even if the app is closed?</p>
i'm currently developing an app that read data from firebase and when the data change it must phone call a specific person to notifiy them and this must happen even if the app is closed i tried with Intent but it just work when app is opened is there a way to make this possible even if the app is closed?
android|firebase
0
2022-05-07T23:55:13.510Z
2,022
5
23
5
52
0
305
51
2
0
false
true
false
false
false
false
zero
72,157,241
UninitializedPropertyAccessException in Android Studio using Kotlin
<p>I am a beginner making use of a Roomdatabase. Mostly using it to load in and pass items between tables using simple relationships.</p> <pre><code> package com.example.allin import android.app.AlertDialog import android.net.Uri import android.os.Bundle import android.view.* import android.widget.CheckBox import ...
I am a beginner making use of a Roomdatabase. Mostly using it to load in and pass items between tables using simple relationships. [CODE] For some reason it isn't properly adding the selected item from the recyclerView adapter to the selectedItem variable. Would appreciate any insight into why this is happening all of ...
sql|database|sqlite|android-studio|kotlin
0
2022-05-08T00:20:08.057Z
2,022
5
0
6
41
1
329
67
5
1
true
false
false
false
false
false
zero
72,157,410
Retaining Fragment back stack after orientation change
<p>I have a Fragment (lets call it Base Fragment) containing clickable components. When one of these clickable components is pressed, a new Fragment appears over Base Fragment (lets call this Fragment A). When the back button is pressed from Fragment A, the view navigates back to Base Fragment.</p> <p>To implement this...
I have a Fragment (lets call it Base Fragment) containing clickable components. When one of these clickable components is pressed, a new Fragment appears over Base Fragment (lets call this Fragment A). When the back button is pressed from Fragment A, the view navigates back to Base Fragment. To implement this, I have a...
java|android|android-fragments
0
2022-05-08T01:10:23.953Z
2,022
5
1
6
29
0
999
54
3
2
true
true
false
false
false
false
zero
72,157,470
Is Internationalize Flutter app name possible?
<p>New to flutter, is there a way to internationalize my app name. I see this is possible with other apps.</p> <p>I was able to get strings within the app internationalized following the guide here: <a href="https://phrase.com/blog/posts/flutter-localization/" rel="nofollow noreferrer">https://phrase.com/blog/posts/flu...
New to flutter, is there a way to internationalize my app name. I see this is possible with other apps. I was able to get strings within the app internationalized following the guide here: https://phrase.com/blog/posts/flutter-localization/ However, I think app name is stored in android/app/src/main/AndroidManifest.xml...
android|flutter
2
2022-05-08T01:33:38.473Z
2,022
5
1
6
169
1
432
46
2
0
false
false
false
false
false
false
low
72,157,546
Disable autoscroll on TextInput focus inside a ScrollView on Android
<p>I was trying to accomplish what was asked in this question here on react-native repo, but it was auto-closed - <a href="https://github.com/facebook/react-native/issues/19995" rel="nofollow noreferrer">https://github.com/facebook/react-native/issues/19995</a></p> <p>I have <code>&lt;TextInput&gt;</code> in a <code>&l...
I was trying to accomplish what was asked in this question here on react-native repo, but it was auto-closed - https://github.com/facebook/react-native/issues/19995 I have <TextInput> in a <ScrollView> and keyboard mode is &quot;resize&quot; in android manifest (i need to keep it at resize). When focusing an input that...
android|react-native
0
2022-05-08T01:53:09.437Z
2,022
5
1
6
171
1
431
68
2
0
false
false
false
false
false
false
zero
72,157,550
navigating from Navigation drawer with nav controller
<p>I have set the navigation drawer in my app and set it with navController so it navigates automatically when clicking on on of the menu items of the drawer I set the same Id's in the nav graph and drawer menu so the navController would recognize it and navigate to fragment id</p> <p>and it works fine...</p> <p>but t...
I have set the navigation drawer in my app and set it with navController so it navigates automatically when clicking on on of the menu items of the drawer I set the same Id's in the nav graph and drawer menu so the navController would recognize it and navigate to fragment id and it works fine... but the problem is when...
android|navigation|navigation-drawer
0
2022-05-08T01:54:32.647Z
2,022
5
1
6
121
0
1,043
53
3
2
true
true
false
false
false
false
zero
72,157,559
Is there a truly multiplatform testing setup for Jetbrains @Composable functions?
<p>I'd love to be able to get a <code>@Composable</code> context running in the <code>androidTest</code> target of my common project, in order to test higher-order components that reside in <code>commonMain</code>, such as ContentLocalProviders and layouts. Something like:</p> <pre><code>@Test fun testSomethingComposa...
I'd love to be able to get a @Composable context running in the androidTest target of my common project, in order to test higher-order components that reside in commonMain , such as ContentLocalProviders and layouts. Something like: [CODE] I began with expect fun runComposeTest(content: @Composable ()->Unit) inside of ...
kotlin|kotlin-multiplatform|kotlin-android-extensions|compose-desktop|compose-multiplatform
0
2022-05-08T01:57:00.397Z
2,022
5
1
6
98
1
693
81
5
3
true
false
false
false
false
false
zero
72,157,635
Site crashes when I use 6 or more images on canvas on Android
<p>I am trying drawing large image with height like 12000 where I need to draw seven images with almost similar height, I am able to draw 5 images but it crashes the site when I draw 6 or more images on canvas. Below is the screenshot of what happens when I draw 6 or more images in canvas :- <a href="https://i.stack.im...
I am trying drawing large image with height like 12000 where I need to draw seven images with almost similar height, I am able to draw 5 images but it crashes the site when I draw 6 or more images on canvas. Below is the screenshot of what happens when I draw 6 or more images in canvas :- Image here Can I get to know w...
javascript|android|html
0
2022-05-08T02:18:46.220Z
2,022
5
2
6
40
0
381
61
3
0
false
true
false
false
false
false
zero
72,157,675
How to change the value of every column
<p>For example i wanna change the value of measurement_done column for every user</p> <p>below is an example data how do i do so?</p> <p><img src="https://i.stack.imgur.com/JqtuO.png" alt="Data I wanna change" /></p> <p><strong>Example code for how I update the value of a specific user</strong></p> <p><strong>I wanna ...
For example i wanna change the value of measurement_done column for every user below is an example data how do i do so? Example code for how I update the value of a specific user I wanna know how to update every users value [CODE]
android|firebase|firebase-realtime-database
0
2022-05-08T02:33:48.627Z
2,022
5
2
6
23
0
230
39
3
1
true
true
false
false
false
false
zero
72,157,781
Layout design over navigation action bar
<p>I am looking for a solution to design an element on the top of the navigation action bar and also a way to increase the size of the action bar. One way I can think of, is to disable the navigation action bar and then design. Is there any way if it's achievable without disabling the action bar?</p> <p>Here is the des...
I am looking for a solution to design an element on the top of the navigation action bar and also a way to increase the size of the action bar. One way I can think of, is to disable the navigation action bar and then design. Is there any way if it's achievable without disabling the action bar? Here is the design templa...
android|xml|android-studio|android-layout
0
2022-05-08T03:11:13.423Z
2,022
5
3
6
48
1
617
40
4
1
true
false
false
false
false
false
zero
72,157,956
Kotlin (android studio) - changing tab by clicking doesn't change button on selected fragment, where swiping to the tab works
<p>I'm new to Kotlin and Android programming.</p> <p>I Have 2 tabs using TabLayout and ViewPager2. In my main activity xml I have edit text widget. When I enter text and push ENTER the program needs to take the 'value' of the 'key' from edit text and add it as a button in the two tabs (fragments). Now, if I'm in the fi...
I'm new to Kotlin and Android programming. I Have 2 tabs using TabLayout and ViewPager2. In my main activity xml I have edit text widget. When I enter text and push ENTER the program needs to take the 'value' of the 'key' from edit text and add it as a button in the two tabs (fragments). Now, if I'm in the first tab - ...
android|kotlin|android-fragments|tablayout
0
2022-05-08T03:59:44.057Z
2,022
5
3
6
247
1
810
125
4
1
true
false
false
false
false
false
zero
72,157,988
Android - allow user to toggle button click sounds on/off
<p>In my app, I want to allow the user to enable or disable sounds from all button clicks. I know that a certain way to do this is to loop through all buttons in the view and set button.isSoundEffectsEnabled = true (Kotlin). Is there a more elegant way to do this?</p>
In my app, I want to allow the user to enable or disable sounds from all button clicks. I know that a certain way to do this is to loop through all buttons in the view and set button.isSoundEffectsEnabled = true (Kotlin). Is there a more elegant way to do this?
java|android|xml|kotlin
0
2022-05-08T04:07:52.760Z
2,022
5
4
6
23
0
261
57
4
0
false
true
false
false
false
false
zero
72,158,066
How to call fragment in a fragment when clicked on spinner item?
<p>I have a StandingsFragment with a spinner and a fragment container view. I want to call another fragment layout (SeasonOneStandingsFragment, SeasonTwoStandingsFragment, etc) in the fragment container view when an item is selected from spinner.<a href="https://i.stack.imgur.com/lL9ym.jpg" rel="nofollow noreferrer">en...
I have a StandingsFragment with a spinner and a fragment container view. I want to call another fragment layout (SeasonOneStandingsFragment, SeasonTwoStandingsFragment, etc) in the fragment container view when an item is selected from spinner. enter image description here fragment_standings.xml code [CODE] StandingsFra...
java|android-fragments|android-spinner
0
2022-05-08T04:28:32.617Z
2,022
5
4
6
25
0
376
64
3
3
true
true
false
false
false
false
zero
72,158,092
Flutter FAILURE: Build failed with an exception app don't run
<p>please help me. Since I reset my computer and installed flutter again. I keep getting this error and yet it's just flutter's default code, I didn't add anything.</p> <p>*FAILURE: Build failed with an exception.</p> <pre><code> * What went wrong: A problem occurred configuring root project 'android'. &gt; ...
please help me. Since I reset my computer and installed flutter again. I keep getting this error and yet it's just flutter's default code, I didn't add anything. *FAILURE: Build failed with an exception. [CODE] This is result of flutter doctor flutter doctor
android|flutter|kotlin|gradle
0
2022-05-08T04:36:09.710Z
2,022
5
4
6
78
2
258
61
4
1
true
false
false
false
false
false
zero
72,158,141
How to extra EXTRA_PAIRING_KEY after Android devices paired
<p>I would like to use <code>EXTRA_PAIRING_KEY</code> to implement the AES encryption for Bluetooth massaging in Android platform, so I need to extract it after both Android paired. Can I use the code like <code>device.getName()</code> and <code>device.getAddress()</code> to get <code>EXTRA_PAIRING_KEY</code>?</p>
I would like to use EXTRA_PAIRING_KEY to implement the AES encryption for Bluetooth massaging in Android platform, so I need to extract it after both Android paired. Can I use the code like device.getName() and device.getAddress() to get EXTRA_PAIRING_KEY ?
java|android|android-studio|bluetooth
0
2022-05-08T04:48:02.710Z
2,022
5
4
6
33
0
257
59
4
0
false
true
false
false
false
false
zero
72,158,158
android wait for file upload finished firebase
<p>I'm trying to upload file to firebase storage and get download link and use it immediately in the following code.</p> <pre><code>String FileLink; StorageReference storageReference = irebaseStorage.getInstance().getReference(FileName); storageReference.putFile(FileUri).addOnSuccessListener(new OnSuccessListener&lt;Up...
I'm trying to upload file to firebase storage and get download link and use it immediately in the following code. [CODE] Is there anyway to put the app on hold until the upload complete and link retrived?
android|firebase-realtime-database
0
2022-05-08T04:51:59Z
-1
-1
-1
-1
55
0
204
46
2
1
true
true
false
false
false
false
zero
72,158,222
Unable to find Android SDK(command line tools) in VS code
<p>I am new to flutter world, I have installed command line tools and running flutter doctor command in vs code. But its showing</p> <blockquote> <p>Unable to find android tool chain</p> </blockquote> <p><a href="https://i.stack.imgur.com/7L50m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7L50m.pn...
I am new to flutter world, I have installed command line tools and running flutter doctor command in vs code. But its showing Unable to find android tool chain This is the path to my command line tools of android SDK I have also added path in my environment variable I tried to configure this path multiple times. This i...
flutter|visual-studio-code|flutter-dependencies|flutter-test|android-sdk-tools
0
2022-05-08T05:04:41.743Z
2,022
5
5
6
343
2
385
57
5
0
false
false
false
false
false
false
zero
72,158,230
'GlobalKey().currentContext' in ListWheelScrollView is null in flutter
<p>I'm trying to select/scroll automatically to a particular element in ListWheelScrollView on a button click. It is working fine for the elements which are displayed in the current page. But I've been facing the issue when the list exceeds the screen due to lazy loading.</p> <p>Due to widgets in ListWheelScrollView no...
I'm trying to select/scroll automatically to a particular element in ListWheelScrollView on a button click. It is working fine for the elements which are displayed in the current page. But I've been facing the issue when the list exceeds the screen due to lazy loading. Due to widgets in ListWheelScrollView not rendered...
android|flutter|dart|mobile-application
0
2022-05-08T05:06:20.947Z
2,022
5
5
6
523
1
752
70
4
1
true
false
false
false
false
false
zero
72,158,301
Flutter black screen after phone sleeps or by pressing the power button
<p>I want my app to run even if the screen closes to avoid accidental press and to consume less battery. But whenever I resume the app, it always displays a black screen even though I can still hear the app working as intended. I always needed to hover to the app history and select the app again to see the app running ...
I want my app to run even if the screen closes to avoid accidental press and to consume less battery. But whenever I resume the app, it always displays a black screen even though I can still hear the app working as intended. I always needed to hover to the app history and select the app again to see the app running smo...
android|flutter|sleep|onresume
0
2022-05-08T05:21:14.760Z
2,022
5
5
6
238
1
462
71
4
1
true
false
false
false
false
false
zero
72,158,326
these two lines of codes, crash my app, when I change app theme but I need them, what should I do? Android Studio
<p>I tried different ways untill I figured out that the problem is with the bellow these textViews:</p> <pre><code>name.text = user.name+&quot; &quot;+user.lastName phoneNumber.text = user.phoneNumber </code></pre> <p>I used them into a Datasnapshot to retrive {user name and last name and phone number} data...
I tried different ways untill I figured out that the problem is with the bellow these textViews: [CODE] I used them into a Datasnapshot to retrive {user name and last name and phone number} data on navigationdrawer header like bellow: [CODE] when I remove that two lines, everything works fine and no problem with theme ...
java|android|kotlin|firebase-realtime-database
0
2022-05-08T05:26:06.787Z
2,022
5
5
6
51
0
738
113
4
7
true
true
false
false
false
false
zero
72,158,341
Adjusting SeekBar length
<p>I have an Android app with the following kotlin function:</p> <pre><code>fun setAdjustBars() { val clrSetBarR = SeekBar(this) val clrSetBarG = SeekBar(this) val clrSetBarB = SeekBar(this) clrSetBarR.thumbTintList = ColorStateList.valueOf(Color.rgb(255,0,0)) clrSetBarG.thumbTintList = ColorStateL...
I have an Android app with the following kotlin function: [CODE] The role of the function is to lay out three vertical SeekBar objects at the bottom of the display. As one can see in the screenshot below it does its job. The one problem I have is that the length (height) of the bars is far too short. How can I modify m...
android|kotlin|android-layout
0
2022-05-08T05:29:10.277Z
2,022
5
5
6
30
1
427
24
3
1
true
false
false
false
false
false
zero
72,158,372
How to connect two different ViewModels in Kotlin AndroidStudio
<p>I have two different View Models with their own fragments, and I want my arrayListB in ViewModelB have the same value of my arrayListA in ViewModelA.</p>
I have two different View Models with their own fragments, and I want my arrayListB in ViewModelB have the same value of my arrayListA in ViewModelA.
android-studio|kotlin
0
2022-05-08T05:33:18.413Z
2,022
5
5
6
60
1
149
63
2
0
false
false
false
false
false
false
zero
72,158,454
unexpected null value while using futureBuilder in flutter
<p>I am am trying fetch data from api, using futureBuilder to show data in application but getting null in return,</p> <p>I have checked everywhere i could not find any solution for this error</p> <hr /> <p>here is my model class</p> <pre><code>import 'dart:convert'; List&lt;RestrauntMenu&gt; postFromJson(String str) ...
I am am trying fetch data from api, using futureBuilder to show data in application but getting null in return, I have checked everywhere i could not find any solution for this error here is my model class [CODE] } here i am using and fetching data [CODE] please tell me if i am missing something or making some mistake ...
android|flutter|api|dart
0
2022-05-08T05:49:48.343Z
2,022
5
5
6
307
0
439
58
4
2
true
true
false
false
false
false
zero
72,158,458
Why does VS Cordoba Mobile App Ant Build produce an Error?
<p>Can someone tell me why I get this error below when I try to build Cordova mobile App in Visual Studio:</p> <pre><code>Error 1 The command &quot;call ant.bat clean -f E:\VS2012\AndroidApp1\AndroidApp1\build.xml call ant.bat debug -f E:\VS2012\AndroidApp1\AndroidApp1\build.xml&quot; exited with code 1. AndroidAp...
Can someone tell me why I get this error below when I try to build Cordova mobile App in Visual Studio: [CODE] How to fix it? Before I used Phone Gap now it doesn't exist anymore. I installed, JDK, Ant, Android SDK... with Environment Paths. I think it's beginner question.
android|cordova|mobile|visual-studio-2012|visual-studio-cordova
0
2022-05-08T05:50:14.080Z
2,022
5
5
6
21
0
273
58
5
1
true
true
false
false
false
false
zero
72,158,470
Critical issues have been reported with the following SDK versions: com.google.android.gms:play-services-tasks:18.0.0
<p><strong>I am uploading my app on google play store and I got these warning</strong></p> <pre><code>Critical issues have been reported with the following SDK versions: com.google.android.gms:play-services-tasks:18.0.0 </code></pre> <p>What the SDK developer told us:</p> <p>play-services-tasks v18.0.0 has known issue...
I am uploading my app on google play store and I got these warning [CODE] What the SDK developer told us: play-services-tasks v18.0.0 has known issues that can lead to runtime NPEs (NullPointerException) when handling Task results in Kotlin code. We strongly recommend that you avoid using this version. This also impact...
android|google-play-console
1
2022-05-08T05:52:24.650Z
2,022
5
5
6
1,234
1
558
117
2
1
true
false
false
false
false
false
low
72,158,639
focus on empty line in middle of multiline edittext android
<p>I am trying to make users put their text from the line they select even if it is away from other lines in <code>edittext</code>. edittext is a multiline type so is there a method or event in touch events that will help in that?.</p> <hr /> <p>for more specification :</p> <ol> <li>user select a line in middle with n...
I am trying to make users put their text from the line they select even if it is away from other lines in edittext . edittext is a multiline type so is there a method or event in touch events that will help in that?. for more specification : user select a line in middle with no filled lines before or after it. cursor m...
android|android-studio|android-edittext|multiline
0
2022-05-08T06:28:22.790Z
2,022
5
6
6
27
0
388
59
4
0
false
true
false
false
false
false
zero
72,158,659
How to implement Scrolling hint like Instagram that is use to show text in search bar on android
<p>I want to implement auto scrolling text as a hint in my search bar like Instagram use to show. I have no clue or idea how to implement this feature. I have attached a gif image that will show what I am trying to explain.</p> <p>just like this:-</p> <p><a href="https://i.stack.imgur.com/bQhIc.gif" rel="nofollow nore...
I want to implement auto scrolling text as a hint in my search bar like Instagram use to show. I have no clue or idea how to implement this feature. I have attached a gif image that will show what I am trying to explain. just like this:-
android|android-edittext
0
2022-05-08T06:32:19.533Z
2,022
5
6
6
61
0
237
96
2
0
false
true
false
false
false
false
zero
72,158,699
A button that creates an imageview that is draggable
<p>Beginner at android dev here, I want to create an android game but this function is putting a roadblock on progress.</p> <p>I want to create a button that when clicked will put a new imageview in the middle and that imageview is draggable anywhere on the activity.</p> <p>I've tried looking up draggable imageview but...
Beginner at android dev here, I want to create an android game but this function is putting a roadblock on progress. I want to create a button that when clicked will put a new imageview in the middle and that imageview is draggable anywhere on the activity. I've tried looking up draggable imageview but I haven't seen a...
android|android-studio
0
2022-05-08T06:41:23.883Z
2,022
5
6
6
17
1
478
52
2
0
false
false
false
false
false
false
zero
72,158,722
ionic - Failed to load resource: the server responded with a status of 404 after upgrade android platform
<p>I have an old ionic project and it's work fine on android 7.x Now I need to upgrade android platform to 8.x or higher to use some plugins that not supported in android 7.x</p> <p>After upgrading, this errors show in multiple files [ Failed to load resource: the server responded with a status of 404 (Not Found) ] in ...
I have an old ionic project and it's work fine on android 7.x Now I need to upgrade android platform to 8.x or higher to use some plugins that not supported in android 7.x After upgrading, this errors show in multiple files [ Failed to load resource: the server responded with a status of 404 (Not Found) ] in console De...
android|angular|ionic3|android-update-app
0
2022-05-08T06:47:37.213Z
2,022
5
6
6
81
0
464
105
4
1
true
true
false
false
false
false
zero
72,158,784
Kotlin : How to pass image from Activity to Fragment
<p>Im trying to pass an image from my Activity ViewModel to Fragment, the Fragment Receive the data but it doesnt showed up on the fragment. Here is my code</p> <p>Main Activity ViewModel</p> <pre><code> val storageRef = FirebaseStorage.getInstance().reference.child(&quot;Users/$nisSiswa.png&quot;) val file ...
Im trying to pass an image from my Activity ViewModel to Fragment, the Fragment Receive the data but it doesnt showed up on the fragment. Here is my code Main Activity ViewModel [CODE] And here is my fragment Code to retrieve the image [CODE]
android|kotlin|android-fragments
0
2022-05-08T07:01:21.717Z
2,022
5
7
6
108
1
242
52
3
2
true
false
false
false
false
false
zero
72,158,849
Expo React Native app crashes on Android but works in Expo Go
<p>When I'm previewing my app in the Expo Go application everything works just fine, but when I build the android APK everything works great until I try to load the screen which contains the MapView. When I go to that page the app crashes without telling me what's wrong</p> <p>This is the MapView:</p> <pre><code>&lt;Ma...
When I'm previewing my app in the Expo Go application everything works just fine, but when I build the android APK everything works great until I try to load the screen which contains the MapView. When I go to that page the app crashes without telling me what's wrong This is the MapView: [CODE] btw, I have no Idea how ...
android|react-native|expo
1
2022-05-08T07:12:37.117Z
2,022
5
7
6
704
1
392
61
3
1
true
false
false
false
false
false
low
72,158,853
How do I use MultiType with RecyclerViewPool?
<p>I want to use <code>MultiType</code> with <code>RecyclerViewPool</code> , but I have some questions about how to get the <code>viewType</code> when calling <code>recyclerViewPool.setMaxRecycledViews(viewType, max)</code>:</p> <ol> <li>When <code>OneToManyBuilder</code> is called <em>multiple times</em>, or call <cod...
I want to use MultiType with RecyclerViewPool , but I have some questions about how to get the viewType when calling recyclerViewPool.setMaxRecycledViews(viewType, max) : When OneToManyBuilder is called multiple times , or call OneToManyBuilder and register(clazz, delegate) at same time . If you want to get viewType af...
android|android-recyclerview
0
2022-05-08T07:13:28.407Z
2,022
5
7
6
17
0
857
45
2
0
false
true
false
false
false
false
zero
72,158,952
Android test are failing due to Hilt Dependency
<p>I have following android test class</p> <pre><code>@HiltAndroidTest @UninstallModules(PreferencesModule::class, CacheModule::class) class PlayerRepositoryTest { private val fakeServer = FakeServer() private lateinit var repository: PlayerRepository private lateinit var api: GameApi private lateinit var cache: Cache...
I have following android test class [CODE] When I run this test file I get the following error: D:\android projects\cricket\app\build\generated\hilt\component_sources\debugAndroidTest\common\data\PlayerRepositoryTest_TestComponentDataSupplier.java:8: error: cannot find symbol import dagger.hilt.android.internal.testing...
android|android-testing|dagger-hilt
1
2022-05-08T07:32:02.143Z
2,022
5
7
6
177
0
903
47
3
1
true
true
false
false
false
false
low
72,159,073
Navigation, Clear back stack when app stops
<p>I am using jetpack compose inside fragments flow, here the nav host</p> <pre><code>compose_view.apply { setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed) setContent { EggNavigation() } } fun EggNavigation() { val navController = rememberNavContr...
I am using jetpack compose inside fragments flow, here the nav host [CODE] the navigation is something like this activity > fragment > compose egg list > egg details > open anther app >go to egg app > press back > activity is showing but activity > but ...fragment > compose egg list > egg details > pressing back > egg ...
android|android-jetpack-compose
0
2022-05-08T07:54:20.553Z
2,022
5
7
6
100
0
363
43
2
1
true
true
false
false
false
false
zero
72,159,144
How can I solve this TextView error in android studio?
<p>I created an app using android studio and Kotlin. there is an error that cause that app crash when I want to change the theme of the app or changing language of the app that both needs to restart the dashboard activity. I do not know how to solve that :</p> <p>here are the codes :</p> <p>1- in dashboard.kt :</p> <p...
I created an app using android studio and Kotlin. there is an error that cause that app crash when I want to change the theme of the app or changing language of the app that both needs to restart the dashboard activity. I do not know how to solve that : here are the codes : 1- in dashboard.kt : [CODE] by removing these...
java|android|kotlin|textview|logcat
0
2022-05-08T08:05:37.993Z
2,022
5
8
6
169
1
836
54
5
5
true
false
false
false
false
false
zero
72,159,154
how to display editText value with emoji in ui in android?
<p>I m not able to display value with emoji in ui in android when i do set text if the value contains with emoji the value is getting disappeared in ui . Below is the code for edit text</p> <pre><code> &lt;EditText android:id=&quot;@+id/editText&quot; android:layout_width=&quot;0dp&quot; ...
I m not able to display value with emoji in ui in android when i do set text if the value contains with emoji the value is getting disappeared in ui . Below is the code for edit text [CODE] mBinding.edittextAccount.setText() after this line the value in ui disappears, i have observed that if only the value contains tex...
android|android-edittext|emoji
0
2022-05-08T08:07:36.067Z
2,022
5
8
6
25
0
701
58
3
1
true
true
false
false
false
false
zero
72,159,192
Is there any equivalent for MediaStore.MediaColumns.DATA after Android 10?
<p>I am developing an Android gallery app. I want to show the abusolute path of image to users, which looks like <code>/strorage/emulated/0/DICM/Camera/file.jpg</code>. However, <code>MediaStore.MediaColumns.DATA</code> is deprecated in API level 29. So is there any other equivalent ways to get absolute path after API ...
I am developing an Android gallery app. I want to show the abusolute path of image to users, which looks like /strorage/emulated/0/DICM/Camera/file.jpg . However, MediaStore.MediaColumns.DATA is deprecated in API level 29. So is there any other equivalent ways to get absolute path after API 29? Here's my current code: ...
android|mediastore
0
2022-05-08T08:13:23.100Z
2,022
5
8
6
33
0
326
74
2
1
true
true
false
false
false
false
zero
72,159,199
Defining a button in Kotlin
<p>I'm a Kotlin newbie, I'm trying to call a button <code>BTN_test</code> but I can't</p> <p><strong>MainActivity.kt</strong></p> <pre><code>package com.example.testapp import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.Gravity import android.widget.Toast class MainActivity :...
I'm a Kotlin newbie, I'm trying to call a button BTN_test but I can't MainActivity.kt [CODE] activity_main.xml [CODE] I tried to add this to the gradle file [CODE] build.gradle (test app) [CODE] But this error appeared [CODE] This error also appears [CODE] About Android Studio [CODE] note I managed to solve the problem...
java|android|android-studio|kotlin|gradle
0
2022-05-08T08:13:51.873Z
2,022
5
8
6
155
6
574
27
5
8
true
false
false
false
false
false
zero
72,159,246
Viewpager2 with fragment and diffutil problem
<p>I have a problem with viewpager2.</p> <p>Problem is</p> <ul> <li>There is a viewpager2 with Fragment, FragmentStateAdapter, DiffUtil</li> <li>If page is selected, update fragment list dynamically. (remove, add)</li> <li>Here is a example.</li> <li>A, B(current), C -&gt; swipe to C -&gt; A, B, C(current)</li> <li>The...
I have a problem with viewpager2. Problem is There is a viewpager2 with Fragment, FragmentStateAdapter, DiffUtil If page is selected, update fragment list dynamically. (remove, add) Here is a example. A, B(current), C -> swipe to C -> A, B, C(current) Then update list with diffUtils (oldList:A, B, C(current) / newList:...
android|android-viewpager2|android-diffutils|fragmentstateadapter
2
2022-05-08T08:24:02.527Z
2,022
5
8
6
220
0
604
45
4
0
false
true
false
false
false
false
low
72,159,435
How to get location using "fusedLocationClient.getCurrentLocation" method in Kotlin?
<p>To request the last known location of the user's device, we can use the <a href="https://developer.android.com/training/location/retrieve-current" rel="nofollow noreferrer">fused location provider</a> to retrieve the device's last known location using <code>getLastLocation()</code>, but using <code>getCurrentLocatio...
To request the last known location of the user's device, we can use the fused location provider to retrieve the device's last known location using getLastLocation() , but using getCurrentLocation() gets a refresher, and more accurate location. so, how to use the fusedLocationClient.getCurrentLocation() in Kotlin as the...
android|android-location|kotlin-android
1
2022-05-08T08:54:31.760Z
2,022
5
8
6
1,741
1
370
84
3
0
false
false
false
false
false
false
low
72,159,488
Need to save and retrive data when app is closed and reopened with SharedPreferences
<p>I need to save and retrive data when app is closed and reopened with SharedPreferences. Basically when i close the app the language preference is not saved. I would like to know:</p> <ul> <li>Should I implement the OnPause method, or</li> <li>should I create a SharedPreferences method on the main activity?</li> </ul...
I need to save and retrive data when app is closed and reopened with SharedPreferences. Basically when i close the app the language preference is not saved. I would like to know: Should I implement the OnPause method, or should I create a SharedPreferences method on the main activity? This is my ChangeLanguage Activity...
java|android|sharedpreferences|onpause
1
2022-05-08T09:02:57.743Z
2,022
5
9
6
28
1
327
84
4
1
true
false
false
false
false
false
low
72,159,551
What is the difference between rxkotlin and LiveData?
<p>I am learning Rx and I do not understand the difference between the two. Can you explain briefly?</p>
I am learning Rx and I do not understand the difference between the two. Can you explain briefly?
android|kotlin|android-livedata|rx-kotlin
1
2022-05-08T09:11:22.323Z
2,022
5
9
6
45
1
97
53
4
0
false
false
false
false
false
false
low
72,159,560
ViewPager2 fails on screen rotation
<p>I am novice to android and try to make ViewPager2 working with different fragments having different layouts. My sample code has simplest fragments that differ only in background color. ViewModel is not used. The code works ok in one orientation, but when it changes it doesn't work and shows only one fragment, but cr...
I am novice to android and try to make ViewPager2 working with different fragments having different layouts. My sample code has simplest fragments that differ only in background color. ViewModel is not used. The code works ok in one orientation, but when it changes it doesn't work and shows only one fragment, but creat...
android
1
2022-05-08T09:12:41.700Z
2,022
5
9
6
91
0
1,758
35
1
3
true
true
false
false
false
false
low
72,159,701
Is there Type Migration for Kotlin in Intellij?
<p>I come across to refactor a piece of code in Kotlin, and I press <code>Ctr+Shift+F6</code> to <a href="https://www.jetbrains.com/help/idea/type-migration.html" rel="nofollow noreferrer">migrate its type</a>. I know it works perfectly in Java, but it doesn't work in Kotlin.</p> <ol> <li>Do you know alternatives to do...
I come across to refactor a piece of code in Kotlin, and I press Ctr+Shift+F6 to migrate its type . I know it works perfectly in Java, but it doesn't work in Kotlin. Do you know alternatives to do such operations automatically in Kotlin? Is there any specific reason that Intellij doesn't have Type Migration for Kotlin?
android|android-studio|kotlin|intellij-idea
1
2022-05-08T09:32:23.380Z
2,022
5
9
6
68
0
320
47
4
0
false
true
false
false
false
false
low