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,167,858 | Android Camera2: How to implement an semi-automatic Shutter Speed Priority Mode | <p><strong>Goal</strong></p>
<ul>
<li>Capture images with Android smartphones attached to moving vehicles</li>
<li>frequency: 1 Hz</li>
<li>reference model: Google Pixel 3a</li>
<li>objects of interest: the road/way in front of the vehicle</li>
<li>picture usage: as input for machine learning (like RNN) to identify da... | Goal Capture images with Android smartphones attached to moving vehicles frequency: 1 Hz reference model: Google Pixel 3a objects of interest: the road/way in front of the vehicle picture usage: as input for machine learning (like RNN) to identify damages on the road/way surfaces capture environment: outdoor, only on c... | android|android-camera2|exposure | 2 | 2020-02-11T11:30:34.827Z | 2,020 | 2 | 11 | 1 | 1,469 | 2 | 2,771 | 79 | 3 | 0 | false | false | false | false | false | false | low |
60,167,962 | Android studio how force all devices to download the new release from play store | <p>Hy,</p>
<p>I m published a software on the store and later i did some update , but i noticed that most times , the phone which has downloaded the previous version of my software doesn't update automatically the new release that i 've published till they go directly on the store on the page of the application and se... | Hy, I m published a software on the store and later i did some update , but i noticed that most times , the phone which has downloaded the previous version of my software doesn't update automatically the new release that i 've published till they go directly on the store on the page of the application and see ( Update)... | android|google-play | 0 | 2020-02-11T11:35:49.857Z | 2,020 | 2 | 11 | 1 | 106 | 1 | 507 | 80 | 2 | 0 | false | false | false | false | false | false | zero |
60,168,008 | App not installed in react native android | <p>I build a react app using expo but i change it to react-native CLI . Now when I want to install the generated released-unsigned-apk the installation failed. I test this line of codes:</p>
<pre><code>react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/... | I build a react app using expo but i change it to react-native CLI . Now when I want to install the generated released-unsigned-apk the installation failed. I test this line of codes: [CODE] but still I can't install the app. Here is package.json content: [CODE] UPDATE here is the logcat when run the react-native run-a... | android|react-native|expo | 0 | 2020-02-11T11:38:38.130Z | 2,020 | 2 | 11 | 1 | 574 | 1 | 353 | 41 | 3 | 3 | true | false | false | false | false | false | zero |
60,168,071 | Proper way to deal with file chosen from new Google Photos app | <p>Not a duplicate to <a href="https://stackoverflow.com/questions/30527045/choosing-photo-using-new-google-photos-app-is-broken">Choosing photo using new Google Photos app is broken</a></p>
<p>My app requests for file which can be images or videos and we only support some of the file extensions. And since MediaStore.... | Not a duplicate to Choosing photo using new Google Photos app is broken My app requests for file which can be images or videos and we only support some of the file extensions. And since MediaStore.MediaColumns.Data is deprecated, I've to go with the fileDescriptor approach to solve this. But I'm not able to figure out ... | android|mime-types | 0 | 2020-02-11T11:42:55.480Z | 2,020 | 2 | 11 | 1 | 66 | 0 | 1,269 | 62 | 2 | 4 | true | true | false | false | false | false | zero |
60,168,075 | Not work new Date() in xml with databinding | <p>Andrdoid Studio 3.6</p>
<pre><code> public static Date getDateFromString(String date, String dateFormat) {
try {
DateFormat df = new SimpleDateFormat(dateFormat);
Date dateResult = df.parse(date);
return dateResult;
} catch (ParseException e) {
//e.pri... | Andrdoid Studio 3.6 [CODE] and this work fine. But this not work: [CODE] get error: [CODE] | android|android-databinding | 1 | 2020-02-11T11:43:16.493Z | 2,020 | 2 | 11 | 1 | 629 | 2 | 90 | 43 | 2 | 3 | true | false | false | false | false | false | low |
60,168,357 | I get an error when I use the code "imageCapture.takePicture" of CameraX | <p>I get the error </p>
<blockquote>
<p>"java.lang.NullPointerException: Attempt to invoke virtual method
'java.util.List
androidx.camera.core.SessionConfig$Builder.getSingleCameraCaptureCallbacks()'
on a null object reference"</p>
</blockquote>
<p>when I use the code below:</p>
<pre><code> val file = File(e... | I get the error "java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List androidx.camera.core.SessionConfig$Builder.getSingleCameraCaptureCallbacks()' on a null object reference" when I use the code below: [CODE] Is there a callback that I haven't setted? | android|android-camerax | 1 | 2020-02-11T12:01:53.180Z | 2,020 | 2 | 12 | 1 | 3,280 | 1 | 280 | 72 | 2 | 1 | true | false | true | false | false | false | low |
60,168,360 | Attempt to invoke virtual method 'android.content.res.Resources android.app.Activity.getResources()' on a null object reference | <p>I am getting Error while doing this</p>
<p>this is my code</p>
<pre><code>String[] options = {getActivity().getResources().getString(R.string.capture_video),getActivity().getResources().getString(R.string.Cancel)};
</code></pre>
<p>This is in Fragment class</p> | I am getting Error while doing this this is my code [CODE] This is in Fragment class | android|nullpointerexception | -2 | 2020-02-11T12:01:58.747Z | 2,020 | 2 | 12 | 1 | 67 | 1 | 84 | 127 | 2 | 1 | true | false | false | false | false | true | negative |
60,168,424 | Do I need to increment the Room Database version number if I only changed the DAO's, not the entities? | <p>I was just wondering if you <strong>really need to increment</strong> the room database version number if you changed only the Data Access Objects (DAO's).</p>
<p>So the scenario is:</p>
<ol>
<li>I already published the app in the Play Store with version x</li>
<li>I only changed part of some DAO's without changin... | I was just wondering if you really need to increment the room database version number if you changed only the Data Access Objects (DAO's). So the scenario is: I already published the app in the Play Store with version x I only changed part of some DAO's without changing the entities themselves I incremented the app ver... | android|android-sqlite|android-room | 3 | 2020-02-11T12:06:27.033Z | 2,020 | 2 | 12 | 1 | 848 | 1 | 413 | 102 | 3 | 0 | false | false | false | false | false | false | low |
60,168,435 | Dagger2 initialization of components | <p>I am implementing dependency injection using dagger; </p>
<p>and using injected classObject as follows, </p>
<pre><code>CarComponent carComponent = DaggerCarComponent.create();
car=carComponent.getCar();
</code></pre>
<p>Now queries are, </p>
<ol>
<li>like we do in spring, by adding @Service/@Component to class,... | I am implementing dependency injection using dagger; and using injected classObject as follows, [CODE] Now queries are, like we do in spring, by adding @Service/@Component to class, we dont required explicitly call something to init this object(like DaggerCarComponent.create() ) Spring will take care to init this servi... | java|android|spring|dagger-2|dagger | 0 | 2020-02-11T12:07:00.060Z | 2,020 | 2 | 12 | 1 | 1,140 | 1 | 487 | 36 | 5 | 1 | true | false | false | false | false | false | zero |
60,168,490 | How to know if an App is in the recent app list or not? | <p>I was building a feature on my app where I need to check if the app is in the recent app list or not. If it is in the recent app list I will start some service and if it is not in the recent app list I will wait for the app's next time run. But I didnt find any way about how to detect if this app is in the recent ap... | I was building a feature on my app where I need to check if the app is in the recent app list or not. If it is in the recent app list I will start some service and if it is not in the recent app list I will wait for the app's next time run. But I didnt find any way about how to detect if this app is in the recent app l... | android | 0 | 2020-02-11T12:09:45.860Z | 2,020 | 2 | 12 | 1 | 101 | 1 | 516 | 55 | 1 | 0 | false | false | false | false | false | false | zero |
60,168,572 | getting data from handler | <p>I tried some simple Bluetooth tutorial/code and it works great. Handling incoming data is made in handler. I need to restore data from that handler so I can use it in main thread, for making graph or something like that. How can I do that?</p>
<p>This Handler is in <code>onCreate</code>.</p>
<pre><code>bluetoothIn... | I tried some simple Bluetooth tutorial/code and it works great. Handling incoming data is made in handler. I need to restore data from that handler so I can use it in main thread, for making graph or something like that. How can I do that? This Handler is in onCreate . [CODE] How can I get sensor0 out into the main thr... | android|handler | 0 | 2020-02-11T12:15:16.137Z | 2,020 | 2 | 12 | 1 | 76 | 0 | 333 | 25 | 2 | 1 | true | true | false | false | false | false | zero |
60,168,633 | Why is GetExternalFileDirs not working in android? | <p>I am working on a sample project in unity android where application reads a textfile in an OTG pen drive connected to the android phone, the problem is my code works fine in some devices but it doesn't work in some devices. I am unable to figure out the main cause even through the logcat extreme as it doesn't throw ... | I am working on a sample project in unity android where application reads a textfile in an OTG pen drive connected to the android phone, the problem is my code works fine in some devices but it doesn't work in some devices. I am unable to figure out the main cause even through the logcat extreme as it doesn't throw any... | java|c#|android|unity3d|usb | 0 | 2020-02-11T12:18:33.480Z | 2,020 | 2 | 12 | 1 | 352 | 0 | 1,288 | 50 | 5 | 1 | true | true | false | false | false | false | zero |
60,168,647 | Filter peers (devices) list in Wifi Direct | <p>I am developing android app for sharing data between two devices using Wifi Direct all is working great i am able to show peers list in my app and can transfer data between them.
my only problem is in my peer list i just want to show the devices which are using my app and will show on senders phone when they are on ... | I am developing android app for sharing data between two devices using Wifi Direct all is working great i am able to show peers list in my app and can transfer data between them. my only problem is in my peer list i just want to show the devices which are using my app and will show on senders phone when they are on rec... | android|wifi-direct | 1 | 2020-02-11T12:19:35.410Z | 2,020 | 2 | 12 | 1 | 234 | 0 | 605 | 42 | 2 | 1 | true | true | false | false | false | false | low |
60,168,797 | React Native - Get file name from android content uri | <p><Br>
I need to get file name from android content uri, for example:
<Br>
content://com.android.providers.downloads.documents/document/15
<Br>
<Br>
I try to used react-native-fs stat but it return error of "File does not exist".
<Br><Br>
How can I do it?</p> | I need to get file name from android content uri, for example: content://com.android.providers.downloads.documents/document/15 I try to used react-native-fs stat but it return error of "File does not exist". How can I do it? | android|reactjs|react-native|react-native-fs | 3 | 2020-02-11T12:28:40.890Z | 2,020 | 2 | 12 | 1 | 4,940 | 2 | 224 | 53 | 4 | 0 | false | false | true | false | false | false | low |
60,168,952 | Import error in android studio design and v7 - Android Studio - | <p>I am new to java and Android studio, but I tried to create an app</p>
<p>Here is the code - </p>
<pre><code>MainActivity.java
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import androidx.appcompat.app.AppCompatActivity;
import ... | I am new to java and Android studio, but I tried to create an app Here is the code - [CODE] In this code, the design word shows - cannot resolve symbol 'design' and, the v7 word shows - cannot resolve symbol 'v7' [CODE] If, I ran this program which shows compiler error [CODE] How to resolve this error, thanks | java|android|android-studio|android-layout|android-fragments | 2 | 2020-02-11T12:36:49.183Z | 2,020 | 2 | 12 | 1 | 2,039 | 5 | 310 | 63 | 5 | 3 | true | false | false | false | false | false | low |
60,168,962 | How to format double with DecimalFormatSymbols and currency? | <p>My result should look like this: $100 00,99
I managed to format the number as I need, but without the currency.
I managed to get the currency separately, but can't get the two together.
For the numbering format, I used <code>DecimalFormatSymbol</code> as in the answer to this <a href="https://stackoverflow.com/quest... | My result should look like this: $100 00,99 I managed to format the number as I need, but without the currency. I managed to get the currency separately, but can't get the two together. For the numbering format, I used DecimalFormatSymbol as in the answer to this question . [CODE] For the currency I used this code: [CO... | android|formatting|double|decimal|currency | 1 | 2020-02-11T12:37:40.730Z | 2,020 | 2 | 12 | 1 | 251 | 1 | 350 | 60 | 5 | 2 | true | false | false | false | false | false | low |
60,169,131 | how to stop SweetAlertDialog when an other sweet alert show | <p>I have a sweet alert of type of loading that running after button click that makes the user wait until data foreach and after the creation of PDF( using of server data ) a success alert display but I found that the first alert still displays. </p>
<pre><code>btn_liste_clients.setOnClickListener(new View.OnClickList... | I have a sweet alert of type of loading that running after button click that makes the user wait until data foreach and after the creation of PDF( using of server data ) a success alert display but I found that the first alert still displays. [CODE] so, guys, I need to stop progress alert when the success alert display... | android|sweetalert | 1 | 2020-02-11T12:46:56.903Z | 2,020 | 2 | 12 | 1 | 690 | 1 | 321 | 59 | 2 | 1 | true | false | false | false | false | false | low |
60,169,140 | How can I end Beta (Early Access/Open Track) in Google Play Console? | <p>Is it possible to end an app in beta (also known as open track or early access)? I currently have my app in internal app sharing, and decided to release it to Alpha - but noticed no differences, so tried to release it to Beta. But after reading supporting documentation which explains the difference between Alpha and... | Is it possible to end an app in beta (also known as open track or early access)? I currently have my app in internal app sharing, and decided to release it to Alpha - but noticed no differences, so tried to release it to Beta. But after reading supporting documentation which explains the difference between Alpha and Be... | android|google-play-console | 1 | 2020-02-11T12:47:20.077Z | 2,020 | 2 | 12 | 1 | 2,947 | 3 | 633 | 68 | 2 | 0 | false | false | true | false | false | false | low |
60,169,181 | Expo FCM push notification sound not working | <p>I have tried this code:</p>
<pre><code>const sendPushNotification = async (vendor_token, user_message) => {
const message = {
to: vendor_token,
priority: Platform.OS === 'android' ? "normal" : "high",
sound: "default",
title: 'Order Detail',
body: user_message,
... | I have tried this code: [CODE] But if add sound: true for Android notification not working. | android|push-notification|expo | 0 | 2020-02-11T12:49:13.643Z | 2,020 | 2 | 12 | 1 | 539 | 1 | 91 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
60,169,261 | DownloadManager Error Message when opening the file | <p>hey guys im making this simple app to fetch apk's that are stored on a server for clients.
i get the file downloaded and i want to open it to install.</p>
<p>so the first issue is that it downloads it twice?
second is i get error parsing application when it opens it?but if i open the file from the phone it works..<... | hey guys im making this simple app to fetch apk's that are stored on a server for clients. i get the file downloaded and i want to open it to install. so the first issue is that it downloads it twice? second is i get error parsing application when it opens it?but if i open the file from the phone it works.. First downl... | android|download|download-manager | 0 | 2020-02-11T12:52:38.210Z | 2,020 | 2 | 12 | 1 | 808 | 1 | 766 | 51 | 3 | 5 | true | false | false | false | false | false | zero |
60,169,331 | android - Set keyboard language input programmatically | <p>My app supports en and ar language. If the phone language is english but the app language is arabic, I want the keyboard input to be arabic. Is that possbile? By default the keyboard input is tied to the phone language and not the app locale.</p> | My app supports en and ar language. If the phone language is english but the app language is arabic, I want the keyboard input to be arabic. Is that possbile? By default the keyboard input is tied to the phone language and not the app locale. | android|kotlin|keyboard | 2 | 2020-02-11T12:55:45.103Z | 2,020 | 2 | 12 | 1 | 284 | 0 | 242 | 54 | 3 | 0 | false | true | false | false | false | false | low |
60,169,350 | How to hide sub-folder of scoped directory in Android 10 (Android Q) ? Using Media Store? | <p>Recently due to app behavior changes in android 10 i am using media store to save bitmap to storage.
But i have some pictures which i do not want users to see in gallery so i want to hide it on storage using <strong>.(DOT)</strong></p>
<p>But when image is stored by my application its replacing <strong><em>.(DOT) w... | Recently due to app behavior changes in android 10 i am using media store to save bitmap to storage. But i have some pictures which i do not want users to see in gallery so i want to hide it on storage using .(DOT) But when image is stored by my application its replacing .(DOT) with (SLASH)_. E.G /storage/emulated/0/Pi... | android|performance | 2 | 2020-02-11T12:56:25.240Z | 2,020 | 2 | 12 | 1 | 365 | 0 | 423 | 89 | 2 | 1 | true | true | false | false | false | false | low |
60,169,417 | display json string data to spinners | <p>in this case I want to display the json string data to the spinner, but the form of the data is not just a list but just a string. How can I display the string data to the spinner.</p>
<p><a href="https://i.stack.imgur.com/inl0v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/inl0v.png" alt="This... | in this case I want to display the json string data to the spinner, but the form of the data is not just a list but just a string. How can I display the string data to the spinner. private void getmemberDetail(){ ///// loading = ProgressDialog.show(mContext, null, "Harap Tunggu...", true, false); [CODE] ResponseMembers... | android | 1 | 2020-02-11T13:00:12.737Z | 2,020 | 2 | 13 | 1 | 52 | 2 | 333 | 36 | 1 | 2 | true | false | false | false | false | false | low |
60,169,424 | Getting a deserialing error when getting from the Wordpress rest API, unexpected { in [0].title | <p>We are creating an application in Xamarin that is aimed at the Android market.
We need to pull a list of objects off of the Wordpress API in order to populate a list view.</p>
<p>The code seems to be erroring at the deserialisation part of the code.
EventLW is a ListView on the front-end of the application.</p>
<... | We are creating an application in Xamarin that is aimed at the Android market. We need to pull a list of objects off of the Wordpress API in order to populate a list view. The code seems to be erroring at the deserialisation part of the code. EventLW is a ListView on the front-end of the application. [CODE] Newtonsoft.... | c#|xamarin|xamarin.forms|xamarin.android|wordpress-rest-api | 2 | 2020-02-11T13:00:44.063Z | 2,020 | 2 | 13 | 1 | 405 | 3 | 614 | 95 | 5 | 1 | true | false | false | false | false | false | low |
60,169,443 | Disabling Video Recording | <p>We are developing an application which mainly deals with videos. How can we prevent these two problems:</p>
<p>1) the video gets recorded when screen recording enabled in the device
2) recording the video using another device</p>
<p>How can we prevent or disable it in both android and ios devices?</p> | We are developing an application which mainly deals with videos. How can we prevent these two problems: 1) the video gets recorded when screen recording enabled in the device 2) recording the video using another device How can we prevent or disable it in both android and ios devices? | android|iphone|ipad|video-recording|disable | -1 | 2020-02-11T13:01:40.637Z | 2,020 | 2 | 13 | 1 | 248 | 1 | 284 | 25 | 5 | 0 | false | false | false | false | false | true | negative |
60,169,466 | My class is extent by fragment. I can't get a location | <p>Why can't I get location information?
When I extend my class with AppCompatActivity, I can get a location. But when I extent with fragment, I cannot get a location.</p>
<pre><code>public class Fragment_Ucuncu extends Fragment implements OnMapReadyCallback, PermissionsListener {
private MapView mapView;
priv... | Why can't I get location information? When I extend my class with AppCompatActivity, I can get a location. But when I extent with fragment, I cannot get a location. [CODE] I need to show a "mapbox" map in my fragment in the navigation drawer. I couldn't find a sample code for this. I did this with google map. I can't d... | mapbox-android | 0 | 2020-02-11T13:02:42.207Z | 2,020 | 2 | 13 | 1 | 176 | 2 | 401 | 54 | 1 | 1 | true | false | false | false | false | false | zero |
60,169,560 | MPAndroid PieChart in kotlin | <pre><code>import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.github.mikephil.charting.charts.PieChart
import com.github.mikephil.charting.data.PieData
import com.github.mikephil.charting.data.PieDataSet
import com.github.mikephil.charting.utils.ColorTemplate
import java.util.*
class ... | [CODE] **I want to write the kotlin code of library MPAndroid graphs link is here https://javapapers.com/android/android-chart-example-app-using-mpandroidchart/ i want to implement this in my project help me to resolve issues . ** | android|android-studio|kotlin|pie-chart|mpandroidchart | 2 | 2020-02-11T13:06:51.570Z | 2,020 | 2 | 13 | 1 | 6,079 | 2 | 230 | 28 | 5 | 1 | true | false | true | false | false | false | low |
60,169,571 | how to config the path of SDK in androidStudio with non ascii character? | <p>i'm installing this android studio SW and getting this error MSG:</p>
<pre><code>your SDK location contains non-ASCII character
</code></pre>
<p>my laptop's lang. is Hebrew.
may ichange manual the path of the SDK. </p>
<p><a href="https://i.stack.imgur.com/rRGmM.jpg" rel="nofollow noreferrer"><img src="https://i... | i'm installing this android studio SW and getting this error MSG: [CODE] my laptop's lang. is Hebrew. may ichange manual the path of the SDK. | windows|android-studio|sdk | 0 | 2020-02-11T13:07:32.320Z | 2,020 | 2 | 13 | 1 | 565 | 1 | 141 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
60,169,611 | Dynamically add choicechip on flutter | <p>I'm trying to add ChoiceChip/InputChip dynamically inside a Container.
I'm selecting the choices from a list and it's adding inside the container. But I'm getting horizontal overflow error while adding the choices. I've used Wrap widget but it's not working. I want to use wrap so that the next selected chip is on th... | I'm trying to add ChoiceChip/InputChip dynamically inside a Container. I'm selecting the choices from a list and it's adding inside the container. But I'm getting horizontal overflow error while adding the choices. I've used Wrap widget but it's not working. I want to use wrap so that the next selected chip is on the n... | android|ios|flutter|dart|flutter-layout | 0 | 2020-02-11T13:09:57.870Z | 2,020 | 2 | 13 | 1 | 1,560 | 1 | 470 | 37 | 5 | 3 | true | false | false | false | false | false | zero |
60,169,698 | How to select all items listed in Recyclerview using androidx.recyclerview.selection? | <p>I am using <code>androidx.recyclerview.selection</code> for selecting items in a <code>RecyclerView</code>.
I am trying to build an edit fragment in which it pre-populates the old views in the <code>RecyclerView</code>. At present, I was able to load the old values from API call and update the adapter's list by <cod... | I am using androidx.recyclerview.selection for selecting items in a RecyclerView . I am trying to build an edit fragment in which it pre-populates the old views in the RecyclerView . At present, I was able to load the old values from API call and update the adapter's list by notifyDataSetChanged call. But I want all th... | java|android|android-recyclerview|android-jetpack | 1 | 2020-02-11T13:14:10.613Z | 2,020 | 2 | 13 | 1 | 469 | 3 | 664 | 85 | 4 | 0 | false | false | false | false | false | false | low |
60,169,774 | How to convert a linear layout to constraint layout? | <p>I have developed an app and I used a linear layout in every activity.Layouts of every activity look exactly the same like the one I designed in android studio when I run it on my phone (Nokia 5.1 plus). But when I run the app on another small phone like Samsung J1 layout is messed up.Some buttons,images are out of t... | I have developed an app and I used a linear layout in every activity.Layouts of every activity look exactly the same like the one I designed in android studio when I run it on my phone (Nokia 5.1 plus). But when I run the app on another small phone like Samsung J1 layout is messed up.Some buttons,images are out of the ... | java|android|android-constraintlayout | 1 | 2020-02-11T13:17:53.537Z | 2,020 | 2 | 13 | 1 | 610 | 2 | 834 | 52 | 3 | 1 | true | false | false | false | false | false | low |
60,169,794 | Calling a method with multiple arguments in AAR from within Unity3D C# script | <p>I've got a class with the following method:</p>
<pre><code>public static int add( int a, int b ){
return a + b;
}
</code></pre>
<p>and I'm trying to call it from Unity Script with </p>
<pre><code>var ajc = new AndroidJavaClass( "com.mil.rfcommunitylib.BluetoothClassic" );
int result = ajc.CallStatic<int,in... | I've got a class with the following method: [CODE] and I'm trying to call it from Unity Script with [CODE] but I get AndroidJavaException: java.lang.NoSuchMethodError at my logcat. What's wrong? Works with methods without arguments, so we can assume I set up everything correctly. | java|android|unity3d|aar | 1 | 2020-02-11T13:18:38.950Z | 2,020 | 2 | 13 | 1 | 779 | 1 | 280 | 77 | 4 | 2 | true | false | false | false | false | false | low |
60,169,798 | Disable SwipeRefreshLayout when horizintal scroll handled in two-way Recyclerview | <p>I have a RecyclerView with custom LayoutManager, that has two-way scrolling logic. So, I have overrided it's methods:</p>
<pre><code>override fun canScrollVertically(): Boolean = true
override fun canScrollHorizontally(): Boolean = true
</code></pre>
<p>Then i put RecyclerView in custom SwipeRefreshLayout, <strong... | I have a RecyclerView with custom LayoutManager, that has two-way scrolling logic. So, I have overrided it's methods: [CODE] Then i put RecyclerView in custom SwipeRefreshLayout, to prevent "swipe to refresh" action when user scrolls my list horizontally : [CODE] But this solution doesn't work. Tryed this solution (dis... | java|android|kotlin|android-recyclerview|swiperefreshlayout | 0 | 2020-02-11T13:18:44.007Z | 2,020 | 2 | 13 | 1 | 719 | 1 | 591 | 81 | 5 | 4 | true | false | false | false | false | false | zero |
60,169,847 | I can't send the api request using retrofit android or geeting any response from the APi | <p>I faced this error at first <code>java.lang.BootstrapMethodError: Exception from call site #4</code> </p>
<p>Then I solved it by adding </p>
<pre><code>compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
</code></pre>
<p>I resolved that error but unf... | I faced this error at first java.lang.BootstrapMethodError: Exception from call site #4 Then I solved it by adding [CODE] I resolved that error but unfortunately, I cant send the API request or get any response on my android app. Can anyone tell me what I am missing? Here is a piece of code that sends the request [CODE... | android|retrofit|retrofit2 | 0 | 2020-02-11T13:21:28.510Z | 2,020 | 2 | 13 | 1 | 82 | 0 | 321 | 88 | 3 | 2 | true | true | false | false | false | false | zero |
60,169,897 | Azure B2C Password Reset policy in Android | <p>I am not getting right way to implement/handle call backs on forgot password policy for Azure B2C.</p>
<p>I have already created json file in raw folder and also added the same schema and data values in manifest.xml</p>
<p>And also when I got error code AADB2C90118 I am handling following code,</p>
<p>var sampleA... | I am not getting right way to implement/handle call backs on forgot password policy for Azure B2C. I have already created json file in raw folder and also added the same schema and data values in manifest.xml And also when I got error code AADB2C90118 I am handling following code, var sampleApp = PublicClientApplicatio... | android|kotlin|forgot-password | 0 | 2020-02-11T13:24:23.823Z | 2,020 | 2 | 13 | 1 | 68 | 0 | 459 | 42 | 3 | 0 | false | true | false | false | false | false | zero |
60,170,144 | How to get the host address when a device is the Group Owner(GO) on a WiFiDirect connection? | <p>I am using WiFiDirect to connect my android device to another device using WiFiDirect.</p>
<p>I have the following method to get the host IP address which works great when device is not the group owner.</p>
<pre><code>public String getDestinationDeviceIpAddress(WifiP2pInfo wifiP2pInfo) {
String destinationAddr... | I am using WiFiDirect to connect my android device to another device using WiFiDirect. I have the following method to get the host IP address which works great when device is not the group owner. [CODE] Question: How do I get the peer's address for the case where wifiP2pInfo.isGroupOwner is true? In other words, how to... | android|wifi-direct|wifimanager|wifip2p | 2 | 2020-02-11T13:38:48.760Z | 2,020 | 2 | 13 | 1 | 188 | 0 | 455 | 92 | 4 | 1 | true | true | false | false | false | false | low |
60,170,177 | how to stop Timer.periodic that started inside initState when leaving the page flutter | <p>I'm running 2 timers in my <code>initState</code> function, here is the code: </p>
<pre class="lang-dart prettyprint-override"><code> @override
void initState() {
readingSavedData();
_timeString = _formatDateTime(DateTime.now());
Timer.periodic(Duration(seconds: 1), (Timer t) => _getTime());
T... | I'm running 2 timers in my initState function, here is the code: [CODE] as this _getTime() functions are running setState() every 1 second on a Text widget that shows a timer. The problem that it never stops when I leave the page using Navigator .. it keeps running and popping this error in the console : [CODE] as it c... | android|ios|flutter|dart | 4 | 2020-02-11T13:40:45.807Z | 2,020 | 2 | 13 | 1 | 4,341 | 1 | 403 | 86 | 4 | 2 | true | false | true | false | false | false | low |
60,170,225 | Weird behaviour using MaterialComponents and BottomNavigationView. Android | <p>I am using BottomNavigationView from material design library and everything seems to be ok.</p>
<p><a href="https://i.stack.imgur.com/s4ELJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s4ELJ.jpg" alt="enter image description here"></a></p>
<p>I need to use new <a href="https://github.com/mate... | I am using BottomNavigationView from material design library and everything seems to be ok. I need to use new badges so I have upgrade it to version 'com.google.android.material:material:1.1.0' But I don't know why changing the version draws like an inverse triangle inside my bottomNavigationView. Its bit difficult to ... | android|material-design|android-bottomnavigationview | 0 | 2020-02-11T13:42:58.710Z | 2,020 | 2 | 13 | 1 | 73 | 1 | 490 | 74 | 3 | 1 | true | false | false | false | false | false | zero |
60,170,272 | How to create GIF file from layout(view)? | <p>I want to save GIF from view or layout in android. please help.</p>
<p>Right now in my app, i am save image from view by following code</p>
<pre><code>public Bitmap viewToBitmap(View view) {
Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new... | I want to save GIF from view or layout in android. please help. Right now in my app, i am save image from view by following code [CODE] so can i save gif image from layout or any other way to save my view as GIF? | android|gif | 0 | 2020-02-11T13:44:24.103Z | 2,020 | 2 | 13 | 1 | 75 | 0 | 212 | 41 | 2 | 1 | true | true | false | false | false | false | zero |
60,170,291 | androidx.navigation:navigation-fragment:2.2.0, get "You must call removeView() on the child's parent first." on navController.popBackStack() | <p>I like use data binding and navigation graph. But after update androidx dependencies from androidx.navigation:navigation-fragment:2.0.0 on 2.2.0 application is crashed after press button "Back". Crash always after return from other fragment to previous fragment containing FragmentPagerAdapter.</p>
<p>in <strong>bui... | I like use data binding and navigation graph. But after update androidx dependencies from androidx.navigation:navigation-fragment:2.0.0 on 2.2.0 application is crashed after press button "Back". Crash always after return from other fragment to previous fragment containing FragmentPagerAdapter. in build.gradle [CODE] Fo... | android-databinding|android-pageradapter|android-navigation-graph | 0 | 2020-02-11T13:45:37.773Z | 2,020 | 2 | 13 | 1 | 819 | 1 | 917 | 140 | 3 | 2 | true | false | false | false | false | false | zero |
60,170,335 | Xamarin.Forms Change the Orange ListView Backgroud-Color on tappping cell to white or transparent | <p>I cant find solution about this orange color? Do i need to write a renderer or can change from resources in Android and IOS?</p> | I cant find solution about this orange color? Do i need to write a renderer or can change from resources in Android and IOS? | xamarin.forms|xamarin.android|xamarin.ios | 0 | 2020-02-11T13:47:34.543Z | 2,020 | 2 | 13 | 1 | 112 | 1 | 124 | 97 | 3 | 0 | false | false | false | false | false | false | zero |
60,170,356 | Why doesn't room let me return Cursor from a DAO? | <p>Following code throws the error:</p>
<pre><code>e: error: Entities and Pojos must have a usable public constructor. You can have an empty constructor or a constructor whose parameters match the fields (by name and type). - android.database.Cursor
e: <path>.my_file.java:11: error: Not sure how to convert a Cur... | Following code throws the error: [CODE] Code: [CODE] Adding more information, the error went away when I removed suspend keyword. Am going ahead with this, but it would be great if someone knows why suspending dao methods of rooms are not able to return Cursor | android|android-room | 3 | 2020-02-11T13:48:41.853Z | 2,020 | 2 | 13 | 1 | 134 | 0 | 260 | 49 | 2 | 2 | true | true | false | false | false | false | low |
60,170,431 | How to remove the upper grey bar in this app? | <p><a href="https://i.stack.imgur.com/Yxys4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yxys4.png" alt="enter image description here"></a></p>
<p>Can anybody tell me how to remove that grey bar in app containing the app name..</p> | Can anybody tell me how to remove that grey bar in app containing the app name.. | android | 0 | 2020-02-11T13:52:14.763Z | 2,020 | 2 | 13 | 1 | 171 | 2 | 80 | 45 | 1 | 0 | false | false | false | false | false | false | zero |
60,170,532 | Dependency conflict issue : Here-SDK.aar and directions-api.aar files Dupicate Classes | <p>I am creating an android app which has an old dependency of 'directions-api.aar'(Here-Maps widget library) and now I need to add 'HERE-sdk.aar' for Map's implementation. </p>
<p>This is leading to an issue there are some classes which are common in both the 'aar' files. Thus android studio throws below exception:</... | I am creating an android app which has an old dependency of 'directions-api.aar'(Here-Maps widget library) and now I need to add 'HERE-sdk.aar' for Map's implementation. This is leading to an issue there are some classes which are common in both the 'aar' files. Thus android studio throws below exception: [CODE] I trie... | android|gradle|build.gradle|here-api|aar | 0 | 2020-02-11T13:57:44.243Z | 2,020 | 2 | 13 | 1 | 330 | 1 | 596 | 86 | 5 | 1 | true | false | false | false | false | false | zero |
60,170,667 | How to make UI Automator wait until TextView's text value changes | <p>I am currently doing some cross-app functional UI testing. </p>
<p>There is a TextView that exists and that I must test for its text value. I must thus find a way to wait for the TextView's text value to change. </p>
<p>Here is my usecase : </p>
<pre class="lang-java prettyprint-override"><code>final UiSelector c... | I am currently doing some cross-app functional UI testing. There is a TextView that exists and that I must test for its text value. I must thus find a way to wait for the TextView's text value to change. Here is my usecase : [CODE] I am well aware of the existence of Until.textContains(/*substring*/) but I do not know ... | android|android-uiautomator | 1 | 2020-02-11T14:05:23.507Z | 2,020 | 2 | 14 | 1 | 1,545 | 2 | 404 | 65 | 2 | 1 | true | false | false | false | false | false | low |
60,170,920 | Knowing all status of a Job with Kotlin coroutines | <p>Is it possible to know all the status of a coroutine Job ?</p>
<p>I find this function extension but I can't access to all the status of a <code>Job</code> :</p>
<pre><code>fun Job.status(): String = when {
isCancelled -> "cancelled"
isActive -> "Active"
isCompleted -> "Complete"
else ->... | Is it possible to know all the status of a coroutine Job ? I find this function extension but I can't access to all the status of a Job : [CODE] There is no isNew , isCancelling or isWaitingForChildren functions with the Job classe. Why ? | kotlin|coroutine|kotlin-coroutines|kotlin-android-extensions | 6 | 2020-02-11T14:18:02.817Z | 2,020 | 2 | 14 | 1 | 1,971 | 1 | 238 | 50 | 4 | 1 | true | false | false | false | false | false | medium |
60,171,124 | How to show parameters hints in Android Studio? | <p>Is there a shortcut to trigger the parameters hints in Android Studio as it shows in the following photo:</p>
<p><a href="https://i.stack.imgur.com/QtBHS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QtBHS.jpg" alt="enter image description here"></a></p> | Is there a shortcut to trigger the parameters hints in Android Studio as it shows in the following photo: | android-studio | 1 | 2020-02-11T14:27:54.423Z | 2,020 | 2 | 14 | 1 | 520 | 1 | 105 | 47 | 1 | 0 | false | false | false | false | false | false | low |
60,171,134 | Facing exception: org.openqa.selenium.NoSuchSessionException: A session is either terminated or not started site:stackoverflow.com | <p>I'm executes automation with model of Keyword Framework on Mobile using selenium + TestNG + Appium - on Emulator device in my MAC OS (eclipse IDE),</p>
<p>using the following version via <strong>.pom</strong> file:</p>
<pre><code> <dependency>
<groupId>io.appium</groupId>
<a... | I'm executes automation with model of Keyword Framework on Mobile using selenium + TestNG + Appium - on Emulator device in my MAC OS (eclipse IDE), using the following version via .pom file: [CODE] most of the action function well but I have Keyword that taking around 115 seconds to perform the action repeated 9 times ... | java|selenium|appium|appium-android | 0 | 2020-02-11T14:28:16.807Z | 2,020 | 2 | 14 | 1 | 361 | 1 | 1,215 | 130 | 4 | 2 | true | false | false | false | false | false | zero |
60,171,180 | ionic background geolocation stop working | <p>whit this code i can get gps data and retrive address all works fine in background, for some minuts, after 20 minuts about,the app semms stop do what i aspect.
i tryed battery concession and other possible things, ive tryed backgroud service.
But nothing seems to wor for get position in background, after lomg time.
... | whit this code i can get gps data and retrive address all works fine in background, for some minuts, after 20 minuts about,the app semms stop do what i aspect. i tryed battery concession and other possible things, ive tryed backgroud service. But nothing seems to wor for get position in background, after lomg time. Any... | ionic-framework|ionic4|tracking|android-gps | 0 | 2020-02-11T14:30:26.673Z | 2,020 | 2 | 14 | 1 | 1,070 | 1 | 339 | 41 | 4 | 1 | true | false | false | false | false | false | zero |
60,171,188 | Emulate "su root" command to fix Permission Denied error | <p>I am developing a program for Android in Delphi.</p>
<p>In a terminal, I tested the next commands:</p>
<pre><code>su root
echo 1 > /sys/class/port/export
echo 1 > /sys/class/port/port1/value
</code></pre>
<p>It works without problem.</p>
<p>In Delphi, I created the next code and added my program to Andro... | I am developing a program for Android in Delphi. In a terminal, I tested the next commands: [CODE] It works without problem. In Delphi, I created the next code and added my program to Android as a root program. [CODE] After run, I received an error: Permision Denied How to emulate the su root command before calling Wri... | android|delphi | 3 | 2020-02-11T14:30:52.440Z | 2,020 | 2 | 14 | 1 | 140 | 0 | 331 | 56 | 2 | 2 | true | true | false | false | false | false | low |
60,171,192 | How to pause video player in viewpager | <p>I have viewPager with 3 pages , in one of these pages I have video player. I'm facing a problem that I video player keeps working on all pages. How can i pause video player will changing page ?</p>
<p>Adapter:</p>
<pre><code>public class HomeTabsAdapter extends FragmentStatePagerAdapter {
MainActivity activit... | I have viewPager with 3 pages , in one of these pages I have video player. I'm facing a problem that I video player keeps working on all pages. How can i pause video player will changing page ? Adapter: [CODE] | android|android-viewpager | 0 | 2020-02-11T14:31:03.013Z | 2,020 | 2 | 14 | 1 | 372 | 2 | 209 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
60,171,582 | Javamail Body does not appear when together with attachment | <p>So I have the problem with the Javamail where if I send an attachment in the mail the body disappears. When I don't send an attachment with the mail i can just see the body.</p>
<p>My GMailSender.java:</p>
<pre><code>public GMailSender(String user, String password) {
this.user = user;
this.password... | So I have the problem with the Javamail where if I send an attachment in the mail the body disappears. When I don't send an attachment with the mail i can just see the body. My GMailSender.java: [CODE] My MainActivity.java [CODE] So how can i add an attachment while still being able to see the body itself? Thanks in ad... | java|android-studio|jakarta-mail | 0 | 2020-02-11T14:51:19.483Z | 2,020 | 2 | 14 | 1 | 88 | 1 | 326 | 59 | 3 | 2 | true | false | false | false | false | false | zero |
60,171,594 | RecyclerView click listener not triggered on row click | <p><strong>Edit</strong>
It seems like my @Override for onMentorClick(Mentor mentor) is never being accessed. </p>
<p>I have a recycler view that shows a list of people.
I need to be able to click on one of the people in the list and have a new activity open. </p>
<p>in my adapter, I have the following code:</p>
<p... | Edit It seems like my @Override for onMentorClick(Mentor mentor) is never being accessed. I have a recycler view that shows a list of people. I need to be able to click on one of the people in the list and have a new activity open. in my adapter, I have the following code: [CODE] in my activity, I have the following co... | java|android|onclicklistener | 1 | 2020-02-11T14:51:51.230Z | 2,020 | 2 | 14 | 1 | 71 | 3 | 1,081 | 54 | 3 | 5 | true | false | false | false | false | false | low |
60,171,708 | How to pass the item indexes in Observable.fromIterable to onNext in subscribe method? | <p>I am trying to load the data and put it into a SparseArray using RxJava2. I get the data by calling an URL from an array, but I need the response parsed and inserted into the SparseArray with the order of the URL's in the array, so I need to pass the index of the String item in <code>mUrls.getGroups()</code></p>
<p... | I am trying to load the data and put it into a SparseArray using RxJava2. I get the data by calling an URL from an array, but I need the response parsed and inserted into the SparseArray with the order of the URL's in the array, so I need to pass the index of the String item in mUrls.getGroups() Thanks in advance! [COD... | java|android|retrofit2|reactive-programming|rx-java2 | 0 | 2020-02-11T14:57:49.440Z | 2,020 | 2 | 14 | 1 | 238 | 1 | 368 | 86 | 5 | 2 | true | false | false | false | false | false | zero |
60,171,732 | Android: Get the list of languages my application is localized | <p>My application is localized in 23 languages. I want to get this list programmatically without hard coding it again.</p>
<p>eg: en, ar, es, he, iw, de, da </p>
<p>Any suggestions will be really appreciated.</p>
<p>Thanks!</p> | My application is localized in 23 languages. I want to get this list programmatically without hard coding it again. eg: en, ar, es, he, iw, de, da Any suggestions will be really appreciated. Thanks! | android|locale | 0 | 2020-02-11T14:58:29.587Z | 2,020 | 2 | 14 | 1 | 34 | 0 | 198 | 62 | 2 | 0 | false | true | false | false | false | false | zero |
60,171,806 | APK or bundles does not contain 64 bit native code | <p>When I about to publish a game on play store console, I got an error stating that<a href="https://i.stack.imgur.com/zEiI1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zEiI1.jpg" alt="erron on play console"></a>. </p>
<p>My project built by a third-party app builder that uses native libraries(c... | When I about to publish a game on play store console, I got an error stating that . My project built by a third-party app builder that uses native libraries(cocos2dx).I tried to solve the issue as per google developers but, could not solve the issue. When I analyze the APK on Android studio, I got like this Help me to ... | android-studio|apk|64-bit|cocos2d-x|bundles | 0 | 2020-02-11T15:02:15.653Z | 2,020 | 2 | 15 | 1 | 271 | 2 | 335 | 50 | 5 | 0 | false | false | false | false | false | false | zero |
60,171,812 | Simulate Group SMS on Emulated Android Device | <p>I would like to be able to simulate group SMS threads on my emulated device.</p>
<p>I know you can send an SMS to the device via the extended controls like so:
<a href="https://i.stack.imgur.com/niNya.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/niNya.png" alt="Send SMS to device from Number">... | I would like to be able to simulate group SMS threads on my emulated device. I know you can send an SMS to the device via the extended controls like so: But this message comes from only the entered number and is not able to send to a group. I have also learned you can have two emulated devices open at the same time and... | android|avd | 2 | 2020-02-11T15:02:27.823Z | 2,020 | 2 | 15 | 1 | 46 | 0 | 692 | 45 | 2 | 0 | false | true | false | false | false | false | low |
60,171,822 | error: cannot find symbol class ActivityMainBindingImpl | <p>I am learning about Data binding, I tried 3 times now, and I did exactly as the tutorial but I keep getting the error <strong>"error: cannot find symbol class ActivityMainBindingImpl"</strong> when I run the app,</p>
<p>It generates a java file with the <code>ActivityMainBindingImpl</code>, should be any problem in... | I am learning about Data binding, I tried 3 times now, and I did exactly as the tutorial but I keep getting the error "error: cannot find symbol class ActivityMainBindingImpl" when I run the app, It generates a java file with the ActivityMainBindingImpl , should be any problem in my SDK? Main : [CODE] Model : [CODE] XM... | android|android-databinding|android-jetpack | 0 | 2020-02-11T15:02:52.217Z | 2,020 | 2 | 15 | 1 | 2,166 | 1 | 408 | 55 | 3 | 4 | true | false | false | false | false | false | zero |
60,171,827 | Android ExoPlayer Play Private Vimeo Videos | <p>I'm trying to play Vimeo video using <a href="https://github.com/google/ExoPlayer" rel="nofollow noreferrer">ExoPlayer</a> and here is the code:</p>
<pre><code>val dataSourceFactory = DefaultDataSourceFactory(requireContext(),
getUserAgent(requireContext(), requireContext().getString(R.string.app_na... | I'm trying to play Vimeo video using ExoPlayer and here is the code: [CODE] This throw the following exception: [CODE] Also I tried to extract the Vimeo url using AndroidVimeoExtractor and it fails with the following exception: [CODE] Here is the code: [CODE] And here is a sample of Vimeo video link: http://player.vime... | android|video-streaming|uri|vimeo|exoplayer | 4 | 2020-02-11T15:02:59.073Z | 2,020 | 2 | 15 | 1 | 2,822 | 2 | 637 | 43 | 5 | 4 | true | false | true | false | false | false | low |
60,171,884 | React Native gradlew bundleRelease and run-android --variant=release make different APKs | <p>I'm trying to release a React Native (v0.61.5) app on the Google Play Store but the App Bundle format doesn't create the correct APK (tried on a OnePlus 6t, Xiaomi Redmi Note 7 and the Android emulator Pixel 3 API 29 (Google APIs) x86_64)</p>
<p>I do have Android flavors setup as follows:</p>
<pre><code>flavorDime... | I'm trying to release a React Native (v0.61.5) app on the Google Play Store but the App Bundle format doesn't create the correct APK (tried on a OnePlus 6t, Xiaomi Redmi Note 7 and the Android emulator Pixel 3 API 29 (Google APIs) x86_64) I do have Android flavors setup as follows: [CODE] When I launch the app with run... | android|react-native|android-studio|gradle|google-play | 3 | 2020-02-11T15:06:18.953Z | 2,020 | 2 | 15 | 1 | 2,119 | 0 | 1,202 | 88 | 5 | 10 | true | true | false | false | false | false | low |
60,171,915 | Exoplayer set mediaSource using ContentResolver#openFileDescriptor(Uri, String) , instead of Uri.parse(MediaStore.Audio.Media.DATA) | <p>How to pass uri to mediaSource in Android Q since <code>MediaStore.Audio.Media.DATA</code> is deprecated</p>
<p>Earlier (Below Api 29 / Android 10/ Q) This is what i was using</p>
<p><code>mediaSource = new ProgressiveMediaSource. Factory(dataSourceFactory).createMediaSource(Uri.parse(SongsForQueue.get(i)._path));... | How to pass uri to mediaSource in Android Q since MediaStore.Audio.Media.DATA is deprecated Earlier (Below Api 29 / Android 10/ Q) This is what i was using mediaSource = new ProgressiveMediaSource. Factory(dataSourceFactory).createMediaSource(Uri.parse(SongsForQueue.get(i)._path)); simpleExoPlayer.prepare(mediaSource);... | android|exoplayer | 0 | 2020-02-11T15:07:56.867Z | 2,020 | 2 | 15 | 1 | 945 | 1 | 686 | 131 | 2 | 0 | false | false | false | false | false | false | zero |
60,171,952 | START/STOP MEDIAPLAYER android studio | <p>Play / stop button - how to make music play back from the beginning? Stop function not pause function
``</p>
<pre><code> audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
b_play = (Button) findViewById(R.id.b_play);
b_play.setEnabled(false);
b_play.setText("Loading");
mediaPlayer ... | Play / stop button - how to make music play back from the beginning? Stop function not pause function `` [CODE] Thank you for your help | java|android|android-mediaplayer | 0 | 2020-02-11T15:09:42.090Z | 2,020 | 2 | 15 | 1 | 61 | 1 | 135 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
60,172,096 | In Fragment, GoogleMap, The setMyLocationEnabled (true) button is displayed only after I restart the application | <p>After the first inclusion, the application requests permission to detect the location and the <strong>setMyLocationEnabled (true)</strong> button is not displayed on map. </p>
<p>The <strong>setMyLocationEnabled (true)</strong> button is displayed only after I restart the application or switch to another fragment, ... | After the first inclusion, the application requests permission to detect the location and the setMyLocationEnabled (true) button is not displayed on map. The setMyLocationEnabled (true) button is displayed only after I restart the application or switch to another fragment, then return to the map again. Could it be that... | android | 0 | 2020-02-11T15:16:50.393Z | 2,020 | 2 | 15 | 1 | 35 | 0 | 457 | 112 | 1 | 1 | true | true | false | false | false | false | zero |
60,172,206 | Android Navigation Components with BottomNavigationView and SplashScreenFragment as startDestination | <p>Currently I'm trying to implement app where on startup is SplashScreenFragment and after several seconds I switch to screen with <code>BottomNavigationView</code></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http... | Currently I'm trying to implement app where on startup is SplashScreenFragment and after several seconds I switch to screen with BottomNavigationView [CODE] Then I define bottom_nav_menu.xml as follows: [CODE] Version of navigation components: [CODE] Now after calling bottomNavigationView.setupWithNavController(findNav... | android|bottomnavigationview|android-architecture-navigation|android-navigation-graph | 0 | 2020-02-11T15:22:43.717Z | 2,020 | 2 | 15 | 1 | 584 | 0 | 1,087 | 100 | 4 | 3 | true | true | false | false | false | false | zero |
60,172,276 | Keeping specific activity on top of a backstack | <p>In our app we use an activity C from a library which always should be on the top of a back stack (or should always be visible in case if being on top is impossible). </p>
<p>For example we have an activity A where some asynchronous job is in progress. At some moment the activity C is launched so the backstack looks... | In our app we use an activity C from a library which always should be on the top of a back stack (or should always be visible in case if being on top is impossible). For example we have an activity A where some asynchronous job is in progress. At some moment the activity C is launched so the backstack looks like this: ... | android|android-activity | 0 | 2020-02-11T15:26:03.713Z | 2,020 | 2 | 15 | 1 | 34 | 1 | 813 | 47 | 2 | 0 | false | false | false | false | false | false | zero |
60,172,307 | Iterate quantity for items , custom adapter | <p>I have a listview where every items have one TextView and 2 Buttons ( + and - ). I want to iterate the quantity from TextView when I press the + Button. After this, I need to sum up all items (price * item quantity) for every item from the list and put the result into new TextView(total cost). That is my adapter and... | I have a listview where every items have one TextView and 2 Buttons ( + and - ). I want to iterate the quantity from TextView when I press the + Button. After this, I need to sum up all items (price * item quantity) for every item from the list and put the result into new TextView(total cost). That is my adapter and ac... | android|android-listview|android-adapter | 0 | 2020-02-11T15:28:11.473Z | 2,020 | 2 | 15 | 1 | 48 | 1 | 362 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
60,172,346 | Problem with Firebase database rule ("Read" denied; Values get deleted automatically) | <p>This is my database rule :</p>
<pre><code>{
"rules": {
"Users' Input History": {
"$uid": {
".read": "auth.uid == $uid",
".write": "auth.uid == $uid"
}
},
"Users' Vocabulary List": {
"$uid": {
".read": "auth.uid == $uid",
".write": "auth.uid == $uid"... | This is my database rule : [CODE] As you can see I am trying to grant read and write access to those with an authenticated uid (user). Each user can only see his own created values under the "$uid" node, and cannot see values submitted by other users. However, upon simulation, an error came up saying: "Read" is denied.... | android|authentication|firebase-realtime-database|firebase-security|rules | 0 | 2020-02-11T15:30:00.613Z | 2,020 | 2 | 15 | 1 | 156 | 1 | 1,422 | 85 | 5 | 5 | true | false | false | false | false | false | zero |
60,172,421 | Data not getting displayed in RecyclerView. onCreateViewHolder and onBindViewHolder not getting executed | <p>I believe that the onCreateViewHolder and OnBindViewHolder is not getting run to populate the data. </p>
<p>The null pointer exception is on line 21 of the following code in the CheckInRecentList.java. When debugging, the allCheckIn.size() has 4 entries in it. </p>
<p>The line... checkInLastDateTime.setText(allCh... | I believe that the onCreateViewHolder and OnBindViewHolder is not getting run to populate the data. The null pointer exception is on line 21 of the following code in the CheckInRecentList.java. When debugging, the allCheckIn.size() has 4 entries in it. The line... checkInLastDateTime.setText(allCheckIn.get(0).getCheckI... | java|android|android-fragments|android-recyclerview | 0 | 2020-02-11T15:34:21.910Z | 2,020 | 2 | 15 | 1 | 67 | 1 | 601 | 104 | 4 | 6 | true | false | false | false | false | false | zero |
60,172,467 | how to make image view with three corner and shadow | <p><a href="https://i.stack.imgur.com/c90CP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c90CP.png" alt="image"></a></p>
<p>How to make an image with only three corners like this
I tried using frame layout the insert image view and make it's resource with original image
the add another image view with sr... | How to make an image with only three corners like this I tried using frame layout the insert image view and make it's resource with original image the add another image view with src of border that has 3 corner bu it doesn't work | android|xml|imageview|material-components-android | 7 | 2020-02-11T15:37:17.983Z | 2,020 | 2 | 15 | 1 | 2,395 | 3 | 229 | 51 | 4 | 0 | false | false | false | false | false | false | medium |
60,172,733 | Why does thread changed to Main thread in callback? | <p>I am developing an android app using the Kotlin and RxJava.</p>
<p>I developed In-App billing using the android latest API.</p>
<p>But the library only support async callback.</p>
<p>So I make a code like:</p>
<pre><code>private fun consumePlayStore(consumeParams: ConsumeParams, secKey: String, purchase: Purchas... | I am developing an android app using the Kotlin and RxJava. I developed In-App billing using the android latest API. But the library only support async callback. So I make a code like: [CODE] I don't know why the thread is changed in the callback? Somebody tell me why? And how can I solve this problem??? or better desi... | android|kotlin|rx-java | 0 | 2020-02-11T15:50:26.677Z | 2,020 | 2 | 15 | 1 | 366 | 1 | 325 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
60,172,777 | How to detect BOOT_COMPLETED in andorid 9 and above in Oneplus and Xiaomi devices and other chinese roms (api level 28+) | <p>I have been trying to launch my app after boot completed, but somehow it works on virtual devices but not working on real devices. It is working on from till android 8 but not from android 9 in devices like Xiaomi, Oneplus and Realme. I have read the documents, it was stated that developers can still use receive_boo... | I have been trying to launch my app after boot completed, but somehow it works on virtual devices but not working on real devices. It is working on from till android 8 but not from android 9 in devices like Xiaomi, Oneplus and Realme. I have read the documents, it was stated that developers can still use receive_boot_c... | java|android|broadcastreceiver|android-manifest|bootcompleted | 1 | 2020-02-11T15:52:35.143Z | 2,020 | 2 | 15 | 1 | 748 | 0 | 441 | 120 | 5 | 2 | true | true | false | false | false | false | low |
60,172,897 | Can't access local files in data/data of some phones | <p>I'm having three not rooted phones here. Two of them have Android 10 and one has Android 8.0. On one with Android 10 I just cant access the app files in /data/data directory with the Device File Explorer in Android Studio.
The error I get is:</p>
<p>`run-as: /data has wrong owner: 0/1000, not 1000´</p>
<p>I'm just... | I'm having three not rooted phones here. Two of them have Android 10 and one has Android 8.0. On one with Android 10 I just cant access the app files in /data/data directory with the Device File Explorer in Android Studio. The error I get is: `run-as: /data has wrong owner: 0/1000, not 1000´ I'm just not finding anythi... | android|android-studio|flutter|adb | 6 | 2020-02-11T15:59:27.197Z | 2,020 | 2 | 15 | 1 | 1,593 | 2 | 342 | 52 | 4 | 0 | false | false | false | false | false | false | medium |
60,172,972 | get reference of MainActivity in Application | <p>I have <code>Application</code> class <code>VTS</code> and <code>MainActivity</code>. I need to get reference of <code>MainActivity</code> in <code>Application</code> <code>VTS</code> class and call <code>MainActivity's</code> method <code>show(String t)</code>. How to get this reference to <code>aaa</code> variabl... | I have Application class VTS and MainActivity . I need to get reference of MainActivity in Application VTS class and call MainActivity's method show(String t) . How to get this reference to aaa variable? [CODE] | android | 0 | 2020-02-11T16:03:41.953Z | 2,020 | 2 | 16 | 1 | 76 | 1 | 210 | 44 | 1 | 1 | true | false | false | false | false | false | zero |
60,173,017 | How to change fond weight to bold in a tab of Android tabLayout? | <p>I use a tabLayout and wanna change the font weight of the selected tab. I just find the configuration of the indikator, selected font and background color, but not the font weight to bold. </p> | I use a tabLayout and wanna change the font weight of the selected tab. I just find the configuration of the indikator, selected font and background color, but not the font weight to bold. | android|kotlin|android-tablayout | 0 | 2020-02-11T16:06:30.340Z | 2,020 | 2 | 16 | 1 | 530 | 1 | 188 | 64 | 3 | 0 | false | false | false | false | false | false | zero |
60,173,028 | CardView.setRadius() is not working when assigned programmatically | <p>So in my program, I want to generate CardViews dynamically on a predefined Layout that I intend to place inside a LinearLayout with horizontal orientation, which is inside a horizontal ScrollView. Everything in the code works fine except:</p>
<pre><code>cv.setRadius(Tools.convertDpToPx(context,5));
</code></pre>
<... | So in my program, I want to generate CardViews dynamically on a predefined Layout that I intend to place inside a LinearLayout with horizontal orientation, which is inside a horizontal ScrollView. Everything in the code works fine except: [CODE] [cv is a CardView Object] [Tools.convertDpToPx(context,float) resides in T... | java|android | 4 | 2020-02-11T16:07:19.783Z | 2,020 | 2 | 16 | 1 | 778 | 1 | 570 | 66 | 2 | 2 | true | false | false | false | false | false | low |
60,173,043 | Is there a method to listen and detect installation and uninstallations? | <p>I'm trying to build a launcher in Android Studio and I am using a RecyclerView </p>
<p>You know, when an app is installed, it is automatically added to the launcher menu. Similarly, when an app is removed, it is removed from the view. </p>
<p>Which method should be used to make this happen? Now, list is updated ev... | I'm trying to build a launcher in Android Studio and I am using a RecyclerView You know, when an app is installed, it is automatically added to the launcher menu. Similarly, when an app is removed, it is removed from the view. Which method should be used to make this happen? Now, list is updated every time the view is ... | java|android|android-recyclerview|android-launcher | 0 | 2020-02-11T16:08:01.823Z | 2,020 | 2 | 16 | 1 | 40 | 1 | 335 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
60,173,227 | (Navigation component) How to display back arrow on the activity when back to the home fragment? | <p>I have to fragments discount fragment and edit service fragment displayed on Edit Service activity.
the back arrow displayed on discount fragment when i back to edit service fragment the arrow disappear i want to display it to navigate the previous activity from edit service activity.</p>
<p>activity layout
......... | I have to fragments discount fragment and edit service fragment displayed on Edit Service activity. the back arrow displayed on discount fragment when i back to edit service fragment the arrow disappear i want to display it to navigate the previous activity from edit service activity. activity layout ..................... | android|android-jetpack | 6 | 2020-02-11T16:18:12.957Z | 2,020 | 2 | 16 | 1 | 1,776 | 1 | 508 | 96 | 2 | 3 | true | false | false | false | false | false | medium |
60,173,235 | Lost my code, is it possible to find a way to recover it back? | <p>I made my final degree's job an app using Android Studio.
My computer has been stolen and all my work is lost, but i have the app-debug.apk in the last final version (at least i had done the backup of this).</p>
<p>So, my question is:
Is anyway to find my main code using the app-debug?</p>
<p>Thank you!</p> | I made my final degree's job an app using Android Studio. My computer has been stolen and all my work is lost, but i have the app-debug.apk in the last final version (at least i had done the backup of this). So, my question is: Is anyway to find my main code using the app-debug? Thank you! | android|performance|android-studio|android-layout|cell | 0 | 2020-02-11T16:18:33.163Z | 2,020 | 2 | 16 | 1 | 103 | 1 | 290 | 62 | 5 | 0 | false | false | false | false | false | false | zero |
60,173,478 | App Bundle build failure: reserved file or directory error | <p>I can't build my AAB because both in Unity and in Android Studio (when exporting the project) it fails with this error: </p>
<blockquote>
<p>file 'root/res/drawable-xhdpi/ic_launcher.png' uses reserved file or directory name 'res'.</p>
</blockquote>
<p>I searched up a lot and I can't find a valid solution to thi... | I can't build my AAB because both in Unity and in Android Studio (when exporting the project) it fails with this error: file 'root/res/drawable-xhdpi/ic_launcher.png' uses reserved file or directory name 'res'. I searched up a lot and I can't find a valid solution to this issue, and I can't think of a way to avoid it s... | android|unity3d|android-build | 1 | 2020-02-11T16:32:10.863Z | 2,020 | 2 | 16 | 1 | 131 | 0 | 429 | 58 | 3 | 0 | false | true | false | false | false | false | low |
60,173,490 | App Forces Close . SMS Broadcast Receiver | <p>I'm new to Android Studio. when i run this on a single activity it runs okay but when i have a multiple activities it forces to close.</p>
<p><strong>The error</strong></p>
<pre>
<em> 02-12 00:18:42.578 5092-5092/com.example.driveassist E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.driveassi... | I'm new to Android Studio. when i run this on a single activity it runs okay but when i have a multiple activities it forces to close. The error [CODE] my activity codes are [CODE] | java|android|broadcastreceiver | 0 | 2020-02-11T16:32:42.537Z | 2,020 | 2 | 16 | 1 | 118 | 1 | 180 | 41 | 3 | 2 | true | false | false | false | false | false | zero |
60,173,577 | meaningful errors from HttpURLConnection | <p>I use the following code to post a HTTP GET and retrieve a response:</p>
<pre><code>boolean download(String url)
{
try
{
java.net.URL connectURL = new URL(url);
HttpURLConnection conn = (HttpURLConnection)connectURL.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.s... | I use the following code to post a HTTP GET and retrieve a response: [CODE] It's all working nicely, except the error cases. If, for example, I switch off access to Internet on the device this code runs on and try [CODE] then the exception ( mReceiver.exception(e.getMessage()) above ) that my user sees is [CODE] which ... | java|android|http | 0 | 2020-02-11T16:37:43.450Z | 2,020 | 2 | 16 | 1 | 22 | 1 | 632 | 40 | 3 | 3 | true | false | false | false | false | false | zero |
60,173,632 | Firebase setCurrentScreen duplicates log entries screen_view | <p>I need to display statistics on open screens in firebase (as before in analytics.google)<br></p>
<p>And I need to display not real class names like MainActivity, but for example ScreenSeviceList<br></p>
<p>I created a test project consisting of 4 Activity and 3 Fragment(in MainActivity4)</p>
<pre><code>class App ... | I need to display statistics on open screens in firebase (as before in analytics.google) And I need to display not real class names like MainActivity, but for example ScreenSeviceList I created a test project consisting of 4 Activity and 3 Fragment(in MainActivity4) [CODE] } all Activity contain approximately the same ... | android|firebase|firebase-analytics | 0 | 2020-02-11T16:41:04.207Z | 2,020 | 2 | 16 | 1 | 1,441 | 1 | 898 | 60 | 3 | 3 | true | false | false | false | false | false | zero |
60,173,695 | "windowTitleBackgroundStyle" Doesn't Work on AlertDialog Title | <p><strong>My Style</strong></p>
<pre><code><style name="myAlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="android:windowTitleBackgroundStyle">@color/colorPrimary</item>
</style>
</code></pre>
<hr>
<p><strong>My AlertDialog</strong></p>
<pre><code>AlertDialog.Builde... | My Style [CODE] My AlertDialog [CODE] My custom style has completely no effect. Any help? | java|android|android-alertdialog|android-dialog | 2 | 2020-02-11T16:44:53.357Z | 2,020 | 2 | 16 | 1 | 303 | 1 | 89 | 62 | 4 | 2 | true | false | false | false | false | false | low |
60,173,762 | Can I "force" the Android Simulator to always use the same port? | <p>I am trying to do NativeScript development on an Azure virtual box. The installation of the NativeScript development environment has been completed successfully, as I do not have any issues when I am running the</p>
<pre><code>>tns doctor
</code></pre>
<p>command:</p>
<p><a href="https://i.stack.imgur.com/NlyN... | I am trying to do NativeScript development on an Azure virtual box. The installation of the NativeScript development environment has been completed successfully, as I do not have any issues when I am running the [CODE] command: Once I try to run my application: [CODE] I see that it is successfully installed on the devi... | android|android-studio|android-emulator|nativescript | 2 | 2020-02-11T16:49:06.057Z | 2,020 | 2 | 16 | 1 | 257 | 0 | 1,607 | 64 | 4 | 3 | true | true | false | false | false | false | low |
60,173,827 | Attempt to invoke virtual method on a null object reference while starting an Intent | <p>First of all i know that there are tons of those questions already but believe me i searched and haven't found anything that would solve my problem</p>
<p>Situation looks like this. I try to start new intent in recyclerView adapter in onClick method and app crashes on startActivity with (second method from the bott... | First of all i know that there are tons of those questions already but believe me i searched and haven't found anything that would solve my problem Situation looks like this. I try to start new intent in recyclerView adapter in onClick method and app crashes on startActivity with (second method from the bottom) [CODE] ... | android|android-studio|nullreferenceexception | 0 | 2020-02-11T16:52:50.037Z | 2,020 | 2 | 16 | 1 | 2,669 | 2 | 657 | 84 | 3 | 5 | true | false | true | false | false | false | zero |
60,173,906 | JNI Call not initiating Android class | <p>I have writing Aar library file, this needs to be linked with the Android APP which has Asynchronous calls to this library using JNI Call. These JNI Calls needs to be invoke the corresponding Functions on the Class file.</p>
<p>Android Asynchronous calls -> c++ JNI -> library(aar)</p>
<p>Here aar file has JNI Rece... | I have writing Aar library file, this needs to be linked with the Android APP which has Asynchronous calls to this library using JNI Call. These JNI Calls needs to be invoke the corresponding Functions on the Class file. Android Asynchronous calls -> c++ JNI -> library(aar) Here aar file has JNI Reception and calls to ... | android|interface|java-native-interface|native | 0 | 2020-02-11T16:58:04.087Z | 2,020 | 2 | 16 | 1 | 91 | 0 | 680 | 37 | 4 | 1 | true | true | false | false | false | false | zero |
60,173,912 | Xamarin Android React to Incoming and Outgoing calls | <p>I want to react to calls (incoming and outgoing ) on a device. The main issue is that the Broadcast receiver that monitors the Phone.State never receives notifications about calls both incoming and outgoing so the code for recording call information in a log never executes.
I have also tried most of the links on s... | I want to react to calls (incoming and outgoing ) on a device. The main issue is that the Broadcast receiver that monitors the Phone.State never receives notifications about calls both incoming and outgoing so the code for recording call information in a log never executes. I have also tried most of the links on stacko... | c#|xamarin.android|broadcastreceiver|incoming-call|outgoing-mail | 0 | 2020-02-11T16:58:48.873Z | 2,020 | 2 | 16 | 1 | 993 | 1 | 640 | 52 | 5 | 2 | true | false | false | false | false | false | zero |
60,173,996 | How to prevent other application to access my widget provider | <p>I have widget provider which is declared in manifest like this:</p>
<pre><code> <receiver
android:name=".widget.MyWidgetProvider"
android:enabled="true"
android:label="@string/widget_label">
<intent-filter>
<action android:nam... | I have widget provider which is declared in manifest like this: [CODE] How i can prevent other apps to access my widget provider with explicit intents? I can't set android:exported="false" because according to documentation android.appwidget.action.APPWIDGET_UPDATE needs to be usable from outside. Update: I was wrong. ... | android|android-intent|android-widget|android-broadcast | 1 | 2020-02-11T17:04:47.193Z | 2,020 | 2 | 17 | 1 | 267 | 0 | 486 | 61 | 4 | 1 | true | true | false | false | false | false | low |
60,174,210 | How to connect to arduino and view services within android app? | <p>I am currently using an Arduino Nano 33 BLE to calculate an angle measurement from an IMU and add these values to a Bluetooth characteristic within a service. I create the service and characteristic using the ArduinoBLE library: </p>
<pre><code>BLEService angleService("1826");
BLEFloatCharacteristic rollBLE("2A57",... | I am currently using an Arduino Nano 33 BLE to calculate an angle measurement from an IMU and add these values to a Bluetooth characteristic within a service. I create the service and characteristic using the ArduinoBLE library: [CODE] Within my setup, I set the device's name, service, and characteristic. I initially w... | android|arduino|bluetooth|android-bluetooth | 0 | 2020-02-11T17:16:16.147Z | 2,020 | 2 | 17 | 1 | 385 | 1 | 1,928 | 63 | 4 | 7 | true | false | false | false | false | false | zero |
60,174,335 | Android 10 APK restart after update programmatically | <p>When my app is updating itself through a downloaded APK and the PackageInstaller, it won't restart even though I implemented a BroadcastReceiver that is in fact called. The app just closes and stays closed. </p>
<p>My Broadcast Receiver: </p>
<pre><code>import android.content.BroadcastReceiver;
import android.cont... | When my app is updating itself through a downloaded APK and the PackageInstaller, it won't restart even though I implemented a BroadcastReceiver that is in fact called. The app just closes and stays closed. My Broadcast Receiver: [CODE] I get all those three messages but the App won't restart. The package manager retur... | android|installation|broadcastreceiver|apk|packageinstaller | 2 | 2020-02-11T17:24:25.977Z | 2,020 | 2 | 17 | 1 | 454 | 1 | 410 | 52 | 5 | 1 | true | false | false | false | false | false | low |
60,174,409 | Android webView evaluateJavaScript executes undefined function | <p>I'm developing an Android application that contains a WebView.
I am trying to override onKeyDown activity's method.</p>
<p>I want to call a javascript method everytime phone's backButton is pressed and if the method is undefined I want to execute other native instruction (I want to close the activity).</p>
<p>This... | I'm developing an Android application that contains a WebView. I am trying to override onKeyDown activity's method. I want to call a javascript method everytime phone's backButton is pressed and if the method is undefined I want to execute other native instruction (I want to close the activity). This is the sense: nati... | javascript|android|android-webview|onkeydown | 0 | 2020-02-11T17:29:31.010Z | 2,020 | 2 | 17 | 1 | 644 | 1 | 888 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
60,174,473 | How to disable zipfinger packaging tool in Android Studio 3.6.0 | <p>I downloaded Android Studio 3.6 RC3 which uses a new packaging tool called <code>zipfinger</code> build APK. I wanted to try it out but now I'm facing some issues when I load my old projects. It would be better if I can disable it for my project. How can I disable it and use the old packaging tool?</p> | I downloaded Android Studio 3.6 RC3 which uses a new packaging tool called zipfinger build APK. I wanted to try it out but now I'm facing some issues when I load my old projects. It would be better if I can disable it for my project. How can I disable it and use the old packaging tool? | android|android-gradle-plugin|build.gradle | 0 | 2020-02-11T17:33:22.467Z | 2,020 | 2 | 17 | 1 | 1,385 | 2 | 286 | 63 | 3 | 0 | false | false | false | false | false | false | zero |
60,174,494 | How to add "show text" in Android(x) password preference dialog | <p>There doesn't appear to be a specific password text dialog in the Androidx (or Android) library.</p>
<p>I want to add a button so that the user can switch between text view and password text view (asterisks instead of letters) for this preference even though, as someone might want to tell me, it's not a fabulous id... | There doesn't appear to be a specific password text dialog in the Androidx (or Android) library. I want to add a button so that the user can switch between text view and password text view (asterisks instead of letters) for this preference even though, as someone might want to tell me, it's not a fabulous idea to store... | android|preferences | 0 | 2020-02-11T17:34:42.647Z | 2,020 | 2 | 17 | 1 | 80 | 1 | 1,062 | 63 | 2 | 0 | false | false | false | false | false | false | zero |
60,174,519 | After changing the theme to MaterialComponent default EditTextPreference buttons now with white text | <p>My <code>styles.xml</code></p>
<pre><code><style name="AppTheme" parent="Theme.MaterialComponents.DayNight"><!-- MaterialComponents theme -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item nam... | My styles.xml [CODE] My preferences.xml [CODE] Result (white text on buttons) Empty new project. com.google.android.material:material:1.1.0 How to fix text color on EditTextPreference buttons? | android|android-styles|material-components-android | 0 | 2020-02-11T17:36:22.947Z | 2,020 | 2 | 17 | 1 | 207 | 1 | 192 | 100 | 3 | 2 | true | false | false | false | false | false | zero |
60,174,543 | change the background Brightness | <p>I want to know if it was possible to change the Brightness of an app to do a good effect on my splash screen thanks for helping. I just want to do an effect dark and progressively put more and more light and after it change screen like normal splash screen.</p>
<p>Thanks for helping
public class firstscreen extend... | I want to know if it was possible to change the Brightness of an app to do a good effect on my splash screen thanks for helping. I just want to do an effect dark and progressively put more and more light and after it change screen like normal splash screen. Thanks for helping public class firstscreen extends AppCompatA... | android | 0 | 2020-02-11T17:38:01.433Z | 2,020 | 2 | 17 | 1 | 404 | 1 | 338 | 32 | 1 | 1 | true | false | false | false | false | false | zero |
60,174,744 | Can't parse JSON response via @POST Request with parameters using Retrofit | <p>So i'm trying to handle and print a JSON response to my server and I'm getting the error: </p>
<blockquote>
<p>java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
at line 1 column 1376 path $.scope</p>
</blockquote>
<p>Here what my project looks like:</p>
<p>object RetrofitClientInstance {<... | So i'm trying to handle and print a JSON response to my server and I'm getting the error: java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 1376 path $.scope Here what my project looks like: object RetrofitClientInstance { [CODE] } interface GetApiService { [CODE] This is My DTO cl... | android|json|rest|kotlin|retrofit | 0 | 2020-02-11T17:51:00.087Z | 2,020 | 2 | 17 | 1 | 179 | 1 | 437 | 74 | 5 | 5 | true | false | false | false | false | false | zero |
60,174,746 | How can I place a divider between those list tiles | <p>I'm new to coding and I've just started my first project, I'm just reading flutter's documentation and trying to do stuff on my own, but this one's been kinda tough, how can i place a divider between those list tiles? </p>
<p>I've tried some stuff like ListView.separated and similar alternatives, couldn't make it w... | I'm new to coding and I've just started my first project, I'm just reading flutter's documentation and trying to do stuff on my own, but this one's been kinda tough, how can i place a divider between those list tiles? I've tried some stuff like ListView.separated and similar alternatives, couldn't make it work on my co... | android|flutter|flutter-layout | 0 | 2020-02-11T17:51:08.373Z | 2,020 | 2 | 17 | 1 | 58 | 1 | 397 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
60,174,753 | Unable to import standard libs to header files in native android project | <p>I'm trying to compile a PC C++ project to android.
I compiled the template example and it's working just fine also on my device.</p>
<p>At first, I created just a simple header file, but I cant import simple standard libraries, such as:
<code>#include <string></code></p>
<p><strong>The odd</strong> thing is ... | I'm trying to compile a PC C++ project to android. I compiled the template example and it's working just fine also on my device. At first, I created just a simple header file, but I cant import simple standard libraries, such as: #include <string> The odd thing is that if I change it to a cpp file, everything is import... | android|c++|cmake|android-ndk | 0 | 2020-02-11T17:51:34.440Z | 2,020 | 2 | 17 | 1 | 891 | 1 | 402 | 72 | 4 | 2 | true | false | false | false | false | false | zero |
60,174,879 | Fetching Icon name from database table as string and setting icon to image view | <p>I am messing with it for quite along time now and not getting any sort of help from google or stackoverflow.</p>
<p>I stored icon names (which are in my drawable folder) in database as string like
<code>ic_action_travel</code>. </p>
<p>What I want to do is setting icon to my imageview by using that name (<code>st... | I am messing with it for quite along time now and not getting any sort of help from google or stackoverflow. I stored icon names (which are in my drawable folder) in database as string like ic_action_travel . What I want to do is setting icon to my imageview by using that name ( string ) like [CODE] | java|android | 0 | 2020-02-11T17:59:41.547Z | 2,020 | 2 | 17 | 1 | 19 | 0 | 300 | 79 | 2 | 1 | true | true | false | false | false | false | zero |
60,174,928 | how to convert multiple EditText value into one date String in android studio? | <p>its an age calculator project I need to know how to convert multiple EditText values into one date String in an android studio? keep in mind I am using "joda-time library" it's not showing the result. I don't know where I did a mistake! I have forgotten everything I can not fix now hope you guys can help me with tha... | its an age calculator project I need to know how to convert multiple EditText values into one date String in an android studio? keep in mind I am using "joda-time library" it's not showing the result. I don't know where I did a mistake! I have forgotten everything I can not fix now hope you guys can help me with that. ... | android|datetime|android-edittext|jodatime|android-jodatime | 0 | 2020-02-11T18:02:56.933Z | 2,020 | 2 | 18 | 1 | 300 | 2 | 333 | 78 | 5 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.