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
59,975,850
How to send this hexcode in bluetooth
<pre><code>public String colorHex(int color) { int a = Color.alpha(color); int r = Color.red(color); int g = Color.green(color); int b = Color.blue(color); return String.format(Locale.getDefault(), "0x%02X%02X%02X%02X", a, r, g, b); } </code></pre> <p>I have the code above and i cannot for the lif...
[CODE] I have the code above and i cannot for the life of me figure out how (on the click of a button) to send this hexcode through bluetooth to an arduino. any help would be great. edit: i have the bluetooth code set up and working ie. i can connect to the arudino. below is the bluetooth code i am using. i am using a ...
android|bluetooth
0
2020-01-29T21:30:37.043Z
2,020
1
21
2
56
0
566
37
2
3
true
true
false
false
false
false
zero
59,975,925
How to sent content view with androidx for databinding?
<p>Unfortunately, I can't set the content view for my Android app. I don't know how this is done for the migration to androidx.</p> <p>Here is the following code snippet not working for me:</p> <pre><code>private lateinit var binding: ActivityPostListBinding override fun onCreate(savedInstanceState: Bundle?){ ...
Unfortunately, I can't set the content view for my Android app. I don't know how this is done for the migration to androidx. Here is the following code snippet not working for me: [CODE] How do you implement it the right way? This line for androidx: binding = DataBindingUtil.setContentView(this, R.layout.activity_post_...
android|kotlin|android-databinding
0
2020-01-29T21:36:52.570Z
2,020
1
21
2
65
0
325
55
3
1
true
true
false
false
false
false
zero
59,976,014
Problem while add Xamrine.Android.Support.Design in Xamrine project(visual studio) by using nugget
<p>I am trying to add nugget packages in my Xamarin.Forms project and Xamarin.Android project. I am able to add below list of nuget packages to my Android project but I am not able to add them to the Xamarin.forms project. I checked the target framework in the Android project (right click on android project -> Propert...
I am trying to add nugget packages in my Xamarin.Forms project and Xamarin.Android project. I am able to add below list of nuget packages to my Android project but I am not able to add them to the Xamarin.forms project. I checked the target framework in the Android project (right click on android project -> Properties ...
visual-studio|xamarin.forms|xamarin.android|nuget-package
0
2020-01-29T21:43:00.630Z
2,020
1
21
2
106
0
572
98
4
4
true
true
false
false
false
false
zero
59,976,044
"Could not run phased build action using Gradle distribution..." error in Flutter
<p>I simply changed my package name in flutter by editing <code>.xml</code> and <code>gradle</code> file(s) and changing the folder names in <code>src/main/kotlin/my/package/name</code>. After that action there is "1" sign in front of Android folder, but does not redirect me to any file that has error, I assume error ...
I simply changed my package name in flutter by editing .xml and gradle file(s) and changing the folder names in src/main/kotlin/my/package/name . After that action there is "1" sign in front of Android folder, but does not redirect me to any file that has error, I assume error is in the folder (structure) itself and ma...
android|flutter|dart
2
2020-01-29T21:44:47.493Z
2,020
1
21
2
3,437
1
375
81
3
0
false
false
true
false
false
false
low
59,976,060
SQLite - How to add an order by to this query that searches from an image bucket
<p>Currently I have a query retrieves images from my bucket in MediaStore and it's in ascending order (the oldest posts appear first). How do I modify my query so that it displays the newest images first?</p> <pre><code>String[] PROJECTION_BUCKET = { MediaStore.Images.ImageColumns.BUCKET_ID, Me...
Currently I have a query retrieves images from my bucket in MediaStore and it's in ascending order (the oldest posts appear first). How do I modify my query so that it displays the newest images first? [CODE]
java|android|sqlite|android-sqlite|sql-order-by
1
2020-01-29T21:45:47.670Z
2,020
1
21
2
56
1
208
80
5
1
true
false
false
false
false
false
low
59,976,362
Dynamic Image in Android Studio TableLayout
<p>I am building a simple app using Android Studio and Kotlin.</p> <p>The app shows that for each month the results are either <code>0</code> or <code>1</code> and is used in a TableLayout format.</p> <p><a href="https://i.stack.imgur.com/SryaW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SryaW.pn...
I am building a simple app using Android Studio and Kotlin. The app shows that for each month the results are either 0 or 1 and is used in a TableLayout format. [CODE] Rather than showing the results being 0 or 1 , I would like it to be an image: or and the result to be dynamic according to some code?
android|tablelayout
1
2020-01-29T22:11:56.997Z
2,020
1
22
2
64
1
302
43
2
1
true
false
false
false
false
false
low
59,976,426
How to send List of integers along with image in retrofit2 using Multipart
<p>I am trying to upload an image using retrofit 2.0., I have few other params to be send with form data which include a List of integers. My request declaration is </p> <pre><code>@Multipart @POST("/api/Add") Call&lt;AddResponse&gt; addApi(@Part("Id") RequestBody id, @Part("Name") Req...
I am trying to upload an image using retrofit 2.0., I have few other params to be send with form data which include a List of integers. My request declaration is [CODE] [CODE] This way not working as expectedو the list of integers sent separately like below. [CODE] Also, to convert list of integers to RequestBody i use...
android|retrofit2|multipart
0
2020-01-29T22:17:27.910Z
2,020
1
22
2
1,263
1
725
74
3
5
true
false
false
false
false
false
zero
59,976,456
How to hide apps on google play store as a devoloper
<p>Is there any way to hide apps on my google play developer account, like the all the apps published by the developer? </p>
Is there any way to hide apps on my google play developer account, like the all the apps published by the developer?
android|google-play|google-apps|google-play-console
11
2020-01-29T22:19:29.470Z
2,020
1
22
2
13,110
2
116
52
4
0
false
false
true
true
true
false
medium
59,976,518
If a user hides a notification channel, can an associated foreground service still be started successfully?
<p>If an Android user hides an application's notifications from being shown, in Android 9+, either by entire application or by hiding a specific notification channel, can Services still be started using startForeground() with a valid Notification object?</p> <p>I am starting a foreground service that may run indefinit...
If an Android user hides an application's notifications from being shown, in Android 9+, either by entire application or by hiding a specific notification channel, can Services still be started using startForeground() with a valid Notification object? I am starting a foreground service that may run indefinitely and is ...
android|notifications|foreground-service
1
2020-01-29T22:26:17.250Z
2,020
1
22
2
268
0
920
107
3
0
false
true
false
false
false
false
low
59,976,595
MotionLayout ignores padding
<p>I'm trying to animate margin, padding and alpha of a textview on swipe. At the start, there is no padding of the textview, alpha is 1. At the end, I want alpha to be 0, padding to be 100dp, 16dp dp margin on the sides, alpha to be 0.5 Everything works, except the padding is not changing. Does MotionLayout support pa...
I'm trying to animate margin, padding and alpha of a textview on swipe. At the start, there is no padding of the textview, alpha is 1. At the end, I want alpha to be 0, padding to be 100dp, 16dp dp margin on the sides, alpha to be 0.5 Everything works, except the padding is not changing. Does MotionLayout support paddi...
android|animation|padding|android-motionlayout
3
2020-01-29T22:33:27.153Z
2,020
1
22
2
2,946
3
656
28
4
2
true
false
true
false
false
false
low
59,976,684
Android synchronization failed
<p>I am new to android developing. I am trying to open an existing project and get it to compile. this the first time for me using android studio and the Gradle file got me a little confused. I am trying to synchronize it but it is failing. This is the content of Gradle.build</p> <pre><code>apply plugin: 'com.android....
I am new to android developing. I am trying to open an existing project and get it to compile. this the first time for me using android studio and the Gradle file got me a little confused. I am trying to synchronize it but it is failing. This is the content of Gradle.build [CODE] I downloaded this project and I have it...
android|android-studio|gradle|synchronization
0
2020-01-29T22:42:47.690Z
2,020
1
22
2
99
2
383
30
4
2
true
false
false
false
false
false
zero
59,976,700
Xamarin Forms ViewModel with List in List
<p>I have a problem. I created a ViewModel that does a webcall and collects a List with albums: List.</p> <p>Here is the Album class:</p> <pre><code>public class Album { public int Id { get; set; } public string Name { get; set; } public List&lt;Image&gt; Image { get; set; } public decimal Price { get...
I have a problem. I created a ViewModel that does a webcall and collects a List with albums: List. Here is the Album class: [CODE] As you can see the Album contains another List with Images: [CODE] In the xaml I created a CollectionView that does get filled with the Albums, but in the Albums I want to show all the imag...
c#|xamarin|xamarin.forms|xamarin.android|xamarin.ios
0
2020-01-29T22:44:03.370Z
2,020
1
22
2
135
1
849
41
5
4
true
false
false
false
false
false
zero
59,976,779
Visual Studio - Android - GDB exited unexpectedly with exit code -1073741571 (0xC00000FD) : While Loading Symbols
<p>I have a C++ gradle app set up in Visual Studio 2019 Community Edition targeting Android. I'm using NDK 20 (the latest version in Microsoft's android sdk repo).</p> <p>This app is composed of several .so libraries (SDL2, SDL2_image, SDL2_ttf, WolfSSL, MyGameCode, MyGameLibrary, MiscellaneousExternalDependencies.a) ...
I have a C++ gradle app set up in Visual Studio 2019 Community Edition targeting Android. I'm using NDK 20 (the latest version in Microsoft's android sdk repo). This app is composed of several .so libraries (SDL2, SDL2_image, SDL2_ttf, WolfSSL, MyGameCode, MyGameLibrary, MiscellaneousExternalDependencies.a) and all see...
c++|visual-studio|android-ndk|gdb|clang
0
2020-01-29T22:53:07.247Z
2,020
1
22
2
351
1
2,866
113
5
0
false
false
false
false
false
false
zero
59,976,836
strokeColor and strokeWidth not working in androidx.cardview.widget.CardView android
<p>Trying to make some border around <code>cardView</code> (<code>androidx.cardview.widget.CardView</code>)</p> <p>Here's the code:</p> <pre><code>&lt;androidx.cardview.widget.CardView android:id="@+id/cardView" android:layout_width="273dp" android:layout_height="118dp" android:layout_marginStart="9d...
Trying to make some border around cardView ( androidx.cardview.widget.CardView ) Here's the code: [CODE] Result: Also tried to use a custom shape as a background ( fix_border.xml ), doesn't work either. fix_border.xml : [CODE]
android|material-design|android-cardview|androidx|material-components-android
6
2020-01-29T22:58:20.320Z
2,020
1
22
2
5,834
2
226
84
5
2
true
false
true
false
false
false
medium
59,976,934
Unknow attributes in xml files after migrating to Androidx
<p>I migrated to AndroidX via <strong>Refactor</strong> - <strong>Migrate to AndroidX</strong></p> <p>Now Android Studio highlights most attributes in the layouts files as Unknown</p> <p>I abbreviated the code below to show only some of the unknown attributes</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&g...
I migrated to AndroidX via Refactor - Migrate to AndroidX Now Android Studio highlights most attributes in the layouts files as Unknown I abbreviated the code below to show only some of the unknown attributes [CODE] In gradle.properties I have [CODE] In build.gradle [CODE] I tried Sync Project with Gradle files I synce...
android|androidx
1
2020-01-29T23:10:00.563Z
2,020
1
23
2
198
2
476
58
2
3
true
false
false
false
false
false
low
59,977,028
Android studio beginner :( Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0
<ol> <li><p>Hi, Im new to coding and android studio. I wrote just a simple PSVM SOUT message and the code is correct but this is what it shows in my terminal (BTW this is a fresh new install) :</p> <pre><code>Initialization script 'C:\Users\Dom\AppData\Local\Temp\MainActivity_main__.gradle' line: 20 * What went wrong...
Hi, Im new to coding and android studio. I wrote just a simple PSVM SOUT message and the code is correct but this is what it shows in my terminal (BTW this is a fresh new install) : [CODE] The gradle file that it is referring to looks like this: [CODE] I have tried to update the gradle version but when I updated it to ...
java|android-studio|gradle
0
2020-01-29T23:21:11.910Z
2,020
1
23
2
382
1
468
117
3
2
true
false
false
false
false
false
zero
59,977,036
Running mutation on PostMan returns "Method not allowed"
<p>I want to run a mutation using Postman, and I am getting </p> <blockquote> <p>Method not allowed.</p> </blockquote> <p>When I run it on the GraphQl Playground, It works completely fine</p> <p><a href="https://i.stack.imgur.com/NNPxm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NNPxm.png" a...
I want to run a mutation using Postman, and I am getting Method not allowed. When I run it on the GraphQl Playground, It works completely fine Whereas If I run it on Postman I can't get it to work. Here are the raw logs from Postman.
android|graphql|postman|web-api-testing
0
2020-01-29T23:22:47.427Z
2,020
1
23
2
700
1
233
56
4
0
false
false
false
false
false
false
zero
59,977,056
Trying Retrofit(an android api library),got some issues
<p>trying out retrofit , here is my code </p> <pre><code> override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) var rex = RetrofitClient.getClient("www.xyz.php") var pwq= rex?.create(login_sx.class)) </code></pre> <p>the ...
trying out retrofit , here is my code [CODE] the error is in the last line , the error seems to be a (Name Expected) var pwq= rex?.create(login_sx.class))
android|retrofit
-1
2020-01-29T23:25:13.490Z
2,020
1
23
2
25
1
154
55
2
1
true
false
false
false
false
true
negative
59,977,061
Prevent redirect from triggering App / Universal Link behavior
<p>We have a web product and Android/iOS mobile apps with App (Android) &amp; Universal (iOS) links enabled. This enables the OS to open our app in various scenarios where the user would otherwise have been navigated to our mobile web product.</p> <p>We are now facing a problem where our apps open under this undesirab...
We have a web product and Android/iOS mobile apps with App (Android) & Universal (iOS) links enabled. This enables the OS to open our app in various scenarios where the user would otherwise have been navigated to our mobile web product. We are now facing a problem where our apps open under this undesirable scenario: Us...
android|ios|deep-linking|ios-universal-links|android-app-links
11
2020-01-29T23:26:18.570Z
2,020
1
23
2
1,484
1
1,317
62
5
0
false
false
false
false
true
false
medium
59,977,108
Median filter with RenderScript on Android
<p>I'm taking my first steps into image processing with RenderScript. Now I'm trying to implement a Median filter for Android with it. Basically what I try to do with it is: It gets an image in bitmap format, runs a 3x3 filter for every pixel with its 8 neighbours (without edge cases), calculates the median for each ...
I'm taking my first steps into image processing with RenderScript. Now I'm trying to implement a Median filter for Android with it. Basically what I try to do with it is: It gets an image in bitmap format, runs a 3x3 filter for every pixel with its 8 neighbours (without edge cases), calculates the median for each color...
java|android|c99|median|renderscript
0
2020-01-29T23:32:07.307Z
2,020
1
23
2
397
1
713
42
5
3
true
false
false
false
false
false
zero
59,977,133
Google Play Game Services not working... Is OAuth consent screen necessary?
<p>I'm trying to make work Google Play Game Services with a game, but it's displaying an error when trying to login with a signed release APK. I checked that the project id and the SHA-1 are correct.</p> <p>The only important thing i missed is this:</p> <p><a href="https://developers.google.com/games/services/console...
I'm trying to make work Google Play Game Services with a game, but it's displaying an error when trying to login with a signed release APK. I checked that the project id and the SHA-1 are correct. The only important thing i missed is this: https://developers.google.com/games/services/console/enabling At release, publis...
android|google-api|google-play-games|google-play-console
3
2020-01-29T23:35:08.603Z
2,020
1
23
2
1,305
1
1,109
75
4
0
false
false
false
false
false
false
low
59,977,204
Android Studio: Unsolved reference to activity main after invalidate cache / restart
<p>So im new to programming and wanted to get involved. I started to learn Kotlin and I have created a simple dice rolling application in which I added new features as I have learned. However I was following a tutorial and the person pressed File> Invalidade Caches/restart and I followed, after that NOTHING works anymo...
So im new to programming and wanted to get involved. I started to learn Kotlin and I have created a simple dice rolling application in which I added new features as I have learned. However I was following a tutorial and the person pressed File> Invalidade Caches/restart and I followed, after that NOTHING works anymore ...
android|android-studio|generics|kotlin|android-activity
0
2020-01-29T23:43:45.540Z
2,020
1
23
2
518
1
749
84
5
1
true
false
false
false
false
false
zero
59,977,332
Keyboard Only Allows Bottom Sheet to Open Half Way
<p>I am having an issue where the keyboard makes it so that the bottom sheet only shows up half way(See first photo). I would like to have it so that when the user clicks the search bar, the bottom sheet always expands to the top of the page and the keyboard is then present(See photo 2). I thought the issue was in the ...
I am having an issue where the keyboard makes it so that the bottom sheet only shows up half way(See first photo). I would like to have it so that when the user clicks the search bar, the bottom sheet always expands to the top of the page and the keyboard is then present(See photo 2). I thought the issue was in the STA...
android|android-studio|kotlin|search|android-recyclerview
0
2020-01-29T23:59:48.387Z
2,020
1
23
2
139
1
432
50
5
1
true
false
false
false
false
false
zero
59,977,374
Android pause an observer when view is removed
<p>I have two custom views (canvas views) and both of them have an observer which triggers an event on the screen and draw something on canvas. I am reusing the container and rendering the canvas in the same parent layout by removing other views. Right now, no matter what my both view observer values. </p> <p>I have t...
I have two custom views (canvas views) and both of them have an observer which triggers an event on the screen and draw something on canvas. I am reusing the container and rendering the canvas in the same parent layout by removing other views. Right now, no matter what my both view observer values. I have tried an dirt...
android|canvas|mvvm|android-livedata|android-viewmodel
0
2020-01-30T00:07:50.610Z
2,020
1
0
3
419
1
759
46
5
3
true
false
false
false
false
false
zero
59,977,390
Scale a ImageButton
<p>I have an app that have an activity with 3 imagebutton and a banner ad below. Something like this...</p> <p><a href="https://i.stack.imgur.com/6vrTt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6vrTt.png" alt="enter image description here"></a></p> <p>The ImageButton layout sizes are wrap-con...
I have an app that have an activity with 3 imagebutton and a banner ad below. Something like this... The ImageButton layout sizes are wrap-content, and each source is a png that i've made. Now, when i've tested in a small screen the bottom one is behind the banner ad. I want to scale the ImageButtons dending on the siz...
android|layout|screen|scale|imagebutton
1
2020-01-30T00:09:40.557Z
2,020
1
0
3
237
3
648
19
5
0
false
false
false
false
false
false
low
59,977,735
Android - Speech Recognition - No recognition result matched
<p>I am trying to implement <code>speech recognition</code>. I keep getting the error:</p> <pre><code>ERROR_NO_MATCH - No recognition result matched - 7 </code></pre> <p>I can't find anything that explain what does this means. What does <code>"No recognition result matched"</code> mean?</p>
I am trying to implement speech recognition . I keep getting the error: [CODE] I can't find anything that explain what does this means. What does "No recognition result matched" mean?
android|speech-recognition|speech-to-text
0
2020-01-30T00:58:46.313Z
2,020
1
0
3
759
1
183
60
3
1
true
false
false
false
false
false
zero
59,977,757
Returning a value after callback in Kotlin
<p>How can I return a value after a callback in kotlin, I tried using Thread.sleep but it doesn't work</p> <pre><code> fun searchColorFromAPI(): Colors { val service: RetrofitService = ServiceGenerator.createService(RetrofitService::class.java) val result: MutableList&lt;String&gt; = arrayListOf() val ca...
How can I return a value after a callback in kotlin, I tried using Thread.sleep but it doesn't work [CODE] Always, the mColors is returned before the onFailure or onResponse because they're asynchronous. Before this code was in MainActivity but I was advised to take off, but now when I try get mColors I get the empty v...
android|kotlin
0
2020-01-30T01:01:06.347Z
2,020
1
1
3
6,365
2
415
42
2
1
true
false
true
false
false
false
zero
59,978,214
How to call all activity onDestroy() when MainAcitivty call onDestroy()?
<p>I made two activities for the test.</p> <pre><code>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { ... Button button = findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @O...
I made two activities for the test. [CODE] This button in MainActivity can start SubActivity. [CODE] When in SubActivity, press back button, it doesn't call onDestroy() in SubActivity class and start MainActivity. What I want to do is, How to call SubActivity onDestroy() when I finish the MainActivity? It doesn't call ...
android|android-lifecycle
1
2020-01-30T02:15:11.463Z
2,020
1
2
3
899
2
445
72
2
2
true
false
false
false
false
false
low
59,978,233
Retrieve single record with Room to populate an Edit dialog (activity or fragment)
<p>I have a database table which stores some records. I have been able to correctly populate a RecyclerView in a Fragment, following tutorials like <a href="https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin/#0" rel="nofollow noreferrer">this one</a> and similar ones found via search engine...
I have a database table which stores some records. I have been able to correctly populate a RecyclerView in a Fragment, following tutorials like this one and similar ones found via search engine. What I want to do next is to tie an "Edit record {id}" fragment that is tied to the RecyclerView. In other words, if I click...
android|kotlin
2
2020-01-30T02:18:46.980Z
2,020
1
2
3
1,049
2
1,575
82
2
0
false
false
false
false
false
false
low
59,978,243
How to .RequestFocus on last added EditView item in a cardview within a recylerview?
<p><a href="https://i.stack.imgur.com/1CI2W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1CI2W.jpg" alt="enter image description here"></a></p> <p>I have read numerous threads and documentation on my issue with different solutions and tried tons of them to no avail. </p> <p>I have a cardview wi...
I have read numerous threads and documentation on my issue with different solutions and tried tons of them to no avail. I have a cardview within a recyclerview. The cardview contains an EditView and 1 Image. Outside of the recyclerview I have an Add Players Button. GOAL: Click on ADD PLAYERS Button. Add a cardview to t...
android|android-recyclerview
0
2020-01-30T02:20:17.210Z
2,020
1
2
3
285
1
1,021
84
2
4
true
false
false
false
false
false
zero
59,978,278
What is most efficient way to draw a single character/glyph in a given font at a given point in an android view's canvas?
<p>I have a large number of individual characters and their exact pre-computed positions in a view coordinate system, each to be drawn in one of a small number of fonts, in an android/Java canvas belong to a view.</p> <p>But it appears that there's no low-level way of doing this in Java/android, like there is under iO...
I have a large number of individual characters and their exact pre-computed positions in a view coordinate system, each to be drawn in one of a small number of fonts, in an android/Java canvas belong to a view. But it appears that there's no low-level way of doing this in Java/android, like there is under iOS, where in...
android|android-canvas|drawtext
0
2020-01-30T02:26:13.090Z
2,020
1
2
3
304
0
698
121
3
1
true
true
false
false
false
false
zero
59,978,302
Programmatically take picture from camera using Volume button in android
<p>I know selfie stick take picture using volume button . I have a screen recording application . While recording if i open device's existing camera application i want to take picture from camera application automatically . I can press volume button automatically by using below code :</p> <pre><code>@Override public...
I know selfie stick take picture using volume button . I have a screen recording application . While recording if i open device's existing camera application i want to take picture from camera application automatically . I can press volume button automatically by using below code : [CODE] It presses volume button while...
android|android-permissions|android-camera2
0
2020-01-30T02:30:25.860Z
2,020
1
2
3
714
1
816
72
3
1
true
false
false
false
false
false
zero
59,978,413
android studio auto refresh data json url in thread every X second
<p>I need the data to be updated for example every 15 seconds. What is the most correct way to do this, I tried handler, but it does not work, maybe I did something wrong. </p> <p>How can i implement this?</p> <pre><code>import android.os.Bundle; import androidx.fragment.app.Fragment; import android.os.Handler; impor...
I need the data to be updated for example every 15 seconds. What is the most correct way to do this, I tried handler, but it does not work, maybe I did something wrong. How can i implement this? [CODE] I did it by example from: https://www.codexpedia.com/java/jackson-parser-example-in-android/
java|android|json
0
2020-01-30T02:46:32.987Z
2,020
1
2
3
641
1
294
66
3
1
true
false
false
false
false
false
zero
59,978,418
Is Fragment can contain NavController?
<p>I want to use Fragment like a hostFragment. It contains </p> <pre><code> &lt;fragment android:id="@+id/hostFragment" android:name="androidx.navigation.fragment.NavHostFragment" </code></pre> <p>Is there any way ?</p>
I want to use Fragment like a hostFragment. It contains [CODE] Is there any way ?
android|navigation
1
2020-01-30T02:47:13.940Z
2,020
1
2
3
50
1
81
38
2
1
true
false
false
false
false
false
low
59,978,730
Align center view in relativealyout to another view outside of the relativelayout
<p>I need to make the RelativeLayout and its two Views center with the TextView "title". This works when both the views in the RelativeLayout are present. However, sometimes (based on some condition) i don't need to show the "arrow" ImageView. In this case the textView "phone_name" inside the RelativeLayout is not cent...
I need to make the RelativeLayout and its two Views center with the TextView "title". This works when both the views in the RelativeLayout are present. However, sometimes (based on some condition) i don't need to show the "arrow" ImageView. In this case the textView "phone_name" inside the RelativeLayout is not center ...
java|android|android-relativelayout
0
2020-01-30T03:33:14.800Z
2,020
1
3
3
49
1
418
81
3
1
true
false
false
false
false
false
zero
59,978,766
React Native Press Two Buttons at the same time
<p><strong>Goal</strong></p> <p>I need users to be able to press up to 4 buttons at the same time in React Native.</p> <p><strong>Current Roadblock</strong></p> <p>I'm using TouchableHighlight and when one button is pressed, none of the other 3 buttons can be pressed by the user.</p> <p><strong>Code</strong></p> <...
Goal I need users to be able to press up to 4 buttons at the same time in React Native. Current Roadblock I'm using TouchableHighlight and when one button is pressed, none of the other 3 buttons can be pressed by the user. Code This is the function I'm using to display each of the 4 coloured quadrants you see below. If...
javascript|android|ios|reactjs|react-native
4
2020-01-30T03:40:34.590Z
2,020
1
3
3
917
0
715
47
5
1
true
true
false
false
false
false
low
59,978,784
Problem Scrolling or "nested scrolling" within a ListView in Flutter
<p>So as you can in the video attached, there is a problem in scrolling. It should be like an infinite scroll view (like on facebook's app news feed)</p> <p>The problem is there seems to be a "nested" scroll within the parent ListView. How can I fix this? Please assist</p> <p><a href="https://www.youtube.com/watch?v=...
So as you can in the video attached, there is a problem in scrolling. It should be like an infinite scroll view (like on facebook's app news feed) The problem is there seems to be a "nested" scroll within the parent ListView. How can I fix this? Please assist VIDEO HERE (I don't know how to attach a video here so I put...
android|flutter|flutter-layout|flutter-dependencies
1
2020-01-30T03:43:47.700Z
2,020
1
3
3
922
1
531
68
4
2
true
false
false
false
false
false
low
59,978,822
TextOverflow in Row which is inside a Column in Flutter
<p>I'm trying to develop a Card with some text widget beneath it. Look at the image below. </p> <p>The problem I'm facing is when the text next to location icon is large, it overflows. I've tried with Flex, but it throws an exception. There's also a star icon at the right bottom of the card.</p> <p>Here's what I want...
I'm trying to develop a Card with some text widget beneath it. Look at the image below. The problem I'm facing is when the text next to location icon is large, it overflows. I've tried with Flex, but it throws an exception. There's also a star icon at the right bottom of the card. Here's what I want : I want the text t...
android|flutter|flutter-layout
0
2020-01-30T03:48:56.967Z
2,020
1
3
3
99
4
543
55
3
1
true
false
false
false
false
false
zero
59,978,916
(Monaca, Cordova) Web API request with form authentication (Cookie) not working
<p>I have a problem about one of my app and Web API published. The problem has not resolved yet, so I need your help!</p> <h1>Specs</h1> <p>The app</p> <ul> <li>The app is built with Monaca (<a href="https://monaca.io/" rel="nofollow noreferrer">https://monaca.io/</a> , based on Cordova, HTML / JavaScript / CSS),</l...
I have a problem about one of my app and Web API published. The problem has not resolved yet, so I need your help! Specs The app The app is built with Monaca ( https://monaca.io/ , based on Cordova, HTML / JavaScript / CSS), Calls Web APIs with jQuery (version 3.4.1) ajax method. The app needs login API first, get cred...
android|ios|cordova|asp.net-web-api|monaca
0
2020-01-30T04:02:39.180Z
2,020
1
4
3
324
1
1,357
79
5
0
false
false
false
false
false
false
zero
59,978,955
Why my socket client receive more than one broadcast message?
<p>I'm developing an android chatting app with socket io. I have problem while receiving (socket.on) to my socket server, sometimes my app receive more than one broadcast message. I checked my log details on my app and it showed that my app receive more than one broadcast message. I'm confused because i think i did no ...
I'm developing an android chatting app with socket io. I have problem while receiving (socket.on) to my socket server, sometimes my app receive more than one broadcast message. I checked my log details on my app and it showed that my app receive more than one broadcast message. I'm confused because i think i did no wro...
android|socket.io
0
2020-01-30T04:10:16.583Z
2,020
1
4
3
53
0
957
61
2
3
true
true
false
false
false
false
zero
59,979,087
Flutter | border radius not apply on Android
<p>I want to find out why border radius wouldn't apply top half of the widget on Android.<br> Here is the image on Android</p> <p><a href="https://i.stack.imgur.com/g8blH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g8blH.png" alt="Android"></a></p> <p>However on the web, it's working like image...
I want to find out why border radius wouldn't apply top half of the widget on Android. Here is the image on Android However on the web, it's working like image below. Does anyone know why? Code [CODE]
android|css|flutter
0
2020-01-30T04:28:58.893Z
2,020
1
4
3
1,275
3
200
44
3
1
true
false
false
false
false
false
zero
59,979,107
Firebase Set Value Putting Wrong Key On Released App
<p>I have a usermodel class with different fields. Firebase has a set value method where we can pass the object and it will automatically store the value of the object with respective usermodel's items name as a key of node. <strong>My app is working fine on debug app.</strong> But when i try to set value using the rel...
I have a usermodel class with different fields. Firebase has a set value method where we can pass the object and it will automatically store the value of the object with respective usermodel's items name as a key of node. My app is working fine on debug app. But when i try to set value using the release app it saves th...
android|firebase|firebase-realtime-database
0
2020-01-30T04:31:23.913Z
2,020
1
4
3
113
1
489
52
3
2
true
false
false
false
false
false
zero
59,979,118
In Android is there a proper way to Detect if user added or deleted fingerprint when app is in running or in close state?
<p>I have gone through many links and codebase but answer is not convincing or full proof. Following link is there but also not convincing.</p> <p><a href="https://stackoverflow.com/questions/41996310/how-to-identify-fingerprint-is-add-edit-deleted-from-the-android-device">How to Identify Fingerprint is add/edit/delet...
I have gone through many links and codebase but answer is not convincing or full proof. Following link is there but also not convincing. How to Identify Fingerprint is add/edit/deleted from the android device Is there a way to get fingerprint count? HasEnrolledFingerPrint() method is now deprecated. Help appreciated..
android|fingerprint|android-fingerprint-api
0
2020-01-30T04:32:40.813Z
2,020
1
4
3
300
1
319
121
3
0
false
false
false
false
false
false
zero
59,979,144
Recyclerview data to server using volley
<p>I had created a Project in which i have 3 edit text and one button. On button Click it add my data to Recyclerview successfully and it's working fine.</p> <p>Now i want to post the recyclerview data to server using volley Post method can any one help me out how can i do it i just need a idea how to send data of rec...
I had created a Project in which i have 3 edit text and one button. On button Click it add my data to Recyclerview successfully and it's working fine. Now i want to post the recyclerview data to server using volley Post method can any one help me out how can i do it i just need a idea how to send data of recyclerview t...
android-recyclerview|android-volley|android-studio-3.0
1
2020-01-30T04:36:58.500Z
2,020
1
4
3
152
0
672
40
3
5
true
true
false
false
false
false
low
59,979,215
Built a partial upload system in Java but Videos are corrupting
<p>So I've built a picture and video partial upload system that seemed to work fine UNTIL we either tried to compress a video or the user tries to play a video. I discovered that writing a video's bytes was not so simple as appending bytes... I'm now (slightly) familiar with concepts such as atoms (free, mov, mdat, uui...
So I've built a picture and video partial upload system that seemed to work fine UNTIL we either tried to compress a video or the user tries to play a video. I discovered that writing a video's bytes was not so simple as appending bytes... I'm now (slightly) familiar with concepts such as atoms (free, mov, mdat, uuid, ...
java|android|spring|chunks
0
2020-01-30T04:45:09.810Z
2,020
1
4
3
41
1
1,637
63
4
8
true
false
false
false
false
false
zero
59,979,238
How to access the google credentials json file by placing in app folder of project and how to pass that path to the GoogleCredentials
<p>Here am accessing the credentials file by placing file in raw folder I am passing the path like this</p> <pre><code>GoogleCredentials.fromStream(new FileInputStream("android.resource://com.tvs.digi.dmsapp/raw/dms_app_google")) </code></pre> <p>And I am getting below error </p> <pre><code>android.resource:/com.tvs...
Here am accessing the credentials file by placing file in raw folder I am passing the path like this [CODE] And I am getting below error [CODE]
android
0
2020-01-30T04:47:09.363Z
2,020
1
4
3
883
1
143
133
1
2
true
false
false
false
false
false
zero
59,979,274
Android IntentService cannot start notification
<p>here is my <a href="https://drive.google.com/file/d/1AfijQg6KN4vGoOlpwOjq1i1UOXjlVUai/view?usp=sharing" rel="nofollow noreferrer">full code</a></p> <p>Start notification work well in Service, but when i change service to IntentService, the notification doesn't show, here is my service:</p> <pre><code>public class ...
here is my full code Start notification work well in Service, but when i change service to IntentService, the notification doesn't show, here is my service: [CODE] I start service with following code: [CODE]
java|android
0
2020-01-30T04:51:20.683Z
2,020
1
4
3
98
1
207
47
2
2
true
false
false
false
false
false
zero
59,979,323
how to store the selected checkbox value in an array list in android studio?
<p>I have check box options in Alert Dialog(android studio).I want the checked value to be stored in array list so that i can use the values in the next activity.So how do i create a array list for the same and store the selected values in it.</p>
I have check box options in Alert Dialog(android studio).I want the checked value to be stored in array list so that i can use the values in the next activity.So how do i create a array list for the same and store the selected values in it.
android|arraylist|checkbox|storing-information
-2
2020-01-30T04:56:06.183Z
2,020
1
4
3
492
2
240
76
4
0
false
false
false
false
false
true
negative
59,979,364
access denied finding property "hwservicemanager.ready"
<p>I'm trying to do an animation in my app but when I click on button t do animation my app crashes and logcat gives this error </p> <p>"access denied finding property "hwservicemanager.ready" " Please help me to fix it</p> <pre><code> signup_btn.setOnClickListener(new View.OnClickListener() { @Override ...
I'm trying to do an animation in my app but when I click on button t do animation my app crashes and logcat gives this error "access denied finding property "hwservicemanager.ready" " Please help me to fix it [CODE]
java|android|android-studio
0
2020-01-30T05:00:45.417Z
2,020
1
5
3
2,565
1
215
55
3
1
true
false
false
false
false
false
zero
59,979,465
I want to retrive the datas from sqlite database to textview of another activity , my database code is shown below
<pre><code>try { String qu = "CREATE TABLE IF NOT EXISTS ABOUTINST(body varchar(10000));"; database.execSQL(qu); } catch (Exception e) { Toast.makeText(activity, "Error Occured for create table", Toast.LENGTH_LONG).show(); } </code></pre>
[CODE]
android|android-sqlite
-2
2020-01-30T05:10:44.217Z
2,020
1
5
3
33
1
6
114
2
1
true
false
false
false
false
true
negative
59,979,529
Android Firebase push notification custom sound is not working
<p>1)This is my fire base class in this class message is received.</p> <pre><code>public class FirebaseMessagingPushService extends FirebaseMessagingService { @Override public void onMessageReceived(@NonNull RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); Log.d("Sound Be...
1)This is my fire base class in this class message is received. [CODE] 2)This below code is defined in manifest file. [CODE] 3) I pass both channel id and sound in json file of fire base.. PROBLEM - I want my custom sound in my application but when i received message from firebase i can not get custom sound but my mobi...
java|android|firebase|firebase-cloud-messaging
2
2020-01-30T05:17:59.413Z
2,020
1
5
3
296
1
450
62
4
2
true
false
false
false
false
false
low
59,979,593
TextureView transforms on Android -Problem with Scale and crop
<p>I have a TextureView with a fixed width and height and I want to show a camera preview inside of it. I need to crop the camera preview so that it doesn't look stretched inside my TextureView. How to do the cropping?</p> <p>Here is my code--------------------------------------------------------------</p> <pre><code...
I have a TextureView with a fixed width and height and I want to show a camera preview inside of it. I need to crop the camera preview so that it doesn't look stretched inside my TextureView. How to do the cropping? Here is my code-------------------------------------------------------------- [CODE] expected result
android|camera|crop|textureview
2
2020-01-30T05:25:41.487Z
2,020
1
5
3
280
0
316
62
4
1
true
true
false
false
false
false
low
59,979,619
Synchronise function inside GlobalScope.launch(Main): Kotlin
<p>Scenerio: let <code>fun A()</code> and <code>fun B()</code> be two functions. Inside <code>A()</code> we are calling <code>B(</code>). <code>B()</code> execution time takes around 5sec and meanwhile some other thread call A() again, then I am getting <code>ConcurrentModificationException</code>.</p> <pre><code>fun ...
Scenerio: let fun A() and fun B() be two functions. Inside A() we are calling B( ). B() execution time takes around 5sec and meanwhile some other thread call A() again, then I am getting ConcurrentModificationException . [CODE] How to synchronise it so that at a time one thread can execute B(). I already tried to use @...
android|kotlin|kotlin-coroutines
1
2020-01-30T05:27:18.777Z
2,020
1
5
3
402
1
371
60
3
1
true
false
false
false
false
false
low
59,979,620
Android seekbar value change button
<p><strong>project's problem Image:</strong></p> <p><img src="https://i.stack.imgur.com/gBfU4.png" alt="project&#39;s problem Image"></p> <p>Hi. I want to know about this problem with these two buttons. First of all, I emphasized two buttons. Left button is Decrease button and right button is Increase button. And the...
project's problem Image: Hi. I want to know about this problem with these two buttons. First of all, I emphasized two buttons. Left button is Decrease button and right button is Increase button. And the problem is... If all values are the maximum value. Clicking the Increase button does not change the value. However, i...
java|android|seekbar
0
2020-01-30T05:27:34.770Z
2,020
1
5
3
1,010
2
936
35
3
0
false
false
false
false
false
false
zero
59,979,647
retrieve real-time data from firebase using recycle view
<p><a href="https://i.stack.imgur.com/Y3CFu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y3CFu.png" alt="database "></a></p> <p>I want to retrieve the only child which have request_type "received" in recycle view but i have an issue blow code retrieve all child of a current user which hav...
I want to retrieve the only child which have request_type "received" in recycle view but i have an issue blow code retrieve all child of a current user which have request_type "sent" and "received" both this is my code [CODE] this code give me all three children of a current user but I want only child which have reques...
android|firebase-realtime-database
0
2020-01-30T05:31:21.613Z
2,020
1
5
3
77
1
353
56
2
1
true
false
false
false
false
false
zero
59,979,752
How to populate sub item spinner with JSON?
<p>I'm sure this is asked plenty and i've found some questions on here similar but none really got solve my problem. I'm hoping someone can help me out.</p> <p>What I want to do is present the user with a dropdown (spinner) with a list of city. <strong>And</strong> in the list of city have a sublist. The list and subl...
I'm sure this is asked plenty and i've found some questions on here similar but none really got solve my problem. I'm hoping someone can help me out. What I want to do is present the user with a dropdown (spinner) with a list of city. And in the list of city have a sublist. The list and sublist is from JSON. User users...
java|android|json|android-spinner
0
2020-01-30T05:43:15.860Z
2,020
1
5
3
134
2
629
43
4
2
true
false
false
false
false
false
zero
59,979,856
Huawei Tool Converter Cannot Resolve Symbol 'xms'
<p>I'm using the HMS Toolkit- Converter to add HMS API to my app automatically. After it converts <code>import com.google.android.gms.analytics.HitBuilders;</code> into <code>import org.xms.g.analytics.HitBuilders;</code> it tells me that <code>Cannot Resolve Symbole 'xms'</code>. I also tried going to HMS repository a...
I'm using the HMS Toolkit- Converter to add HMS API to my app automatically. After it converts import com.google.android.gms.analytics.HitBuilders; into import org.xms.g.analytics.HitBuilders; it tells me that Cannot Resolve Symbole 'xms' . I also tried going to HMS repository and add the Analytics Kit then hit Apply b...
huawei-mobile-services|android-studio-3.5.1
1
2020-01-30T05:55:15.220Z
2,020
1
5
3
843
3
510
49
2
0
false
false
false
false
false
false
low
59,979,884
how can send badge from firebase-admin to android application?
<p>I want to send badge from firebase-admin to applications. I can send badge to iOS apps and show its on app icon but in android can not. how can send badge from firebase-admin to android applications and show its on app icon? </p>
I want to send badge from firebase-admin to applications. I can send badge to iOS apps and show its on app icon but in android can not. how can send badge from firebase-admin to android applications and show its on app icon?
android|ios|react-native|firebase-admin|badge
0
2020-01-30T05:57:39.897Z
2,020
1
5
3
596
1
224
62
5
0
false
false
false
false
false
false
zero
59,979,950
How to make android material design compatible with android 4
<p>I have recently updated my android studio and the new one comes with material design. For Android 5.1 and above (API 21), everything works perfectly but i am receiving queries from my users on android 4.4 kitkat of the app crashing on opening it or on clicking on any item. Is it that Material design does not support...
I have recently updated my android studio and the new one comes with material design. For Android 5.1 and above (API 21), everything works perfectly but i am receiving queries from my users on android 4.4 kitkat of the app crashing on opening it or on clicking on any item. Is it that Material design does not support be...
android|material-design
0
2020-01-30T06:03:47.597Z
2,020
1
6
3
91
3
380
61
2
0
false
false
false
false
false
false
zero
59,980,007
How to add a body to GET request in dart/flutter?
<p>I'm trying to get a response from an API that requires a body with the GET request. It works fine with POSTMAN because it allows us to add body to GET request. But how to add GET request using dart?</p>
I'm trying to get a response from an API that requires a body with the GET request. It works fine with POSTMAN because it allows us to add body to GET request. But how to add GET request using dart?
android|ios|http|flutter|dart
0
2020-01-30T06:08:38.660Z
2,020
1
6
3
2,051
3
198
49
5
0
false
false
false
false
false
false
zero
59,980,018
Post values using retrofit
<p>I am currently new to android . I am using this site for practice: <a href="http://dummy.restapiexample.com/" rel="nofollow noreferrer">http://dummy.restapiexample.com/</a>, I am trying to use the post request here is the code I am using, I have used <code>jsonschema2pojo</code> and I created two classes so that ha...
I am currently new to android . I am using this site for practice: http://dummy.restapiexample.com/ , I am trying to use the post request here is the code I am using, I have used jsonschema2pojo and I created two classes so that has confused me, why do we need two classes? and how to use them? The code is not crashing....
java|android|retrofit2|development-environment
0
2020-01-30T06:09:27.763Z
2,020
1
6
3
134
2
462
26
4
4
true
false
false
false
false
false
zero
59,980,060
How to use Xcode in Ubuntu 18.04?
<p>I'm using react-native to build an app and Xcode is not supported on Ubuntu. So, I can't develop ios apps. Is there any way around so that I could run an ios simulator without having a Mac? I found articles where they suggested to use a virtual box but I think it's not efficient to develop apps on a virtual box(just...
I'm using react-native to build an app and Xcode is not supported on Ubuntu. So, I can't develop ios apps. Is there any way around so that I could run an ios simulator without having a Mac? I found articles where they suggested to use a virtual box but I think it's not efficient to develop apps on a virtual box(just an...
javascript|android|ios|swift|react-native
1
2020-01-30T06:13:39.407Z
2,020
1
6
3
5,781
2
420
33
5
0
false
false
true
false
false
false
low
59,980,071
How to profile network on React-Native?
<p>I am searching that for a day but can't get proper solution.</p> <p>I have to know how to profile network requests on my react-native app.</p> <p>I am uploading data to the API and two servers and want to know what is the size of uploaded data. How can I track that.</p> <p>I tried Android Studio Network Profiler ...
I am searching that for a day but can't get proper solution. I have to know how to profile network requests on my react-native app. I am uploading data to the API and two servers and want to know what is the size of uploaded data. How can I track that. I tried Android Studio Network Profiler but I think it misses some ...
javascript|android|ios|react-native
1
2020-01-30T06:14:39.360Z
2,020
1
6
3
282
1
404
39
4
0
false
false
false
false
false
false
low
59,980,131
Is it possible to show 10-second loading screen after button is pressed in React Native?
<p>I need to show loading screen when press button (until app get data from API) for cca. 10 seconds.</p> <p>Is it possible and how to do that?</p>
I need to show loading screen when press button (until app get data from API) for cca. 10 seconds. Is it possible and how to do that?
android|ios|reactjs|react-native|expo
-2
2020-01-30T06:20:18.247Z
2,020
1
6
3
1,562
3
133
88
5
0
false
false
false
false
false
true
negative
59,980,309
How to get data from other native app content provider in React Native application
<p>I am not able to figure out how to get data from content provider to react-native. I used RNFS in react native and my Uri is content://path to the content provider.</p> <pre><code>const exFile = await RNFS.exists('content://XXXXXXXXX/user_info'); if(exFile){ console.log('------------exist--------------'); } el...
I am not able to figure out how to get data from content provider to react-native. I used RNFS in react native and my Uri is content://path to the content provider. [CODE]
android|react-native
3
2020-01-30T06:34:59.673Z
2,020
1
6
3
114
0
171
82
2
1
true
true
false
false
false
false
low
59,980,326
How to extend Snackbar in android (Kotlin)
<p>I want to create a class which extends Snackbar but I couldn't find the constructor in the Google documentation. How should I add the constructor to the class:</p> <pre><code>import com.google.android.material.snackbar.Snackbar class MySnackbar : Snackbar { // Error: need a constructor } </code></pre>
I want to create a class which extends Snackbar but I couldn't find the constructor in the Google documentation. How should I add the constructor to the class: [CODE]
android|kotlin|android-snackbar
0
2020-01-30T06:36:04.840Z
2,020
1
6
3
1,090
3
166
42
3
1
true
false
false
false
false
false
zero
59,980,334
Replacement fragments in in pagerView
<p>`Facing one problem in android that I created a pager View and two fragments lets say fragment A and fragment B are attached...</p> <p>My question is: There is a button in fragment A after clicking on that button I want to load fragment C which will be the replacement of fragment A in the same pager view how can it ...
`Facing one problem in android that I created a pager View and two fragments lets say fragment A and fragment B are attached... My question is: There is a button in fragment A after clicking on that button I want to load fragment C which will be the replacement of fragment A in the same pager view how can it be done? B...
android|android-viewpager
0
2020-01-30T06:36:54.213Z
2,020
1
6
3
40
1
543
37
2
2
true
false
false
false
false
false
zero
59,980,467
Android - How to keep the checked state of multiple checkboxes even if a user relaunches the app?
<p>I'm working on Android sdk platform. Working of app - A user selects multiple checkboxes and then on the basis of selection, the user would receive notifications. When a user relaunches the app, the selected checkboxes stay checked. What should be my approach? The below code is for one checkbox. I want to perform it...
I'm working on Android sdk platform. Working of app - A user selects multiple checkboxes and then on the basis of selection, the user would receive notifications. When a user relaunches the app, the selected checkboxes stay checked. What should be my approach? The below code is for one checkbox. I want to perform it fo...
java|android|android-checkbox
-1
2020-01-30T06:46:24.200Z
2,020
1
6
3
382
1
416
97
3
2
true
false
false
false
false
true
negative
59,980,476
Anyway to control Soong when to pick Android.bp and when not?
<p>With new build system i.e. <code>&quot;Soong&quot;</code>, Android replaced <code>Android.mk</code> with <code>Android.bp</code>. Also Android Q onward, <code>Soong</code> will pick all <code>Android.bp</code> files no matter where all are present. Earlier, For 2 level and 3 level modules, it was not picking up Andr...
With new build system i.e. &quot;Soong&quot; , Android replaced Android.mk with Android.bp . Also Android Q onward, Soong will pick all Android.bp files no matter where all are present. Earlier, For 2 level and 3 level modules, it was not picking up Android.bp file unless instructed by &quot;optional_dirs&quot; . Now t...
android|go|android-source
9
2020-01-30T06:46:54.430Z
2,020
1
6
3
2,114
0
925
61
3
1
true
true
false
false
false
false
medium
59,980,498
Not receiving any firebase push notifications when android smart watch goes to deep sleep or doze mode in Android N
<p>I'm using FirebaseMessagingService for push to my android smart watch. But after leaving the watch untouched for sometime like 1 or 2 hours, it stopped receiving any push until I wake it. My app is a Device Admin app. Also I've provided "Ignore Battery Optimizations" and whitelist the app.And I've tried sending high...
I'm using FirebaseMessagingService for push to my android smart watch. But after leaving the watch untouched for sometime like 1 or 2 hours, it stopped receiving any push until I wake it. My app is a Device Admin app. Also I've provided "Ignore Battery Optimizations" and whitelist the app.And I've tried sending high pr...
android|performance|push-notification|firebase-cloud-messaging
1
2020-01-30T06:49:21.870Z
2,020
1
6
3
441
2
426
115
4
2
true
false
false
false
false
false
low
59,980,506
Xamarin ios simulator failed to install
<p>When I try to run the application on ios I'm getting this error is occur. I'm windows user can anyone please help me</p> <p>Please check following error</p> <p>Failed to install</p> <blockquote> <p>//users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/deb...
When I try to run the application on ios I'm getting this error is occur. I'm windows user can anyone please help me Please check following error Failed to install //users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/debug/project.ios.app to DO3c105/Failed to la...
android|visual-studio|xamarin|xamarin.forms|xamarin.ios
0
2020-01-30T06:50:20.290Z
2,020
1
6
3
1,213
2
339
39
5
0
false
false
false
false
false
false
zero
59,980,512
getLifecycle() returned null in ComponentActivity's constructor. Please make sure you are lazily constructing your Lifecycle
<p>i get this Error "Caused by: java.lang.IllegalStateException: getLifecycle() returned null in ComponentActivity's constructor. Please make sure you are lazily constructing your Lifecycle"</p> <p>after change </p> <p>From Place Play Service implementation "com.google.android.gms:play-services-places:16.0.0"</p> <p...
i get this Error "Caused by: java.lang.IllegalStateException: getLifecycle() returned null in ComponentActivity's constructor. Please make sure you are lazily constructing your Lifecycle" after change From Place Play Service implementation "com.google.android.gms:play-services-places:16.0.0" to New Places SDK Client im...
android|kotlin|appcompatactivity|lifecycleowner
2
2020-01-30T06:51:02.453Z
2,020
1
6
3
737
0
383
124
4
0
false
true
false
false
false
false
low
59,980,593
How to pretend a click on tabLayout in android kotlin?
<p>is it possible to perform a click on child on tanLayout with code not with "real action"? Something like <code>tab[position].performClick()</code>? Does something like this exists?</p> <p>Greetings</p>
is it possible to perform a click on child on tanLayout with code not with "real action"? Something like tab[position].performClick() ? Does something like this exists? Greetings
android|kotlin|android-tablayout
1
2020-01-30T06:58:28.117Z
2,020
1
6
3
203
3
178
54
3
0
false
false
false
false
false
false
low
59,980,657
I got error on a null object reference please help me
<p>I got crashed when i click Confirm button and this form my logcat:</p> <p>2020-01-30 15:11:22.363 5563-5563/com.example.barberbooking E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.barberbooking, PID: 5563 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example...
I got crashed when i click Confirm button and this form my logcat: 2020-01-30 15:11:22.363 5563-5563/com.example.barberbooking E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.barberbooking, PID: 5563 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.barberbookin...
java|android|android-fragments
-3
2020-01-30T07:03:16.113Z
2,020
1
7
3
255
2
1,104
53
3
1
true
false
false
false
false
true
negative
59,980,772
How to prevent audio recording in apps?
<p>I'm developing an app for displaying videos. I want to prevent the app from screen recording and screenshots and achieved it by <code>window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)</code>. But I'm unable to prevent the audio recording of the video. </p> <p>My code</p...
I'm developing an app for displaying videos. I want to prevent the app from screen recording and screenshots and achieved it by window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE) . But I'm unable to prevent the audio recording of the video. My code [CODE] I tried to detect i...
android|kotlin
1
2020-01-30T07:10:25.377Z
2,020
1
7
3
226
0
476
39
2
2
true
true
false
false
false
false
low
59,980,873
Scan Bar code and read it from JSON after store it in recyclerView
<p>//1.I am trying to pass Bar code value using ZXingScannerView scanner</p> <p>//2. Then if scanned bar code is equals to JSON barcode object show item_name and cost from the JSON //file inside recyclerview, My issue is after scanning nothing is showing </p> <p>@Override public View onCreateView(LayoutInflater ...
//1.I am trying to pass Bar code value using ZXingScannerView scanner //2. Then if scanned bar code is equals to JSON barcode object show item_name and cost from the JSON //file inside recyclerview, My issue is after scanning nothing is showing @Override public View onCreateView(LayoutInflater inflater, ViewGroup conta...
android|json|qr-code
0
2020-01-30T07:18:53.110Z
2,020
1
7
3
524
1
435
66
3
1
true
false
false
false
false
false
zero
59,980,905
Battery saver feature prevents WorkManager to be executed
<p>Devices such as Huawei, Xiaomi, some Samsung models, or most of the devices I know that has MIUI, EMUI in their system has by default turned on battery saver features and automatic "optimizations". Recently I've created an important worker but my device (Huawei P20 Lite) has this built-in feature which prevents the ...
Devices such as Huawei, Xiaomi, some Samsung models, or most of the devices I know that has MIUI, EMUI in their system has by default turned on battery saver features and automatic "optimizations". Recently I've created an important worker but my device (Huawei P20 Lite) has this built-in feature which prevents the job...
android|android-workmanager|battery-saver
0
2020-01-30T07:20:57.187Z
2,020
1
7
3
778
1
990
57
3
0
false
false
false
false
false
false
zero
59,980,925
How to view Android bluetooth logs with btsnoop_hci.log?
<p>I enabled developer options and bt snoop hci log to try and troubleshoot why the connection between my app and Bluetooth SPP device disconnects randomly. I took the bug report and emailed it to myself, and then opened the btsnoop_hci.log file using Wireshark. </p> <p>I am trying to find the same event logs I might ...
I enabled developer options and bt snoop hci log to try and troubleshoot why the connection between my app and Bluetooth SPP device disconnects randomly. I took the bug report and emailed it to myself, and then opened the btsnoop_hci.log file using Wireshark. I am trying to find the same event logs I might see in logca...
android|bluetooth|wireshark|spp
5
2020-01-30T07:22:43.647Z
2,020
1
7
3
6,586
1
454
56
4
0
false
false
true
false
false
false
low
59,981,041
Recycler view inside Recycler view
<p>I have multiple vertical recycler views inside a main recycler view. </p> <p>The issue I am facing is that for the inner recycler view all the inner views are getting instantiated at once.</p> <p>I tired solutions like using a common view pool <a href="https://proandroiddev.com/optimizing-nested-recyclerview-a9b78...
I have multiple vertical recycler views inside a main recycler view. The issue I am facing is that for the inner recycler view all the inner views are getting instantiated at once. I tired solutions like using a common view pool https://proandroiddev.com/optimizing-nested-recyclerview-a9b7830a4ba7 and also followed oth...
android|kotlin|android-recyclerview
0
2020-01-30T07:31:50.653Z
2,020
1
7
3
268
1
592
34
3
0
false
false
false
false
false
false
zero
59,981,069
How to load high quality favicon in android?
<p>I want to get sites icon and set it into imageView. I see this solution in another topic but this way, return a low-resolution icon:</p> <pre><code>Picasso.get().load("https://www.yahoo.com/favicon.ico") .into(holder.imageView); </code></pre> <p>In fact, I added "/favicon.ico" to the base URL of the si...
I want to get sites icon and set it into imageView. I see this solution in another topic but this way, return a low-resolution icon: [CODE] In fact, I added "/favicon.ico" to the base URL of the site. Do you have another way to get a high-quality favicon?
android
0
2020-01-30T07:34:04.033Z
2,020
1
7
3
158
0
255
44
1
1
true
true
false
false
false
false
zero
59,981,072
creating a dynamic background for a view that represents a line in the layout
<p>The needed result I want looks like this - </p> <p><a href="https://i.stack.imgur.com/knea7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/knea7.png" alt="enter image description here"></a></p> <p>where as you can see, the black line is being stretched exactly beneath the text above it, meaning...
The needed result I want looks like this - where as you can see, the black line is being stretched exactly beneath the text above it, meaning that it needs to be dynamically adjustable The current layout I have is the following - [CODE] which looks like this - I am currently using the needed solid color after the black...
android|android-layout|background
0
2020-01-30T07:34:15.290Z
2,020
1
7
3
28
1
503
77
3
1
true
false
false
false
false
false
zero
59,981,225
i am trying to connect to database using wamp but it throws file not found exception in android studio.How to solve this?
<p>so i have configured the php files and my wamp tried to connect to data base but it throws an error i even kept an network security certificate but still throws the error.</p> <p>Tried solutions 1. Added android:usesCleartextTraffic="true". 2.change the address to ipv4 address. 3.Added security file Manifestxml:</p...
so i have configured the php files and my wamp tried to connect to data base but it throws an error i even kept an network security certificate but still throws the error. Tried solutions 1. Added android:usesCleartextTraffic="true". 2.change the address to ipv4 address. 3.Added security file Manifestxml: [CODE] networ...
android|wamp
0
2020-01-30T07:47:27.870Z
2,020
1
7
3
90
2
363
121
2
3
true
false
false
false
false
false
zero
59,981,243
Several threads for run render in Android 3D game. Thread-safe?
<p>For a long time I tried to make smooth animation for the application. And I got this solution: several threads launch draw frame of SceneRenderer: </p> <pre><code>public class OGLView extends GLSurfaceView { public void init(Context context, int versionGLES) { ... renderer = new SceneRenderer(context, ver...
For a long time I tried to make smooth animation for the application. And I got this solution: several threads launch draw frame of SceneRenderer: [CODE] As a result, the animation has become smoother. Long testing of the application did not lead to errors. Testing on different device configurations did not detect chan...
java|android|opengl-es
0
2020-01-30T07:48:18.737Z
2,020
1
7
3
85
1
505
63
3
1
true
false
false
false
false
false
zero
59,981,254
Signal R connection is breaking after sometime
<p>I've implemented an app that is based on safety purposes. This app is for the two roles i.e A and B. Both users can track the location of each other. For user A, I've implemented the Mapbox and for user B I've implemented the Google Map.</p> <p>For A, Mapbox provides the default real-time navigation and for B, I've...
I've implemented an app that is based on safety purposes. This app is for the two roles i.e A and B. Both users can track the location of each other. For user A, I've implemented the Mapbox and for user B I've implemented the Google Map. For A, Mapbox provides the default real-time navigation and for B, I've used signa...
android|kotlin|connection|signalr|signalr-hub
0
2020-01-30T07:49:31.407Z
2,020
1
7
3
462
1
891
46
5
0
false
false
false
false
false
false
zero
59,981,281
java.lang.NullPointerException on Button in android
<p>This code was working fine before but now i get null pointer exception on the button </p> <pre><code> import kotlinx.android.synthetic.main.activity_splash.* override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_splas...
This code was working fine before but now i get null pointer exception on the button [CODE] error java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference and here is logcat [CODE] here is the xml file ...
android|kotlin
-1
2020-01-30T07:52:19.247Z
2,020
1
7
3
578
2
379
51
2
3
true
false
false
false
false
true
negative
59,981,433
How can I create custom layout in android?
<p>I have container repeated at more than view. <br> How can I create this container just one time and implement its class using builder design pattern.</p> <p>Example: I have TextView its color and text changed according to the fragment. </p>
I have container repeated at more than view. How can I create this container just one time and implement its class using builder design pattern. Example: I have TextView its color and text changed according to the fragment.
java|android|android-layout|android-fragments|kotlin
-1
2020-01-30T08:03:17.827Z
2,020
1
8
3
729
1
223
42
5
0
false
false
false
false
false
true
negative
59,981,449
Android studio gradle home path
<p>Hi friends i want to set gradle home path in android studio. <a href="https://stackoverflow.com/a/22753291">https://stackoverflow.com/a/22753291</a> according to this answer there should be a gradle folder in android studio folder . But i don't have it can anyone please tell me why. <a href="https://i.stack.imgu...
Hi friends i want to set gradle home path in android studio. https://stackoverflow.com/a/22753291 according to this answer there should be a gradle folder in android studio folder . But i don't have it can anyone please tell me why.
android|android-studio|gradle
0
2020-01-30T08:04:09.233Z
2,020
1
8
3
9,205
2
232
31
3
0
false
false
true
false
false
false
zero
59,981,462
FusedLocationProviderClient getLastLocation elapsedRealtimeNanos is sometimes strange
<p>I have the same problem with this. <a href="https://stackoverflow.com/questions/49034473/fusedlocationproviderclient-getlastlocation-elapsedrealtimenanos-mostly-current">FusedLocationProviderClient getLastLocation elapsedRealtimeNanos mostly current system time</a></p> <p>My code currently compares the time value o...
I have the same problem with this. FusedLocationProviderClient getLastLocation elapsedRealtimeNanos mostly current system time My code currently compares the time value of location by FLP getLastLocation() with the current time value and requests a new location if 5 seconds have passed. At some point, however, the valu...
android|location|google-play-services|android-fusedlocation|fusedlocationproviderclient
0
2020-01-30T08:05:26.627Z
2,020
1
8
3
70
0
1,019
85
5
1
true
true
false
false
false
false
zero
59,981,531
R8: Program type already present: androidx.databinding.library.baseAdapters.BR
<p>Im getting the above error trying to create a <em>release</em> build of my app. When doing a debug build everything is running fine.</p> <p>My project has a structure as follows</p> <ul> <li><p>app (contains databinding)</p></li> <li><p>video sdk (contains data binding)</p></li> <li>another sdk (contains data bind...
Im getting the above error trying to create a release build of my app. When doing a debug build everything is running fine. My project has a structure as follows app (contains databinding) video sdk (contains data binding) another sdk (contains data binding) Im thinking it finds multiple databinding instances which mak...
android|gradle|data-binding
1
2020-01-30T08:12:30.357Z
2,020
1
8
3
215
4
523
78
3
0
false
false
false
false
false
false
low
59,981,604
I need help to authenticate the user ,because anybody can log in to the app
<p>My problem is that i want a user to get authenticated, by getting the token from the the server to verify that the user is signed up , but it seems that anyone can log in how can i authenticate users so that only the members(signed up users) can only log in . My problem is that i want a user to get authenticated, by...
My problem is that i want a user to get authenticated, by getting the token from the the server to verify that the user is signed up , but it seems that anyone can log in how can i authenticate users so that only the members(signed up users) can only log in . My problem is that i want a user to get authenticated, by ge...
java|android
0
2020-01-30T08:18:16.100Z
2,020
1
8
3
45
0
526
75
2
1
true
true
false
false
false
false
zero
59,981,652
error: no suitable method found for setQuery(com.google.firebase.firestore.Query,Class<Note>)
<p>I am trying to get data from the FirebaseFirestore and implement it in a cardview.</p> <p><strong>This is my code</strong></p> <pre><code>public class MainActivity extends AppCompatActivity { private FirebaseFirestore db = FirebaseFirestore.getInstance(); private CollectionReference notebookRef = db.coll...
I am trying to get data from the FirebaseFirestore and implement it in a cardview. This is my code [CODE] I get this following error: [CODE] Seems like I am issue with: FirebaseRecyclerOptions.Builder().setQuery(query, Note.class).build(); Any pointers about how to deal with this issue?
java|android|firebase
0
2020-01-30T08:21:55.990Z
2,020
1
8
3
475
2
287
93
3
2
true
false
false
false
false
false
zero
59,981,779
Xamarin Forms where to change StatusBar For Android and IOS
<p><a href="https://i.stack.imgur.com/myXB8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/myXB8.png" alt="enter image description here"></a></p> <p>I'm using Xamarin.Forms and want to Navigation in all pages to have #84DCC6. It adds but i dont want to have the blue color on top (which is default i...
I'm using Xamarin.Forms and want to Navigation in all pages to have #84DCC6. It adds but i dont want to have the blue color on top (which is default in Android project )of The navigation page, i want to have just one color #84DCC6. This is my code in App.xaml [CODE] I'm testing my App on Xiaomi A2 Lite. Any suggesstion...
xamarin.forms|xamarin.android|xamarin.ios
0
2020-01-30T08:30:54.170Z
2,020
1
8
3
603
1
350
59
3
1
true
false
false
false
false
false
zero
59,981,837
how to resizing X-label text size in MPandroidCharts
<p>I'm using MPandroidCharts in android application to make a bar chart it data from NodeJs server my code works fine but I found that when I change nbs of data (number of articles "on XAxe" &lt; 5) the label nb and size still the some ( max 5 elements) that make my graph Not understood, I need a solution plz </p> <p...
I'm using MPandroidCharts in android application to make a bar chart it data from NodeJs server my code works fine but I found that when I change nbs of data (number of articles "on XAxe" < 5) the label nb and size still the some ( max 5 elements) that make my graph Not understood, I need a solution plz to understand m...
android|mpandroidchart
0
2020-01-30T08:34:53.493Z
2,020
1
8
3
96
0
469
52
2
1
true
true
false
false
false
false
zero
59,981,877
Unable to get callback when internet is off and then app starts inside NetworkCallback
<p>As getActiveNetworkInfo is deprecated now in Android according to official document, I am using below implementation to get callback about Internet connectivity.</p> <pre><code>private val connectivityManager: ConnectivityManager by lazy { getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager } ...
As getActiveNetworkInfo is deprecated now in Android according to official document, I am using below implementation to get callback about Internet connectivity. [CODE] It works well when this callback register when connection is online, but it does not work properly when internet is off and then we register callback. ...
android|android-connectivitymanager
7
2020-01-30T08:37:24.697Z
2,020
1
8
3
881
1
506
86
2
1
true
false
false
false
false
false
medium
59,981,960
Bottom navigation bar - rectangle action button
<p>Using <code>google.android.material</code>:</p> <ol> <li>Is it possible to make action button rectangle ?</li> <li>Is it possible to move it a little higher / lower ?</li> </ol> <p>I am talking about the middle circle button. </p> <p><a href="https://i.stack.imgur.com/uYdfd.png" rel="nofollow noreferrer"><img src...
Using google.android.material : Is it possible to make action button rectangle ? Is it possible to move it a little higher / lower ? I am talking about the middle circle button.
android|floating-action-button|bottomnavigationview|material-components-android|material-components
1
2020-01-30T08:41:37.503Z
2,020
1
8
3
756
4
177
47
5
0
false
false
false
false
false
false
low
59,982,044
Can you use ionic capacitor run android and ionic cordova run android?
<p>just wanna know if you can you use ionic capacitor run android and ionic cordova run android at the same project?</p> <p>Or do I have to use only one?</p> <p>I am using Ionic 4</p>
just wanna know if you can you use ionic capacitor run android and ionic cordova run android at the same project? Or do I have to use only one? I am using Ionic 4
android|ionic-framework
0
2020-01-30T08:47:09.193Z
2,020
1
8
3
377
2
162
70
2
0
false
false
false
false
false
false
zero
59,982,085
Ensuring repository is singleton in android
<p>I have started using dagger for my kotlin android app. I want to ensure that repository would be initialized only once, so I have added @Singleton scope for repository.Is this enough or are there any design benefits to do some additional steps in plain kotlin to make the class is singleton? </p> <pre><code>@Module ...
I have started using dagger for my kotlin android app. I want to ensure that repository would be initialized only once, so I have added @Singleton scope for repository.Is this enough or are there any design benefits to do some additional steps in plain kotlin to make the class is singleton? [CODE]
android|kotlin|singleton|repository|dagger
0
2020-01-30T08:50:04.760Z
2,020
1
8
3
412
1
298
43
5
1
true
false
false
false
false
false
zero
59,982,243
How to fix degree of image rotation after take image from front camera and back camera in android?
<p>after take image from camera this image rotate with tow different degree between front camera and back camera I tried add rotation to image after take image from camera but it doesn't work with all devices by the same degree .</p> <p><strong>Note</strong> : I added face recognition but it doesn't work when images r...
after take image from camera this image rotate with tow different degree between front camera and back camera I tried add rotation to image after take image from camera but it doesn't work with all devices by the same degree . Note : I added face recognition but it doesn't work when images rotate,this is my code . [COD...
java|android|android-activity|camera
2
2020-01-30T09:00:06.263Z
2,020
1
9
3
207
1
342
98
4
1
true
false
false
false
false
false
low
59,982,251
Android: How can I resume an app from background from service without calling onCreate method?
<p>When you leave an app by pressing home button or something else, overlay window has been shown. I would like to implement action when this window is touched, the app will be resume with current activity and data. I know how to resume the app with FLAG_ACTIVITY_NEW_TASK in intent, it works, but it is not what i want....
When you leave an app by pressing home button or something else, overlay window has been shown. I would like to implement action when this window is touched, the app will be resume with current activity and data. I know how to resume the app with FLAG_ACTIVITY_NEW_TASK in intent, it works, but it is not what i want. I ...
android|android-intent|android-lifecycle
1
2020-01-30T09:01:08.837Z
2,020
1
9
3
404
2
394
94
3
0
false
false
false
false
false
false
low
59,982,266
How can i upload a file to Kloudless from my android?
<p>I wanted to upload a file from my android internal storage to Any cloud storage(ex.google drive,One drive etc)since kloudless provides an api to upload file to any cloud storage using accesstoken I wanted to use the same api for uploading the file (<a href="https://api.kloudless.com/v1/accounts/accountid+/storage/fi...
I wanted to upload a file from my android internal storage to Any cloud storage(ex.google drive,One drive etc)since kloudless provides an api to upload file to any cloud storage using accesstoken I wanted to use the same api for uploading the file ( https://api.kloudless.com/v1/accounts/accountid+/storage/files/ ). I t...
android|android-volley|google-drive-android-api|kloudless
0
2020-01-30T09:02:00.777Z
2,020
1
9
3
107
2
562
53
4
1
true
false
false
false
false
false
zero