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,147,449 | How to send gson object using retrofit | <p>This is my cart items data getting into gson object</p>
<pre><code>{"cart":[{"id":"6100","productId":"47","UserRegistrationId":"44","TotalQuantity":1,"Status":"CheckOut","Price":200},{"id":"61... | This is my cart items data getting into gson object [CODE] I'm getting error and I can't post the data to the server [CODE] This is my code [CODE] Interface Class [CODE] Model Class [CODE] Response Class [CODE] Postman API | android|gson|retrofit|cart|raw | 0 | 2022-02-16T18:33:17.677Z | 2,022 | 2 | 18 | 2 | 39 | 1 | 222 | 38 | 5 | 6 | true | false | false | false | false | false | zero |
71,183,172 | BindingAdapter with drawable parameter not accepting drawable parameter | <p>BindingAdapter code:</p>
<pre><code> @BindingAdapter(value = ["vertical_divider_decorator_drawable"], requireAll = false)
@JvmStatic
fun bindRecyclerViewDivider(recyclerView: RecyclerView, vertical_divider_decorator_drawable: Drawable) {
val decorator = DividerItemDecoration(recyclerView... | BindingAdapter code: [CODE] RecyclerView in XML: [CODE] Build error: [CODE] BindingAdapter has both Drawable and Int parameters but still the compiler not accepting both drawbales. | android|android-databinding|android-jetpack | 0 | 2022-02-19T07:58:28.167Z | 2,022 | 2 | 7 | 5 | 39 | 1 | 180 | 71 | 3 | 3 | true | false | false | false | false | false | zero |
71,219,572 | Sending array value as parameter retrofit android | <p>I need to send a parameter as array in retrofit.
This is the required key-value:</p>
<pre><code> "country":["Canada","India"]
</code></pre>
<p>Now, when i pass it, It changes the whole array into string.
This is how i am passing the value:</p>
<pre><code>"country":"["... | I need to send a parameter as array in retrofit. This is the required key-value: [CODE] Now, when i pass it, It changes the whole array into string. This is how i am passing the value: [CODE] The code i am using is here: [CODE] | android|arrays|json|retrofit | 0 | 2022-02-22T10:25:22.913Z | 2,022 | 2 | 10 | 1 | 39 | 1 | 227 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
71,348,189 | Click Listeners for onStartIconClickListeners not working in TextInputLayout | <p>I am implementing onstartIconClickletener using a custom attribute and Binder method</p>
<p>My Layout element is</p>
<pre><code><com.google.android.material.textfield.TextInputLayout
android:id="@+id/text.layout.email.and.phone"
style="@style/Widget.MaterialComponent... | I am implementing onstartIconClickletener using a custom attribute and Binder method My Layout element is [CODE] I created an interface with one single method [CODE] In my BindingAdapter [CODE] But clicking the startIcon it is invoking onClick in the BindingAdapter, but it is not calling my lambda function in the ViewM... | android|data-binding | 1 | 2022-03-04T07:57:40.307Z | 2,022 | 3 | 7 | 4 | 39 | 1 | 419 | 76 | 2 | 4 | true | false | false | false | false | false | low |
71,350,574 | Android: Bing Maps API - ZOOM IN programmatically | <p>I need to make default scale of</p>
<pre><code> MapView map = new MapView(this, MapRenderMode.VECTOR);
</code></pre>
<p>twice as large (zoom in). I'm using <strong>Android Java</strong>, no JS</p> | I need to make default scale of [CODE] twice as large (zoom in). I'm using Android Java , no JS | android|bing-maps|bing|bing-api | 0 | 2022-03-04T11:09:49.987Z | 2,022 | 3 | 11 | 4 | 39 | 1 | 95 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
71,281,757 | how to start an activity from inner class view holder? [Android studio] [kotlin] | <p>So i know how to start an activity from an normal activity to another, but i do not know how to do this. I hardly know anything about android and my professor doesn't really explain anything so I apologize if this question is hard to understand or something. Please ask for any clarification.</p>
<pre><code>package c... | So i know how to start an activity from an normal activity to another, but i do not know how to do this. I hardly know anything about android and my professor doesn't really explain anything so I apologize if this question is hard to understand or something. Please ask for any clarification. [CODE] | android-studio|kotlin|android-activity | 0 | 2022-02-27T02:49:16.450Z | 2,022 | 2 | 2 | 6 | 295 | 1 | 299 | 80 | 3 | 1 | true | false | false | false | false | false | zero |
71,314,260 | WifiManager getConnectionInfo() got deprecated in Android API level 31 | <p>We uses Wifimanger getConnectionInfo() method to get SSID and BBSID of connected wifi.
But starting with Andorid API level 31 , Android has deprecated the getConnectionInfo() method.</p>
<p>The solution that they have provided to use getTransportInfo() required minimum Android level 29 which we cannot target , given... | We uses Wifimanger getConnectionInfo() method to get SSID and BBSID of connected wifi. But starting with Andorid API level 31 , Android has deprecated the getConnectionInfo() method. The solution that they have provided to use getTransportInfo() required minimum Android level 29 which we cannot target , given our 20 pe... | android|android-wifi|android-11|wifimanager | 4 | 2022-03-01T20:27:29.250Z | 2,022 | 3 | 20 | 1 | 807 | 1 | 524 | 70 | 4 | 0 | false | false | false | false | false | false | low |
71,096,370 | How to store data from editText in a txt file and store the file on the phone? | <p>This is my code so far, supposedly this helps generate a file but I can't find it anywhere. I believe that's becuase there isn't a file path or directory provided. So what should I add to properly set the path?</p>
<pre><code> fun generateFile(){
val fileName = "dataFile.txt"
try {
val fos ... | This is my code so far, supposedly this helps generate a file but I can't find it anywhere. I believe that's becuase there isn't a file path or directory provided. So what should I add to properly set the path? [CODE] | android|file|kotlin|storage | 1 | 2022-02-12T22:24:42.293Z | 2,022 | 2 | 22 | 5 | 40 | 1 | 217 | 78 | 4 | 1 | true | false | false | false | false | false | low |
71,124,955 | Can I use an AndroidX-compatible library with a non-AndroidX-compatible application? | <p>I am an author of a Java library for Android.</p>
<p>I would like to stop using Android Support Library in my library and change it to AndroidX.</p>
<p>In other words, I will add the following to my library's <code>gradle.properties</code>.</p>
<pre class="lang-java prettyprint-override"><code>android.useAndroidX=tr... | I am an author of a Java library for Android. I would like to stop using Android Support Library in my library and change it to AndroidX. In other words, I will add the following to my library's gradle.properties . [CODE] If I set this, the Android Support Library should be disabled. However, when I embedded my library... | java|android|android-support-library|androidx | 0 | 2022-02-15T10:37:11.637Z | 2,022 | 2 | 10 | 1 | 40 | 1 | 627 | 84 | 4 | 1 | true | false | false | false | false | false | zero |
71,146,697 | Lambda getResult() | <p>I came across the following bit of code online which I can't figure it out:</p>
<pre class="lang-java prettyprint-override"><code>mFoo.bar(future -> {
Bundle result = future.getResult();
boolean success = result.getBoolean(Foo.KEY_BOOLEAN_RESULT);
if (success) {
showToast("success");... | I came across the following bit of code online which I can't figure it out: [CODE] The bar method takes a callback argument, and a lambda expression is passed in. But I don't understand what this line is doing: [CODE] Help would be appreciated. Thanks! | java|android | -1 | 2022-02-16T17:39:35.680Z | 2,022 | 2 | 17 | 2 | 40 | 1 | 252 | 18 | 2 | 2 | true | false | false | false | false | true | negative |
71,151,338 | how to open pdf file with default apps and auto navigate to specific page | <p>so i found a way to open pdf file using <a href="https://pub.dev/packages/open_file/example" rel="nofollow noreferrer">open_file</a> but now i want to open with specific page.. for example there is 10 page and i want to navigate to page 5 as initial page when it is done opening from default app.. is there a way to a... | so i found a way to open pdf file using open_file but now i want to open with specific page.. for example there is 10 page and i want to navigate to page 5 as initial page when it is done opening from default app.. is there a way to achieve that?? i want to avoid open pdf in app using other plugin.. the thing is i have... | android|ios|flutter|dart | 0 | 2022-02-17T01:21:53.367Z | 2,022 | 2 | 1 | 3 | 40 | 1 | 418 | 73 | 4 | 0 | false | false | false | false | false | false | zero |
71,159,925 | How can I use the state on an external function? | <p>Can someone explain me how to use the state on the external function?</p>
<p>All I get is:</p>
<blockquote>
<p>Unresolved reference: selectedTab on the composable function contentTabs</p>
</blockquote>
<pre><code>var selectedTab by remember { mutableStateOf(Tabs.TabContent) }
//...
TabRow(selectedTabIndex = selected... | Can someone explain me how to use the state on the external function? All I get is: Unresolved reference: selectedTab on the composable function contentTabs [CODE] Here is my enum class: [CODE] Here is my external function: [CODE] | kotlin|android-jetpack-compose | 0 | 2022-02-17T14:23:33.530Z | 2,022 | 2 | 14 | 3 | 40 | 1 | 230 | 48 | 2 | 3 | true | false | false | false | false | false | zero |
71,221,455 | How can I check the download source of a App that is downloaded from a server | <p>In my app, I am downloading some components of the app directly from the server, but then I want to check the download source to know if those components were actually downloaded from that server. I thought of using <code>getInstallerPackageName()</code> but that only works for apps like the play store. Please what ... | In my app, I am downloading some components of the app directly from the server, but then I want to check the download source to know if those components were actually downloaded from that server. I thought of using getInstallerPackageName() but that only works for apps like the play store. Please what approach can I u... | java|android-studio|android-security | 0 | 2022-02-22T12:37:23.027Z | 2,022 | 2 | 12 | 1 | 40 | 1 | 425 | 77 | 3 | 0 | false | false | false | false | false | false | zero |
71,280,192 | When setting DB column to allow NULL in Database the app complains about the Schema | <p>I am trying to use Room in Android Studio using Kotlin with a pre-packaged database. The database does not set NOT NULL. Using DB SQL Browser it shows that the column has these properties</p>
<p>"Reference" TEXT</p>
<p>There is no NOT NULL. All the other columns in the table do have NOT NULL set.</p>
<p>In... | I am trying to use Room in Android Studio using Kotlin with a pre-packaged database. The database does not set NOT NULL. Using DB SQL Browser it shows that the column has these properties "Reference" TEXT There is no NOT NULL. All the other columns in the table do have NOT NULL set. In the Entity that maps th... | android-room | 1 | 2022-02-26T20:51:53.933Z | 2,022 | 2 | 20 | 5 | 40 | 1 | 743 | 83 | 1 | 2 | true | false | false | false | false | false | low |
71,285,724 | Having error while uploading user profile image to firebase, during authentication in android | <p><img src="https://i.stack.imgur.com/FkXbJ.png" alt="screenshot" /></p>
<p><img src="https://i.stack.imgur.com/CVlIY.png" alt="screenshots" /></p>
<p>i developed authentication with firebase it worked fine but i want to add an extra module to add user profie image. so I wrote 2 functions first for the user signup wit... | i developed authentication with firebase it worked fine but i want to add an extra module to add user profie image. so I wrote 2 functions first for the user signup with email and password in firebase realtime database, and the second for uploading user profile image along with it... i just add pimage variable in user ... | java|android|firebase-realtime-database | 0 | 2022-02-27T14:46:46.140Z | 2,022 | 2 | 14 | 6 | 40 | 1 | 591 | 93 | 3 | 3 | true | false | false | false | false | false | zero |
71,352,141 | Runtime error while using bottomnavigation | <p>I'm new in android studio. I need to make bottom navigation and different fragemnet working with it. when I run the app the, 'app stop responding' message appears. I cannot find the issue.
and i have a runtime error saying this:</p>
<pre><code>
E/AndroidRuntime: FATAL EXCEPTION: main
Process: np.co... | I'm new in android studio. I need to make bottom navigation and different fragemnet working with it. when I run the app the, 'app stop responding' message appears. I cannot find the issue. and i have a runtime error saying this: [CODE] mainactivity.java file is: [CODE] | java|android|navigation|runtime|android-navigation | 0 | 2022-03-04T13:28:41.020Z | 2,022 | 3 | 13 | 4 | 40 | 1 | 269 | 42 | 5 | 2 | true | false | false | false | false | false | zero |
71,357,290 | All requests using Volley give TimeoutError | <p>I am trying to make some basic requests. However every request is returning a Timeout error. I have tried a number of different urls. My device is connected to the internet. I am connected via a WiFi pairing in Android Studio. I have given my app the <code>INTERNET</code> permission. I have tried overriding the time... | I am trying to make some basic requests. However every request is returning a Timeout error. I have tried a number of different urls. My device is connected to the internet. I am connected via a WiFi pairing in Android Studio. I have given my app the INTERNET permission. I have tried overriding the timeout to 30s and i... | android|kotlin|android-volley | 0 | 2022-03-04T21:16:30.867Z | 2,022 | 3 | 21 | 4 | 40 | 1 | 368 | 43 | 3 | 2 | true | false | false | false | false | false | zero |
71,377,434 | How to set maximum date upto current month only in Datepicker? | <blockquote>
<p>I want to set max date upto current month only. But if I use below concept app crashes if date exceeds current month.</p>
</blockquote>
<pre><code>public void showDateTimePicker() {
final Calendar currentDate = Calendar.getInstance();
Calendar date = Calendar.getInstance();
DateP... | I want to set max date upto current month only. But if I use below concept app crashes if date exceeds current month. [CODE] Crash as below: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.SimpleMonthView.getMonthHeight()' on a null object reference at android.widget.DayPickerView.o... | android | -1 | 2022-03-07T06:59:57.533Z | 2,022 | 3 | 6 | 0 | 40 | 1 | 4,002 | 62 | 1 | 1 | true | false | false | false | false | true | negative |
71,416,291 | How to correctly insert ids to an apk through instrumentation? | <p>I'm doing instrumentation on an apk to add more ids (like in <code>R.id.name</code>) and set id for a specific widget, but I noticed something interesting:</p>
<ul>
<li>If I set an existing id (by "existing" I mean it is declared in <code>ids.xml</code> before compilation) to the widget, UiAutomator can ca... | I'm doing instrumentation on an apk to add more ids (like in R.id.name ) and set id for a specific widget, but I noticed something interesting: If I set an existing id (by "existing" I mean it is declared in ids.xml before compilation) to the widget, UiAutomator can capture that information when I'm dumping t... | android|android-xml|android-resources|android-instrumentation|soot | 0 | 2022-03-09T21:40:04.660Z | 2,022 | 3 | 21 | 2 | 40 | 1 | 1,168 | 62 | 5 | 0 | false | false | false | false | false | false | zero |
71,431,364 | Can't inspect default.sql file from the Android Studio profiler | <p>With my limited experiences with the Android Studio profiler, I see there is a way of exporting the CPU data but don't see any way of exporting the energy profiling data. Furthermore, when I try to read the source code of Android Studio, I see that the energy information is stored in a file called default.sql. Howev... | With my limited experiences with the Android Studio profiler, I see there is a way of exporting the CPU data but don't see any way of exporting the energy profiling data. Furthermore, when I try to read the source code of Android Studio, I see that the energy information is stored in a file called default.sql. However,... | android|android-profiler | 0 | 2022-03-10T22:07:39.847Z | 2,022 | 3 | 22 | 3 | 40 | 1 | 411 | 63 | 2 | 0 | false | false | false | false | false | false | zero |
71,107,763 | Force disable dark mode in android application not working | <p><strong>I have force disable dark mode in my android application but still the app is in dark mode when my phone is in dark mode</strong></p>
<p>I have also changed the theme for both light and night modes to light theme with no action bar but its not working</p> | I have force disable dark mode in my android application but still the app is in dark mode when my phone is in dark mode I have also changed the theme for both light and night modes to light theme with no action bar but its not working | android|android-studio|android-theme | 0 | 2022-02-14T06:11:01.863Z | 2,022 | 2 | 6 | 0 | 296 | 1 | 235 | 58 | 3 | 0 | false | false | false | false | false | false | zero |
71,101,624 | I am trying to open custom chrome tab from nested recycler view but couldn't having error Calling startActivity() from outside of an Activity | <p>Here is the code I am using to open the custom chrome tab</p>
<pre><code>val builder = CustomTabsIntent.Builder()
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(context.applicationContext, Uri.parse("https://www.codingkaro.in"))
</code></pre>
<p>This is se... | Here is the code I am using to open the custom chrome tab [CODE] This is set on a button click listener inside nested recycler view. I have passed the context from the MainActivity as this@MainActivity This is the error I am getting [CODE] | java|android|kotlin|android-recyclerview|nestedrecyclerview | 0 | 2022-02-13T14:33:07.843Z | 2,022 | 2 | 14 | 6 | 41 | 1 | 239 | 141 | 5 | 2 | true | false | false | false | false | false | zero |
71,148,476 | remoteMessage firebase expecting function invocation | <p>I'm learning firebase cloud messaging. I've implemented it in app run notification, but it seems that doesn't work. The problem is that, when I use the firebase keyword called <code>remoteMessage</code>, it says that it needs to be an invocation. Here's the code:</p>
<pre><code>package com.example.fbtutorial
import... | I'm learning firebase cloud messaging. I've implemented it in app run notification, but it seems that doesn't work. The problem is that, when I use the firebase keyword called remoteMessage , it says that it needs to be an invocation. Here's the code: [CODE] if you know why i get this error please tell me, thanks in ad... | android|firebase|kotlin|firebase-cloud-messaging | 0 | 2022-02-16T19:55:15.823Z | 2,022 | 2 | 19 | 2 | 41 | 1 | 326 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
71,206,590 | call https soap service in android | <p>I am trying to call a soap services from android project
I have used ksoap2 in order to do that using the code below</p>
<pre><code>public int timeOut = 30000;
public String response;
@Override
protected void onPreExecute() {
super.onPreExecute();
}
@Override
protected void onPostExecute(String s) {... | I am trying to call a soap services from android project I have used ksoap2 in order to do that using the code below [CODE] the code was working when the url was : http but now my service exist with the prifix: https I have done some searchng to do that but nothing comes up working I am facing this error javax.net.ssl.... | android|https|ksoap2 | 0 | 2022-02-21T12:47:48.893Z | 2,022 | 2 | 12 | 0 | 41 | 1 | 474 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
71,251,500 | how to make listview to appear after animation in flutter | <pre><code>class _YourAppState extends State<YourApp> with SingleTickerProviderStateMixin {
late AnimationController _controller;
bool isLoaded = false;
@override
void initState() {
_controller = AnimationController(
duration: const Duration(milliseconds: 100),
... | [CODE] how to make expanded widget should come after completing the animation in center? Check center widget there I used condition but I don't know how to make expanded widget to come after animation how to make widget to come under if condition ? .....................................................Thank you............ | android|ios|flutter | 1 | 2022-02-24T11:49:15.153Z | 2,022 | 2 | 11 | 3 | 41 | 1 | 330 | 57 | 3 | 1 | true | false | false | false | false | false | low |
71,263,269 | Go to another activity not main activity after splash screen | <p>I have a splash screen in which i am checking user is logged in or not if logged in go to dashboard otherwise go to login activity. I am using sharedpref. Issue is (which I am unable to resolve) after splash screen login screen appears for a brief moment than dashboard. Splash > Login > Dash what i Want is Spl... | I have a splash screen in which i am checking user is logged in or not if logged in go to dashboard otherwise go to login activity. I am using sharedpref. Issue is (which I am unable to resolve) after splash screen login screen appears for a brief moment than dashboard. Splash > Login > Dash what i Want is Splash > Das... | android-studio|authentication|android-activity|sharedpreferences|splash-screen | 0 | 2022-02-25T08:49:11.080Z | 2,022 | 2 | 8 | 4 | 41 | 1 | 409 | 60 | 5 | 1 | true | false | false | false | false | false | zero |
71,283,238 | How do I let my webview go landscape in android | <p>I am trying to learn how to use the webview, I just noticed that the webview does not work in landscape mode, i tried a lot of ways but none of them work, how do i go about doing that?
(I am using Java)</p>
<p>I tried this:
<a href="https://stackoverflow.com/q/19994140/10952503">landscape view and portrait view of w... | I am trying to learn how to use the webview, I just noticed that the webview does not work in landscape mode, i tried a lot of ways but none of them work, how do i go about doing that? (I am using Java) I tried this: landscape view and portrait view of webview in android My code: [CODE] | java|android|webview | 0 | 2022-02-27T08:28:10.560Z | 2,022 | 2 | 8 | 6 | 41 | 1 | 287 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
71,321,751 | How to make a worker to setvalue in Firebase Database when app is closed and internet recovered? | <p>Now in my app, if I have persistence disk enabled... if I setvalue while offline and close app, the value sets only when I reopen it. But I want to set it when internet connection recovers. Any solution?
I use firebase for android studio with java.</p> | Now in my app, if I have persistence disk enabled... if I setvalue while offline and close app, the value sets only when I reopen it. But I want to set it when internet connection recovers. Any solution? I use firebase for android studio with java. | java|android|firebase|firebase-realtime-database | 0 | 2022-03-02T11:17:08.103Z | 2,022 | 3 | 11 | 2 | 41 | 1 | 248 | 96 | 4 | 0 | false | false | false | false | false | false | zero |
71,401,762 | Insert the data in the database | <p>I need to add data to the database, they are not being added
My DatabaseHelper</p>
<pre><code>package com.example.myapplication;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
... | I need to add data to the database, they are not being added My DatabaseHelper [CODE] My add activity [CODE] Nothing appears in the database after registration, but I can log in using this data. But after restarting the application, I can no longer log in using this data. Please help, I will be very grateful, thank you... | java|android|sql|sqlite | -1 | 2022-03-08T21:40:42.823Z | 2,022 | 3 | 21 | 1 | 41 | 1 | 364 | 31 | 4 | 3 | true | false | false | false | false | true | negative |
71,137,654 | Soft keyboard over view in dialog ( jetpack compose view) | <p>I have a dialog view like</p>
<pre><code>Dialog(
onDismissRequest = { openDialogCustom.value = false },
properties = DialogProperties(
dismissOnBackPress = true,
dismissOnClickOutside = false
)
) {
Column(Modifier.height(600.dp)) {
Column(
Modifier
.bac... | I have a dialog view like [CODE] when I select textfield, the soft keyboard appear and over the button and I cannot scroll too see the bottom button. I need some helps to scroll view to see the bottom button in dialog. Image for dialog | android-studio|android-compose-textfield | 0 | 2022-02-16T07:15:15.360Z | 2,022 | 2 | 7 | 2 | 297 | 1 | 235 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
71,093,277 | Android: GATT 137 exception when read characteristic | <p>I'm connecting bluetotooth device. I'm getting GATT 137 exception when I read characteristic of bluetooth device. Why I can't read characteristic ?
Code snippet:</p>
<pre><code>if (!mBluetoothGatt.readCharacteristic(mCharacteristic)) {
Log.e(TAG, "read characteristic task is success")
}else{
... | I'm connecting bluetotooth device. I'm getting GATT 137 exception when I read characteristic of bluetooth device. Why I can't read characteristic ? Code snippet: [CODE] | java|android|kotlin|bluetooth|bluetooth-lowenergy | 0 | 2022-02-12T15:35:35.520Z | 2,022 | 2 | 15 | 5 | 42 | 1 | 168 | 52 | 5 | 1 | true | false | false | false | false | false | zero |
71,099,305 | How to push mandatory notification with flutter? | <p>So I have this app in flutter, in which there are two <code>textfeilds</code>.
One is 'Reminder title' and another is the description/message.</p>
<img src="https://i.stack.imgur.com/ISUQj.png" width="300" />
<p>Now what I want is that to push a notification with the information from the <code>textfeilds</code>.
And... | So I have this app in flutter, in which there are two textfeilds . One is 'Reminder title' and another is the description/message. Now what I want is that to push a notification with the information from the textfeilds . And I want the notification to be there until I mark it as done from the app. Now I have been using... | android|flutter|dart | 0 | 2022-02-13T09:16:16.120Z | 2,022 | 2 | 9 | 6 | 42 | 1 | 534 | 48 | 3 | 0 | false | false | false | false | false | false | zero |
71,120,279 | ClassNotFoundException when minifyEnabled and shrinkResources are enabled | <p>I am getting java.lang.ClassNotFoundException: Didn't find class "com.cie.app1.model.GroupModel" when I compile the application in release so, enabling minifyEnabled and shrinkResources cause the application to crash.</p>
<p>The exception line is on the line containing app:argType="com.bts.app1.model.... | I am getting java.lang.ClassNotFoundException: Didn't find class "com.cie.app1.model.GroupModel" when I compile the application in release so, enabling minifyEnabled and shrinkResources cause the application to crash. The exception line is on the line containing app:argType="com.bts.app1.model.GroupModel... | android|android-studio | 0 | 2022-02-15T01:53:56.293Z | 2,022 | 2 | 1 | 1 | 42 | 1 | 5,260 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
71,272,708 | Android Activity Exit Transition not fully interpolating | <p>I have set my activity's exitTransition to be something like</p>
<pre class="lang-kotlin prettyprint-override"><code>window.exitTransition = object : Visibility() {
override fun onDisappear(
sceneRoot: ViewGroup?,
startValues: TransitionValues?,
startVisibility: Int,
endValues: Tran... | I have set my activity's exitTransition to be something like [CODE] The enterTransition is similar using onAppear . When transitioning between activities after setting the transitions: [CODE] On my Android 11 device, my enter animation gets all of its updates, but the exit animation is played only briefly before being ... | android|android-activity|android-animation|android-transitions | 1 | 2022-02-25T23:19:45.343Z | 2,022 | 2 | 23 | 4 | 42 | 1 | 610 | 56 | 4 | 2 | true | false | false | false | false | false | low |
71,323,128 | Image does not fit in ImageButton - Kotlin Android Studio | <p>Using Kotlin in Android Studio, I created a form where a user can attach an image by taking a photo using the camera. Once the user clicks the ImageButton, the camera will be launched and the user can take a photo. The captured photo should be then set in the ImageButton. This works, HOWEVER, the image is too large ... | Using Kotlin in Android Studio, I created a form where a user can attach an image by taking a photo using the camera. Once the user clicks the ImageButton, the camera will be launched and the user can take a photo. The captured photo should be then set in the ImageButton. This works, HOWEVER, the image is too large and... | xml|android-studio|kotlin | 1 | 2022-03-02T12:59:23.703Z | 2,022 | 3 | 12 | 2 | 42 | 1 | 801 | 57 | 3 | 2 | true | false | false | false | false | false | low |
71,324,218 | How to refresh fragment with recycle view when we delete some image file from recycle view in Android java | <p>fragment_picture.xml</p>
<pre><code><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="... | fragment_picture.xml [CODE] FragmentPicture.java [CODE] I added popup menu on picture_item of recycle view and when we press delete button of popup menu I send String path of that image to deletePhoto(item); and that method delete image. after delete image we have to manually refresh fragment by pull refresh But can ad... | java|android | 0 | 2022-03-02T14:18:23.570Z | 2,022 | 3 | 14 | 2 | 42 | 1 | 579 | 106 | 2 | 2 | true | false | false | false | false | false | zero |
71,342,871 | Saving information to dart flutter database and pulling information to listTile | <p>I have an application. In the application the user will save data. When you log into a particular page, the record of logging into that page will be saved in the database.</p>
<p>My problem is this: I examined the <code>sqflite</code> database structure, but I could not understand it. It's a strange building. What I... | I have an application. In the application the user will save data. When you log into a particular page, the record of logging into that page will be saved in the database. My problem is this: I examined the sqflite database structure, but I could not understand it. It's a strange building. What I need to do is to save ... | android|flutter|dart | 0 | 2022-03-03T19:39:28.590Z | 2,022 | 3 | 19 | 3 | 42 | 1 | 518 | 79 | 3 | 0 | false | false | false | false | false | false | zero |
71,208,153 | android studio ParseError at [row,col]:[9,9] Message: Attribute name "co" associated with an element type "item" must be followed by the | <p><a href="https://i.stack.imgur.com/RPaXL.png" rel="nofollow noreferrer">ParseError at [row,col]:[9,9]
Message: Attribute name "co" associated with an element type "item" must be followed by the ' = ' character.
<strong>strong text</strong>strong text</a></p> | ParseError at [row,col]:[9,9] Message: Attribute name "co" associated with an element type "item" must be followed by the ' = ' character. strong text strong text | android | -1 | 2022-02-21T14:39:15.573Z | 2,022 | 2 | 14 | 0 | 43 | 1 | 182 | 136 | 1 | 0 | false | false | false | false | false | true | negative |
71,362,841 | Recyclerview and viewpager combined effect(Picture Galllery view) | <p>I am currently working on a project that simulate the same effect as the picture gallery where you have pictures listed in gridlayout and on click the image enlarges with other details as seen in the video below.
<a href="https://im.ezgif.com/tmp/ezgif-1-aaf5fb0a1d.gif" rel="nofollow noreferrer">Gallery effect sampl... | I am currently working on a project that simulate the same effect as the picture gallery where you have pictures listed in gridlayout and on click the image enlarges with other details as seen in the video below. Gallery effect sample How can I make a swift change between recyclerview and viewpager2 to make this happen... | android|android-recyclerview|android-viewpager|android-viewpager2 | 0 | 2022-03-05T14:04:01.477Z | 2,022 | 3 | 14 | 5 | 43 | 1 | 362 | 65 | 4 | 0 | false | false | false | false | false | false | zero |
71,423,408 | Android-studio goes endless loop when trying to compile MLKIT-sample code | <p>I'm trying to compile and run Google's MLKit sample <a href="https://github.com/googlesamples/mlkit" rel="nofollow noreferrer">https://github.com/googlesamples/mlkit</a>. Code uses kotlin and there is one compiling issue, where I had to add '.toString()', when 'String' was expected, but got 'String?'. After that ma... | I'm trying to compile and run Google's MLKit sample https://github.com/googlesamples/mlkit . Code uses kotlin and there is one compiling issue, where I had to add '.toString()', when 'String' was expected, but got 'String?'. After that manual code correction gradle process tries to compile the project, but task ':app:m... | android-studio|gradle | 0 | 2022-03-10T11:30:17.897Z | 2,022 | 3 | 11 | 3 | 43 | 1 | 1,741 | 73 | 2 | 0 | false | false | false | false | false | false | zero |
71,395,053 | I want to use API for convert word file to pdf file in my flutter app using convertapi.com ,what is wrong with my POST method | <pre><code>import 'dart:io';
import 'package:aconvert/pages/view.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'dart:convert';
import 'dart:typed_data';
import 'package:aconvert/services/api.dart';
import 'package:path_provider/path_p... | [CODE] E/flutter (11254): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Bad state: Cannot set the body fields of a Request with content-type "application/json". E/flutter (11254): #0 Request.bodyFields= (package:http/src/request.dart:133:7) E/flutter (11254): #1 BaseClient._sendUnstreamed ... | android|json|flutter|api|http-post | 0 | 2022-03-08T12:27:40.373Z | 2,022 | 3 | 12 | 1 | 299 | 1 | 3,155 | 125 | 5 | 1 | true | false | false | false | false | false | zero |
71,102,111 | Black rectangle on top of android camera preview | <p>I am working on android app that uses NDK camera2API with opengl.
When I launch the application on the device, a black rectangle appears on top, although the application should run in full screen.</p>
<p><a href="https://i.stack.imgur.com/OeNEE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OeNEE... | I am working on android app that uses NDK camera2API with opengl. When I launch the application on the device, a black rectangle appears on top, although the application should run in full screen. The architecture of the application from the java side uses the navigation graph. To fullscreen mode, I use this: [CODE] On... | android|c++|opengl-es|android-ndk|android-camera2 | 0 | 2022-02-13T15:26:59.897Z | 2,022 | 2 | 15 | 6 | 44 | 1 | 442 | 48 | 5 | 5 | true | false | false | false | false | false | zero |
71,289,367 | The order wont appear when getting a specific value in a collection in firestore | <p>The project I'm working on a E-commerce app and I'm trying to show the list of orders that the user add in a recyclerview</p>
<p>the Problem I'm having is that all the details of the user appear except the orders that the user added doesn't show up and no error appear when I run the application</p>
<p><strong>The co... | The project I'm working on a E-commerce app and I'm trying to show the list of orders that the user add in a recyclerview the Problem I'm having is that all the details of the user appear except the orders that the user added doesn't show up and no error appear when I run the application The collection of the User deta... | java|android|firebase|google-cloud-firestore | 0 | 2022-02-27T23:49:48.060Z | 2,022 | 2 | 23 | 6 | 44 | 1 | 379 | 80 | 4 | 1 | true | false | false | false | false | false | zero |
71,412,728 | Xamarin Android - Add theme to intent | <p>I have this problem <a href="https://stackoverflow.com/questions/33162497/white-screen-is-displayed-while-switching-between-activities">White screen is displayed while switching between Activities</a></p>
<p>When I try to send an email using Xamarin.Essentials.Email.ComposeAsync I get a white screen. This method is ... | I have this problem White screen is displayed while switching between Activities When I try to send an email using Xamarin.Essentials.Email.ComposeAsync I get a white screen. This method is inside a Fragment rather than an Activity class so I can't use android:name on the <activity> element. I want to know if I can imp... | android|xamarin | 0 | 2022-03-09T16:27:54.753Z | 2,022 | 3 | 16 | 2 | 44 | 1 | 375 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
71,101,048 | Fragment returns null while reading from sharedpreferences file | <p>I am reading string value from sharedpreferences in fragment but it return null sometime? Here is my logcat output:</p>
<pre><code>java.lang.IllegalStateException: Fragment Home{fc6bf3a} (14420322-2dbf-46e9-9f52-12586f9fa36b) not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.ja... | I am reading string value from sharedpreferences in fragment but it return null sometime? Here is my logcat output: [CODE] Here is my sharedPreference code: [CODE] How to avoid this exception while reading a value from sharedpreferences? | android|android-fragments|sharedpreferences|fragment-lifecycle | 0 | 2022-02-13T13:23:52.560Z | 2,022 | 2 | 13 | 6 | 45 | 1 | 237 | 63 | 4 | 2 | true | false | false | false | false | false | zero |
71,115,595 | How to disable popups with code in Android Studio? | <p>When using left mouse button + Ctrl on a method and navigating to it (maybe in another file), an annoying yellow popup with code appears and obscures the toolbar:</p>
<p><a href="https://i.stack.imgur.com/rTvRL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rTvRL.png" alt="enter image description... | When using left mouse button + Ctrl on a method and navigating to it (maybe in another file), an annoying yellow popup with code appears and obscures the toolbar: How to disable it? I've searched in the settings and the internet, but found no solution. | java|android|android-studio|popup | 0 | 2022-02-14T17:08:19.917Z | 2,022 | 2 | 17 | 0 | 45 | 1 | 252 | 50 | 4 | 0 | false | false | false | false | false | false | zero |
71,127,520 | Distance from button contents to button frame | <p>I have several buttons in my app and would like to change the red marked distance in my screenshot to "0". So that the number inside the button is as big as possible.</p>
<p><a href="https://i.stack.imgur.com/ZRVze.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZRVze.png" alt="enter ima... | I have several buttons in my app and would like to change the red marked distance in my screenshot to "0". So that the number inside the button is as big as possible. I just don't know how this is possible. Here my .xml code: [CODE] I appreciate every hint or advice. Thanks. | android|android-studio|kotlin|button|styles | 0 | 2022-02-15T13:43:43.370Z | 2,022 | 2 | 13 | 1 | 45 | 1 | 285 | 45 | 5 | 1 | true | false | false | false | false | false | zero |
71,137,777 | Huawei IAP kit server side token error - HMS Core-In-App Purchases | <p>When I do API call for cancel subscription, it is giving token expired error as response.</p>
<p><strong>Request:</strong></p>
<pre><code>{"subscriptionId":"163912368****.7CA2****.****","purchaseToken":" 0000017da36282f5f6****aeac1cc6c128e7e787253****4da40c6e8837469b272c2e88eb48b32... | When I do API call for cancel subscription, it is giving token expired error as response. Request: [CODE] Response: {"responseCode":"6","responseMessage":"Token is expired or invalid"} Please help to fix this issue. | android|in-app-purchase|huawei-mobile-services|huawei-iap | 1 | 2022-02-16T07:26:29.403Z | 2,022 | 2 | 7 | 2 | 45 | 1 | 255 | 66 | 4 | 1 | true | false | false | false | false | false | low |
71,138,720 | Android Chrome Browser casting to Chromecast - if I unplug chromecast (or unplug network), then the Chrome Browser page crashes | <p>I have replicated the issue on Chrome and Edge (on Android). Although don't appear to have the issue on Chrome and Edge (Windows). I have tried Chrome v83 and latest v98.0.4758.101 - same issue. I can successfully cast and disconnect.</p>
<p>However, if the network drops, router powers off, wifi unit powers off, cas... | I have replicated the issue on Chrome and Edge (on Android). Although don't appear to have the issue on Chrome and Edge (Windows). I have tried Chrome v83 and latest v98.0.4758.101 - same issue. I can successfully cast and disconnect. However, if the network drops, router powers off, wifi unit powers off, cast receiver... | javascript|php|android|google-chrome|android-cast-api | 0 | 2022-02-16T08:53:59.983Z | 2,022 | 2 | 8 | 2 | 45 | 1 | 564 | 127 | 5 | 0 | false | false | false | false | false | false | zero |
71,209,076 | make a method available to all Activities | <p>I have a method "InitView", I want to call it in every Activity, I create a class "Helper" and in it my method I make it static and pass Activity like parameter.</p>
<p>I'm wondering if its the best solution and if there is no memory leak or something like that.
here is my code:</p>
<pre><code>pu... | I have a method "InitView", I want to call it in every Activity, I create a class "Helper" and in it my method I make it static and pass Activity like parameter. I'm wondering if its the best solution and if there is no memory leak or something like that. here is my code: [CODE] | android | 0 | 2022-02-21T15:38:44.453Z | 2,022 | 2 | 15 | 0 | 45 | 1 | 299 | 41 | 1 | 1 | true | false | false | false | false | false | zero |
71,250,940 | Android Seekbar - put all seekbar at 0 when you increase a seekbar | <p>I have created an application with 3 search bars in an activity page. I want to set all search bars to 0 when I move a search bar, as shown in the image.
<a href="https://i.stack.imgur.com/jZAkh.png" rel="nofollow noreferrer">screenshot apk</a></p>
<p>I tried to do it as a group of togglebutton but it doesn't work.<... | I have created an application with 3 search bars in an activity page. I want to set all search bars to 0 when I move a search bar, as shown in the image. screenshot apk I tried to do it as a group of togglebutton but it doesn't work. [CODE] | android|android-studio|kotlin|seekbar|android-seekbar | 0 | 2022-02-24T11:03:14Z | -1 | -1 | -1 | -1 | 45 | 1 | 240 | 66 | 5 | 1 | true | false | false | false | false | false | zero |
71,253,785 | Fading in TextView Letter by Letter like a Typewriter | <p>I would like to do a fade in typewriter effect with a TextView. Specifically, my Activity receives an Intent with some text, and I would like it to display the text in a TextView, letter by letter:
H
He
Her
Here
...</p>
<p>I found this great <a href="https://github.com/chtgupta/FadeInTextView-Android" rel="nofollow ... | I would like to do a fade in typewriter effect with a TextView. Specifically, my Activity receives an Intent with some text, and I would like it to display the text in a TextView, letter by letter: H He Her Here ... I found this great GitHub library that is exactly what I want, but I'm having trouble incorporating it i... | java|android|maven|gradle | 1 | 2022-02-24T14:47:54.240Z | 2,022 | 2 | 14 | 3 | 45 | 1 | 1,293 | 53 | 4 | 2 | true | false | false | false | false | false | low |
71,322,157 | how to detect while picking video is corrupted in xamarin android | <p>I am using Xamarin essential using Multipicker while choosing corrupted video its also selected in the Media list when upload time it showing setdatasource failed. How to detect when choosing at time video is corrupted or any other option</p>
<pre><code>result = await Xamarin.Essentials.FilePicker.PickMultipleAsync(... | I am using Xamarin essential using Multipicker while choosing corrupted video its also selected in the Media list when upload time it showing setdatasource failed. How to detect when choosing at time video is corrupted or any other option [CODE] | xamarin.forms|xamarin.android|picker|xamarin.essentials | 0 | 2022-03-02T11:46:09.293Z | 2,022 | 3 | 11 | 2 | 45 | 1 | 245 | 65 | 4 | 1 | true | false | false | false | false | false | zero |
71,106,388 | Android MediasessionCompat callback function for physical media player button keeps crashing | <p>I used the code from this link <a href="https://stackoverflow.com/questions/54414333/mediasession-onmediabuttonevent-works-for-a-few-seconds-then-quits-android">MediaSession onMediaButtonEvent works for a few seconds then quits - Android</a> to capture the keyevents of the remote button and send it to the audio() fu... | I used the code from this link MediaSession onMediaButtonEvent works for a few seconds then quits - Android to capture the keyevents of the remote button and send it to the audio() function where the selection will be played by another mediaplayer. I run into the same problems where the code will crash after a few seco... | java|android|bluetooth|keyevent|mediasession | 0 | 2022-02-14T01:49:00.197Z | 2,022 | 2 | 1 | 0 | 301 | 1 | 772 | 92 | 5 | 3 | true | false | false | false | false | false | zero |
71,420,351 | Flutter: How to check local file list and extract files into app? | <p>As we know, our mobile phone has a function that we can check files from a file list. Just like the following picture. It seems that this function's name is <strong>filemanager</strong>. I wondered that is it possible in Flutter to achieve a similar function, which can check my own mobile phone's files and extract o... | As we know, our mobile phone has a function that we can check files from a file list. Just like the following picture. It seems that this function's name is filemanager . I wondered that is it possible in Flutter to achieve a similar function, which can check my own mobile phone's files and extract one of the files int... | android|flutter|dart|file-management|file-manager | 0 | 2022-03-10T07:38:23.177Z | 2,022 | 3 | 7 | 3 | 557 | 1 | 481 | 65 | 5 | 0 | false | false | false | false | false | false | zero |
53,633,341 | Can we implement collapsing Toolbar behaviour in Bottom Appbar? | <p>How can we implement collapsing Toolbar behaviour in Bottom Appbar? Is it possible to do it?</p> | How can we implement collapsing Toolbar behaviour in Bottom Appbar? Is it possible to do it? | android|kotlin|android-collapsingtoolbarlayout|android-bottomappbar | -2 | 2018-12-05T13:22:07.373Z | 2,018 | 12 | 13 | 2 | 256 | 1 | 92 | 63 | 4 | 0 | false | false | false | false | false | true | negative |
53,420,951 | Android Studio Deep Link using URI | <p>Like the dozen other threads out there, I am trying to debug directly on a device using Android Studio via a uri. But I can't seem to find an exact example of someone doing so from Android Studio using the Edit Configuration. Sure something simple I am missing...</p>
<p>Here is what I am doing:</p>
<ol>
<li>Add th... | Like the dozen other threads out there, I am trying to debug directly on a device using Android Studio via a uri. But I can't seem to find an exact example of someone doing so from Android Studio using the Edit Configuration. Sure something simple I am missing... Here is what I am doing: Add the uri to the Edit Configu... | android|android-studio|deep-linking | 0 | 2018-11-21T21:50:09.487Z | 2,018 | 11 | 21 | 2 | 512 | 1 | 447 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
53,589,767 | Check if location layer was changed. Yandex MapKit 3.0 | <p>How to check if i change camera location for disable anchor?
I dont see solution in <a href="https://github.com/yandex/mapkit-android-demo/tree/master/src/main/java/com/yandex/mapkitdemo" rel="nofollow noreferrer">examples</a> or <a href="https://tech.yandex.ru/maps/doc/mapkit/3.x/concepts/android/mapkit/about-docpa... | How to check if i change camera location for disable anchor? I dont see solution in examples or docs . | android|geolocation|mapkit|yandex|yandex-maps | 0 | 2018-12-03T08:11:37.047Z | 2,018 | 12 | 8 | 0 | 512 | 1 | 102 | 54 | 5 | 0 | false | false | false | false | false | false | zero |
53,735,473 | Linux socket connect failed in Android | <p>I want to create a socket in Android with NDK, but sometimes I get some errors when connecting to server, and I can make sure that the network of the users' cell phone is available.
One case is timeout error, and the other seems like connect refused, because I get the following logs, I think the second error is con... | I want to create a socket in Android with NDK, but sometimes I get some errors when connecting to server, and I can make sure that the network of the users' cell phone is available. One case is timeout error, and the other seems like connect refused, because I get the following logs, I think the second error is connect... | android|linux|sockets | 0 | 2018-12-12T03:07:11.777Z | 2,018 | 12 | 3 | 2 | 1,024 | 1 | 602 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
53,491,904 | App crashing only on Huawei phones with NameNotFoundException in PackageManager? | <p>I'm fairly new to Android apps and ran into a problem that I simply cannot figure out. I don't even know how to start debugging it so I'm hoping someone can help. </p>
<p>My app started to crash during startup only on Huawei phones and out of the blue (I didn't release an update, the crash seemed to just appear on ... | I'm fairly new to Android apps and ran into a problem that I simply cannot figure out. I don't even know how to start debugging it so I'm hoping someone can help. My app started to crash during startup only on Huawei phones and out of the blue (I didn't release an update, the crash seemed to just appear on Huawei). It ... | java|android|huawei-mobile-services | 2 | 2018-11-27T02:29:31.997Z | 2,018 | 11 | 2 | 1 | 1,280 | 1 | 580 | 80 | 3 | 1 | true | false | false | false | false | false | low |
53,487,081 | SMS verification with Android SmsRetrieverClient not parsing message | <p>Tried to implement SMS auto-reading for verification following the steps here:
<a href="https://developers.google.com/identity/sms-retriever/request" rel="nofollow noreferrer">https://developers.google.com/identity/sms-retriever/request</a></p>
<p>1) declared </p>
<pre><code>lateinit var smsRetrieverClient: SmsRet... | Tried to implement SMS auto-reading for verification following the steps here: https://developers.google.com/identity/sms-retriever/request 1) declared [CODE] 2) Initialised and registered them in login Activity onCreate [CODE] 3) Made BroadcastReceiver for SmsRetriever [CODE] 4) The SMS comes in format [CODE] And the ... | android|kotlin|google-play-services|sms-verification | 4 | 2018-11-26T18:33:36.647Z | 2,018 | 11 | 18 | 0 | 2,560 | 1 | 729 | 68 | 4 | 5 | true | false | false | false | false | false | low |
53,553,792 | android studio 3.1.2 debug app, "attach debugger to android process" can't find the process when app running in phone | <p>see the picture, the app is running in phone.
<a href="https://i.stack.imgur.com/FsOpG.png" rel="nofollow noreferrer">enter image description here</a>
then in the phone, I find the developer options->debugging->Select debug app->no debug application set.
<a href="https://i.stack.imgur.com/jXJAV.jpg" rel="nofollow no... | see the picture, the app is running in phone. enter image description here then in the phone, I find the developer options->debugging->Select debug app->no debug application set. enter image description here enter image description here Hi, everybody. I want to debug a app in my phone, First, I run the app in my phone.... | android|android-studio-3.0 | -1 | 2018-11-30T08:25:19.727Z | 2,018 | 11 | 8 | 4 | 769 | 1 | 640 | 117 | 2 | 0 | false | false | false | false | false | true | negative |
53,597,398 | Android: How to Play song when listview item is selected | <p>I have create one listview to play media file mp3 songs. If i am select 1st song to play,it is playing but if i select second or another song on listview then it play again 1st song. I want that if i select second or any other listview song they will be select to play.Kindly help me solve such issue...Thank you in a... | I have create one listview to play media file mp3 songs. If i am select 1st song to play,it is playing but if i select second or another song on listview then it play again 1st song. I want that if i select second or any other listview song they will be select to play.Kindly help me solve such issue...Thank you in adva... | android|listview|android-listview|android-music-player | 0 | 2018-12-03T16:00:39.360Z | 2,018 | 12 | 16 | 0 | 1,793 | 1 | 408 | 56 | 4 | 2 | true | false | false | false | false | false | zero |
53,397,361 | Receive Firebase push notification | <p>In my Android app I need to handle receiving of Firebase push notification messages, so that I can manipulate their ids (so that all notifications display rather than replacing each other) and so that I can display an app icon (setting it with a meta-data element in Android manifest doesn't work.)</p>
<p>I've creat... | In my Android app I need to handle receiving of Firebase push notification messages, so that I can manipulate their ids (so that all notifications display rather than replacing each other) and so that I can display an app icon (setting it with a meta-data element in Android manifest doesn't work.) I've creating a messa... | android|firebase|xamarin|push-notification|xamarin.android | 1 | 2018-11-20T16:27:30.540Z | 2,018 | 11 | 16 | 1 | 258 | 1 | 678 | 34 | 5 | 2 | true | false | false | false | false | false | low |
53,562,167 | Kill android application after X time | <p>I have been searching around for a way to kill my application after the user put it in the background for at least 30min.</p>
<p>So far what i have found things like : </p>
<pre><code>getActivity().finish();
Process.killProcess(Process.myPid());
System.exit(1);
private void stopServices() {
final Acti... | I have been searching around for a way to kill my application after the user put it in the background for at least 30min. So far what i have found things like : [CODE] Pretty much what i have figered so far is taht after API 21 use [CODE] before that use this.finishAffinity(); But how to start timer once the app is put... | android|background|background-process|kill-process | 0 | 2018-11-30T17:23:42.573Z | 2,018 | 11 | 17 | 4 | 258 | 1 | 384 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
53,583,090 | decoding h264 video frames using decodeByteArray always return null | <p>I want to convert the h264 frame byte-data to Bitmap array so that I can feed it to other sources, I tried this:</p>
<pre><code>@Override
public ARCONTROLLER_ERROR_ENUM onFrameReceived(ARDeviceController
deviceController,
ARFrame frame) {
byte[] data = frame.getByteData();
Bitmap bitmap = BitmapFactory.decodeByte... | I want to convert the h264 frame byte-data to Bitmap array so that I can feed it to other sources, I tried this: [CODE] But it doesn’t work, the decodeByteArray can’t decode the byte data returned by the frame and it is always return null. any suggestions? | android|h.264 | 0 | 2018-12-02T18:03:23.913Z | 2,018 | 12 | 18 | 6 | 258 | 1 | 256 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
53,794,070 | saveToGallery SQLiteDatabase: Error inserting bucket_id | <p>I cannot save chart. I get false retured value from <code>saveToGallery</code>, and what I see in <code>logs</code> is: </p>
<blockquote>
<p>SQLiteDatabase: Error inserting bucket_id=-2075821635 date_modified=1544882049 is_hw_burst=0 datetaken=1 544882049000 bucket_display_name=DCIM parent=8 format=14337 s... | I cannot save chart. I get false retured value from saveToGallery , and what I see in logs is: SQLiteDatabase: Error inserting bucket_id=-2075821635 date_modified=1544882049 is_hw_burst=0 datetaken=1 544882049000 bucket_display_name=DCIM parent=8 format=14337 storage_id=65537 media_type=1 mime_type=image/jpeg title=cha... | android|mpandroidchart | -1 | 2018-12-15T14:21:10.803Z | 2,018 | 12 | 14 | 5 | 258 | 1 | 673 | 55 | 2 | 2 | true | false | false | false | false | true | negative |
53,408,816 | Android studio gradle sync error with firebase : Response 204: No Content has no content | <p>Since this morning i have trouble to sync my android project in android-studio.</p>
<p>When i try to do so, i get every time the same errors :
<a href="https://i.stack.imgur.com/bD3S0.png" rel="nofollow noreferrer">A part of the errors</a></p>
<p>All those errors are caused by the same problem : </p>
<pre><code>C... | Since this morning i have trouble to sync my android project in android-studio. When i try to do so, i get every time the same errors : A part of the errors All those errors are caused by the same problem : [CODE] And indeed, when trying to access manually to the address there is nothing Example of one of them Any idea... | java|android|firebase|android-studio|gradle | 3 | 2018-11-21T09:23:18.803Z | 2,018 | 11 | 9 | 2 | 514 | 1 | 424 | 88 | 5 | 3 | true | false | false | false | false | false | low |
53,496,411 | How do I manage profile pics of user in chat (QBChatDialog) in Quickblox | <p>I have to integrate Quickblox chat service in my app. I have done the integration part using its documentation but How so I set profile pics of user and get it to show in QBChatDialog. I have gone through this <a href="https://quickblox.com/developers/SimpleSample-users-android" rel="nofollow noreferrer">link</a> bu... | I have to integrate Quickblox chat service in my app. I have done the integration part using its documentation but How so I set profile pics of user and get it to show in QBChatDialog. I have gone through this link but don`t think it will make my work. Please reply soon. | android|chat|quickblox|quickblox-android | 0 | 2018-11-27T09:26:27.443Z | 2,018 | 11 | 9 | 1 | 259 | 1 | 271 | 72 | 4 | 0 | false | false | false | false | false | false | zero |
53,592,754 | Is it possible in (android) xml resource android:text to have variable format float precision? | <p>Having a text resource like this </p>
<pre><code><string name="list_item_station_detail_current_price_price_text">%1$.2f</string>
</code></pre>
<p>Used in a layout xml like this </p>
<pre><code>android:text="@{@string/list_item_station_detail_current_price_price_text(currentPrice.price)}"
</code>... | Having a text resource like this [CODE] Used in a layout xml like this [CODE] My trouble is that the precision isn't always 2 digits ( %1$.2f ), it may be variable. Is there a clever trick to fix this, maybe nested strings, or something ? | android|xml|android-layout|textview|floating-accuracy | 3 | 2018-12-03T11:20:50.897Z | 2,018 | 12 | 11 | 0 | 259 | 1 | 238 | 94 | 5 | 2 | true | false | false | false | false | false | low |
53,729,458 | Android Management API for private use? | <p>Have I got this right?</p>
<p>We want to build an in-house kiosk management solution that would deploy > 50 devices, and <a href="https://developers.google.com/android/management/introduction" rel="nofollow noreferrer">Android Management API</a> seems to fit the bill. The issue is, I can't make sense of the documen... | Have I got this right? We want to build an in-house kiosk management solution that would deploy > 50 devices, and Android Management API seems to fit the bill. The issue is, I can't make sense of the documentation. Everything seems aimed at making a publicly available product- like an EMM vendor listed in a marketplace... | android-management-api | 0 | 2018-12-11T17:35:26.567Z | 2,018 | 12 | 17 | 1 | 259 | 1 | 1,397 | 39 | 1 | 0 | false | false | false | false | false | false | zero |
53,748,168 | cannot resolve com.android.support.design: | <p>I tried the solution given before in stack overflow for this question, but it didnt worked... I am trying to use TextInputLayout for floating label, so I tried this code in gradle file</p>
<pre><code>dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcomp... | I tried the solution given before in stack overflow for this question, but it didnt worked... I am trying to use TextInputLayout for floating label, so I tried this code in gradle file [CODE] } and added this snippet in build.gradle(project) .. [CODE] } but i am getting the error failed to resolve com.android.support.d... | android|android-textinputlayout | 0 | 2018-12-12T17:16:10.097Z | 2,018 | 12 | 17 | 2 | 259 | 1 | 414 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
53,764,216 | Assets Folder Not Including HTML Files In NativeScript Android Build | <p>I am trying to display a local html file with JS and CSS and PNG images referenced by it. I put the files into my assets folder of a NativeScript x Angular app for Android. When I run tns run android --bundle and the app gets built - the assets folder does not include the html. Folder structure goes from assets > in... | I am trying to display a local html file with JS and CSS and PNG images referenced by it. I put the files into my assets folder of a NativeScript x Angular app for Android. When I run tns run android --bundle and the app gets built - the assets folder does not include the html. Folder structure goes from assets > index... | android|nativescript|angular2-nativescript|nativescript-angular|nativescript-telerik-ui | 1 | 2018-12-13T14:35:36.570Z | 2,018 | 12 | 14 | 3 | 1,027 | 1 | 466 | 68 | 5 | 0 | false | false | false | false | false | false | low |
53,728,574 | How to clip circle in android | <p>I need to clip custom circle button. I did it by the viewgroup, cause i need image in center. So i need to make it so that when pressed near the button it does not work. Here is code of this view:</p>
<pre><code>public class CircleCustom extends ViewGroup {
private static final int Circle_RADIUS_DEF = 120;
private... | I need to clip custom circle button. I did it by the viewgroup, cause i need image in center. So i need to make it so that when pressed near the button it does not work. Here is code of this view: [CODE] Im trying to clip it right here : [CODE] I didnt find any info about clipping custom circle. Im already tried to do ... | java|android|custom-view|clip | 2 | 2018-12-11T16:38:01.883Z | 2,018 | 12 | 16 | 1 | 260 | 1 | 359 | 29 | 4 | 2 | true | false | false | false | false | false | low |
53,784,600 | NoClassDefFoundError: Adding Google Sign In to Android using AWS Amplify | <p>I am following the guide for adding google login to my android application: <a href="https://aws-amplify.github.io/docs/android/authentication#google-login-in-your-mobile-app" rel="nofollow noreferrer">https://aws-amplify.github.io/docs/android/authentication#google-login-in-your-mobile-app</a></p>
<p>And I am gett... | I am following the guide for adding google login to my android application: https://aws-amplify.github.io/docs/android/authentication#google-login-in-your-mobile-app And I am getting this error: [CODE] (note the error message is much longer) My AuthenticatorActivity looks exactly like what they provide (with the import... | android|amazon-web-services|android-studio|google-authentication|google-authenticator | 0 | 2018-12-14T17:48:25.007Z | 2,018 | 12 | 17 | 4 | 260 | 1 | 524 | 72 | 5 | 2 | true | false | false | false | false | false | zero |
53,787,334 | How can I open a 360 Youtube Video in the YoutubeVR app from WebVR/A-Frame | <p>Since it is not currently possible to embed 360 youtube videos in WebVR/WebXR/A-Frame, I would like it so that when a user clicks a thumbnail, in Samsung Internet on the Gear VR for example, the YouTube 360 video will open in the Youtube VR app
(provided it's installed on the user's device)</p>
<p>Does anyone know... | Since it is not currently possible to embed 360 youtube videos in WebVR/WebXR/A-Frame, I would like it so that when a user clicks a thumbnail, in Samsung Internet on the Gear VR for example, the YouTube 360 video will open in the Youtube VR app (provided it's installed on the user's device) Does anyone know how I can a... | android|youtube|webvr|gear-vr | 0 | 2018-12-14T21:49:56.733Z | 2,018 | 12 | 21 | 4 | 260 | 1 | 332 | 74 | 4 | 0 | false | false | false | false | false | false | zero |
53,705,884 | NativeScript android NotificationChannel error | <p>i have a { N } app that should trigger notifications.</p>
<p>i'm using the notificationChannel but i keep getting the same error when the app crushed.</p>
<pre><code>"System.err: TypeError: android.NotificationChannel is not a constructor"
</code></pre>
<p>my code is :</p>
<pre><code> android.app.job.JobServi... | i have a { N } app that should trigger notifications. i'm using the notificationChannel but i keep getting the same error when the app crushed. [CODE] my code is : [CODE] the error coming from this row : [CODE] why is he telling me that NotificationChannel is not a constructor? what did i missed ? this is where i got t... | android|nativescript|notification-channel | 0 | 2018-12-10T12:41:30.940Z | 2,018 | 12 | 12 | 0 | 772 | 1 | 643 | 46 | 3 | 4 | true | false | false | false | false | false | zero |
53,657,981 | How to invert Curved Bottom Navigation? | <p>I found a library <a href="https://github.com/androidtutorialonline/CurvedBottomNavigationView" rel="nofollow noreferrer">https://github.com/androidtutorialonline/CurvedBottomNavigationView</a> which draws a curve with canvas.
I would like to invert the curve so that the curve is not going from top.
The curve should... | I found a library https://github.com/androidtutorialonline/CurvedBottomNavigationView which draws a curve with canvas. I would like to invert the curve so that the curve is not going from top. The curve should go from the bottom to the top. But i dont really now how to invert this. Im trying it since 2 hours, i dont kn... | android|canvas|path | 3 | 2018-12-06T18:57:51.473Z | 2,018 | 12 | 18 | 3 | 3,332 | 1 | 610 | 39 | 3 | 1 | true | false | true | false | false | false | low |
53,518,053 | How to inject a ViewModel into BottomSheetDialogFragment with Dagger2? | <p>I inject my dependencies in Activities and Fragments on the preferred way with <code>AndroidInjection.inject(this)</code>. I have the recommended ViewmodelFactory to inject the viewmodel. My injections are working in Activities and Fragments. However I face a problem with BottomSheetDialogFragment, because I am not ... | I inject my dependencies in Activities and Fragments on the preferred way with AndroidInjection.inject(this) . I have the recommended ViewmodelFactory to inject the viewmodel. My injections are working in Activities and Fragments. However I face a problem with BottomSheetDialogFragment, because I am not allowed to spec... | android|dagger-2|bottom-sheet | 7 | 2018-11-28T11:09:04.663Z | 2,018 | 11 | 11 | 2 | 6,916 | 1 | 1,012 | 70 | 3 | 0 | false | false | true | false | false | false | medium |
53,441,862 | How to add discounted price for In-App Billing and show in application? | <p>I am trying to provide a discount for a limited time. </p>
<p>I want to show the amount as per below image but I am not able to do so.</p>
<p><a href="https://i.stack.imgur.com/YEktT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YEktT.jpg" alt="enter image description here"></a></p>
<p>I am n... | I am trying to provide a discount for a limited time. I want to show the amount as per below image but I am not able to do so. I am not able to find any option to do so in Google Play Developer Console. Any help is appreciated. | android|in-app-purchase|in-app-billing|google-developers-console | 3 | 2018-11-23T06:49:28.930Z | 2,018 | 11 | 6 | 4 | 517 | 1 | 227 | 71 | 4 | 0 | false | false | false | false | false | false | low |
53,384,984 | From the leakCanary report How to understand which objects are garbage collected and which are not ? | <p>Here is my Code . I need to understand which objects are Garbage collected and which are not. Which objects values are assigned <strong>null</strong> here , are they garbage collected ? By observing this report how to understand which methods , classes are garbage collected or not . where can I get a resource to un... | Here is my Code . I need to understand which objects are Garbage collected and which are not. Which objects values are assigned null here , are they garbage collected ? By observing this report how to understand which methods , classes are garbage collected or not . where can I get a resource to understand the report ?... | java|android|memory-leaks|heap-memory|leakcanary | 0 | 2018-11-20T01:30:39.567Z | 2,018 | 11 | 1 | 1 | 773 | 1 | 327 | 100 | 5 | 1 | true | false | false | false | false | false | zero |
53,393,002 | webview not closing onclosewindow | <p>I managed to create a glorious webview app, and running into some challenges:</p>
<p>popup window opens in newwebview, for example a comm100 chat window, sadly I can't get the window to close when chat is finished. not sure what to add to the onPageFinished() and or onCloseWindow()</p>
<p>Any help is much apprecia... | I managed to create a glorious webview app, and running into some challenges: popup window opens in newwebview, for example a comm100 chat window, sadly I can't get the window to close when chat is finished. not sure what to add to the onPageFinished() and or onCloseWindow() Any help is much appreciated. [CODE] Logcat ... | android|webview|popup | 2 | 2018-11-20T12:28:00.147Z | 2,018 | 11 | 12 | 1 | 2,821 | 1 | 387 | 33 | 3 | 2 | true | false | true | false | false | false | low |
53,358,433 | How does one invoke Clojure on Android? | <p>TL;DR: I can't invoke Clojure methods in Android; I get an error and I'm not sure why.</p>
<p>I am building an Android app for a school project. I've learned Clojure, and I would like to use it for parts of my application. (I am <em>not</em> aiming to write the entire thing in Clojure—just a few libraries.)</p>
<p... | TL;DR: I can't invoke Clojure methods in Android; I get an error and I'm not sure why. I am building an Android app for a school project. I've learned Clojure, and I would like to use it for parts of my application. (I am not aiming to write the entire thing in Clojure—just a few libraries.) I've been able to compile a... | android|clojure|clojure-java-interop | 0 | 2018-11-18T06:24:54.693Z | 2,018 | 11 | 6 | 6 | 262 | 1 | 741 | 39 | 3 | 3 | true | false | false | false | false | false | zero |
53,466,184 | How to load url without protocol to webview? | <p>For example any link without <code>http//</code> or <code>www.</code> how to load url to the webview. In browser this links works</p>
<p>its my code</p>
<p><code>WebSettings settings = webView.getSettings();
settings.setLoadWithOverviewMode(true);
settings.setJavaScriptEnabled(true);
... | For example any link without http// or www. how to load url to the webview. In browser this links works its my code WebSettings settings = webView.getSettings(); settings.setLoadWithOverviewMode(true); settings.setJavaScriptEnabled(true); new MyWebViewClient().shouldOverrideUrlLoading(webView, url); my link starts from... | android|webview | 0 | 2018-11-25T09:27:34.857Z | 2,018 | 11 | 9 | 6 | 262 | 1 | 339 | 44 | 2 | 0 | false | false | false | false | false | false | zero |
53,579,306 | how to animate BottomNavigationBar like in the image? | <p>I am having a task to complete the on <code>BottomNavigationBar</code>. The task is when user click on second element in the <code>BottomNavigationBar</code>, user should move from first element to second element with animation or if user click on third element user should move from first element to third element wi... | I am having a task to complete the on BottomNavigationBar . The task is when user click on second element in the BottomNavigationBar , user should move from first element to second element with animation or if user click on third element user should move from first element to third element with animation. (just like in... | android|android-animation|bottomnavigationview | 0 | 2018-12-02T10:16:46.313Z | 2,018 | 12 | 10 | 6 | 262 | 1 | 375 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
53,679,110 | Why is onPress listed as an event in the documentation of marker in react-native-maps? | <p>I am a person who recently started learning react native and I was under the impression that everything that was passed, was a prop. But when I was looking at the documentation of a Marker , onPress was listed under Events and not under props. The documentation of a button clearly enlists onPress under the props hea... | I am a person who recently started learning react native and I was under the impression that everything that was passed, was a prop. But when I was looking at the documentation of a Marker , onPress was listed under Events and not under props. The documentation of a button clearly enlists onPress under the props headin... | android|reactjs|react-native | 0 | 2018-12-08T03:00:38.873Z | 2,018 | 12 | 3 | 5 | 262 | 1 | 322 | 86 | 3 | 0 | false | false | false | false | false | false | zero |
53,509,141 | Dependency Injection just for Base Activity crashes child activity | <p>I have a BaseActivity which is extended by multiple Activities. I have a requirement to inject an object(InputProvider.java) in BaseActivity but it is not required in it's child activities.</p>
<pre><code>@Subcomponent
public interface BaseActivityInjector extends AndroidInjector<BaseActivity> {
@Subcompone... | I have a BaseActivity which is extended by multiple Activities. I have a requirement to inject an object(InputProvider.java) in BaseActivity but it is not required in it's child activities. [CODE] Once I run my app, it crashes on very first screen(splash screen), which also extends BaseActivity, with following message:... | android|dependency-injection|dagger-2 | 1 | 2018-11-27T22:23:09.673Z | 2,018 | 11 | 22 | 1 | 774 | 1 | 781 | 66 | 3 | 1 | true | false | false | false | false | false | low |
53,508,411 | Cannot set visibility on individual items in a ConstraintLayout.Group | <p>I have a <code>ConstraintLayout.Group</code> defined like this:</p>
<pre><code> <android.support.constraint.Group
android:id="@+id/someGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:constraint_referenced_ids="
textView1,
text... | I have a ConstraintLayout.Group defined like this: [CODE] I change the visibility of this group from GONE to VISIBLE: [CODE] But when I try to override it by specifying the visibility of one of the views in that group: [CODE] ...it doesn't work. I log this visibility to logcat and it says 8 (GONE) , but I can still see... | android|android-layout|android-constraintlayout | 31 | 2018-11-27T21:27:34.537Z | 2,018 | 11 | 21 | 1 | 4,870 | 1 | 730 | 69 | 3 | 3 | true | false | true | false | true | false | high |
53,382,596 | How to optimize AR markers for large open spaces? | <p>The setup is this: we're trying to show an AR object in an open space standing next to a marker. The purpose of the marker isn't to position the object 100% on/at the marker but to give a "best guess" that the person is looking in the right direction.</p>
<p>Imagine the viewer looking at a scene where there's a tra... | The setup is this: we're trying to show an AR object in an open space standing next to a marker. The purpose of the marker isn't to position the object 100% on/at the marker but to give a "best guess" that the person is looking in the right direction. Imagine the viewer looking at a scene where there's a traffic sign, ... | arcore|android-augmented-reality | 2 | 2018-11-19T21:04:14.853Z | 2,018 | 11 | 21 | 0 | 263 | 1 | 1,199 | 49 | 2 | 0 | false | false | false | false | false | false | low |
53,586,645 | Discrete Fourier Transform OpenCV not working on Android | <p>i'm trying to convert and display an image made with Core.dft() on Android but it keeps crashing at the line I call Core.dft().</p>
<p>Here is my code:</p>
<pre><code>private Mat getDFT(Mat singleChannel) {
singleChannel.convertTo(singleChannel, CvType.CV_64FC1);
int m = Core.getOptimalDFTSize(singleChan... | i'm trying to convert and display an image made with Core.dft() on Android but it keeps crashing at the line I call Core.dft(). Here is my code: [CODE] Which I took form here . The error that throws Android Studio is: Caused by: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.1) /build/master_pack-a... | android|opencv|dft | 1 | 2018-12-03T02:24:12.237Z | 2,018 | 12 | 2 | 0 | 263 | 1 | 835 | 56 | 3 | 3 | true | false | false | false | false | false | low |
53,503,522 | React Native (Android) detect sound exists on remote video url | <p>I want to create a native android module to detect whether audio tracks exist on a video. Right now I'm using MediaPlayer, but onPrepared isn't being called. Am I missing something? The native module bundles correctly as well. My log says <code>MediaPlayer: Couldn't open file on client side; trying server side: java... | I want to create a native android module to detect whether audio tracks exist on a video. Right now I'm using MediaPlayer, but onPrepared isn't being called. Am I missing something? The native module bundles correctly as well. My log says MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileN... | android|react-native|android-mediaplayer | 1 | 2018-11-27T15:59:13.647Z | 2,018 | 11 | 15 | 1 | 519 | 1 | 413 | 62 | 3 | 1 | true | false | false | false | false | false | low |
53,765,988 | FCM migration without losing the old token | <p>I have somewhat of an edge case, we're migrating to firebase, but our DB is weird and we're having some trouble making this transition smooth. Our table used to be <code>[user-id, device-id]</code>, and the backend does a <code>select * where user-id = foo</code>, then loops the result and sends a push to each devic... | I have somewhat of an edge case, we're migrating to firebase, but our DB is weird and we're having some trouble making this transition smooth. Our table used to be [user-id, device-id] , and the backend does a select * where user-id = foo , then loops the result and sends a push to each device-id. These ids can be GCM ... | android|firebase|google-cloud-messaging | 1 | 2018-12-13T16:16:40.503Z | 2,018 | 12 | 16 | 3 | 519 | 1 | 2,156 | 42 | 3 | 0 | false | false | false | false | false | false | low |
53,775,943 | flutter where should I put firestore timestamp setting on Android | <p>When using <code>firestore</code> console message saying you need to write timestamp setting.
On iOS I wrote in <code>appdelegete</code> and no message anymore but I'm from iOS land so I'm not sure where I should put those on Android side.
Where should I put those?</p>
<p><strong>Console message</strong></p>
<pre>... | When using firestore console message saying you need to write timestamp setting. On iOS I wrote in appdelegete and no message anymore but I'm from iOS land so I'm not sure where I should put those on Android side. Where should I put those? Console message [CODE] | android|flutter | 0 | 2018-12-14T08:28:16.227Z | 2,018 | 12 | 8 | 4 | 519 | 1 | 262 | 65 | 2 | 1 | true | false | false | false | false | false | zero |
53,621,008 | Android Manifest merger failed after adding module dependency 'com.google.android.gms:play-services-location:16.0.0'" | <p>I want to add <code>com.google.android.gms:play-services-location:16.0.0</code> to my android wear app to the detect the location of the watch.</p>
<p>But i am getting following error:</p>
<pre><code>Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support... | I want to add com.google.android.gms:play-services-location:16.0.0 to my android wear app to the detect the location of the watch. But i am getting following error: [CODE] My wear.gradle file: [CODE] my wear.AndroidManifest.xml : [CODE] Thanks for all your suggestions and help :) | android|android-gradle-plugin|google-play-services|wear-os | 2 | 2018-12-04T20:35:42.990Z | 2,018 | 12 | 20 | 1 | 775 | 1 | 280 | 117 | 4 | 3 | true | false | false | false | false | false | low |
53,453,640 | Is there a way to install an older version of Android platform-tools? | <p>I have been hunting around for the afternoon to try to see if there is any way to install older versions of the <code>Android</code> <code>platform-tools</code>. I have tried via <code>sdkmanager</code> and by the older <code>android</code> version but all of them seem to always link to the latest version of <code>... | I have been hunting around for the afternoon to try to see if there is any way to install older versions of the Android platform-tools . I have tried via sdkmanager and by the older android version but all of them seem to always link to the latest version of platform-tools . I am trying to do this without Android Studi... | android|adb|android-sdk-manager|platform-tools | 8 | 2018-11-23T22:48:17.427Z | 2,018 | 11 | 22 | 4 | 17,415 | 1 | 913 | 69 | 4 | 0 | false | false | true | true | false | false | medium |
53,434,210 | Recyclerview support library isn't working in buildtoolversion 28.0.3 with android jetpack | <p>I have buildToolVersion '28.0.3', which is the most most recent, and i have </p>
<pre><code> implementation 'com.android.support:appcompat-v7:28.0.3'
// RecyclerView
implementation 'com.android.support:recyclerview-v7:28.0.3'
</code></pre>
<p>in my build gradle file, and in an cloned from google codelabs, where re... | I have buildToolVersion '28.0.3', which is the most most recent, and i have [CODE] in my build gradle file, and in an cloned from google codelabs, where recyclerview is used, it doesn't show import option, i can't use recyclerview. | android|android-recyclerview|android-support-library|android-jetpack | 0 | 2018-11-22T15:34:04.503Z | 2,018 | 11 | 15 | 3 | 264 | 1 | 231 | 90 | 4 | 1 | true | false | false | false | false | false | zero |
53,581,060 | Spring boot for back office and Android app for all users | <p>So I'm currently working on an app for movies listing and scoring.
I came to the idea of creating all back-office functionalities (user management, movie management,etc) with the spring framework and angular for the visualization.
All works just fine with web services !</p>
<p>Now for the front office and public us... | So I'm currently working on an app for movies listing and scoring. I came to the idea of creating all back-office functionalities (user management, movie management,etc) with the spring framework and angular for the visualization. All works just fine with web services ! Now for the front office and public usage, I woul... | android|spring|mongodb|sqlite|android-studio | 0 | 2018-12-02T14:11:45.047Z | 2,018 | 12 | 14 | 6 | 264 | 1 | 780 | 57 | 5 | 0 | false | false | false | false | false | false | zero |
53,681,542 | How to test a method that draws to the canvas? | <p>How do I test a method that draws something to the canvas. For example, for an android app, I have the following code:</p>
<pre><code>@Override
public void draw(Canvas canvas) {
canvas.drawRect(rect, paint);
}
</code></pre>
<p>This of course is a very simple example, but still: how would I test that the correc... | How do I test a method that draws something to the canvas. For example, for an android app, I have the following code: [CODE] This of course is a very simple example, but still: how would I test that the correct Rect has been drawn? In other words, how to check if the UI is displaying the correct things. I suppose I co... | java|android|testing|canvas|draw | 4 | 2018-12-08T10:21:58.973Z | 2,018 | 12 | 10 | 5 | 1,288 | 1 | 443 | 46 | 5 | 1 | true | false | false | false | false | false | low |
53,478,019 | How to insert user current user details to another node in Firebase? | <p>I am inserting a data in my Request Node in Firebase database in Android using this,</p>
<pre><code>public void submitRequest(View v) {
Request myUserInsertObj = "Pending";
rootReference.child("Request").child("Pending").child(firebaseuser.getUid()).setValue
(myUserInsertObj);
}
</code></pre>
<p>This is my Req... | I am inserting a data in my Request Node in Firebase database in Android using this, [CODE] This is my Request Class. [CODE] I found in firebase documentation that I can use firebaseuser.getDisplayName to get the current logged in user's name. But where will the .getDisplayName get the user's name since I created my ow... | java|android|firebase|firebase-realtime-database | 2 | 2018-11-26T09:24:26.107Z | 2,018 | 11 | 9 | 0 | 265 | 1 | 709 | 68 | 4 | 3 | true | false | false | false | false | false | low |
53,482,035 | How to make GEO Point Class Parcelable or Serializable as I want to pass them using Intent | <p>I am using Cloud Firestore as my Database and in every document there is a Map named restaurant_info that has as it typically stores <"name","Name of The Restaurant">, <"Location",GEOPoint of the Restaurant> and some more fields. The problem is the Geo Point class doesn't implement Parcelable or Serializabl... | I am using Cloud Firestore as my Database and in every document there is a Map named restaurant_info that has as it typically stores <"name","Name of The Restaurant">, <"Location",GEOPoint of the Restaurant> and some more fields. The problem is the Geo Point class doesn't implement Parcelable or Serializable interface. | android|firebase|google-cloud-firestore|parcelable | 4 | 2018-11-26T13:20:33.067Z | 2,018 | 11 | 13 | 0 | 777 | 1 | 320 | 90 | 4 | 0 | false | 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.