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,899,538
How can I detect a touch event in an Android ActionBar?
<p>My app creates an ActionBar (androidx.appcompat.app.ActionBar) like so:</p> <pre><code> mActionBar = getSupportActionBar(); </code></pre> <p>I need to detect touch events in the ActionBar and use dispatchTouchEvent() to do so:</p> <pre><code> public boolean dispatchTouchEvent(MotionEvent ev) { // TODO ...
My app creates an ActionBar (androidx.appcompat.app.ActionBar) like so: [CODE] I need to detect touch events in the ActionBar and use dispatchTouchEvent() to do so: [CODE] This detects touch events occuring anywhere in the app. I want to consider only those events coming from mActionBar. TIA! I forgot to mention that t...
android|touch-event|android-actionbar-compat
0
2022-04-17T05:33:10.260Z
2,022
4
5
6
30
1
405
55
3
3
true
false
false
false
false
false
zero
72,001,111
WebView.LoadHtml file access error Android 30 Xamarin
<p>I have a Hybrid app I rebuilt after setting the Target Android version to API 30, per a new warning that Google now requires this, and am trying it on a Tablet with Android 11. Originally following an old hybrid sample app, my app copies files from the resources to the file system. This seems to work, as no exceptio...
I have a Hybrid app I rebuilt after setting the Target Android version to API 30, per a new warning that Google now requires this, and am trying it on a Tablet with Android 11. Originally following an old hybrid sample app, my app copies files from the resources to the file system. This seems to work, as no exceptions ...
xamarin.android
0
2022-04-25T14:24:41.757Z
2,022
4
14
0
30
1
1,288
53
1
0
false
false
false
false
false
false
zero
72,016,332
Accessing a JSON array inside of a JSON object in Android Studio
<p>I am testing my knowledge and ability with android studio and API's, I have been using volley and I have come across a little problem.</p> <p>The API I have been using is the Ergast F1 API, this is the exact link I am using</p> <p><a href="https://ergast.com/api/f1/2019/drivers.json" rel="nofollow noreferrer">https:...
I am testing my knowledge and ability with android studio and API's, I have been using volley and I have come across a little problem. The API I have been using is the Ergast F1 API, this is the exact link I am using https://ergast.com/api/f1/2019/drivers.json I think my problem is that I am trying to access the array ...
java|android|arrays|api|object
0
2022-04-26T15:08:01.787Z
2,022
4
15
1
30
1
553
64
5
1
true
false
false
false
false
false
zero
72,137,379
How to get the app I'm developing to send me a notification to remind me for an event?
<p>I'm making a student organizer app, where I have a module to register the student for an event. Once it has been registered, I want the app to send a notification 10 minutes before the event. How do I proceed with this, since I have no knowledge about it? P.S., I know I'll have to use flutter-local-notifications, bu...
I'm making a student organizer app, where I have a module to register the student for an event. Once it has been registered, I want the app to send a notification 10 minutes before the event. How do I proceed with this, since I have no knowledge about it? P.S., I know I'll have to use flutter-local-notifications, but I...
flutter|android-studio
-1
2022-05-06T07:00:59.450Z
2,022
5
7
4
30
1
376
86
2
0
false
false
false
false
false
true
negative
71,955,321
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives
<p>recently I imported facebook sdk to my game to be able to use facebook ads service. But after I imported it, I got this error:</p> <blockquote> <p>com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives</p> </blockquote> <p>while building. I am adding console errors to below. I can't f...
recently I imported facebook sdk to my game to be able to use facebook ads service. But after I imported it, I got this error: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives while building. I am adding console errors to below. I can't figure out what is the problem. Btw I am usin...
c#|android|unity3d|gradle|facebook-sdk-4.0
1
2022-04-21T13:27:27.560Z
2,022
4
13
3
286
1
359
86
5
2
true
false
false
false
false
false
low
71,846,981
Animate icon during data loading and transint it to the static state with animation when loading finished
<p>How implement animation with the next behaviour:</p> <ol> <li>When data is being loading icon should be animated like a pendulum (-15 to 15 degree)</li> <li>When data was loaded icon should be changed to another one with alpha channel animation, namely:</li> </ol> <p>Loading state:</p> <pre><code>Animation { ImageV...
How implement animation with the next behaviour: When data is being loading icon should be animated like a pendulum (-15 to 15 degree) When data was loaded icon should be changed to another one with alpha channel animation, namely: Loading state: [CODE] Loaded state: [CODE] Note: I wrote animation for the first case: [...
android|kotlin|animation
1
2022-04-12T17:36:13.267Z
2,022
4
17
1
31
1
399
105
3
3
true
false
false
false
false
false
low
71,892,049
How to set color for BottomNavigationView?
<p>I need to use android:background=&quot;?android:attr/windowBackground&quot;, but so that the day and night versions have different values. How can I do this? Is it possible to do this with using colors.xml and themes.xml</p>
I need to use android:background=&quot;?android:attr/windowBackground&quot;, but so that the day and night versions have different values. How can I do this? Is it possible to do this with using colors.xml and themes.xml
java|android
2
2022-04-16T07:47:45.117Z
2,022
4
7
5
31
1
220
42
2
0
false
false
false
false
false
false
low
71,908,122
How to make push notification with startActivity function (like Google Calendar Push Notifications on LockScreen)
<p>How to make push notification with <code>startActivity</code> function (like Google Calendar Push Notifications on LockScreen) I can't make push notification with activity lock screen.</p>
How to make push notification with startActivity function (like Google Calendar Push Notifications on LockScreen) I can't make push notification with activity lock screen.
android
0
2022-04-18T06:05:13.770Z
2,022
4
6
0
31
1
171
113
1
0
false
false
false
false
false
false
zero
71,915,759
How to exclude fragments when selecting basic activity?
<p>When creating a new project in android studio, I select basic activity but it keeps creating fragments by default as well...is there a way to opt out of that? I know i can delete them but it would be ideal to just exclude them upon project creation!</p> <p><a href="https://i.stack.imgur.com/MkuTs.png" rel="nofollow ...
When creating a new project in android studio, I select basic activity but it keeps creating fragments by default as well...is there a way to opt out of that? I know i can delete them but it would be ideal to just exclude them upon project creation! I am targeting min SDK API 21 , using Android Studio Arctic Fox 2020.3...
android-studio
0
2022-04-18T18:39:12.937Z
2,022
4
18
0
31
1
330
55
1
0
false
false
false
false
false
false
zero
71,991,547
Problem in button.. button don't work properly
<p>I am Learning Android Development But I have a problem on button my mainactivity code is</p> <pre><code>public class MainActivity extends AppCompatActivity { ArrayList&lt;ContactModel&gt; arrContact = new ArrayList&lt;&gt;(); FloatingActionButton btnfloating; EditText edtname,edtnumber; TextView txta...
I am Learning Android Development But I have a problem on button my mainactivity code is [CODE] After running my project when | I click button dialog box open but without any information saved it I want to do on click button when I give information on edit text without any information I don't want to save it.
android|android-studio
-1
2022-04-24T19:08:47.127Z
2,022
4
19
6
31
1
310
46
2
1
true
false
false
false
false
true
negative
71,996,573
checkjni error happen when use android studio build apk, while use unity build apk run well
<p>with my jni demo, i use CallStaticIntMethod to call java method with boolean return. then i build this to .so, when i use this so in android studio project, the app will crash with error message like: JNI DETECTED ERROR IN APPLICATION: the return type of CallStaticIntMethodV does not match boolean a.sheng.navivelibr...
with my jni demo, i use CallStaticIntMethod to call java method with boolean return. then i build this to .so, when i use this so in android studio project, the app will crash with error message like: JNI DETECTED ERROR IN APPLICATION: the return type of CallStaticIntMethodV does not match boolean a.sheng.navivelibrary...
android|unity3d
0
2022-04-25T08:29:02.347Z
2,022
4
8
0
31
1
603
91
2
0
false
false
false
false
false
false
zero
72,060,641
Why is this Dropdown failing in flutter?
<p>Here is the code in my build method</p> <pre><code>Column( children: [ DropdownButton&lt;String&gt;( value: dropdownvalue, items: &lt;String&gt;['A', 'B', 'C', 'D'] .map((String value) { ...
Here is the code in my build method [CODE] I have String dropdownvalue = '--'; in my State class The error I get is: [CODE] I'm just trying to have multiple independent drop downs on my screen. Thanks
android|ios|flutter|mobile|development-environment
0
2022-04-29T15:54:37.263Z
2,022
4
15
4
31
1
200
40
5
2
true
false
false
false
false
false
zero
72,095,845
Java public field accessible in debugger but not in Kotlin code
<p>Why the following public field of the class <code>android.util.DisplayMetrics</code>:</p> <pre><code>public float noncompatDensity; </code></pre> <p>is visible in the debugger:</p> <p><a href="https://i.stack.imgur.com/xmNAg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xmNAg.png" alt="Android s...
Why the following public field of the class android.util.DisplayMetrics : [CODE] is visible in the debugger: but not available in code? I'm using Android Studio Bumblebee | 2021.1.1 Patch 3
android|kotlin|field|android-studio-debugger
0
2022-05-03T07:05:00.667Z
2,022
5
7
1
31
1
189
63
4
1
true
false
false
false
false
false
zero
72,114,040
GameOver dialog in Android Game
<p>This method must display results when the game ends, but in line <strong>final DialogFragment gameResult = new DialogFragment() {...}</strong> I have an error <em>&quot;Fragments should be static such that they can be re-instantiated by the system, and anonymous classes are not static&quot;</em>. But when I'm trying...
This method must display results when the game ends, but in line final DialogFragment gameResult = new DialogFragment() {...} I have an error &quot;Fragments should be static such that they can be re-instantiated by the system, and anonymous classes are not static&quot; . But when I'm trying to change to static class, ...
java|android
0
2022-05-04T13:45:13.710Z
2,022
5
13
2
31
1
454
31
2
1
true
false
false
false
false
false
zero
72,128,866
Why is "getUserSelectedOutgoingPhoneAccount()" not callable from my telecom manager instance?
<p>So I am trying to set up a system for multiple phones being connected to a device that handles phonecalls. In order to do so, I've been investigating the getUserSelectedOutgoingPhoneAccount() method, which should help me differentiate between the phone making the calls and the rest of the phones that are connected.<...
So I am trying to set up a system for multiple phones being connected to a device that handles phonecalls. In order to do so, I've been investigating the getUserSelectedOutgoingPhoneAccount() method, which should help me differentiate between the phone making the calls and the rest of the phones that are connected. How...
java|android|telecom-manager
2
2022-05-05T14:25:34.477Z
2,022
5
14
3
31
1
1,152
93
3
0
false
false
false
false
false
false
low
71,843,104
Adding library to my android project from github
<p>There is a lib by tatocaster <a href="https://github.com/tatocaster/StepView" rel="nofollow noreferrer">https://github.com/tatocaster/StepView</a>. And I have failed importing it. <br /> ✓ Added dependency; <br /> ✓ Added maven { url 'https://jitpack.io' } <br /></p> <p>But I get an error on layout: <strong>'Cannot ...
There is a lib by tatocaster https://github.com/tatocaster/StepView . And I have failed importing it. ✓ Added dependency; ✓ Added maven { url 'https://jitpack.io' } But I get an error on layout: 'Cannot resolve class me.tatocaster.stepview.StepView' By rebuilding the project I receive: [CODE] I turn off and turn on off...
android|android-studio|build.gradle|lib
0
2022-04-12T12:52:45.187Z
2,022
4
12
1
287
1
416
48
4
1
true
false
false
false
false
false
zero
72,095,893
Android | Different raw resource folder for different product flavour
<p>I am using product flavors and able to create different strings.xml for different flavors but when I try to create raw folder under res for different flavors, I am unable to access files under raw folder for that flavor, instead it is referring to main's raw folder file for every flavor.</p> <p>Use case - I need jso...
I am using product flavors and able to create different strings.xml for different flavors but when I try to create raw folder under res for different flavors, I am unable to access files under raw folder for that flavor, instead it is referring to main's raw folder file for every flavor. Use case - I need json files (f...
android|android-productflavors
0
2022-05-03T07:10:05.583Z
2,022
5
7
1
287
1
495
69
2
1
true
false
false
false
false
false
zero
71,819,672
How to show keyboard type in numbers in one row in ipad or tab(not multiple rows)
<p>i have implemented keyboard type number but problem is it is showing bottom center of tab with 4 rows.what i want is to show keyboard in one row only.not mutiple row.</p>
i have implemented keyboard type number but problem is it is showing bottom center of tab with 4 rows.what i want is to show keyboard in one row only.not mutiple row.
android|flutter|flutter-layout
0
2022-04-10T18:57:56.263Z
2,022
4
18
6
32
1
166
81
3
0
false
false
false
false
false
false
zero
71,830,063
How to assign User to Breakout session with the zoom-andoid-sdk?
<p>I want to automatically assign users to breakout-rooms during a meeting (not beforehand, not with CSV-import).</p> <p>When I use the android-sdk demo app and add a listener, then the <code>IBOAdmin</code> is always <code>null</code>.</p> <pre><code>ZoomSDKInitializeListener listener = new ZoomSDKInitializeListener(...
I want to automatically assign users to breakout-rooms during a meeting (not beforehand, not with CSV-import). When I use the android-sdk demo app and add a listener, then the IBOAdmin is always null . [CODE] The exceptions says: [CODE] I tried to: Start the zoom conference from within the app (as host ) Join an existi...
java|android|zoom-sdk
0
2022-04-11T15:00:22.627Z
2,022
4
15
0
32
1
598
64
3
2
true
false
false
false
false
false
zero
71,869,058
AlarmManager & BroadcastReceiver did not execute or in wrong interval times
<p>I tried the sample of AlarmManager,which in <a href="https://developer.android.com/training/scheduling/alarms" rel="nofollow noreferrer">https://developer.android.com/training/scheduling/alarms</a></p> <p>My MainActivity.java like this:</p> <pre><code> alarmMgr = (AlarmManager) this.getSystemService(Context.ALARM...
I tried the sample of AlarmManager,which in https://developer.android.com/training/scheduling/alarms My MainActivity.java like this: [CODE] My BroadcastReciever.java like this: [CODE] I hope it output something like &quot;Execute time:Thu Apr 14 17:33:45 GMT+09:00 2022&quot; in every 5mins I installed the app in my phy...
java|android|broadcastreceiver|alarmmanager
1
2022-04-14T09:02:02.643Z
2,022
4
9
3
32
1
1,297
75
4
2
true
false
false
false
false
false
low
71,871,374
using or case in Query with sqlite
<p>i need to search with 2 varibiles name , phone and with spcific stat for the two cases like :</p> <p>case 1 spcific name with it's stat</p> <p>case 2 spcific phone with it's stat</p> <p>which right method to do this</p> <pre><code>String queryString = &quot;SELECT * FROM 'mytable1' WHERE name='&quot;+thename+&quot;...
i need to search with 2 varibiles name , phone and with spcific stat for the two cases like : case 1 spcific name with it's stat case 2 spcific phone with it's stat which right method to do this [CODE] or [CODE] thanks for you and sorry for my bad english
java|android|android-sqlite
-1
2022-04-14T12:09:12.590Z
2,022
4
12
3
32
1
255
34
3
2
true
false
false
false
false
true
negative
71,878,969
AlarmMgr triggered sometime correct and sometimes wrong, Why?
<p>I set the alarmMgr like this:</p> <pre><code>alarmMgr.setRepeating(AlarmManager.RTC, calendar.getTimeInMillis(), 1000 * 60 * 5L, alarmIntent) </code></pre> <p>and BroadcastReceiver output</p> <pre><code>public class BroadcastReciever extends BroadcastReceiver { @Override public void onReceive(Context...
I set the alarmMgr like this: [CODE] and BroadcastReceiver output [CODE] I got the correct log yesterday, then It's go wrong. It looked like trigger the alarm many times in the same time and I dont know why.I guess may be the android studio logcatch has some unknown mechanism. 2022-04-14 10:44:40.447 8663-8663/com.exam...
android|alarmmanager|logcat
0
2022-04-15T00:48:03.897Z
2,022
4
0
4
32
1
3,495
61
3
2
true
false
false
false
false
false
zero
71,938,807
Best way to make CardView hide
<p>this CardView</p> <pre><code>&lt;android.support.v7.widget.CardView android:id=&quot;@+id/cardv&quot; xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot; android:layout_width=&quot;match_parent&quot; android:layout_hei...
this CardView [CODE] appears in this list: [CODE] I declared in ViewHolder : [CODE] when I click the btnHide button it goes to &quot;private void hideOrder&quot; to make sure I want to make it disappear after completing the order, and this is where I wanted to somehow make the cardview disappear with that data, so it's...
java|android|hide|android-cardview
0
2022-04-20T11:26:17.677Z
2,022
4
11
2
32
1
476
30
4
4
true
false
false
false
false
false
zero
71,962,003
Button in Action Menu in Title bar doesn't Work
<p>When I click the button in the title bar it doesn't do any thing.</p> <p>I use item in menu and I linked it to main activity class but it doesn't work.</p> <pre><code>@Override public boolean onPrepareOptionsMenu(Menu menu) { return true; } @Override public...
When I click the button in the title bar it doesn't do any thing. I use item in menu and I linked it to main activity class but it doesn't work. [CODE]
java|android
-2
2022-04-21T23:52:22.973Z
2,022
4
23
3
32
1
151
47
2
1
true
false
false
false
false
true
negative
71,964,270
Flutter how can i hide bottomnavbar in specific screens?
<p>I have a bottom navbar but in some pages i want to hide it. How can i make it ? For example i want to see appbar in HomeScreen but i dont want see it on search screen. My code is like :</p> <pre><code>Scaffold( backgroundColor: _selectedIndex == 0 ? Colors.transparent : Colors.white, extendBodyBehindAppB...
I have a bottom navbar but in some pages i want to hide it. How can i make it ? For example i want to see appbar in HomeScreen but i dont want see it on search screen. My code is like : [CODE]
android|ios|flutter|dart|mobile
0
2022-04-22T06:25:21.810Z
2,022
4
6
4
32
1
192
56
5
1
true
false
false
false
false
false
zero
71,971,430
Problem with E/RecyclerView: No adapter attached; skipping layout
<p>I have some problem with</p> <p>&quot;E/RecyclerView: No adapter attached; skipping layout&quot;</p> <p>HomeFragment:</p> <pre><code>public class HomeFragment extends Fragment { // TODO: Rename parameter arguments, choose names that match // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER pr...
I have some problem with &quot;E/RecyclerView: No adapter attached; skipping layout&quot; HomeFragment: [CODE] PostAdapter [CODE] fragment_home.xml [CODE] I have no idea what I am doing wrong I already set adapter in this line. postAdapter = new PostAdapter(getActivity(),postList); postRecyclerView.setAdapter(postAdapt...
android
-1
2022-04-22T15:48:08.893Z
2,022
4
15
4
32
1
358
65
1
3
true
false
false
false
false
true
negative
72,018,261
How best to use ConstraintLayout when you want alignment but are unsure of the child widget sizes
<p>I'm trying to create this layout:</p> <p><a href="https://i.stack.imgur.com/aDWyN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aDWyN.png" alt="ConstraintLayout with two TextView and two EditText children" /></a></p> <p>My criteria are:</p> <ul> <li>I want the labels right-justified relative to ...
I'm trying to create this layout: My criteria are: I want the labels right-justified relative to each other, but otherwise flush left (with margin) within the parent. I want the EditText items to fill the remaining space Text aligned at the baseline Knowing that the EditText widgets are taller than the TextView widgets...
android|android-constraintlayout
0
2022-04-26T17:39:24.777Z
2,022
4
17
1
32
1
670
97
2
1
true
false
false
false
false
false
zero
72,055,406
Android App receives 2 connections from the same device (nRF Module)
<p>I have an android app which scans and connects to a predefined device name. My peripheral is an nRF module which is sending an incrementing data at 1Hz. However, when I launch the app, it scans and logs multiple connections to the same device and consequently the values received duplicated values. So if there is a l...
I have an android app which scans and connects to a predefined device name. My peripheral is an nRF module which is sending an incrementing data at 1Hz. However, when I launch the app, it scans and logs multiple connections to the same device and consequently the values received duplicated values. So if there is a log ...
android|bluetooth-lowenergy|nrf52
0
2022-04-29T09:00:31.043Z
2,022
4
9
4
32
1
628
68
3
4
true
false
false
false
false
false
zero
72,086,109
How to combine multiple mp4 files into one using android's MediaMuxer api?
<p>I want to combine multiple mp4 fiels into one video. There is an MediaMuxer class in Android framework and it seems that can do that. But I didn't find any clear sample for that. Is it possible to combine multiple video files(containing both video and audio) using MediaMuxer? If so, Could you please provide me a cle...
I want to combine multiple mp4 fiels into one video. There is an MediaMuxer class in Android framework and it seems that can do that. But I didn't find any clear sample for that. Is it possible to combine multiple video files(containing both video and audio) using MediaMuxer? If so, Could you please provide me a clear ...
java|android|kotlin
0
2022-05-02T11:36:20.807Z
2,022
5
11
0
32
1
341
74
3
0
false
false
false
false
false
false
zero
72,126,166
Get data usage for Wi-Fi and cellular network in Android java for Android versions above pie
<p>I would like to know how to determine the data usage for the specific application above Android version pie programmatically. I found from Android 10 onwards subscriber Id is not accessible to third party applications. Hence I'm not able to fetch data usage using networkStatsManager. But I found there are applicatio...
I would like to know how to determine the data usage for the specific application above Android version pie programmatically. I found from Android 10 onwards subscriber Id is not accessible to third party applications. Hence I'm not able to fetch data usage using networkStatsManager. But I found there are applications ...
java|android
0
2022-05-05T11:06:47.873Z
2,022
5
11
3
32
1
416
92
2
0
false
false
false
false
false
false
zero
72,128,814
How to make visible a element when the RecyclerView is loaded?
<p>I'm making an social app and I want to implement a system where when you click on the comment button a Input dropdown...</p> <p>The problem is that it doesn't matter what button you press, it always make visible the last &quot;Publication&quot; you did.</p> <p><strong>XML:</strong></p> <pre><code>&lt;?xml version=&q...
I'm making an social app and I want to implement a system where when you click on the comment button a Input dropdown... The problem is that it doesn't matter what button you press, it always make visible the last &quot;Publication&quot; you did. XML: [CODE] RECYCLE VIEW ADAPTER: [CODE] } This is a photo where I clicke...
java|android|xml|android-recyclerview
-1
2022-05-05T14:22:44.437Z
2,022
5
14
3
32
1
401
62
4
2
true
false
false
false
false
true
negative
72,130,995
How can I delete specific data from each user in firebase
<p>I was keeping the scores of users in the users table. But it is no longer needed. So I want to delete the point of each user. How can I do that ?</p> <p><a href="https://i.stack.imgur.com/9QTnf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9QTnf.jpg" alt="enter image description here" /></a></p>
I was keeping the scores of users in the users table. But it is no longer needed. So I want to delete the point of each user. How can I do that ?
java|android|firebase|firebase-realtime-database
0
2022-05-05T16:58:15.247Z
2,022
5
16
3
32
1
145
57
4
0
false
false
false
false
false
false
zero
71,969,208
Didn't find class "com.example.app.MainActivity"
<p>I got this error in flutter debugging the android build. I didn't find out the exact solution for this. Please help to solve this.</p> <p>Launching lib/main.dart on SM M105F in debug mode... Running Gradle task 'assembleDebug'... Purging debug resources in release build ✓ Built build/app/outputs/flutter-apk/app-deb...
I got this error in flutter debugging the android build. I didn't find out the exact solution for this. Please help to solve this. Launching lib/main.dart on SM M105F in debug mode... Running Gradle task 'assembleDebug'... Purging debug resources in release build ✓ Built build/app/outputs/flutter-apk/app-debug.apk. Ins...
android|flutter|android-studio|dart
-1
2022-04-22T13:02:35.227Z
2,022
4
13
4
288
1
3,324
48
4
0
false
false
false
false
false
true
negative
71,835,294
Easy Problem: Android Kotlin LiveData observe function causes null pointer exception after I delete the item its trying to observe
<p>I'm using room to manage my local database for a dictionary. I select a word then delete it and it should navigate back to the homepage. Sometimes, however, after deleting the word it causes a null pointer exception trying to access the word I've deleted. I can simply try to catch the exception when it does happen, ...
I'm using room to manage my local database for a dictionary. I select a word then delete it and it should navigate back to the homepage. Sometimes, however, after deleting the word it causes a null pointer exception trying to access the word I've deleted. I can simply try to catch the exception when it does happen, but...
android|kotlin|nullpointerexception|android-livedata
0
2022-04-11T23:12:02.493Z
2,022
4
23
0
33
1
1,322
130
4
6
true
false
false
false
false
false
zero
71,840,784
How to fetch result from websites
<p>I am trying to built app for student in which student enter roll number and get result from <a href="https://web.bisemultan.edu.pk" rel="nofollow noreferrer">https://web.bisemultan.edu.pk</a>. How can I fetch please help me. Thanks in advance</p>
I am trying to built app for student in which student enter roll number and get result from https://web.bisemultan.edu.pk . How can I fetch please help me. Thanks in advance
android|fetch|urlfetch
0
2022-04-12T10:09:03.020Z
2,022
4
10
1
33
1
173
33
3
0
false
false
false
false
false
false
zero
71,886,725
Sceneform, Pale 3D model
<p>I'm noticing with Sceneform 1.16.0 that sometimes my 3D model (glb) loads and appears pale/lighter (right screenshot), like there's a layer over top of it. Any idea why this could be? This occurs approximately every 35 loads.</p> <p><img src="https://i.stack.imgur.com/7Kslz.png" width="300"> <img src="https://i.stac...
I'm noticing with Sceneform 1.16.0 that sometimes my 3D model (glb) loads and appears pale/lighter (right screenshot), like there's a layer over top of it. Any idea why this could be? This occurs approximately every 35 loads. [CODE]
android|sceneform|specular
0
2022-04-15T16:48:49.730Z
2,022
4
16
4
33
1
232
24
3
1
true
false
false
false
false
false
zero
71,890,563
Random value based on a condition given by other user
<p>I am trying to make a change in diet app where we have a list of meals created by the nutricionist so the user can get a different meal to eat based on a defined chance, for example:</p> <pre><code>Rice and egg = 40% Rice and chicken = 40% Free to choose = 10% Rice and steak = 5% Pasta and Fried chicken = 5% </code>...
I am trying to make a change in diet app where we have a list of meals created by the nutricionist so the user can get a different meal to eat based on a defined chance, for example: [CODE] I have a cool way to show it to the user but not an effective code to make the decision. Would be glad if someone could help here
android|kotlin
0
2022-04-16T02:14:32.227Z
2,022
4
2
5
33
1
319
53
2
1
true
false
false
false
false
false
zero
71,900,168
How can I identify the recipient of the email?
<pre class="lang-java prettyprint-override"><code>//Intent to gmail Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.setData(Uri.parse(&quot;mailto:&quot;)); //how can ı add this part sendIntent.putExtra(Intent.EXTRA_EMAIL,fromEmail); sendIntent.putExtra(Intent.EXTRA_SUBJEC...
[CODE] The sender works fine, but I couldn't make the receiver. Can you help me?
java|android|email
-2
2022-04-17T07:48:20.787Z
2,022
4
7
6
33
1
80
46
3
1
true
false
false
false
false
true
negative
71,919,206
some important questions during room migration process?
<p>There are some basic but important info missed about room migration process. They may help other people. I've searched everywhere but found nothing. can anyone help?</p> <p>1- When migration starts (while app setup, after first app startup after setup, or after first connection between app and db?)</p> <p>2- If migr...
There are some basic but important info missed about room migration process. They may help other people. I've searched everywhere but found nothing. can anyone help? 1- When migration starts (while app setup, after first app startup after setup, or after first connection between app and db?) 2- If migration runs after ...
java|kotlin|build.gradle|android-room|database-migration
0
2022-04-19T03:01:47.937Z
2,022
4
3
1
33
1
813
55
5
1
true
false
false
false
false
false
zero
71,919,966
How to refuse adb on released Android App?
<p>guys. I want to refuse adb on released Android App, because I want to improved security on my App. If I can make it, my App will be protected by apk extraction or reverse engineering.</p> <p>Could you please show me any methods?</p> <p>Thanks.</p>
guys. I want to refuse adb on released Android App, because I want to improved security on my App. If I can make it, my App will be protected by apk extraction or reverse engineering. Could you please show me any methods? Thanks.
android|kotlin|gradle
-1
2022-04-19T05:14:05.920Z
2,022
4
5
1
33
1
229
42
3
0
false
false
false
false
false
true
negative
71,975,605
Why i dont see some things in day/night mode
<p>i have a problem with day and night mode becouse when i use night mode i see the menu bar and i dont see a button and when i use a day mode i dont see the menu bar but i se the button and i dont know what shoud i do (i see the add button in all modes but i dont see the retrive data button menu xml</p> <pre><code>&lt...
i have a problem with day and night mode becouse when i use night mode i see the menu bar and i dont see a button and when i use a day mode i dont see the menu bar but i se the button and i dont know what shoud i do (i see the add button in all modes but i dont see the retrive data button menu xml [CODE] main xml [CODE...
android|kotlin|theme-daynight
0
2022-04-22T23:27:14.477Z
2,022
4
23
4
33
1
367
44
3
4
true
false
false
false
false
false
zero
72,069,452
Splash Animation shows only once in Android
<p>The splash screen's supposed to work every time I use my app But once I clear the application from task manager and restart it.</p> <p>The animation doesn't appear and it goes straight to the login screen with no animation occurring.</p> <pre><code>package com.example.promilek; import androidx.appcompat.app.AppComp...
The splash screen's supposed to work every time I use my app But once I clear the application from task manager and restart it. The animation doesn't appear and it goes straight to the login screen with no animation occurring. [CODE]
java|android
2
2022-04-30T14:41:51.463Z
2,022
4
14
5
33
1
233
43
2
1
true
false
false
false
false
false
low
72,081,514
Fragments show before Views finish rendering in Android
<p>I have a problem in my Android app: lately, when I switch between fragments, their layout shows as XML before children views are shown correctly. For example, in a fragment's onCreateView, when I set a text in a TextView or change the visibility of a view, the fragment layout displays for a fraction of a second as d...
I have a problem in my Android app: lately, when I switch between fragments, their layout shows as XML before children views are shown correctly. For example, in a fragment's onCreateView, when I set a text in a TextView or change the visibility of a view, the fragment layout displays for a fraction of a second as defi...
xml|android-layout|view|android-view
0
2022-05-02T01:09:51.793Z
2,022
5
1
0
33
1
996
55
4
0
false
false
false
false
false
false
zero
71,799,260
How to update a SQLiteDatabase for a specific argument?
<p>I'm VERY new to programming, and my teacher doesn't really teach. I've been trying to learn from her example code but I have no idea what I'm doing and I probably worded the question wrong because she never once explained what an argument/variable/object/anything is. Anyways, I'm attempting to make a program that al...
I'm VERY new to programming, and my teacher doesn't really teach. I've been trying to learn from her example code but I have no idea what I'm doing and I probably worded the question wrong because she never once explained what an argument/variable/object/anything is. Anyways, I'm attempting to make a program that allow...
java|android|sql|arrays|database
0
2022-04-08T15:03:28.590Z
2,022
4
15
4
34
1
1,312
55
5
2
true
false
false
false
false
false
zero
71,806,508
Android - using activity getters from custom RecyclerView adapter
<p>I've got the following classes:</p> <p><strong>MatchActivity.java:</strong></p> <pre><code>public void setDart1(int playerIndex, int points) { getDart1().set(playerIndex, points); } public ArrayList&lt;Integer&gt; getDart1() { return dart1; } public void setDart2(int playerIndex, in...
I've got the following classes: MatchActivity.java: [CODE] MatchActivityPlayerAdapter.java: [CODE] In the onBindViewHolder() method in the custom adapter I want to set the texts of my views by getting the values from the lists via getters from my activity. But I am getting a IndexOutOfBoundsException, so I propably don...
java|android|android-studio
1
2022-04-09T08:43:57.777Z
2,022
4
8
5
34
1
441
65
3
2
true
false
false
false
false
false
low
71,817,697
Can volley show the full HTTP request / response?
<p>Can <a href="https://google.github.io/volley/" rel="nofollow noreferrer">Volley</a> show the full HTTP request / response?</p> <p>I already use <code>VolleyLog.DEBUG = true</code> and that does show several logging messages, but not the HTTP traffic.</p>
Can Volley show the full HTTP request / response? I already use VolleyLog.DEBUG = true and that does show several logging messages, but not the HTTP traffic.
java|android|kotlin|android-volley
0
2022-04-10T14:48:58.570Z
2,022
4
14
6
34
1
157
49
4
0
false
false
false
false
false
false
zero
71,907,839
The post data itself is converted to raw
<p>When sending a post request in React Native from Android via axios, the data is sent to the server in the format raw.</p> <p>RN 0.67.3 axios 0.26.0</p> <p>Server% php 7.1</p> <p>What could be causing this?</p>
When sending a post request in React Native from Android via axios, the data is sent to the server in the format raw. RN 0.67.3 axios 0.26.0 Server% php 7.1 What could be causing this?
android|reactjs|react-native|axios
0
2022-04-18T05:20:16.933Z
2,022
4
5
0
34
1
184
40
4
0
false
false
false
false
false
false
zero
71,910,983
Restart android device in android 5.1
<p>how to restart an android device programmatically and I used the below code to restart my device</p> <pre><code> Process proc = null; try { //proc = Runtime.getRuntime().exec(new String[] { &quot;su&quot;, &quot;-c&quot;, &quot;reboot&quot; }); proc = Runtime.getRuntime().exec(n...
how to restart an android device programmatically and I used the below code to restart my device [CODE] and for permission, I used this [CODE] please help me and let me know if it is possible or not? I need this on android 5.1
java|android
0
2022-04-18T11:07:37.817Z
2,022
4
11
0
34
1
226
37
2
2
true
false
false
false
false
false
zero
71,919,512
Callback from BTLE cannot working properly
<p>MainActivity.java</p> <pre><code>public class MainActivity extends AppCompatActivity { private Button scan; private BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); private BluetoothLeScanner bluetoothLeScanner = bluetoothAdapter.getBluetoothLeScanner(); private boolean scann...
MainActivity.java [CODE] This my manifest, i declared the uses-permission. Manifest [CODE] I want to scan BLE using bluetoothLeScanner but my program not working properly. After I debug, it is known that the callback from BTLE cannot be called. Why does this happen and what is the solution? Thank you. FYI, i am using a...
java|android|android-studio|bluetooth-lowenergy
1
2022-04-19T03:59:37.567Z
2,022
4
3
1
34
1
333
42
4
2
true
false
false
false
false
false
low
71,938,381
How to keep the same height of a dynamic html document on every device
<p>I have an html page which I print through different android devices. The height of the page is changing dynamically depending on some labels that I update through Javascript. Then I pass the height of the page to the android so I can set the height of the page that will be printed.(Dimensions are 856x3000ish pixels)...
I have an html page which I print through different android devices. The height of the page is changing dynamically depending on some labels that I update through Javascript. Then I pass the height of the page to the android so I can set the height of the page that will be printed.(Dimensions are 856x3000ish pixels). M...
android|html|css|printing
0
2022-04-20T10:51:17.433Z
2,022
4
10
2
34
1
1,281
70
4
1
true
false
false
false
false
false
zero
71,945,137
Android Espresso webClick() not working on input tag
<p>My problem is that when I have a <code>&lt;input type='file' id='input1'&gt;</code> and I try to click on it using webClick(), nothing happens.</p>
My problem is that when I have a <input type='file' id='input1'> and I try to click on it using webClick(), nothing happens.
testing|input|automated-tests|android-espresso
0
2022-04-20T19:19:23.557Z
2,022
4
19
2
34
1
124
52
4
0
false
false
false
false
false
false
zero
71,959,141
Does VersionCode matter for an Android AAR library?
<p>Specifically for <code>aar</code> generated libraries, does the <code>versionCode</code> set either in the manifest or build file matter? Is it used anywhere for anything?</p> <p>For an <code>apk</code> the docs say <code>versionCode</code> is used by the Play store API. I couldn't find any reference to <code>versio...
Specifically for aar generated libraries, does the versionCode set either in the manifest or build file matter? Is it used anywhere for anything? For an apk the docs say versionCode is used by the Play store API. I couldn't find any reference to versionCode relating to aar s though.
android
1
2022-04-21T18:16:29.340Z
2,022
4
18
3
34
1
283
51
1
0
false
false
false
false
false
false
low
71,972,954
What's the difference between viewBinding enabled true and buildfeatures viewBinding true
<p>What's the difference between the options to enable viewBinding:</p> <pre><code>viewBinding { enabled = true } </code></pre> <p>AND</p> <p>Groovy</p> <pre><code>buildFeatures { viewBinding true } </code></pre> <p>Kotlin</p> <pre><code>buildFeatures { viewBinding = true } </code></pre>
What's the difference between the options to enable viewBinding: [CODE] AND Groovy [CODE] Kotlin [CODE]
kotlin|groovy|android-viewbinding
1
2022-04-22T18:05:16.780Z
2,022
4
18
4
34
1
103
89
3
3
true
false
false
false
false
false
low
72,011,727
How to update content of the activity without creating new Activity?
<p>I'm trying to make an app and I have made a blueprint for a specific activity, but I don't know how to implement it. The layout contains few buttons at the top of the activity, and each button features some information, which is displayed inside the view. The view which needs to be updated is present under the butto...
I'm trying to make an app and I have made a blueprint for a specific activity, but I don't know how to implement it. The layout contains few buttons at the top of the activity, and each button features some information, which is displayed inside the view. The view which needs to be updated is present under the buttons....
java|android-studio|android-layout|android-activity|android-xml
0
2022-04-26T09:41:38.247Z
2,022
4
9
1
34
1
901
68
5
0
false
false
false
false
false
false
zero
72,039,437
How to declare two types of layout access one method first one (Post) next( Ads) using one method in adapter class
<p>Is there possibility to have post and ads methods in two class based view?</p> <p>I tried to do something like this but of course it doesn't work and error it not working (layout ads) Id</p> <p><a href="https://i.stack.imgur.com/RM5sn.png" rel="nofollow noreferrer">enter image description here</a></p>
Is there possibility to have post and ads methods in two class based view? I tried to do something like this but of course it doesn't work and error it not working (layout ads) Id enter image description here
kotlin|methods|android-recyclerview|overriding|android-arrayadapter
1
2022-04-28T07:10:40.803Z
2,022
4
7
3
34
1
208
114
5
0
false
false
false
false
false
false
low
71,901,991
Flutter : How to get data from a text field and save it in a map or list for later use?
<p>In this page I wanted to create a text form field to ask the user to enter the name and the price of the item and then when I click on the bottom button I want to save the data in a map so I can access it from another page/widget even when I close the app or maybe to show history of transactions What's the right way...
In this page I wanted to create a text form field to ask the user to enter the name and the price of the item and then when I click on the bottom button I want to save the data in a map so I can access it from another page/widget even when I close the app or maybe to show history of transactions What's the right way to...
android|flutter|dart|user-interface
0
2022-04-17T12:46:09.383Z
2,022
4
12
6
802
1
389
87
4
2
true
false
false
false
false
false
zero
71,866,258
Firebase Android - datasnapshot not returning all the fields in onChildChanged()
<p>When my app loads, the datasnapshot returns all the fields in the child listener in the onChildAdded() method which is how I populate a local list variable called TaskGroups from the datasnapshot and below is the contents of that datasnapshot</p> <pre><code>taskGroupList={KYTD1647450187={taskGroupName=Task, taskGrou...
When my app loads, the datasnapshot returns all the fields in the child listener in the onChildAdded() method which is how I populate a local list variable called TaskGroups from the datasnapshot and below is the contents of that datasnapshot [CODE] and here is what it looks like on Firebase before adding anything But ...
android|firebase|firebase-realtime-database
0
2022-04-14T03:42:28.243Z
2,022
4
3
3
35
1
1,087
80
3
3
true
false
false
false
false
false
zero
71,881,686
Visual studio not hitting the breakpoint for xamarin.forms
<p>Im facing this issue from the time I have updated my VS , I have created the test project and its working fine in other projects but its not working in my current project. I tried deleting .bin and .obj files its the same again . I even tried this &quot;project property window and go to &quot;Build-&gt;Advanced&quot...
Im facing this issue from the time I have updated my VS , I have created the test project and its working fine in other projects but its not working in my current project. I tried deleting .bin and .obj files its the same again . I even tried this &quot;project property window and go to &quot;Build->Advanced&quot; to c...
visual-studio|xamarin|xamarin.android
-1
2022-04-15T08:20:03.603Z
2,022
4
8
4
35
1
482
58
3
0
false
false
false
false
false
true
negative
71,887,487
Change version of Android Studio
<p>I recently downloaded the latest version of android Studio and this is giving me a lot of problems. Some of my old projects don't work due to compatibility issues, so I wanted to know if it was possible to revert to an older version of Android Studio and how I can do it</p>
I recently downloaded the latest version of android Studio and this is giving me a lot of problems. Some of my old projects don't work due to compatibility issues, so I wanted to know if it was possible to revert to an older version of Android Studio and how I can do it
android|android-studio
-1
2022-04-15T18:13:41.587Z
2,022
4
18
4
35
1
270
32
2
0
false
false
false
false
false
true
negative
71,890,665
How to remove previous marker when adding new marker
<p>How to remove previous marker when adding new marker in the onMapReady . can anyone help me out from this problem. this is my code...</p> <pre><code>@Override public void onMapReady(@NonNull GoogleMap googleMap) { mMap = googleMap; DatabaseReference databaseReference = Firebase...
How to remove previous marker when adding new marker in the onMapReady . can anyone help me out from this problem. this is my code... [CODE] How to remove previous marker when adding new marker in the onMapReady . can anyone help me out from this problem. this is my code...
java|android|android-studio
0
2022-04-16T02:41:53.870Z
2,022
4
2
5
35
1
274
52
3
1
true
false
false
false
false
false
zero
71,891,232
How to prevent drag when user is pinching
<p>So basically i have an ImageView that can <code>zoom</code> and <code>change</code> its vertical offset, however when i wanted to zoom it's really hard to do since the offset is still <strong>changing</strong> when pinching.</p> <p>More in the code below:</p> <pre><code>modifier = Modifier .fillMaxSize() .ba...
So basically i have an ImageView that can zoom and change its vertical offset, however when i wanted to zoom it's really hard to do since the offset is still changing when pinching. More in the code below: [CODE]
android|kotlin|android-jetpack-compose
0
2022-04-16T05:00:34.230Z
2,022
4
5
5
35
1
212
41
3
1
true
false
false
false
false
false
zero
71,973,198
How to restrict drawables only shown inside canvas?
<p>I have a canvas positioned on the right side of the screen. To the left are some buttons. If x values of some drawbles are negative, they are drawn on the left side, outside of the canvas. How can I avoid it?</p> <pre><code>Row { Button(onClick = { }) { Text(&quot;File&quot;) } Canvas(modi...
I have a canvas positioned on the right side of the screen. To the left are some buttons. If x values of some drawbles are negative, they are drawn on the left side, outside of the canvas. How can I avoid it? [CODE]
android-jetpack-compose
0
2022-04-22T18:30:16.373Z
2,022
4
18
4
35
1
215
51
1
1
true
false
false
false
false
false
zero
71,988,254
Is there a way to have consistent strokeWidth across devices?
<p>I have a multiplatform project where I draw some points with</p> <pre><code>drawPoints(dataPts, PointMode.Points, Color.Blue, strokeWidth = 5f) </code></pre> <p>The point size appear proper on Linux desktop but is too small on Android phone. Is there a way to have roughly similar presentation?</p>
I have a multiplatform project where I draw some points with [CODE] The point size appear proper on Linux desktop but is too small on Android phone. Is there a way to have roughly similar presentation?
android-jetpack-compose|kotlin-multiplatform
0
2022-04-24T12:11:22.150Z
2,022
4
12
6
35
1
201
61
2
1
true
false
false
false
false
false
zero
71,998,741
I am new to flutter and dart so i have being trying to use my phone to test the demo flutter file in android studio but i keep getting this error
<p>FAILURE: Build failed with an exception.</p> <ul> <li>What went wrong: Execution failed for task ':app:compileDebugKotlin'.</li> </ul> <blockquote> <p>Could not resolve all files for configuration ':app:kotlinCompilerClasspath'. Could not download kotlin-reflect-1.6.10.jar (org.jetbrains.kotlin:kotlin-reflect:1.6.10...
FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:compileDebugKotlin'. Could not resolve all files for configuration ':app:kotlinCompilerClasspath'. Could not download kotlin-reflect-1.6.10.jar (org.jetbrains.kotlin:kotlin-reflect:1.6.10) > Could not get resource 'https://repo.ma...
android|flutter|kotlin
0
2022-04-25T11:22:21.683Z
2,022
4
11
0
35
1
665
145
3
0
false
false
false
false
false
false
zero
72,027,706
RecycleView update list items while dragging
<p>How to update the <code>RecycleView</code> list items while dragging an element, <code>notifyDataSetChanged()</code> resets the drag position. The list items in my case are updated very frequently (for example showing sensor real time data).</p>
How to update the RecycleView list items while dragging an element, notifyDataSetChanged() resets the drag position. The list items in my case are updated very frequently (for example showing sensor real time data).
android|android-recyclerview
0
2022-04-27T11:07:24.703Z
2,022
4
11
2
35
1
215
44
2
0
false
false
false
false
false
false
zero
72,091,738
how to search recycleview item like this
<p>How to filter a recycleview. I want to filter my recycleview but i want that initialy it should be empty but after adding or start searching in edittext it should visible the recycle view item and when the edit text will be empty so again the recycleview item visiablity should be gone. <a href="https://i.stack.imgur...
How to filter a recycleview. I want to filter my recycleview but i want that initialy it should be empty but after adding or start searching in edittext it should visible the recycle view item and when the edit text will be empty so again the recycleview item visiablity should be gone. Recycle should be empty initialy ...
android|android-studio|search|recycleview
-1
2022-05-02T19:56:17.237Z
2,022
5
19
0
35
1
486
40
4
0
false
false
false
false
false
true
negative
72,118,845
Android "visibility" doesn't change if next instruction take long time
<p>I have following situation in my fragment.</p> <pre><code> @SuppressLint(&quot;ClickableViewAccessibility&quot;) override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { val view = inflater.inflate(R.layout.streaming_fragment, container, false) ...
I have following situation in my fragment. [CODE] But the instruction pb.visibility = View.VISIBLE seems not working, beacause the thread of view refresh is &quot;locked&quot; by following instruction [CODE] In fact, if I comment this line [CODE] the spinner appear after the MediaPlayer started playing streaming audio....
android|streaming|spinner|android-mediaplayer|visibility
1
2022-05-04T20:03:32.407Z
2,022
5
20
2
35
1
446
70
5
3
true
false
false
false
false
false
low
72,031,625
NoClassDefFoundError: Failed resolution of: Landroidx/tracing/Trace
<p>When I start a basic androidTest my app crashes:</p> <pre><code>@Test fun myTest() { val scenario = ActivityScenario.launch(MainActivity::class.java) // ... } </code></pre> <p>This is the stacktrace:</p> <blockquote> <p>2022-04-27 08:43:38.438 28069-28069/myapp.test E/AndroidRuntime: FATAL EXCEPTION: main Pr...
When I start a basic androidTest my app crashes: [CODE] This is the stacktrace: 2022-04-27 08:43:38.438 28069-28069/myapp.test E/AndroidRuntime: FATAL EXCEPTION: main Process: myapp.debug.test, PID: 28069 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/tracing/Trace; at androidx.startup.AppInitializer.d...
android|gradle|android-lifecycle|android-jetpack|android-testing
1
2022-04-27T15:38:48.080Z
2,022
4
15
2
291
1
3,030
67
5
2
true
false
false
false
false
false
low
72,038,238
FCM notification priority is being ignored for Android
<p>I'm testing priority for fcm notifications for android with below request. And tested the priorities with &quot;normal&quot; &amp; &quot;high&quot;.</p> <pre><code>curl --location --request POST 'https://fcm.googleapis.com/fcm/send' \ --header 'Authorization: key=##############################' \ --header 'Content-T...
I'm testing priority for fcm notifications for android with below request. And tested the priorities with &quot;normal&quot; & &quot;high&quot;. [CODE] Below is the code snippet I used to check the push notification priority in the android app. The issue is always getting the same priority even though I'm changing the ...
android|firebase|firebase-cloud-messaging
3
2022-04-28T04:58:04.500Z
2,022
4
4
3
291
1
379
54
3
2
true
false
false
false
false
false
low
71,837,893
Parameter specified as non-null is null: method com.android.build.gradle.internal.dsl.BaseAppModuleExtension.compileSdkVersion
<p>I have taken over an ex-employees project and I have been trying to make it run since past two days. However, the error I got today took a complete day but is still unsolvable. I have been getting parameter specified as non null is null for compileSdkVersion in build.gradle of one of the sub projects. The main build...
I have taken over an ex-employees project and I have been trying to make it run since past two days. However, the error I got today took a complete day but is still unsolvable. I have been getting parameter specified as non null is null for compileSdkVersion in build.gradle of one of the sub projects. The main build.gr...
android|kotlin|gradle
0
2022-04-12T06:14:59.550Z
2,022
4
6
1
803
1
780
126
3
1
true
false
false
false
false
false
zero
71,811,730
How to Make 2D ArrayList of EditText in Android Studio using Kotlin?
<p>'''</p> <pre><code>class MainActivity : AppCompatActivity() { private var button: Button? = null private var textList: ArrayList&lt;ArrayList&lt;EditText&gt;&gt; = arrayListOf(arrayListOf()) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent...
''' [CODE] ''' I wanted to Store EditText in a 2D ArrayList but Above Method dosent work. I dont know why but it crashes the app when opened. So how should i do it ?
android|android-studio|kotlin|arraylist|android-edittext
0
2022-04-09T20:39:17.007Z
2,022
4
20
5
36
1
165
68
5
1
true
false
false
false
false
false
zero
71,814,581
MediaPlayer audio not playing when setting data source from DropBox
<p>I am making a Music Player Android application for a project and I want to stream music that I have uploaded on DropBox (I tried using Google Drive but apparently the hosting service got deprecated since 2016?). I can't see any errors in my logs but the music isn't playing. When I try to play music from my R.raw fol...
I am making a Music Player Android application for a project and I want to stream music that I have uploaded on DropBox (I tried using Google Drive but apparently the hosting service got deprecated since 2016?). I can't see any errors in my logs but the music isn't playing. When I try to play music from my R.raw folder...
android|android-layout|android-mediaplayer|dropbox|audio-streaming
1
2022-04-10T07:29:10.383Z
2,022
4
7
6
36
1
590
67
5
2
true
false
false
false
false
false
low
71,818,237
Delay handler inside a loop in android
<p>I am trying to insert the handler to the loop but it makes it happen only once.</p> <pre><code>for(int i = 0;i&lt;4;i++) { btn1.setBackgroundColor(Color.RED); new Handler().postDelayed(new Runnable() { @Override public void run() { btn1.setBackgroundColor(Color.GREEN); } ...
I am trying to insert the handler to the loop but it makes it happen only once. [CODE]
android|loops
-1
2022-04-10T15:55:02.147Z
2,022
4
15
6
36
1
86
38
2
1
true
false
false
false
false
true
negative
71,826,232
Debugging vendor (Vivo) specific stacktrace
<p>As soon as I open my Android Application, it crashes with this stack trace. I am using the bare minimum activity to launch after stripping down a lot of classes and subsystems to identify the issue, but no luck. I get the same trace.</p> <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main Process: com.domain.exam...
As soon as I open my Android Application, it crashes with this stack trace. I am using the bare minimum activity to launch after stripping down a lot of classes and subsystems to identify the issue, but no luck. I get the same trace. [CODE] IndexActivity (the launched activity) [CODE] Index layout [CODE] I am not even ...
java|android
1
2022-04-11T10:26:49.263Z
2,022
4
10
0
36
1
595
43
2
3
true
false
false
false
false
false
low
37,980,337
how to display a android progress bar while checking server connectivity
<p>I wanna display a progress bar while checking server connectivity, I include a progress bar to avoid the blank screen while the system is checking the connection. I wrote the code as shown below but it's still not the things I wanted. I have tried so many ways but I didn't make it, how to do it right ? what's wrong ...
I wanna display a progress bar while checking server connectivity, I include a progress bar to avoid the blank screen while the system is checking the connection. I wrote the code as shown below but it's still not the things I wanted. I have tried so many ways but I didn't make it, how to do it right ? what's wrong wit...
android|progress-bar
0
2016-06-23T00:26:30.483Z
2,016
6
0
3
768
2
346
72
2
1
true
false
false
false
false
false
zero
37,655,133
How to load json data in fragment in Android
<p>I want show 3 <code>fragments</code> in my <code>Activity</code> and load data from <strong><code>json</code></strong> in any <code>fragments</code>! I want show each json data into one fragment, but in my application show all of data in all fragments!<br> <strong>For example :</strong> i want show <strong>article</...
I want show 3 fragments in my Activity and load data from json in any fragments ! I want show each json data into one fragment, but in my application show all of data in all fragments! For example : i want show article data into article fragment , music data into music fragment and more ... . but now show all data (art...
android|android-fragments|android-asynctask|android-json
3
2016-06-06T10:30:09.360Z
2,016
6
10
0
2,304
2
606
44
4
4
true
false
false
false
false
false
low
37,734,977
How to solve the failed verification with zipalign?
<p>I have a problem with zipalign. I can't go through the proces. Each run ends with <code>Verification FAILED</code>. For some files i see something like this</p> <pre><code>2574474 res/drawable-xxxhdpi-v4/abc_btn_radio_to_on_mtrl_000.png (BAD - 2) </code></pre> <p>for the reset</p> <pre><code>7044070 res/layout/no...
I have a problem with zipalign. I can't go through the proces. Each run ends with Verification FAILED . For some files i see something like this [CODE] for the reset [CODE] The apk is generated but when I upload it via console I receive info that it is not compressed properly. What can I do ?
android|release|zipalign
8
2016-06-09T19:49:52.630Z
2,016
6
19
3
3,584
2
293
51
3
2
true
false
true
false
false
false
medium
37,783,216
Cannot resolve findViewById and onCreate methods
<p>I'm new to android and wanted to do a simple program, but while I'm coding the Android Studio doesn't understand findViewById and onCreate and etc that I've mentioned in the code. Here is my code and the error is: "Cannnot resolve...."</p> <pre><code>package ir.maharban.measuretechs; import android.support.v7.app....
I'm new to android and wanted to do a simple program, but while I'm coding the Android Studio doesn't understand findViewById and onCreate and etc that I've mentioned in the code. Here is my code and the error is: "Cannnot resolve...." [CODE] My Code
android
0
2016-06-13T06:39:07.787Z
2,016
6
6
0
257
2
250
48
1
1
true
false
false
false
false
false
zero
37,883,186
Storing configs in android
<p>I'm trying to work out where the best place to put config type data is. At the moment everything is hardcoded in java e.g API endpoint URLs, API keys etc. Can they just go in strings resources? or in a static class?</p> <p>side note - is it safe to keep API keys like this?</p>
I'm trying to work out where the best place to put config type data is. At the moment everything is hardcoded in java e.g API endpoint URLs, API keys etc. Can they just go in strings resources? or in a static class? side note - is it safe to keep API keys like this?
android|android-sqlite|android-resources
1
2016-06-17T13:42:26.267Z
2,016
6
13
4
257
2
266
26
3
0
false
false
false
false
false
false
low
37,746,455
Retrofit 400 bad request caused by Shared Preferences
<p>Hi I am using <code>retrofit + rxandroid</code> in my app. So here I have method to make to chain requests </p> <pre><code>public void requestToken(String token,String push_token){ api.getApi().signIn(token,push_token) .map(signInModel -&gt; { SharedPreferencesHelper.setLoggedIn(); ...
Hi I am using retrofit + rxandroid in my app. So here I have method to make to chain requests [CODE] can't get why SharedPreferencesHelper.setCurrentUserToken(signInModel.getData().getToken()); causes 400 bad request retrofit error . Without this it works perfectly. This is my api interface [CODE]
java|android|retrofit
0
2016-06-10T10:54:14.270Z
2,016
6
10
4
513
2
298
53
3
2
true
false
false
false
false
false
zero
37,777,587
Firebase Authentication API Email/Password Android
<p>I am attempting to write an app for android that uses Firebase Authentication via Email/Password. It is enabled. However the tutorial, and the code in Github for the examples are showing:</p> <p><strong>private FirebaseAuth mAuth;</strong></p> <pre><code>dependencies { compile fileTree(dir: 'libs', include: ['*.ja...
I am attempting to write an app for android that uses Firebase Authentication via Email/Password. It is enabled. However the tutorial, and the code in Github for the examples are showing: private FirebaseAuth mAuth; [CODE] However, I get an error as if the " FirebaseAuth " doesn't exist. However the latest documentatio...
android|firebase|firebase-authentication
0
2016-06-12T18:16:15.297Z
2,016
6
18
6
513
2
395
50
3
1
true
false
false
false
false
false
zero
37,809,923
How to use Retrofit2 + GSON -> Class with custom object?
<p>I'm reading some of the another post inside stackoverflow, but I can't get it to work.</p> <p>I have a data returned by the server, that has the next form:</p> <p><strong>SERVER RESPONSE</strong></p> <pre><code>{ "userData": { "username": "victor.javier", "email": "victor.javier@stackoverflow.com", ...
I'm reading some of the another post inside stackoverflow, but I can't get it to work. I have a data returned by the server, that has the next form: SERVER RESPONSE [CODE] My code POJOs are the next: User.class [CODE] UserData.class [CODE] I had copied from another post the next class to deserialize a GSON. The code is...
android|gson|retrofit2|custom-object|nest-nested-object
1
2016-06-14T10:52:02.293Z
2,016
6
10
1
769
2
694
56
5
5
true
false
false
false
false
false
low
37,667,070
ViewPager not showing all Fragments added using FragmentPagerAdapter in TabLayout
<p>I have a custom FragmentPagerAdapter that im using to load two fragments to a ViewPager with corresponding tab titles in a TabLayout, however, only one fragment is being displayed when i run the code, but both fragment titles appear on the tab. At first, both fragments were not displaying, then i downgraded my gradl...
I have a custom FragmentPagerAdapter that im using to load two fragments to a ViewPager with corresponding tab titles in a TabLayout, however, only one fragment is being displayed when i run the code, but both fragment titles appear on the tab. At first, both fragments were not displaying, then i downgraded my gradle d...
java|android|android-fragments
0
2016-06-06T21:21:11.280Z
2,016
6
21
0
770
2
835
81
3
4
true
false
false
false
false
false
zero
37,850,299
Android signature verification
<p>I have got lot of doubts to be cleared in the case of Android signature verification and its vulnerability. </p> <p>Once we generate apk for an application we can unpack the apk and edit resource files using apktool. As we repack the edited apk back it loses its signature. I can resign the unsigned apk using the...
I have got lot of doubts to be cleared in the case of Android signature verification and its vulnerability. Once we generate apk for an application we can unpack the apk and edit resource files using apktool. As we repack the edited apk back it loses its signature. I can resign the unsigned apk using the jarsigner with...
java|android|apk
12
2016-06-16T05:07:25.203Z
2,016
6
5
3
3,074
2
1,853
30
3
0
false
false
true
false
true
false
medium
37,756,499
How can I write a query for each element of json_decode?
<p>I posted a JSON array as a string from a volley request in Android, and I decode it with JSON decode. Here is my PHP code:</p> <pre><code> if($_SERVER['REQUEST_METHOD']=='POST'){ //Getting values $courseList = $_POST['courseList']; $professor_ID = $_POST['Prof_ID']; $list = json_decode($course...
I posted a JSON array as a string from a volley request in Android, and I decode it with JSON decode. Here is my PHP code: [CODE] And here is print_r($list) result: [CODE] Now, I want to write a query for each element of JSON decode, but it's not working.
php|android|mysql|json
1
2016-06-10T20:14:41.840Z
2,016
6
20
4
259
2
255
56
4
2
true
false
false
false
false
false
low
37,987,582
Genymotion doesn't show in AVD Manager
<p>This is my first time with Genymotion (running on OS X 10.11)</p> <p>I've already set path to sdk in Genymotion: "/Users/username/Library/Android/sdk" and install Genymotion plugin in Android Studio.</p> <p>Genymotion icon shows up in Android studio and I can start Nexus 4 API 17 smoothly.</p> <p>But the problem ...
This is my first time with Genymotion (running on OS X 10.11) I've already set path to sdk in Genymotion: "/Users/username/Library/Android/sdk" and install Genymotion plugin in Android Studio. Genymotion icon shows up in Android studio and I can start Nexus 4 API 17 smoothly. But the problem is... In AVD Manager, it ha...
android|android-studio|avd|genymotion
-1
2016-06-23T09:29:39.973Z
2,016
6
9
3
771
2
373
38
4
0
false
false
false
false
false
true
negative
38,017,783
Android static broadcast receivers for SMS (when app is closed) in 19+ api
<p>I am very sorry if this is a duplicate post, but believe me I did a lot of searching. Way back in android 2.2 I had an application with a static broadcast receiver that would get called each time a new text message arrived, regardless of applications state.</p> <p>Now, I am trying to have same behavior, but on andr...
I am very sorry if this is a duplicate post, but believe me I did a lot of searching. Way back in android 2.2 I had an application with a static broadcast receiver that would get called each time a new text message arrived, regardless of applications state. Now, I am trying to have same behavior, but on android 5 (I be...
android|broadcastreceiver
1
2016-06-24T16:12:27.317Z
2,016
6
16
4
1,027
2
691
74
2
1
true
false
false
false
false
false
low
38,007,674
Firebase Notification white circle issue
<p>I've a problem with <code>Firebase Notification</code>, If I send notification when app is running on screen the notification show correctly like this:</p> <p><a href="https://i.stack.imgur.com/UM8wY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UM8wY.png" alt="enter image description here"></a></p> <p...
I've a problem with Firebase Notification , If I send notification when app is running on screen the notification show correctly like this: Than if I send notification when app in running on background, the notification appears like this: This is my FirebaseMessagingService class [CODE] Why this happens?
java|android|firebase|firebase-cloud-messaging
7
2016-06-24T07:15:08.790Z
2,016
6
7
4
1,795
2
305
40
4
1
true
false
false
false
false
false
medium
37,648,071
How to Clear Database in Realm in Android
<p>I want to clear whole database when a user press logout button and loads a new data when another user login.I tried many solutions like</p> <pre><code>try { Realm.deleteRealm(realmConfiguration); } catch (Exception ex){ throw ex; } </code></pre> <p>Also</p> <pre><code> try { Rea...
I want to clear whole database when a user press logout button and loads a new data when another user login.I tried many solutions like [CODE] Also [CODE] But neither of the code works. Thanks in advance.
android|realm
24
2016-06-06T00:20:33.637Z
2,016
6
0
0
24,579
2
204
41
2
2
true
false
true
true
true
false
high
37,719,062
How to show twice TimePickerDialog?
<p>I am using <strong>compile 'com.wdullaer:materialdatetimepicker:2.3.0'</strong> library for Open and Close Hour (AM &amp; PM). I would like to show TimePickerDialog again for PM after user chooses AM. And then, I would like to show AM+PM data on TextView. Here is One TimePickerDialog. </p> <pre><code>layout_time.se...
I am using compile 'com.wdullaer:materialdatetimepicker:2.3.0' library for Open and Close Hour (AM & PM). I would like to show TimePickerDialog again for PM after user chooses AM. And then, I would like to show AM+PM data on TextView. Here is One TimePickerDialog. [CODE]
android|timepickerdialog
0
2016-06-09T07:08:19.767Z
2,016
6
7
3
516
2
271
35
2
1
true
false
false
false
false
false
zero
37,868,369
Android 6.0 backward compatibility
<p>Today I was testing one of my application over Android M (6.0). I understood that permission granting in this version is changed and I need to make some changes to make my application compatible with Android 6.0 (<a href="https://developer.android.com/training/permissions/requesting.html" rel="nofollow noreferrer">h...
Today I was testing one of my application over Android M (6.0). I understood that permission granting in this version is changed and I need to make some changes to make my application compatible with Android 6.0 ( here is the details ). As I understood, for example If I want to grant access to write sdcard (Eternal Sto...
android|android-6.0-marshmallow|android-permissions|backwards-compatibility|forward-compatibility
1
2016-06-16T19:59:24.910Z
2,016
6
19
3
2,052
2
946
34
5
0
false
false
false
false
false
false
low
37,851,828
cardview overflow menu in fragment
<p>i have achieved cardview overflow menu in cardviewactivity but dont know how do i use the same in fragment </p> <p>i have tab views and tab fragments, now each fragment is accessing cardview-list view-activity.</p> <p>here's the screen shot where i am trying to achieve: </p> <p><a href="https://i.stack.imgur.com/...
i have achieved cardview overflow menu in cardviewactivity but dont know how do i use the same in fragment i have tab views and tab fragments, now each fragment is accessing cardview-list view-activity. here's the screen shot where i am trying to achieve: Problem: i cant able to get the overflow menu for each cardview ...
android|android-fragments|android-cardview|overflow-menu
1
2016-06-16T06:52:31.420Z
2,016
6
6
3
3,076
2
477
34
4
4
true
false
true
false
false
false
low
38,016,968
Initializing FingerpringManager.Crypto Object, getting Crypto primitive not backed by AndroidKeyStore provider?
<p>I am using Android <code>FingerPrintManager</code> API and creating key pair using KeyPairGenerator, i want to encrypt a password with public key and then decrypt when user is authenticated by entring fingerPrint but as soon i run my project it gets crash and gives</p> <blockquote> <p>Caused by: java.lang.Illegal...
I am using Android FingerPrintManager API and creating key pair using KeyPairGenerator, i want to encrypt a password with public key and then decrypt when user is authenticated by entring fingerPrint but as soon i run my project it gets crash and gives Caused by: java.lang.IllegalArgumentException: Crypto primitive not...
java|android|encryption|android-keystore|android-fingerprint-api
3
2016-06-24T15:27:51.103Z
2,016
6
15
4
3,844
2
665
111
5
3
true
false
true
false
false
false
low
37,699,886
setColorFilter to Button without changing stroke
<p>I have an xml with button having a background drawable as :</p> <pre><code>&lt;shape android:shape="rectangle"&gt; &lt;corners android:bottomRightRadius="20dp" android:topLeftRadius="20dp"/&gt; &lt;stroke android:width="1dp" android:color="@color/black"/&gt; &lt;/shape&gt; <...
I have an xml with button having a background drawable as : [CODE] I want to change only the color of the buttons background programmatically. So i tried this, [CODE] However, i cannot see the stroke at all when I setColorFIlter(). any inputs?
android|android-drawable|android-button
2
2016-06-08T10:26:26.127Z
2,016
6
10
2
261
2
243
48
3
2
true
false
false
false
false
false
low
37,766,355
Google maps key with different google play account
<p>i want to publish an Android application with my google account using (inside the application) a google maps key of another google account. Is it possible?</p>
i want to publish an Android application with my google account using (inside the application) a google maps key of another google account. Is it possible?
android|google-maps|google-play|account
0
2016-06-11T17:02:50.157Z
2,016
6
17
5
261
2
155
50
4
0
false
false
false
false
false
false
zero
37,893,659
ListView click show/hide all check box
<p>I am having a listview and it has one checkbox and two textfields , i would like to change check box visibility properties from listview on click funtion, i am able to change the properties from inside the getView funtion but i want it from listview click. Help me find a solution</p> <pre><code>public class HelpLis...
I am having a listview and it has one checkbox and two textfields , i would like to change check box visibility properties from listview on click funtion, i am able to change the properties from inside the getView funtion but i want it from listview click. Help me find a solution [CODE]
android|listview
1
2016-06-18T05:42:20.503Z
2,016
6
5
5
261
2
287
38
2
1
true
false
false
false
false
false
low
37,950,016
How to add a dropdown to tab in viewpager sliding tabs?
<p>I have 8 tabs in my app and i would like to provide easier access to the last 4 tabs which otherwise have to be scrolled till the end to reach.</p> <p>According to Material design guidelines , we can use dropdown in tabs , by giving an option "more" as the last tab , and if the user selects a dropdown item , that i...
I have 8 tabs in my app and i would like to provide easier access to the last 4 tabs which otherwise have to be scrolled till the end to reach. According to Material design guidelines , we can use dropdown in tabs , by giving an option "more" as the last tab , and if the user selects a dropdown item , that item will ap...
android|android-viewpager|material-design|android-tabs|android-tablayout
0
2016-06-21T16:36:37.523Z
2,016
6
16
1
1,285
2
588
55
5
0
false
false
false
false
false
false
zero
37,673,432
Firebase Analytics user properities
<p>I have problem with Google Firebase</p> <p>I use Firebase Analytics and I want to use user properities for sepatare group users on my app. Now I´m triing</p> <pre><code>FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(this.getApplicationContext()); analytics.setUserProperty("myGroup", "1"); </code></pr...
I have problem with Google Firebase I use Firebase Analytics and I want to use user properities for sepatare group users on my app. Now I´m triing [CODE] and another user [CODE] I don´t see on console Firebase Analytics. How I set user properities correctly? And than where I will see on console Firebase?
android|firebase|firebase-analytics
3
2016-06-07T07:46:41.173Z
2,016
6
7
1
2,309
2
305
35
3
2
true
false
false
false
false
false
low
37,956,789
Can't configure travis to work on android project
<p>I have found several problems with Travis CI and I have been solving them but the last one I can't.</p> <p>I'm getting the common error <code>com.android.ddmlib.InstallException: Failed to establish session</code></p> <p>This is my travis file:</p> <pre><code>language: android before_install: - chmod +x gradlew...
I have found several problems with Travis CI and I have been solving them but the last one I can't. I'm getting the common error com.android.ddmlib.InstallException: Failed to establish session This is my travis file: [CODE] And this is my travis output: https://travis-ci.org/GarceGon/SimpleLock/builds/139367600 [CODE]...
android|build|travis-ci
6
2016-06-22T00:40:44.947Z
2,016
6
0
2
1,542
2
328
49
3
2
true
false
false
false
false
false
medium
37,669,026
How to programmatically send GPS location to an Android Studio 2.0 AVD
<p>I have an x86 API23 AVD (with Google APIs) created with Android Studio 2.1.1 that I need to send GPS coordinates to. I've read extensively on doing this using either "adb emu geo fix" commands from the command line, or via telnet-- after authenticating, and then sending geo fix commands along with the latitude, long...
I have an x86 API23 AVD (with Google APIs) created with Android Studio 2.1.1 that I need to send GPS coordinates to. I've read extensively on doing this using either "adb emu geo fix" commands from the command line, or via telnet-- after authenticating, and then sending geo fix commands along with the latitude, longitu...
android|gps|geolocation|appium|telnet
1
2016-06-07T01:10:04.730Z
2,016
6
1
1
3,078
2
2,711
70
5
5
true
false
true
false
false
false
low