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
60,050,247
How to Fix the "Device is not Certified by Google" Error on Android emulator
<p>I built Android image from AOSP then run it on emulator. I downloaded Google's applications from <a href="https://opengapps.org/" rel="nofollow noreferrer">https://opengapps.org/</a> then installed them onto emulator. But when open GoogleMap application, i encountered error as below image. How can i workaround this ...
I built Android image from AOSP then run it on emulator. I downloaded Google's applications from https://opengapps.org/ then installed them onto emulator. But when open GoogleMap application, i encountered error as below image. How can i workaround this error ? I just wanna run GoogleMap on my emulator for testing purp...
android|android-source
1
2020-02-04T03:40:10.723Z
2,020
2
3
1
1,089
1
324
76
2
0
false
false
false
false
false
false
low
60,050,249
An icon is not showing on action bar?
<p>I am trying to show an icon on action bar. When I add an icon to the action bar the preview of menu_main.xml shows that icon on action bar. Here is the menu_main.xml code</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="htt...
I am trying to show an icon on action bar. When I add an icon to the action bar the preview of menu_main.xml shows that icon on action bar. Here is the menu_main.xml code [CODE] and here is the preview of menu_main.xml menu_main.xml But when I run the app on emulator it does not show the icon on action bar instead it s...
android|android-actionbar|icons
0
2020-02-04T03:40:24.680Z
2,020
2
3
1
50
1
476
37
3
3
true
false
false
false
false
false
zero
60,050,253
Flutter: [Fatal Error] Can't use custom Fonts
<p>I didn't get any error in normal flutter run, but the apk crashes with the following error:</p> <pre><code>E/flutter (18669): [ERROR:flutter/third_party/txt/src/minikin/FontFamily.cpp(184)] Could not get cmap table size! E/flutter (18669): F/flutter (18669): [FATAL:flutter/third_party/txt/src/minikin/FontCollection...
I didn't get any error in normal flutter run, but the apk crashes with the following error: [CODE] I have tried all the solutions I found online: pubspec.yaml have uses-material-design: true Font cannot be corrupt as its downloaded from GoogleFonts I have also tried other fonts all give the same error I have checked my...
android|flutter|fonts|flutter-dependencies
0
2020-02-04T03:40:45.767Z
2,020
2
3
1
1,294
3
538
45
4
3
true
false
false
false
false
false
zero
60,050,359
Firebase android distribution won't allow applicationIdSuffix
<p>When running <code>./gradlew appDistributionUploadDevDebug</code> I get an error saying it can't find the app.</p> <p>The culprit is having <code>applicationIdSuffix = ".dev"</code> in my dev flavor. Removing it allows the apk to be uploaded, but then the artifact wouldn't be built properly. For the record I plan ...
When running ./gradlew appDistributionUploadDevDebug I get an error saying it can't find the app. The culprit is having applicationIdSuffix = ".dev" in my dev flavor. Removing it allows the apk to be uploaded, but then the artifact wouldn't be built properly. For the record I plan using only the dev flavor for internal...
android|firebase|continuous-integration
3
2020-02-04T03:55:18.543Z
2,020
2
3
1
1,066
2
691
61
3
1
true
false
false
false
false
false
low
60,050,401
Android PageKeyedDataSource (paging library) callback error handling (there is TODO exception in src)
<p>I want to pass an error exception to my paging adapter via callback.onError(or callback.onRetryableError) in <em>loadInitial</em> or <em>loadafter</em> but always receive crashes. After some debugging I find this in library sources: <a href="https://i.stack.imgur.com/SK9pl.png" rel="noreferrer"><img src="https://i....
I want to pass an error exception to my paging adapter via callback.onError(or callback.onRetryableError) in loadInitial or loadafter but always receive crashes. After some debugging I find this in library sources: It's actually what I'm receiving in my crash trace. Just "todo". Dependency version: 'androidx.paging:pag...
android|android-architecture-components|android-paging|android-paging-library
6
2020-02-04T04:02:00.800Z
2,020
2
4
1
633
0
518
101
4
0
false
true
false
false
false
false
medium
60,050,414
I need a solution to setting up a sign-up button, check Line 7, the signupactivity shows red on Android studio
<p>class Main3Activity : AppCompatActivity() {</p> <pre><code>private lateinit var auth: FirebaseAuth override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main3) auth = FirebaseAuth.getInstance() btn5_sign_up.setOnClickListener() { ...
class Main3Activity : AppCompatActivity() { [CODE] Basically, line 7 is not making the code go through with the red on SignUpActivity
android|kotlin
-1
2020-02-04T04:04:36.677Z
2,020
2
4
1
42
1
133
110
2
1
true
false
false
false
false
true
negative
60,050,463
Why the NoSuchFieldException happened when set textcolor for NumberPicker in Android?
<p>When I set the text color for NumberPicker.</p> <pre><code>fun updateTextAttributes() { val typeface = Typeface.create(Typeface.DEFAULT, textStyle) try { val wheelPaint = wheelField.get(this) as Paint wheelPaint.textSize = textSize.toFloat() wheelPaint.color = Co...
When I set the text color for NumberPicker. [CODE] It show the [CODE] Did I missing something ? Thanks in advance.
android
0
2020-02-04T04:11:25.363Z
2,020
2
4
1
152
1
114
85
1
2
true
false
false
false
false
false
zero
60,050,475
How do I achieve the following xml layout?
<p><strong>Layout made by me</strong></p> <p><a href="https://i.stack.imgur.com/7nUrj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7nUrj.png" alt="enter image description here"></a></p> <p><strong>Layout I want to achieve</strong></p> <p><a href="https://i.stack.imgur.com/P5YqT.png" rel="nofoll...
Layout made by me Layout I want to achieve orange_hollow_fill_round_corner.xml (Custom Drawable) [CODE] I want to make custom drawable like shown below so that the it does not cut Earned Badges Text view. Please ignore differences in corner and colors of my layout and layout that I want to achieve .
android-layout|android-xml|android-custom-drawable
0
2020-02-04T04:12:59.767Z
2,020
2
4
1
53
2
300
42
3
1
true
false
false
false
false
false
zero
60,050,486
Fetch Country code and mobile number from contact
<p>I'm trying to get phone number from contact and if it has country code, separate it from mobile number. We've two fields CountryCode and MobileNumber. There are 4 different scenarios i like to handle</p> <ul> <li>(+CountryCode)(MobileNumber) : I like to get both </li> <li>(CountryCode)(MobileNumber) : I like to g...
I'm trying to get phone number from contact and if it has country code, separate it from mobile number. We've two fields CountryCode and MobileNumber. There are 4 different scenarios i like to handle (+CountryCode)(MobileNumber) : I like to get both (CountryCode)(MobileNumber) : I like to get both (0)(MobileNumber) : I...
android|libphonenumber
1
2020-02-04T04:14:20.537Z
2,020
2
4
1
64
0
743
49
2
1
true
true
false
false
false
false
low
60,050,493
Upgrading minsdk version to 16 crashing the android app
<p>I am trying to use Firebase databasereference and it is available in database upgraded version 19.2.0 and so i have to upgrade my minsdk version to 16 to make it compatible.</p> <p>Making this change is crashing the app as soon as it it opened. I am not sure what has gone wrong. I am attaching the terminal error me...
I am trying to use Firebase databasereference and it is available in database upgraded version 19.2.0 and so i have to upgrade my minsdk version to 16 to make it compatible. Making this change is crashing the app as soon as it it opened. I am not sure what has gone wrong. I am attaching the terminal error message and c...
java|android|android-studio|firebase-authentication
0
2020-02-04T04:15:02.457Z
2,020
2
4
1
31
0
357
55
4
1
true
true
false
false
false
false
zero
60,050,562
Does X509TrustManager check API requests only one time per Android Application session?
<blockquote> <p>Recently I have implemented a security feature to check my request is connected with the valid host. For that, I'm checking the certs of that host and I used X509TrustManager for that case. So if X509TrustManager found some invalid cert it will throw an exception and according to that, I will show an ...
Recently I have implemented a security feature to check my request is connected with the valid host. For that, I'm checking the certs of that host and I used X509TrustManager for that case. So if X509TrustManager found some invalid cert it will throw an exception and according to that, I will show an alert to the user....
android|android-security|x509trustmanager
1
2020-02-04T04:25:16.583Z
2,020
2
4
1
79
1
646
87
3
1
true
false
false
false
false
false
low
60,050,680
Paging Library recyclerview does not display updated data (DB + Network)
<p>I have a list of persons to show using Paging Library, load the initial data from the local DB, and once it's required more data, I call the API to fetch from the server and save it into the DB. </p> <p>My Fragment:</p> <pre><code>Class PersonListFragment: Fragment(){ override fun onViewCreated(view: View, sav...
I have a list of persons to show using Paging Library, load the initial data from the local DB, and once it's required more data, I call the API to fetch from the server and save it into the DB. My Fragment: [CODE] My ViewModel: [CODE] The list adapter: [CODE] Dao: [CODE] Callback class: [CODE] Until here is all good (...
android|kotlin|android-recyclerview|android-paging-library
0
2020-02-04T04:39:17.097Z
2,020
2
4
1
1,920
1
572
72
4
5
true
false
false
false
false
false
zero
60,050,704
Flutter release apk crashing when opening the app. Debug working fine
<p><a href="https://i.stack.imgur.com/f3d97.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f3d97.png" alt="Log error snapshot"></a></p> <pre class="lang-sh prettyprint-override"><code>Signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------\n Abort message: '[FATAL:flutter/shell/common/shell.cc(...
[CODE]
android|flutter
0
2020-02-04T04:42:16.757Z
2,020
2
4
1
104
1
6
69
2
1
true
false
false
false
false
false
zero
60,050,713
Undefined class name 'MaterialApp' in Flutter. How to solve this issue?
<p>I created a flutter project using </p> <p><code>flutter create first</code></p> <p>after i go the codes using vs code and the error shows up saying </p> <blockquote> <p>undefined class name 'MaterialApp'</p> </blockquote> <p>how to solve this issue?</p>
I created a flutter project using flutter create first after i go the codes using vs code and the error shows up saying undefined class name 'MaterialApp' how to solve this issue?
android|ios|flutter|dart|flutter-layout
2
2020-02-04T04:43:25.753Z
2,020
2
4
1
854
1
179
71
5
0
false
false
false
false
false
false
low
60,050,764
Android Java throws java.net.SocketException: socket failed: EPERM (Operation not permitted)
<p>When I call the REST API request I'm getting the following error message:</p> <pre><code>java.net.SocketException: socket failed: EPERM (Operation not permitted) </code></pre>
When I call the REST API request I'm getting the following error message: [CODE]
java|android|sockets|tcp
-2
2020-02-04T04:49:58.977Z
2,020
2
4
1
325
1
80
92
4
1
true
false
false
false
false
true
negative
60,050,865
androidx getFragmentManager() has been deprecated
<p>Getting deprecation warnings for <code>androidx.fragment.app.Fragment</code>:</p> <blockquote> <p>warning: [deprecation] <code>getFragmentManager()</code> in <code>Fragment</code> has been deprecated.</p> </blockquote> <p>What to do?</p>
Getting deprecation warnings for androidx.fragment.app.Fragment : warning: [deprecation] getFragmentManager() in Fragment has been deprecated. What to do?
android|android-fragments|androidx|fragmentmanager|deprecation-warning
13
2020-02-04T04:59:38.190Z
2,020
2
4
1
8,023
3
154
49
5
0
false
false
true
false
true
false
medium
60,050,938
MPAndroidChart how to plot line chart with multiple years
<p>For plotting my line chart, I am getting data from server which is based on financial year period i.e from April to March. I am plotting month on xAxis and value on yAxis. Now my problem here is I have value for the month of December 2019 and January 2020 but when I plot it on graph, January is shown as the first va...
For plotting my line chart, I am getting data from server which is based on financial year period i.e from April to March. I am plotting month on xAxis and value on yAxis. Now my problem here is I have value for the month of December 2019 and January 2020 but when I plot it on graph, January is shown as the first value...
android|kotlin|mpandroidchart
0
2020-02-04T05:06:14.747Z
2,020
2
5
1
140
0
786
57
3
2
true
true
false
false
false
false
zero
60,050,991
How to use suspend function on Room Db?
<p>I am using Room Db using coroutines in kotlin. This is my Dao interface: </p> <pre><code>@Dao interface CheckListNameDao { @Insert suspend fun insertName(name: CheckListName) @Query("SELECT * FROM CheckListNamesTable") fun getAllNames(): LiveData&lt;List&lt;CheckListName&gt;&gt; } </code></pre> ...
I am using Room Db using coroutines in kotlin. This is my Dao interface: [CODE] getAllNames() method works fine. The problem is with the insertName() method. When I remove the suspend keyword from the insertName() method, it throws this exception: java.lang.IllegalStateException: Cannot access database on the main thre...
android|kotlin|android-room|kotlin-coroutines
7
2020-02-04T05:12:36.457Z
2,020
2
5
1
8,609
5
765
39
4
6
true
false
true
false
false
false
medium
60,051,003
Flutter : screen not scrolling up when keyboard appears in android
<p>I'm trying to make login screen in flutter</p> <p>I'm using below code</p> <pre><code>ModalProgressHUD( dismissible: false, child: Container( color: Colors.white, child: SafeArea( child: Scaffold( body: Container( height: double.infinity...
I'm trying to make login screen in flutter I'm using below code [CODE] the above code is working fine in ios device but in android screen not scrolling up when keyboard appears I have also checked below some links and post but it didn't help to solve my issue https://github.com/flutter/flutter/issues/10826 When i selec...
android|flutter|dart|flutter-layout
2
2020-02-04T05:14:01.753Z
2,020
2
5
1
6,908
2
550
66
4
1
true
false
true
false
false
false
low
60,051,070
How to parse array data using Volley (TextView)
<pre><code>package com.sp.demoapiheader; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.Button; import android.widget.TextView; import com.android.volley.AuthFailureError; import com.android.volley.Request; import com.android.volley.RequestQu...
[CODE] I would like to parse the data into a textview and display each variable in a string/int format. As can be seen in the code, there's an simple XML file with a button and textview. Do i implement JSONArray or JSONObject at some point into the code? Currently, the code only allows a response in the run tab.
java|android|parsing|android-volley
0
2020-02-04T05:22:10.800Z
2,020
2
5
1
60
1
313
47
4
1
true
false
false
false
false
false
zero
60,051,102
type parameter T has incompatible upper bounds view and fragment
<p><a href="https://i.stack.imgur.com/bFeJh.png" rel="nofollow noreferrer">enter image description here</a></p> <p>type parameter T has incompatible upper bounds view and fragment</p>
enter image description here type parameter T has incompatible upper bounds view and fragment
java|android
-2
2020-02-04T05:25:59.033Z
2,020
2
5
1
98
1
93
64
2
0
false
false
false
false
false
true
negative
60,051,148
Create words from random characters using the sqlite database
<p>Let's just say I have the variable <code>String SRand = "KELRSFGLIU"</code>, what I want to do is create a word from the <code>SRand</code> variable and search for that word in the database. Or looking for data in a database based on the <code>SRand</code> variable, the words that need to be found do not have to be ...
Let's just say I have the variable String SRand = "KELRSFGLIU" , what I want to do is create a word from the SRand variable and search for that word in the database. Or looking for data in a database based on the SRand variable, the words that need to be found do not have to be 10 characters but can be 3, 4 - 10 charac...
android|sqlite
0
2020-02-04T05:29:37.590Z
2,020
2
5
1
116
1
428
61
2
1
true
false
false
false
false
false
zero
60,051,155
How to make an API request in broadcast receiver?
<p><em>Request from server to android application as a notification. Read response by application.</em></p>
Request from server to android application as a notification. Read response by application.
android|broadcastreceiver|android-volley
0
2020-02-04T05:30:14.770Z
2,020
2
5
1
760
0
91
49
3
0
false
true
false
false
false
false
zero
60,051,263
Multiple font types in navigation drawer - Navigation component
<p><a href="https://i.stack.imgur.com/wA5k3.png" rel="nofollow noreferrer">Navigation drawer items with different fonts</a></p> <p>App theme's font not applying to some items in navigation drawer</p>
Navigation drawer items with different fonts App theme's font not applying to some items in navigation drawer
android|navigation-drawer
0
2020-02-04T05:42:37.683Z
2,020
2
5
1
16
0
109
63
2
0
false
true
false
false
false
false
zero
60,051,275
How can I display the details in another activity when Cardview is clicked
<p>I am having a problem, how can I display the value of the <code>cardView</code> based on its position? I feel like I am kinda missing something.</p> <p>here is my code</p> <pre><code> @Override public void onBindViewHolder(AnnouncementViewHolder holder, int position) { AnnouncementModel announcement...
I am having a problem, how can I display the value of the cardView based on its position? I feel like I am kinda missing something. here is my code [CODE] I want to display the textViewDate and textViewTitle to my other activity when click. Here is my detailActvity [CODE] I feel like I am already close to my answer but...
java|android
1
2020-02-04T05:44:17.287Z
2,020
2
5
1
89
3
376
74
2
2
true
false
false
false
false
false
low
60,051,279
Unable to open the pdf in Android
<p>I am new in android and working on one android project in which I have to display a chosen pdf from the device either from internal storage(Priority) or from external Storage. I am enclosing the used code below.</p> <pre><code>private void openLocalPDF(File pdffile) { File file = new File(Environment.getExt...
I am new in android and working on one android project in which I have to display a chosen pdf from the device either from internal storage(Priority) or from external Storage. I am enclosing the used code below. [CODE]
android
-2
2020-02-04T05:44:31.743Z
2,020
2
5
1
207
2
218
33
1
1
true
false
false
false
false
true
negative
60,051,376
Calling webservice results in error "Object reference not set to an instance of an object"
<p>I call a specific <code>webservice</code> method from my android phone app and it always results in the error:</p> <blockquote> <p>Object reference not set to an instance of an object</p> </blockquote> <p>I call MANY different methods in this service with no problem, this is the only one that gives me an issue a...
I call a specific webservice method from my android phone app and it always results in the error: Object reference not set to an instance of an object I call MANY different methods in this service with no problem, this is the only one that gives me an issue and I cannot track it down. The webservice is written in VB.NE...
c#|android|vb.net|xamarin
-1
2020-02-04T05:55:24.310Z
2,020
2
5
1
365
2
2,685
90
4
1
true
false
false
false
false
true
negative
60,051,437
For a Service class I see android.content.ActivityNotFoundException: Unable to find explicit activity class
<p>I am working with Android and facing the following error when I create a service and run it from the main activity thread. I did go through all the threads related to this error but the error they see mostly for the Activity task. Below are the details for error and code</p> <pre><code>android.content.ActivityNotFo...
I am working with Android and facing the following error when I create a service and run it from the main activity thread. I did go through all the threads related to this error but the error they see mostly for the Activity task. Below are the details for error and code [CODE] I did check my AndriodManifest.xml and I ...
java|android|activitynotfoundexception
0
2020-02-04T06:00:29.340Z
2,020
2
6
1
92
2
633
107
3
4
true
false
false
false
false
false
zero
60,051,485
Multiple and frequent playback notifications from Exoplayer PlayerNotificationManager for live-stream video played using exoplayer2
<p>I am using Explayer <strong>PlayerNotificationManger</strong> to show playback notifications for live-stream video played using <strong>Exoplayer2</strong>. </p> <p>I have followed <a href="https://medium.com/google-exoplayer/playback-notifications-with-exoplayer-a2f1a18cf93b" rel="nofollow noreferrer">this medium ...
I am using Explayer PlayerNotificationManger to show playback notifications for live-stream video played using Exoplayer2 . I have followed this medium blog and implemented the same. However, when the code runs on the device, it shows a notification every 3-4 second for a live-stream video. Please suggest something tha...
android|android-notifications|exoplayer|exoplayer2.x
4
2020-02-04T06:05:39.587Z
2,020
2
6
1
276
1
421
131
4
0
false
false
false
false
false
false
low
60,051,576
Bazaar(Iranian Android Market) in Update Checking error
<p>For Update Checking in my app use Bazaar(Iranian Android Market) API.</p> <p>All things are right but when app is start i got this error in log :</p> <p><a href="https://i.stack.imgur.com/YCKX4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YCKX4.png" alt="enter image description here"></a></p>...
For Update Checking in my app use Bazaar(Iranian Android Market) API. All things are right but when app is start i got this error in log : any thing is here https://developers.cafebazaar.ir/fa/docs/bazaar-services-update-check/ but dont work!!
android
-2
2020-02-04T06:13:42.240Z
2,020
2
6
1
68
1
243
55
1
0
false
false
false
false
false
true
negative
60,051,644
How to initialize Nfc Tag if tag is empty and make it password protected in Xamarin Android?
<p>I am using code for charge data in nfc tag and it's working if tag is already initialized and password protected. But I am facing problem to initialize an empty tag and I want to set Password to tag. How it can be done?</p> <p>My code for authenticated tag is : </p> <pre><code>commandResponse = mifareUltralight.Tr...
I am using code for charge data in nfc tag and it's working if tag is already initialized and password protected. But I am facing problem to initialize an empty tag and I want to set Password to tag. How it can be done? My code for authenticated tag is : [CODE] Authenticate method is : [CODE] Where Password is : [CODE]...
xamarin|xamarin.android|nfc
0
2020-02-04T06:18:40.657Z
2,020
2
6
1
440
1
401
92
3
3
true
false
false
false
false
false
zero
60,051,683
Android Studio Kotlin Complier Error node.sym must not be null
<p>Suddenly my android studio gradle build fails with unknown error:</p> <pre><code>java.lang.IllegalStateException: failed to analyze: com.sun.tools.javac.util.ClientCodeException: java.lang.IllegalStateException: node.sym must not be null </code></pre> <p>I tried everything like reverting my project back to previous ...
Suddenly my android studio gradle build fails with unknown error: [CODE] I tried everything like reverting my project back to previous version and invaliding cache and restart but still the error persists i don't really know what is happening: Here is my gradle: [CODE] Build gradle file: [CODE]
android|android-studio|kotlin|gradle|build.gradle
14
2020-02-04T06:22:08.493Z
2,020
2
6
1
3,223
3
295
62
5
3
true
false
true
false
true
false
medium
60,051,687
How to fetch value from sqlite using ID?
<p>I am successfully able to add data to sqlite database, now when i click on a listview item, i want to get data from sqlite table ID which is same as listview position</p> <p>: <a href="https://i.stack.imgur.com/0hQnH.png" rel="nofollow noreferrer">My Database looks like this</a></p>
I am successfully able to add data to sqlite database, now when i click on a listview item, i want to get data from sqlite table ID which is same as listview position : My Database looks like this
android|android-listview|android-sqlite
0
2020-02-04T06:22:19.240Z
2,020
2
6
1
30
1
196
40
3
0
false
false
false
false
false
false
zero
60,051,710
Trying to modifiy back button for an activity
<p>I'm trying to modify the back button navigation for a specific activity but I'm having an error </p> <blockquote> <p>UNCAUGHT EXCEPTION CURRENT ACTIVITY : BookmarksActivity java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Bundle.unparcel()' on a null object reference ...
I'm trying to modify the back button navigation for a specific activity but I'm having an error UNCAUGHT EXCEPTION CURRENT ACTIVITY : BookmarksActivity java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Bundle.unparcel()' on a null object reference at android.os.Bundle.putAll(Bundle.java:...
java|android|android-fragments
0
2020-02-04T06:24:43.087Z
2,020
2
6
1
47
1
1,094
45
3
4
true
false
false
false
false
false
zero
60,051,726
String to Secret key conversion/Vice Versa
<p>I am generating a Secret Key like below : <code>key = KeyGenerator.getInstance(ALGO_SECRET_KEY_GENERATOR).generateKey();</code></p> <p>And I want to send this key to another activity. If I use intent I think then this need to be converted into a String from Secret key. Can anyone tell me about Secret key conversion...
I am generating a Secret Key like below : key = KeyGenerator.getInstance(ALGO_SECRET_KEY_GENERATOR).generateKey(); And I want to send this key to another activity. If I use intent I think then this need to be converted into a String from Secret key. Can anyone tell me about Secret key conversion/Vice Versa...
java|android
0
2020-02-04T06:26:23.360Z
2,020
2
6
1
263
1
310
42
2
0
false
false
false
false
false
false
zero
60,051,765
How to implement live map location in android in MVVM pattern?
<p>I have this Activity which contains the map fragment and all the map channel methods</p> <pre><code>class Maps : AppCompatActivity(), OnMapReadyCallback, SharedPreferences.OnSharedPreferenceChangeListener { // The BroadcastReceiver used to listen from broadcasts from the service. private var myReceiver:...
I have this Activity which contains the map fragment and all the map channel methods [CODE] This is the viewmodel I'm using for the activity: [CODE] I have a location update service in my service package. I am pretty confused about how to structure everything to maintain the MVVM pattern. Is it fine to the codes in thi...
android|google-maps|kotlin|android-mapview|android-mvvm
0
2020-02-04T06:29:44.763Z
2,020
2
6
1
2,230
0
417
62
5
2
true
true
false
false
false
false
zero
60,051,818
Android project could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50
<p><code>./gradlew build --info --debug --scan</code></p> <blockquote> <p>Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50.</p> </blockquote> <p>Below is the full log.</p> <pre><code>FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'...
./gradlew build --info --debug --scan Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50. Below is the full log. [CODE] Noted: I already add the AliYun maven repo to the project. [CODE] In this way, I could download most of the dependency in jcenter and other maven repo which need to bypass the GFW. I a...
android|kotlin|gradle-plugin
0
2020-02-04T06:33:52.453Z
2,020
2
6
1
1,030
0
688
82
3
3
true
true
false
false
false
false
zero
60,051,903
The specified child already has a parent. You must call removeView() on the child's parent first. Androidx
<p>i created a dialog box and i press it for the first time it shows my dialog box correctly, but when i close it with phone's back button and press it again, the dialog does not appear and the app crash. Why is my code not working? I got the error mentioned in the title.</p> <p>There is my code:</p> <pre><code> fi...
i created a dialog box and i press it for the first time it shows my dialog box correctly, but when i close it with phone's back button and press it again, the dialog does not appear and the app crash. Why is my code not working? I got the error mentioned in the title. There is my code: [CODE] And there i show it: [COD...
java|android|androidx
0
2020-02-04T06:42:09.003Z
2,020
2
6
1
56
0
322
106
3
2
true
true
false
false
false
false
zero
60,051,915
Android Gradle Read timed out
<p>In one of my android projects when i build the project, I sometimes get the following Error!! :</p> <pre><code>Read timed out org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':app:preDebugBuild'. Caused by: org.gradle.api.internal.artifacts.ivyservice.Defau...
In one of my android projects when i build the project, I sometimes get the following Error!! : [CODE] I don't know why but it built ok most of the times. How can i fix this error?
android|gradle
2
2020-02-04T06:43:23.363Z
2,020
2
6
1
452
1
180
29
2
1
true
false
false
false
false
false
low
60,051,959
Deep linking to UPI apps like Google Pay from webapp
<p>I am trying to deep-link to specific UPI app such as Google pay installed on the user's phone. For example, if the user taps on the Google pay icon on the web app, he should be directly redirected to the Google pay app installed on his phone, similarly, if he taps on other UPI payment app he should be redirected to ...
I am trying to deep-link to specific UPI app such as Google pay installed on the user's phone. For example, if the user taps on the Google pay icon on the web app, he should be directly redirected to the Google pay app installed on his phone, similarly, if he taps on other UPI payment app he should be redirected to tha...
javascript|android|reactjs|deep-linking|upi
3
2020-02-04T06:46:53.400Z
2,020
2
6
1
1,180
1
416
52
5
0
false
false
false
false
false
false
low
60,051,979
What if there is conflict of hashing of keys in ArrayMap or SparseArray?
<p>I have read many blogs for array map and sparse array where every where I am getting that </p> <blockquote> <p>ArrayMap contains two small array instead of one in a HashMap. The first array (Hash-Array) contains the specified hash keys in sorted order. The second array (Key Value Array) stores the keys and va...
I have read many blogs for array map and sparse array where every where I am getting that ArrayMap contains two small array instead of one in a HashMap. The first array (Hash-Array) contains the specified hash keys in sorted order. The second array (Key Value Array) stores the keys and values of the objects according t...
java|android|hashmap|sparse-matrix|array-map
3
2020-02-04T06:48:36.803Z
2,020
2
6
1
247
1
733
72
5
0
false
false
false
false
false
false
low
60,052,061
Event from event.nativeEvent.data logs as setImmediate$0.4162155499933975$1
<p>I am trying to pass token and other user details from React Web application to React Native application with Webview (react-native).</p> <p>When I do </p> <pre><code>window.postMessage(JSON.stringify(reactNativeObj), '*'); </code></pre> <p>and log the event in React native application with </p> <pre><code>consol...
I am trying to pass token and other user details from React Web application to React Native application with Webview (react-native). When I do [CODE] and log the event in React native application with [CODE] It is printing the log as [CODE] It should print my object instead. I have tried almost everything and re-read t...
android|react-native
0
2020-02-04T06:55:25.697Z
2,020
2
6
1
1,220
1
457
75
2
3
true
false
false
false
false
false
zero
60,052,136
Adding drawableEnd to a SwitchCompat in Android
<p>I am working on an Android app in which I want to have a <code>SwitchCompat</code> with a <code>drawable</code> shown between the switch text and the switch toggle view as shown below.</p> <p><a href="https://i.stack.imgur.com/mFrfr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mFrfr.png" alt="...
I am working on an Android app in which I want to have a SwitchCompat with a drawable shown between the switch text and the switch toggle view as shown below. For that, I thought android:drawableEnd would work fine, but contrary to my expectations, it places the drawable to the end of the switch toggle as shown below. ...
android|xml|android-layout|android-switch|switchcompat
0
2020-02-04T07:01:02.370Z
2,020
2
7
1
118
0
479
47
5
0
false
true
false
false
false
false
zero
60,052,266
How to add an ar object on a small image in a real world
<p>I am working on a application where I have to place an ar object on a icon whose size is not big in a real world.I followed augmented Image codelabs example for an image which is working but when I added an icon in the example and tried to locate it in the real world I found that onUpdateFrame was not getting called...
I am working on a application where I have to place an ar object on a icon whose size is not big in a real world.I followed augmented Image codelabs example for an image which is working but when I added an icon in the example and tried to locate it in the real world I found that onUpdateFrame was not getting called.Is...
android|arcore|sceneform
0
2020-02-04T07:09:57.160Z
2,020
2
7
1
152
1
358
56
3
0
false
false
false
false
false
false
zero
60,052,319
ImageView shows on Emulator but NOT on device. Image on device is invisible
<p><strong>My problem</strong><br> I have some dynamically created imageViews in which I put a drawable (xml vector, SVG). Everything seems to be OK on the android emulator but when I load the app on my phone there is no image visible. I know the image is there because if I increment its size, the views on the right at...
My problem I have some dynamically created imageViews in which I put a drawable (xml vector, SVG). Everything seems to be OK on the android emulator but when I load the app on my phone there is no image visible. I know the image is there because if I increment its size, the views on the right at on the left move to the...
java|android|xml|android-studio
0
2020-02-04T07:14:02.257Z
2,020
2
7
1
221
0
1,051
75
4
1
true
true
false
false
false
false
zero
60,052,356
flutter how to support multiple screen sizes analog to android sdp
<p>I know that in android to support multiple screen size we have <strong>sdp</strong>.</p> <p>Whats is equivalent in flutter? what is best approach?</p>
I know that in android to support multiple screen size we have sdp . Whats is equivalent in flutter? what is best approach?
android|flutter|sdp
0
2020-02-04T07:16:56.250Z
2,020
2
7
1
577
1
123
66
3
0
false
false
false
false
false
false
zero
60,052,444
How to send data by click back button?
<p>I'm using two activities, MainActivity &amp; SubActivity.</p> <blockquote> <p>MainActivity.class</p> </blockquote> <pre><code>public class MainActivity extends AppCompatActivity { Button button; @Override protected void onCreate() { ... button.setOnClickListener(new View.OnClickListe...
I'm using two activities, MainActivity & SubActivity. MainActivity.class [CODE] SubActivity [CODE] In this case, if I change the text in EditText in SubActivity, I want to send changed text data to MainActivity when back button pressed in SubActivity(It means SubActivity onDestroy() ). I don't want to make the second M...
android|android-intent|onbackpressed
-1
2020-02-04T07:24:16.503Z
2,020
2
7
1
535
4
449
38
3
3
true
false
false
false
false
true
negative
60,052,458
ADB Amulator Running SDK 29 Remount
<p><strong>Hi friends,</strong> Recently I've created a new AVD instance via Android Studio that runs SDK 29 (Android 10). Before version 29 I could:</p> <ol> <li>Start the AVD from the command line.</li> <li>Switch to root.</li> <li>Remount</li> <li>Copy an alternative hosts file to AVD's etc/hosts</li> </ol> <p>For...
Hi friends, Recently I've created a new AVD instance via Android Studio that runs SDK 29 (Android 10). Before version 29 I could: Start the AVD from the command line. Switch to root. Remount Copy an alternative hosts file to AVD's etc/hosts For some reason I can't do that in with SDK 29 and after I run "./adb remount" ...
android|android-studio|android-emulator|mobile-development
1
2020-02-04T07:24:50.183Z
2,020
2
7
1
264
0
415
35
4
1
true
true
false
false
false
false
low
60,052,556
Notification not triggered after 3 days in work manager android
<p>I was trying to schedule notification after 3 days via <code>WorkManager</code> but it does not get triggered. I have tried the following.</p> <p>ArticleNotificationWorker</p> <pre><code>public class ArticleNotificationWorker extends Worker { private static final String WORK_RESULT = "work_result"; Contex...
I was trying to schedule notification after 3 days via WorkManager but it does not get triggered. I have tried the following. ArticleNotificationWorker [CODE] WorkManager request goes as follows [CODE] I would really appreciate if you could help me with the issue.
android|notifications|android-workmanager
0
2020-02-04T07:30:50.820Z
2,020
2
7
1
204
1
264
63
3
2
true
false
false
false
false
false
zero
60,052,665
How to resolve identifier expected error in Resoure file
<p>Getting error like below</p> <pre><code>out/target/common/obj/APPS/MtkSystemUI_intermediates/srcjars/android/arch/core/R.java:13911: error: &lt;identifier&gt; expected public static final int 1=0x7f0d0000; ^ out/target/common/obj/APPS/MtkSystemUI_intermediates/srcjars/android/arch/lif...
Getting error like below [CODE] Can any one tell me what does this error mean. I am making changes in AOSP code itself for Quick Settings. Seek any help on this.
android|android-source|r.java-file|custom-rom
1
2020-02-04T07:39:43.443Z
2,020
2
7
1
266
1
161
56
4
1
true
false
false
false
false
false
low
60,052,680
Fetching images from API and stroring into room databse
<p>I'm very new to android development. I'm receiving images and data from Flicker API using retrofit and showing it into my recyclerview. When I'm online images are loaded in imageview using URLs provided by API but now I want to store images and data into room database to work recyclerview offline (like Instagram). W...
I'm very new to android development. I'm receiving images and data from Flicker API using retrofit and showing it into my recyclerview. When I'm online images are loaded in imageview using URLs provided by API but now I want to store images and data into room database to work recyclerview offline (like Instagram). When...
android|api|retrofit|android-room
0
2020-02-04T07:41:09.413Z
2,020
2
7
1
76
1
418
55
4
0
false
false
false
false
false
false
zero
60,052,932
object value is showing using JSON parsing for object and string with same name
<p>Hi in the below not going inside of the JSON object block and does not returning anything .in the below response if the value is a JSON object it should return the value .if is not object it should go to else block and returning the string.</p> <p>can anyone help me to resolve the issue?</p> <p>response:</p> <pre...
Hi in the below not going inside of the JSON object block and does not returning anything .in the below response if the value is a JSON object it should return the value .if is not object it should go to else block and returning the string. can anyone help me to resolve the issue? response: [CODE] accounts.java: [CODE]...
android|json
0
2020-02-04T07:59:43.053Z
2,020
2
7
1
35
1
349
79
2
2
true
false
false
false
false
false
zero
60,052,976
Getting error while pass data fragment to activity
<p>Here I am getting value in String but when I set value in text view getting an error: null point exception.</p> <pre><code> @Override public void onDataPassed(String goodsName) { if (goodsName!=null){ Log.d("@@goodsName",goodsName); tvgoodType.setText(goodsName); } } </code></pre> <p>an...
Here I am getting value in String but when I set value in text view getting an error: null point exception. [CODE] and I have Implemented like this GoodsType.OnDataPassedListener and from the activity I am passing like this [CODE] and I have initialized text view also
android|android-activity|interface|fragment
0
2020-02-04T08:03:43.507Z
2,020
2
8
1
47
0
268
50
4
2
true
true
false
false
false
false
zero
60,053,016
Nativescript Angular app crashes when receiving the second push notification
<p>I have developed an app in Nativescript Angular for Android and IOS. When I send push notifications to the Android app, and the app is in background, the first notification can be opened without any issue. However if I try to open the second notification, the app crashes with the following error</p> <pre><code>Syst...
I have developed an app in Nativescript Angular for Android and IOS. When I send push notifications to the Android app, and the app is in background, the first notification can be opened without any issue. However if I try to open the second notification, the app crashes with the following error [CODE] It looks the app...
android|firebase|push-notification|nativescript|nativescript-angular
1
2020-02-04T08:06:07.600Z
2,020
2
8
1
730
2
518
76
5
2
true
false
false
false
false
false
low
60,053,036
Redirect Uri not opening the Android App directly in OAuth2 - Deep link is already configured
<p>Requirement: To open a URL and get the response back to the application and redirect the user back to my app since there are other API calls that follow.</p> <pre><code>&lt;intent-filter android:autoVerify="true" android:order="1"&gt; &lt;action android:name="android.intent.acti...
Requirement: To open a URL and get the response back to the application and redirect the user back to my app since there are other API calls that follow. [CODE] Code to open the first api call in the browser: [CODE] Handling the Intent part here [CODE] What happens : When I run this code everything works but when the f...
android|deep-linking
1
2020-02-04T08:07:45.487Z
2,020
2
8
1
1,012
1
849
93
2
3
true
false
false
false
false
false
low
60,053,099
Adding buttons in ARCore Sceneform for the rotation and zooming?
<p>I'm trying to add a 3D model in my android app, this app works fine(places a 3D model on the screen tap, rotate it with the finger gestures and zoom it with pinching). i am trying to make this finger zooming and rotation with buttons. </p>
I'm trying to add a 3D model in my android app, this app works fine(places a 3D model on the screen tap, rotate it with the finger gestures and zoom it with pinching). i am trying to make this finger zooming and rotation with buttons.
android|3d|arcore|sceneform
0
2020-02-04T08:12:01.243Z
2,020
2
8
1
257
1
234
64
4
0
false
false
false
false
false
false
zero
60,053,221
Could not connect to device: NullPointerException connecting from android to Zebra printer via USB?
<p>am trying to connect to a Zebra Printer, <strong>model ZDesigner GK420t</strong>, from an Android Application via USB using the <code>new UsbConnection()</code>, where the parameters assigned to <code>USBConnection()</code> constructor are as follows:</p> <pre><code> UsbManager manager = (UsbManager) mCo...
am trying to connect to a Zebra Printer, model ZDesigner GK420t , from an Android Application via USB using the new UsbConnection() , where the parameters assigned to USBConnection() constructor are as follows: [CODE] However, the connection.Open() is causing the following Exception: [CODE] What I tried so far to make ...
android|usb|zebra-printers|usbmanager
0
2020-02-04T08:21:53.203Z
2,020
2
8
1
167
0
1,174
99
4
4
true
true
false
false
false
false
zero
60,053,298
didEnterRegion event fired when out of beacon area
<p>When you are outside the area of ​​the beacon, you sometimes enter didEnterRegion.</p> <p>Sometimes not entering didEnterRegion when in beacon area. This lasts a long time.</p> <p>The terminal is Fujitsu arrows M03. Android ™ 6.0</p> <p>You can get beacon information with didRangeBeaconsInRegion when you are in d...
When you are outside the area of ​​the beacon, you sometimes enter didEnterRegion. Sometimes not entering didEnterRegion when in beacon area. This lasts a long time. The terminal is Fujitsu arrows M03. Android ™ 6.0 You can get beacon information with didRangeBeaconsInRegion when you are in didEnterRegion. The activity...
ibeacon-android
0
2020-02-04T08:27:37.697Z
2,020
2
8
1
80
2
952
50
1
3
true
false
false
false
false
false
zero
60,053,366
Android Application Error on background task only in Release Mode
<p>My App was running fine before i implemented mail sending feature. Still now in Debug works fine but when in Release it gives error. The task is to simply take info from controls and save them in MSSQL database. </p> <p><strong><em>Background Process Calls:</em></strong></p> <pre><code>new CheckRegister(getActivit...
My App was running fine before i implemented mail sending feature. Still now in Debug works fine but when in Release it gives error. The task is to simply take info from controls and save them in MSSQL database. Background Process Calls: [CODE] Background Process Code: [CODE] Error in Release Mode: [CODE] Dependencies:...
java|android|android-studio
0
2020-02-04T08:31:52.043Z
2,020
2
8
1
34
1
482
65
3
4
true
false
false
false
false
false
zero
60,053,394
recyclerview data changed on scrolling (Not Duplicate) and dynamic textview got doubled on scrolling
<p>My recyclerview data changed while I scrolling down/up. when I scroll the layout it appears every time with new values I've added both methods and as well and false recyclable too. But, didn't work out.</p> <p>Here's is how my adapter looks like.</p> <pre><code>public class DetailListAdapter extends RecyclerView.A...
My recyclerview data changed while I scrolling down/up. when I scroll the layout it appears every time with new values I've added both methods and as well and false recyclable too. But, didn't work out. Here's is how my adapter looks like. [CODE]
android|android-recyclerview|vertical-scrolling
0
2020-02-04T08:33:38.960Z
2,020
2
8
1
664
3
246
100
3
1
true
false
false
false
false
false
zero
60,053,424
Android piechart with icons between bars
<p>I want to create a pie chart with images in between the legend bars. I am adding the screenshot below for better understanding, i tried using one canvas and then created one arc and tried to add images to it, but it was not working. For now i am using below pie chart library to show the bars with center text. Any su...
I want to create a pie chart with images in between the legend bars. I am adding the screenshot below for better understanding, i tried using one canvas and then created one arc and tried to add images to it, but it was not working. For now i am using below pie chart library to show the bars with center text. Any sugge...
java|android|kotlin|mpandroidchart
1
2020-02-04T08:35:20.317Z
2,020
2
8
1
767
1
443
40
4
0
false
false
false
false
false
false
low
60,053,487
Format remaining time untill date
<p>I have a date in the future and have to format the remaining time until this day like so.</p> <p>4 days</p> <p>1 month, 4 days</p> <p>1 year, 1 month</p> <p>I have looked at the DateUtils documentation but haven't seen this exact format.</p> <p>I'm also fine using an external library like threetenabp.</p> <p>I...
I have a date in the future and have to format the remaining time until this day like so. 4 days 1 month, 4 days 1 year, 1 month I have looked at the DateUtils documentation but haven't seen this exact format. I'm also fine using an external library like threetenabp. Is there a library that can handle both the time cal...
android|date-format
0
2020-02-04T08:38:55.370Z
2,020
2
8
1
352
2
365
33
2
0
false
false
false
false
false
false
zero
60,053,714
By clicking android widget invoke some functions that are present in MainActivity
<p>I want to know how to link widget and activity in android so that by clicking the widget only call some functios to do work but <strong>Not launch the activity</strong> something like when we click bluetooth in notification bar it just open bluetooth or close bluetooth without entering to that bluetooth app...... Th...
I want to know how to link widget and activity in android so that by clicking the widget only call some functios to do work but Not launch the activity something like when we click bluetooth in notification bar it just open bluetooth or close bluetooth without entering to that bluetooth app...... Thanks in advance :) U...
android|android-activity|widget
0
2020-02-04T08:55:28.627Z
2,020
2
8
1
68
1
538
81
3
2
true
false
false
false
false
false
zero
60,053,731
how to convert build.gradle.kts to old build.gradle
<p>I want to convert this file in old build.gradle file, I am doing but there are alot of errors. have searched too many google links but nothing happened. I want to convert this file in old build.gradle file, I am doing but there are alot of errors. have searched too many google links but nothing happened.</p> <pre><...
I want to convert this file in old build.gradle file, I am doing but there are alot of errors. have searched too many google links but nothing happened. I want to convert this file in old build.gradle file, I am doing but there are alot of errors. have searched too many google links but nothing happened. [CODE]
android|kotlin|build.gradle|gradle-kotlin-dsl
7
2020-02-04T08:56:28.157Z
2,020
2
8
1
1,684
0
312
51
4
1
true
true
false
false
false
false
medium
60,053,898
How to give each user a free trial period in app purchase in android
<p>I want to publish an Android app with 7 days as trial period. Currently I have developed an app but I need some guidance.</p> <p>I have very little experience and cannot seem to find any useful documentation about implementing a free trial period, so any help would be much appreciated.</p>
I want to publish an Android app with 7 days as trial period. Currently I have developed an app but I need some guidance. I have very little experience and cannot seem to find any useful documentation about implementing a free trial period, so any help would be much appreciated.
android|in-app-billing
0
2020-02-04T09:06:19.060Z
2,020
2
9
1
449
1
279
68
2
0
false
false
false
false
false
false
zero
60,053,902
Flutter loading screen between routes
<p>I have a flutter app that has a homepage and an article page. The homepage displays multiple articles you can click and be shown the article page with that article. When navigated to the article page I use a call in the initState of the article page to load an interstitial. I'm using Named Routing to navigate betwee...
I have a flutter app that has a homepage and an article page. The homepage displays multiple articles you can click and be shown the article page with that article. When navigated to the article page I use a call in the initState of the article page to load an interstitial. I'm using Named Routing to navigate between t...
javascript|android|ios|flutter|dart
1
2020-02-04T09:06:28.277Z
2,020
2
9
1
5,457
1
1,086
37
5
0
false
false
true
false
false
false
low
60,054,005
How to upload base64 json body with progress percent in Retrofit
<p>i'm converting pdf file to base64 before uploading to server ,how can i show progress bar with percentage while uploading json body to server</p> <p>here is my upload interface</p> <pre><code>@POST("promoter/upload_cv") Call&lt;Void&gt; postCv( @Body CvModel cvModel, @Header("client") String clientId, @Header("acc...
i'm converting pdf file to base64 before uploading to server ,how can i show progress bar with percentage while uploading json body to server here is my upload interface [CODE] and the CvModel class [CODE]
android|retrofit2|progressdialog
3
2020-02-04T09:12:12.857Z
2,020
2
9
1
379
0
205
64
3
2
true
true
false
false
false
false
low
60,054,038
In Android Studio, how to *undo*, accidentally reverted local changes?
<p>Accidentally pressed revert on my local changes instead of commit, is there any way that I can bring back may changes? something like undo action for reverted local changes is what I am after? </p> <p>Luckily I had small change and easily redone them but it worth to know if there is a way to do so in case for futur...
Accidentally pressed revert on my local changes instead of commit, is there any way that I can bring back may changes? something like undo action for reverted local changes is what I am after? Luckily I had small change and easily redone them but it worth to know if there is a way to do so in case for future need. Than...
android-studio
2
2020-02-04T09:13:41.863Z
2,020
2
9
1
3,430
2
322
70
1
0
false
false
true
false
false
false
low
60,054,072
Android - If statement gets ignored and bypassed
<p>I am calling a PHP script from a function like this:</p> <pre><code>public static String XSSignUp(String username, String password, String email, String signInWith) { // Paramenters Map&lt;String, Object&gt; params = new LinkedHashMap&lt;&gt;(); params.put(USERS_USERNAME, username); params.p...
I am calling a PHP script from a function like this: [CODE] This is how I call that function: [CODE] So, if I run my app and fill a signup form using johndoe as username, my PHP script returns a response string as " e_101 " (username already exists), and it prevents the script to add records to my database. I get this ...
java|php|android|json
0
2020-02-04T09:15:45.243Z
2,020
2
9
1
66
1
931
48
4
5
true
false
false
false
false
false
zero
60,054,139
android.widget.FrameLayout cannot be cast to androidx.recyclerview.widget.RecyclerView
<p>I am doing a swipe refresh function to my recycler view, but it keeps on getting an error that it cannot be cast.</p> <p>Here is my XML:</p> <pre><code>announcement_recycler_view.xml </code></pre> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout xmlns:android="http://schemas.android.com...
I am doing a swipe refresh function to my recycler view, but it keeps on getting an error that it cannot be cast. Here is my XML: [CODE] [CODE] AnnouncementFragment [CODE] how can I fix this error? I feel that by adding the swipe refresh in my XML, i need to change again my working code on the FragmentActivity , but i ...
java|android
0
2020-02-04T09:19:52.853Z
2,020
2
9
1
1,157
2
526
86
2
4
true
false
false
false
false
false
zero
60,054,214
Error: E/LB: fail to open file: No such file or directory - Android Studio
<p>I am trying to do a POST Request with volley to interact with a MySQL Database through a local API. I am following a little tutorial (<a href="https://www.youtube.com/watch?v=M2KKIqrp8Y0" rel="nofollow noreferrer">https://www.youtube.com/watch?v=M2KKIqrp8Y0</a>) Everything seems to be good but the app send me a time...
I am trying to do a POST Request with volley to interact with a MySQL Database through a local API. I am following a little tutorial ( https://www.youtube.com/watch?v=M2KKIqrp8Y0 ) Everything seems to be good but the app send me a timeout error with "E/LB: fail to open file: No such file or directory" written in red in...
java|php|android|mysql|api
1
2020-02-04T09:23:42.857Z
2,020
2
9
1
2,828
1
662
74
5
3
true
false
true
false
false
false
low
60,054,233
Camera option was not shown in fileChooserIntent in Android version 10 and when using Android SDK 29
<p>When we try to upload profile picture/take new picture the fileChooserIntent showing gallery option only and camera option was not shown in the list.</p>
When we try to upload profile picture/take new picture the fileChooserIntent showing gallery option only and camera option was not shown in the list.
android
0
2020-02-04T09:25:17.967Z
2,020
2
9
1
26
2
149
100
1
0
false
false
false
false
false
false
zero
60,054,291
Android webviews and loadData()
<p>I am developping an app which has to deal with several bitmaps, and display them into a webview. The content of the webview can change if the user click a button.</p> <p>Everything was working fine, i took the bitmaps, convert them in Base 64, no problem.</p> <p>Then i decide change a little bit my code to be more...
I am developping an app which has to deal with several bitmaps, and display them into a webview. The content of the webview can change if the user click a button. Everything was working fine, i took the bitmaps, convert them in Base 64, no problem. Then i decide change a little bit my code to be more organized, and now...
android|webview
1
2020-02-04T09:28:54.087Z
2,020
2
9
1
41
1
760
31
2
1
true
false
false
false
false
false
low
60,054,491
Remove bottom Navigation when navigate to new Fragment
<p>i have bottom Navigation, i navigate new Fragment from bottom click but Bottom Navigation is not removed to the new fragment </p> <p>navigate new fragment</p> <pre><code>edit_flow.setOnClickListener { findNavController().navigate(R.id.action_navigation_home_to_flowFragment) } </code></pre> <p>i want...
i have bottom Navigation, i navigate new Fragment from bottom click but Bottom Navigation is not removed to the new fragment navigate new fragment [CODE] i want to remove the bottom Navigation when launching FlowFragment
android|android-fragments|android-architecture-navigation
3
2020-02-04T09:39:44.917Z
2,020
2
9
1
336
1
220
54
3
1
true
false
false
false
false
false
low
60,054,587
How to get inserted rows db sqlite
<p>I have this sql query</p> <pre><code>INSERT INTO profile (title, value, account_id) VALUES (5, 'Wass', "wewewewwew"), -- HOMETOWN (6, 'sadas', "sdsdadkf"), -- HOMETOWN returning account_id AS result; </code></pre> <p>I need to convert it to sqlite and this is what I have done</p> <pre><code>INSERT INTO `public.p...
I have this sql query [CODE] I need to convert it to sqlite and this is what I have done [CODE] But I need returned column in sqlite query as well. Thanks
android|sql|sqlite
0
2020-02-04T09:44:59.647Z
2,020
2
9
1
50
2
154
34
3
2
true
false
false
false
false
false
zero
60,054,630
React-native-tab-view: On tapping on tabs transition is very slow but on swipe it is very smooth
<p>I am using <a href="https://www.npmjs.com/package/react-native-tab-view" rel="noreferrer">react-native-tab-view</a> for the tabs but when I am clicking on tabs transition is very slow. And on swipe it is smooth and fast. What I did to resolve it:- I make all sub component a PureComponent which is being rendered on i...
I am using react-native-tab-view for the tabs but when I am clicking on tabs transition is very slow. And on swipe it is smooth and fast. What I did to resolve it:- I make all sub component a PureComponent which is being rendered on index change. That means it will not re-render if content is not different from previou...
android|react-native|react-native-tab-view
5
2020-02-04T09:47:22.270Z
2,020
2
9
1
1,794
0
494
96
3
0
false
true
false
false
false
false
low
60,054,750
Camera2 CaptureResult.CONTROL_AF_STATE - INACTIVE
<p>I am using <code>camera2</code> api, based on Google example. Work fine on my device, but doesn't work on emulator(and maybe some other devices).</p> <p>The reason <code>CaptureResult.CONTROL_AF_STATE</code> is in state <code>CaptureResult.CONTROL_AF_STATE_INACTIVE</code>.</p> <p>Part of the code(identical to Goog...
I am using camera2 api, based on Google example. Work fine on my device, but doesn't work on emulator(and maybe some other devices). The reason CaptureResult.CONTROL_AF_STATE is in state CaptureResult.CONTROL_AF_STATE_INACTIVE . Part of the code(identical to Google example) [CODE] As we can see if the state is INACTIVE...
android|android-camera|android-camera2
1
2020-02-04T09:53:29.577Z
2,020
2
9
1
522
1
497
49
3
1
true
false
false
false
false
false
low
60,054,756
How to set selection item based on value JSON?
<p>I have two JSON data which one is JSON for user, and the another one is for spinner :</p> <p>this is the JSON for user</p> <pre><code>{ "taxonomy":{ "User":[ { "ID":112, "name":"Tanaka", "city":12 }, { ...
I have two JSON data which one is JSON for user, and the another one is for spinner : this is the JSON for user [CODE] and this is JSON for Spinner [CODE] I already parsing JSON into spinner [CODE] this my Adapter [CODE] and my question is how to set selection item on spinner based on JSON user(like "city" equal "city_...
java|android|json|android-spinner
0
2020-02-04T09:53:42.617Z
2,020
2
9
1
48
1
347
46
4
4
true
false
false
false
false
false
zero
60,054,772
Bottomsheet animation not working in some devices
<p>I am using kotlin for create bottomsheet dialog it is working perfect but in some devices its animation from bottom to top not working -</p> <p>My XML code <strong>1. content_bottom_sheet.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.andr...
I am using kotlin for create bottomsheet dialog it is working perfect but in some devices its animation from bottom to top not working - My XML code 1. content_bottom_sheet.xml [CODE] Main XML ( main.xml ) [CODE] Kotlin Code for open the bottomsheet [CODE] I use this method to show the bottomsheet [CODE] But in some de...
android|animation|bottom-sheet|android-bottomsheetdialog
3
2020-02-04T09:54:28.660Z
2,020
2
9
1
542
0
488
49
4
4
true
true
false
false
false
false
low
60,054,798
How to send FCM Token ID to PHP server?
<p>The FCM Token ID has been generated and I want it to send to the PHP server and then store it in a variable. What should be the approach?</p> <pre><code> @Override public void onNewToken(String token) { Log.d(TAG, "Refreshed token: " + token); // If you want to send messages to this applicat...
The FCM Token ID has been generated and I want it to send to the PHP server and then store it in a variable. What should be the approach? [CODE] PHP Code [CODE]
java|android|firebase|firebase-cloud-messaging
0
2020-02-04T09:55:57.977Z
2,020
2
9
1
1,553
1
160
39
4
2
true
false
false
false
false
false
zero
60,054,822
React native 0.61.5 Crashlytics missing libhermes.so: SoLoader.java com.facebook.soloader.SoLoader.assertInitialized
<p>I am building a <strong>React-Native</strong> application, everything worked fine until I decided to upgrade from version 0.59.x to <strong>v 0.61.5</strong>.</p> <p>When I try to release my app in the play store, I've got a lot of crashes reported by <a href="https://invertase.io/oss/react-native-firebase/v6/crash...
I am building a React-Native application, everything worked fine until I decided to upgrade from version 0.59.x to v 0.61.5 . When I try to release my app in the play store, I've got a lot of crashes reported by Firebase Crashlytics ( v 6.2.0 ) -- even though my version is just available for internal testing , so it mu...
android|firebase|react-native|crashlytics|react-native-hermes
12
2020-02-04T09:57:03.107Z
2,020
2
9
1
3,164
1
1,294
116
5
4
true
false
true
false
true
false
medium
60,054,876
I am trying to get gestures in here mobile sdk but didn't understand what to pass to gestures method? How to solve this
<p>I didn't understand what to send to the myongesturelistner class, but still showing an error. </p> <p>this here shows that this will work</p> <p><a href="https://developer.here.com/documentation/android-premium/dev_guide/topics/map-gestures.html" rel="nofollow noreferrer">https://developer.here.com/documentation/a...
I didn't understand what to send to the myongesturelistner class, but still showing an error. this here shows that this will work https://developer.here.com/documentation/android-premium/dev_guide/topics/map-gestures.html But getting an error on this part [CODE] error [CODE] Mainactivity.java [CODE] MyOnGestureListner ...
java|android|maps|here-api
1
2020-02-04T09:59:45.573Z
2,020
2
9
1
121
1
326
119
4
4
true
false
false
false
false
false
low
60,054,881
How to raise a toast when a seekbar is used in a videoview?
<p>I am using video view to play files I need to raise a toast when the seekbar is clicked or used to seek video showing the current video duration. Any help?</p> <pre><code>MediaController mediaController = new MediaController(this.context); mediaController.setAnchorView(videoView); videoView....
I am using video view to play files I need to raise a toast when the seekbar is clicked or used to seek video showing the current video duration. Any help? [CODE] I am using video-view player to play and control media. I need to know is there any way that I can find out when the seekbar is touched in the video view con...
android|android-videoview
1
2020-02-04T10:00:08.167Z
2,020
2
10
1
71
1
326
59
2
1
true
false
false
false
false
false
low
60,055,031
Speed limits during navigation
<p>I am building a navigation app using the <strong>Mapbox</strong>. I want to obtain some information like <strong>speed limits during navigation</strong>. Could anyone please help me?</p> <p>sample code:- </p> <pre><code>NavigationLauncherOptions options = NavigationLauncherOptions.builder() .directionsRout...
I am building a navigation app using the Mapbox . I want to obtain some information like speed limits during navigation . Could anyone please help me? sample code:- [CODE]
android|mapbox|mapbox-android
0
2020-02-04T10:07:35.673Z
2,020
2
10
1
290
2
171
30
3
1
true
false
false
false
false
false
zero
60,055,033
AAPT: error: unexpected element <adaptive-icon> found in <manifest>
<p>I am trying to use adaptive icon in react native android but it product following error.</p> <blockquote> <p>AAPT: error: unexpected element found in </p> </blockquote> <p>here is my manifes.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/a...
I am trying to use adaptive icon in react native android but it product following error. AAPT: error: unexpected element found in here is my manifes.xml [CODE]
android|react-native|adaptive-icon
2
2020-02-04T10:07:39.373Z
2,020
2
10
1
1,640
1
159
67
3
1
true
false
false
false
false
false
low
60,055,133
Shared memory between NDK and SDK below API Level 26
<p>Library written in c++ produces continuous stream of data and same has to be ported on different platforms. Now integrating the lib to android application, I am trying to create shared memory between NDK and SDK.</p> <p>Below is working snippet,</p> <p>Native code:</p> <pre><code>#include &lt;jni.h&gt; #include &...
Library written in c++ produces continuous stream of data and same has to be ported on different platforms. Now integrating the lib to android application, I am trying to create shared memory between NDK and SDK. Below is working snippet, Native code: [CODE] SDK code: [CODE] Question: Accessing primitive arrays from Ja...
android|c|sdk|android-ndk|shared-memory
3
2020-02-04T10:13:57.853Z
2,020
2
10
1
942
2
569
52
5
2
true
false
false
false
false
false
low
60,055,170
How to solve null references error? Im new at this
<p>It says that my getOutletId() is null references and i already declared, i think. So basically this is a booking step 4. For the first step, user need to choose outlet from firestore and choose which branch and i've already include to setOutlet id. Then the 2nd step will show the staff. All of the information i get ...
It says that my getOutletId() is null references and i already declared, i think. So basically this is a booking step 4. For the first step, user need to choose outlet from firestore and choose which branch and i've already include to setOutlet id. Then the 2nd step will show the staff. All of the information i get it ...
android|android-fragments|nullpointerexception|null-object-pattern
-1
2020-02-04T10:16:46.977Z
2,020
2
10
1
80
1
1,659
50
4
5
true
false
false
false
false
true
negative
60,055,188
Apply span several times
<p>I have the string: "0123456789". I need to paint to specified digits from the string. I was using SpannableStringBuilder and setting ForegroundColorSpan per digit, but it painted only first digit or range instead of selected ones. So how can I color 0, 2 &amp; 8 in this string?</p>
I have the string: "0123456789". I need to paint to specified digits from the string. I was using SpannableStringBuilder and setting ForegroundColorSpan per digit, but it painted only first digit or range instead of selected ones. So how can I color 0, 2 & 8 in this string?
android
1
2020-02-04T10:18:05.597Z
2,020
2
10
1
31
2
274
24
1
0
false
false
false
false
false
false
low
60,055,240
Full screen TextInputEditText not showing counter
<p>I'm trying to fit the <a href="https://developer.android.com/reference/com/google/android/material/textfield/TextInputEditText" rel="nofollow noreferrer">TextInputEditText</a> to the whole screen, but it's not without problems:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout android...
I'm trying to fit the TextInputEditText to the whole screen, but it's not without problems: [CODE] Input type: [CODE] The result is that the counter is gone and hint appears in the middle. If I change to wrap content it's back to normal behavior. Example: So basically I'll be satisfied with just showing the counter, al...
android
3
2020-02-04T10:20:25.197Z
2,020
2
10
1
1,202
5
360
49
1
2
true
false
false
false
false
false
low
60,055,301
Varying a popup menu background color (programmatically)
<p>Is there an any way to change popup menu background color programmatically? I know it can do by style.xml but in my app, background color should be change according to a variable (not constant color). Is there any idea?</p> <pre><code> PopupMenu popup = new PopupMenu(ViewProfileActivity.this, viewProfileSettings); ...
Is there an any way to change popup menu background color programmatically? I know it can do by style.xml but in my app, background color should be change according to a variable (not constant color). Is there any idea? [CODE] I know there is an option like that [CODE] But i need to do that programmatically to make col...
java|android
0
2020-02-04T10:23:49.423Z
2,020
2
10
1
125
0
331
56
2
2
true
true
false
false
false
false
zero
60,055,350
Error Attempt to invoke virtual method. on a null object reference
<p>this doesn't work after doing project cleanup and code cleanup im getting the following error Attempt to invoke virtual method 'void androidx.appcompat.app.ActionBar.setCustomView(android.view.View, androidx.appcompat.app.ActionBar$LayoutParams)' on a null object reference</p> <pre><code>final ActionBar abar = getS...
this doesn't work after doing project cleanup and code cleanup im getting the following error Attempt to invoke virtual method 'void androidx.appcompat.app.ActionBar.setCustomView(android.view.View, androidx.appcompat.app.ActionBar$LayoutParams)' on a null object reference [CODE] you can see here the code this is my ma...
android|nullpointerexception
0
2020-02-04T10:26:12.073Z
2,020
2
10
1
194
2
427
66
2
3
true
false
false
false
false
false
zero
60,055,361
encrypt and decrypt a video in two different activities
<p>I want to encrypt and decrypt a video in two different activities. One activity encrypts the video and other activity decrypts the video. Now the problem is, KeyGenerator generates a new key in every call. So for decrypting the video, how can I get the same key that has been used to encrypt the video? Can I use a ma...
I want to encrypt and decrypt a video in two different activities. One activity encrypts the video and other activity decrypts the video. Now the problem is, KeyGenerator generates a new key in every call. So for decrypting the video, how can I get the same key that has been used to encrypt the video? Can I use a manua...
java|android|encryption
0
2020-02-04T10:27:07.323Z
2,020
2
10
1
44
0
435
55
3
0
false
true
false
false
false
false
zero
60,055,386
Update Managed Google Play app that is in KIOSK mode
<p>For a client a I have created an simple app that is used by the clients employees and the clients customers. All phones are Samsung A70 phones running Android 9.</p> <p>The app has been setup to run in KIOSK mode so that only the app can be run (dedicated device). It is a managed app so that only the devices that t...
For a client a I have created an simple app that is used by the clients employees and the clients customers. All phones are Samsung A70 phones running Android 9. The app has been setup to run in KIOSK mode so that only the app can be run (dedicated device). It is a managed app so that only the devices that the client o...
android|google-play|android-management-api|android-enterprise
6
2020-02-04T10:28:20.687Z
2,020
2
10
1
784
1
1,808
52
4
3
true
false
false
false
false
false
medium
60,055,447
In Android Studio, pasting Java code into a Kotlin file doesn't convert to Kotlin anymore
<p>When you paste Java code into a Kotlin file in Android Studio, you will get a dialog to convert the Java to Kotlin. When I press "yes" the IDE thinks for a few seconds but nothing happens.</p> <ul> <li>I tried turning that functionality off and on in the settings.</li> <li>I upgraded the Kotlin extension to version...
When you paste Java code into a Kotlin file in Android Studio, you will get a dialog to convert the Java to Kotlin. When I press "yes" the IDE thinks for a few seconds but nothing happens. I tried turning that functionality off and on in the settings. I upgraded the Kotlin extension to version 1.3.61. I completely rein...
java|android|android-studio|kotlin
2
2020-02-04T10:32:35.793Z
2,020
2
10
1
830
2
521
89
4
0
false
false
false
false
false
false
low
60,055,472
drag a view from bottom(hidden state)
<p><a href="https://i.stack.imgur.com/p4yii.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p4yii.png" alt="botto[![][1]"></a>]<a href="https://i.stack.imgur.com/wnX8T.png" rel="nofollow noreferrer">2</a></p> <p>when drag to up i want to unfold the view like app drawer in launher .. i am calculating...
] 2 when drag to up i want to unfold the view like app drawer in launher .. i am calculating the total height drag on touchlistener and adding it to myview.. but this does not seem to work. [CODE] }
android|touch|drag|gesture
1
2020-02-04T10:34:25.930Z
2,020
2
10
1
34
0
198
37
4
1
true
true
false
false
false
false
low
60,055,507
Removing duplicated animation attributes in Android Navigation Component
<p>Is it possible to get rid of the code duplication in the navigation graph in the situation where multiple <code>actions</code> have exactly the same animations?</p> <p>Here is an example:</p> <pre><code>&lt;fragment android:id="@+id/loginMethod" android:name="com.package.LoginMethodFragment" tools:layo...
Is it possible to get rid of the code duplication in the navigation graph in the situation where multiple actions have exactly the same animations? Here is an example: [CODE] Basically I'm looking for a method which allows me to declare all four app:*Anim attributes in one place and apply to both actions . In the case ...
android|androidx|android-navigation|android-architecture-navigation|android-jetpack-navigation
4
2020-02-04T10:35:54.647Z
2,020
2
10
1
57
0
429
72
5
1
true
true
false
false
false
false
low
60,055,606
Android Firebase notification have no sound
<p>I'm getting Firebase notification sound while app runs and not getting notification sound while app is in background. I don't know why it is happening.</p> <p>This is what I tried</p> <pre><code>Uri sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); if (Build.VERSION.SDK_INT &gt;= Bu...
I'm getting Firebase notification sound while app runs and not getting notification sound while app is in background. I don't know why it is happening. This is what I tried [CODE] Please help me with this.
android|firebase|notifications|firebase-cloud-messaging
0
2020-02-04T10:42:02.500Z
2,020
2
10
1
3,150
3
205
43
4
1
true
false
true
false
false
false
zero
60,055,732
Connect to specific WiFi (Android Q)
<p>In my app, I'm trying to connect automatically to a specific SSID (in android Q). I'm using &quot;WifiNetworkSpecifier&quot;,&quot;NetworkRequest&quot; and &quot;ConnectivityManager&quot; classes to do that. When I do a request, then a dialog appears on screen asking me to connect to this SSID, I click and then it c...
In my app, I'm trying to connect automatically to a specific SSID (in android Q). I'm using &quot;WifiNetworkSpecifier&quot;,&quot;NetworkRequest&quot; and &quot;ConnectivityManager&quot; classes to do that. When I do a request, then a dialog appears on screen asking me to connect to this SSID, I click and then it conn...
java|android|kotlin|wifi|ssid
3
2020-02-04T10:49:58.523Z
2,020
2
10
1
951
1
660
36
5
1
true
false
false
false
false
false
low
60,055,738
App has stopped while trying to open the second layout
<p>Im creating an app for scheduling, and when I choose a date and press select for moving to the other layout for creating a task for this date, the app stops.</p> <p>This is my main:</p> <pre><code>public class CalendarActivity extends AppCompatActivity { CalendarView calendarView; TextView dateSelected; Button se...
Im creating an app for scheduling, and when I choose a date and press select for moving to the other layout for creating a task for this date, the app stops. This is my main: [CODE] This is my second activity, which should be a list view of tasks: [CODE] } This is the adapter: [CODE] } It seems from the Logcat like it ...
java|android|nullpointerexception|crash|android-adapter
0
2020-02-04T10:50:18.843Z
2,020
2
10
1
38
1
363
54
5
4
true
false
false
false
false
false
zero
60,055,909
What should I do to fix Restore Purchases PaymentPendingError error?
<p>Hi I am testing sandbox subscriptions with test user 5 min / month and 30 min/ year with Revenue Cat. And I am also testing restore Purchase. But every time handle the same error </p> <blockquote> <p>PurchaseCode.PaymentPendingError</p> </blockquote> <p>With debug I see that</p> <p><code>billingWrapper.queryAll...
Hi I am testing sandbox subscriptions with test user 5 min / month and 30 min/ year with Revenue Cat. And I am also testing restore Purchase. But every time handle the same error PurchaseCode.PaymentPendingError With debug I see that billingWrapper.queryAllPurchases return the list of purchases, but next return the lis...
android|in-app-purchase|android-billing|revenuecat
0
2020-02-04T11:00:35.927Z
2,020
2
11
1
297
1
496
68
4
2
true
false
false
false
false
false
zero