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,016,661 | Share multiple image urls to other application | <p>I'm getting image urls from server now i want to share same urls to another application but its says that:</p>
<blockquote>
<p>The File format is not supported</p>
</blockquote>
<p>here is my code :</p>
<pre><code>private fun shareImages(urls:List<String>?) {
var listOfImageUri = ArrayList<Uri>(... | I'm getting image urls from server now i want to share same urls to another application but its says that: The File format is not supported here is my code : [CODE] The link i have tried so for: share multiple images Android Share Multiple Images with Other Apps Note: during image sharing process i do not want to save ... | android|kotlin|android-intent|uri|android-contentprovider | 1 | 2020-02-01T12:02:08.120Z | 2,020 | 2 | 12 | 5 | 1,694 | 2 | 377 | 46 | 5 | 1 | true | false | false | false | false | false | low |
60,016,677 | Get 3rd party sdk size | <p>In android studio is any way to get all 3rd party SDK sizes? any plugin or any way
If we are using <code>.jar</code> is possible but from gradle how we can come to know size of SDK </p> | In android studio is any way to get all 3rd party SDK sizes? any plugin or any way If we are using .jar is possible but from gradle how we can come to know size of SDK | android|android-studio|gradle | 2 | 2020-02-01T12:03:34.270Z | 2,020 | 2 | 12 | 5 | 57 | 0 | 167 | 22 | 3 | 0 | false | true | false | false | false | false | low |
60,016,741 | Android Studio Grid Layout Not Working Properly | <p>I am trying to make a grid of pictures with 2 columns and 3 rows. However my screen shows only one item.I am not sure why.</p>
<p>This is what I'm getting:</p>
<p><a href="https://i.stack.imgur.com/t4dsC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t4dsC.png" alt="enter image description here... | I am trying to make a grid of pictures with 2 columns and 3 rows. However my screen shows only one item.I am not sure why. This is what I'm getting: And this is what I'm trying to achieve: This is my code so far. I was following a tutorial on YouTube and I have rechecked multiple times. I'm still not sure what's wrong:... | java|android|android-studio|android-gridlayout | 0 | 2020-02-01T12:11:33.123Z | 2,020 | 2 | 12 | 5 | 315 | 1 | 369 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
60,016,783 | SQLiteException no such table, create statement works for one table but not for another | <p>I am getting the error shown below and have seen other questions on this but none of the solutions seem to fix my issue.
<a href="https://i.stack.imgur.com/61DDq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/61DDq.png" alt="i"></a></p>
<p>I create the table within the OnCreate function, I origi... | I am getting the error shown below and have seen other questions on this but none of the solutions seem to fix my issue. I create the table within the OnCreate function, I originally included foreign keys but commented them out as I thought that was the issue. I have created other tables using the same format and it ha... | android|sqlite|android-studio|android-sqlite | -1 | 2020-02-01T12:16:17.730Z | 2,020 | 2 | 12 | 5 | 31 | 1 | 511 | 87 | 4 | 2 | true | false | false | false | false | true | negative |
60,016,808 | Android studio web socket - Error receiving multiple JSON objects at once | <p>I am struggling with something that really p*sses me off for several hours. </p>
<p>My android app manages to connect to a websoket, and receives json data which for now has worked perfectly, and here is the code for this:</p>
<pre><code>runOnUiThread(new Runnable() {
@Override
public void run() {
... | I am struggling with something that really p*sses me off for several hours. My android app manages to connect to a websoket, and receives json data which for now has worked perfectly, and here is the code for this: [CODE] This code above as I said works perfectly, and i get the data in everytime. HOWEVER, HOWEVER, HOWE... | android|json|websocket | 0 | 2020-02-01T12:19:24.300Z | 2,020 | 2 | 12 | 5 | 52 | 1 | 779 | 73 | 3 | 2 | true | false | false | false | false | false | zero |
60,016,815 | "Run app" shortcut randomly fails to INSTALL + RUN android app (android studio) | <p>I'm talking about the IDE action highlighted in image below:</p>
<p><a href="https://i.stack.imgur.com/Odb80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Odb80.png" alt="enter image description here"></a></p>
<p>Whenever I use the shortcut, sometimes it just installs and that's it. Then if I ... | I'm talking about the IDE action highlighted in image below: Whenever I use the shortcut, sometimes it just installs and that's it. Then if I press it again, it then runs the app. The earlier behavior used to be Install + run app every time. So, it's quite frustrating because five years of muscle memory has me relying ... | android|android-studio | 0 | 2020-02-01T12:20:17.480Z | 2,020 | 2 | 12 | 5 | 13 | 0 | 534 | 79 | 2 | 0 | false | true | false | false | false | false | zero |
60,016,895 | Firebase users in the flutter | <p>Can we retrieve all logged-in users uid with their particular data stored in documents in another app like I wanna built two apps one of them for admin side which can edit data another is for the user who can only see that data.</p> | Can we retrieve all logged-in users uid with their particular data stored in documents in another app like I wanna built two apps one of them for admin side which can edit data another is for the user who can only see that data. | android|firebase|flutter|dart|firebase-authentication | 0 | 2020-02-01T12:30:32.490Z | 2,020 | 2 | 12 | 5 | 47 | 1 | 228 | 29 | 5 | 0 | false | false | false | false | false | false | zero |
60,016,948 | Impementing a ViewModelProvider.Factory and I am getting a null pointer exeception | <p>I believe I am following the code samples that have been provided to me for establishing the ViewModelProvider.Factory. It is happening on this statement in the CheckInRecentList code in the OnAttach method. Any assistance you can provide will be appreciated. </p>
<p>mViewModel = new ViewModelProvider(this, viewMo... | I believe I am following the code samples that have been provided to me for establishing the ViewModelProvider.Factory. It is happening on this statement in the CheckInRecentList code in the OnAttach method. Any assistance you can provide will be appreciated. mViewModel = new ViewModelProvider(this, viewModelFactory).g... | java|android|android-fragments | 3 | 2020-02-01T12:38:47.440Z | 2,020 | 2 | 12 | 5 | 2,517 | 1 | 502 | 82 | 3 | 4 | true | false | false | false | false | false | low |
60,016,989 | How to get name of fingerprint Android device? | <p>I work with biometric fingerprint Android. When we register a fingerprint at settings, we also store the name of a fingerprint. My question is, is it possible we get the name of the fingerprint? I have code just authentication fingerprint, but I need name of the fingerprint. Thank you for help.</p>
<pre><code>biome... | I work with biometric fingerprint Android. When we register a fingerprint at settings, we also store the name of a fingerprint. My question is, is it possible we get the name of the fingerprint? I have code just authentication fingerprint, but I need name of the fingerprint. Thank you for help. [CODE] | android|fingerprint|android-biometric-prompt | 0 | 2020-02-01T12:45:29.650Z | 2,020 | 2 | 12 | 5 | 190 | 1 | 302 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
60,017,007 | listview must not be null | <p>I am a beginner at programming. I have an error message when I start my app and do not know what to do with the code. Can someone help me please.</p>
<p>Here is my code:</p>
<p><strong>Activity :</strong></p>
<pre><code>class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bund... | I am a beginner at programming. I have an error message when I start my app and do not know what to do with the code. Can someone help me please. Here is my code: Activity : [CODE] Fragment : [CODE] Adapter: [CODE] Error stacktrace: 2020-02-01 13:37:17.972 10729-10729/? E/AndroidRuntime: FATAL EXCEPTION: main Process: ... | android|kotlin | 0 | 2020-02-01T12:48:14.200Z | 2,020 | 2 | 12 | 5 | 1,542 | 3 | 4,472 | 25 | 2 | 7 | true | false | false | false | false | false | zero |
60,017,047 | How to save to online database from string results of custom dialog in android | <p>I have a program that gets string from a custom dialog box to a listview in an activity and I want the strings I got to be saved to database the same time they are being passed to the textviews</p>
<p>Code:</p>
<pre><code>public class orderlist extends AppCompatActivity {
List<String> qty = new Array... | I have a program that gets string from a custom dialog box to a listview in an activity and I want the strings I got to be saved to database the same time they are being passed to the textviews Code: [CODE] So this is where I need to get the data from. I've tried using Async but I cant seem to get it working [CODE] Do ... | java|android|mysql | 2 | 2020-02-01T12:52:22.120Z | 2,020 | 2 | 12 | 5 | 56 | 0 | 361 | 78 | 3 | 2 | true | true | false | false | false | false | low |
60,017,081 | Android 3.4+ file encoding error causing projects to fail in loading and file to become unreadable | <p>Ever since i upgraded to <strong>android studio 3.4</strong> and going forth to <strong>3.5.3</strong> and i been experiencing projects that i used to work on earlier in the day suddenly fail to load and modules can't be read and opening any files <em>.xml , .gradle</em> all i see is the something like below:</p>
... | Ever since i upgraded to android studio 3.4 and going forth to 3.5.3 and i been experiencing projects that i used to work on earlier in the day suddenly fail to load and modules can't be read and opening any files .xml , .gradle all i see is the something like below: I tried : resetting the encoding to UTF8 from androi... | android|android-studio|encoding|android-studio-3.0|android-studio-3.5 | 2 | 2020-02-01T12:57:30.527Z | 2,020 | 2 | 12 | 5 | 146 | 2 | 747 | 98 | 5 | 0 | false | false | false | false | false | false | low |
60,017,152 | Change background color of selectedItem in recyclerView android databinding | <p>How can I change the backgroudColor ofselectedItem in recyclerView adapter when I use android databinding? </p>
<p>this is my Adapte,and <code>class CategoyItemClickListener</code> is implemened for handling item clicks :</p>
<pre><code>class ProgramCatAdapter(
val mContext: Context,
val mData: MutableLi... | How can I change the backgroudColor ofselectedItem in recyclerView adapter when I use android databinding? this is my Adapte,and class CategoyItemClickListener is implemened for handling item clicks : [CODE] And this code is for binding adapter to recyclerView : [CODE] How can I have access to the position of selected ... | android|kotlin|android-recyclerview|android-databinding | 2 | 2020-02-01T13:07:34.993Z | 2,020 | 2 | 13 | 5 | 955 | 1 | 391 | 75 | 4 | 2 | true | false | false | false | false | false | low |
60,017,232 | Why do dynamically added symbols show up grey in Mapbox | <p>When I tap the screen, a marker gets added to the middle of a Mapbox map. The first marker shows up as it is supposed to. However as soon as I add a second marker, the markers show up grey.</p>
<p><a href="https://i.stack.imgur.com/1JDlA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1JDlA.png" ... | When I tap the screen, a marker gets added to the middle of a Mapbox map. The first marker shows up as it is supposed to. However as soon as I add a second marker, the markers show up grey. Here is the code I use to create the symbol source and the symbol layer, as well as the onMapClickListener where the features of t... | java|android|mapbox|mapbox-android | 1 | 2020-02-01T13:18:07.917Z | 2,020 | 2 | 13 | 5 | 173 | 1 | 533 | 55 | 4 | 1 | true | false | false | false | false | false | low |
60,017,273 | How to autosize the editText dynamically? | <p>How to autoSize editText dynamically that when user input some data then it goes from some max size to min size of text in android like the typemode in instagram? I want to make editText working like this</p>
<p><a href="https://miro.medium.com/max/764/1*Chw3Adea66Me49A2wPGR-g.gif" rel="nofollow noreferrer">enter l... | How to autoSize editText dynamically that when user input some data then it goes from some max size to min size of text in android like the typemode in instagram? I want to make editText working like this enter link description here | android | 1 | 2020-02-01T13:22:58.853Z | 2,020 | 2 | 13 | 5 | 173 | 2 | 232 | 41 | 1 | 0 | false | false | false | false | false | false | low |
60,017,422 | Firebase Android ... Use Query | <p>I want to get to "sid" in order to put it in query "firebase" But I don't know how to get there because orders "model" with the increase in orders, it increases from 1 to ...</p>
<p><a href="https://i.stack.imgur.com/togpF.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I tried it this way b... | I want to get to "sid" in order to put it in query "firebase" But I don't know how to get there because orders "model" with the increase in orders, it increases from 1 to ... enter image description here I tried it this way but it didn't work and this is because of "0" number of orders [CODE] | android|firebase-realtime-database | 0 | 2020-02-01T13:41:40.903Z | 2,020 | 2 | 13 | 5 | 60 | 1 | 293 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
60,017,429 | java.lang.IllegalStateException: Already attached at androidx.fragment.app.FragmentManagerImpl.attachController - | <p>I have <code>viewpager</code> with multiple pages whose count depends on response.
Each fragment has recyclerview with grid items. Looks like while setting viewpager app crashes.
I'm not able to trace why crash is happening and line number.</p>
<p>Code:</p>
<pre><code> adapter = new NewCatPagerAdapter(getSupportFr... | I have viewpager with multiple pages whose count depends on response. Each fragment has recyclerview with grid items. Looks like while setting viewpager app crashes. I'm not able to trace why crash is happening and line number. Code: [CODE] Stacktrace: [CODE] NewCatPagerAdapter: [CODE] | android|android-recyclerview|android-viewpager|androidx | 0 | 2020-02-01T13:41:55.433Z | 2,020 | 2 | 13 | 5 | 624 | 2 | 286 | 113 | 4 | 3 | true | false | false | false | false | false | zero |
60,017,490 | Kotlin Upload Image to Firebase Animation or setContentLayout to another activity while uploading | <p>I want to show an animation (like loading bar) while the photo is being uploaded to the firebase or set the content layout to the user's profile and show an animation there while the photo is being uploaded.</p>
<p>Right now, when I click "Share" button it just acts like the "Share" isn't clicked so user's click it... | I want to show an animation (like loading bar) while the photo is being uploaded to the firebase or set the content layout to the user's profile and show an animation there while the photo is being uploaded. Right now, when I click "Share" button it just acts like the "Share" isn't clicked so user's click it multiple t... | android|firebase|kotlin | 1 | 2020-02-01T13:48:50.467Z | 2,020 | 2 | 13 | 5 | 81 | 1 | 443 | 97 | 3 | 1 | true | false | false | false | false | false | low |
60,017,615 | How to add the Guardian API to dependencies | <p>I am creating an app, which gets news from The Guardian newspaper. The documentation isn't clear about dependencies. And there is no info about that anywhere.
Thank you in advance</p>
<p><a href="https://github.com/matarrese/content-api-the-guardian" rel="nofollow noreferrer">https://github.com/matarrese/content-ap... | I am creating an app, which gets news from The Guardian newspaper. The documentation isn't clear about dependencies. And there is no info about that anywhere. Thank you in advance https://github.com/matarrese/content-api-the-guardian Dunno if it helps you | java|android | 0 | 2020-02-01T14:06:10.760Z | 2,020 | 2 | 14 | 5 | 50 | 1 | 255 | 43 | 2 | 0 | false | false | false | false | false | false | zero |
60,017,698 | Flutter App Suddenly Force Closed Whenever I Make an HTTP Request on Android TV Box | <p>I tried to run My App on Android TV Box, but whenever i make a simple HTTP Request (either using DIO package or HTTP package) my app suddenly force closed. it didn't throw any error even tho i'm using Catcher package to catch my error globally. </p>
<p>I've tried to run my app on several kind of Android Box Devices... | I tried to run My App on Android TV Box, but whenever i make a simple HTTP Request (either using DIO package or HTTP package) my app suddenly force closed. it didn't throw any error even tho i'm using Catcher package to catch my error globally. I've tried to run my app on several kind of Android Box Devices such as STB... | android|flutter|dart|tvbox | 1 | 2020-02-01T14:15:53.213Z | 2,020 | 2 | 14 | 5 | 350 | 0 | 612 | 83 | 4 | 3 | true | true | false | false | false | false | low |
60,017,702 | Geocoder returns location in another language even when set to english | <p>I am using the following code and I have tried most of the answers on stack-overflow, but it still returns the location in different languages for some users.</p>
<p><strong>What Happens:</strong><br>
For some users even if I set the default language to English, it returns the location in Nepali. I did try myself b... | I am using the following code and I have tried most of the answers on stack-overflow, but it still returns the location in different languages for some users. What Happens: For some users even if I set the default language to English, it returns the location in Nepali. I did try myself by changing my phone's language t... | android|google-geocoder | -1 | 2020-02-01T14:16:16.480Z | 2,020 | 2 | 14 | 5 | 355 | 1 | 433 | 70 | 2 | 2 | true | false | false | false | false | true | negative |
60,017,795 | App crashes on app start with error java.lang.RuntimeException: | <p>I have some problem with device galaxy s5 and ImageButton - (On other devices it works good).</p>
<p>On my login activity i have ImageButton, so when I running app , it crashes.</p>
<p>Quistion updated: Added all the log from logcat</p>
<p>Here is a XML of the button - Starting from line 53</p>
<pre><code><Im... | I have some problem with device galaxy s5 and ImageButton - (On other devices it works good). On my login activity i have ImageButton, so when I running app , it crashes. Quistion updated: Added all the log from logcat Here is a XML of the button - Starting from line 53 [CODE] and Log: [CODE] Gradle : [CODE] Device inf... | java|android | 0 | 2020-02-01T14:26:49.937Z | 2,020 | 2 | 14 | 5 | 136 | 2 | 356 | 63 | 2 | 3 | true | false | false | false | false | false | zero |
60,017,851 | ExtendedFloatingActionButton end alignment in BottomAppBar with margin | <p>I'm trying to add ExtendedFloatingActionButton along with BottomAppBar with <strong>fabAlignmentMode</strong> set to <strong>end</strong>. The extended FAB is moved to end on setting the property but I'm unable to add margins to it. Attached is a image showing the same.</p>
<p><strong>activity_main.xml</strong></p>
... | I'm trying to add ExtendedFloatingActionButton along with BottomAppBar with fabAlignmentMode set to end . The extended FAB is moved to end on setting the property but I'm unable to add margins to it. Attached is a image showing the same. activity_main.xml [CODE] build.gradle [CODE] | android|material-design|androidx | 0 | 2020-02-01T14:33:43.263Z | 2,020 | 2 | 14 | 5 | 593 | 1 | 282 | 70 | 3 | 2 | true | false | false | false | false | false | zero |
60,017,876 | Crash using biometric androidx library | <p>In my app I'm using androidx biometric support library 1.0.1. On Android 9 I can see this kind of bug but I have no idea where they come from::</p>
<pre><code>02-01 13:00:06.422 23937 23937 E AndroidRuntime: FATAL EXCEPTION: main
02-01 13:00:06.422 23937 23937 E AndroidRuntime: Process: xxxxxxx, PID: 23871
02-01 13... | In my app I'm using androidx biometric support library 1.0.1. On Android 9 I can see this kind of bug but I have no idea where they come from:: [CODE] Code: [CODE] | android|android-biometric-prompt | 3 | 2020-02-01T14:35:47.910Z | 2,020 | 2 | 14 | 5 | 1,469 | 1 | 163 | 38 | 2 | 2 | true | false | false | false | false | false | low |
60,017,934 | How to map GeoPoint from Firebase - Firestore in to Kotlin DTO Object in Android | <p>I have Firestore implemented in my project, collection and documents, and in documents have field location which is GeoPoint with latitude and longitude. How can I map that to a Kotlin DTO Object which by the way needs to be parcelable?</p> | I have Firestore implemented in my project, collection and documents, and in documents have field location which is GeoPoint with latitude and longitude. How can I map that to a Kotlin DTO Object which by the way needs to be parcelable? | android|firebase|kotlin|google-cloud-firestore | 1 | 2020-02-01T14:44:06.193Z | 2,020 | 2 | 14 | 5 | 684 | 1 | 236 | 80 | 4 | 0 | false | false | false | false | false | false | low |
60,018,008 | Android Apache Logger crashes for no reason in Production (Release build) | <p>When creating a release using the build.gradle build variant below, I keep getting an app crash when I launch it. It has something to do with the logger, but I cannot seem to find out why it is happening with Proguard / minify enabled, while it works great without it. I would like my code to be as compact and obfusc... | When creating a release using the build.gradle build variant below, I keep getting an app crash when I launch it. It has something to do with the logger, but I cannot seem to find out why it is happening with Proguard / minify enabled, while it works great without it. I would like my code to be as compact and obfuscate... | java|android|kotlin|proguard | 2 | 2020-02-01T14:52:36.920Z | 2,020 | 2 | 14 | 5 | 466 | 1 | 924 | 73 | 4 | 3 | true | false | false | false | false | false | low |
60,018,018 | How to search firestore collections with multiple search keys using startAt() and endAt methods | <p>Let's say we have a collection of "people" inside people collection we have person objects of </p>
<pre class="lang-java prettyprint-override"><code>public class Person{
public String personId;
public String firstName;
public String lastName;
}
</code></pre>
<p>I want to search persons by using firstNa... | Let's say we have a collection of "people" inside people collection we have person objects of [CODE] I want to search persons by using firstName and lastName in the same time with startAt and endAt methods like below [CODE] but I can only use either firstName or lastName how can I use both at the same time? | java|android|google-cloud-firestore | 0 | 2020-02-01T14:54:34.190Z | 2,020 | 2 | 14 | 5 | 85 | 1 | 308 | 95 | 3 | 2 | true | false | false | false | false | false | zero |
60,018,067 | Change size of layout in Android Studio | <p>I'm making a layout for a <code>CardView</code>, and I can't get the layout itself to be the right size. The <code>LinearLayout</code> is the right size, but Android Studio still shows the full screen size. Is this a coding error or an Android Studio bug?
My code is</p>
<pre><code><?xml version="1.0" encoding="u... | I'm making a layout for a CardView , and I can't get the layout itself to be the right size. The LinearLayout is the right size, but Android Studio still shows the full screen size. Is this a coding error or an Android Studio bug? My code is [CODE] My xml preview is The LinearLayout for the card view is not showing at ... | android|android-studio|android-layout | 0 | 2020-02-01T15:00:13.100Z | 2,020 | 2 | 15 | 5 | 59 | 1 | 349 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
60,018,085 | Cant get bundle value from activity to fragment | <p>Please help, i just learned android, i am trying to send data from my Main Activity to a fragment using bundle. Here's the code at MainActivity</p>
<pre><code>@Override
public boolean onQueryTextChange(String newText) {
if (newText.length()>0){
FragmentTransaction transaction = getSupportFragmen... | Please help, i just learned android, i am trying to send data from my Main Activity to a fragment using bundle. Here's the code at MainActivity [CODE] And here's the code at my fragment [CODE] Error happened in this line String query = getArguments().getString("query"); The error is java.lang.NullPointerException: Atte... | java|android|android-fragments|bundle | 0 | 2020-02-01T15:01:29.947Z | 2,020 | 2 | 15 | 5 | 231 | 4 | 530 | 47 | 4 | 4 | true | false | false | false | false | false | zero |
60,018,116 | Constraintlayout and View Rotation not resizing Views | <p>Im using a Constraintlayout with bias to fill the screen with multiple views. When I rotate the views they dont get resized to to fill the screen. My layout is more complicated but I created an example to show my problem.</p>
<pre><code> <androidx.constraintlayout.widget.ConstraintLayout
android:layout_wi... | Im using a Constraintlayout with bias to fill the screen with multiple views. When I rotate the views they dont get resized to to fill the screen. My layout is more complicated but I created an example to show my problem. [CODE] It doesn't really matter if I rotate the outer or the inner FrameLayout. I don't think I ha... | android|kotlin|android-constraintlayout | 0 | 2020-02-01T15:04:47.080Z | 2,020 | 2 | 15 | 5 | 671 | 1 | 554 | 53 | 3 | 1 | true | false | false | false | false | false | zero |
60,018,249 | why cant my bottom navigation bar be shown? | <p>Im wondering why my bottom navigation bar is not showing up. Can anyone help me out please. Im still learning Android so i apologise in advance if i seem to be asking the wrong questions!</p>
<p><strong>This is my home.xml file</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<menu xmlns:and... | Im wondering why my bottom navigation bar is not showing up. Can anyone help me out please. Im still learning Android so i apologise in advance if i seem to be asking the wrong questions! This is my home.xml file [CODE] This is my fragment_home.xml file [CODE] This is HomeFragment.java file [CODE] This is my AndroidMan... | java|android|xml|android-layout|android-fragments | 0 | 2020-02-01T15:18:13.340Z | 2,020 | 2 | 15 | 5 | 56 | 2 | 575 | 43 | 5 | 10 | true | false | false | false | false | false | zero |
60,018,258 | Flutter showing only white screen after upgrade to v1.14.7-pre.83 and migrating to AndroidX | <p>The flutter version that I am using is 1.14.7-pre.83. </p>
<p><a href="https://i.stack.imgur.com/jTwnb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jTwnb.png" alt="flutter version"></a></p>
<p>Here is a screenshot of the errors shown when I try to build the app after the upgrade.</p>
<p><a h... | The flutter version that I am using is 1.14.7-pre.83. Here is a screenshot of the errors shown when I try to build the app after the upgrade. After the ugrade it also said that I need to migrate my project to androidX. I tried to add android.useAndroidX=true android.enableJetifier=true in the gradle.properties but it d... | android|flutter|dart|androidx | 0 | 2020-02-01T15:19:18.337Z | 2,020 | 2 | 15 | 5 | 723 | 2 | 439 | 91 | 4 | 0 | false | false | false | false | false | false | zero |
60,018,327 | Fcm Notification cannot show image if app close | <p><a href="https://i.stack.imgur.com/cGIkE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cGIkE.jpg" alt="I want it like this, when the app is in the background"></a><br>
I am sending notification and handle notification <code>FirebaseMessagingService</code>.<br>
But if app on background <code>Fire... | I am sending notification and handle notification FirebaseMessagingService . But if app on background FirebaseMessagingService cannot handle notification and not show image. How can I do this? (If the application is in the foreground, the picture is shown in the notification.) And if I use onesignal image showing all t... | android|push-notification|firebase-cloud-messaging | 2 | 2020-02-01T15:27:15.023Z | 2,020 | 2 | 15 | 5 | 1,620 | 1 | 332 | 47 | 3 | 1 | true | false | false | false | false | false | low |
60,018,395 | Firestore security rules - if exists statement | <p>I was trying to implement the security rules for my Firestore project. This statement here isn't working, can anyone tell me why? I am clueless at this point.</p>
<p>What I am trying to achieve: a user may only read the userlist if that user is on the userlist.</p>
<pre><code>match /databases/{database}/documents ... | I was trying to implement the security rules for my Firestore project. This statement here isn't working, can anyone tell me why? I am clueless at this point. What I am trying to achieve: a user may only read the userlist if that user is on the userlist. [CODE] Here is a code example from my app where the access with s... | android|firebase|google-cloud-firestore|firebase-security | 0 | 2020-02-01T15:36:25.307Z | 2,020 | 2 | 15 | 5 | 768 | 1 | 766 | 46 | 4 | 4 | true | false | false | false | false | false | zero |
60,018,541 | Android Proguard Kotlinx Coroutines warning | <p>I have these warnings? How to solve it?</p>
<p>I tried to do <code>-dontwarn kotlinx.coroutines.flow.**inlined**</code>
It solves the warning, but I think my app crashes.</p>
<blockquote>
<p>Warning: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10$1: can't find enclosing method 'java.lan... | I have these warnings? How to solve it? I tried to do -dontwarn kotlinx.coroutines.flow.**inlined** It solves the warning, but I think my app crashes. Warning: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10$1: can't find enclosing method 'java.lang.Object collect$$forInline(kotlinx.coroutines.... | android|kotlin|proguard|kotlin-coroutines | 2 | 2020-02-01T15:52:12.963Z | 2,020 | 2 | 15 | 5 | 2,069 | 2 | 2,315 | 43 | 4 | 0 | false | false | false | false | false | false | low |
60,018,552 | How to go past the last item in a recycle view when scrolling up | <p>I have a recycleview that I like to go past the last element when I scroll up. The reason I need to do this is that I have a floating button that if I don't go past the last item, the floating button covers the right part of the last item. I have seen this done in apps such as WhatsApp (see screenshot).</p>
<p>My a... | I have a recycleview that I like to go past the last element when I scroll up. The reason I need to do this is that I have a floating button that if I don't go past the last item, the floating button covers the right part of the last item. I have seen this done in apps such as WhatsApp (see screenshot). My approach has... | android|android-recyclerview | 1 | 2020-02-01T15:54:29.337Z | 2,020 | 2 | 15 | 5 | 202 | 1 | 639 | 64 | 2 | 0 | false | false | false | false | false | false | low |
60,018,604 | How to inflate fragment's layout in AppCompatActivity.onCreate()? | <p>Im creating a simple app to learn fragments. It consists of a bottomNavigationView with three menu items, and a FrameLayout thats serves as a containter for fragments and takes up the rest of the space. Selecting an item switches the Fragment in FrameLayout with:</p>
<pre><code>getSupportFragmentManager().beginTran... | Im creating a simple app to learn fragments. It consists of a bottomNavigationView with three menu items, and a FrameLayout thats serves as a containter for fragments and takes up the rest of the space. Selecting an item switches the Fragment in FrameLayout with: [CODE] When i ran the app, i noticed that transitions be... | java|android|android-fragments|optimization | 1 | 2020-02-01T16:01:55.220Z | 2,020 | 2 | 16 | 5 | 240 | 1 | 1,166 | 65 | 4 | 3 | true | false | false | false | false | false | low |
60,018,757 | What is the method to follow while designing scrollable content in Android Studio? | <p>I am designing my app in Constraint Layout and I have placed it under Scroll View. I want to place more Card Views but there is no place to do so in the preview of the xml file. Where do I drag and drop Buttons, TextViews etc when the layout is full? I have dealt with scroll view for text but this is something else.... | I am designing my app in Constraint Layout and I have placed it under Scroll View. I want to place more Card Views but there is no place to do so in the preview of the xml file. Where do I drag and drop Buttons, TextViews etc when the layout is full? I have dealt with scroll view for text but this is something else. I ... | java|android|xml|android-layout|scrollview | 1 | 2020-02-01T16:19:24.317Z | 2,020 | 2 | 16 | 5 | 61 | 3 | 628 | 82 | 5 | 1 | true | false | false | false | false | false | low |
60,018,782 | ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.com.android.builder.dexing.DexArchiveMergerException: | <p><strong>Error while merging dex archives:The number of method references in a .dex file cannot exceed 64K.</strong></p>
<p>The code worked properly before add react-native-firebase/admob. But after adding that library build fails. When i removing the react-navigation built. Why these two libraries cannot use same a... | Error while merging dex archives:The number of method references in a .dex file cannot exceed 64K. The code worked properly before add react-native-firebase/admob. But after adding that library build fails. When i removing the react-navigation built. Why these two libraries cannot use same app? Here is my app.json file... | android|firebase|react-native|react-navigation | 0 | 2020-02-01T16:22:05.550Z | 2,020 | 2 | 16 | 5 | 320 | 2 | 355 | 113 | 4 | 1 | true | false | false | false | false | false | zero |
60,018,919 | recyclerview jetpack bug - pressing back button twice to go to previous fragment | <p>I'm using the Jetpack navigation component with a navhost and navgraph. In my <code>categoriesFragment</code>, I have a <code>RecyclerView</code> that displays the current list of categories in the database. It's attached to a <code>LiveData</code> implementation of the SQL that grabs all the categories from the dat... | I'm using the Jetpack navigation component with a navhost and navgraph. In my categoriesFragment , I have a RecyclerView that displays the current list of categories in the database. It's attached to a LiveData implementation of the SQL that grabs all the categories from the database. Whenever I add a category to the d... | android|android-fragments|android-recyclerview | 1 | 2020-02-01T16:34:33.160Z | 2,020 | 2 | 16 | 5 | 784 | 2 | 840 | 80 | 3 | 5 | true | false | false | false | false | false | low |
60,019,159 | Error Out Of Memory in flutter and Android studio | <p>today when i try to run my flutter project on android studio, unfortunately i have got this error:</p>
<pre><code>c:\b\s\w\ir\cache\builder\src\third_party\dart\runtime\vm\zone.cc: 90: error: Out of memory.
version=2.7.0 (Mon Dec 2 20:10:59 2019 +0100) on "windows_x64"
thread=1736, isolate=main(00000239E9F... | today when i try to run my flutter project on android studio, unfortunately i have got this error: [CODE] how can i solve it? | android-studio|flutter|out-of-memory | 8 | 2020-02-01T17:03:00.567Z | 2,020 | 2 | 17 | 5 | 15,109 | 8 | 125 | 49 | 3 | 1 | true | false | true | true | false | false | medium |
60,019,311 | Android Dynamic Grid with different items number | <p>I'm new to Android, and what I want to achieve is something like this <a href="https://i.stack.imgur.com/2Sbg9.png" rel="nofollow noreferrer">gridLayout</a></p>
<p>As you can see on the picture, I want to build a grid with a <strong>dynamic number of columns</strong>, each having a <strong>dynamic number of rows</s... | I'm new to Android, and what I want to achieve is something like this gridLayout As you can see on the picture, I want to build a grid with a dynamic number of columns , each having a dynamic number of rows and a different number of items for each column. So far I ve been able to create a grid with a RelativeLayout, fo... | android|android-relativelayout | 0 | 2020-02-01T17:21:29.413Z | 2,020 | 2 | 17 | 5 | 37 | 1 | 510 | 48 | 2 | 0 | false | false | false | false | false | false | zero |
60,019,378 | Setting visibility of a view when a menu item is selected and when we are done with the menu item | <p>I have implemented a menu item to search a list view. I need to make a view invisible when the menu item is selected. This is easily done with this code in my fragment:</p>
<pre><code> @Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
... | I have implemented a menu item to search a list view. I need to make a view invisible when the menu item is selected. This is easily done with this code in my fragment: [CODE] I can't figure out how to set the visibility back when I am done with the search (I am using SearchView). I tried to use onOptionsMenuClosed (Me... | android | 1 | 2020-02-01T17:28:19.433Z | 2,020 | 2 | 17 | 5 | 40 | 1 | 392 | 97 | 1 | 1 | true | false | false | false | false | false | low |
60,019,438 | Prevent destroying (or restore state) of Fragment B when navigating back from D - Navigation Component | <p>I have fragments: A, B, C, D. I navigate A -> B . Fragment B gets and saves state from arguments. Then I navigate B -> C. And then C -> D. When I call <strong>two times</strong> <code>findNavController().popBackStack()</code> I get correct behavior: D -> B and B still has correct state. It works because fragment B h... | I have fragments: A, B, C, D. I navigate A -> B . Fragment B gets and saves state from arguments. Then I navigate B -> C. And then C -> D. When I call two times findNavController().popBackStack() I get correct behavior: D -> B and B still has correct state. It works because fragment B has never been destroyed, just its... | android|kotlin|android-jetpack|android-architecture-navigation|android-jetpack-navigation | 2 | 2020-02-01T17:36:12.880Z | 2,020 | 2 | 17 | 5 | 869 | 2 | 850 | 102 | 5 | 1 | true | false | false | false | false | false | low |
60,019,476 | How to use Retrofit for Android to communicate with firebase cloud function? | <p>I would like to send a request from my Android App to Google Firebase using google functions.</p>
<p>Therefore I have defined an API-Interface on the client side like:</p>
<pre><code>interface MyApi {
/**
* Get the list of the pots from the API
*/
@GET("/posts")
fun getPosts(): Observable<... | I would like to send a request from my Android App to Google Firebase using google functions. Therefore I have defined an API-Interface on the client side like: [CODE] In the ModelView I send a request using RXJava like: [CODE] The User Object I observe on looks like: [CODE] My Network-Module where I provide Retrofit l... | android|kotlin|google-cloud-functions|retrofit | 0 | 2020-02-01T17:40:27.720Z | 2,020 | 2 | 17 | 5 | 544 | 1 | 558 | 76 | 4 | 5 | true | false | false | false | false | false | zero |
60,019,607 | EditTextPreference doesn't work with Strings | <p>I created a Settings Activity with the Android Template.
First, everything worked fine, but now I wanted to get the <code>String</code> from the <code>EditTextPreference</code>. But when I started to run it, it crashed because of this error:</p>
<blockquote>
<p>java.lang.ClassCastException: java.lang.Boolean can... | I created a Settings Activity with the Android Template. First, everything worked fine, but now I wanted to get the String from the EditTextPreference . But when I started to run it, it crashed because of this error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String I used the right Key... | java|android|settings|preferences | 0 | 2020-02-01T17:53:31.087Z | 2,020 | 2 | 17 | 5 | 127 | 1 | 739 | 44 | 4 | 4 | true | false | false | false | false | false | zero |
60,019,614 | how to solve Unable to resolve dependency for ':@debug/compileClasspath': Could not resolve com.google.auto.value:auto-value-annotations:1.6.5 | <p>when I synchronize my project I found many problems and Errors:</p>
<blockquote>
<blockquote>
<p>ERROR: Unable to resolve dependency for ':@debug/compileClasspath': Could not resolve com.google.auto.value:auto-value-annotations:1.6.5.</p>
</blockquote>
<p>ERROR: Unable to resolve dependency for
':@de... | when I synchronize my project I found many problems and Errors: ERROR: Unable to resolve dependency for ':@debug/compileClasspath': Could not resolve com.google.auto.value:auto-value-annotations:1.6.5. ERROR: Unable to resolve dependency for ':@debugAndroidTest/compileClasspath': Could not resolve org.jetbrains:annotat... | android | 0 | 2020-02-01T17:54:14.710Z | 2,020 | 2 | 17 | 5 | 266 | 0 | 838 | 142 | 1 | 1 | true | true | false | false | false | false | zero |
60,019,622 | Firebase Dynamic Links Subdomain for Custom Domain | <p>I want to use Firebase Dynamic Links to have my users join a game group created by another user in my Android Application.
I got my custom domain and hosted my static site in the same project for my android application.<br>
The issue for me is that I had understood that all my websites had to have <code>index.html</... | I want to use Firebase Dynamic Links to have my users join a game group created by another user in my Android Application. I got my custom domain and hosted my static site in the same project for my android application. The issue for me is that I had understood that all my websites had to have index.html as entry point... | android|html|firebase-hosting|firebase-dynamic-links | 2 | 2020-02-01T17:55:01.137Z | 2,020 | 2 | 17 | 5 | 1,069 | 0 | 1,354 | 50 | 4 | 0 | false | true | false | false | false | false | low |
60,019,654 | Android Studio: How to design my own theme? | <p>So I am running into a problem with my header having the wrong colors. (The header back button and the menu dropdown are both determined by the theme) and I want these to be a custom color.</p>
<p>How would I go about making my own theme, or what else should I do? I can see the Theme Editor is now deprecated, and t... | So I am running into a problem with my header having the wrong colors. (The header back button and the menu dropdown are both determined by the theme) and I want these to be a custom color. How would I go about making my own theme, or what else should I do? I can see the Theme Editor is now deprecated, and the one I fo... | java|android|android-studio|kotlin | 0 | 2020-02-01T17:58:42.453Z | 2,020 | 2 | 17 | 5 | 36 | 1 | 374 | 43 | 4 | 0 | false | false | false | false | false | false | zero |
60,019,838 | Uploading Audio to Cloudinary | <p>this is my first Stack Overflow post so please go easy on me!</p>
<p>I'm building an audio recording app using EXPO as the SDK with React Native. One of the main features of the app is to be able to to record live audio as well as uploading audio from the client's device. By leveraging Expo's Audio API and FileSyst... | this is my first Stack Overflow post so please go easy on me! I'm building an audio recording app using EXPO as the SDK with React Native. One of the main features of the app is to be able to to record live audio as well as uploading audio from the client's device. By leveraging Expo's Audio API and FileSystem, I'm suc... | android|react-native|audio|expo|cloudinary | 1 | 2020-02-01T18:20:35.360Z | 2,020 | 2 | 18 | 5 | 1,034 | 1 | 1,263 | 29 | 5 | 2 | true | false | false | false | false | false | low |
60,019,933 | IllegalStateException when assigning string to text | <p>I'm using this code to show a 60 second countdown:</p>
<pre><code>timeRemainingText.text = "Time Remaining: 60 Seconds"
val h = Handler()
var count = 60
val r = object : Runnable {
override fun run() {
count--
timeRemainingT... | I'm using this code to show a 60 second countdown: [CODE] I get the following error on line timeRemainingText.text = "Time Remaining: $count Seconds" : [CODE] Why I'm getting this error, even if count is null, the rest of string should be assigned. Please help! | android|kotlin | 0 | 2020-02-01T18:31:28.813Z | 2,020 | 2 | 18 | 5 | 55 | 0 | 261 | 51 | 2 | 2 | true | true | false | false | false | false | zero |
60,020,090 | How to change layout_gravity in ConstraintLayout programmatically? | <p>I got an XML file that includes a ConstraintLayout and inside this layout i got three views.
The layout as its width set to "wrap_content" which automatically wrap it to the left side like this:</p>
<p><a href="https://i.stack.imgur.com/7aRTF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7aRTF.... | I got an XML file that includes a ConstraintLayout and inside this layout i got three views. The layout as its width set to "wrap_content" which automatically wrap it to the left side like this: in the XML edit window, when i set layout_gravity to the right, it moves the layout to the right as expected: I'm trying to a... | java|android|android-constraintlayout|layout-gravity | 0 | 2020-02-01T18:47:12.573Z | 2,020 | 2 | 18 | 5 | 424 | 0 | 436 | 66 | 4 | 0 | false | true | false | false | false | false | zero |
60,020,098 | Dynamically adding views in a fragment | <p>I am trying to add dynamic views into my layouts relative view. So the dynamic view which is to be added is another layout containing couple of editexts and other fields. Everything works perfectly but the only issue is whenever i add new views dynamically my previous contents are refreshed/cleared because i removea... | I am trying to add dynamic views into my layouts relative view. So the dynamic view which is to be added is another layout containing couple of editexts and other fields. Everything works perfectly but the only issue is whenever i add new views dynamically my previous contents are refreshed/cleared because i removeallv... | android|android-fragments|layout|android-viewgroup | 2 | 2020-02-01T18:48:13.813Z | 2,020 | 2 | 18 | 5 | 94 | 0 | 651 | 38 | 4 | 1 | true | true | false | false | false | false | low |
60,020,156 | TensorFlow label number is a mismatch with the shape on the axis | <p>trying to run the codelab:
<a href="https://codelabs.developers.google.com/codelabs/recognize-flowers-with-tensorflow-on-android/#6" rel="noreferrer">https://codelabs.developers.google.com/codelabs/recognize-flowers-with-tensorflow-on-android/#6</a></p>
<p>I have developed my own files and list files although I see... | trying to run the codelab: https://codelabs.developers.google.com/codelabs/recognize-flowers-with-tensorflow-on-android/#6 I have developed my own files and list files although I seem to get this error when I start to run it through Android: java.lang.IllegalArgumentException: Label number 6 mismatch the shape on axis ... | java|android|tensorflow|classification|tensorflow-lite | 5 | 2020-02-01T18:55:19.863Z | 2,020 | 2 | 18 | 5 | 1,176 | 1 | 475 | 64 | 5 | 2 | true | false | false | false | false | false | low |
60,020,166 | Firebase suddenly stopped | <p>I have recently implemented admob in my app, and until today morning, it was working properly.
Unfortunately, I had deleted my app in firebase today morning, and then I re-created the project, and added the new <code>google-service.json</code>.</p>
<p>But, I have neither received a new mail as the service is enable... | I have recently implemented admob in my app, and until today morning, it was working properly. Unfortunately, I had deleted my app in firebase today morning, and then I re-created the project, and added the new google-service.json . But, I have neither received a new mail as the service is enabled (I havn't receive the... | android|firebase|admob | 0 | 2020-02-01T18:56:08.200Z | 2,020 | 2 | 18 | 5 | 343 | 0 | 413 | 25 | 3 | 1 | true | true | false | false | false | false | zero |
60,020,311 | androidx settings library and tablet landscape's mode 2-pane layout | <p>The new androidx settings library <a href="https://developer.android.com/guide/topics/ui/settings" rel="nofollow noreferrer">(https://developer.android.com/guide/topics/ui/settings)</a> is a nice new development - but it does not care about the "large tablet in landscape" mode the previous Preference Activity (<code... | The new androidx settings library (https://developer.android.com/guide/topics/ui/settings) is a nice new development - but it does not care about the "large tablet in landscape" mode the previous Preference Activity ( AppCompatPreferenceActivity ) did, which displays the headers on the left and the corresponding active... | settings|androidx | 3 | 2020-02-01T19:14:41.770Z | 2,020 | 2 | 19 | 5 | 51 | 0 | 387 | 67 | 2 | 0 | false | true | false | false | false | false | low |
60,020,368 | Is there a way to separate a few seconds from the beginning of an audio file? | <p>I want to set up a <strong>30-second</strong> audio file for the <strong>notification sound</strong> </p>
<p>But I have to separate the first 3 seconds or 4 seconds from this song and then adjust.</p>
<p>Is there a way?</p> | I want to set up a 30-second audio file for the notification sound But I have to separate the first 3 seconds or 4 seconds from this song and then adjust. Is there a way? | android|audio|notifications|mp3|trim | 0 | 2020-02-01T19:21:56.943Z | 2,020 | 2 | 19 | 5 | 27 | 0 | 170 | 77 | 5 | 0 | false | true | false | false | false | false | zero |
60,020,426 | Tests pass on local AS emulator but fail on Firebase test-lab | <p>I have the following piece of code which is: </p>
<ul>
<li>click a toggle from Firefox app</li>
<li>the toggle opens the Default apps menu from System settings </li>
<li>I open the browser list, pick my browser and return to the app by pressing back.</li>
</ul>
<p>This part works fine in my local Android studio em... | I have the following piece of code which is: click a toggle from Firefox app the toggle opens the Default apps menu from System settings I open the browser list, pick my browser and return to the app by pressing back. This part works fine in my local Android studio emulator and real device, but when I run it on Firebas... | android|firebase|automated-tests|android-testing|android-uiautomator | 1 | 2020-02-01T19:30:47.257Z | 2,020 | 2 | 19 | 5 | 297 | 1 | 518 | 61 | 5 | 1 | true | false | false | false | false | false | low |
60,020,477 | View Binding: Is there a way to generically inflate a layout given a layout id? | <p>With data binding, we have a DataBindingUtil class which has an inflate method that can handle any layout id:</p>
<pre><code>binding = DataBindingUtil.inflate<ViewDataBinding>(inflater, layoutId, parent, false)
</code></pre>
<p>With view binding, there doesn't appear to be a ViewBindingUtil class. Inflate me... | With data binding, we have a DataBindingUtil class which has an inflate method that can handle any layout id: [CODE] With view binding, there doesn't appear to be a ViewBindingUtil class. Inflate methods are meant to be called on concrete binding types. But what if you don't know the concrete binding type ahead of time... | android|android-databinding|android-viewbinding | 14 | 2020-02-01T19:36:49.403Z | 2,020 | 2 | 19 | 5 | 570 | 0 | 589 | 79 | 3 | 2 | true | true | false | false | true | false | medium |
60,020,595 | How to run a Service every X minutes even if the app is not running | <p>I would like to make an app that run a Service every 10 minutes when the app is not running. I've used an AlarmManager and a BroadcastReceiver to achieve this but the BroadcastReceiver is triggering only when the app is running. It's been a month I'm trying to figure out what's the problem, tried to make my service ... | I would like to make an app that run a Service every 10 minutes when the app is not running. I've used an AlarmManager and a BroadcastReceiver to achieve this but the BroadcastReceiver is triggering only when the app is running. It's been a month I'm trying to figure out what's the problem, tried to make my service a f... | java|android|service|scheduled-tasks|android-9.0-pie | 0 | 2020-02-01T19:54:48.403Z | 2,020 | 2 | 19 | 5 | 103 | 0 | 633 | 67 | 5 | 0 | false | true | false | false | false | false | zero |
60,020,776 | I want to create an ArrayList with a dynamic index not starting from 0 | <pre><code> public void jsonParse(){
jsonResArray = new ArrayList< >();
String url = "my-api-url";
JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, new
Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response)... | [CODE] I want to create dynamic index as i want to save service name against its id in string array but its giving me index out of bp Thanks in advance | java|android|arraylist|indexing|dynamic | -1 | 2020-02-01T20:19:16.807Z | 2,020 | 2 | 20 | 5 | 60 | 1 | 151 | 70 | 5 | 1 | true | false | false | false | false | true | negative |
60,020,928 | Importing Vector Asset into Android Studio | <p>I've created a few vector assets using Vectornator. If I import those assets into Android Studio, I receive a parsing error - as shown in the attached picture. </p>
<p><strong>Why do I get this parsing error and how can I create vector assets that do not create this error?</strong></p>
<p><a href="https://i.stack... | I've created a few vector assets using Vectornator. If I import those assets into Android Studio, I receive a parsing error - as shown in the attached picture. Why do I get this parsing error and how can I create vector assets that do not create this error? | android-studio|svg | -1 | 2020-02-01T20:38:48.733Z | 2,020 | 2 | 20 | 5 | 1,134 | 3 | 257 | 42 | 2 | 0 | false | false | false | false | false | true | negative |
60,021,023 | android.database.sqlite.SQLiteException: table contacts_table has no column named phone_number (code 1): , while compiling: INSERT INTO contacts_table | <p>i am making a <strong>contact save app</strong> Backend
so help</p>
<p>i do not know about this error, and i don not know how to solve this erorr.
<strong>com.andro.background.cruddb E/SQLiteLog: (1) table contacts_table has no column named phone_number</strong></p>
<p>error code:</p>
<pre><code>2020-02-02 02:14... | i am making a contact save app Backend so help i do not know about this error, and i don not know how to solve this erorr. com.andro.background.cruddb E/SQLiteLog: (1) table contacts_table has no column named phone_number error code: [CODE] MainActivity.java Code [CODE] MyDbHandler.java // db code [CODE] java>com...> M... | java|android | 0 | 2020-02-01T20:53:35.517Z | 2,020 | 2 | 20 | 5 | 24 | 0 | 378 | 150 | 2 | 5 | true | true | false | false | false | false | zero |
60,021,037 | AppCenter: How to retrieve the `name` property of `notification_content` object in Xamarin? | <p>I'm looking at the <a href="https://docs.microsoft.com/en-us/appcenter/push/rest-api" rel="nofollow noreferrer">documentation</a> on sending push notifications using AppCenter. I was able to successfully create and send push notifications, but I can't understand why we need the <code>name</code> property in the <cod... | I'm looking at the documentation on sending push notifications using AppCenter. I was able to successfully create and send push notifications, but I can't understand why we need the name property in the notification_content object. Is it required? Who uses it? The reason I ask is I want to filter out notifications on t... | android|xamarin|push-notification|visual-studio-app-center | 0 | 2020-02-01T20:55:45.257Z | 2,020 | 2 | 20 | 5 | 87 | 1 | 597 | 91 | 4 | 1 | true | false | false | false | false | false | zero |
60,021,106 | Kotlin Error When Setting Up Data Binding | <p>I am trying to inflate a sceneform fragment in my MainActivity and also do data bidning. I get this error message:</p>
<p>Error message</p>
<pre><code>Caused by: android.view.InflateException: Binary XML file line #27: Binary XML file line #27: Error inflating class fragment
Caused by: android.view.InflateExcepti... | I am trying to inflate a sceneform fragment in my MainActivity and also do data bidning. I get this error message: Error message [CODE] This is my MainActivity.kt [CODE] activity_main.xml [CODE] Has anyone seen this before and know a solution? | android|xml|kotlin|android-databinding|sceneform | 1 | 2020-02-01T21:08:17.707Z | 2,020 | 2 | 21 | 5 | 772 | 1 | 243 | 41 | 5 | 3 | true | false | false | false | false | false | low |
60,021,149 | MainActivity is not an enclosing class, "this" makes a constructor error | <p>I'm new to android studio and i have a problem when I'm trying to jump to a new activity, so when the line is:</p>
<pre><code>public class signup_activity extends AppCompatActivity {
ImageButton logupButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | I'm new to android studio and i have a problem when I'm trying to jump to a new activity, so when the line is: [CODE] I get the error: 'com.example.myapplication.MainActivity' is not an enclosing class and i so a couple of of people advising to chane the intent to this instead of MainActivity.this but when im changing ... | android|android-intent|android-activity | 0 | 2020-02-01T21:14:38.493Z | 2,020 | 2 | 21 | 5 | 651 | 2 | 380 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
60,021,189 | How to trap intellij plugin uninstall event | <p>During <strong>uninstall</strong> obviously there is a need for some plugins to free up resources that may have been created during or outside the plugin installation event.</p>
<p>Is there <em>really</em> no callback provision within the <em>intellij</em> plugin framework for this?</p>
<p>I note that this <a href... | During uninstall obviously there is a need for some plugins to free up resources that may have been created during or outside the plugin installation event. Is there really no callback provision within the intellij plugin framework for this? I note that this same question was asked in a different forum with no response... | android-studio|intellij-idea|android-gradle-plugin|intellij-plugin | 0 | 2020-02-01T21:20:50.543Z | 2,020 | 2 | 21 | 5 | 77 | 0 | 352 | 43 | 4 | 0 | false | true | false | false | false | false | zero |
60,021,211 | How to eliminate the danger of the "Rooms Repository" object.getInstance (app)? | <p>I'm developing an app using MVVM and dagger2. I got a comment about my "Rooms Repository" object.getInstance (app)" is a dangerous object and can cause my app will enter to infinite recursive loop. How can I fix this?</p>
<p>My RoomRepository:</p>
<pre><code>class RoomRepository @Inject constructor(app: App, priva... | I'm developing an app using MVVM and dagger2. I got a comment about my "Rooms Repository" object.getInstance (app)" is a dangerous object and can cause my app will enter to infinite recursive loop. How can I fix this? My RoomRepository: [CODE] My App Module [CODE] | android|android-studio|android-room|dagger-2|android-mvvm | 1 | 2020-02-01T21:25:16.153Z | 2,020 | 2 | 21 | 5 | 33 | 0 | 264 | 79 | 5 | 2 | true | true | false | false | false | false | low |
60,021,242 | Java.Lang.IllegalArgumentException: invalid Bitmap format Intermittently on startup | <p>I am doing stress testing on a variety of android devices, using Firebase Testlab, and am getting an unusual exception occurring (on some cloud test devices) that results in a black screen when loading textures on startup. We have the main activity onCreate() generating MainPage, which then runs Init() which loads t... | I am doing stress testing on a variety of android devices, using Firebase Testlab, and am getting an unusual exception occurring (on some cloud test devices) that results in a black screen when loading textures on startup. We have the main activity onCreate() generating MainPage, which then runs Init() which loads text... | c#|android|xamarin|opengl|opentk | 1 | 2020-02-01T21:28:42.160Z | 2,020 | 2 | 21 | 5 | 316 | 1 | 918 | 83 | 5 | 2 | true | false | false | false | false | false | low |
60,021,384 | BiometricPrompt dialog on lock screen | <p>I'm trying to implement the fingerprint authentication in my android app.<br>
I'm using this library: <a href="https://github.com/infinum/Android-Goldfinger" rel="noreferrer">https://github.com/infinum/Android-Goldfinger</a> which uses BiometricPrompt and it works really good.
The issue is that I need to use it in a... | I'm trying to implement the fingerprint authentication in my android app. I'm using this library: https://github.com/infinum/Android-Goldfinger which uses BiometricPrompt and it works really good. The issue is that I need to use it in an activity that shows up on the lock screen. In particular the activity is using the... | android|fingerprint|android-biometric | 5 | 2020-02-01T21:52:07.633Z | 2,020 | 2 | 21 | 5 | 1,030 | 0 | 809 | 37 | 3 | 1 | true | true | false | false | false | false | low |
60,021,551 | OpenCV + OpenGL: copy gl texture, modify with OpenCV and render | <p>I am writing an Android app that uses CameraX to download images from the camera to a <code>SurfaceTexture</code>, then bind the texture to OpenGL's textures to perform further rendering on a <code>GLSurfaceView</code>. I would like to 'inject' some modifications to the frames in <code>onDrawFrame</code> using OpenC... | I am writing an Android app that uses CameraX to download images from the camera to a SurfaceTexture , then bind the texture to OpenGL's textures to perform further rendering on a GLSurfaceView . I would like to 'inject' some modifications to the frames in onDrawFrame using OpenCV. I thought about copying the GL pixel ... | java|android|opencv|opengl|android-camerax | 2 | 2020-02-01T22:18:11.863Z | 2,020 | 2 | 22 | 5 | 926 | 1 | 951 | 63 | 5 | 2 | true | false | false | false | false | false | low |
60,021,668 | RecyclerView takes time loading Adapter values in a Fragment | <p>I have a Fragment (HealFragment) with RecyclerView which it's adapter is a different class retrieving data from Firestore thanks to FirestoreRecyclerAdapter and it's working good. But whenever I switch to this HealFragment it stutters(slows down) a little bit trying to <em>set the adapter to the RecyclerView</em>. T... | I have a Fragment (HealFragment) with RecyclerView which it's adapter is a different class retrieving data from Firestore thanks to FirestoreRecyclerAdapter and it's working good. But whenever I switch to this HealFragment it stutters(slows down) a little bit trying to set the adapter to the RecyclerView . This happens... | java|android|android-recyclerview|google-cloud-firestore|firebaseui | 0 | 2020-02-01T22:37:41.640Z | 2,020 | 2 | 22 | 5 | 614 | 1 | 1,040 | 60 | 5 | 2 | true | false | false | false | false | false | zero |
60,021,732 | How to pass an argument to a Fragment with Navigation Controller | <p>When using the Android Navigation Controller framework, I'm puzzled how to pass a large and complex object to a fragment. I see you can pass simple fields, integers, strings etc. And I see that you can pass "Parcelable" objects, which is some kind of serializable API. But in my case, I'm trying to display an icon pa... | When using the Android Navigation Controller framework, I'm puzzled how to pass a large and complex object to a fragment. I see you can pass simple fields, integers, strings etc. And I see that you can pass "Parcelable" objects, which is some kind of serializable API. But in my case, I'm trying to display an icon pack,... | android|android-fragments|kotlin|android-navigation | 1 | 2020-02-01T22:46:53.120Z | 2,020 | 2 | 22 | 5 | 148 | 0 | 548 | 64 | 4 | 0 | false | true | false | false | false | false | low |
60,021,739 | Start Activity From Service When Arrived Message From Watches | <p>I am writing an application that works with Wear OS. It is necessary that when starting the application on the watch, the application also immediately starts on the phone. The start command on the watch arrives successfully, but the application on the phone does not start. Tried launch using Intent Filters:</p>
<pr... | I am writing an application that works with Wear OS. It is necessary that when starting the application on the watch, the application also immediately starts on the phone. The start command on the watch arrives successfully, but the application on the phone does not start. Tried launch using Intent Filters: [CODE] In M... | android|android-activity|wear-os|start-activity | 1 | 2020-02-01T22:47:55.720Z | 2,020 | 2 | 22 | 5 | 170 | 1 | 446 | 61 | 4 | 4 | true | false | false | false | false | false | low |
60,021,825 | Singleton service's init not accessible from AppComponentFactory? | <p>I am using Kotlin to build an Android app. I have a Service that is also a singleton. When I call <code>startService()</code> in an <code>Activity</code>, I get the following exception: <code>java.lang.IllegalAccessException: void com.mydomain.socket.SocketService.<init>() is not accessible from java.lang.Clas... | I am using Kotlin to build an Android app. I have a Service that is also a singleton. When I call startService() in an Activity , I get the following exception: java.lang.IllegalAccessException: void com.mydomain.socket.SocketService.<init>() is not accessible from java.lang.Class<android.app.AppComponentFactory> Does ... | android|kotlin | 1 | 2020-02-01T23:01:22.437Z | 2,020 | 2 | 23 | 5 | 626 | 1 | 620 | 65 | 2 | 0 | false | false | false | false | false | false | low |
60,021,839 | Access a view inside Fragment which is initialised by using getFragmentbyTag() | <p>The app is crashing using <code>getFragmentManager().findFragmentByTag("HELLO");</code>. I want to refer the textview inside <code>HelloFragment</code> after getting the fragment from the back stack.</p>
<p><strong>MainActivity.java</strong></p>
<pre><code> HelloFragment helloFragment;
@Override
protec... | The app is crashing using getFragmentManager().findFragmentByTag("HELLO"); . I want to refer the textview inside HelloFragment after getting the fragment from the back stack. MainActivity.java [CODE] HelloFragment.java [CODE] In short I want to access a fragments textview when I get it from the stack using FindFragment... | java|android|android-fragments | 0 | 2020-02-01T23:03:57.417Z | 2,020 | 2 | 23 | 5 | 15 | 0 | 338 | 78 | 3 | 3 | true | true | false | false | false | false | zero |
60,021,898 | Android url Api by environment | <p>Good day. How can I make my application's android url configurable. That is to say; I currently have to change the url
and compile to test in development; Do the same process to test in QA. I don't know if that is necessary or there is a way that without recompiling from android studio I can try in one environment ... | Good day. How can I make my application's android url configurable. That is to say; I currently have to change the url and compile to test in development; Do the same process to test in QA. I don't know if that is necessary or there is a way that without recompiling from android studio I can try in one environment or a... | java|android|android-studio | 1 | 2020-02-01T23:13:18.557Z | 2,020 | 2 | 23 | 5 | 492 | 1 | 337 | 30 | 3 | 0 | false | false | false | false | false | false | low |
60,021,982 | Random Number with Java in Android Studio | <p>i'm try to make a random or unique code to payment method, for example the user must pay for Rp. 10.000 and then the user checkout and the system give the total payment with unique code in last three number. </p>
<p>For example user should pay for Rp. 10.000 and then the system showing Rp. 10.123
for other example,... | i'm try to make a random or unique code to payment method, for example the user must pay for Rp. 10.000 and then the user checkout and the system give the total payment with unique code in last three number. For example user should pay for Rp. 10.000 and then the system showing Rp. 10.123 for other example, user pay fo... | java|android | 1 | 2020-02-01T23:25:20.523Z | 2,020 | 2 | 23 | 5 | 67 | 1 | 689 | 41 | 2 | 1 | true | false | false | false | false | false | low |
60,021,989 | App crashing when switching to landscape mode (Android Studio) | <p>I'm new to android development, and I have been trying to use fragments, however, the app is crashing when I try to switch to landscape mode. I have been trying to use <code>android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:windowSoftInputMode="adj... | I'm new to android development, and I have been trying to use fragments, however, the app is crashing when I try to switch to landscape mode. I have been trying to use android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:windowSoftInputMode="adjustPan" in... | java|android|xml|android-studio|android-fragments | 0 | 2020-02-01T23:26:10.700Z | 2,020 | 2 | 23 | 5 | 79 | 0 | 679 | 62 | 5 | 7 | true | true | false | false | false | false | zero |
60,022,022 | SharedPreferences keep being deleted before use | <p>This is a doosie. I am storing int values in my shared prefs, essentially caching them so I can put them into the DB on next startup. I have a method to save them to a DB on startup.</p>
<p>This is followed by a method to remove the values from the shared prefs to reset them.</p>
<p>But they appear to keep removin... | This is a doosie. I am storing int values in my shared prefs, essentially caching them so I can put them into the DB on next startup. I have a method to save them to a DB on startup. This is followed by a method to remove the values from the shared prefs to reset them. But they appear to keep removing before I can stor... | java|android|sharedpreferences | 0 | 2020-02-01T23:32:07.623Z | 2,020 | 2 | 23 | 5 | 65 | 2 | 1,684 | 47 | 3 | 4 | true | false | false | false | false | false | zero |
60,022,028 | MVVM with Data Binding - Navigation in Fragment or ViewModel | <p>I am confused how to best structure Navigation when using MVVM with Data Binding.</p>
<p>These are my two suggestions, which one is best.</p>
<ol>
<li><p>Navigation from Fragment using onClickListener</p>
<pre><code>private fun setupUIListeners() {
btnToBrowse.setOnClickListener { it
navigateToSecondF... | I am confused how to best structure Navigation when using MVVM with Data Binding. These are my two suggestions, which one is best. Navigation from Fragment using onClickListener [CODE] Navigation using Data Binding from ViewModel, which I haven't figured out why it doesn't work yet. I do think it has to do something wi... | android|kotlin|mvvm|android-databinding|android-navigation | 1 | 2020-02-01T23:33:26.137Z | 2,020 | 2 | 23 | 5 | 1,908 | 0 | 484 | 60 | 5 | 3 | true | true | false | false | false | false | low |
60,022,039 | How to obfuscate a pre-built apk? | <p>I'm a blogger and I've been publishing third party android apps and games on my website since a couple of years ago. There are some exclusive apps which I need to put some toast messages in them. I'm novice at this but my question is about something different. I just want to obfuscate a prebuilt APK app or just a pa... | I'm a blogger and I've been publishing third party android apps and games on my website since a couple of years ago. There are some exclusive apps which I need to put some toast messages in them. I'm novice at this but my question is about something different. I just want to obfuscate a prebuilt APK app or just a parti... | android|apk|apktool | -1 | 2020-02-01T23:35:49.390Z | 2,020 | 2 | 23 | 5 | 478 | 1 | 1,129 | 33 | 3 | 0 | false | false | false | false | false | true | negative |
60,022,331 | OkHttpResponse - parse received chunked data which is text/html | <p>I am having a problem with parsing chunked response from the server.
This is how I am creating the request (simulating form submission) with post.</p>
<pre><code>val requestBody = MultipartBody.Builder()
.setType(MultipartBody.FORM)
.addFormDataPart("key1","value1")
.build()
val requestBuilder = Request.Bu... | I am having a problem with parsing chunked response from the server. This is how I am creating the request (simulating form submission) with post. [CODE] The problem for me is here, when I try to read the body source. [CODE] This is logging some glyphs. And I am not able to get the HTML data. Debugged: I have tried to ... | android|okhttp | 0 | 2020-02-02T00:36:32.897Z | 2,020 | 2 | 0 | 6 | 74 | 1 | 738 | 63 | 2 | 2 | true | false | false | false | false | false | zero |
60,022,506 | Is it possible to write an unremovable device policy manager for Android? | <p>My goal is to write an application for Android (>= 9.0) which basically offers a device-owner-style control like Google's "Android Device Policy".</p>
<p>The following criteria have to be met:</p>
<ul>
<li>Zero dependency on Google servers or any other 3rd party infrastructure like existing EMM solutions (MobileIr... | My goal is to write an application for Android (>= 9.0) which basically offers a device-owner-style control like Google's "Android Device Policy". The following criteria have to be met: Zero dependency on Google servers or any other 3rd party infrastructure like existing EMM solutions (MobileIron et cetera) The user sh... | android|provisioning|android-device-manager | 1 | 2020-02-02T01:16:24.603Z | 2,020 | 2 | 1 | 6 | 174 | 1 | 781 | 73 | 3 | 0 | false | false | false | false | false | false | low |
60,022,532 | Before asking for permissions Android application closed ? How resolve that? | <p>The first time I install this application, and when I launch MapsActivity, I am asked for permissions, which is normal. But the problem is that the application closes in the meantime. How can I modify my code to keep the application open, and the permission pop-up just overlaps. Thank you very much for your answer.<... | The first time I install this application, and when I launch MapsActivity, I am asked for permissions, which is normal. But the problem is that the application closes in the meantime. How can I modify my code to keep the application open, and the permission pop-up just overlaps. Thank you very much for your answer. Err... | java|android|android-permissions | 0 | 2020-02-02T01:22:48.433Z | 2,020 | 2 | 1 | 6 | 248 | 2 | 3,461 | 76 | 3 | 2 | true | false | false | false | false | false | zero |
60,022,553 | The android in-app update API is not working as I expected | <pre><code> @Override
protected void onCreate(Bundle savedInstanceState) {
...
appUpdateManager = AppUpdateManagerFactory.create(this);
Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo();
// Checks that the platform will allow the specified type of update.
appUpdat... | [CODE] This is the entire code from my MainActivity. I expected this to work as is as it comes right from the android docs. But it doesn't seem to do anything. To test it I put out a quick update and waited until it was approved. I opened it hoping to be blocked by a full screen saying I must update, but I could use th... | java|android|google-play | 0 | 2020-02-02T01:29:25.837Z | 2,020 | 2 | 1 | 6 | 480 | 1 | 333 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
60,022,726 | How do I keep track of Java Exceptions | <p>I've been a Java developer for many years developing mostly MVC Web applications using Spring. I am learning Kotlin and Android as a self development project, and mostly love it. I normally just figure things out, but I think I am missing something big here (as I like writing code that is easy to maintain and not pr... | I've been a Java developer for many years developing mostly MVC Web applications using Spring. I am learning Kotlin and Android as a self development project, and mostly love it. I normally just figure things out, but I think I am missing something big here (as I like writing code that is easy to maintain and not prone... | java|android|kotlin | 0 | 2020-02-02T02:15:07.373Z | 2,020 | 2 | 2 | 6 | 186 | 2 | 2,035 | 38 | 3 | 3 | true | false | false | false | false | false | zero |
60,022,852 | java.net.UnknownHostException: Unable to resolve host "api.themoviedb.org | <p>I'm getting this error message "java.net.UnknownHostException: Unable to resolve host "api.themoviedb.org": No address associated with hostname".
All the stackoverflow posts I read said that the manifest file might be wrong, but I think at this point it's right, so I'm not sure how to continue. </p>
<p>AndroidMani... | I'm getting this error message "java.net.UnknownHostException: Unable to resolve host "api.themoviedb.org": No address associated with hostname". All the stackoverflow posts I read said that the manifest file might be wrong, but I think at this point it's right, so I'm not sure how to continue. AndroidManifest.xml: [CO... | java|android|android-studio | 0 | 2020-02-02T02:44:50.090Z | 2,020 | 2 | 2 | 6 | 4,240 | 1 | 351 | 73 | 3 | 2 | true | false | true | false | false | false | zero |
60,022,872 | How to open a cached file in a PWA with a native app? | <p>I’m building a PWA that is going to used primarily on mobile. It has the ability to download maps (such as a KML file) and store them in the cache.
The goal however, is not to open this KML map within an in-browser map viewer when the user is offline. Rather, I want the native phone behavior to kick in where (in the... | I’m building a PWA that is going to used primarily on mobile. It has the ability to download maps (such as a KML file) and store them in the cache. The goal however, is not to open this KML map within an in-browser map viewer when the user is offline. Rather, I want the native phone behavior to kick in where (in the ca... | android|ios|progressive-web-apps | 2 | 2020-02-02T02:50:32.957Z | 2,020 | 2 | 2 | 6 | 149 | 0 | 1,287 | 53 | 3 | 0 | false | true | false | false | false | false | low |
60,022,950 | How to replace item in list based off name in kotlin? | <p>I'm making an application in Android Studio that takes DNA and transcribes it to mRNA. I also want to display the corresponding amino acids, but I am a bit stuck. All I can do so far is make a list from the mRNA sequence and cut them up into groups of 3. As my code shows here:</p>
<pre><code>package com.example.dna... | I'm making an application in Android Studio that takes DNA and transcribes it to mRNA. I also want to display the corresponding amino acids, but I am a bit stuck. All I can do so far is make a list from the mRNA sequence and cut them up into groups of 3. As my code shows here: [CODE] I want to replace each item in the ... | android|kotlin | 0 | 2020-02-02T03:17:55.063Z | 2,020 | 2 | 3 | 6 | 73 | 1 | 668 | 53 | 2 | 2 | true | false | false | false | false | false | zero |
60,023,053 | Why is my IDE looking in the wrong dependency folder for a needed class? | <p>I'm trying to run a script that was working fine until I changed the home folder.
Once I changed the home folder I ran into a few issues but I was able to resolve them. The only thing I have not been able to resolve is the following error.</p>
<pre><code> Exception in thread "main" java.lang.NoClassDefFoundError... | I'm trying to run a script that was working fine until I changed the home folder. Once I changed the home folder I ran into a few issues but I was able to resolve them. The only thing I have not been able to resolve is the following error. [CODE] This is an interesting error that, after some research, I have not been a... | java|android|selenium|appium | 1 | 2020-02-02T03:40:18.687Z | 2,020 | 2 | 3 | 6 | 835 | 1 | 1,246 | 72 | 4 | 2 | true | false | false | false | false | false | low |
60,023,119 | Interface, all methods must be abstract, but one? | <p>I have the situation:</p>
<pre><code>public interface AlarmBroadcasterRC {
abstract void DataIn(byte[] data);
abstract void DataOut(byte[] data);
abstract Boolean Drop(String id);
abstract Boolean Connected(String id, Boolean state);
}
public class GeneralActivity extends Activity implements View.O... | I have the situation: [CODE] But I get an error from compiler at the class declaration: Does it mean that in Android Java an interface MUST implement first method or, if all its methods are abstract, then the class must be abstract also? Sorry to extend the Q: I was following to one of the answers from here : | java|android|interface | -2 | 2020-02-02T03:56:45.440Z | 2,020 | 2 | 3 | 6 | 50 | 2 | 310 | 49 | 3 | 1 | true | false | false | false | false | true | negative |
60,023,200 | Show hint in android system settings | <p>I open a system setting for input methods</p>
<pre><code>Intent settingsIntent = new Intent("android.settings.INPUT_METHOD_SETTINGS");
startActivity(settingsIntent);
</code></pre>
<p>and I want to show some hint, to help user set settings right. I saw this in another similar app:</p>
<p>Screen from another app</p... | I open a system setting for input methods [CODE] and I want to show some hint, to help user set settings right. I saw this in another similar app: Screen from another app | android|android-settings | 1 | 2020-02-02T04:21:20.037Z | 2,020 | 2 | 4 | 6 | 303 | 2 | 170 | 36 | 2 | 1 | true | false | false | false | false | false | low |
60,023,270 | How to create a "interaction box" after receive a share intent? | <p><a href="https://i.stack.imgur.com/rlrmv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rlrmv.jpg" alt="google keep interaction box"></a></p>
<p>On that image what I did was share a Netflix show with the app Google Keep.
After you share something with Google Keep they show this box that works ab... | On that image what I did was share a Netflix show with the app Google Keep. After you share something with Google Keep they show this box that works above the other app (Netflix on that specific case), and with that, you can create a note and save it. I want to know how that works, how they did that little screen, I al... | android | 0 | 2020-02-02T04:39:56.393Z | 2,020 | 2 | 4 | 6 | 19 | 1 | 550 | 63 | 1 | 0 | false | false | false | false | false | false | zero |
60,023,291 | How to add directus sdk to android studio project? | <p>Could someone please help me in adding the directus sdk into android studio as i am a bit new to this. Thanks!</p>
<p>I have tried- <strong>implementation 'io.directus:directus-sdk:1.1.1'</strong>, in build.gradle but this doesn't seem to work, am i missing something?</p>
<p>Directus SDK Link:-
<a href="https://gi... | Could someone please help me in adding the directus sdk into android studio as i am a bit new to this. Thanks! I have tried- implementation 'io.directus:directus-sdk:1.1.1' , in build.gradle but this doesn't seem to work, am i missing something? Directus SDK Link:- https://github.com/directus/sdk-java Edit Code Placeme... | android|android-studio|directus | 1 | 2020-02-02T04:46:38.290Z | 2,020 | 2 | 4 | 6 | 246 | 2 | 886 | 50 | 3 | 0 | false | false | false | false | false | false | low |
60,023,306 | How to set an int parameter in sugar orm findwithquery method to retreive data from sqlite database | <p>Guys I want to set an int parameter to the findwithquery method in sugar orm to retrieve data from sqlite database in android.
This is the query</p>
<pre><code>List<cart> c=cart.findWithQuery(cart.class,
"Select * from cart where customer=? and status=?",1,"NOTPAID")
</code></pre>
<p>*the customer field is... | Guys I want to set an int parameter to the findwithquery method in sugar orm to retrieve data from sqlite database in android. This is the query [CODE] *the customer field is a integer field in the database When I execute the above I get syntax error near "status" | android|sql|database|android-sqlite|sugarorm | 0 | 2020-02-02T04:50:58.793Z | 2,020 | 2 | 4 | 6 | 57 | 1 | 264 | 99 | 5 | 1 | true | false | false | false | false | false | zero |
60,023,445 | How to get a file from specific folder of device file manager without opening file manager in android studio? | <p>I want to encrypt a video immediately after downloading it. My video stores on the location: /storage/emulated/0/storage/emulated/0/All ExamBd/FIlename-1.mp4 . </p>
<p>Now, How can I get this file from the specific folder of the device file manager without opening the file manager in android studio? can anyone tell... | I want to encrypt a video immediately after downloading it. My video stores on the location: /storage/emulated/0/storage/emulated/0/All ExamBd/FIlename-1.mp4 . Now, How can I get this file from the specific folder of the device file manager without opening the file manager in android studio? can anyone tell how to refr... | java|android | 1 | 2020-02-02T05:20:20.343Z | 2,020 | 2 | 5 | 6 | 87 | 1 | 350 | 109 | 2 | 0 | false | false | false | false | false | false | low |
60,023,489 | How to reduce selected comment distance from code in Android Studio | <p>When I use IntelliJ idea and comment some portion of code, the comments are always close to code like below </p>
<p><img src="https://i.stack.imgur.com/d4Ypp.png" alt="intellij idea short comment"></p>
<p>But in Android Studio comments are far away from the code like below</p>
<p><img src="https://i.stack.imgur.c... | When I use IntelliJ idea and comment some portion of code, the comments are always close to code like below But in Android Studio comments are far away from the code like below How can I achieve comment settings like Intellij Idea in Android Studio ? | android|android-studio|intellij-idea | 0 | 2020-02-02T05:30:50.360Z | 2,020 | 2 | 5 | 6 | 143 | 2 | 250 | 67 | 3 | 0 | false | false | false | false | false | false | zero |
60,023,496 | How to save user input data and display it with Android Studio | <p>I want to make a basic app with 3 pages where the user can submit contact data(name, number, and email)on a SecondActivity page and on the MainActivity page, the name will be displayed as a list with other submitted names and the user can click on the name and it will navigate to a ThirdActivity page and display the... | I want to make a basic app with 3 pages where the user can submit contact data(name, number, and email)on a SecondActivity page and on the MainActivity page, the name will be displayed as a list with other submitted names and the user can click on the name and it will navigate to a ThirdActivity page and display the nu... | android | 0 | 2020-02-02T05:33:25.913Z | 2,020 | 2 | 5 | 6 | 2,092 | 1 | 756 | 62 | 1 | 4 | true | false | false | false | false | false | zero |
60,023,654 | Camera is not running | <p>I’m trying to make a prototype application that over and over</p>
<p>1- record a video with the camera for x seconds</p>
<p>2- displays this video</p>
<p>For this I use the components Camera from expo-camera and Video from expo-av</p>
<p>For this I have two views :</p>
<p>I use in my code the stateSequence prop... | I’m trying to make a prototype application that over and over 1- record a video with the camera for x seconds 2- displays this video For this I use the components Camera from expo-camera and Video from expo-av For this I have two views : I use in my code the stateSequence property and the sequencer() function which dis... | android|react-native|expo | 3 | 2020-02-02T06:07:10.503Z | 2,020 | 2 | 6 | 6 | 2,350 | 2 | 852 | 21 | 3 | 2 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.