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
71,170,053
Flutter: ListView.builder + MultiImagePicker2
<p>Im currently working on an app where it gets the pictures from galleries, then listing them out. But i cant seem to get it right. Currently facing an issue where i get the error</p> <p>&quot;_TypeError (type 'Future' is not a subtype of type 'Widget')&quot;.</p> <p>any ideas</p> <pre><code>// ignore_for_file: prefer...
Im currently working on an app where it gets the pictures from galleries, then listing them out. But i cant seem to get it right. Currently facing an issue where i get the error &quot;_TypeError (type 'Future' is not a subtype of type 'Widget')&quot;. any ideas [CODE] I can only have 3 max images and it must be stacked...
android|flutter|mobile
0
2022-02-18T07:54:22.300Z
2,022
2
7
4
28
1
498
45
3
1
true
false
false
false
false
false
zero
71,202,206
What unit should I use to set imageView width and height in Android?
<pre><code> imageView.getLayoutParams().height = 130; imageView.getLayoutParams().width= 230; </code></pre> <p>Here 130 and 230 are DP or pixel?</p>
[CODE] Here 130 and 230 are DP or pixel?
android|imageview
-1
2022-02-21T06:49:13.220Z
2,022
2
6
0
28
1
40
68
2
1
true
false
false
false
false
true
negative
71,238,890
In Android, how to test the if of a code that is from the DatabaseReference class to see if the code returns true or false?
<p>The following code shows what I really mean:</p> <p><a href="https://i.stack.imgur.com/IzuXi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IzuXi.png" alt="enter image description here" /></a></p> <p>There is an object called on a reference, which belongs to the DatabaseRefence class, which calls...
The following code shows what I really mean: There is an object called on a reference, which belongs to the DatabaseRefence class, which calls the addValueEventListener method to test if a certain value exists in a table in Firebase. I'd like to test this block of code to see if it's true or false. If it is true (that ...
java|android|firebase|firebase-realtime-database
0
2022-02-23T14:36:13.097Z
2,022
2
14
2
28
1
710
123
4
1
true
false
false
false
false
false
zero
71,364,416
How to retrieve uid data using FirebaseRecyclerOptions
<p>I can't retrieve data from firebase under uid. When I try to retrieve data without using uid it works perfect but when I try to retrieve data from uid it doesn't work, can anyone help me to find out data.</p> <pre><code>FirebaseRecyclerOptions&lt;Model&gt; options = new FirebaseRecyclerOptions.Builder&lt...
I can't retrieve data from firebase under uid. When I try to retrieve data without using uid it works perfect but when I try to retrieve data from uid it doesn't work, can anyone help me to find out data. [CODE]
android|firebase-realtime-database|firebase-authentication|firebaseui
0
2022-03-05T17:32:32.047Z
2,022
3
17
5
28
1
211
54
4
1
true
false
false
false
false
false
zero
71,375,058
Android - How to show Google password saver after login
<p>I have a simple login with username/mail and password.</p> <p>I have another app that it works perfectly and i dont have anything in the code that forces it to show. It seems native.</p> <p>After i achieve a successfull login i want that my phone shows the Google Password manager natively. Idk if &quot;google passwo...
I have a simple login with username/mail and password. I have another app that it works perfectly and i dont have anything in the code that forces it to show. It seems native. After i achieve a successfull login i want that my phone shows the Google Password manager natively. Idk if &quot;google password manager&quot; ...
android|native
1
2022-03-06T23:35:46.663Z
2,022
3
23
6
28
1
484
55
2
1
true
false
false
false
false
false
low
71,375,313
I am trying to change the name of the app(title)
<p>I am trying to change the title, there is no strings.xml. I changed the label, but it doesnot appear on the app. Pleae help.</p> <p><a href="https://i.stack.imgur.com/mRtRJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mRtRJ.png" alt="enter image description here" /></a></p>
I am trying to change the title, there is no strings.xml. I changed the label, but it doesnot appear on the app. Pleae help.
android-studio
0
2022-03-07T00:32:51.160Z
2,022
3
0
0
28
1
124
48
1
0
false
false
false
false
false
false
zero
71,193,534
Add a background Image in Constraint Layout
<p>I am trying to add a background image to a Constraint layout, which is the root view of my xml. The image shows if I change the layout to linear or relative but it does not show in a constraint layout. What could be the cause?</p> <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;h...
I am trying to add a background image to a Constraint layout, which is the root view of my xml. The image shows if I change the layout to linear or relative but it does not show in a constraint layout. What could be the cause? [CODE]
android
-1
2022-02-20T10:34:03.537Z
2,022
2
10
6
284
1
233
43
1
1
true
false
false
false
false
true
negative
71,263,686
Android Studio Bumblebee 2021.1.1 Patch 2 new Device Manager
<p>Hey guys I just updated Android Studio, I am glad that they finally fixed the bug where you could not open up the Device Manager. However they changed the look of it and it now comes inside AS or as a much much larger window (see my screenshot).</p> <p><a href="https://i.stack.imgur.com/DMTuh.png" rel="nofollow nore...
Hey guys I just updated Android Studio, I am glad that they finally fixed the bug where you could not open up the Device Manager. However they changed the look of it and it now comes inside AS or as a much much larger window (see my screenshot). Is there a way to make it look like it was before? So just the Device with...
android|android-studio|sdk|android-emulator|android-studio-bumblebee
0
2022-02-25T09:26:09.743Z
2,022
2
9
4
284
1
469
60
5
0
false
false
false
false
false
false
zero
71,095,384
KoinApplication has not been started on another activity
<p>My app has a splash activity where i check for login and start Koin.</p> <p>The problem is, when i go to another activity, put my app on recents (so android basicaly kills it) and go back, android try to open the activity again but Koin is not started so it crashes.</p> <p>Am i doing something wrong or should i try ...
My app has a splash activity where i check for login and start Koin. The problem is, when i go to another activity, put my app on recents (so android basicaly kills it) and go back, android try to open the activity again but Koin is not started so it crashes. Am i doing something wrong or should i try to start Koin on ...
java|android|kotlin|module|koin
1
2022-02-12T19:57:13.280Z
2,022
2
19
5
796
1
386
56
5
1
true
false
false
false
false
false
low
71,204,625
How to fix this Add coding of the map I have a bug
<p>i am new android devloper My webview is working well. My webview map goes open. How to take it to the map application. I get an error due to some coding add. If you go to google and click on the map, you will be taken to the map.How to fix this and how to move it to the map</p> <p>The image below shows some error <a...
i am new android devloper My webview is working well. My webview map goes open. How to take it to the map application. I get an error due to some coding add. If you go to google and click on the map, you will be taken to the map.How to fix this and how to move it to the map The image below shows some error [CODE]
android|dictionary|webview|geo
0
2022-02-21T10:22:34.840Z
2,022
2
10
0
29
1
314
50
4
1
true
false
false
false
false
false
zero
71,213,959
Android Firebase, How to check if a subcollection exists within a document
<p>Is there a way to check whether a subcollection exists within a document for android? I need to add documents to a new subcollection just once.</p>
Is there a way to check whether a subcollection exists within a document for android? I need to add documents to a new subcollection just once.
android|firebase|google-cloud-firestore
0
2022-02-21T22:52:22.190Z
2,022
2
22
0
29
1
143
74
3
0
false
false
false
false
false
false
zero
71,290,120
App is crashing on app launch after migrating Android Gradle plugin from 3.3.3 to 3.6.4 : Didn't find application class on Dex path list
<p>App is crashing on app launch after migrating Android Gradle plugin from 3.3.3 to 4.0.1 : Didn't find application class on Dex path list</p> <p>Even tried to migrate from 3.3.3 to 3.6.4, still its failing Gradle version: 5.6.4</p> <p>Error Logs:</p> <p>Caused by: java.lang.ClassNotFoundException: Didn't find class ...
App is crashing on app launch after migrating Android Gradle plugin from 3.3.3 to 4.0.1 : Didn't find application class on Dex path list Even tried to migrate from 3.3.3 to 3.6.4, still its failing Gradle version: 5.6.4 Error Logs: Caused by: java.lang.ClassNotFoundException: Didn't find class &quot;com.test.app.Applic...
android|gradle|android-gradle-plugin
0
2022-02-28T02:42:04.373Z
2,022
2
2
0
29
1
922
136
3
0
false
false
false
false
false
false
zero
71,380,878
How to set maximum date upto 7 days from current date in Datepicker?
<blockquote> <p>I want to set maximum date upto 7 days from current date</p> </blockquote> <pre><code>public void showDateTimePicker() { final Calendar currentDate = Calendar.getInstance(); Calendar calendar = Calendar.getInstance(); DatePickerDialog datePickerDialog = new DatePickerDialog(conte...
I want to set maximum date upto 7 days from current date [CODE] If I go by above method app crashes when it exceeds months. How can I achieve this? Crash is as below: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.SimpleMonthView.getMonthHeight()' on a null object reference at andr...
android
0
2022-03-07T12:10:46.703Z
2,022
3
12
0
29
1
3,976
68
1
1
true
false
false
false
false
false
zero
71,404,880
After Android update the room, other livedata is update
<p>My DataBase have two datas,i have two livedata to observe these two datas,when i update a piece of data,livedata1 have changed,but the question is coming ,the livedata2 have changed also. these is my code,whats wrong with this。</p> <pre><code> val userDB = UserDB.getInstance(this) var userDao = userDB?.getUse...
My DataBase have two datas,i have two livedata to observe these two datas,when i update a piece of data,livedata1 have changed,but the question is coming ,the livedata2 have changed also. these is my code,whats wrong with this。 [CODE] interface UserDao { [CODE] } its my logcat enter image description here
android|android-room|android-livedata
0
2022-03-09T05:52:57.533Z
2,022
3
5
2
29
1
306
55
3
2
true
false
false
false
false
false
zero
71,110,020
Testing Android and iOS with a flutter embedded parts
<p>What's the best way to test the following scenario?</p> <ol> <li>Open native android app</li> <li>Go to screen B written in flutter - click on button &quot;OK&quot;</li> <li>Go to screen C which is a pure Android view again</li> </ol> <p>Currently I use Appium but I can not find specific elements of B's screen becau...
What's the best way to test the following scenario? Open native android app Go to screen B written in flutter - click on button &quot;OK&quot; Go to screen C which is a pure Android view again Currently I use Appium but I can not find specific elements of B's screen because labels of button are not always available in ...
android|ios|flutter|testing|e2e-testing
3
2022-02-14T10:03:47.700Z
2,022
2
10
0
285
1
622
53
5
0
false
false
false
false
false
false
low
71,427,350
How to get the value from slider in other format?
<p>currently my slider looks like this <a href="https://i.stack.imgur.com/hbI61.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hbI61.png" alt="enter image description here" /></a></p> <p>I want to change the number of current position in a format without decimal place. So in this case it should show...
currently my slider looks like this I want to change the number of current position in a format without decimal place. So in this case it should show me 27 instead of 0.2731... here is my Code [CODE]
android-jetpack-compose
1
2022-03-10T16:13:36.223Z
2,022
3
16
3
541
1
199
49
1
1
true
false
false
false
false
false
low
71,377,639
Gradle Issue in Android Studio
<p>Extracted the <strong>android</strong> package from ionic project, opened it in Android Studio,</p> <p><strong>Distribution URL</strong> : https\://services.gradle.org/distributions/gradle-7.4-all.zip</p> <p><strong>Inside Project level build.gradle</strong> : classpath 'com.android.tools.build:gradle:7.4'</p> <p><s...
Extracted the android package from ionic project, opened it in Android Studio, Distribution URL : https\://services.gradle.org/distributions/gradle-7.4-all.zip Inside Project level build.gradle : classpath 'com.android.tools.build:gradle:7.4' Inside cash.properties : gradle.version=7.4 Getting below error in Android St...
android|android-studio|gradle|android-gradle-plugin|gradle-plugin
2
2022-03-07T07:24:09.240Z
2,022
3
7
0
1,565
1
1,029
30
5
0
false
false
false
false
false
false
low
71,097,490
Saving object in android in onSaveInstanceState()
<p>This is a puzzle app. I have a class of Puzzle that contains the object itself and business logics. In onCreate, I created the object itself, I need to save the instance. Is it a good idea to save the same object I created in onCreate in onSaveInstanceState()? If so, what is the best way to do it? Otherwise, should ...
This is a puzzle app. I have a class of Puzzle that contains the object itself and business logics. In onCreate, I created the object itself, I need to save the instance. Is it a good idea to save the same object I created in onCreate in onSaveInstanceState()? If so, what is the best way to do it? Otherwise, should I s...
android
0
2022-02-13T02:42:34.753Z
2,022
2
2
6
30
1
391
49
1
1
true
false
false
false
false
false
zero
71,123,642
App crashing two linear layout inside other linear layout with java
<p>Hey Everyone I want to make a layout in android studio dynamically(not with xml) the structure will be like : LinearLayout(Horizontal) --LinearLayout(Vertical) ----TextView1 ----TextView2 --LinearLayout(Vertical) ----TextView3 ----TextView4</p> <p>but the app is crashing with error: The specified child already has a...
Hey Everyone I want to make a layout in android studio dynamically(not with xml) the structure will be like : LinearLayout(Horizontal) --LinearLayout(Vertical) ----TextView1 ----TextView2 --LinearLayout(Vertical) ----TextView3 ----TextView4 but the app is crashing with error: The specified child already has a parent. Y...
java|android
-1
2022-02-15T09:01:56.753Z
2,022
2
9
1
30
1
442
67
2
1
true
false
false
false
false
true
negative
71,359,230
Firebase: get children ordered by Date and Hour keys
<p>I have stored in my Firestore DB data about Teachings and their relative Lessons, with Date and Hour. I would like to retrieve this data ordered by Date and Hour (the ones that have most recent Date and Hour should be retrieved first), but since these two fields are not values, but keys, I don't know how to do it. I...
I have stored in my Firestore DB data about Teachings and their relative Lessons, with Date and Hour. I would like to retrieve this data ordered by Date and Hour (the ones that have most recent Date and Hour should be retrieved first), but since these two fields are not values, but keys, I don't know how to do it. I th...
java|android|firebase|firebase-realtime-database
0
2022-03-05T03:25:07.957Z
2,022
3
3
5
30
1
674
52
4
2
true
false
false
false
false
false
zero
71,435,530
I cant click on item inside my menu. My menu opens and everything is displayed normally, but nothing happens when I click
<p>I cant click on item inside my menu. My menu opens and everything is displayed normally, but nothing happens when I click. I don't know why and searched for information but it doesn't help me. This my XML code profile__detail_menu.</p> <pre><code>&lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/androi...
I cant click on item inside my menu. My menu opens and everything is displayed normally, but nothing happens when I click. I don't know why and searched for information but it doesn't help me. This my XML code profile__detail_menu. [CODE] This my Java code. [CODE]
java|android|menu
0
2022-03-11T08:19:42.037Z
2,022
3
8
4
30
1
264
121
3
2
true
false
false
false
false
false
zero
71,311,920
Flutter video player not updating when video link changes
<p>I have used <strong>chewie</strong> as my flutter video player, and I have created some buttons where I have added some links, now when I click on the buttons, those videos are not loading or showing, only the initial video I have saved is being played. Can anyone have an idea?</p>
I have used chewie as my flutter video player, and I have created some buttons where I have added some links, now when I click on the buttons, those videos are not loading or showing, only the initial video I have saved is being played. Can anyone have an idea?
android|flutter|flutter-dependencies|flutter-test
0
2022-03-01T16:47:49.837Z
2,022
3
16
1
286
1
261
57
4
0
false
false
false
false
false
false
zero
71,435,738
How to use Render Effect in Jetpack Compose?
<p>ViewGroup:</p> <pre><code>mImageView?.setImageResource(R.drawable.icon) mImageView?.setRenderEffect(RenderEffect.createBlurEffect(25f,25f, Shader.TileMode.MIRROR)) </code></pre> <p>Compose:</p> <pre><code>Image(bitmap..) </code></pre> <p><strong>How can I do what I could with RenderEffect in Compose?</strong></p>
ViewGroup: [CODE] Compose: [CODE] How can I do what I could with RenderEffect in Compose?
android-jetpack-compose
0
2022-03-11T08:36:54.847Z
2,022
3
8
4
286
1
89
44
1
2
true
false
false
false
false
false
zero
71,159,130
Custom Android notification sound
<p>I'm trying to implement a custom notification sound in my application. I have written the following code, but the application plays only default sound and not the custom sound i've added in raw folder. Upon receiving the notification, the logs doesn't even throw any error or exception as to why it isn't playing the ...
I'm trying to implement a custom notification sound in my application. I have written the following code, but the application plays only default sound and not the custom sound i've added in raw folder. Upon receiving the notification, the logs doesn't even throw any error or exception as to why it isn't playing the cus...
android|android-notifications|android-notification-bar|android-custom-attributes|android-notification.mediastyle
0
2022-02-17T13:34:16.673Z
2,022
2
13
3
798
1
811
33
5
1
true
false
false
false
false
false
zero
71,123,232
Notification message from variable from different class
<p>I have this class for a variable:</p> <pre><code>class Facts extends AppCompatActivity{ public void getFact() { DatabaseAccess databaseAccess = DatabaseAccess.getInstance(getApplicationContext()); databaseAccess.open(); String myFact = databaseAccess.getAddress(); //database connect...
I have this class for a variable: [CODE] I would like to pass the string &quot;myFact&quot; to another class as notification message: [CODE] How can I pass a string from another class?
android
0
2022-02-15T08:30:49.667Z
2,022
2
8
1
31
1
184
55
1
2
true
false
false
false
false
false
zero
71,128,429
Switching to activity after the button animation is played
<p>The code below adds a Scale animation for the button.</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final Animation animScale = AnimationUtils.loadAnimation(this, R.anim.scale); ...
The code below adds a Scale animation for the button. [CODE] I need to switch to another activity after playing the animation. I'm trying to build the logic as follows: [CODE] Android Studio outputs Implementation Methods in the line new Animation.AnimationListener() Full code: [CODE]
java|android
0
2022-02-15T14:45:24.087Z
2,022
2
14
1
31
1
285
58
2
3
true
false
false
false
false
false
zero
71,232,965
Change month in DatePickerDialog listener Android Studio
<p>I am trying to implement a datePickerDialog in android studio , and I want to know when the user scrolls between months or presses on one of the arrows to go from one month to another ? Is there anyway I can listen for users pressing month pagination ? or is there any library that allows me to ?</p>
I am trying to implement a datePickerDialog in android studio , and I want to know when the user scrolls between months or presses on one of the arrows to go from one month to another ? Is there anyway I can listen for users pressing month pagination ? or is there any library that allows me to ?
android|datepicker
0
2022-02-23T07:40:31.743Z
2,022
2
7
2
31
1
296
56
2
0
false
false
false
false
false
false
zero
71,242,806
How Can I take pictures in a new Thread which is created in a service?
<p>I am taking pictures in a background service, by creating a new thread. The issue is camera.takePicture is not executed. service starts, stops and iterates correctly just takePicture is not executed. It shows <strong>W/Camera-JNI: callback on dead camera object</strong> in the logcat in each iteration.</p> <p><stron...
I am taking pictures in a background service, by creating a new thread. The issue is camera.takePicture is not executed. service starts, stops and iterates correctly just takePicture is not executed. It shows W/Camera-JNI: callback on dead camera object in the logcat in each iteration. Here is My CameraService class [C...
java|android|multithreading|service|android-camera
0
2022-02-23T19:11:44.607Z
2,022
2
19
2
31
1
368
70
5
1
true
false
false
false
false
false
zero
71,402,857
How can I make the child fragment visible when a condition is met in Android Studio?
<p>The objective is to have a picture appear in the bottom fragment after the user successfully logs into the top fragment. So far everything I have tried has resulted in the app crashing. I'd appreciate any help.</p> <pre><code>public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @...
The objective is to have a picture appear in the bottom fragment after the user successfully logs into the top fragment. So far everything I have tried has resulted in the app crashing. I'd appreciate any help. [CODE]
android-studio
0
2022-03-09T00:02:45.667Z
2,022
3
0
2
31
1
217
84
1
1
true
false
false
false
false
false
zero
71,179,865
Material Components Chip colour styling
<p>In my XML I'm just declaring a <code>ChipGroup</code> as follows:</p> <pre><code>&lt;com.google.android.material.chip.ChipGroup android:id=&quot;@+id/chipGroup&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;wrap_content&quot; /&gt; </code></pre> <p>And then adding each <c...
In my XML I'm just declaring a ChipGroup as follows: [CODE] And then adding each Chip dynamically: [CODE] The colour of a selected Chip (light green below) seems to be coming from the colorSecondaryContainer attribute (I know that, because when I change that in my theme, the Chip colour changes). I'd rather it came fro...
android|material-components-android
0
2022-02-18T21:09:06.720Z
2,022
2
21
4
287
1
990
39
2
2
true
false
false
false
false
false
zero
71,113,450
How to send a notification to the user once at a particular time?
<p>The user should receive a notification at a specific date and time, but the notification just comes right away, instead of arriving when needed. How to make sure that the notification comes at the right time, and not immediately?</p> <pre><code>class MyReceiver: BroadcastReceiver() { private var title = &quot;&...
The user should receive a notification at a specific date and time, but the notification just comes right away, instead of arriving when needed. How to make sure that the notification comes at the right time, and not immediately? [CODE] Call in activity: [CODE] Manifest: [CODE] P.S. I don't know if it's better to use A...
android|kotlin|notifications
1
2022-02-14T14:26:46.523Z
2,022
2
14
0
32
1
361
65
3
3
true
false
false
false
false
false
low
71,120,509
Is there a versioning system for digitalink models
<ul> <li>If so, does update take place automatically <ul> <li>What happens to the old models?</li> <li>Is there a way to lock a specific model version</li> </ul> </li> </ul>
If so, does update take place automatically What happens to the old models? Is there a way to lock a specific model version
android|google-mlkit
0
2022-02-15T02:36:00.447Z
2,022
2
2
1
32
1
123
50
2
0
false
false
false
false
false
false
zero
71,142,117
GridLayout not showing images in Android
<p><strong>So this is xml file having GridLayout inside RelativeLayout</strong></p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot; xm...
So this is xml file having GridLayout inside RelativeLayout [CODE] I tried with image format jpeg, jpg and png no image format show up the images. Drawable folder having images I set the onclick listner over each image so if I click assuming that it is gonna be image here then it will open's up the next activity to buy...
java|android|xml|imageview
0
2022-02-16T12:44:55.387Z
2,022
2
12
2
32
1
448
40
4
3
true
false
false
false
false
false
zero
71,218,304
How to replace autogenerated firebase node id to the current user email
<p>I'm trying to replace autogenerated firebase node id to the current user email please check code below, I'm using firebase realtime database</p> <p><img src="https://i.stack.imgur.com/MK6Eq.png" alt="Database Structure" /></p> <p>Code:</p> <pre><code>mAuth.createUserWithEmailAndPassword(demail, dpass) .addOnComp...
I'm trying to replace autogenerated firebase node id to the current user email please check code below, I'm using firebase realtime database Code: [CODE]
android|firebase|firebase-realtime-database
0
2022-02-22T08:48:01.487Z
2,022
2
8
1
32
1
153
71
3
1
true
false
false
false
false
false
zero
71,298,628
Possible for a website link to only be accessed via a specific third party app?
<p>I continually provide website links to other companies, they use my website pages within their apps normally via the feature 'webview' however I do not want these pages to be accessed outside of their app.</p> <p>Is it possible for a website link to only be accessed via a specific third party app without using an AP...
I continually provide website links to other companies, they use my website pages within their apps normally via the feature 'webview' however I do not want these pages to be accessed outside of their app. Is it possible for a website link to only be accessed via a specific third party app without using an API? I can't...
android|ios|reactjs|react-native|web
0
2022-02-28T17:11:39.397Z
2,022
2
17
0
32
1
424
79
5
0
false
false
false
false
false
false
zero
71,359,224
the menu is not displayed in the xml file already tried everything, nothing works
<p>The main problem is that the menu bar is not displayed in my layout file. I've done a few searches but haven't been able to find a solution or a reason as to why it is behaving this way. Any help would be appreciated. Thanks. <strong>my menu file</strong></p> <pre><code>`&lt;menu xmlns:android=&quot;http://schemas.a...
The main problem is that the menu bar is not displayed in my layout file. I've done a few searches but haven't been able to find a solution or a reason as to why it is behaving this way. Any help would be appreciated. Thanks. my menu file [CODE] XML my layout file [CODE] Where am I doing wrong? I checked some tutorials...
java|android|kotlin|button|navigation
2
2022-03-05T03:24:17.537Z
2,022
3
3
5
32
1
390
81
5
2
true
false
false
false
false
false
low
71,400,385
Why don't custom color states defined in onCreateDrawableState work?
<p>I have a custom class McEditText that merges a constraint layout with a background xml drawable colored stroke.</p> <p>(There's more to McEditText than Im showing here. The ellipses are the excluded code. So the problem is not the merge)</p> <pre><code>&lt;merge xmlns:android=&quot;http://schemas.android.com/apk...
I have a custom class McEditText that merges a constraint layout with a background xml drawable colored stroke. (There's more to McEditText than Im showing here. The ellipses are the excluded code. So the problem is not the merge) [CODE] mc_edit_text_border.xml in my drawables folder [CODE] mc_edit_text_bordercolor.xml...
android
0
2022-03-08T19:19:14.880Z
2,022
3
19
1
32
1
1,112
68
1
6
true
false
false
false
false
false
zero
71,165,499
Android Compose: Force Collapse All Expanded Cards except currently selected
<p>I am currently working on a list of expandable cards. I would like to close all other opened expandable cards except the currently selected.</p> <p>The data I am working with is a Map&lt;String, String&gt;, however i don't know how to get reference to the list of items in the list to loop over it and close all other...
I am currently working on a list of expandable cards. I would like to close all other opened expandable cards except the currently selected. The data I am working with is a Map<String, String>, however i don't know how to get reference to the list of items in the list to loop over it and close all others expect the cur...
android|android-jetpack-compose|android-compose-card
0
2022-02-17T21:20:52.507Z
2,022
2
21
3
288
1
375
76
3
1
true
false
false
false
false
false
zero
71,159,412
Is it possible to round the edges of a row in jetpack?
<p>This is what I'm trying to achieve:</p> <p><img src="https://i.stack.imgur.com/mc9bQ.jpg" alt="This is what I'm trying to do " /></p> <p>So I have created 2 rounded buttons in a row and gave different background colors depending whether they're selected or not. The goal is to create a kind of an illusion of a tab/to...
This is what I'm trying to achieve: So I have created 2 rounded buttons in a row and gave different background colors depending whether they're selected or not. The goal is to create a kind of an illusion of a tab/toggle. The unselected button will have the same color as the row's background color. Unfortunately, since...
user-interface|button|row|android-jetpack-compose
1
2022-02-17T13:51:58.443Z
2,022
2
13
3
544
1
469
54
4
1
true
false
false
false
false
false
low
71,195,355
Select multiple directories on start using ACTION_OPEN_DOCUMENT_TREE on Android 11+
<p>I want my app to allow the user to select multiple directories on app start using <code>ACTION_OPEN_DOCUMENT_TREE </code> instead of asking him for a single directory and spamming multiple requests for others. Is it possible to make a one time request for multiple paths on app start?</p>
I want my app to allow the user to select multiple directories on app start using ACTION_OPEN_DOCUMENT_TREE instead of asking him for a single directory and spamming multiple requests for others. Is it possible to make a one time request for multiple paths on app start?
java|android
1
2022-02-20T14:22:35.317Z
2,022
2
14
6
33
1
270
83
2
0
false
false
false
false
false
false
low
71,222,003
Flutter project, database query with REGEXP causes DatabaseException on iPhone
<p>My flutter app uses an SQLite database, using the sqlfite plugin:</p> <pre><code>sqflite: ^2.0.2 </code></pre> <p>One of my queries uses the REGEXP function. I'm developing and testing on Android and have had no issues. However when testing the app on iPhone, I get the following fatal error:</p> <pre><code>DatabaseE...
My flutter app uses an SQLite database, using the sqlfite plugin: [CODE] One of my queries uses the REGEXP function. I'm developing and testing on Android and have had no issues. However when testing the app on iPhone, I get the following fatal error: [CODE] Is there anything I can do that will enable the REGEXP functi...
android|iphone|flutter|sqlite
0
2022-02-22T13:14:53.737Z
2,022
2
13
1
33
1
397
78
4
2
true
false
false
false
false
false
zero
71,335,168
Exceptions is not processed very well when a release buid is generated in React Native in Android
<p>The problem is very simple, I have a part in my React Native project where I throw an Error, for example:</p> <pre><code>... throw new Error('Example error'); ... </code></pre> <p>When I normally execute <code>npx react-native run-android</code> to develop and debug I see the error correctly but when is in release m...
The problem is very simple, I have a part in my React Native project where I throw an Error, for example: [CODE] When I normally execute npx react-native run-android to develop and debug I see the error correctly but when is in release mode npx react-native run-android --variant=release the error becomes weird. Somethi...
java|android|react-native
0
2022-03-03T09:56:42.053Z
2,022
3
9
3
33
1
463
97
3
2
true
false
false
false
false
false
zero
71,197,997
Material 3 Android - dark theme uses shadows instead of lighter color elevations. Has anyone experienced this? How to solve a problem?
<p>MaterialComponents works correctly and uses elevationOverlayColor. <a href="https://i.stack.imgur.com/sNs8V.png" rel="nofollow noreferrer">enter image description here</a> But Material3... <a href="https://i.stack.imgur.com/0OJ05.png" rel="nofollow noreferrer">enter image description here</a> night-theme:</p> <pre><...
MaterialComponents works correctly and uses elevationOverlayColor. enter image description here But Material3... enter image description here night-theme: [CODE] card: [CODE] And the appbar is affected so I can't solve this problem for very long. Maybe there is some type of elevation so that it can be set? Maybe I'm do...
android|kotlin|material-design
-1
2022-02-20T19:29:30.467Z
2,022
2
19
6
289
1
340
134
3
2
true
false
false
false
false
true
negative
71,257,103
Scroll in android using touchAction in webdriverio (javascript)
<p>I am trying to scroll the android screen using touchAction in webdriverio. Am using the following code to perform action but it doesn't work.</p> <p><code>driver.touchAction([ {action:'press',x:1052,y:1567}, { action: 'moveTo',x:1041, y:689}, 'release' ])</code></p> <p>Any suggestion would be helpful</p>
I am trying to scroll the android screen using touchAction in webdriverio. Am using the following code to perform action but it doesn't work. driver.touchAction([ {action:'press',x:1052,y:1567}, { action: 'moveTo',x:1041, y:689}, 'release' ]) Any suggestion would be helpful
webdriver-io|appium-android
1
2022-02-24T19:12:47.630Z
2,022
2
19
3
289
1
274
63
2
0
false
false
false
false
false
false
low
71,337,809
Compose - AnimatedVisibility stop working
<p>I was trying to add an animation to a <code>@Composable</code> and suddenly it stop worked, the animation I want to do is when scrolling a <code>LazyColumn</code> so I have this :</p> <pre><code>Box( modifier = Modifier .fillMaxWidth() .fillMaxHeight() .bac...
I was trying to add an animation to a @Composable and suddenly it stop worked, the animation I want to do is when scrolling a LazyColumn so I have this : [CODE] And this is the AnimatedVisibility [CODE] What I'm missing?
android|kotlin|android-jetpack-compose|android-jetpack
0
2022-03-03T13:12:47.690Z
2,022
3
13
3
1,057
1
220
41
4
2
true
false
false
false
false
false
zero
71,347,054
flutter build Runtime JAR files in the classpath should have the same version. These files were found in the classpath
<p>flutter build Runtime JAR files in the classpath should have the same version. These files were found in the classpath</p> <p>How can I solve this problem</p> <pre><code>w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/admin/.gradle/caches/mod...
flutter build Runtime JAR files in the classpath should have the same version. These files were found in the classpath How can I solve this problem [CODE] app build.grade setting [CODE] android > build.grade [CODE] How can I solve this problem This problem occurs every time a FLUTTER build occurs flutter 2.10.1 Dart SD...
android|flutter|dart
21
2022-03-04T05:40:29.267Z
2,022
3
5
4
8,225
1
405
118
3
3
true
false
true
false
true
false
high
71,143,181
Access Location Service directly From the App in Flutter
<p>I want to add a feature, in which users can turn their location on or off directly from the app without opening the setting, what should I do?</p>
I want to add a feature, in which users can turn their location on or off directly from the app without opening the setting, what should I do?
android|flutter|dictionary|dart|location
0
2022-02-16T13:56:12.877Z
2,022
2
13
2
34
1
142
56
5
0
false
false
false
false
false
false
zero
71,169,038
How to install HAXM shows system couldn't find the environment option that was entered
<p>I have tried installing haxm in android studio several times, but everytime it shows up an error message that &quot;System couldn't find the environment option that was entered&quot;. Hyper V is already disabled. How to rectify the environment problem?</p>
I have tried installing haxm in android studio several times, but everytime it shows up an error message that &quot;System couldn't find the environment option that was entered&quot;. Hyper V is already disabled. How to rectify the environment problem?
android-studio|installation|environment-variables|haxm
0
2022-02-18T06:03:55.087Z
2,022
2
6
4
34
1
252
86
4
0
false
false
false
false
false
false
zero
71,184,865
how to check invite url after app first time install
<p>I am building social media app using flutter. user1 sends a app link through sms or other platform, user2 open that link and install the app from play store/app store depending on platform. Is there a way to check url after user2 install and open the app for the first time? so that app can verify the referred by wit...
I am building social media app using flutter. user1 sends a app link through sms or other platform, user2 open that link and install the app from play store/app store depending on platform. Is there a way to check url after user2 install and open the app for the first time? so that app can verify the referred by withou...
android|ios|flutter
1
2022-02-19T12:10:20.113Z
2,022
2
12
5
34
1
400
52
3
0
false
false
false
false
false
false
low
71,259,323
Can you make a recyclerview that allows scrolling both horizontally and vertically
<p>I currently have a recyclerview that goes vertically on the page, but I need additional data for each element in that recyclerview to be represented on the page by scrolling horizontally as well. The attached image displays what I currently have, and diagrams what I need.<a href="https://i.stack.imgur.com/bHvPS.jpg"...
I currently have a recyclerview that goes vertically on the page, but I need additional data for each element in that recyclerview to be represented on the page by scrolling horizontally as well. The attached image displays what I currently have, and diagrams what I need. See image The following are the 2 xml files in ...
android|xml|android-studio|android-recyclerview|horizontal-scrolling
1
2022-02-24T23:15:00.390Z
2,022
2
23
3
34
1
366
82
5
2
true
false
false
false
false
false
low
71,285,292
Android asking for only one of the required permissions
<p>I want to request the following permissions: <code>VIBRATE,EXTERNAL_STORAGE,INTERNET</code>. Based on <a href="https://stackoverflow.com/questions/64605176/asking-multiple-permissions-together-in-same-dialog-box">this</a> StackOverflow answer, this is how I'm asking for the permissions:</p> <pre><code>public class M...
I want to request the following permissions: VIBRATE,EXTERNAL_STORAGE,INTERNET . Based on this StackOverflow answer, this is how I'm asking for the permissions: [CODE] The problem is my app is requesting only storage permission nothing else. The VIBRATE and INTERNET are permissions aren't requested nor granted. How can...
java|android|permissions
-1
2022-02-27T13:50:49.043Z
2,022
2
13
6
34
1
428
55
3
1
true
false
false
false
false
true
negative
71,297,881
Can i ask how do you make a Custom google map that is only in a specific area and how do i create Bounderies of that area
<p><a href="https://i.stack.imgur.com/zcSM6.jpg" rel="nofollow noreferrer">im trying to make something like this and im struggling can anyone help me or give me an idea how to start im also currently new to android development and this is for our capstone project any help is appreciated</a></p>
im trying to make something like this and im struggling can anyone help me or give me an idea how to start im also currently new to android development and this is for our capstone project any help is appreciated
android|android-studio|google-maps
-3
2022-02-28T16:12:23.803Z
2,022
2
16
0
34
1
212
121
3
0
false
false
false
false
false
true
negative
71,348,271
How to pass value to viewPagerAdapter?
<p>According to my code I am trying to load viewpager adapter with two different style. I set here tab and position string according to <code>tabItemCount</code>. I want to do samething inside viewpager adapter. I just tried <code>tabItemCount</code> to <code>viewpageradapter</code> and load the adapter according to va...
According to my code I am trying to load viewpager adapter with two different style. I set here tab and position string according to tabItemCount . I want to do samething inside viewpager adapter. I just tried tabItemCount to viewpageradapter and load the adapter according to value. For example: if tabItemCount is 2 lo...
android|kotlin|android-viewpager2
2
2022-03-04T08:05:20.310Z
2,022
3
8
4
34
1
509
38
3
2
true
false
false
false
false
false
low
71,372,797
Circular ripple issue
<ul> <li>I am trying to create a circular ripple effect on a <strong>CircularProgressIndicator</strong> but <code>ripple effect</code> goes outside over the View.</li> <li>I want it to be on the <strong>CircularProgressIndicator</strong> and not going outside it. An help will be appreciated.</li> </ul> <p><a href="http...
I am trying to create a circular ripple effect on a CircularProgressIndicator but ripple effect goes outside over the View. I want it to be on the CircularProgressIndicator and not going outside it. An help will be appreciated. Here is my code: [CODE] btn_ripple_circular.xml: [CODE]
android|android-drawable|ripple-effect
0
2022-03-06T17:45:38.453Z
2,022
3
17
6
34
1
283
21
3
2
true
false
false
false
false
false
zero
71,390,377
how to android textview marquee getDuration?
<p>I have time many try TextView marquee animation scroll need marquee animation duration, finish Listener plz help me...</p> <ol> <li>marquee scroll time</li> <li>marquee scroll finish point or interface listener</li> </ol>
I have time many try TextView marquee animation scroll need marquee animation duration, finish Listener plz help me... marquee scroll time marquee scroll finish point or interface listener
android|textview|marquee
0
2022-03-08T05:23:18.570Z
2,022
3
5
1
34
1
188
44
3
0
false
false
false
false
false
false
zero
71,394,492
Android keep scroll relative position when changing text size
<p>I'm working on a project containing a linear layout consisting of many text views, all wrapped by a scroll view. The User has the option of changing text size within a dialog. I would like the user's relative scroll position to be kept when the text size changes.</p> <p>For example: Say we have 10 text views and the...
I'm working on a project containing a linear layout consisting of many text views, all wrapped by a scroll view. The User has the option of changing text size within a dialog. I would like the user's relative scroll position to be kept when the text size changes. For example: Say we have 10 text views and the user is c...
java|android|position|scrollview|text-size
0
2022-03-08T11:44:14.740Z
2,022
3
11
1
34
1
1,206
61
5
1
true
false
false
false
false
false
zero
71,405,202
How to set Values for Reverb Effects in android?
<p>I am working on an app that has a reverb feature. I know we can achieve this feature by the PresetReverb and EnvironmentalReverb classes.</p> <p>For customization, we have the EnvironmentalReverb class and I am using this class like this and effects can be notice in the video:</p> <pre><code>val eReverb = Environmen...
I am working on an app that has a reverb feature. I know we can achieve this feature by the PresetReverb and EnvironmentalReverb classes. For customization, we have the EnvironmentalReverb class and I am using this class like this and effects can be notice in the video: [CODE] Problem: If we want to apply the Environme...
android|ffmpeg|android-ffmpeg|audioeffect
0
2022-03-09T06:33:41.677Z
2,022
3
6
2
34
1
495
48
4
1
true
false
false
false
false
false
zero
71,182,902
Java cannot find '/platform-tools/adb' (Building app with react-native)
<p>I run <code>npx react-native run-android</code> and I get this</p> <p>This seems to be the problem, It's looking for platform tools in <code>~/</code> and not in <code>~/Android/Sdk</code></p> <blockquote> <p>java.io.IOException: Cannot run program &quot;/home/u/platform-tools/adb&quot;: error=2, No such file or dir...
I run npx react-native run-android and I get this This seems to be the problem, It's looking for platform tools in ~/ and not in ~/Android/Sdk java.io.IOException: Cannot run program &quot;/home/u/platform-tools/adb&quot;: error=2, No such file or directory ` You can ignore this, stack won't let me post this if I don't...
java|android|flutter|react-native|adb
0
2022-02-19T07:02:10.243Z
2,022
2
7
5
290
1
386
71
5
1
true
false
false
false
false
false
zero
71,170,811
How to apply TypeConverter of type "Any" from Model Response from API?
<p>I am using <a href="https://www.themealdb.com/api.php" rel="nofollow noreferrer">https://www.themealdb.com/api.php</a> as my API. Now, when I tried to generate a class from JSON, some fields are of type &quot;Any&quot;. How can I apply a TypeConverter for that?</p> <p>This is the generated Data class of Meal:</p> <p...
I am using https://www.themealdb.com/api.php as my API. Now, when I tried to generate a class from JSON, some fields are of type &quot;Any&quot;. How can I apply a TypeConverter for that? This is the generated Data class of Meal: [CODE] Unlike other API, example (NewsAPI) it generated a custom class of type Source and ...
android|kotlin|android-room
0
2022-02-18T09:02:58.487Z
2,022
2
9
4
35
1
370
70
3
1
true
false
false
false
false
false
zero
71,179,969
Why does the order of `buildTypes` matter?
<p>I'm running into a strange issue with gradle.</p> <p>My <code>app/build.gradle</code> file has a section which looks like this:</p> <pre><code>buildTypes { debug { ... } release { signingConfig signingConfigs.release ... } beta { ...
I'm running into a strange issue with gradle. My app/build.gradle file has a section which looks like this: [CODE] When I run ./gradlew assembleBeta , the output is app-beta.apk , which I can install on my device. However, I want to change the order of my build types, purely for aesthetics. So it now looks like: [CODE]...
android|gradle|android-gradle-plugin
0
2022-02-18T21:20:15.593Z
2,022
2
21
4
35
1
613
42
3
2
true
false
false
false
false
false
zero
71,320,919
How to recognize and select specific html element in Android?
<p>in my Android application I am showing the result from a Website using API. However, this result is retrieved in html form. For example, the API sends a simple &quot;Hello World&quot; text in this form <code>&lt;p&gt;Hello World&lt;/p&gt;</code> or a URL link in this form <code>&lt;a class=&quot;ps-media__link ps-me...
in my Android application I am showing the result from a Website using API. However, this result is retrieved in html form. For example, the API sends a simple &quot;Hello World&quot; text in this form <p>Hello World</p> or a URL link in this form <a class=&quot;ps-media__link ps-media-link&quot; href=&quot;https://www...
java|android
2
2022-03-02T10:13:40.267Z
2,022
3
10
2
35
1
1,062
61
2
2
true
false
false
false
false
false
low
71,407,663
How can I make my app read my contact list?
<p>My <code>MainActivity</code> has a <code>getContactList()</code> method that does what it's suppose to. I also have recyclerViews and adapters and all that work when viewing <code>activity_main.xml</code> in an emulator, so the problem isn't there. The problem I'm having is making the app read the arrayList of conta...
My MainActivity has a getContactList() method that does what it's suppose to. I also have recyclerViews and adapters and all that work when viewing activity_main.xml in an emulator, so the problem isn't there. The problem I'm having is making the app read the arrayList of contacts or just doing it automatically. Here's...
java|android|android-recyclerview|contact-list
0
2022-03-09T10:14:54.463Z
2,022
3
10
2
35
1
1,089
43
4
1
true
false
false
false
false
false
zero
71,425,225
how to delete item/instence MVVM
<p>I'm new to Programming and to Android and got please a question, so I have to build an Android app ( App to buy cars) using MVVM,LiveData, RecyclerView and Fragments. I can creat an instance of car and then view that in a RecyclerView, but when I want to delete it, then I receive the following error:</p> <p>Logcat:<...
I'm new to Programming and to Android and got please a question, so I have to build an Android app ( App to buy cars) using MVVM,LiveData, RecyclerView and Fragments. I can creat an instance of car and then view that in a RecyclerView, but when I want to delete it, then I receive the following error: Logcat: [CODE] I h...
java|android|mvvm|android-recyclerview
0
2022-03-10T13:50:02.753Z
2,022
3
13
3
35
1
447
32
4
6
true
false
false
false
false
false
zero
71,137,034
This version of the Android Support plugin for IntelliJ IDEA or Android Studio cannot open this project, please retry with version 2021.1.1 or newer
<ul> <li>Exception is: com.intellij.openapi.externalSystem.model.ExternalSystemException: This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.1.1 or newer. at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(Proje...
Exception is: com.intellij.openapi.externalSystem.model.ExternalSystemException: This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.1.1 or newer. at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportA...
android|kotlin
3
2022-02-16T06:00:35.583Z
2,022
2
6
2
3,619
1
15,564
148
2
0
false
false
true
false
false
false
low
71,095,740
How to concatenate values of multiple parameters for a list of objects?
<p>I have JSON object like that</p> <pre><code>{ &quot;users&quot;:[ { &quot;FName&quot;:&quot;Islam&quot;, &quot;LName&quot;:&quot;Mohamed&quot;, &quot;Id&quot;: 1 }, { &quot;FName&quot;:&quot;Ali&quot;, &quot;LName&quot;:&quot;Amr&quot;, &quot...
I have JSON object like that [CODE] I want to concatenate all FName and LName for each object to get String like that [CODE] What is the best way to do that using collection functions in Kotlin ?
android|list|kotlin|collections
0
2022-02-12T20:45:13.750Z
2,022
2
20
5
36
1
195
71
4
2
true
false
false
false
false
false
zero
71,109,758
Is it necessary to integrate the testing code within the target project if only use UI Automator?
<p>I was wondering if maybe we could just use a separate project to hold the testing project, instead of integrating it within the target project.</p> <p>I know we should use Espresso, but in our specific case, our team decided to use UI Automator only. The advantage of using a separate project to hold the testing proj...
I was wondering if maybe we could just use a separate project to hold the testing project, instead of integrating it within the target project. I know we should use Espresso, but in our specific case, our team decided to use UI Automator only. The advantage of using a separate project to hold the testing project is: Bu...
android|testing|android-espresso|android-uiautomator
1
2022-02-14T09:42:11.403Z
2,022
2
9
0
36
1
757
97
4
0
false
false
false
false
false
false
low
71,157,979
how to tell what intent data is supported for a system activity
<p>I am inspecting this piece of code (it opens Usage Settings permissions for a particular app):</p> <pre><code>val intent = Intent(&quot;android.settings.USAGE_ACCESS_SETTINGS&quot;) val uri: Uri = Uri.fromParts(&quot;package&quot;, &quot;com.my.example&quot;, null) intent.data = uri context.startActivity(intent) </c...
I am inspecting this piece of code (it opens Usage Settings permissions for a particular app): [CODE] I understand the &quot;USAGE_ACCESS_SETTINGS&quot; part, it is documented: https://developer.android.com/reference/android/provider/Settings#ACTION_USAGE_ACCESS_SETTINGS But how did the author of this code come up with...
android
2
2022-02-17T12:15:52.097Z
2,022
2
12
3
36
1
529
63
1
1
true
false
false
false
false
false
low
71,225,118
What are run time inputs in python3?
<p>I have been recently been trying out this app called compiler(on android) and whenever I try run code it is asking for something called a runtime input? I am new to coding so I really don't know what it means. Another issue is that when I try to run inputs e.g input(&quot;hi: &quot;) I am unable, to type anything in...
I have been recently been trying out this app called compiler(on android) and whenever I try run code it is asking for something called a runtime input? I am new to coding so I really don't know what it means. Another issue is that when I try to run inputs e.g input(&quot;hi: &quot;) I am unable, to type anything in th...
python|android
-1
2022-02-22T16:45:38.907Z
2,022
2
16
1
36
1
524
36
2
0
false
false
false
false
false
true
negative
71,237,511
I can't select items in the listview
<p>I have a list view with custom adapter in my android application. but I can't select the elements in the list view. I have tried to select the item using the list view on item click listener but it doesn't work .please help me?</p>
I have a list view with custom adapter in my android application. but I can't select the elements in the list view. I have tried to select the item using the list view on item click listener but it doesn't work .please help me?
android-studio|listview
0
2022-02-23T13:06:54.850Z
2,022
2
13
2
36
1
227
36
2
0
false
false
false
false
false
false
zero
71,314,164
Can I have Firebase database disk persistence enabled for selective children and for other not?
<p>I want to save space for offline usage. Now in my start class, I include this line:</p> <pre class="lang-java prettyprint-override"><code>FirebaseDatabase.getInstance().setPersistenceEnabled(true); </code></pre> <p>I do not know how to implement it for one child only for example and the others be available only onli...
I want to save space for offline usage. Now in my start class, I include this line: [CODE] I do not know how to implement it for one child only for example and the others be available only online.
java|android|firebase|firebase-realtime-database|google-cloud-platform
1
2022-03-01T20:15:54.533Z
2,022
3
20
1
36
1
196
95
5
1
true
false
false
false
false
false
low
71,331,458
is it safe to forceStopPackage an android app(which use openGL-es and NativeActivity 'void android_main(struct android_app* app)') outside it?
<p>is it safe to forceStopPackage an android app(which use openGL-es and NativeActivity 'void android_main(struct android_app* app)') outside it ?</p>
is it safe to forceStopPackage an android app(which use openGL-es and NativeActivity 'void android_main(struct android_app* app)') outside it ?
android|opengl-es|kill-process|native-activity
0
2022-03-03T02:30:57.390Z
2,022
3
2
3
36
1
143
142
4
0
false
false
false
false
false
false
zero
71,360,304
I don't get why I HAVE to directly put code in the onCreate of my SQLiteOpenHelper
<p>I've fixed an issue in my code that doesn't allow me to add records to my SQLite database. Even though I've fixed it, I don't really get what's wrong with my first code, so if anyone is willing to help me understand please do explain!</p> <p>My first code:</p> <pre><code>package com.example.starbuzz; import android...
I've fixed an issue in my code that doesn't allow me to add records to my SQLite database. Even though I've fixed it, I don't really get what's wrong with my first code, so if anyone is willing to help me understand please do explain! My first code: [CODE] My new code: [CODE] The whole point of using updateMyDatabase(S...
java|android|sqlite|android-sqlite
0
2022-03-05T07:33:42.187Z
2,022
3
7
5
36
1
1,086
82
4
2
true
false
false
false
false
false
zero
71,404,920
How to move from 1 recyclerview fragment to its own activity?
<p>My current recycler view has 2 fragments. i used a relative layout encapsulating 2 textviews for each fragment within the xml file used by the adapter.</p> <p>My problem now is this; how do i make it such that when i click on each fragment, i can move to its unique location. Like from option 1 -&gt; screen 1(activit...
My current recycler view has 2 fragments. i used a relative layout encapsulating 2 textviews for each fragment within the xml file used by the adapter. My problem now is this; how do i make it such that when i click on each fragment, i can move to its unique location. Like from option 1 -> screen 1(activity), option 2 ...
java|android|android-fragments|android-recyclerview|android-relativelayout
-1
2022-03-09T05:57:17.113Z
2,022
3
5
2
36
1
1,154
61
5
3
true
false
false
false
false
true
negative
71,104,498
Grid Layout with ImageButton width and height
<p>I am trying to create a Grid Layout with 2 Columns and 3 Rows. I will use ImageButtons for the grid, so that there's 6 images on the screen, each with the same size. When I add the background to the ImageButton, the button fills the whole screen. Should I add Width and Height properties to fix this? Can anyone help ...
I am trying to create a Grid Layout with 2 Columns and 3 Rows. I will use ImageButtons for the grid, so that there's 6 images on the screen, each with the same size. When I add the background to the ImageButton, the button fills the whole screen. Should I add Width and Height properties to fix this? Can anyone help me?...
android|xml|kotlin
0
2022-02-13T20:17:10.683Z
2,022
2
20
6
37
1
327
45
3
1
true
false
false
false
false
false
zero
71,123,890
Android TextInputEditText default context menu, dismiss programmatically
<p>I would like to as if there is a way to programmatically dismiss the context menu of android .</p> <p>The menu shows whenever I long press the TextInputEditText. &quot;Cut&quot;, &quot;Copy&quot;, &quot;Paste&quot;, &quot;Share&quot;.</p> <p>I want to dismiss this menu when either pressing a button or just pressing ...
I would like to as if there is a way to programmatically dismiss the context menu of android . The menu shows whenever I long press the TextInputEditText. &quot;Cut&quot;, &quot;Copy&quot;, &quot;Paste&quot;, &quot;Share&quot;. I want to dismiss this menu when either pressing a button or just pressing outside the TextI...
android|android-textinputedittext
0
2022-02-15T09:20:46.933Z
2,022
2
9
1
37
1
479
72
2
0
false
false
false
false
false
false
zero
71,127,166
How to add various numbers of button to RecyclerView?
<p>Basically, my question is similar to this one:<a href="https://stackoverflow.com/questions/64667601/ibm-watson-assistant-in-flutter-how-to-show-options">IBM Watson Assistant in Flutter: How to show options?</a></p> <p>There is only one answer, telling me to decode the response and show the options as clickable UI el...
Basically, my question is similar to this one: IBM Watson Assistant in Flutter: How to show options? There is only one answer, telling me to decode the response and show the options as clickable UI elements. I already know how to decode it, but how to make them clickable as a button? Like this: Example I am not familia...
android|android-studio|android-layout|ibm-watson|watson-assistant
-1
2022-02-15T13:18:44.720Z
2,022
2
13
1
37
1
378
53
5
0
false
false
false
false
false
true
negative
71,156,598
Problems building android project with AAPT
<p>I'm attempting to build an android project's data without using gradle for educational, portability and efficiency reasons (both in running the build and setting it up). My project doesn't require the heavyweight build processes in gradle as it's 99% a C++ project built with make. I also wish to understand the under...
I'm attempting to build an android project's data without using gradle for educational, portability and efficiency reasons (both in running the build and setting it up). My project doesn't require the heavyweight build processes in gradle as it's 99% a C++ project built with make. I also wish to understand the underlyi...
android|xml|aapt
0
2022-02-17T10:43:18.237Z
2,022
2
10
3
37
1
1,540
43
3
4
true
false
false
false
false
false
zero
71,169,966
Error "The specified child already has a parent" after LinearLayout.addView() and then Linearlayout.removeView()
<p>I'm working on a project where I have a parent LinearLayout with id=<em>linear_parent</em> created on activity_main.xml. Inside this parent layout, n numbers of LinearLayouts are created <strong>programmatically</strong> base on user input at EditText (id=<em>no_of_views_input</em>). And inside the each of these Lin...
I'm working on a project where I have a parent LinearLayout with id= linear_parent created on activity_main.xml. Inside this parent layout, n numbers of LinearLayouts are created programmatically base on user input at EditText (id= no_of_views_input ). And inside the each of these Linearlayouts, there are more child vi...
java|android|xml|android-linearlayout
0
2022-02-18T07:46:35.350Z
2,022
2
7
4
37
1
1,364
112
4
2
true
false
false
false
false
false
zero
71,180,410
GLES30.glGetUniformLocation() randomly fails
<p>I have a method in my shader class that I use to get my Uniform variables locations, but it seems to fail on specific variables with no reason...</p> <p>Here's my getUnfiform location method (in debug mode):</p> <pre><code>public int getUniformLocation(String uniform){ int a = GLES30.glGetUniformLocation(program...
I have a method in my shader class that I use to get my Uniform variables locations, but it seems to fail on specific variables with no reason... Here's my getUnfiform location method (in debug mode): [CODE] here's my uniform variables section in my fragmemt shader code : [CODE] Here are the inputs: roughnessSanmpler M...
java|android|opengl-es|shader|glsles
1
2022-02-18T22:09:37.523Z
2,022
2
22
4
37
1
524
44
5
3
true
false
false
false
false
false
low
71,216,096
How updating data inside RecyclerView works?
<p>As we all know java is call by value, and here we are passing a LinkedList to Adapter class. like this</p> <pre><code>// this snippet is belongs to mainActivity private final LinkedList&lt;String&gt; mWordList = new LinkedList&lt;&gt;(); createDataSet(); // Let's create a data set by calling this method ...
As we all know java is call by value, and here we are passing a LinkedList to Adapter class. like this [CODE] And adapter class having it's own linkedList which get the data of linkedList just we passed from MainActivity. [CODE] And set an onclicklistner to modify list when click on an item like this [CODE] And there a...
java|android|android-recyclerview
1
2022-02-22T04:56:32.780Z
2,022
2
4
1
37
1
670
44
3
4
true
false
false
false
false
false
low
71,221,069
RecyclerViewAdapter removed fill content on scroll
<p>i use RecyclerViewAdapter for my json adaper.i make some radiobutton and check box and edittext in RecyclerViewAdapter programically but when i check some radio button or type in edittext and scroll more than 1 screen when i come back all my fill content are removed;</p> <pre><code>public class MyRecyclerViewAdapter...
i use RecyclerViewAdapter for my json adaper.i make some radiobutton and check box and edittext in RecyclerViewAdapter programically but when i check some radio button or type in edittext and scroll more than 1 screen when i come back all my fill content are removed; [CODE] please help.i tryed many code from stack but ...
android|json|android-recyclerview|android-edittext|adapter
0
2022-02-22T12:11:27.650Z
2,022
2
12
1
37
1
412
50
5
1
true
false
false
false
false
false
zero
71,264,838
Do we have anything like GTMetrix for Mobile Apps?
<p>I have a flutter app for android and iOS (dealsfidners). People say it takes some time to load during a mobile internet connection without wifi. For websites, I used to do a performance baseline with GTMetrix and improve something and verify if my performance improved or not. But I don't know how do I measure the m...
I have a flutter app for android and iOS (dealsfidners). People say it takes some time to load during a mobile internet connection without wifi. For websites, I used to do a performance baseline with GTMetrix and improve something and verify if my performance improved or not. But I don't know how do I measure the mobil...
android|ios|flutter|flutter-test|gtmetrix
-2
2022-02-25T10:59:59.457Z
2,022
2
10
4
37
1
485
50
5
0
false
false
false
false
false
true
negative
71,294,698
Android: When app is on background.I want to pass a static value (1) to TotalRoomActivity activity on notification click?
<p>eg: details about the question...I want to pass a value (1) to TotalRoomActivity on notification click when app is on background.i've implemented it but data showing null in TotalRoomActivity .Its working fine when app is open. but not working when is in backgroundBelow i've mentioned the code please find and check ...
eg: details about the question...I want to pass a value (1) to TotalRoomActivity on notification click when app is on background.i've implemented it but data showing null in TotalRoomActivity .Its working fine when app is open. but not working when is in backgroundBelow i've mentioned the code please find and check tha...
android|firebase|push-notification|firebase-cloud-messaging
0
2022-02-28T11:58:58.070Z
2,022
2
11
0
37
1
499
121
4
3
true
false
false
false
false
false
zero
71,373,214
Android Gridlayout isn't showing framelayout that doesn't have any view in it
<p>I wanted to implement a chessboard with gridlayout &amp; framelayout. When I hardcoded the xml everything works fine. But when I tried to implement it programmatically all things fall apart. In xml I added</p> <pre><code>android:background=&quot;@color:blue&quot; </code></pre> <p>to framelayout and it made a blue s...
I wanted to implement a chessboard with gridlayout & framelayout. When I hardcoded the xml everything works fine. But when I tried to implement it programmatically all things fall apart. In xml I added [CODE] to framelayout and it made a blue square but when I do this dynamically like [CODE] no square shows up unless i...
android|android-studio|android-framelayout|android-gridlayout
1
2022-03-06T18:45:20.483Z
2,022
3
18
6
37
1
551
77
4
2
true
false
false
false
false
false
low
71,377,219
incrementing the value of child in firebase
<p><img src="https://i.stack.imgur.com/y8ffg.png" alt="firebase details photo" /></p> <p>My app is a monthly basis app. like every 1st of the month my app should do the calculations and update the data in firebase.. as there is no function like that I'm using a button(reset) on which when clicked do the calculations an...
My app is a monthly basis app. like every 1st of the month my app should do the calculations and update the data in firebase.. as there is no function like that I'm using a button(reset) on which when clicked do the calculations and update in Firebase but I don't know how to update all date child in all nodes please he...
java|android|firebase|firebase-realtime-database
0
2022-03-07T06:34:14.123Z
2,022
3
6
0
37
1
361
43
4
1
true
false
false
false
false
false
zero
71,427,378
GLIDE How to modificate a .load(url) durring the app session while using a button?
<p>i hope you are well :) I'm trying to load a .gif from url by a button and be able to modificate the url and save durring the app session. For now i can only run the gif if i've put it between the .load(&quot;url&quot;) I've set a EditText File so i can try to call the R.id.EditText, also tried with a getString but w...
i hope you are well :) I'm trying to load a .gif from url by a button and be able to modificate the url and save durring the app session. For now i can only run the gif if i've put it between the .load(&quot;url&quot;) I've set a EditText File so i can try to call the R.id.EditText, also tried with a getString but when...
android|string|kotlin|android-edittext|android-glide
0
2022-03-10T16:15:54.913Z
2,022
3
16
3
37
1
603
82
5
5
true
false
false
false
false
false
zero
71,282,569
Cant convert between a TensorFlowLite tensor with type UINT8 and a Java object of type [[F (which is compatible with the TensorFlowLite type FLOAT32)
<p>I'm trying to run a Tflite model on android, with flutter but i'm getting this error-</p> <blockquote> <p>E/AndroidRuntime(18461): Caused by: java.lang.IllegalArgumentException: Cannot copy to a TensorFlowLite tensor (serving_default_sequential_5_input:0) with 150528 bytes from a Java Buffer with 602112 bytes. E/And...
I'm trying to run a Tflite model on android, with flutter but i'm getting this error- E/AndroidRuntime(18461): Caused by: java.lang.IllegalArgumentException: Cannot copy to a TensorFlowLite tensor (serving_default_sequential_5_input:0) with 150528 bytes from a Java Buffer with 602112 bytes. E/AndroidRuntime(18461): at ...
java|android|flutter|tensorflow|tensorflow-lite
0
2022-02-27T06:14:52.023Z
2,022
2
6
6
293
1
1,664
149
5
2
true
false
false
false
false
false
zero
71,389,082
If checkJetifier doesn't throw warning, does that mean I can remove it from my project?
<p>I ran <strong>build -&gt; Make Project</strong>, and then used the <strong>Build Analyze</strong>r.</p> <p>Inside the reports, I select the Warning tab and no jetifier warnings are found. (The project is build with Android Gradle Plugin 4.1)</p> <p>Does that mean that I can be confident that jetifier does not need t...
I ran build -> Make Project , and then used the Build Analyze r. Inside the reports, I select the Warning tab and no jetifier warnings are found. (The project is build with Android Gradle Plugin 4.1) Does that mean that I can be confident that jetifier does not need to be used for any lib and I may disable the jetifier...
android|android-studio|gradle|android-gradle-plugin|android-jetifier
1
2022-03-08T01:35:14.143Z
2,022
3
1
1
293
1
353
87
5
0
false
false
false
false
false
false
low
71,415,088
Is it possible to deploy an app you built with electron to android?
<p>I know that you can use electron for cross platform applications (windows, macos, linux) but is there a way to get it to run on android?</p>
I know that you can use electron for cross platform applications (windows, macos, linux) but is there a way to get it to run on android?
android|electron
1
2022-03-09T19:35:55.633Z
2,022
3
19
2
549
1
136
67
2
0
false
false
false
false
false
false
low
71,178,471
How to pass listview item to another fragment and open an url
<p>I want to get string from listview from fragmen1 and sent it to fragment 2 and open a url. But I cannt get it to work. please help.</p> <p><strong>Im trying to get string from fragment1</strong></p> <pre><code> @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, ...
I want to get string from listview from fragmen1 and sent it to fragment 2 and open a url. But I cannt get it to work. please help. Im trying to get string from fragment1 [CODE] Second fragment: [CODE] When I Run the program I can see both fragments in the screen. List on the left and (if I webload(&quot;any url&quot;)...
android|android-studio|listview|android-fragments|webview
-2
2022-02-18T18:49:38.520Z
2,022
2
18
4
38
1
579
61
5
2
true
false
false
false
false
true
negative
71,226,958
How to setup connection (choosing ip adress) from Android App on physical device to Python Program using sockets?
<p>I am a beginner in socket programming. I wrote a Python code that creates a socket listening on port 12345 :</p> <pre><code>port=12343 s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) IP = '0.0.0.0' s.bind((IP,port)) s.listen(nb_max_connex) print(f&quot;Le serveur est lancé sur {IP} sur le port {port}.&quot;) ...
I am a beginner in socket programming. I wrote a Python code that creates a socket listening on port 12345 : [CODE] Here is my java code : [CODE] 10.0.2.2 works well with android emulator, the connection is successful. However when I install my app on my phone, I can't determine how the connection can be made, I have t...
python|java|android-studio|sockets|networking
0
2022-02-22T19:03:50.863Z
2,022
2
19
1
38
1
439
113
5
2
true
false
false
false
false
false
zero
71,256,861
HOW CAN I WRITE 2 COLOR İN THE 1 TEXTWIEW?
<p>Hi:) I am using android studio(XML FİLE) and I want to write 2 color in the 1 text for the checkbox . How can I do this? Can u help me? <a href="https://i.stack.imgur.com/suZkm.png" rel="nofollow noreferrer">enter image description here</a></p>
Hi:) I am using android studio(XML FİLE) and I want to write 2 color in the 1 text for the checkbox . How can I do this? Can u help me? enter image description here
android|xml|kotlin
-1
2022-02-24T18:50:47.890Z
2,022
2
18
3
38
1
164
42
3
0
false
false
false
false
false
true
negative
71,292,701
FLUTTER || changing background of navBar selecteditem
<p>In my flutter project I used scroll_navigation but I want to change background of the selected item and I don't know how. It's been days I can't solve this problem. Please any help is highly appreciated.</p> <p>like this if I select a icon the background become grey :</p> <p><a href="https://i.stack.imgur.com/X7FIr....
In my flutter project I used scroll_navigation but I want to change background of the selected item and I don't know how. It's been days I can't solve this problem. Please any help is highly appreciated. like this if I select a icon the background become grey : This is my code : [CODE]
android|flutter|dart|navbar
0
2022-02-28T09:12:48.317Z
2,022
2
9
0
38
1
286
53
4
1
true
false
false
false
false
false
zero
71,314,631
Customize material.textfield.TextInputLayout error background
<p>Looking for a way to style the error message for <a href="https://developer.android.com/reference/com/google/android/material/textfield/TextInputLayout" rel="nofollow noreferrer">material.textfield.TextInputLayout</a></p> <p>such that the error message has a background with the following characteristics</p> <ul> <li...
Looking for a way to style the error message for material.textfield.TextInputLayout such that the error message has a background with the following characteristics filled in color customizable background shape shadows similar to this error message and I was considering using a nine patch https://developer.android.com/s...
android
0
2022-03-01T21:03:56.633Z
2,022
3
21
1
38
1
429
61
1
0
false
false
false
false
false
false
zero
71,336,222
Failed to get gattService. the BluetoothGatt return with no services
<p>I could not get the BT services list</p> <p>The method mBluetoothGatt.getService return null Because the method mDevice.connectGatt return BluetoothGatt with no services (size 0)</p> <p>I know for sure that the BT Device I am working with is working properly</p> <p>This is my first task in a new job and it is very i...
I could not get the BT services list The method mBluetoothGatt.getService return null Because the method mDevice.connectGatt return BluetoothGatt with no services (size 0) I know for sure that the BT Device I am working with is working properly This is my first task in a new job and it is very important for me to solve...
java|android|kotlin|service|bluetooth
1
2022-03-03T11:15:53.300Z
2,022
3
11
3
38
1
412
68
5
1
true
false
false
false
false
false
low
71,369,450
Why am I receiving "build failed with an exception" when I run projects in Android Studio
<p><a href="https://i.stack.imgur.com/iFbYL.png" rel="nofollow noreferrer">Android studio window</a></p> <p>I've tried running a flutter project on Android Studio and it keeps giving me this error. Pleases I need help.</p>
Android studio window I've tried running a flutter project on Android Studio and it keeps giving me this error. Pleases I need help.
flutter|android-studio|gradle|android-gradle-plugin
0
2022-03-06T10:29:24.847Z
2,022
3
10
6
38
1
132
89
4
0
false
false
false
false
false
false
zero
71,398,696
Make an application that starts by itself and executes code in the background
<p>I am developing a flutter application, however I would like a service to be able to run constantly without stopping in order to make an api request every 15 minutes and then send a notification to the user (Android /IOS). I would also like the service to start automatically with the smartphone. I've been stuck on th...
I am developing a flutter application, however I would like a service to be able to run constantly without stopping in order to make an api request every 15 minutes and then send a notification to the user (Android /IOS). I would also like the service to start automatically with the smartphone. I've been stuck on this ...
android|ios|flutter|notifications|background
-1
2022-03-08T16:53:16.647Z
2,022
3
16
1
38
1
474
77
5
0
false
false
false
false
false
true
negative
71,314,598
How do I create an AR app with Unity for Samsung Galaxy A12?
<p>I am trying to create an AR application with Unity for my Android phone: Samsung Galaxy A12, but somehow it does not work.</p> <p>This is my situation:</p> <ul> <li>I use Unity 2021.1.0f1</li> <li>I have connected the phone to my laptop on which I am running Unity</li> <li>I have selected Developer Mode on my phone<...
I am trying to create an AR application with Unity for my Android phone: Samsung Galaxy A12, but somehow it does not work. This is my situation: I use Unity 2021.1.0f1 I have connected the phone to my laptop on which I am running Unity I have selected Developer Mode on my phone I have the Android packages, ARCore, ARKi...
android|unity3d|augmented-reality|arcore|samsung-galaxy
0
2022-03-01T21:00:37.487Z
2,022
3
21
1
806
1
1,116
60
5
5
true
false
false
false
false
false
zero
71,099,619
How to play m3u8 streaming when available in Android?
<p>I have a live m3u8 streaming that I play in a VideoView in Android as follows :</p> <pre><code> MyVideoView.setVideoPath(this.VideoURL); MyVideoView.start(); </code></pre> <p>This code works properly when the streaming is already playing. But when it's not, I'm getting a popup saying &quot;Can not play the vi...
I have a live m3u8 streaming that I play in a VideoView in Android as follows : [CODE] This code works properly when the streaming is already playing. But when it's not, I'm getting a popup saying &quot;Can not play the video&quot; Is there anyway to force the VideoView play the streaming when it's available ? If it's ...
android
0
2022-02-13T10:06:35.387Z
2,022
2
10
6
39
1
420
53
1
1
true
false
false
false
false
false
zero
71,141,520
Why is my StreamController not triggering on scroll? Flutter
<p>We have a gridview.builder showing thumbnails which on tap lead to videos in a gridview. We have a streamcontroller that should trigger as you hit the bottom of the page, load a block (12 thumbnails a time). We wanted to make The whole page scroll. But now the streamcontroller doesn't trigger. If I remove the Nevers...
We have a gridview.builder showing thumbnails which on tap lead to videos in a gridview. We have a streamcontroller that should trigger as you hit the bottom of the page, load a block (12 thumbnails a time). We wanted to make The whole page scroll. But now the streamcontroller doesn't trigger. If I remove the Neverscro...
flutter|android-studio|dart
0
2022-02-16T12:03:47.393Z
2,022
2
12
2
39
1
653
60
3
1
true
false
false
false
false
false
zero