id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60,183,236 | Android Marge two .wav file into one file | <p>Hi am not an Android Developer but I am a hybrid app developer. I have knowledge about how can create the Cordova plugin. </p>
<p>I want to create a plugin to merge two .wav file in Java Android.
Could you please send me any example code (Java Android) on how to merge two .wav files.</p>
<p>Thanks in Advance</p> | Hi am not an Android Developer but I am a hybrid app developer. I have knowledge about how can create the Cordova plugin. I want to create a plugin to merge two .wav file in Java Android. Could you please send me any example code (Java Android) on how to merge two .wav files. Thanks in Advance | android|cordova-plugins|wav|ionic-native | -5 | 2020-02-12T07:33:06.417Z | 2,020 | 2 | 7 | 2 | 53 | 1 | 294 | 41 | 4 | 0 | false | false | false | false | false | true | negative |
60,183,255 | Header/ Title of date picker does not change when language change in android | <p><a href="https://i.stack.imgur.com/eihyB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eihyB.png" alt="Image"></a></p>
<p>Whenever I am changing language from french - > English body part of date picker change the language but header part remain the same in the old selected language.</p>
<p>Th... | Whenever I am changing language from french - > English body part of date picker change the language but header part remain the same in the old selected language. That's my datepicker code [CODE] | android | 0 | 2020-02-12T07:34:41.823Z | 2,020 | 2 | 7 | 2 | 239 | 1 | 195 | 76 | 1 | 1 | true | false | false | false | false | false | zero |
60,183,271 | Google PlaceAutoCompleteFragment loses focus when being clicked | <p>My search bar of PlaceAutoComplete loses focus when being clicked. Sometimes it's possible to click and search but it doesn't find any place and then loses focus again. </p>
<p>I already tried to follow the solution presented here: <a href="https://stackoverflow.com/questions/31449649/android-google-places-api-geta... | My search bar of PlaceAutoComplete loses focus when being clicked. Sometimes it's possible to click and search but it doesn't find any place and then loses focus again. I already tried to follow the solution presented here: Android Google Places API, getAutocompletePredictions returns status 'PLACES_API_ACCESS_NOT_... | android|android-studio|google-location-services | 0 | 2020-02-12T07:35:20.557Z | 2,020 | 2 | 7 | 2 | 281 | 1 | 800 | 63 | 3 | 3 | true | false | false | false | false | false | zero |
60,183,395 | getting error while creating release apk from react native with gradlew assembleRelease | <p>i want to release the apk but im getting error -file already exists, mkdir 'D:\mobile'.its generating file nameed mobile in the d drive. after deleting the file , executing gradlew assembleRelease again creating this file and throwing error.</p>
<blockquote>
<p>Task :app:bundleReleaseJsAndAssets
warning: the tr... | i want to release the apk but im getting error -file already exists, mkdir 'D:\mobile'.its generating file nameed mobile in the d drive. after deleting the file , executing gradlew assembleRelease again creating this file and throwing error. Task :app:bundleReleaseJsAndAssets warning: the transform cache was reset. Loa... | android|react-native | 4 | 2020-02-12T07:45:20.700Z | 2,020 | 2 | 7 | 2 | 3,972 | 1 | 1,102 | 87 | 2 | 0 | false | false | true | false | false | false | low |
60,183,415 | Why WRITE_CONTACTS permission is granted without request? | <p>I have 2 devices with API 28 and an app which needs WRITE_CONTACTS permission. I have added it in manifest <code><uses-permission android:name="android.permission.WRITE_CONTACTS" /></code>. In the list of contacts in my app, when user click on delete contact, I have made a check to see if there is a permission... | I have 2 devices with API 28 and an app which needs WRITE_CONTACTS permission. I have added it in manifest <uses-permission android:name="android.permission.WRITE_CONTACTS" /> . In the list of contacts in my app, when user click on delete contact, I have made a check to see if there is a permission and request if not. ... | java|android|android-permissions|android-contacts | 3 | 2020-02-12T07:46:20.260Z | 2,020 | 2 | 7 | 2 | 621 | 1 | 492 | 57 | 4 | 1 | true | false | false | false | false | false | low |
60,183,482 | How to send data along with file in Retrofit Android | <p>I am sending some data to server with one file, below is my code</p>
<pre><code>val fileReqBody = pwdFile.asRequestBody("*/*".toMediaTypeOrNull())
val part = MultipartBody.Part.createFormData("pwdfile", pwdFile.name, fileReqBody)
var registerDataService = RetrofitInstance.buildService(RegisterDataS... | I am sending some data to server with one file, below is my code [CODE] My RegisterDataService code is below [CODE] I am not getting proper result But same thing in postman working fine like below screenshot. By postman it is working fine, can anyone help me where I am doing mistake? File I am sending with Multipart. | android|retrofit|retrofit2 | 1 | 2020-02-12T07:50:34.653Z | 2,020 | 2 | 7 | 2 | 52 | 2 | 318 | 52 | 3 | 2 | true | false | false | false | false | false | low |
60,183,585 | How can I fix errors (red texts) in XML which are preventing from showing preview or running the app on Android Studio? | <p><a href="https://i.stack.imgur.com/X4llA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X4llA.png" alt=" "></a></p>
<p>My laptop is dead so I tried to open my project to my friend's laptop but i cant seem to see what i made, i tried to <strong>search</strong> one xml file...</p>
<p><a href="htt... | My laptop is dead so I tried to open my project to my friend's laptop but i cant seem to see what i made, i tried to search one xml file... But it showed some red statements . I can't even see the design. Please help me . :< | java|android-studio|android-layout | 0 | 2020-02-12T07:58:05.363Z | 2,020 | 2 | 7 | 2 | 141 | 2 | 224 | 119 | 3 | 0 | false | false | false | false | false | false | zero |
60,183,593 | Android Phone cannot connect to Raspberry Pi after changing from Bluetooth to BLE | <p>We have tried this on multiple Android devices.
We are trying to upgrade our system to work with BLE instead of BT in order to support iOS.</p>
<p>Here is the scenario:</p>
<ol>
<li>Run bleno on Raspberry Pi</li>
<li>Connect with Android Phone to BLE -> success</li>
<li>Reboot (hard) Raspberry PI and enable bluet... | We have tried this on multiple Android devices. We are trying to upgrade our system to work with BLE instead of BT in order to support iOS. Here is the scenario: Run bleno on Raspberry Pi Connect with Android Phone to BLE -> success Reboot (hard) Raspberry PI and enable bluetooth service Connect and Pair with Android P... | android|bluetooth|raspberry-pi|bluetooth-lowenergy | 4 | 2020-02-12T07:58:28.097Z | 2,020 | 2 | 7 | 2 | 826 | 1 | 1,250 | 81 | 4 | 2 | true | false | false | false | false | false | low |
60,183,708 | Do we need to add livedata when we are authenticating some user? | <p>I am new to android and also in this MVVM pattern, I saw some tutorial that the livedata is being used there to fetch the userdata and check authenticated user in some session related class. As per my understanding livedata is used when some data is needed to be updated listening the changes for implementing the obs... | I am new to android and also in this MVVM pattern, I saw some tutorial that the livedata is being used there to fetch the userdata and check authenticated user in some session related class. As per my understanding livedata is used when some data is needed to be updated listening the changes for implementing the observ... | android|kotlin|android-lifecycle|observer-pattern|android-livedata | 1 | 2020-02-12T08:06:34.273Z | 2,020 | 2 | 8 | 2 | 45 | 0 | 510 | 64 | 5 | 1 | true | true | false | false | false | false | low |
60,183,709 | Center Editext in a Linear Layout - Android | <p>I'm trying to center the editText which you can see in this screen (the one on the black buttons):
<a href="https://i.stack.imgur.com/Qvm6J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qvm6J.png" alt="enter image description here"></a></p>
<p>This is my code. I set the <strong>android:gravity=... | I'm trying to center the editText which you can see in this screen (the one on the black buttons): This is my code. I set the android:gravity="center_horizontal" tag, but as you can see it doesn't works. I do not understand if I need to set it at the center of its linear layout or if I need to pay attention to the exte... | android|xml|android-layout | -1 | 2020-02-12T08:06:36.620Z | 2,020 | 2 | 8 | 2 | 47 | 2 | 346 | 43 | 3 | 1 | true | false | false | false | false | true | negative |
60,184,233 | Android studio debug 'app' not respect minifyEnabled | <p>My gradle configuration is like below. I enabled minifyEnabled both for debug and release mode. But only in release mode, code is obfuscated. If I click the debug button on Android Studio, minifyEnabled seems not work, I still can debug with breakpoints, and proguard file does not take effect either. However, if I b... | My gradle configuration is like below. I enabled minifyEnabled both for debug and release mode. But only in release mode, code is obfuscated. If I click the debug button on Android Studio, minifyEnabled seems not work, I still can debug with breakpoints, and proguard file does not take effect either. However, if I buil... | android|android-studio|proguard|obfuscation | 1 | 2020-02-12T08:41:11.820Z | 2,020 | 2 | 8 | 2 | 954 | 1 | 541 | 52 | 4 | 1 | true | false | false | false | false | false | low |
60,184,239 | Foldables Cause Crashes in Navigation | <p>I using navigation graph and I use </p>
<pre><code>val action = MainFragmentDirections.actionMainToPaymentFragment(viewModel.paymentDetails!!)
binding.PayBills.findNavController().navigate(action)
</code></pre>
<p>To navigate, my problem was is that whenever I change the app to landscape from portrait and from por... | I using navigation graph and I use [CODE] To navigate, my problem was is that whenever I change the app to landscape from portrait and from portrait to landscape it crashes on navigation, I made the application portrait only and it worked but now I am having problem with foldable devices [CODE] any suggestions? | android|kotlin | 1 | 2020-02-12T08:41:24.540Z | 2,020 | 2 | 8 | 2 | 114 | 1 | 312 | 37 | 2 | 2 | true | false | false | false | false | false | low |
60,184,244 | Error R8: Missing class: sun.net.spi.nameservice.NameServiceDescriptor Occurring during Release, APP crashes | <p>I am creating a VPN app, When I build apk in debug app works fine but in release mode apk generated with warning <code>Missing class: sun.net.spi.nameservice.NameServiceDescriptor</code>. </p>
<p>App get crashed after opening it. disabling proguard is also not working.
I have added proguard-rules.pro file but not ... | I am creating a VPN app, When I build apk in debug app works fine but in release mode apk generated with warning Missing class: sun.net.spi.nameservice.NameServiceDescriptor . App get crashed after opening it. disabling proguard is also not working. I have added proguard-rules.pro file but not added any code in that. c... | android|proguard|vpn | 0 | 2020-02-12T08:41:45.813Z | 2,020 | 2 | 8 | 2 | 1,072 | 1 | 351 | 108 | 3 | 0 | false | false | false | false | false | false | zero |
60,184,335 | Sending 2 Object Model as an input to @body retrofit | <p>Hi I want to send 2 Object WITHOUT creating new api model.</p>
<p>For Example, I have a class with name User And another with name Device.</p>
<p>I want to combine both of these models and send it as a request body.</p>
<p>Retrofit Post request will be something below:</p>
<pre><code>@POST("/login")
fun loginAPI... | Hi I want to send 2 Object WITHOUT creating new api model. For Example, I have a class with name User And another with name Device. I want to combine both of these models and send it as a request body. Retrofit Post request will be something below: [CODE] As well Final JSON Will be something like this: [CODE] Remember:... | android|kotlin|retrofit|retrofit2 | 1 | 2020-02-12T08:46:41.243Z | 2,020 | 2 | 8 | 2 | 1,035 | 2 | 481 | 52 | 4 | 2 | true | false | false | false | false | false | low |
60,184,410 | How to remove ripple effect from Collection view item in Xamarin Forms? | <p>I have a collection view in my Xamarin forms project. in iOS it is working fine But in Android I am getting a ripple effect when I select item from collection view.And the selection mode is single. How can I remove this ripple effect from android. Please help.</p> | I have a collection view in my Xamarin forms project. in iOS it is working fine But in Android I am getting a ripple effect when I select item from collection view.And the selection mode is single. How can I remove this ripple effect from android. Please help. | xamarin.forms|xamarin.android|collectionview | 2 | 2020-02-12T08:51:39.087Z | 2,020 | 2 | 8 | 2 | 1,248 | 1 | 260 | 71 | 3 | 0 | false | false | false | false | false | false | low |
60,184,465 | How to disable or remove clipboard and paste functionality in Stripe Card | <p>I am getting crash when I am pasting the 22 numbers of text in Stripe card of monthly and yearly part.</p>
<p>To generate this scenario - </p>
<pre><code>Write 1 to 22 numbers in your device (not in stripe edit text write some where else) and copy it and paste into input of expiry month and year of stripe.
</code>... | I am getting crash when I am pasting the 22 numbers of text in Stripe card of monthly and yearly part. To generate this scenario - [CODE] I am using this stripe library - [CODE] Also I have tried this approaches but didn't work - [CODE] Please any body know how to disable the paste and clipboard in Stripe please let me... | android|stripe-payments | 0 | 2020-02-12T08:55:54.253Z | 2,020 | 2 | 8 | 2 | 99 | 0 | 325 | 73 | 2 | 3 | true | true | false | false | false | false | zero |
60,184,474 | onClientConnectionState() - status=19 clientIf=9 | <p>I am developing an application where I have to connect with a glucose service device(accu chek) using bluetooth and fetch the data. I am able to connect with the device but when I am putting the strip inside the glucose meter, the app gets disconnected with the message :</p>
<blockquote>
<p>onClientConnectionSta... | I am developing an application where I have to connect with a glucose service device(accu chek) using bluetooth and fetch the data. I am able to connect with the device but when I am putting the strip inside the glucose meter, the app gets disconnected with the message : onClientConnectionState() - status=19 clientIf=9... | android|bluetooth|bluetooth-lowenergy|android-bluetooth | 0 | 2020-02-12T08:56:17.140Z | 2,020 | 2 | 8 | 2 | 460 | 1 | 368 | 48 | 4 | 0 | false | false | false | false | false | false | zero |
60,184,516 | How to avoid exception "Sharing violation on path /android/gms/R.java and /android/gms/base.R.java" in Xamarin.Android build? | <p>When building a Xamarin Android project we <strong>sporadically</strong> get these exceptions. Any ideas how to remove the flakiness? Is this even solvable on our side or looks like an Xamarin Android bug?</p>
<pre><code>/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targe... | When building a Xamarin Android project we sporadically get these exceptions. Any ideas how to remove the flakiness? Is this even solvable on our side or looks like an Xamarin Android bug? [CODE] We checked that the build agent has selected a valid $(TargetFrameworkVersion) and the required android api-level is install... | xamarin|xamarin.android | 2 | 2020-02-12T08:58:45.770Z | 2,020 | 2 | 8 | 2 | 1,846 | 1 | 3,424 | 125 | 2 | 1 | true | false | false | false | false | false | low |
60,184,528 | Saving data for widget | <p>I created RSS widget that fetches data on onUpdate and saves it in an ArrayList of article objects. Each Object class look like so:</p>
<pre><code>public class Story {
private String title;
private String link;
private Date pubDate;
private String imgUrl;
private Bitmap img;
private String c... | I created RSS widget that fetches data on onUpdate and saves it in an ArrayList of article objects. Each Object class look like so: [CODE] It holds the data and as well the image in Bitmap format (very small images). The widget works like so, on pressing right and left buttons on widget it cycles between stories from a... | android|android-widget | 3 | 2020-02-12T08:59:36.767Z | 2,020 | 2 | 8 | 2 | 203 | 1 | 557 | 22 | 2 | 1 | true | false | false | false | false | false | low |
60,184,614 | MediaCodec decode && encode on-the-fly | <p>I want convert some audio tracks from video files from AAC 5.1 (not only but for starting) to AAC 2 (just because ac3 not supported by MediaMuxer and vorbis and opus encoders has not hardware support in Pixel 2) and use callbacks for MediaCodec. I wrote code like that:</p>
<pre class="lang-java prettyprint-override... | I want convert some audio tracks from video files from AAC 5.1 (not only but for starting) to AAC 2 (just because ac3 not supported by MediaMuxer and vorbis and opus encoders has not hardware support in Pixel 2) and use callbacks for MediaCodec. I wrote code like that: [CODE] And callbacks Decoder: [CODE] Encoder: [COD... | android|android-mediacodec|mediaextractor | 2 | 2020-02-12T09:05:17.390Z | 2,020 | 2 | 9 | 2 | 1,596 | 1 | 521 | 38 | 3 | 4 | true | false | false | false | false | false | low |
60,184,650 | In Flutter the VS Code editor throws an error - The function 'myApp' isn't defined | <p>I am very beginner in flutter and dart, I just created my app and as it automatically creates a template app, It throws an error in widget_test.dart file in test folder</p>
<pre class="lang-none prettyprint-override"><code>The function 'myApp' isn't defined.
Try importing the library that defines 'myApp', correcting... | I am very beginner in flutter and dart, I just created my app and as it automatically creates a template app, It throws an error in widget_test.dart file in test folder [CODE] [CODE] I've tried upgrading flutter but it won't work!! | android-studio|flutter|dart|visual-studio-code | 1 | 2020-02-12T09:06:46.423Z | 2,020 | 2 | 9 | 2 | 6,618 | 2 | 231 | 82 | 4 | 2 | true | false | true | false | false | false | low |
60,184,669 | Call Requires API Level 26 Current Min is 15 | <p>I Am Trying To Add Horizintal PrograssBar But When I Set ADD (setMin)To Progress Bar It Shows Error,IKnow I Can Change min API but I Am trying Another Solution. </p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TI... | I Am Trying To Add Horizintal PrograssBar But When I Set ADD (setMin)To Progress Bar It Shows Error,IKnow I Can Change min API but I Am trying Another Solution. [CODE] | android|progress-bar | 1 | 2020-02-12T09:08:09.410Z | 2,020 | 2 | 9 | 2 | 275 | 1 | 167 | 44 | 2 | 1 | true | false | false | false | false | false | low |
60,184,750 | Can't find exactly the cause of exception in play console crash report | <p>This is the crash report shown in google play console:</p>
<pre><code>Caused by: java.lang.IllegalStateException:
at android.app.Activity.onCreate (Activity.java:1038)
at com.tds.order.gui.changePassword.ChangePasswordActivity.onCreate (ChangePasswordActivity.java:39)
at android.app.Activity.performCreate (A... | This is the crash report shown in google play console: [CODE] And this is onCreate method: [CODE] How can I know exactly what makes the app crash? knowing that this happens to specific devices so I cannot debug it and the activity's theme is Theme.AppCompat.Dialog. | java|android|android-studio | 0 | 2020-02-12T09:12:42.857Z | 2,020 | 2 | 9 | 2 | 81 | 0 | 265 | 70 | 3 | 2 | true | true | false | false | false | false | zero |
60,184,753 | check how much items are scrolled during recyclerview scrolling | <p>I have recyclerview with LinearLayout Manager, during scrolling i want to check that how much items scrolled. For example, if recyclerview have 10 items, and i want to trigger an event after 6 items scrolled then what is the logic. Please give your suggestions. Thanks</p> | I have recyclerview with LinearLayout Manager, during scrolling i want to check that how much items scrolled. For example, if recyclerview have 10 items, and i want to trigger an event after 6 items scrolled then what is the logic. Please give your suggestions. Thanks | android|android-recyclerview|vertical-scrolling | 0 | 2020-02-12T09:12:59.333Z | 2,020 | 2 | 9 | 2 | 72 | 0 | 268 | 63 | 3 | 0 | false | true | false | false | false | false | zero |
60,184,770 | Splash screen with Tabbed main page Xamarin forms | <p>I'm a beginner in mobile app development and I'm developing an android app using Xamarin forms for a project.</p>
<p>On my Xamarin forms project, I have to add a splash screen at startup. to accomplish this I have to put this code on my MainPage.XAML </p>
<pre><code><Grid>
<!-- Place new controls ... | I'm a beginner in mobile app development and I'm developing an android app using Xamarin forms for a project. On my Xamarin forms project, I have to add a splash screen at startup. to accomplish this I have to put this code on my MainPage.XAML [CODE] But my main page is a Tabbed page and not a content page. What can I ... | c#|android|xaml|xamarin.forms | 1 | 2020-02-12T09:13:58.437Z | 2,020 | 2 | 9 | 2 | 655 | 2 | 593 | 49 | 4 | 2 | true | false | false | false | false | false | low |
60,184,831 | ERROR: Failed to resolve: com.google.firebase:firebase-crash:17.2.2 | <p>I'm trying to update my google and firebase SDK libraries in my project to solve the problem of <a href="https://stackoverflow.com/questions/59274930/install-referrer-intent-deprecation">install_referrer deprecation</a> but I got errors after sync </p>
<pre><code>ERROR: Failed to resolve: com.google.firebase:fireb... | I'm trying to update my google and firebase SDK libraries in my project to solve the problem of install_referrer deprecation but I got errors after sync [CODE] and this error on the merged manifest [CODE] here is my firebase and google dependency [CODE] | android|firebase|android-studio|google-play-services | 9 | 2020-02-12T09:17:11.253Z | 2,020 | 2 | 9 | 2 | 13,486 | 5 | 253 | 67 | 4 | 3 | true | false | true | true | false | false | medium |
60,184,875 | Attempt to invoke virtual method 'android.hardware.Display.VirtualDisplay' | <p>What to do with this error this code is for screen recorder which is giving error after the toggle button is clicked means it say application closed without doing any furthur operation but app launches initially very well But the problem ocurs when clicked the button</p>
<p>public class MainActivity extends AppComp... | What to do with this error this code is for screen recorder which is giving error after the toggle button is clicked means it say application closed without doing any furthur operation but app launches initially very well But the problem ocurs when clicked the button public class MainActivity extends AppCompatActivity ... | java|android|nullpointerexception|virtual-functions | 1 | 2020-02-12T09:19:49.880Z | 2,020 | 2 | 9 | 2 | 1,059 | 0 | 354 | 74 | 4 | 2 | true | true | false | false | false | false | low |
60,184,888 | if statement for boolean | <p>I'm trying to build this simple calculator app
this is how i'm trying to implement it it works fine if it's just <code>plusButton</code> but when I add the if (minus) it just gives me test meaning the minus button is true too and doesn't matter if I pressed the plus Button. It won't work I want to make it so it woul... | I'm trying to build this simple calculator app this is how i'm trying to implement it it works fine if it's just plusButton but when I add the if (minus) it just gives me test meaning the minus button is true too and doesn't matter if I pressed the plus Button. It won't work I want to make it so it would do other math ... | java|android | -2 | 2020-02-12T09:20:15.057Z | 2,020 | 2 | 9 | 2 | 79 | 1 | 382 | 24 | 2 | 1 | true | false | false | false | false | true | negative |
60,185,037 | Implementing Room with a viewmodel,how to get the return value of a query in DAO. instead of a List<> it just returns "CouroutineJob" | <p>i am implementing Room with a vIewModel, my structure is the following</p>
<p>@DAO,@Entity,@Database,@Repository</p>
<pre><code>@Entity(tableName="dx_table")
class dx_table(
@ColumnInfo(name = "name")
val naxme: String,
@PrimaryKey
@ColumnInfo(name = "phone")
val phone: String,
@ColumnInfo(name... | i am implementing Room with a vIewModel, my structure is the following @DAO,@Entity,@Database,@Repository [CODE] The viewmodel is [CODE] I can track the live data using observe,its not an issue, the problem i am facing is with the get_name_px(phone) [CODE] here lm seems to be job type , i need the return List , how do ... | android|android-room | 1 | 2020-02-12T09:28:49.090Z | 2,020 | 2 | 9 | 2 | 458 | 1 | 330 | 133 | 2 | 3 | true | false | false | false | false | false | low |
60,185,093 | Calling SharedPrefences in Fragments | <p>I have a class with the name of SharePrefManager. Here is the code
package com.example.lms02;</p>
<pre><code>public class SharedPrefManager {
private static final String SHARED_PREF_NAME = "volleyregisterlogin";
private static final String KEY_USERNAME = "keyusername";
private static final String KEY_EMAIL = "keye... | I have a class with the name of SharePrefManager. Here is the code package com.example.lms02; [CODE] I am using Fragments. Here is the code of my Fragment [CODE] The problem occurs in HomeFragment here User user = SharedPrefManager.getInstance(getContext()).getUser(); The Error shown is: java.lang.NullPointerException:... | android-studio|android-fragments|sharedpreferences | 0 | 2020-02-12T09:31:21.003Z | 2,020 | 2 | 9 | 2 | 64 | 1 | 577 | 36 | 3 | 2 | true | false | false | false | false | false | zero |
60,185,192 | throw kotlinx.coroutines.JobCancellationException when go to another screen | <p>Android Studio 3.6</p>
<p>on one screen I polling by coroutine like this:</p>
<pre><code> fun initPoll() =
viewModelScope.launch(Dispatchers.Main) {
var errorMessage = ""
try {
while (true) {
val balanceValue: BigDecimal = TransportService.... | Android Studio 3.6 on one screen I polling by coroutine like this: [CODE] In transport service: [CODE] In Activity : [CODE] It work fine. But when I go to another screen (Activity) it throw [CODE] After go to another screen I need to stop polling. | android|kotlin-coroutines | 9 | 2020-02-12T09:36:13.627Z | 2,020 | 2 | 9 | 2 | 6,846 | 2 | 247 | 75 | 2 | 4 | true | false | true | false | false | false | medium |
60,185,254 | Issue while creating Android binding for Xamarin | <p>I am trying to create a binding project for a library that our organisation is already created. I have added the .aar file and when I try to build I am getting the below two error.</p>
<pre><code> Error JAVAC0000: error: OnCompletionListenerImplementor is not abstract and does not override abstract method onComple... | I am trying to create a binding project for a library that our organisation is already created. I have added the .aar file and when I try to build I am getting the below two error. [CODE] public class OnCompletionListenerImplementor (JAVAC0000) [CODE] In the API.xaml It is generated like this, [CODE] Also I have notice... | xamarin|xamarin.android | 10 | 2020-02-12T09:39:25.580Z | 2,020 | 2 | 9 | 2 | 712 | 1 | 456 | 48 | 2 | 4 | true | false | false | false | true | false | medium |
60,185,262 | App crash in the second launch time in a real device when i use LocationManager.getLastKnowLocation() | <p>When I run the code below in a emulator, it works totally fine. But when I run it in a real device, it keeps crashing and it can rarely work(Almost all the time it works the first time it launched when I reinstalled).But when i omit lines of code that relate to location, it works fine.(I indicate them with a <code>/... | When I run the code below in a emulator, it works totally fine. But when I run it in a real device, it keeps crashing and it can rarely work(Almost all the time it works the first time it launched when I reinstalled).But when i omit lines of code that relate to location, it works fine.(I indicate them with a //** every... | java|android|android-permissions|okhttp | 0 | 2020-02-12T09:39:45.640Z | 2,020 | 2 | 9 | 2 | 38 | 2 | 551 | 101 | 4 | 1 | true | false | false | false | false | false | zero |
60,185,298 | Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 12680 when using Gson.fromJson | <p>My app crashed without any stacktrace besides having this error:</p>
<pre><code>A/libc: Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 12680 (dio.downloadapp)
</code></pre>
<p>After some troubleshooting, I narrowed it down to this line as the one causing this error:</p>
<pre><code>val details = gson.f... | My app crashed without any stacktrace besides having this error: [CODE] After some troubleshooting, I narrowed it down to this line as the one causing this error: [CODE] It comes from a view model's method: [CODE] The file was created in a method of a Worker class from the WorkManager library: [CODE] Also VideoDetails ... | android|kotlin|gson|android-bitmap | 1 | 2020-02-12T09:42:09.080Z | 2,020 | 2 | 9 | 2 | 794 | 1 | 703 | 89 | 4 | 5 | true | false | false | false | false | false | low |
60,185,327 | saved value button increment in baseadapter | <p>I have a baseadapter and a textview click increment value, I want to save the increment value by choosing sharedpreference, but I couldn't do it, please help me to solve it.
Thank you
there is my code :</p>
<pre><code>public class BaseAdapter2 extends BaseAdapter {
private Context mContext;
private Act... | I have a baseadapter and a textview click increment value, I want to save the increment value by choosing sharedpreference, but I couldn't do it, please help me to solve it. Thank you there is my code : [CODE] | android|baseadapter | 1 | 2020-02-12T09:43:17.527Z | 2,020 | 2 | 9 | 2 | 42 | 3 | 209 | 43 | 2 | 1 | true | false | false | false | false | false | low |
60,185,784 | Retrofit 2.7.1 can't call api request | <p>I have implemented the Api calls using Refrofit 2.7.1 on android but unfortunately i dont get any response on my app if the response was to be returned then it return a notification that returns a json. at first it was working properly but after i got the ava.lang.BootstrapMethodError: it didn't response again even... | I have implemented the Api calls using Refrofit 2.7.1 on android but unfortunately i dont get any response on my app if the response was to be returned then it return a notification that returns a json. at first it was working properly but after i got the ava.lang.BootstrapMethodError: it didn't response again even aft... | javascript|android|api|retrofit|retrofit2 | 1 | 2020-02-12T10:07:41.693Z | 2,020 | 2 | 10 | 2 | 405 | 1 | 557 | 37 | 5 | 3 | true | false | false | false | false | false | low |
60,185,860 | CMake Trouble including directories | <p>Hi I'm having some trouble getting different libraries to recognize eachother when they are in different directories.</p>
<p>Here's an image of my project structure:</p>
<p><a href="https://i.stack.imgur.com/9hshq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9hshq.png" alt="Structure"></a></p... | Hi I'm having some trouble getting different libraries to recognize eachother when they are in different directories. Here's an image of my project structure: For example, I have a library called peac and at the top of eig33sym.hpp there is the following include to Eigen [CODE] Just to clarify, if I change these includ... | android|cmake | 0 | 2020-02-12T10:11:44.167Z | 2,020 | 2 | 10 | 2 | 38 | 0 | 829 | 35 | 2 | 4 | true | true | false | false | false | false | zero |
60,185,883 | Correct React Native Threads bundling for release | <p>I am working on an RN project that uses <code>react-native-threads</code>. Everything works fine until I create a signed release APK. If I run through <code>react-native run-android</code> or if I create a signed debug APK, the application works as expected. However when a release APK is produced, on running the app... | I am working on an RN project that uses react-native-threads . Everything works fine until I create a signed release APK. If I run through react-native run-android or if I create a signed debug APK, the application works as expected. However when a release APK is produced, on running the application the following error... | android|react-native|apk|visual-studio-app-center | 1 | 2020-02-12T10:12:58.683Z | 2,020 | 2 | 10 | 2 | 482 | 0 | 791 | 49 | 4 | 3 | true | true | false | false | false | false | low |
60,186,035 | Cutout of application by notch | <p>My application is cut off from the top side by the notch
Is there any specific solution to overcome this problem.
I am using the emulator Pixel 3 XL API 27</p>
<p><a href="https://i.stack.imgur.com/muo8l.png" rel="nofollow noreferrer">image for illustrstion</a></p>
<p>What should I do any code is there to increas... | My application is cut off from the top side by the notch Is there any specific solution to overcome this problem. I am using the emulator Pixel 3 XL API 27 image for illustrstion What should I do any code is there to increase the height of the top bar or status bar or should I increase the height of the title bar, but ... | android|android-actionbar|android-toolbar | 0 | 2020-02-12T10:20:14.193Z | 2,020 | 2 | 10 | 2 | 729 | 1 | 385 | 30 | 3 | 0 | false | false | false | false | false | false | zero |
60,186,058 | Connecting mobile phone to a computer localhost | <p>I'm developing a web application (I'm using MacOs) and I would like to see the screens on my android mobile device. Although both devices connected the same network I couldn't connect computer's IP address and local port on my phone. I'm thinking of this issue is showing up by MacOs. Because when I run same project ... | I'm developing a web application (I'm using MacOs) and I would like to see the screens on my android mobile device. Although both devices connected the same network I couldn't connect computer's IP address and local port on my phone. I'm thinking of this issue is showing up by MacOs. Because when I run same project in ... | android|macos|nginx|localhost | 0 | 2020-02-12T10:21:09.810Z | 2,020 | 2 | 10 | 2 | 113 | 2 | 523 | 47 | 4 | 0 | false | false | false | false | false | false | zero |
60,186,072 | How to Run with --stacktrace option to get the stack trace | <p>I keep getting this error and i don't seem to find any help online. I am new to flutter and android studio. any help is well appreciated</p>
<ul>
<li><p>FAILURE: Build failed with an exception.</p>
<blockquote>
<p>Where:
Build file 'C:\Android\Android Studios\cravings\android\app\build.gradle' line: 26</p>
</b... | I keep getting this error and i don't seem to find any help online. I am new to flutter and android studio. any help is well appreciated FAILURE: Build failed with an exception. Where: Build file 'C:\Android\Android Studios\cravings\android\app\build.gradle' line: 26 What went wrong: A problem occurred evaluating proje... | android|flutter | 15 | 2020-02-12T10:21:33.780Z | 2,020 | 2 | 10 | 2 | 58,298 | 4 | 908 | 58 | 2 | 0 | false | false | true | true | true | false | medium |
60,186,141 | Getting error when trying to upload data to server | <p>I have been trying to upload my data from android to my server using java, volley and laravel but I am getting. BasicNetwork.performRequest: Unexpected response code 500. I have used postman to test my api and it is working perfectly well.
What could be the cause?</p>
<p>Java code</p>
<pre><code> RequestQueue qu... | I have been trying to upload my data from android to my server using java, volley and laravel but I am getting. BasicNetwork.performRequest: Unexpected response code 500. I have used postman to test my api and it is working perfectly well. What could be the cause? Java code [CODE] | android|android-volley | 0 | 2020-02-12T10:25:20.430Z | 2,020 | 2 | 10 | 2 | 41 | 1 | 281 | 50 | 2 | 1 | true | false | false | false | false | false | zero |
60,186,278 | Change Youtube Data API PublishAt Date Format | <p>I have an Android app, i use Youtube Data API V3 for loading a certain channels content. showing the Video, video title and video Publish Date, the current Video Publish Date is shown in this format 2015-01-21T11:20:27.751+00:00
I want to change it to yyyy-MM-dd format if possible, your help will be appreciated.
The... | I have an Android app, i use Youtube Data API V3 for loading a certain channels content. showing the Video, video title and video Publish Date, the current Video Publish Date is shown in this format 2015-01-21T11:20:27.751+00:00 I want to change it to yyyy-MM-dd format if possible, your help will be appreciated. The co... | java|android|youtube-api|androidx | 1 | 2020-02-12T10:31:21.573Z | 2,020 | 2 | 10 | 2 | 991 | 1 | 411 | 45 | 4 | 1 | true | false | false | false | false | false | low |
60,186,394 | Graphql query results in "Unexpected enum for a scalar" in android using apolloclient | <p>I'm trying to fetch some data from API using Graphql with ApolloClient. But it's resulting in as <strong>"Unexpected enum for a scalar"</strong>. Please help me out to solve the error. Below is my code.</p>
<p>ItemsQuery.graphql</p>
<pre><code>query fetchCategoryItems($input : String!) {
__typename
items(where: {c... | I'm trying to fetch some data from API using Graphql with ApolloClient. But it's resulting in as "Unexpected enum for a scalar" . Please help me out to solve the error. Below is my code. ItemsQuery.graphql [CODE] } Activity code. [CODE] | android|kotlin|graphql|apollo-client | 1 | 2020-02-12T10:37:29.970Z | 2,020 | 2 | 10 | 2 | 1,417 | 1 | 236 | 85 | 4 | 2 | true | false | false | false | false | false | low |
60,186,440 | Flutter: How to custom clip an image from bottom to up? | <p>I am developing a flutter project and trying to clip an image. Below is my code</p>
<pre><code>import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final appTitle = 'Drawer Demo';
@override
Widget build(BuildContext context) {
return MaterialAp... | I am developing a flutter project and trying to clip an image. Below is my code [CODE] Below is the result. However my intention is not to have the curve from bottom to up. Instead here I have it from bottom to down. What i need is as below (ignore the lines, they are guide lines from Adobe XD) How can I get this done? | android|ios|flutter|mobile | 0 | 2020-02-12T10:39:56.440Z | 2,020 | 2 | 10 | 2 | 1,562 | 2 | 320 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
60,186,525 | MediaRecorder - Not able to change output type to File Descriptor | <p>My objective is to create a streaming application. I want to stream the device screen on a web application written in Angular. Previously I had created a functionality using MediaRecorder which records the screen and saves the data to a file. From what I have read and researched, I found out to stream the screen I c... | My objective is to create a streaming application. I want to stream the device screen on a web application written in Angular. Previously I had created a functionality using MediaRecorder which records the screen and saves the data to a file. From what I have read and researched, I found out to stream the screen I can ... | android|video-streaming|mediarecorder | 2 | 2020-02-12T10:44:36.983Z | 2,020 | 2 | 10 | 2 | 88 | 0 | 909 | 65 | 3 | 1 | true | true | false | false | false | false | low |
60,186,654 | The 'if condition' inside the seekbar onprogresschanged not executing | <p>I want to change the image and change the text on textview when the 'If' condition inside seekBar listener is satisfied, but no code inside that condition gets executed.
I have tried different ways like I have put hardcoded values like if(progress==100){} but even that does not get executed. Please guide me what sho... | I want to change the image and change the text on textview when the 'If' condition inside seekBar listener is satisfied, but no code inside that condition gets executed. I have tried different ways like I have put hardcoded values like if(progress==100){} but even that does not get executed. Please guide me what should... | android|kotlin|seekbar | 0 | 2020-02-12T10:50:19.757Z | 2,020 | 2 | 10 | 2 | 116 | 1 | 357 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
60,186,684 | How determine NullPointerException with less log information to own source code? | <p>On program execution, I get the error message:</p>
<p><code>FATAL EXCEPTION: main E/AndroidRuntime( 2977): java.lang.NullPointerException</code>.</p>
<p>The bottom messages gives only a small hint to the self written source code. But there is missing a detailed information to the line number of incorrect code. W... | On program execution, I get the error message: FATAL EXCEPTION: main E/AndroidRuntime( 2977): java.lang.NullPointerException . The bottom messages gives only a small hint to the self written source code. But there is missing a detailed information to the line number of incorrect code. Which possibilities exist to get a... | java|android|exception|nullpointerexception | 1 | 2020-02-12T10:52:07.830Z | 2,020 | 2 | 10 | 2 | 72 | 0 | 884 | 80 | 4 | 1 | true | true | false | false | false | false | low |
60,186,688 | Ionic android build stucked at Starting a Gradle Daemon | <p>I have a project that is running on Ionic. I've worked on it for one month without any problems. Now after some delay i returned back to the project. When i try to build project on iOS, everything is OK. When i'm trying to build project on Android, i'm stucked on building. Command that i'm running is</p>
<p><strong... | I have a project that is running on Ionic. I've worked on it for one month without any problems. Now after some delay i returned back to the project. When i try to build project on iOS, everything is OK. When i'm trying to build project on Android, i'm stucked on building. Command that i'm running is ionic cordova emul... | android|cordova|ionic-framework|gradle|build | 0 | 2020-02-12T10:52:13.370Z | 2,020 | 2 | 10 | 2 | 976 | 1 | 1,047 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
60,186,696 | Android webview goback() issue with ajax results | <p>My Webview loads a page which contains a list of items, and has a button to load more. The button loads through AJAX. When clicked on an item, it loads another page.
The problem is when I goBack() to the list page, it shows the page as initially loaded(without the AJAX loaded pages) instead of going back to where l... | My Webview loads a page which contains a list of items, and has a button to load more. The button loads through AJAX. When clicked on an item, it loads another page. The problem is when I goBack() to the list page, it shows the page as initially loaded(without the AJAX loaded pages) instead of going back to where left ... | javascript|android|webview | 0 | 2020-02-12T10:52:44.600Z | 2,020 | 2 | 10 | 2 | 178 | 1 | 515 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
60,186,996 | Kotlin multiplatform work with Dynamic Delivery? | <p>I am new to Kotlin multiplatform development for android, so I wanted to know how I can implement <a href="https://developer.android.com/guide/app-bundle/dynamic-delivery" rel="nofollow noreferrer">dynamic feature delivery</a> using Kotlin mpp? Is this even possible?</p> | I am new to Kotlin multiplatform development for android, so I wanted to know how I can implement dynamic feature delivery using Kotlin mpp? Is this even possible? | android|gradle|multi-module|kotlin-multiplatform | 2 | 2020-02-12T11:09:08.903Z | 2,020 | 2 | 11 | 2 | 89 | 0 | 163 | 48 | 4 | 0 | false | true | false | false | false | false | low |
60,187,020 | Why I am getting different build variant options after adding CMake option | <p>When I try to change my build variant option from debug to release, I found varies options like debug-x86, debug-arm64 v8a, release-x86, release-arm64 v8a,etc..
The above changes appears only after adding CMake options. I don't know how to choose the buildConig before running the app.</p>
<p><img src="https://i.sta... | When I try to change my build variant option from debug to release, I found varies options like debug-x86, debug-arm64 v8a, release-x86, release-arm64 v8a,etc.. The above changes appears only after adding CMake options. I don't know how to choose the buildConig before running the app. | android|android-studio|cmake | 0 | 2020-02-12T11:10:07.993Z | 2,020 | 2 | 11 | 2 | 46 | 0 | 285 | 74 | 3 | 0 | false | true | false | false | false | false | zero |
60,187,057 | org.parceler.Parcel: No corresponding property found for constructor parameter when constructor contains boolean fields | <p>I meet first time with this problem. I noticed that above exception is throw when @ParcelConstructor contains boolean fields. Maybe have you got any solutions to put in boolean values to constructor
Regards
Shogun </p> | I meet first time with this problem. I noticed that above exception is throw when @ParcelConstructor contains boolean fields. Maybe have you got any solutions to put in boolean values to constructor Regards Shogun | android|kotlin|parceler | 0 | 2020-02-12T11:12:02.827Z | 2,020 | 2 | 11 | 2 | 267 | 1 | 213 | 119 | 3 | 0 | false | false | false | false | false | false | zero |
60,187,106 | Starting a service via a SwitchPreference | <p>can anyone tell me how can I start/stop a location service (or any other service) when a SwitchPreference in a PreferenceScreen is toggled on/of?
I'm using a settingsFragemnt (extending PreferenceFragemntCompat), which is hosted in my settings activity.</p> | can anyone tell me how can I start/stop a location service (or any other service) when a SwitchPreference in a PreferenceScreen is toggled on/of? I'm using a settingsFragemnt (extending PreferenceFragemntCompat), which is hosted in my settings activity. | android|service|preferencescreen | -1 | 2020-02-12T11:15:17.110Z | 2,020 | 2 | 11 | 2 | 28 | 2 | 253 | 41 | 3 | 0 | false | false | false | false | false | true | negative |
60,187,125 | how do I extract the JSON value? | <p>I am getting and error response from server in android studio. how do I extract the values.</p>
<p><strong>Json:</strong></p>
<pre><code>{
"error": {
"phone": [
"The phone field is required."
]
}
}
</code></pre>
<p><strong>Code:</strong></p>
<pre><code> try {
JSONArray arr = new JSONArray(... | I am getting and error response from server in android studio. how do I extract the values. Json: [CODE] Code: [CODE] | java|android|json | 0 | 2020-02-12T11:16:22.223Z | 2,020 | 2 | 11 | 2 | 47 | 1 | 117 | 32 | 3 | 2 | true | false | false | false | false | false | zero |
60,187,172 | Emulate Android 1.6 Donut with ARM ABI | <p>Is it possible somehow - anyhow, even in another virtual machine - to emulate an ARM-based Android device running Android 1.6 Donut OS?</p>
<p>Android Studio does offer creating a hardware device with this version of Android, but nothing happens when I'm trying to start the emulator. I cannot start neither 1.6 Donu... | Is it possible somehow - anyhow, even in another virtual machine - to emulate an ARM-based Android device running Android 1.6 Donut OS? Android Studio does offer creating a hardware device with this version of Android, but nothing happens when I'm trying to start the emulator. I cannot start neither 1.6 Donut nor 2.3 G... | android|android-ndk|emulation|legacy | 2 | 2020-02-12T11:19:30.340Z | 2,020 | 2 | 11 | 2 | 424 | 1 | 1,538 | 38 | 4 | 0 | false | false | false | false | false | false | low |
60,187,193 | Why can't different stl implementations exist using NDK? | <p>I try to build a project based on two open source libraries. The libraries I am using are OpenCV and ceres. The libopencv_java3.so is the release OpenCV3.1.2 from the website github that include OpenCV-3.1.0-android-sdk. The libceres.so is compiled from souce code by myself. </p>
<p>When I build my application, NDK... | I try to build a project based on two open source libraries. The libraries I am using are OpenCV and ceres. The libopencv_java3.so is the release OpenCV3.1.2 from the website github that include OpenCV-3.1.0-android-sdk. The libceres.so is compiled from souce code by myself. When I build my application, NDK-build gener... | android|c++|opencv|ndk-build|ceres-solver | 1 | 2020-02-12T11:20:40.920Z | 2,020 | 2 | 11 | 2 | 207 | 1 | 1,221 | 56 | 5 | 0 | false | false | false | false | false | false | low |
60,187,287 | FLUTTER: I had this problem after I updated to a newer version, How can I fix it | <p>*****Launching lib\main.dart on Android SDK built for x86 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.</p>
<blockquote>
<p>Could not resolve all task dependencies for configuration ':app:debugCompileClas... | *****Launching lib\main.dart on Android SDK built for x86 in debug mode... FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve ... | android|windows|flutter | -1 | 2020-02-12T11:25:12.960Z | 2,020 | 2 | 11 | 2 | 599 | 2 | 5,424 | 80 | 3 | 0 | false | false | false | false | false | true | negative |
60,187,330 | How to write in firebase database from another firebase project? | <p><a href="https://i.stack.imgur.com/vYn85.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vYn85.jpg" alt="enter image description here"></a></p>
<p>Who two Apps, from different projects, from different owners account, can communicate in order to write data into one anothers Firestore database ?</p... | Who two Apps, from different projects, from different owners account, can communicate in order to write data into one anothers Firestore database ? (For example, how uber eats app communicates with the different restaurants orders management apps) | android|firebase|google-cloud-firestore | 0 | 2020-02-12T11:27:45.490Z | 2,020 | 2 | 11 | 2 | 157 | 1 | 247 | 64 | 3 | 0 | false | false | false | false | false | false | zero |
60,187,369 | Icon and Screenshots in Google Play Store don't Update | <p>I had an app released on Google Play Store. I recently decided to change the icon and update the screenshots.</p>
<p>I changed the icon by going through the below steps:</p>
<p>1- Login to <code>Google Developers Console</code>.
<br>
2- From the dashboard selected: <code>"Store presence" -> "Store listing"</cod... | I had an app released on Google Play Store. I recently decided to change the icon and update the screenshots. I changed the icon by going through the below steps: 1- Login to Google Developers Console . 2- From the dashboard selected: "Store presence" -> "Store listing" . 3- Upload a new icon. 4- Clicked on "Submit Upd... | android|google-play|icons | 5 | 2020-02-12T11:29:42.953Z | 2,020 | 2 | 11 | 2 | 3,761 | 3 | 489 | 54 | 3 | 0 | false | false | true | false | false | false | low |
60,187,396 | Tabbar layout active tab textcolor is same as primary color | <p>This is my style:</p>
<pre><code><resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDa... | This is my style: [CODE] And I am defining a layout with tabbar and viewpager as: [CODE] Everything is working fine, except the active button in tabbar layout text color is same as the background color, hence invisible. And one advice is needed: as you have seen, I am not explicitly maintioning android:textAppearence i... | android|android-layout|android-tablayout|material-components-android | 3 | 2020-02-12T11:31:40.847Z | 2,020 | 2 | 11 | 2 | 706 | 2 | 463 | 59 | 4 | 2 | true | false | false | false | false | false | low |
60,187,424 | How does recyclerView.scheduleLayoutAnimation() work? | <p>Could someone explain me how <em>recyclerView.scheduleLayoutAnimation()</em> method works, and how to use it? </p> | Could someone explain me how recyclerView.scheduleLayoutAnimation() method works, and how to use it? | android|android-recyclerview|android-animation|layout-animation | 0 | 2020-02-12T11:33:01.893Z | 2,020 | 2 | 11 | 2 | 775 | 1 | 100 | 53 | 4 | 0 | false | false | false | false | false | false | zero |
60,187,437 | How to enable or disable buttons in bulk? | <p>I have 30 buttons in a page for each time slot like 9AM, 10AM ... for 3 days. I have to enable or disable the button based on the availability. Is there any easier way to enable or disable buttons at a time or i just have to follow the same method of using the button.setVisibility(view.GONE) for each button?</p> | I have 30 buttons in a page for each time slot like 9AM, 10AM ... for 3 days. I have to enable or disable the button based on the availability. Is there any easier way to enable or disable buttons at a time or i just have to follow the same method of using the button.setVisibility(view.GONE) for each button? | android | 0 | 2020-02-12T11:34:15.600Z | 2,020 | 2 | 11 | 2 | 42 | 2 | 309 | 41 | 1 | 0 | false | false | false | false | false | false | zero |
60,187,444 | Android studio automatically deselects all text when using replacement option "In Selection" | <p>If I have selected text and if I put existing text to "Find" textBox and then replace the text in "Find" textBox with text which isn't in selected text, Android studio automatically deselects selected text and I have to select all the text again. How to disable that deselection if it's possible?</p> | If I have selected text and if I put existing text to "Find" textBox and then replace the text in "Find" textBox with text which isn't in selected text, Android studio automatically deselects selected text and I have to select all the text again. How to disable that deselection if it's possible? | android|android-studio|replace | 0 | 2020-02-12T11:34:40.440Z | 2,020 | 2 | 11 | 2 | 50 | 0 | 296 | 92 | 3 | 0 | false | true | false | false | false | false | zero |
60,187,446 | Insert entities one-to-many relation in Room Android | <p>Help please! I have a problem only with insert pojos in databes with relation one-to-many.
I have pojos and misunderstood how insert all list in database???</p>
<pre><code>@Entity
data class Street(
@PrimaryKey(autoGenerate = true)
var id: Int = 0
) {
@Ignore
var houses: List<House>? = listOf(... | Help please! I have a problem only with insert pojos in databes with relation one-to-many. I have pojos and misunderstood how insert all list in database??? [CODE] Please help me guys! | android|kotlin|android-room | 3 | 2020-02-12T11:34:48.337Z | 2,020 | 2 | 11 | 2 | 246 | 1 | 184 | 52 | 3 | 1 | true | false | false | false | false | false | low |
60,187,491 | react-native-google-places-autocomplete not working on React native 0.61 | <p>I have added react-native-google-places-autocomplete with yarn in my react-native cli project but it is not working. Here are the issues I am facing at the moment.</p>
<ol>
<li><p>the places drop down is not showing up on IOS, however the input text field allows me to enter a place name but the predictions list doe... | I have added react-native-google-places-autocomplete with yarn in my react-native cli project but it is not working. Here are the issues I am facing at the moment. the places drop down is not showing up on IOS, however the input text field allows me to enter a place name but the predictions list does not appear onPress... | android|ios|react-native|google-places-api|googleplacesautocomplete | 2 | 2020-02-12T11:37:52.793Z | 2,020 | 2 | 11 | 2 | 6,878 | 2 | 1,139 | 72 | 5 | 1 | true | false | true | false | false | false | low |
60,187,500 | Android avd emulator - how to save "Do you want to save the current state for the next quick boot?" in config.ini file | <p>When creating an avd, starting it for the first time and then trying to close the emulator, the user will be prompted with a dialog reading:</p>
<pre><code>Do you want to save the current state for the next quick boot?
Note: Saving the snapshot may take longer because free RAM is low.
</code></pre>
<p>I would lik... | When creating an avd, starting it for the first time and then trying to close the emulator, the user will be prompted with a dialog reading: [CODE] I would like to save this parameter, before starting the emulated device, within its config.ini file. However I'm not clear on which option it is. Things I tried: Adding th... | android|emulation|avd|qemu | 7 | 2020-02-12T11:38:22.277Z | 2,020 | 2 | 11 | 2 | 1,285 | 2 | 587 | 118 | 4 | 3 | true | false | false | false | false | false | medium |
60,187,527 | Run all UI/Unit tests from a multi-module project using a single command | <p>We have a multi-module Android project, in which some modules contain UI tests and some contain Unit tests. We wish to run all UI tests from all modules using a single Gradle command and do the same thing for Unit tests.</p>
<p>The only way that we found to do this was with the following config inside the main <cod... | We have a multi-module Android project, in which some modules contain UI tests and some contain Unit tests. We wish to run all UI tests from all modules using a single Gradle command and do the same thing for Unit tests. The only way that we found to do this was with the following config inside the main app module that... | android|unit-testing|testing|gradle|android-gradle-plugin | 13 | 2020-02-12T11:40:27.663Z | 2,020 | 2 | 11 | 2 | 2,265 | 2 | 803 | 72 | 5 | 2 | true | false | false | false | true | false | medium |
60,187,586 | Alarm Manager not working is case on changing system date and time in Android | <p>I am testing Alarm Manager but on changing system time no broadcast is received.</p>
<p>However in the normal case (without changing system's time) this works fine. Why is this so? </p>
<pre><code>val alarmIntent = Intent(mContext, AlarmReceiver::class.java)
val pendingIntent = PendingIntent.getBroadca... | I am testing Alarm Manager but on changing system time no broadcast is received. However in the normal case (without changing system's time) this works fine. Why is this so? [CODE] | android|android-notifications | 0 | 2020-02-12T11:44:13.540Z | 2,020 | 2 | 11 | 2 | 25 | 0 | 180 | 77 | 2 | 1 | true | true | false | false | false | false | zero |
60,187,726 | By using Jetpack Navigation Compnent | <p>I couldn't get any idea or anything online so here I am. I'm using the jetpack navigation component and I want to navigate from fragmentA to fragmentB, and then fragmentB will have bottomnavigation with different fragments such as fragmentC, fragmentD, fragmentE<a href="https://i.stack.imgur.com/QD0gv.jpg" rel="nofo... | I couldn't get any idea or anything online so here I am. I'm using the jetpack navigation component and I want to navigate from fragmentA to fragmentB, and then fragmentB will have bottomnavigation with different fragments such as fragmentC, fragmentD, fragmentE , and fragmentE have viewpagers with different fragments ... | android | 0 | 2020-02-12T11:52:42.827Z | 2,020 | 2 | 11 | 2 | 43 | 1 | 359 | 36 | 1 | 0 | false | false | false | false | false | false | zero |
60,187,793 | how to check if SharedPreferences exists for this application in flutter | <p>my flutter application checks for saved data in <code>SharedPreferences</code> every time it starts . to use it later in the application, but when I run the app for the first time in a device, there is saved <code>SharedPreferences</code> yet so it gets all the data as <code>null</code>. so I want to make sure that ... | my flutter application checks for saved data in SharedPreferences every time it starts . to use it later in the application, but when I run the app for the first time in a device, there is saved SharedPreferences yet so it gets all the data as null . so I want to make sure that it checks if the file itself exists rathe... | android|ios|flutter|dart|sharedpreferences | 8 | 2020-02-12T11:55:35.013Z | 2,020 | 2 | 11 | 2 | 9,419 | 4 | 672 | 72 | 5 | 1 | true | false | true | false | false | false | medium |
60,187,805 | Context not associated with any application instrumentation testing? | <p>I am writing instrumentation test cases of a method that checks the state of my android device. This is how im mocking the context:</p>
<pre><code>mContext = InstrumentationRegistry.getInstrumentation().getContext();
</code></pre>
<p>I am mocking the context for this statement:</p>
<pre><code> BluetoothManager bl... | I am writing instrumentation test cases of a method that checks the state of my android device. This is how im mocking the context: [CODE] I am mocking the context for this statement: [CODE] But upon reaching this statement it gives the following exception: [CODE] Can someone help me and tell me if im mocking it incorr... | android|testing|mockito|android-context|android-instrumentation | 0 | 2020-02-12T11:56:13.690Z | 2,020 | 2 | 11 | 2 | 193 | 1 | 390 | 68 | 5 | 3 | true | false | false | false | false | false | zero |
60,187,809 | How to override colorBackground attribute in DayNight theme Android? | <p>I have written a custom style with the DayNight theme as a parent.
I want to override the attribute colorBackground with my own attribute (eg: say Green color for Day mode and Blue color for Night mode). How to achieve it?</p>
<p><code><style name="SampleTheme" parent="Theme.AppCompat.DayNight">
<i... | I have written a custom style with the DayNight theme as a parent. I want to override the attribute colorBackground with my own attribute (eg: say Green color for Day mode and Blue color for Night mode). How to achieve it? <style name="SampleTheme" parent="Theme.AppCompat.DayNight"> <item name="android:windowBackground... | android|xml|android-layout|android-launcher | 4 | 2020-02-12T11:56:22.800Z | 2,020 | 2 | 11 | 2 | 484 | 0 | 410 | 68 | 4 | 0 | false | true | false | false | false | false | low |
60,187,819 | How to view .cblite2 files on Windows? | <p>I am developing an android application that uses Couchbase Lite, i have saved a mutubale document now i want to view the saved document by extracting the database file and viewing it in some viewer but there seems no option to view .cblite files on Windows.</p>
<p><strong>What i tried?</strong></p>
<p><strong>1-</... | I am developing an android application that uses Couchbase Lite, i have saved a mutubale document now i want to view the saved document by extracting the database file and viewing it in some viewer but there seems no option to view .cblite files on Windows. What i tried? 1- Extracted .cblite file from device using Devi... | android|nosql|couchbase|couchbase-lite|couchbase-view | 0 | 2020-02-12T11:57:15.353Z | 2,020 | 2 | 11 | 2 | 345 | 0 | 1,229 | 38 | 5 | 1 | true | true | false | false | false | false | zero |
60,187,824 | Comparing user integer-based input with variable in Java | <h2>Edit #1</h2>
<p>Someone in comments suggested using <code>Math.floor()</code> and <code>intValue()</code>. How to implement it to my code? Is it still possible to run the program on Android?</p>
<hr />
<h2>What do I want to achieve?</h2>
<p>I'm trying to create Android-compatible Java code (purpose is explained... | Edit #1 Someone in comments suggested using Math.floor() and intValue() . How to implement it to my code? Is it still possible to run the program on Android? What do I want to achieve? I'm trying to create Android-compatible Java code (purpose is explained in comments in code). I'm new to Java, and still don't know abo... | java|android | 0 | 2020-02-12T11:57:39.233Z | 2,020 | 2 | 11 | 2 | 376 | 1 | 948 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
60,188,023 | same number is giving output for mobile_number string | <p>Hi in the below code below mobile is
mobile:<code>["9841910799","04651226127","9639355527","04428213134","8939597777","04428223060","04428311001","9822363585","8318043412","9919588852","9919588852","9919588852","9828722750","8875518030","9862145100","9414135437","9414135437"]</code></p>
<pre><code> String mobile=sh... | Hi in the below code below mobile is mobile: ["9841910799","04651226127","9639355527","04428213134","8939597777","04428223060","04428311001","9822363585","8318043412","9919588852","9919588852","9919588852","9828722750","8875518030","9862145100","9414135437","9414135437"] [CODE] For every time I am getting the single nu... | android|string | -2 | 2020-02-12T12:09:29.417Z | 2,020 | 2 | 12 | 2 | 26 | 1 | 351 | 53 | 2 | 2 | true | false | false | false | false | true | negative |
60,188,034 | Android: Testing MediaPlayer inside a service | <p>In my app, there's a service whose job is to play/stop an audio when it's started. I am using <code>MediaPlayer</code> for this.</p>
<p>Service works fine and now I am writing tests for it.
I am using Robolectric's <code>buildService</code> method to create the service.
The problem is that <code>mediaplayer</code> ... | In my app, there's a service whose job is to play/stop an audio when it's started. I am using MediaPlayer for this. Service works fine and now I am writing tests for it. I am using Robolectric's buildService method to create the service. The problem is that mediaplayer always comes out to be null in my case. Here's my ... | android|android-testing|robolectric | 0 | 2020-02-12T12:10:11.170Z | 2,020 | 2 | 12 | 2 | 438 | 1 | 631 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
60,188,149 | Rounded Corners and Borders in Android Studio | <p>I want to add rounded corners and borders to a textview. But only the top corners should be rounded and the bottom should be without border.
Already found this: </p>
<p><a href="https://www.android-examples.com/add-rounded-border-to-textview-programmatically/" rel="nofollow noreferrer">https://www.android-examples.... | I want to add rounded corners and borders to a textview. But only the top corners should be rounded and the bottom should be without border. Already found this: https://www.android-examples.com/add-rounded-border-to-textview-programmatically/ But then I have rounded corners at the bottom too. How can I change this? | android|xml|android-studio|android-drawable|android-shapedrawable | 5 | 2020-02-12T12:15:57.280Z | 2,020 | 2 | 12 | 2 | 4,912 | 3 | 316 | 45 | 5 | 0 | false | false | true | false | false | false | low |
60,188,206 | getting strange error code when trying to open MainActivity | <p>I am working on my Android project (I'm kind of beginner at Android and Android Studio)</p>
<p>I wanted to open my MainActivity class and here's what I've got:</p>
<pre><code><component name="libraryTable">
<name="Gradle: androidx.drawerlayout:drawerlayout:1.0.0@aar">
<ANNOTATIONS>
&l... | I am working on my Android project (I'm kind of beginner at Android and Android Studio) I wanted to open my MainActivity class and here's what I've got: [CODE] I have no idea what it means. My MainActivity did not look like this. It has a GridView and it is the main menu of my program. I am not sure what happened. | java|android|program-entry-point | -1 | 2020-02-12T12:19:12.857Z | 2,020 | 2 | 12 | 2 | 126 | 4 | 315 | 59 | 3 | 1 | true | false | false | false | false | true | negative |
60,188,249 | Android collision detection wrong behavior with moving views | <p>Hello android engineers
i'm facing a problem with my android game
the game is to have xbox controls that select / move objects on the screen
the idea is to move a pointer image on the screen until it become on my desired object then hit some select button "x" to drag this object with the pointer image and put it (... | Hello android engineers i'm facing a problem with my android game the game is to have xbox controls that select / move objects on the screen the idea is to move a pointer image on the screen until it become on my desired object then hit some select button "x" to drag this object with the pointer image and put it ( my o... | android|collision | 0 | 2020-02-12T12:22:04.583Z | 2,020 | 2 | 12 | 2 | 94 | 1 | 662 | 60 | 2 | 4 | true | false | false | false | false | false | zero |
60,188,299 | Is it possible to show EmptyView after loader(ActivityIndicator) in CarouselView using Xamarin forms? | <p>I have a lot of tried to show EmptyView after Loader but did not get success might i missed some code configuration for the EmptyView and Loader.</p>
<p>I'm using ActivityIndicator loader for the loading view if it will hide once data will come.</p>
<p><strong>Below code is for EmptyView for the CarouselView</stro... | I have a lot of tried to show EmptyView after Loader but did not get success might i missed some code configuration for the EmptyView and Loader. I'm using ActivityIndicator loader for the loading view if it will hide once data will come. Below code is for EmptyView for the CarouselView [CODE] Below code is for Activit... | android|ios|xamarin | 1 | 2020-02-12T12:25:34.417Z | 2,020 | 2 | 12 | 2 | 242 | 1 | 471 | 101 | 3 | 2 | true | false | false | false | false | false | low |
60,188,305 | DatabaseException:Expected a List while deserializing, but got a class java.util.HashMap | <p>I tried using GenericTypeIndicator in a recycler view to set A Array of data to a recycler view inside a recycler view.</p>
<p>The GenericTypeIndicator throws an error that causes the application to crash.
I tried figuring out the error but it seems it was expecting a list but got a Hashmap instead.</p>
<pre><code... | I tried using GenericTypeIndicator in a recycler view to set A Array of data to a recycler view inside a recycler view. The GenericTypeIndicator throws an error that causes the application to crash. I tried figuring out the error but it seems it was expecting a list but got a Hashmap instead. [CODE] ItemData.java [CODE... | java|android|firebase|android-recyclerview | -1 | 2020-02-12T12:25:57.960Z | 2,020 | 2 | 12 | 2 | 202 | 1 | 416 | 88 | 4 | 3 | true | false | false | false | false | true | negative |
60,188,371 | Where to add the code for checking in app updates in android, would it be fine if I do it in the splash screen? or the mainActivity? | <p>I was going through in-app updates library (<a href="https://developer.android.com/guide/playcore/in-app-updates" rel="nofollow noreferrer">https://developer.android.com/guide/playcore/in-app-updates</a>) and want to add this functionality, however I am confused about where to add the code to check if the update is ... | I was going through in-app updates library ( https://developer.android.com/guide/playcore/in-app-updates ) and want to add this functionality, however I am confused about where to add the code to check if the update is available, I couldn't any information regarding this. If I add the code to the splash screen will it ... | android|android-studio|in-app-update | 0 | 2020-02-12T12:29:58.750Z | 2,020 | 2 | 12 | 2 | 584 | 3 | 393 | 132 | 3 | 0 | false | false | false | false | false | false | zero |
60,188,402 | Drawing rectangle with dashed boundary in openGL android | <p>I am new to openGL. I want to draw a rectangle with a dotted boundary on top of a GLES11 canvas. I am able to draw a normal rectangle using the <code>drawRect()</code> method present here:</p>
<pre><code>@Override
public void drawRect(float x, float y, float width, float height, GLPaint paint) {
GL11 gl = mGL;
... | I am new to openGL. I want to draw a rectangle with a dotted boundary on top of a GLES11 canvas. I am able to draw a normal rectangle using the drawRect() method present here: [CODE] Complete class can be found here. https://github.com/classified/Android-Work/blob/master/android_packages_apps_Gallery2-cm-10.2/src/com/a... | android|opengl-es | -1 | 2020-02-12T12:31:27.137Z | 2,020 | 2 | 12 | 2 | 420 | 1 | 440 | 56 | 2 | 1 | true | false | false | false | false | true | negative |
60,188,408 | how to display large amounts of data while keeping the app responsive | <p>In my Android app, I've got a background thread that downloads a lot of data from the network. The thread then parses the data into a form ready for display. Eventually, the thread needs to display this data - i.e. modify a lot of UI elements. The displaying can be only done from the UI thread. If I try to display e... | In my Android app, I've got a background thread that downloads a lot of data from the network. The thread then parses the data into a form ready for display. Eventually, the thread needs to display this data - i.e. modify a lot of UI elements. The displaying can be only done from the UI thread. If I try to display ever... | android|user-interface | 0 | 2020-02-12T12:31:48.327Z | 2,020 | 2 | 12 | 2 | 172 | 2 | 849 | 69 | 2 | 1 | true | false | false | false | false | false | zero |
60,188,453 | How to send Updated data after every 5 mints service to activity? | <p>I have added a service class in my activity I am getting updated location from backend in every 5 seconds but I don't know how to send updated location lat long from service to activity here is my service class :</p>
<pre><code>public class DriverLocationService extends Service {
BackgroundService service;
privat... | I have added a service class in my activity I am getting updated location from backend in every 5 seconds but I don't know how to send updated location lat long from service to activity here is my service class : [CODE] and here is my activity where I want to update lat-long [CODE] please response me I would appreciate... | android|android-intent|android-activity|service | 0 | 2020-02-12T12:33:35.240Z | 2,020 | 2 | 12 | 2 | 38 | 3 | 354 | 65 | 4 | 2 | true | false | false | false | false | false | zero |
60,188,515 | Whats the right approach to create or change color of a status bar? | <p>I have a quiet big problem with changing the color of my status bar.
The device on which I working on is telling me android 5.1 but staff like <code>windowTranslucentStatus</code> or <code>android:colorPrimaryDark</code> or <code>android:statusBarColor</code> just does not work at all (translucent have like 20% dark... | I have a quiet big problem with changing the color of my status bar. The device on which I working on is telling me android 5.1 but staff like windowTranslucentStatus or android:colorPrimaryDark or android:statusBarColor just does not work at all (translucent have like 20% dark transparence) and anything else does not ... | java|android|notifications|statusbar | 0 | 2020-02-12T12:36:43.327Z | 2,020 | 2 | 12 | 2 | 157 | 4 | 1,010 | 67 | 4 | 0 | false | false | false | false | false | false | zero |
60,188,588 | Errors when opening a project | <p>I created the project with the console command</p>
<pre><code>npx react-native init AwesomeTSProject --template react-native-template-typescript
</code></pre>
<p>After which, I open the project in <code>android studio</code> and I get errors.</p>
<pre><code>org.gradle.internal.exceptions.LocationAwareException: S... | I created the project with the console command [CODE] After which, I open the project in android studio and I get errors. [CODE] But when I open the project in vs code and run the commands in the terminals, the emulator starts and the project works. [CODE] I also removed the global package react-native-cli. [CODE] npx ... | android|reactjs|react-native | 0 | 2020-02-12T12:40:26.257Z | 2,020 | 2 | 12 | 2 | 238 | 1 | 487 | 29 | 3 | 7 | true | false | false | false | false | false | zero |
60,188,696 | Navigation Component: how to return data if popbackstack was called | <p>I use the navigation component in my app and now I have two fragments - <strong>FirstFragment, SecondFragmen</strong>t. From <strong>SecondFragment</strong>, I return the result to <strong>FirstFragment</strong>. previously, I called <strong>setTargetFragment</strong> and passed the data this way. Please tell me how... | I use the navigation component in my app and now I have two fragments - FirstFragment, SecondFragmen t. From SecondFragment , I return the result to FirstFragment . previously, I called setTargetFragment and passed the data this way. Please tell me how I can now transfer data to FirstFragment from SecondFragment using ... | android|navigation | 2 | 2020-02-12T12:46:28.640Z | 2,020 | 2 | 12 | 2 | 589 | 0 | 463 | 67 | 2 | 0 | false | true | false | false | false | false | low |
60,188,717 | Android PrintJob null Intent | <p>I am facing an issue with the PrintJob class.
(<a href="https://developer.android.com/training/printing/html-docs.html#print-job" rel="nofollow noreferrer">https://developer.android.com/training/printing/html-docs.html#print-job</a>)</p>
<p>The documentation throws some code in here and it works, but in can't under... | I am facing an issue with the PrintJob class. ( https://developer.android.com/training/printing/html-docs.html#print-job ) The documentation throws some code in here and it works, but in can't understand what it is really going on. I have to print the content of a webview in a PDF file. I manage to do it with this docu... | java|android | 4 | 2020-02-12T12:47:29.590Z | 2,020 | 2 | 12 | 2 | 291 | 0 | 761 | 28 | 2 | 3 | true | true | false | false | false | false | low |
60,188,771 | How to put parameters in using JsonObjectRequest in Volley? | <p>i noticed that Method POST is not working in JsonObjectRequest. i have to parameters that needs to be pass on which is</p>
<pre><code>session_code: 12345
user_id: 55
</code></pre>
<pre><code>JsonObjectRequest stringRequest = new JsonObjectRequest(Request.Method.POST, WebConfig.news, null,
</code></pre>
<p>how can... | i noticed that Method POST is not working in JsonObjectRequest. i have to parameters that needs to be pass on which is [CODE] [CODE] how can i put two parameters in this? i want to convert this to jsonObjectRequest but i dont know how to do it. [CODE] [CODE] [CODE] [CODE] i think the problem is by using the jsonObjectR... | android|android-volley | 0 | 2020-02-12T12:50:30.893Z | 2,020 | 2 | 12 | 2 | 34 | 1 | 438 | 59 | 2 | 6 | true | false | false | false | false | false | zero |
60,188,829 | Ionic - Access denied finding property "vendor.camera.aux.packagelist" | <p>Tring to use opentok in an ionic app and i get this error in log when I try to publish a video</p>
<blockquote>
<p>Access denied finding property "vendor.camera.aux.packagelist" Access
denied finding property "vendor.camera.aux.packagelist2"</p>
</blockquote>
<p>i hev tried to add these permissions in the app ... | Tring to use opentok in an ionic app and i get this error in log when I try to publish a video Access denied finding property "vendor.camera.aux.packagelist" Access denied finding property "vendor.camera.aux.packagelist2" i hev tried to add these permissions in the app manifist [CODE] Any help is appreciated. Thanks | android|ionic-framework|opentok | 1 | 2020-02-12T12:53:25.503Z | 2,020 | 2 | 12 | 2 | 5,141 | 2 | 317 | 70 | 3 | 1 | true | false | true | false | false | false | low |
60,188,906 | How can I go from VR to 2D mode in Unity hybrid app? | <p>I have implemented an app to use in mobile as VR viewer of the human anatomy. It is done with the Google VR SDK and I could switch from VR mode to Fullscreen mode (hybrid app). That was before I updated to the last sdk version (v1.200.1). Now it seems the full screen mode is not longer being controlled by the sdk. I... | I have implemented an app to use in mobile as VR viewer of the human anatomy. It is done with the Google VR SDK and I could switch from VR mode to Fullscreen mode (hybrid app). That was before I updated to the last sdk version (v1.200.1). Now it seems the full screen mode is not longer being controlled by the sdk. I co... | android|unity3d|rotation|gyroscope|google-vr | 1 | 2020-02-12T12:57:33.970Z | 2,020 | 2 | 12 | 2 | 331 | 0 | 1,095 | 52 | 5 | 1 | true | true | false | false | false | false | low |
60,188,931 | Ionic cordova.plugins.backgroundMode.wakeUp() method not waking up the phone | <p>For an Ionic 4 app, I am using the method <code>cordova.plugins.backgroundMode.wakeUp()</code> of the <code>cordova-plugin-background-mode</code> along with my bluetooth functionality to wake the screen on any state change of the bluetooth device. It is working on some devices for example its working fine on my Moto... | For an Ionic 4 app, I am using the method cordova.plugins.backgroundMode.wakeUp() of the cordova-plugin-background-mode along with my bluetooth functionality to wake the screen on any state change of the bluetooth device. It is working on some devices for example its working fine on my Moto phone but not with LG G6. Is... | android|cordova|ionic4 | 1 | 2020-02-12T12:58:30.473Z | 2,020 | 2 | 12 | 2 | 448 | 0 | 654 | 76 | 3 | 0 | false | true | false | false | false | false | low |
60,188,949 | CameraX - ImageProxy returned by ImageCapture is invalid | <p>I am using CameraX to capture an image and then using Firebase ML kit to recognise Text.</p>
<p>CameraX return ImageProxy in from ImageCapture when we take pic.</p>
<pre><code>imageCapture.takePicture(Executors.newSingleThreadExecutor(), new ImageCapture.OnImageCapturedListener() {
@Override
... | I am using CameraX to capture an image and then using Firebase ML kit to recognise Text. CameraX return ImageProxy in from ImageCapture when we take pic. [CODE] Passing that image to Firebase - [CODE] I am getting an error- [CODE] Can you help as, where i am doing wrong? The image returned by ImageCapture is coming inv... | android|firebase|firebase-mlkit|android-camerax | 1 | 2020-02-12T12:59:40.417Z | 2,020 | 2 | 12 | 2 | 2,377 | 1 | 332 | 56 | 4 | 3 | true | false | false | false | false | false | low |
60,189,062 | volley get response returns value of type java.lang.String cannot be converted to JSONArray | <p>i am trying to authenticate using an api.am getting an error on response, my api returns the following response and am getting the following error.</p>
<blockquote>
<p>value of type java.lang.String cannot be converted to JSONArray.</p>
</blockquote>
<p>kindly help, am a newbie.</p>
<p>this is what my api retur... | i am trying to authenticate using an api.am getting an error on response, my api returns the following response and am getting the following error. value of type java.lang.String cannot be converted to JSONArray. kindly help, am a newbie. this is what my api returns: [CODE] this is my code; [CODE] | java|android|arrays|api|android-volley | 0 | 2020-02-12T13:06:04.133Z | 2,020 | 2 | 13 | 2 | 138 | 3 | 298 | 91 | 5 | 2 | true | false | false | false | false | false | zero |
60,189,073 | How to register generated resources in Android Gradle task? | <p>I am trying to generate some Android resources in a Gradle task. </p>
<p>I've written a task which parses an input file, and writes out an XML file to a location under the app's <code>build</code> directory.</p>
<p><strong>app/build.gradle</strong></p>
<pre class="lang-groovy prettyprint-override"><code>import gr... | I am trying to generate some Android resources in a Gradle task. I've written a task which parses an input file, and writes out an XML file to a location under the app's build directory. app/build.gradle [CODE] This works fine, and the generated output looks like I expect. generated.xml [CODE] I am struggling to get th... | android|gradle|android-gradle-plugin|android-resources | 3 | 2020-02-12T13:06:27.747Z | 2,020 | 2 | 13 | 2 | 3,157 | 2 | 1,138 | 59 | 4 | 3 | true | false | true | false | false | false | low |
60,189,134 | Constraint Layout SPREAD and PACKED combination | <p>I want to create following <code>ConstraintLayout</code>:</p>
<p><a href="https://i.stack.imgur.com/GCQCi.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/GCQCi.jpg" alt="enter image description here"></a></p>
<p>In other words, I want to have a chain, where all elements are <strong>spread</strong> and on... | I want to create following ConstraintLayout : In other words, I want to have a chain, where all elements are spread and only second and third ones are packed . I can do that by removing third element from the chain and apply the following code to it: app:layout_constraintTop_toBottomOf="@+id/second_element" it works as... | android|android-layout|android-constraintlayout | 6 | 2020-02-12T13:09:47.053Z | 2,020 | 2 | 13 | 2 | 1,238 | 4 | 534 | 47 | 3 | 0 | false | false | false | false | false | false | medium |
60,189,165 | Observer on LiveData still active after removeObservers | <p>I select Information from DB using LiveData, passing it to my Activity (via DAO, Repository & Viewmodel) dependent from a timespan of Dates. When I change the timespan, I want to remove the old Observers on the LiveData and create new Observer for the new Timespan.</p>
<pre class="lang-java prettyprint-override... | I select Information from DB using LiveData, passing it to my Activity (via DAO, Repository & Viewmodel) dependent from a timespan of Dates. When I change the timespan, I want to remove the old Observers on the LiveData and create new Observer for the new Timespan. [CODE] However, after I call removeObservers() and the... | java|android|android-livedata|observers | 0 | 2020-02-12T13:11:47.027Z | 2,020 | 2 | 13 | 2 | 178 | 1 | 581 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
60,189,239 | **D/NetworkSecurityConfig: No Network Security Config specified, using platform default** | <pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" package="com.example.kotlin">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission andro... | [CODE] this is manifest .xml and ı add an network security confıg at the xml folder [CODE] And my code [CODE] ı checked the ınternet connectıon of the emulator and ıt says there ıs a connectıon so emulator has connectıon but ı stıll had : [CODE] this error before ı take securıty confıg ıt has saıd that : [CODE] What sh... | android|kotlin|request|connection | -1 | 2020-02-12T13:15:27.863Z | 2,020 | 2 | 13 | 2 | 3,391 | 1 | 510 | 89 | 4 | 5 | true | false | true | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.