id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71,985,200 | Service and IntentService | <p>If a Service is created as a subclass of IntentService base class which of the following statement is accurate?</p>
<ul>
<li>Service runs in the context of the main thread of the application owning the Service</li>
<li>Service runs as a worker thread in the application owning the application</li>
<li>Service runs in... | If a Service is created as a subclass of IntentService base class which of the following statement is accurate? Service runs in the context of the main thread of the application owning the Service Service runs as a worker thread in the application owning the application Service runs in the context of the invoking appli... | android|android-intent|service|intentservice|multiple-choice | -2 | 2022-04-24T03:09:03.320Z | 2,022 | 4 | 3 | 6 | 22 | 1 | 339 | 25 | 5 | 0 | false | false | false | false | false | true | negative |
72,028,252 | Increase gyroscope data collection on Chrome in Android | <p>Environment: Chrome browser on Android.</p>
<p>I've been trying to collect data from the gyroscope at a speed of 30fps, but no matter how fast I call the function, the new data doesn't go anywhere close to that. I mean, you can call the API as much as you want, but you'll get duplicated data.</p>
<p>Any ideas?</p>
<... | Environment: Chrome browser on Android. I've been trying to collect data from the gyroscope at a speed of 30fps, but no matter how fast I call the function, the new data doesn't go anywhere close to that. I mean, you can call the API as much as you want, but you'll get duplicated data. Any ideas? Thanks | javascript|android|gyroscope | 0 | 2022-04-27T11:53:38.313Z | 2,022 | 4 | 11 | 2 | 22 | 1 | 304 | 55 | 3 | 0 | false | false | false | false | false | false | zero |
72,056,429 | TypeError when converting firebase data snapshot to map | <p>I am currently following a Flutter tutorial and the instruction states that I retrieve data from Firestore and convert to a map, the tutorial uses the code below to achieve that.</p>
<pre><code>Query query = db.collection(widget.dbName).orderBy("time");
// Map the documents to the data payload
slides = que... | I am currently following a Flutter tutorial and the instruction states that I retrieve data from Firestore and convert to a map, the tutorial uses the code below to achieve that. [CODE] After conversion, I'm supposed to pass the value into a StreamBuilder like so [CODE] The _buildStoryPage function is given below [CODE... | android|ios|flutter|dart | 0 | 2022-04-29T10:20:59.420Z | 2,022 | 4 | 10 | 4 | 22 | 1 | 586 | 55 | 4 | 4 | true | false | false | false | false | false | zero |
72,068,327 | "No such table" error in SQLite Android using SQLIteOpenHelper | <p>I have created a DBHandler class that extends SQLiteOpenHelper. I am getting an error with the category table:</p>
<p><code>E/SQLiteLog: (1) no such table: CATEGORY in "INSERT INTO CATEGORY(Locked,Name,Level,BoolQuestions) VALUES (?,?,?,?)" E/SQLiteLog: (1) no such table: CATEGORY in "SELECT * FROM CA... | I have created a DBHandler class that extends SQLiteOpenHelper. I am getting an error with the category table: E/SQLiteLog: (1) no such table: CATEGORY in "INSERT INTO CATEGORY(Locked,Name,Level,BoolQuestions) VALUES (?,?,?,?)" E/SQLiteLog: (1) no such table: CATEGORY in "SELECT * FROM CATEGORY WHERE Nam... | android|database|sqlite | 0 | 2022-04-30T11:59:03.220Z | 2,022 | 4 | 11 | 5 | 22 | 1 | 603 | 62 | 3 | 6 | true | false | false | false | false | false | zero |
72,024,811 | Android Studio webView PDF is showing <IFRAME> and not pdf | <p>i am trying to fetch PDF in PDF but in result i am getting</p>
<p>ERROR</p>
<pre><code><iframe width="100%" height="1000" src="https://ns3.creativerp.org/kbm/web/tcpdf/print/generated_form1.php?id=K33228501" ></iframe>
</code></pre>
<p>xml</p>
<pre><code> <WebView
... | i am trying to fetch PDF in PDF but in result i am getting ERROR [CODE] xml [CODE] Java class [CODE] | java|android|pdf|webview|androidpdfviewer | 0 | 2022-04-27T07:24:15.573Z | 2,022 | 4 | 7 | 2 | 278 | 1 | 100 | 58 | 5 | 3 | true | false | false | false | false | false | zero |
71,837,402 | We recommend using a newer Android Gradle plugin to use compileSdkPreview = "Tiramisu" | <p>I am using Android Studio Dolphin | 2021.3.1 Canary 8 for JEtpack Compose,</p>
<p>OS: Windows 10 (latest version)</p>
<p>My @Preview() stop working after I update my Android Studio:</p>
<pre class="lang-kotlin prettyprint-override"><code>
@Preview(showBackground = true)
@Composable
fun DefaultPreview()
{
Templat... | I am using Android Studio Dolphin | 2021.3.1 Canary 8 for JEtpack Compose, OS: Windows 10 (latest version) My @Preview() stop working after I update my Android Studio: [CODE] and I got this error: [CODE] Moreover I got this error: [CODE] Even my Android Gradle Plugin is the newest. here is my build.gradle file: [CODE] ... | android-studio|kotlin|gradle|android-jetpack-compose|android-tiramisu | 2 | 2022-04-12T05:11:59.500Z | 2,022 | 4 | 5 | 1 | 790 | 1 | 405 | 86 | 5 | 5 | true | false | false | false | false | false | low |
71,808,458 | How can i change the code so mListener can be nullable? | <p>So, my problem is i need to initialize <code>mListener</code> with my current code, how can i make it nullable?</p>
<pre><code>class TaskRecycleAdapter: RecyclerView.Adapter<TaskRecycleAdapter.MyViewHolder>() {
private var list = emptyList<Data>()
private lateinit var mListener : OnItemClickLis... | So, my problem is i need to initialize mListener with my current code, how can i make it nullable? [CODE] | android|kotlin|android-recyclerview | 0 | 2022-04-09T13:23:20.537Z | 2,022 | 4 | 13 | 5 | 23 | 1 | 105 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
71,960,641 | User profile fragment Setting | <p>i am creating small app with login and signup option and also with profile fragment so that user can update their profile later. i design my user profile layout but don't know how to code with java so when user open profile fragment he changed his detail . i am using firebasefirestore
please help me</p>
<p><div clas... | i am creating small app with login and signup option and also with profile fragment so that user can update their profile later. i design my user profile layout but don't know how to code with java so when user open profile fragment he changed his detail . i am using firebasefirestore please help me [CODE] | java|android|profile | 0 | 2022-04-21T20:40:42.330Z | 2,022 | 4 | 20 | 3 | 23 | 1 | 307 | 29 | 3 | 1 | true | false | false | false | false | false | zero |
71,996,493 | The font attribute not overriding theme | <p>Adding fontFamily in the view in the layout doesn't effect anything , it should override the theme as explained by the instructor, it should override because attribute have highest priority .</p>
<pre><code><TextView
android:fontFamily="monospace"
/>
</code></pre>
<p>Styles.xml</p>
<p... | Adding fontFamily in the view in the layout doesn't effect anything , it should override the theme as explained by the instructor, it should override because attribute have highest priority . [CODE] Styles.xml [CODE] But the font attribute doesn't override | android|xml | 0 | 2022-04-25T08:21:45.940Z | 2,022 | 4 | 8 | 0 | 23 | 1 | 256 | 39 | 2 | 2 | true | false | false | false | false | false | zero |
72,024,729 | Using Bing Maps i Non - Mixed reality mobil app | <p>Anyone here used bing maps in an android app? I have tried the method at</p>
<p><a href="https://docs.microsoft.com/en-us/bingmaps/sdk-native/getting-started-android/" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/bingmaps/sdk-native/getting-started-android/</a></p>
<p>But keep unable to resolve the cre... | Anyone here used bing maps in an android app? I have tried the method at https://docs.microsoft.com/en-us/bingmaps/sdk-native/getting-started-android/ But keep unable to resolve the credential_key. Tried on the bing maps forum and was not any help as all apear to only be interested in web based applications or mixed re... | android | 0 | 2022-04-27T07:18:26.917Z | 2,022 | 4 | 7 | 2 | 23 | 1 | 442 | 47 | 1 | 0 | false | false | false | false | false | false | zero |
72,027,234 | How to get Firebase Value and display image on Android apps | <p>The Android app and Firebase are connected.</p>
<p>When a flame is detected by the Arduino flame detection sensor, the data value(name : "state") in the Firebase changes from 1 to 0 as follows:</p>
<p><img src="https://i.stack.imgur.com/2bX3E.png" alt="enter image description here" /></p>
<p>I want to auto... | The Android app and Firebase are connected. When a flame is detected by the Arduino flame detection sensor, the data value(name : "state") in the Firebase changes from 1 to 0 as follows: I want to automatically display the image in the Android app when this value("state") changes to 0. this is my co... | java|android|firebase|firebase-realtime-database | 0 | 2022-04-27T10:31:05.493Z | 2,022 | 4 | 10 | 2 | 23 | 1 | 708 | 59 | 4 | 1 | true | false | false | false | false | false | zero |
72,032,812 | Dynamically register BroadcastReceiver with IntentFilter and let AlarmManager handle PendingIntent | <p>Using a virtual Pixel 5 (API 28 Android 9.0), I would like to pass the instance of my class <code>MainActivity</code> to the inner class <code>MyAlarm</code>, but since statically declaring the receiver in the manifest would result in an instantiation error, I decided to create it dynamically. I don't know what the ... | Using a virtual Pixel 5 (API 28 Android 9.0), I would like to pass the instance of my class MainActivity to the inner class MyAlarm , but since statically declaring the receiver in the manifest would result in an instantiation error, I decided to create it dynamically. I don't know what the argument action of IntentFil... | android|kotlin|broadcastreceiver|alarmmanager|intentfilter | 0 | 2022-04-27T17:11:06.970Z | 2,022 | 4 | 17 | 2 | 23 | 1 | 603 | 98 | 5 | 1 | true | false | false | false | false | false | zero |
72,075,824 | Is there a way to get scrollstate from Lazyrow | <p>I have made a LazyRow that i now want to be able to get the scrollposition from. What i understand Scrollablerow has been deprecated. (correct me if im wrong) The thing is that i cant make a scrollablerow so i thought lets make a lazy one then. but i have no clue how to get scrollposition from the lazyrow. i know ho... | I have made a LazyRow that i now want to be able to get the scrollposition from. What i understand Scrollablerow has been deprecated. (correct me if im wrong) The thing is that i cant make a scrollablerow so i thought lets make a lazy one then. but i have no clue how to get scrollposition from the lazyrow. i know how t... | list|android-jetpack-compose | 0 | 2022-05-01T10:18:10.707Z | 2,022 | 5 | 10 | 6 | 23 | 1 | 404 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
72,089,318 | How to handle same code on two button Click Event | <p>I am using a Recyclerview to show some question and answer. On click on arrow button doing some stuff and on click on tvTitle doing same stuff.</p>
<p>Is there any way that I should not repeat the same code on two click listener. I can't use the method outside the onBindViewHolder because I am using viewholder item ... | I am using a Recyclerview to show some question and answer. On click on arrow button doing some stuff and on click on tvTitle doing same stuff. Is there any way that I should not repeat the same code on two click listener. I can't use the method outside the onBindViewHolder because I am using viewholder item which can'... | android|android-recyclerview|android-adapter | 0 | 2022-05-02T16:01:09.557Z | 2,022 | 5 | 16 | 0 | 23 | 1 | 374 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
72,094,520 | how to make a table unique to a user in SQLite | <p>I am creating my first app using SQLite and I am facing issues making a user's scores unique to the user. So basically, if one user inputs scores, and another user logins, all the scores will be displayed, no matter which user-inputted them. How do I fix this so that their scores are unique to the users?</p>
<p>Here... | I am creating my first app using SQLite and I am facing issues making a user's scores unique to the user. So basically, if one user inputs scores, and another user logins, all the scores will be displayed, no matter which user-inputted them. How do I fix this so that their scores are unique to the users? Here is my dat... | android|sqlite | 0 | 2022-05-03T03:21:13.557Z | 2,022 | 5 | 3 | 1 | 23 | 1 | 339 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
71,796,991 | How to show items of lazylist out of the Card in Jetpack Compose | <p>I have LazyRow in a Card and I want scrolling items to come outside the card,
could you please guide me, how can I do that?</p>
<p><a href="https://i.stack.imgur.com/hAfCL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hAfCL.png" alt="enter image description here" /></a></p>
<p><a href="https://i... | I have LazyRow in a Card and I want scrolling items to come outside the card, could you please guide me, how can I do that? Thank you in advance for your help. | android|kotlin|scroll|android-jetpack-compose|lazylist | 1 | 2022-04-08T12:26:42.327Z | 2,022 | 4 | 12 | 4 | 279 | 1 | 159 | 64 | 5 | 0 | false | false | false | false | false | false | low |
71,798,179 | Difference between 'com.google.android.material:material:1.6.0' and implementation 'androidx.compose.material:material:1.1.1' | <p>What is the difference between these 2 implementations in the <code>build.gradle</code> dependencies file? Do they both need to be in my Jetpack Compose project if I want to use the <code>Theme.Material3.DayNight</code> theme?</p>
<pre><code>implementation 'com.google.android.material:material:1.6.0'
</code></pre>
<... | What is the difference between these 2 implementations in the build.gradle dependencies file? Do they both need to be in my Jetpack Compose project if I want to use the Theme.Material3.DayNight theme? [CODE] and [CODE] | android|gradle|material-design|android-jetpack-compose|androidx | 0 | 2022-04-08T13:47:32.323Z | 2,022 | 4 | 13 | 4 | 1,303 | 1 | 218 | 125 | 5 | 2 | true | false | false | false | false | false | zero |
71,897,101 | How to resize my image taken from internal storage before updating to Firebase cloud? | <p>This is the logic where i take the picture from gallery/camera and I upload it to firebase cloud.
I take other informations from another EditText and i checked if they i can upload or not.</p>
<pre><code> btnSubmit.setOnClickListener(new View.OnClickListener() {
@Override
public void onCli... | This is the logic where i take the picture from gallery/camera and I upload it to firebase cloud. I take other informations from another EditText and i checked if they i can upload or not. [CODE] How can i upload my code to resize my image(taken from gallery/camera) to size 700X1000? | android|firebase|image|file-upload | 0 | 2022-04-16T20:01:40.517Z | 2,022 | 4 | 20 | 5 | 24 | 1 | 284 | 85 | 4 | 1 | true | false | false | false | false | false | zero |
71,987,537 | How to use Flutter OrientationBuilder without GridVeiw | <p>All <code>OrientationBuilder</code> examples I could find use <code>GridView</code>.
I wanted to use <code>Column</code> and <code>Row</code> widgets instead.
This is a code excerpt I used. This works for portrait, but when I turn the phone to landscape, the widgets disappear, I just see background. Turning it back ... | All OrientationBuilder examples I could find use GridView . I wanted to use Column and Row widgets instead. This is a code excerpt I used. This works for portrait, but when I turn the phone to landscape, the widgets disappear, I just see background. Turning it back to portrait brings it back to normal. What am I doing ... | android|flutter|dart | 0 | 2022-04-24T10:31:00.707Z | 2,022 | 4 | 10 | 6 | 24 | 1 | 338 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
72,006,084 | Nativescript Core > TabStripItem auto-formatting text (Android) | <p>Re-posted here from <a href="https://github.com/orgs/NativeScript/discussions/9880" rel="nofollow noreferrer">here</a></p>
<p>I'm working with Tabs / TabStrip / TabStripItem and I'm running into a problem (this is only tested on Android).</p>
<p>I'm creating a Label using a FormattedString and Span tags. Each Span t... | Re-posted here from here I'm working with Tabs / TabStrip / TabStripItem and I'm running into a problem (this is only tested on Android). I'm creating a Label using a FormattedString and Span tags. Each Span tag has its own style (its own fontSize / fontWeight). When I attach this Label to the TabStripItem 'label' prop... | android|nativescript | 0 | 2022-04-25T21:51:24.643Z | 2,022 | 4 | 21 | 0 | 24 | 1 | 833 | 63 | 2 | 3 | true | false | false | false | false | false | zero |
72,023,469 | I am trying to build an android application that use location information, but I am confused what to use foreground or background location permissions | <p>I am trying to build an android application that use location information, but I am confused what to use foreground or background location permissions
my goal is to get location information always while the app is running even in the background and stop getting the location once the app is fully closed.
so what shou... | I am trying to build an android application that use location information, but I am confused what to use foreground or background location permissions my goal is to get location information always while the app is running even in the background and stop getting the location once the app is fully closed. so what should ... | android|background|location|android-permissions|foreground | 0 | 2022-04-27T04:57:44.840Z | 2,022 | 4 | 4 | 2 | 24 | 1 | 362 | 150 | 5 | 0 | false | false | false | false | false | false | zero |
72,049,873 | CometChat Cannot resolve symbol 'CometChatUserListScreen' | <p>I have been following the tutorial for CometChat. It seems some imports are not working. How to I fix?</p>
<p>tutorial site: <a href="https://www.cometchat.com/tutorials/how-to-build-an-android-chat-app-in-java" rel="nofollow noreferrer">https://www.cometchat.com/tutorials/how-to-build-an-android-chat-app-in-java</a... | I have been following the tutorial for CometChat. It seems some imports are not working. How to I fix? tutorial site: https://www.cometchat.com/tutorials/how-to-build-an-android-chat-app-in-java [CODE] screen shot here | java|android-studio|uikit|cometchat | 0 | 2022-04-28T20:31:28.917Z | 2,022 | 4 | 20 | 3 | 24 | 1 | 218 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
72,059,670 | Gravity in two lib-gdx dimensions | <p>I’m developing an application inspired by the first ping pong games. So there are simply two bars and one ball and two players can challenge each other by moving these bars with their finger.
The application is for android phones and developed in java.</p>
<p><strong>I used the gdx lib framework</strong></p>
<p>This... | I’m developing an application inspired by the first ping pong games. So there are simply two bars and one ball and two players can challenge each other by moving these bars with their finger. The application is for android phones and developed in java. I used the gdx lib framework This is the style of the game Style Ex... | java|android|android-studio|libgdx|gravity | 1 | 2022-04-29T14:42:06.677Z | 2,022 | 4 | 14 | 4 | 24 | 1 | 1,060 | 33 | 5 | 1 | true | false | false | false | false | false | low |
72,066,781 | Does the Android studio modify the parameter values? | <p>During the creation of the calendar app, the calendar variable representing the current date was set as a parameter. I copied it to a calendar variable called cal, and in the process of changing the date of cal to 1, the selectedDate variable also changes to one day.</p>
<pre><code> public ArrayList<String>... | During the creation of the calendar app, the calendar variable representing the current date was set as a parameter. I copied it to a calendar variable called cal, and in the process of changing the date of cal to 1, the selectedDate variable also changes to one day. [CODE] this is the function. | java|android|calendar | 0 | 2022-04-30T08:14:37.237Z | 2,022 | 4 | 8 | 5 | 24 | 1 | 296 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
72,074,754 | Advice on how to create a leaderboard in flutter | <p>I am creating a leaderboard in flutter and i want the data for my leaderboard to use a dynamic array but i do not have any idea on how to do this can someone suggest a way to do this</p> | I am creating a leaderboard in flutter and i want the data for my leaderboard to use a dynamic array but i do not have any idea on how to do this can someone suggest a way to do this | android|arrays|flutter | 0 | 2022-05-01T07:19:23.800Z | 2,022 | 5 | 7 | 6 | 24 | 1 | 182 | 48 | 3 | 0 | false | false | false | false | false | false | zero |
72,116,037 | Android and SQLite: "nested" getReadableDatabase | <p>In my Android app I use the following code to access db:</p>
<pre><code>public class DbHelper extends SQLiteOpenHelper {
/* ... */
}
public class DbManager {
private DbHelper helper = null;
public DbManager(Context context) {
helper = new DbHelper(context);
}
public void method1(bool cond... | In my Android app I use the following code to access db: [CODE] method1 and method2 can be called independently from outside the class. In addition, there are situations where method1 must call method2 . In method2 I need a db instance, so I should call SQLiteDatabase db = helper.getReadableDatabase(); . This is ok if ... | java|android|android-sqlite | 1 | 2022-05-04T16:01:54.443Z | 2,022 | 5 | 16 | 2 | 24 | 1 | 765 | 48 | 3 | 2 | true | false | false | false | false | false | low |
71,930,242 | Flutter app orientation changes from portrait to landscape | <p>When I load my flutter app which uses " scan: ^1.6.0 " package once the scanner gets mounted my app shifts orientation from portrait to landscape this only happens in tablet mode where the orientation is fixed to landscape mode ,On the mobile app I do not face this issue, I have also set the screenOrientat... | When I load my flutter app which uses " scan: ^1.6.0 " package once the scanner gets mounted my app shifts orientation from portrait to landscape this only happens in tablet mode where the orientation is fixed to landscape mode ,On the mobile app I do not face this issue, I have also set the screenOrientation... | android|ios|flutter|dart|barcode-scanner | 0 | 2022-04-19T19:22:18.760Z | 2,022 | 4 | 19 | 1 | 280 | 1 | 396 | 58 | 5 | 0 | false | false | false | false | false | false | zero |
72,052,211 | Android Paging 3 Adapter scroll to the target position in the next page from other view | <p>I have 2 activities: List Item and Detail item.</p>
<ul>
<li>List item using Paging 3 to display list item. When click an item it direct to Detail item in other activity.</li>
<li>Detail item using ViewPager to view detail and it can swipe left/right to view next/pre item(item list same with the list in item view).<... | I have 2 activities: List Item and Detail item. List item using Paging 3 to display list item. When click an item it direct to Detail item in other activity. Detail item using ViewPager to view detail and it can swipe left/right to view next/pre item(item list same with the list in item view). The problem is: When star... | android|android-livedata|coroutine | 1 | 2022-04-29T02:38:23.020Z | 2,022 | 4 | 2 | 4 | 536 | 1 | 857 | 87 | 3 | 0 | false | false | false | false | false | false | low |
71,806,098 | how to call supportFragmentManager for dialogFragment in onBindViewHolder? | <p>i have a problem here, idk how to show dialogFragment in my Adapter. i want to everytime my itemView click it will show my dialogFragment</p>
<p>this is my onBindViewHolder</p>
<pre><code>override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val type = list[position]
holder.binding.tvTitle.text ... | i have a problem here, idk how to show dialogFragment in my Adapter. i want to everytime my itemView click it will show my dialogFragment this is my onBindViewHolder [CODE] this is my code using navigationcomponent, but i want to show the Dialog. [CODE] | kotlin|android-fragments|android-recyclerview|android-dialogfragment | 0 | 2022-04-09T07:34:38.950Z | 2,022 | 4 | 7 | 5 | 25 | 1 | 253 | 74 | 4 | 2 | true | false | false | false | false | false | zero |
71,830,306 | Why does Android Studio show import... vs. the actual import statements | <p>I am new to Android development.</p>
<p>At various times I have noticed that the top of a Kotlin file shows <code>import...</code> and I have to click it each time to display the actual import directives.</p>
<p>What is that behavior? Why do the import directives not just display each time I open the file?</p> | I am new to Android development. At various times I have noticed that the top of a Kotlin file shows import... and I have to click it each time to display the actual import directives. What is that behavior? Why do the import directives not just display each time I open the file? | android-studio|kotlin | 0 | 2022-04-11T15:17:09.377Z | 2,022 | 4 | 15 | 0 | 25 | 1 | 280 | 71 | 2 | 0 | false | false | false | false | false | false | zero |
71,834,344 | Button doesn't change it's color | <p>I have some activity and this button there, i want it to be white and whith round cornerns</p>
<pre class="lang-xml prettyprint-override"><code><Button
android:layout_width="143dp"
android:layout_height="73dp"
android:background="@drawable/round_white_button"
... | I have some activity and this button there, i want it to be white and whith round cornerns [CODE] so i have this drawable file, but button color is violet. Why it's not working [CODE] | android|button | 0 | 2022-04-11T21:10:53.897Z | 2,022 | 4 | 21 | 0 | 25 | 1 | 183 | 32 | 2 | 2 | true | false | false | false | false | false | zero |
71,834,745 | How do I make sure that radiobuttons arent clickable if the checkbox is unchecked in android studio? | <p>I'm practicing an exercise from a book, and it's asking me to first, create a checkbox and then three radiobuttons. If the checkbox is unchecked, then the radiobuttons should appear to be disabled/grey/unclickable. However, as soon as you check the checkbox, the radiobuttons should appear to be working and clickable... | I'm practicing an exercise from a book, and it's asking me to first, create a checkbox and then three radiobuttons. If the checkbox is unchecked, then the radiobuttons should appear to be disabled/grey/unclickable. However, as soon as you check the checkbox, the radiobuttons should appear to be working and clickable. I... | android-studio|checkbox|radio-button|onclicklistener|radio-group | 0 | 2022-04-11T21:59:58.990Z | 2,022 | 4 | 21 | 0 | 25 | 1 | 557 | 100 | 5 | 0 | false | false | false | false | false | false | zero |
71,842,997 | Android image edit intent: retrieving saved file location | <p>Following <a href="https://stackoverflow.com/questions/31640029/android-image-editor-intent-retrieving-saved-file-location">1</a>, how can I retrieve the image generated by edit intent if it was not saved to the same uri as the orignal image?</p> | Following 1 , how can I retrieve the image generated by edit intent if it was not saved to the same uri as the orignal image? | android | 0 | 2022-04-12T12:45:42.180Z | 2,022 | 4 | 12 | 1 | 25 | 1 | 125 | 57 | 1 | 0 | false | false | false | false | false | false | zero |
71,989,810 | Is it possible to make a custom project view in IntelliJ IDEA? | <p>Can I have a custom project view in <code>IntelliJ IDEA</code>? For example in <code>Android Studio</code> we get this:</p>
<img src="https://i.stack.imgur.com/Tn8Mx.png" width="500"/>
<p>Now, I want a custom one like that to show only java files and one to show only xml files. It is possible to do so?</p> | Can I have a custom project view in IntelliJ IDEA ? For example in Android Studio we get this: Now, I want a custom one like that to show only java files and one to show only xml files. It is possible to do so? | android-studio|intellij-idea|project-explorer | -1 | 2022-04-24T15:23:31.253Z | 2,022 | 4 | 15 | 6 | 25 | 1 | 210 | 62 | 3 | 0 | false | false | false | false | false | true | negative |
72,007,328 | website or app for sending notification for a location | <p>Is there a website or app for sending notification for a specific location?
I need to send notification and make it available for people in that location.
Please let me know.</p> | Is there a website or app for sending notification for a specific location? I need to send notification and make it available for people in that location. Please let me know. | android|ios|notifications | 0 | 2022-04-26T01:20:48.300Z | 2,022 | 4 | 1 | 1 | 25 | 1 | 174 | 54 | 3 | 0 | false | false | false | false | false | false | zero |
72,012,103 | I get incomplete text on the emulator but logcat doesn't show an error | <p>I created a java activity class called Capitolo8.java, I added a WebView as below but on the emulator the text is not shown except the line I set here in bold, were this code <code>%3c%2fbr%3</code> isn't inserted, while works in all others classes I'm using it. I need to create a list of terms and book's referenc... | I created a java activity class called Capitolo8.java, I added a WebView as below but on the emulator the text is not shown except the line I set here in bold, were this code %3c%2fbr%3 isn't inserted, while works in all others classes I'm using it. I need to create a list of terms and book's reference lines. How can I... | java|android | -1 | 2022-04-26T10:08:21.203Z | 2,022 | 4 | 10 | 1 | 25 | 1 | 438 | 70 | 2 | 2 | true | false | false | false | false | true | negative |
72,021,435 | Android - where are videos taken from intent stored? | <p>Let's say I have a method inside my activity that looks like this:</p>
<pre><code> private void dispatchTakeVideoIntent() {
Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
if (takeVideoIntent.resolveActivity(getActivity().getPackageManager()) != null) {
startActiv... | Let's say I have a method inside my activity that looks like this: [CODE] Then if everything works out fine, I access the taken video by its URI: [CODE] Where does the video actually reside at this point? Is it temporarily stored in memory or does it get saved to permanent storage? If I want my app to reliably access t... | java|android|android-intent|uri | 0 | 2022-04-26T22:57:09.190Z | 2,022 | 4 | 22 | 1 | 25 | 1 | 447 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
72,074,743 | How to store the latest login attempt after the Android App killed? | <p>I would like to create an app in Android that checks if the input password is wrong or not.</p>
<p>The user has 5 attempts. Once the user runs out of attempts, the app locks itself for 5 minutes. Once the 5 minutes timeout expires, the app restores the 5 attempts and allows the user to login again.</p>
<p>I've creat... | I would like to create an app in Android that checks if the input password is wrong or not. The user has 5 attempts. Once the user runs out of attempts, the app locks itself for 5 minutes. Once the 5 minutes timeout expires, the app restores the 5 attempts and allows the user to login again. I've created a onSaveInstan... | java|android|authentication | -2 | 2022-05-01T07:18:18.563Z | 2,022 | 5 | 7 | 6 | 25 | 1 | 871 | 67 | 3 | 1 | true | false | false | false | false | true | negative |
72,125,183 | I've created the table "person.db " but i can't see my database saved in sqlite | <p>public class DatabaseListView extends SQLiteOpenHelper {</p>
<pre><code>private Context context;
private static final String DATABASE_NAME = "person.db";
private static final int DATABASE_VERSION = 1;
private static final String TABlE_NAME = "person";
private static final String COLUMN_ID = &qu... | public class DatabaseListView extends SQLiteOpenHelper { [CODE] } This Question is about Android Studio Person Manager project I've created the table "person.db " but i can't see my database saved in sqlite browser all i see is an empty table but no data information. | android-studio-3.0 | 0 | 2022-05-05T09:50:47.847Z | 2,022 | 5 | 9 | 3 | 25 | 1 | 277 | 79 | 1 | 1 | true | false | false | false | false | false | zero |
71,793,412 | How to set a cart fragment when action bar item is clicked (on option item selected) in the same activity when i am in any other fragment | <p>This is Main Activity Where I have created Fragments through mobile_navigation.xml
Now in Action Bar i have set 2 items one is search which is another activity which i have sent through intent.Now for cart item i want to send it to Cart fragment of the same Activity.How do i send it??
I am new to Development Please ... | This is Main Activity Where I have created Fragments through mobile_navigation.xml Now in Action Bar i have set 2 items one is search which is another activity which i have sent through intent.Now for cart item i want to send it to Cart fragment of the same Activity.How do i send it?? I am new to Development Please Hel... | android|android-fragments | 0 | 2022-04-08T07:45:43.537Z | 2,022 | 4 | 7 | 4 | 26 | 1 | 482 | 137 | 2 | 2 | true | false | false | false | false | false | zero |
71,798,854 | How to access other custom method outside work manager? | <p>I am working on app in which first i have to start the process and then update the value so how to access other methods of custom method o workmanager thanks</p>
<pre><code> class SmsWorkManager(val context : Context, workerParameters:WorkerParameters) : CoroutineWorker(context ,workerParameters) {
... | I am working on app in which first i have to start the process and then update the value so how to access other methods of custom method o workmanager thanks [CODE] } // class Instannce for work maanager [CODE] | android|android-studio | 0 | 2022-04-08T14:34:43.767Z | 2,022 | 4 | 14 | 4 | 26 | 1 | 210 | 55 | 2 | 2 | true | false | false | false | false | false | zero |
71,807,499 | What is this button called? What does it do? | <p>What is this button called? What does it do?</p>
<p>In the displayed screen, even though the "Data Conn." shows dim, when I click that button I see it as "Bright" - Which view to believe?</p>
<p>Thanks much.</p>
<p><a href="https://i.stack.imgur.com/nEsEQ.png" rel="nofollow noreferrer"><img src="... | What is this button called? What does it do? In the displayed screen, even though the "Data Conn." shows dim, when I click that button I see it as "Bright" - Which view to believe? Thanks much. | android | 0 | 2022-04-09T11:06:06.967Z | 2,022 | 4 | 11 | 5 | 26 | 1 | 213 | 44 | 1 | 0 | false | false | false | false | false | false | zero |
71,840,277 | Android implement number cover background effect | <p>I want to implement this <a href="https://i.stack.imgur.com/iMgfi.png" rel="nofollow noreferrer">effect</a> on my android app, what i think is put the heart ImageView as background and numbers TextView on the foreground. But i can't draw the border of the number with a good effect. How do i implement this effect?</p... | I want to implement this effect on my android app, what i think is put the heart ImageView as background and numbers TextView on the foreground. But i can't draw the border of the number with a good effect. How do i implement this effect? | android | 0 | 2022-04-12T09:32:54.567Z | 2,022 | 4 | 9 | 1 | 26 | 1 | 238 | 48 | 1 | 0 | false | false | false | false | false | false | zero |
71,873,584 | RxJava: Combine 2 lists, ignoring missing items in list 2 | <p>I have two lists of objects, RemoteList and LocalList.<br>
While my app is offline, remote users can be adding and deleting objects from the RemoteList while local users are editing the LocalList.<br>
When the app becomes connected again, it should sync the two lists.<br>
<a href="https://i.stack.imgur.com/mrcjl.jpg... | I have two lists of objects, RemoteList and LocalList. While my app is offline, remote users can be adding and deleting objects from the RemoteList while local users are editing the LocalList. When the app becomes connected again, it should sync the two lists. Marble Diagram showing how the lists should be merged For e... | java|android-studio|rx-java | 0 | 2022-04-14T14:52:10.313Z | 2,022 | 4 | 14 | 3 | 26 | 1 | 794 | 57 | 3 | 0 | false | false | false | false | false | false | zero |
71,874,941 | Couldn't identify launch Activity: Default Activity not found (I'm using Kotlin) | <p>I can't open the app on my phone because it says it doesn't have a launch activity so I can open it.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.frases.coquinha">
... | I can't open the app on my phone because it says it doesn't have a launch activity so I can open it. [CODE] | android|kotlin | 0 | 2022-04-14T16:35:16.983Z | 2,022 | 4 | 16 | 3 | 26 | 1 | 107 | 80 | 2 | 1 | true | false | false | false | false | false | zero |
71,896,245 | recyclerAdapter.notifyItemInserted updates item on wrong position | <p>I created 3 recyclerViews which are in the same NestedScrollView. They all use the same ArrayList to display items.</p>
<p>Lastly I tried to follow one <a href="https://www.geeksforgeeks.org/swipe-to-delete-and-undo-in-android-recyclerview/" rel="nofollow noreferrer">tutorial</a> to add onSwipe to one of the recycle... | I created 3 recyclerViews which are in the same NestedScrollView. They all use the same ArrayList to display items. Lastly I tried to follow one tutorial to add onSwipe to one of the recyclerViews which worked almost perfectly. Firstly I remove the object on selected position with recyclerAdapter.notifyItemRemoved(posi... | java|android|android-recyclerview | 0 | 2022-04-16T17:58:14.463Z | 2,022 | 4 | 17 | 5 | 26 | 1 | 1,471 | 65 | 3 | 2 | true | false | false | false | false | false | zero |
71,918,308 | Is using "android.permission.FLASHLIGHT" twice in the manifest page redundant? | <p>I am new to XML and android app development in general. I cloned the code for an app from github, for learning purposes.</p>
<p>In the manifest page, this line is used twice <code><uses-permission android:name="android.permission.FLASHLIGHT" /></code></p>
<p>Should I remove it because it is redundant... | I am new to XML and android app development in general. I cloned the code for an app from github, for learning purposes. In the manifest page, this line is used twice <uses-permission android:name="android.permission.FLASHLIGHT" /> Should I remove it because it is redundant, or is it used twice specifically f... | android|permissions|flashlight | 0 | 2022-04-19T00:14:51.310Z | 2,022 | 4 | 0 | 1 | 26 | 1 | 377 | 78 | 3 | 1 | true | false | false | false | false | false | zero |
71,948,953 | How do "no-code" native app builders work? | <p>How can native apps (for iPhone, Android) be automatically created by a web interface?</p>
<p>I understand how someone could create a web app that let's you drag and drop interface elements, add text, add pages, and whatnot.</p>
<p>What I don't understand is how the web app can then take that and turn it into a nati... | How can native apps (for iPhone, Android) be automatically created by a web interface? I understand how someone could create a web app that let's you drag and drop interface elements, add text, add pages, and whatnot. What I don't understand is how the web app can then take that and turn it into a native app that then ... | android|iphone | 0 | 2022-04-21T04:26:54.247Z | 2,022 | 4 | 4 | 3 | 26 | 1 | 460 | 42 | 2 | 0 | false | false | false | false | false | false | zero |
71,975,805 | Module .so not loaded in apk, but is built | <p>I have a project that has an app, and a module that is a library. Both have native c++ code compiled with Cmake.</p>
<p>The app works fine, with all four of the native .so libraries compiling and showing up in the .apk file, but the module is being compiled (it has a .so file in \build\intermediates\cmake\debug\obj)... | I have a project that has an app, and a module that is a library. Both have native c++ code compiled with Cmake. The app works fine, with all four of the native .so libraries compiling and showing up in the .apk file, but the module is being compiled (it has a .so file in \build\intermediates\cmake\debug\obj), but the ... | java|android|android-studio|gradle | 0 | 2022-04-23T00:11:44.927Z | 2,022 | 4 | 0 | 5 | 26 | 1 | 667 | 42 | 4 | 3 | true | false | false | false | false | false | zero |
72,011,733 | Android Junit testcase getting stackoverflow error | <p>I have tried to write test case for some model class that getting Stackoverflow error and i found it is problem on recursive call but i'm not sure is it case for that? Can any one help me to write test case recursive call. Can anyone help me on below sample code to how can i fix it?</p>
<p>Note: I'm getting StackOve... | I have tried to write test case for some model class that getting Stackoverflow error and i found it is problem on recursive call but i'm not sure is it case for that? Can any one help me to write test case recursive call. Can anyone help me on below sample code to how can i fix it? Note: I'm getting StackOverflow erro... | android|unit-testing|testing|junit | 0 | 2022-04-26T09:42:07.850Z | 2,022 | 4 | 9 | 1 | 26 | 1 | 378 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
72,013,601 | How remove color bottom nav menu | <p>I can remove color from item. Select item have purple color and unselect have grey. I need when select item don’t have color only color png and unselect grey.<a href="https://i.stack.imgur.com/zBnkB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zBnkB.jpg" alt="enter image description here" /></a... | I can remove color from item. Select item have purple color and unselect have grey. I need when select item don’t have color only color png and unselect grey. | android|android-studio | -2 | 2022-04-26T12:03:10.977Z | 2,022 | 4 | 12 | 1 | 26 | 1 | 158 | 32 | 2 | 0 | false | false | false | false | false | true | negative |
72,023,806 | Can we create multiple database in firebase for multiple reasons? This is for android platform and language is java | <p>I already created a database on Firebase for user authentication. Now I need to make another firebase Realtime database to store users working days. My problem is can we create two databases in a single project?</p> | I already created a database on Firebase for user authentication. Now I need to make another firebase Realtime database to store users working days. My problem is can we create two databases in a single project? | java|android|firebase|firebase-realtime-database|google-cloud-platform | 1 | 2022-04-27T05:46:09.287Z | 2,022 | 4 | 5 | 2 | 26 | 1 | 211 | 115 | 5 | 0 | false | false | false | false | false | false | low |
72,045,455 | How to transfer external pages in Web View (Android Studio) to Chrome | <p>I wrote a simple program and used webview.
My problem is that links to pages that do not follow the <a href="https://irunisenter.com" rel="nofollow noreferrer">https://irunisenter.com</a> rule also open in the program. It's like turning my Google Play into Facebook by clicking on a link!
Java code:</p>
<pre><code>pu... | I wrote a simple program and used webview. My problem is that links to pages that do not follow the https://irunisenter.com rule also open in the program. It's like turning my Google Play into Facebook by clicking on a link! Java code: [CODE] Xml code: [CODE] Does anyone have a solution for redirecting external links t... | java|android|xml|android-studio|webview | 0 | 2022-04-28T14:26:33.157Z | 2,022 | 4 | 14 | 3 | 26 | 1 | 342 | 69 | 5 | 2 | true | false | false | false | false | false | zero |
72,059,936 | adjustable width of a surface to be able to put cards next to one another | <p>Thinking of a way to deal cards at the bottom of the screen, I know I need to calculate to offset so that the cards will be set next to one another.
is there a way to have a trigger to when I deal a card, that the space is evaluated (remember) and tiimed the number of cards so that a suitable offset will be made?
I ... | Thinking of a way to deal cards at the bottom of the screen, I know I need to calculate to offset so that the cards will be set next to one another. is there a way to have a trigger to when I deal a card, that the space is evaluated (remember) and tiimed the number of cards so that a suitable offset will be made? I too... | android|android-studio|android-jetpack-compose|android-jetpack | 1 | 2022-04-29T15:00:28.003Z | 2,022 | 4 | 15 | 4 | 26 | 1 | 435 | 73 | 4 | 1 | true | false | false | false | false | false | low |
72,069,522 | Scroll View doesn't work in Frame Layout - Android XML | <p>I'm using fragments to recreate a design, so basically my design consists of four buttons which are present in a Relative Layout and the remaining empty space of the activity is used as a fragment.</p>
<p>So everything works fine until the content in the fragment goes beyond the screen and it is not visible anymore.... | I'm using fragments to recreate a design, so basically my design consists of four buttons which are present in a Relative Layout and the remaining empty space of the activity is used as a fragment. So everything works fine until the content in the fragment goes beyond the screen and it is not visible anymore. So I want... | android|android-studio|android-fragments|android-xml|android-framelayout | 0 | 2022-04-30T14:51:21.107Z | 2,022 | 4 | 14 | 5 | 26 | 1 | 642 | 54 | 5 | 2 | true | false | false | false | false | false | zero |
72,118,243 | Android view, starts element from bottom overlap with header on small screens | <p>I have a sample view, where on the top is logo + header divider + some description, and from the bottom starts: Button + some checkboxes, please see image below:</p>
<p><a href="https://i.stack.imgur.com/xCEqK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xCEqK.png" alt="enter image description ... | I have a sample view, where on the top is logo + header divider + some description, and from the bottom starts: Button + some checkboxes, please see image below: It looks good on current devices, but on old phones, when screen is small (5 inches for example) - elements overlap: View looks like below: [CODE] How should ... | android|layout|view | 0 | 2022-05-04T19:06:30.460Z | 2,022 | 5 | 19 | 2 | 26 | 1 | 447 | 77 | 3 | 1 | true | false | false | false | false | false | zero |
72,134,158 | new to flutter and dart, creating a beginners project by creating a world time app but this happens when i run the code | <p>here are how my files are arranged lib -> services,screens,main.dart. services->worldtime.dart.
screen -> choose_location.dart,loading.dart,home_screen.dart. and HERE IS THE ERROR.</p>
<p>type 'Null' is not a subtype of type 'Map<dynamic, dynamic>' in type cast and also type 'Null' is not a subtype of... | here are how my files are arranged lib -> services,screens,main.dart. services->worldtime.dart. screen -> choose_location.dart,loading.dart,home_screen.dart. and HERE IS THE ERROR. type 'Null' is not a subtype of type 'Map<dynamic, dynamic>' in type cast and also type 'Null' is not a subtype of type 'bool'. the problem... | android|flutter|dart | 0 | 2022-05-05T22:13:04.470Z | 2,022 | 5 | 22 | 3 | 26 | 1 | 539 | 119 | 3 | 2 | true | false | false | false | false | false | zero |
71,803,482 | Is it possible to perform some action after input on TextField? | <p>I use TextField as a search box. When the user types in some text, the app performs a search in the DB. I hope not to have an extra "search" button, the app should just search as the user types, but hopefully not on every single stroke, better only when the user pauses typing. How can I do it?</p> | I use TextField as a search box. When the user types in some text, the app performs a search in the DB. I hope not to have an extra "search" button, the app should just search as the user types, but hopefully not on every single stroke, better only when the user pauses typing. How can I do it? | android-jetpack-compose|android-jetpack-compose-text | 1 | 2022-04-08T21:50:13.727Z | 2,022 | 4 | 21 | 4 | 538 | 1 | 304 | 63 | 2 | 0 | false | false | false | false | false | false | low |
71,806,469 | Loading Images from PC using Glide in android | <p>I need to use Glide normal way, but loading Images from PC connected to same local network.
Is this possible ?</p>
<p>Thanks,</p> | I need to use Glide normal way, but loading Images from PC connected to same local network. Is this possible ? Thanks, | android|load | 0 | 2022-04-09T08:37:35.320Z | 2,022 | 4 | 8 | 5 | 27 | 1 | 118 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
71,817,803 | How to send value from activity to interface query in android retrofit | <p>Hello I am currently creating an android app. I have a login, so when the user is logged I want to pass the email string to the retrofit GET method. Because by using email I make other calls that are specific to that user.</p>
<pre><code>My Activity looks like this:
@Override
protected void onCreate(Bundle sav... | Hello I am currently creating an android app. I have a login, so when the user is logged I want to pass the email string to the retrofit GET method. Because by using email I make other calls that are specific to that user. [CODE] GET method in my interface looks like this: [CODE] I tried using @Query but I can see it's... | android|rest|authentication|retrofit2 | 0 | 2022-04-10T15:02:49.210Z | 2,022 | 4 | 15 | 6 | 27 | 1 | 358 | 70 | 4 | 2 | true | false | false | false | false | false | zero |
71,866,352 | showing the error when connecting the api to react native | <p>I want to connect react native project to an api. but it showing the error</p>
<blockquote>
<p>ERROR TypeError: undefined is not an object (evaluating 'props.restaurantData.map')</p>
</blockquote>
<pre><code>export default function RestaurantItems(props) {
return (
<>
<TouchableOpac... | I want to connect react native project to an api. but it showing the error ERROR TypeError: undefined is not an object (evaluating 'props.restaurantData.map') [CODE] | android|ios|react-native|apiconnect|yelp-fusion-api | 0 | 2022-04-14T03:57:54.760Z | 2,022 | 4 | 3 | 3 | 27 | 1 | 165 | 57 | 5 | 1 | true | false | false | false | false | false | zero |
71,897,750 | Android: Can't detect when ScrollView scrolled to the bottom | <p>Here is my extracted code. I have tried some solution online but not working</p>
<pre><code> private val scrollView = View.findViewById<NestedScrollView>(R.id.scroll)
scrollView.setOnScrollChangeListener { _, _, Y, _, oY ->
val scrollY = Y - oY
if (scrollY > 1) {
... | Here is my extracted code. I have tried some solution online but not working [CODE] | android | 0 | 2022-04-16T21:54:02.323Z | 2,022 | 4 | 21 | 5 | 27 | 1 | 83 | 60 | 1 | 1 | true | false | false | false | false | false | zero |
71,902,235 | How can I retrieve database data and present it in an application | <p>I am currently working on an application in android studio as I am trying to learn how to use it in my spare time, my knowledge is very low so I was hoping I can explain the concept of my app and ask people for some pointers in different techniques I could use. The basic idea of my app is that it works by allowing p... | I am currently working on an application in android studio as I am trying to learn how to use it in my spare time, my knowledge is very low so I was hoping I can explain the concept of my app and ask people for some pointers in different techniques I could use. The basic idea of my app is that it works by allowing peop... | java|android|database|api | -1 | 2022-04-17T13:20:13.040Z | 2,022 | 4 | 13 | 6 | 27 | 1 | 1,048 | 65 | 4 | 0 | false | false | false | false | false | true | negative |
71,939,902 | inserting data without getWritableDatabase()? | <p>I'm practicing android, I was able to insert using <code>db.insert()</code> without the use of <code>getWritableDatabase()</code> why is that? I thought we need <code>db = getWritableDatabase();</code> before we can insert to the database</p>
<pre><code>private SQLiteDatabase db;
@Override
public void onCreate(SQLi... | I'm practicing android, I was able to insert using db.insert() without the use of getWritableDatabase() why is that? I thought we need db = getWritableDatabase(); before we can insert to the database [CODE] I thought it should be like this? [CODE] here's my implementation: [CODE] | android|android-studio | 0 | 2022-04-20T12:45:48.590Z | 2,022 | 4 | 12 | 2 | 27 | 1 | 280 | 45 | 2 | 3 | true | false | false | false | false | false | zero |
71,946,509 | How to open keyboard automatically in EditTextPreference? | <p>I have multiple EditTextPreference in my project and I want to open keyboard automatically once I tap on any of the options. Right now I have to tap on the empty space to bring out the keyboard</p>
<p><a href="https://i.stack.imgur.com/DgkEb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DgkEb.pn... | I have multiple EditTextPreference in my project and I want to open keyboard automatically once I tap on any of the options. Right now I have to tap on the empty space to bring out the keyboard This is one of the options. I have tried using this : https://stackoverflow.com/a/14759538/9062752 but clearly it doesn't work... | java|android|xml|kotlin|edittextpreference | 1 | 2022-04-20T21:45:58.167Z | 2,022 | 4 | 21 | 2 | 27 | 1 | 442 | 57 | 5 | 0 | false | false | false | false | false | false | low |
71,950,661 | Is the Application context always available? | <p>The following is from <a href="https://stackoverflow.com/q/987072/4070848">this post</a>:</p>
<pre><code>public class MyApp extends android.app.Application {
private static MyApp instance;
public MyApp() {
instance = this;
}
public static Context getContext() {
return instance;
... | The following is from this post : [CODE] But is the context returned by MyApp.getContext() always available? For example, if I call it after a long-running operation... can task killers and other system power saving features kill the application (and its context) completely in the meantime, or will I always have a cont... | android|android-context | 0 | 2022-04-21T07:44:04.550Z | 2,022 | 4 | 7 | 3 | 27 | 1 | 368 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
71,974,939 | Make 2 buttons with variable content the same size Android | <p>I am trying in a constraint layout to make two buttons take the same size as the one with more text.</p>
<p>This is what I have
<a href="https://i.stack.imgur.com/y2cQw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y2cQw.png" alt="enter image description here" /></a></p>
<p>This is what I want
<... | I am trying in a constraint layout to make two buttons take the same size as the one with more text. This is what I have This is what I want Playing with the height attribute of the buttons, setting it to "0" you can get one button to follow the other, but the other does not do the same here is the code [CODE... | android|xml | 1 | 2022-04-22T21:40:53.247Z | 2,022 | 4 | 21 | 4 | 27 | 1 | 321 | 58 | 2 | 1 | true | false | false | false | false | false | low |
72,018,540 | How to use from my app another app to visualize an image? | <p>I want to program an app. In this app, the user selects an image file path and the app opens another app (Google Photos) to show that image. This image is in the public folder Downloads.</p>
<p>I am using Android 9.0.</p>
<p>What I tried:</p>
<pre><code>File imageFile = new File("/storage/emulated/0/DCIM/Camera... | I want to program an app. In this app, the user selects an image file path and the app opens another app (Google Photos) to show that image. This image is in the public folder Downloads. I am using Android 9.0. What I tried: [CODE] And in AndroidManifest: [CODE] I get a FileUriExposedException . | android | 0 | 2022-04-26T18:00:55.643Z | 2,022 | 4 | 18 | 1 | 27 | 1 | 296 | 57 | 1 | 2 | true | false | false | false | false | false | zero |
72,053,309 | Android: The borders of TableRow of TableLayout are shaken once data is inserted programmatically | <p>I am trying to achieve something like below the below image:</p>
<p><a href="https://i.stack.imgur.com/9aRJH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9aRJH.png" alt="enter image description here" /></a></p>
<p>And uptil now I have been able to somewhat achieve this, but after the data is in... | I am trying to achieve something like below the below image: And uptil now I have been able to somewhat achieve this, but after the data is inserted the entire layout is shaken as the borders are not upto the mark as per the requirement. The acheived image is as below: Can someone please help me on how can I achieve it... | android|border|android-tablelayout|tablerow | 0 | 2022-04-29T05:41:28.617Z | 2,022 | 4 | 5 | 4 | 27 | 1 | 513 | 97 | 4 | 1 | true | false | false | false | false | false | zero |
72,056,248 | Is it possible to use Google drive for shareable data in android apps? | <p>I want to create a simple shareable shoppinglist android app and I wonder, if there's a possibility to use Google drive as "db". Technically it should work right? If the entries of that shopping list would be saved in a simple table database in drive, it should be possible to access this table via Uri, or ... | I want to create a simple shareable shoppinglist android app and I wonder, if there's a possibility to use Google drive as "db". Technically it should work right? If the entries of that shopping list would be saved in a simple table database in drive, it should be possible to access this table via Uri, or are... | android|database|google-drive-shared-drive | -1 | 2022-04-29T10:04:43.500Z | 2,022 | 4 | 10 | 4 | 27 | 1 | 455 | 70 | 3 | 0 | false | false | false | false | false | true | negative |
72,068,024 | How to make row in LazyColumn clickable | <p>How can the ripple effect be applied to the whole row of an item within a <code>LazyColumn</code> rather than just the text itself? Does <code>Text</code> need to be in a <code>Row</code> with a clickable modifier, or should something else be done?</p>
<pre><code>class MainActivity : ComponentActivity() {
privat... | How can the ripple effect be applied to the whole row of an item within a LazyColumn rather than just the text itself? Does Text need to be in a Row with a clickable modifier, or should something else be done? [CODE] | android|kotlin|android-jetpack-compose | 0 | 2022-04-30T11:15:25.457Z | 2,022 | 4 | 11 | 5 | 27 | 1 | 216 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
72,077,109 | I get an sqlite error code 1 whenever I try inputting data into my database (in android studio) | <p>I have created a database helper class, and when I run the code I keep getting the following error message: "android.database.sqlite.SQLiteException: table words_info has no column named back_word (code 1 SQLITE_ERROR[1]): , while compiling: INSERT INTO words_info(front_word,back_word) VALUES (?,?)." I tri... | I have created a database helper class, and when I run the code I keep getting the following error message: "android.database.sqlite.SQLiteException: table words_info has no column named back_word (code 1 SQLITE_ERROR[1]): , while compiling: INSERT INTO words_info(front_word,back_word) VALUES (?,?)." I tried ... | java|android|sqlite | 1 | 2022-05-01T13:23:14.333Z | 2,022 | 5 | 13 | 6 | 27 | 1 | 483 | 95 | 3 | 2 | true | false | false | false | false | false | low |
72,081,134 | Recyclerview in android scroll moving on its own | <p><strong>I have recyclerview contains many problem videos i have namely: when I click on any video move the list on its own down the list</strong></p>
<pre><code> recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
linearLayoutManager = new LinearLayoutManager(getContext());
... | I have recyclerview contains many problem videos i have namely: when I click on any video move the list on its own down the list [CODE] | java|android|android-studio|android-recyclerview|android-arrayadapter | 1 | 2022-05-01T23:33:11.290Z | 2,022 | 5 | 23 | 6 | 27 | 1 | 135 | 48 | 5 | 1 | true | false | false | false | false | false | low |
72,111,962 | How can I prevent copying/pirating native compiled files (.so file) from my Android APK? | <p>I am using NDK/c++ to do complex calculations in my Android app. After the compilation, .so files are present in the lib folder. I am wondering whether anyone can copy those .so files and use my algorithm in their android app. If possible, how can I prevent that?</p> | I am using NDK/c++ to do complex calculations in my Android app. After the compilation, .so files are present in the lib folder. I am wondering whether anyone can copy those .so files and use my algorithm in their android app. If possible, how can I prevent that? | android|android-ndk|ndk-build|.so | 1 | 2022-05-04T11:10:32.930Z | 2,022 | 5 | 11 | 2 | 27 | 1 | 263 | 88 | 4 | 0 | false | false | false | false | false | false | low |
71,964,517 | How to check whether my app has the permission in always or when in use in Android using xamarin.forms | <p>I am using xamarin.forms for my app and i am using Android device. I want to check whether my app is using "Always" or "While Using the App" for location in Android.</p>
<p>For iOS I can able to check the permission status using <em>CLLocationManager.Status</em>.</p>
<p>But in android I can't abl... | I am using xamarin.forms for my app and i am using Android device. I want to check whether my app is using "Always" or "While Using the App" for location in Android. For iOS I can able to check the permission status using CLLocationManager.Status . But in android I can't able to check the permission... | xamarin.forms|xamarin.android|permissions|geolocation|android-permissions | 0 | 2022-04-22T06:48:30.257Z | 2,022 | 4 | 6 | 4 | 283 | 1 | 665 | 102 | 5 | 0 | false | false | false | false | false | false | zero |
71,803,136 | Why value defined in `values.xml` gets overriden? | <p>I have clean Android project initialized from AndroidStudio. I am trying to change style of <code>actionMenuItem</code> so it is not in uppercase.</p>
<p>I found out that there is an <code>abc_config_actionMenuItemAllCaps</code> boolean set in <code>\appcompat-1.4.1\res\values\values.xml</code>.</p>
<p>I tried to ov... | I have clean Android project initialized from AndroidStudio. I am trying to change style of actionMenuItem so it is not in uppercase. I found out that there is an abc_config_actionMenuItemAllCaps boolean set in \appcompat-1.4.1\res\values\values.xml . I tried to override it by this values.xml file: [CODE] but it does n... | android|android-theme | 1 | 2022-04-08T21:06:59.797Z | 2,022 | 4 | 21 | 4 | 28 | 1 | 479 | 49 | 2 | 1 | true | false | false | false | false | false | low |
71,892,823 | How to open personal hotspot page in setting programmatically(Android-studio)? | <p>I want to open this screen for users using intent.</p>
<p>I found an intent which is opening a previous of it.
<strong>(com.android.settings.TetherSettings)</strong></p>
<p>I don't know what to add after this <em><strong>"TetherSettings.????"</strong></em> to open the below page.</p>
<p><a href="https://i.... | I want to open this screen for users using intent. I found an intent which is opening a previous of it. (com.android.settings.TetherSettings) I don't know what to add after this "TetherSettings.????" to open the below page. | android|android-studio|android-intent | 0 | 2022-04-16T09:50:35.403Z | 2,022 | 4 | 9 | 5 | 28 | 1 | 233 | 78 | 3 | 0 | false | false | false | false | false | false | zero |
71,903,714 | Personalized notifications in Android Studio | <p>I want to create an application that displays a personalized notification on the notification bar of the phone, but I don't know how to add this feature.</p> | I want to create an application that displays a personalized notification on the notification bar of the phone, but I don't know how to add this feature. | android|android-studio | 0 | 2022-04-17T16:46:36.847Z | 2,022 | 4 | 16 | 6 | 28 | 1 | 153 | 44 | 2 | 0 | false | false | false | false | false | false | zero |
71,929,507 | Android Webview - Access html elements from Java | <p>I want to know if there is any way to access HTML elements in webview in Android (from Java) without using JavaScript interface? I know JavaScript Interface can be used to pass data but is there any way to directly access HTML elements?</p> | I want to know if there is any way to access HTML elements in webview in Android (from Java) without using JavaScript interface? I know JavaScript Interface can be used to pass data but is there any way to directly access HTML elements? | java|android|webview|android-webview | 0 | 2022-04-19T18:15:59.187Z | 2,022 | 4 | 18 | 1 | 28 | 1 | 236 | 48 | 4 | 0 | false | false | false | false | false | false | zero |
71,937,371 | Switch from fragment to activity in android studio | <p>I made an application where I integrated the tabbed activity. In the tabbed activity I put 3 fragments. Now in the 3rd fragment I put a button and I want when I click on the button it redirects me to a new activity I did. I used an intent as we usually do between activities but it doesn't work. Need help please</p> | I made an application where I integrated the tabbed activity. In the tabbed activity I put 3 fragments. Now in the 3rd fragment I put a button and I want when I click on the button it redirects me to a new activity I did. I used an intent as we usually do between activities but it doesn't work. Need help please | android-studio|android-fragments | 0 | 2022-04-20T09:36:20.557Z | 2,022 | 4 | 9 | 2 | 28 | 1 | 312 | 50 | 2 | 0 | false | false | false | false | false | false | zero |
71,942,751 | Update app on play store so only new users can download- is it possible? | <p>I wrote an android app in Kotlin around a few years ago. I would like to now convert it to dart/flutter. I guess I have to write a new app for this in dart/Flutter with exact same functionality.</p>
<p>The problem I can't figure out is what will happen to the existing users? I guess as soon as they update all their ... | I wrote an android app in Kotlin around a few years ago. I would like to now convert it to dart/flutter. I guess I have to write a new app for this in dart/Flutter with exact same functionality. The problem I can't figure out is what will happen to the existing users? I guess as soon as they update all their data will ... | android|flutter|kotlin | 0 | 2022-04-20T15:57:16.637Z | 2,022 | 4 | 15 | 2 | 28 | 1 | 508 | 72 | 3 | 0 | false | false | false | false | false | false | zero |
71,992,685 | Manipulating list in thread safe way | <p>I've a set of listeners that class can be accessed to by classes to add themselves or remove themselves from the set.</p>
<pre><code>private val set = mutableSetOf()
fun register(listener: Listener) {
set.add(listener)
}
fun unregister(listener: Listener) {
set.remove(listener)
}
private fun notifyListene... | I've a set of listeners that class can be accessed to by classes to add themselves or remove themselves from the set. [CODE] If a class removes itself from the set while notifyListener() is iterating over the set, it can result in a race condition. What's the best way to avoid race condition? How can this code be impro... | android|multithreading|kotlin|collections|race-condition | 0 | 2022-04-24T21:58:30.080Z | 2,022 | 4 | 21 | 6 | 28 | 1 | 324 | 36 | 5 | 1 | true | false | false | false | false | false | zero |
72,051,214 | Android API 28 getBitmap throwing "no such column" error | <p>On Android API 28, I'm trying to get the album art for a particular album using the albumID. The code throws the following error on getBitmap</p>
<pre><code>android.database.sqlite.SQLiteException: no such column: _data (code 1 SQLITE_ERROR): , while compiling: SELECT _data FROM album_info WHERE (id=?)
</code></pre>... | On Android API 28, I'm trying to get the album art for a particular album using the albumID. The code throws the following error on getBitmap [CODE] The code below: [CODE] The albumID is collected earlier using a cursor query to get the MediaStore.Audio.AudioColumns.ALBUM_ID column. I also tried with MediaStore.Audio.A... | java|android|bitmap|mediastore|android-9.0-pie | 0 | 2022-04-28T23:21:27.760Z | 2,022 | 4 | 23 | 3 | 28 | 1 | 469 | 56 | 5 | 3 | true | false | false | false | false | false | zero |
72,073,776 | Android: I try to replace one fragment with another, but it overlaps them | <p>I'm trying to replace a <code>fragment</code> 1 with a <code>Fragment</code> 2 on button click, but the fragment doesn't get replaced, it sits on top.</p>
<p>the content of both Fragments remain on the screen, what am I doing wrong? What I can do?</p>
<p><a href="https://i.stack.imgur.com/M8TkQ.png" rel="nofollow no... | I'm trying to replace a fragment 1 with a Fragment 2 on button click, but the fragment doesn't get replaced, it sits on top. the content of both Fragments remain on the screen, what am I doing wrong? What I can do? enter image description here this is the class of fragment 1 [CODE] this is the class of fragment 2 [CODE... | android|android-studio|android-fragments | 0 | 2022-05-01T03:25:36.333Z | 2,022 | 5 | 3 | 6 | 28 | 1 | 379 | 73 | 3 | 4 | true | false | false | false | false | false | zero |
72,117,878 | How do I hide a NativeAdView ad template? | <p>How can I hide where the ad appears if there is no ad?
This is the advertisement that I have. It works and there is no problem, but in the event that there is no advertisement, the template remains. I want it to disappear and appear only when an advertisement is available</p>
<p><a href="https://i.stack.imgur.com/lP... | How can I hide where the ad appears if there is no ad? This is the advertisement that I have. It works and there is no problem, but in the event that there is no advertisement, the template remains. I want it to disappear and appear only when an advertisement is available enter image description here NativeAdView [CODE... | java|android-studio|android-layout|admob | 1 | 2022-05-04T18:34:58.530Z | 2,022 | 5 | 18 | 2 | 28 | 1 | 337 | 41 | 4 | 2 | true | false | false | false | false | false | low |
72,137,904 | android SharedPreferences order/sort by field | <p>i am retrieving all SharedPreferences inside my app like this:</p>
<pre><code>getCollection() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
if (prefs.getInt("collectionCount") == null) {
clearCollection();
} else {
collectionCount = prefs.getInt("coll... | i am retrieving all SharedPreferences inside my app like this: [CODE] Is there a way to order the output by the name (collectionName) field in alphabetic order? | android|sharedpreferences | -1 | 2022-05-06T07:48:12.367Z | 2,022 | 5 | 7 | 4 | 28 | 1 | 160 | 45 | 2 | 1 | true | false | false | false | false | true | negative |
72,138,578 | 'android.app.ActivityThread$ApplicationThread android.app.ActivityThread.getApplicationThread()' on a null object reference | <p>I am trying to show the native phone number hint pop up from unity, but I keep getting the below exception.
java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.ActivityThread$ApplicationThread android.app.ActivityThread.getApplicationThread()' on a null object reference</p>
<p>Here is my Ja... | I am trying to show the native phone number hint pop up from unity, but I keep getting the below exception. java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.ActivityThread$ApplicationThread android.app.ActivityThread.getApplicationThread()' on a null object reference Here is my Java code [C... | android|unity3d | 0 | 2022-05-06T08:40:48.217Z | 2,022 | 5 | 8 | 4 | 28 | 1 | 324 | 123 | 2 | 1 | true | false | false | false | false | false | zero |
71,870,416 | How shift Request Focus to next textfield in Jetpack compose | <p>My requirement is when I enter 1 digit in text field after entering it should be shifted to next text field. Everywhere I got the answer like this.</p>
<p>In short I'm looking for similar functionality like onTextChangeListener in android</p>
<p><a href="https://stackoverflow.com/questions/64181930/request-focus-on-... | My requirement is when I enter 1 digit in text field after entering it should be shifted to next text field. Everywhere I got the answer like this. In short I'm looking for similar functionality like onTextChangeListener in android Request Focus on TextField in jetpack compose | focus|android-jetpack-compose | 0 | 2022-04-14T10:49:43.477Z | 2,022 | 4 | 10 | 3 | 796 | 1 | 277 | 60 | 2 | 0 | false | false | false | false | false | false | zero |
71,916,616 | How to track Firestore data completely fetched or not? | <pre><code>mColRef.document(mUid).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {
@Override
public void onSuccess(DocumentSnapshot documentSnapshot) {
List<String> list = (ArrayList<String>) documentSnapshot.get("contact");
}
})... | [CODE] ANDROID-JAVA: I have an Array field in Firestore users_list, which may be contains 5k to 10k String values. I want to make sure all data loaded completely in List list, and only then I can perform another operations. Please tell me how to know all data loaded successfully from Firestore array. Thanks in advance.... | android|firebase|google-cloud-firestore|arraylist | 0 | 2022-04-18T20:15:32.393Z | 2,022 | 4 | 20 | 0 | 29 | 1 | 322 | 54 | 4 | 1 | true | false | false | false | false | false | zero |
71,918,355 | how to make my splash screen goes to homePage when the user is already loged in | <pre><code>Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await EasyLocalization.ensureInitialized();
await Firebase.initializeApp();
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
W... | [CODE] i face the error of type null is not a subtype of type 'widget' i just wanna make the app while running goes to home page when the user il already loged in otherwithe to the selecting Language UI thanks. | android|firebase|flutter | 0 | 2022-04-19T00:22:53.663Z | 2,022 | 4 | 0 | 1 | 29 | 1 | 210 | 79 | 3 | 1 | true | false | false | false | false | false | zero |
71,933,925 | Intercept POST Request in Android Webiview | <p>I m trying to implement a payment method in an android application and i have to use Webview so i have 2 questions :</p>
<ul>
<li>is there any risks for using Webiview</li>
<li>How to intercept Post requests so i can add some Auth headers</li>
</ul>
<p>Thank You</p> | I m trying to implement a payment method in an android application and i have to use Webview so i have 2 questions : is there any risks for using Webiview How to intercept Post requests so i can add some Auth headers Thank You | android|post|webview | 0 | 2022-04-20T03:58:59.680Z | 2,022 | 4 | 3 | 2 | 29 | 1 | 226 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
72,050,437 | Android Box2D how to make the collision work while changing the circle position? | <p>I'm new in Box2D lib and also new in GlSurfaceView so I need your help!!!
I'm using the Box2D lib with android GlSurfaceView, and I'm trying to implement simple touch and move effect for my bubbles. I've successfully converted the android screen pixels to box2D world points and I can move the circles as expected but... | I'm new in Box2D lib and also new in GlSurfaceView so I need your help!!! I'm using the Box2D lib with android GlSurfaceView, and I'm trying to implement simple touch and move effect for my bubbles. I've successfully converted the android screen pixels to box2D world points and I can move the circles as expected but th... | android|box2d|glsurfaceview | 0 | 2022-04-28T21:30:04.280Z | 2,022 | 4 | 21 | 3 | 29 | 1 | 697 | 80 | 3 | 0 | false | false | false | false | false | false | zero |
72,072,777 | How to properly get the ID of the fragment the button is assigned to | <pre><code>btn.setOnCheckedChangeListener { _, isChecked ->
if(isChecked){
//instance of a list
spotsProvider.spotsList?.find { spots.ID.equals(spots.ID)}?.likes = spots.likes + 1
numLikes.text = spots.likes?.toString()
//refreshFragment(btn.context)
... | [CODE] It generates a couple of fragments from a list/Or card fragements which have a like button How it looks the above function should return the ID of the selected card/fragment and modify it's like counter below. The like counter and the images and name are provided to it from a list which the function should modif... | kotlin|android-fragments | 0 | 2022-04-30T22:56:32.463Z | 2,022 | 4 | 22 | 5 | 29 | 1 | 646 | 68 | 2 | 2 | true | false | false | false | false | false | zero |
72,074,435 | Regarding new version of andriodx in andriod studio | <p>I am using new version of andriox studio but i am getting some errors while i am running the project, error occurs in ContenetMainbuilding.java file
Note: i am using Firebase and fragment as well
**
import androidx.constraintlayout.ConstraintLayout;
^
symbol: class ConstraintLayout
location: package androidx.const... | I am using new version of andriox studio but i am getting some errors while i am running the project, error occurs in ContenetMainbuilding.java file Note: i am using Firebase and fragment as well ** import androidx.constraintlayout.ConstraintLayout; ^ symbol: class ConstraintLayout location: package androidx.constraint... | android|firebase|android-intent|android-camera-intent|android-intentservice | 0 | 2022-05-01T06:17:07.470Z | 2,022 | 5 | 6 | 6 | 29 | 1 | 358 | 51 | 5 | 0 | false | false | false | false | false | false | zero |
72,078,974 | How do I adjust my function to display the correct value using the code that I am using. Is it possible this way? Thanks | <p>How should I adjust this fun? When running the app the toast doesn't display the value, but as is. Hope that makes sense. For ex: "Option: @string/about_us" would be displayed instead of that actual value
override fun onOptionsItemSelected(item: MenuItem): Boolean {</p>
<pre><code> var selectedO... | How should I adjust this fun? When running the app the toast doesn't display the value, but as is. Hope that makes sense. For ex: "Option: @string/about_us" would be displayed instead of that actual value override fun onOptionsItemSelected(item: MenuItem): Boolean { [CODE] | android|android-studio|kotlin | -1 | 2022-05-01T17:28:48.547Z | 2,022 | 5 | 17 | 6 | 29 | 1 | 283 | 120 | 3 | 1 | true | false | false | false | false | true | negative |
72,137,534 | Classifier 'Error' does not have a companion object, and thus must be initialized here | <p>I am trying to add LoadStateListener. But I am getting the error "Classifier 'Error' does not have a companion object, and thus must be initialized here" for LoadState.Error . Below is the code snippet.</p>
<pre><code>adapter.addLoadStateListener { loadStates ->
when {
... | I am trying to add LoadStateListener. But I am getting the error "Classifier 'Error' does not have a companion object, and thus must be initialized here" for LoadState.Error . Below is the code snippet. [CODE] Can someone tell what is the issue here ? | kotlin|android-paging-3 | 1 | 2022-05-06T07:15:20.343Z | 2,022 | 5 | 7 | 4 | 797 | 1 | 261 | 86 | 2 | 1 | true | false | false | false | false | false | low |
71,802,596 | Are banner ads accepted when banner ad is at the top in scrollview | <p>I have banner ads in my app.</p>
<p>In main activity i have a scrollview.and in second layout which includes main activity which has scroll view i added banner ads using relative layout.</p>
<p>My question is banner ad is at the top and has no content overlapping but when user scroll down banner app overlaps on scro... | I have banner ads in my app. In main activity i have a scrollview.and in second layout which includes main activity which has scroll view i added banner ads using relative layout. My question is banner ad is at the top and has no content overlapping but when user scroll down banner app overlaps on scrollview. Is it acc... | java|android|admob | -2 | 2022-04-08T20:00:04.520Z | 2,022 | 4 | 20 | 4 | 30 | 1 | 559 | 66 | 3 | 1 | true | false | false | false | false | true | negative |
71,876,198 | Permission denied loading html from Downloads | <p>I'm loading HTML from the downloads folder on Android and showing it in a WebView. If the HTML there are some built-in HTML files that are in the assets for the app so I copy them to the Downloads folder and load them from there. These load just fine. If I try to load an HTML file that was copy into the Downloads fo... | I'm loading HTML from the downloads folder on Android and showing it in a WebView. If the HTML there are some built-in HTML files that are in the assets for the app so I copy them to the Downloads folder and load them from there. These load just fine. If I try to load an HTML file that was copy into the Downloads folde... | android | 0 | 2022-04-14T18:33:41.917Z | 2,022 | 4 | 18 | 3 | 30 | 1 | 1,458 | 45 | 1 | 0 | false | false | false | false | false | false | zero |
71,884,085 | How to efficiently use RecyclerView | <p>I need to create an application that uses the recyclerView to show all the photos in the gallery.</p>
<p>An immediate solution could be to store the URI of all the photos in the gallery in a list and to pass the latter to the recyclerView (to retrieve the URIs I use a content provider). However, I was wondering if t... | I need to create an application that uses the recyclerView to show all the photos in the gallery. An immediate solution could be to store the URI of all the photos in the gallery in a list and to pass the latter to the recyclerView (to retrieve the URIs I use a content provider). However, I was wondering if there was a... | android|performance|android-recyclerview | 1 | 2022-04-15T12:33:33.050Z | 2,022 | 4 | 12 | 4 | 30 | 1 | 592 | 35 | 3 | 0 | false | false | false | false | false | false | low |
71,895,952 | Android how to execute two dialogs in a certain order | <p>I have coded two dialogs in Android, which individually works.
But the first dialog is rapidly replaced by the second dialog without permetting an answer.</p>
<p>My question is : how to force an order of execution (my code can wait for an answer on the first dialog).</p>
<p>My solution could be to exchange dialogs e... | I have coded two dialogs in Android, which individually works. But the first dialog is rapidly replaced by the second dialog without permetting an answer. My question is : how to force an order of execution (my code can wait for an answer on the first dialog). My solution could be to exchange dialogs execution order to... | android|dialog | -1 | 2022-04-16T17:15:55.163Z | 2,022 | 4 | 17 | 5 | 30 | 1 | 506 | 53 | 2 | 0 | false | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.