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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,994,209 | Android how do i acces elements in a fragment? | <p>I've got an activity that loads 2 different fragments and switches between them when needed. The problem is I cant acces any elements that are in the fragments. I need to be able to set the typeface and text in the toolbar as well as be able to set the checkboxes.</p>
<p>fragment XML:</p>
<pre><code><?xml versi... | I've got an activity that loads 2 different fragments and switches between them when needed. The problem is I cant acces any elements that are in the fragments. I need to be able to set the typeface and text in the toolbar as well as be able to set the checkboxes. fragment XML: [CODE] java file: [CODE] the findViewById... | android|android-fragments | 0 | 2016-06-23T14:14:56.843Z | 2,016 | 6 | 14 | 3 | 62 | 3 | 383 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
37,737,187 | Prevent RecyclerView from scrolling under AppBarLayout before AppBarLayout is collapsed | <p>I'm creating a <code>RecyclerView</code> with header where the header collapses as you scroll up the <code>RecyclerView</code>. I can achieve this very closely with the layout below, with a transparent <code>AppBarLayout</code>, and <code>MyCoolView</code> which is the header. The parallax effect works great.</p>
<... | I'm creating a RecyclerView with header where the header collapses as you scroll up the RecyclerView . I can achieve this very closely with the layout below, with a transparent AppBarLayout , and MyCoolView which is the header. The parallax effect works great. However, if the header is still visible and I fling the Rec... | android|android-support-library|android-coordinatorlayout|android-design-library|android-appbarlayout | 7 | 2016-06-09T22:25:43.313Z | 2,016 | 6 | 22 | 3 | 4,414 | 3 | 744 | 87 | 5 | 1 | true | false | true | false | false | false | medium |
37,831,382 | queryinventoryasync returns 0 products | <p>I'm calling queryinventoryasync from the xamarin in-app billing component for android but I'm always receiving 0 products returned even though I have added 4 in-app products in google play. I have done the following to try and get it working:</p>
<ul>
<li>Added in-app products to google play and set as active</li>
... | I'm calling queryinventoryasync from the xamarin in-app billing component for android but I'm always receiving 0 products returned even though I have added 4 in-app products in google play. I have done the following to try and get it working: Added in-app products to google play and set as active uploaded my APK to Alp... | android|xamarin|in-app-purchase|in-app-billing | 1 | 2016-06-15T09:26:33.480Z | 2,016 | 6 | 9 | 2 | 831 | 3 | 746 | 38 | 4 | 1 | true | false | false | false | false | false | low |
38,029,064 | Android- method is permanently changing the value of variable | <p>I have this method which I dont understand.
2 global variables which are important for this questions:</p>
<p>-mNextButton;
-mCurrentIndex;</p>
<pre><code>mNextButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mCurrentIndex = (mC... | I have this method which I dont understand. 2 global variables which are important for this questions: -mNextButton; -mCurrentIndex; [CODE] how is it possible that mCurrentIndex is increased permanently every time user clicks mNextButton? | android|variables|methods | -1 | 2016-06-25T13:32:46.080Z | 2,016 | 6 | 13 | 5 | 64 | 3 | 238 | 61 | 3 | 1 | true | false | false | false | false | true | negative |
37,874,251 | How to get image from JSON | <p>Sorry the question was repeated but my error is different. When i am getting image from JSON String my logcat shows like this.</p>
<pre><code>06-17 11:19:57.550 26687-26733/com.hotel.yasmeenshaikh.hotelyasmeen E/Posix: Posix_open return with -1, errno 2 No such file or directory
</code></pre>
<p>Same error show th... | Sorry the question was repeated but my error is different. When i am getting image from JSON String my logcat shows like this. [CODE] Same error show thw number of lines. And my listview contains only default image no data will fetch from server. Here is my code. [CODE] And my ListViewAdapter class is here. [CODE] And ... | php|android|mysql | -2 | 2016-06-17T06:07:03.087Z | 2,016 | 6 | 6 | 4 | 1,344 | 3 | 429 | 26 | 3 | 4 | true | false | false | false | false | true | negative |
38,007,758 | Json parsing by RequestQueue Volley in fragments giving unexpected replies? | <p>Hey I'm new to fragments in android. I have 3 fragments and this is second one. I want to have data set to its list view from the api by json. Im using Volley library.</p>
<p>But When i run this nothing is set on text view and logs show that requestqueue is running but its not showing up. I used the same thing in n... | Hey I'm new to fragments in android. I have 3 fragments and this is second one. I want to have data set to its list view from the api by json. Im using Volley library. But When i run this nothing is set on text view and logs show that requestqueue is running but its not showing up. I used the same thing in normal activ... | android|json | 0 | 2016-06-24T07:19:54.213Z | 2,016 | 6 | 7 | 4 | 1,344 | 3 | 443 | 75 | 2 | 2 | true | false | false | false | false | false | zero |
37,893,969 | Is there any diffrence between Java language used in android programming and original J2SE | <p>I am new to android and I would like to know if there is any diffrence in the Java used in android programmming and standard java. This is because i have never heard about Intents ,etc in Java. </p> | I am new to android and I would like to know if there is any diffrence in the Java used in android programmming and standard java. This is because i have never heard about Intents ,etc in Java. | java|android | 0 | 2016-06-18T06:26:23.510Z | 2,016 | 6 | 6 | 5 | 65 | 3 | 193 | 90 | 2 | 0 | false | false | false | false | false | false | zero |
38,037,360 | How to provide overflow pagination in android tab layout? | <p>According to Material design guidelines ,In android.support.design.widget.TabLayout when there are many tabs which cannot fit the screen size we can use overflow pagination , by providing a right arrow which when clicked will show all the remaining tabs by scrolling horizontally.How to achieve this? </p>
<p>[Here's... | According to Material design guidelines ,In android.support.design.widget.TabLayout when there are many tabs which cannot fit the screen size we can use overflow pagination , by providing a right arrow which when clicked will show all the remaining tabs by scrolling horizontally.How to achieve this? [Here's an image of... | android|android-viewpager|material-design|android-support-library|android-tablayout | 4 | 2016-06-26T10:07:03.800Z | 2,016 | 6 | 10 | 6 | 2,114 | 3 | 350 | 57 | 5 | 0 | false | false | false | false | false | false | low |
37,670,121 | How do I setup a 2d Json Array using php for a sql server? | <p>I have the following php code, however it is only storing the last row of data that the query returns. How can I store all the data in a json array so I can access it through android and populate a list view?</p>
<pre><code><?php
header('Content-Type: application/json ');
$dbhost = 'localhost';
$dbuser ... | I have the following php code, however it is only storing the last row of data that the query returns. How can I store all the data in a json array so I can access it through android and populate a list view? [CODE] The following code only produces the following json array where the data is the last row: [CODE] How can... | php|android|mysql|json | 0 | 2016-06-07T03:46:52Z | -1 | -1 | -1 | -1 | 67 | 3 | 536 | 58 | 4 | 3 | true | false | false | false | false | false | zero |
37,783,952 | White text under buttons in layout | <p>I have a lay-out on my android project that involves buttons. Earlier I had the name of the button inside the button itself. Now I have icons inside them, but I need to name them as well now. I want to do that under the buttons, but because of my background, I think i have to do it in white letters. I have no Idea w... | I have a lay-out on my android project that involves buttons. Earlier I had the name of the button inside the button itself. Now I have icons inside them, but I need to name them as well now. I want to do that under the buttons, but because of my background, I think i have to do it in white letters. I have no Idea wher... | android|android-layout | 0 | 2016-06-13T07:27:36.940Z | 2,016 | 6 | 7 | 0 | 68 | 3 | 726 | 34 | 2 | 1 | true | false | false | false | false | false | zero |
37,875,059 | XMPP library for React Native Android | <p>I need to integrate with xmpp server from react native application.I've found an existing library for react native iOS version (<a href="https://github.com/aksonov/react-native-xmpp" rel="noreferrer">https://github.com/aksonov/react-native-xmpp</a>) .</p>
<p>But I could not find any existing react native xmpp libra... | I need to integrate with xmpp server from react native application.I've found an existing library for react native iOS version ( https://github.com/aksonov/react-native-xmpp ) . But I could not find any existing react native xmpp library for Android version. Could someone please let me know if any library is available ... | android|xmpp|react-native | 5 | 2016-06-17T06:58:45.227Z | 2,016 | 6 | 6 | 4 | 3,653 | 3 | 441 | 37 | 3 | 0 | false | false | true | false | false | false | low |
37,945,497 | Changing default TextColor in Xamarin.Forms Listview on Android | <p>I am trying to change the default <code>TextColor</code> in a Xamarin.Forms ListView on Andoid.</p>
<p>The ListView is quite simple:</p>
<pre><code>List<string> cities = new List<string> { "Berlin", "Bonn", "Braunschweig", "Bremen" };
ListView listView = new ListView();
listView.ItemsSource = cities;
C... | I am trying to change the default TextColor in a Xamarin.Forms ListView on Andoid. The ListView is quite simple: [CODE] On the device it looks like this: What I wnat to have, is that the TextColor will be black. As far as I understand Xamarin Forms CustomRenderer there will be a Android.Resource.Layout.SimpleListItem1 ... | listview|xamarin|xamarin.android|xamarin.forms|android-styles | 2 | 2016-06-21T13:14:04.577Z | 2,016 | 6 | 13 | 1 | 9,797 | 3 | 870 | 63 | 5 | 3 | true | false | true | false | false | false | low |
37,785,328 | CheckBox checked on scroll automatically in ListView in android | <p>I am newbie to android and have implemented a listView with checkbox and textViews, I am facing a weird issue of selection.</p>
<p>When I am checking any checkbox, all the other checkbox are automatically checked and it is changed after scrolling randomly.</p>
<p>Can anybody help me what changes should I make to f... | I am newbie to android and have implemented a listView with checkbox and textViews, I am facing a weird issue of selection. When I am checking any checkbox, all the other checkbox are automatically checked and it is changed after scrolling randomly. Can anybody help me what changes should I make to fix this in my code?... | android|listview|checkbox|android-arrayadapter | -1 | 2016-06-13T08:47:38.863Z | 2,016 | 6 | 8 | 0 | 586 | 3 | 342 | 63 | 4 | 1 | true | false | false | false | false | true | negative |
38,036,948 | How to store large Data in application? | <p>I want to make image backup through my <code>Application</code> what is the best way for storing large amount of data . I tried to save image in <code>sqlite database</code> it worked fine for small amount of data in case of large amount it shows <code>MemoryOutOfBoundExceptions</code> after increasing the Heep <cod... | I want to make image backup through my Application what is the best way for storing large amount of data . I tried to save image in sqlite database it worked fine for small amount of data in case of large amount it shows MemoryOutOfBoundExceptions after increasing the Heep size(android:largeHeap="true") . please help m... | android|image|sqlite|out-of-memory | 1 | 2016-06-26T09:15:48.510Z | 2,016 | 6 | 9 | 6 | 842 | 3 | 328 | 39 | 4 | 0 | false | false | false | false | false | false | low |
37,997,670 | GridLayout - Vertical/Horizontal constraints are inconsistent | <p>I'm posting this because I couldn't find exactly what I was looking for on SO and the rest of the web. I had a look at <a href="https://stackoverflow.com/q/10421353/2513269">this</a>, but I wasn't exactly sure how to solve the problem.</p>
<p>The issue surfaced while I was using <code>GridLayout</code> in my app an... | I'm posting this because I couldn't find exactly what I was looking for on SO and the rest of the web. I had a look at this , but I wasn't exactly sure how to solve the problem. The issue surfaced while I was using GridLayout in my app and whenever I rotated my screen, I would see an output something like this: In land... | android|android-gridlayout | 5 | 2016-06-23T16:59:49.090Z | 2,016 | 6 | 16 | 3 | 3,658 | 3 | 610 | 61 | 2 | 3 | true | false | true | false | false | false | low |
37,733,418 | Firebase Cloud Messaging API Key | <p>Any way to regenerate the API Key for FCM (Cloud Messaging section) in Firebase Console? The key is not editable and is different from the one automatically generated in Google APIs Console. Due to this misconfiguration I'm always getting <strong>unauthorized 401</strong> from FCM...</p> | Any way to regenerate the API Key for FCM (Cloud Messaging section) in Firebase Console? The key is not editable and is different from the one automatically generated in Google APIs Console. Due to this misconfiguration I'm always getting unauthorized 401 from FCM... | android|firebase|google-cloud-messaging|firebase-cloud-messaging | 24 | 2016-06-09T18:17:35.950Z | 2,016 | 6 | 18 | 3 | 17,482 | 3 | 267 | 32 | 4 | 0 | false | false | true | true | true | false | high |
37,919,579 | Cordova : Build error gradle for task ':transformClassesWithMultidexlistForDebug' | <p>This is my first time with Cordova and I want to do my first <strong>Hello World</strong> on Android Device ... but, when I build my app with :</p>
<pre><code>cordova build
</code></pre>
<p>It compiles until I get this error :</p>
<pre><code>Execution failed for task ':transformClassesWithMultidexlistForDebug.
&g... | This is my first time with Cordova and I want to do my first Hello World on Android Device ... but, when I build my app with : [CODE] It compiles until I get this error : [CODE] I test some solution like put this in my build.gradle but without sucess : [CODE] Also, I try to clean my project with 'clean.bat' of Cordova ... | android|cordova|gradle|build | 1 | 2016-06-20T09:59:07.223Z | 2,016 | 6 | 9 | 0 | 2,635 | 3 | 524 | 81 | 4 | 4 | true | false | true | false | false | false | low |
37,741,627 | Bottom Sheet Android- Scrolling issue | <p>I need the bottom sheet to stop at two positions. I have the following code for Bottom Sheet.</p>
<pre><code><android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tool... | I need the bottom sheet to stop at two positions. I have the following code for Bottom Sheet. [CODE] and [CODE] This code works fine except one thing. The very first time I have to scroll up the bottom sheet and then I can down scroll it. I cannot directly down scroll the sheet. Any help will be appreciated. | java|android|android-studio|bottom-sheet | 6 | 2016-06-10T06:46:12.100Z | 2,016 | 6 | 6 | 4 | 14,667 | 3 | 309 | 37 | 4 | 2 | true | false | true | true | false | false | medium |
37,953,113 | cannot restore view pager fragment state | <p>i have a view pager with 3 fragments. i use retrofit rest api to populate each of my fragments for the first time. What i would like to achieve is when the user swipes back either in first or third fragment(those 2 fragment are being being destroyed by the view pager) to restore the data(saved in an array list) and ... | i have a view pager with 3 fragments. i use retrofit rest api to populate each of my fragments for the first time. What i would like to achieve is when the user swipes back either in first or third fragment(those 2 fragment are being being destroyed by the view pager) to restore the data(saved in an array list) and not... | android | 0 | 2016-06-21T19:34:31.700Z | 2,016 | 6 | 19 | 1 | 77 | 3 | 774 | 40 | 1 | 2 | true | false | false | false | false | false | zero |
37,976,018 | Native Ads vs Interstitial ads vs banner ads which one will generate more revenue? how to implement native ads? | <p>I couldn't find any useful link to the newly added native ads. can anyone give me the link to the documentation.</p>
<p>Can i use the Native ads and banner ads in one screen. Is this a violation of admob policy?</p> | I couldn't find any useful link to the newly added native ads. can anyone give me the link to the documentation. Can i use the Native ads and banner ads in one screen. Is this a violation of admob policy? | android|admob|adsense|ads|native-ads | 7 | 2016-06-22T18:46:32.087Z | 2,016 | 6 | 18 | 2 | 13,901 | 3 | 204 | 111 | 5 | 0 | false | false | true | true | false | false | medium |
38,027,774 | ImageButton Border Transparancy - Removing the square border around round image is not working? | <p>Hello Guys I need some help in creating Imagebutton. I created custom button on PS and then saved it in PNG format with transparent background. After that i patched my image with 9patch. Now i am using that image as a button in my layout but the image is showing colored background corners. I tried alot of things but... | Hello Guys I need some help in creating Imagebutton. I created custom button on PS and then saved it in PNG format with transparent background. After that i patched my image with 9patch. Now i am using that image as a button in my layout but the image is showing colored background corners. I tried alot of things but it... | android|image|android-layout|android-studio | 1 | 2016-06-25T11:04:02.090Z | 2,016 | 6 | 11 | 5 | 591 | 3 | 357 | 95 | 4 | 1 | true | false | false | false | false | false | low |
37,901,839 | Adding condition to Observable (rx-java) | <p>I'm still relatively new to Rx-java and reactive programming in general.</p>
<p>Heres my current code. What it does right now:</p>
<ol>
<li>Check device if data is present</li>
<li>If present, fetch it</li>
<li><p>If not present, fetch from server</p>
<pre><code>Observable<PastPaper> observable = Observable... | I'm still relatively new to Rx-java and reactive programming in general. Heres my current code. What it does right now: Check device if data is present If present, fetch it If not present, fetch from server [CODE] What I'm trying to accomplish: Check device if data is present If present, fetch it If not present, check ... | android|rx-java|observable | 0 | 2016-06-18T21:33:41.027Z | 2,016 | 6 | 21 | 5 | 1,359 | 3 | 586 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
71,298,234 | Neither user 10200 nor current process has com.huawei.permission.SECURITY_DIAGNOSE | <p>While trying to implement SafetyNet, I've added this <a href="https://developer.huawei.com/consumer/en/doc/development/Security-Guides/version-change-history-0000001050156329#section315447165816" rel="nofollow noreferrer">dependency</a>:</p>
<pre><code>implementation 'com.huawei.hms:safetydetect:6.3.0.301'
</code></... | While trying to implement SafetyNet, I've added this dependency : [CODE] And also added the permission to AndroidManifest.xml : [CODE] But this somehow doesn't work as expected: [CODE] Also below Apps & services > Permissions > View all permissions , it is not listed - all the others are being merged. Are there any fur... | android|android-permissions|huawei-mobile-services|huawei-safety-detect | 1 | 2022-02-28T16:38:14.950Z | 2,022 | 2 | 16 | 0 | 256 | 3 | 519 | 82 | 4 | 3 | true | false | false | false | false | false | low |
71,203,988 | react native fs don't read imported files | <p>I'm using react native fs to export and import data in json format from a sqllite db.
I'm writing and reading file MonthsData.json into DownloadDirectoryPath.</p>
<p>As long as I read and write the data through my app everything works fine.</p>
<p>If I download and upload the backup file from my pc with this command... | I'm using react native fs to export and import data in json format from a sqllite db. I'm writing and reading file MonthsData.json into DownloadDirectoryPath. As long as I read and write the data through my app everything works fine. If I download and upload the backup file from my pc with this commands [CODE] when I t... | react-native|android-permissions|react-native-fs | 0 | 2022-02-21T09:33:24.417Z | 2,022 | 2 | 9 | 0 | 512 | 3 | 568 | 41 | 3 | 5 | true | false | false | false | false | false | zero |
71,247,307 | How to run react-native application in android which is cloned from a github repository? | <p>I was working on a local project from scratch which was not on github and it was running successfully. But when i clone a project from github and try to run on android, mostly <em><strong>(not every application cloned from github gives me this error but few big application gives)</strong></em> it gives me error like... | I was working on a local project from scratch which was not on github and it was running successfully. But when i clone a project from github and try to run on android, mostly (not every application cloned from github gives me this error but few big application gives) it gives me error like Command That I run: [CODE] E... | android|react-native|github | 1 | 2022-02-24T04:58:36.433Z | 2,022 | 2 | 4 | 3 | 770 | 3 | 343 | 88 | 3 | 2 | true | false | false | false | false | false | low |
71,366,271 | I cannot change the default flutter icon in splash screen to image of my choosing in flutter | <p>My launch_background.xml</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
... | My launch_background.xml [CODE] My launch_background.xml in drawable-v21 [CODE] My android manifest: [CODE] I can change background color, but the image is always the android:icon="@mipmap/ic_launcher">. No matter what I do (on android). | android|flutter | 2 | 2022-03-05T22:05:46.937Z | 2,022 | 3 | 22 | 5 | 1,291 | 3 | 247 | 92 | 2 | 3 | true | false | false | false | false | false | low |
71,218,462 | I am trying to display a winning message when score reach 45 on text view | <p>I am trying to display a winning message after the score reach 45 point.
I have used <code>OnClickListener</code> to increase point and when the score reach 45 on text view i want to show a toast/pop up message.</p>
<pre><code>public class Activity2 extends AppCompatActivity {
TextView txtView1, txtView... | I am trying to display a winning message after the score reach 45 point. I have used OnClickListener to increase point and when the score reach 45 on text view i want to show a toast/pop up message. [CODE] | java|android|android-studio | 1 | 2022-02-22T09:01:38.873Z | 2,022 | 2 | 9 | 1 | 27 | 3 | 205 | 73 | 3 | 1 | true | false | false | false | false | false | low |
71,150,874 | StartActivity in a Thread | <p>Why does MainActivity not start after 1 sec?</p>
<pre><code>class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
supportActionBar?.hide()
setContentView(R.layout.activity_splash)
Thread {
Thread.sleep(1000)
... | Why does MainActivity not start after 1 sec? [CODE] Does anyone could help me please. | android | 0 | 2022-02-17T00:06:56.460Z | 2,022 | 2 | 0 | 3 | 33 | 3 | 85 | 25 | 1 | 1 | true | false | false | false | false | false | zero |
71,405,911 | How to make a separate view if there is no item in Dart Flutter listTile? | <p>I have an application:</p>
<p><a href="https://i.stack.imgur.com/3vXqa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3vXqa.png" alt="enter image description here" /></a></p>
<p>The <code>listTile</code> items here come from the database.</p>
<p><strong>Codes:</strong></p>
<pre><code>Container(
... | I have an application: The listTile items here come from the database. Codes: [CODE] Calling items from database: [CODE] If there is no data in the database, I want the listTile to say " not found " in its footprint. For example, I want to make the system in the picture above. You already understand the syste... | android|flutter|dart | 0 | 2022-03-09T07:45:24.993Z | 2,022 | 3 | 7 | 2 | 41 | 3 | 516 | 73 | 3 | 2 | true | false | false | false | false | false | zero |
53,475,560 | React native android Undefined is not function | <p><strong>React native android:</strong></p>
<p>When I am navigating from one screen to next screen </p>
<blockquote>
<p>undefined is not a function (evaluating '(0,
_reactNavigation.StackNavigator)({ SettingScreen: { screen: _settings.default }, HomeScreen: { screen: _Home.default } })')</p>
</blockquote>
<p>A... | React native android: When I am navigating from one screen to next screen undefined is not a function (evaluating '(0, _reactNavigation.StackNavigator)({ SettingScreen: { screen: _settings.default }, HomeScreen: { screen: _Home.default } })') App.js [CODE] Setting.js [CODE] Home.js [CODE] | android|react-native | 0 | 2018-11-26T06:08:22.483Z | 2,018 | 11 | 6 | 0 | 520 | 3 | 289 | 46 | 2 | 3 | true | false | false | false | false | false | zero |
53,589,048 | Android can't open file, FileNotFoundException(Permission denied), but PermissionRead is granted | <p>Android can't open file with FileNotFoundException(Permission denied), but PermissionRead is granted.</p>
<blockquote>
<p>java.io.FileNotFoundException: /mnt/obb/"file detailed path": open
failed: EACCES (Permission denied)</p>
<p>obb file is ERROR_ALREADY_MOUNTED.</p>
</blockquote>
<pre><code>int readPer... | Android can't open file with FileNotFoundException(Permission denied), but PermissionRead is granted. java.io.FileNotFoundException: /mnt/obb/"file detailed path": open failed: EACCES (Permission denied) obb file is ERROR_ALREADY_MOUNTED. [CODE] PermissionRead is granted. Manifest.xml [CODE] Android OS ver.6.0 device. ... | android|file-not-found | 1 | 2018-12-03T07:11:33.167Z | 2,018 | 12 | 7 | 0 | 2,057 | 3 | 327 | 96 | 2 | 2 | true | false | false | false | false | false | low |
53,651,981 | How to assert the activity running in foreground? | <p>I have a class <code>DeepLinkHandlerActivity</code> which handles all my deeplinks. In order to test it I have written the following piece of code. Cannot figure out how to test that after some period of time the activity in foreground is the desired one? Any idea how to do it? </p>
<pre><code>class DeepLinkHandler... | I have a class DeepLinkHandlerActivity which handles all my deeplinks. In order to test it I have written the following piece of code. Cannot figure out how to test that after some period of time the activity in foreground is the desired one? Any idea how to do it? [CODE] | android|android-espresso|android-testing|android-uiautomator | 1 | 2018-12-06T12:56:39.780Z | 2,018 | 12 | 12 | 3 | 522 | 3 | 272 | 49 | 4 | 1 | true | false | false | false | false | false | low |
53,606,878 | AndroidX package android.support.design.R does not exist | <p>When I convert my Project to AndroidX I run into </p>
<pre><code>error: package android.support.design.R does not exist
android.support.design.R.styleable.FloatingActionButton_Behavior_Layout);
</code></pre>
<p>any clue how to solve it ?</p> | When I convert my Project to AndroidX I run into [CODE] any clue how to solve it ? | android|androidx | 24 | 2018-12-04T06:26:06.560Z | 2,018 | 12 | 6 | 1 | 8,205 | 3 | 82 | 56 | 2 | 1 | true | false | true | false | true | false | high |
53,647,266 | How to change color of the line that top of the bottom navigation view | <p>I want to set backgroundColor as white for bottom navigation view. But there is a top shadow.</p>
<p><a href="https://i.stack.imgur.com/T8oSj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T8oSj.png" alt="enter image description here"></a></p>
<p>I want to change this color. How can I do this?<... | I want to set backgroundColor as white for bottom navigation view. But there is a top shadow. I want to change this color. How can I do this? | android|background-color|bottomnavigationview | 0 | 2018-12-06T08:24:19.630Z | 2,018 | 12 | 8 | 3 | 1,552 | 3 | 141 | 70 | 3 | 0 | false | false | false | false | false | false | zero |
53,459,151 | Android - Issue with clickableSpan and TextView | <p>I'm trying to implement clickable hashtags in my TextView as below:</p>
<pre><code>mTextView.setMovementMethod(LinkMovementMethod.getInstance());
Spannable s = (Spannable) mTextView.getText();
CharacterStyle clickableSpan = new MyClickableSpan();
s.setSpan(clickableSpan, startIndex, endIndex, Spannable.SPAN_EXCLUS... | I'm trying to implement clickable hashtags in my TextView as below: [CODE] this handles onClick for my hashtags as I wanted, but it seems that the other part of the text also listens for onClick events and does nothing. My question is how to make the non-spannable text parts, delegate the onClick event to the parent vi... | android | 4 | 2018-11-24T14:26:59.157Z | 2,018 | 11 | 14 | 5 | 2,065 | 3 | 345 | 47 | 1 | 1 | true | false | false | false | false | false | low |
53,431,514 | Add existing Android Studio project to existing GitHub repository | <p>I've created a project new project in Android Studio and I want to add it to an existing GitHub repository which is currently empty.</p>
<p>I have tried the answer from this question: <a href="https://stackoverflow.com/questions/41276327/replace-github-repository-with-a-new-android-studio-project-while-preserving-o... | I've created a project new project in Android Studio and I want to add it to an existing GitHub repository which is currently empty. I have tried the answer from this question: Replace GitHub repository with a new Android Studio project while preserving old commits but once I get to the final git push I get an error sa... | git|android-studio|github | 5 | 2018-11-22T12:54:25.747Z | 2,018 | 11 | 12 | 3 | 4,627 | 3 | 767 | 65 | 3 | 0 | false | false | true | false | false | false | low |
53,695,211 | Android VLC Embed vs Android VideoView | <p><strong>=== BACKGROUND SUMMARY===</strong></p>
<p>At this moment, we are using Android VideoView to perform video play black. Everything seems to be working great until we encounter Live Streaming.</p>
<p>VideoView tends to have 10-15 seconds delay from the live stream within a local network (LAN).</p>
<p>While a... | === BACKGROUND SUMMARY=== At this moment, we are using Android VideoView to perform video play black. Everything seems to be working great until we encounter Live Streaming. VideoView tends to have 10-15 seconds delay from the live stream within a local network (LAN). While attempting to solve this issue, we came acros... | android|android-videoview|rtsp|rtmp|libvlc | 1 | 2018-12-09T18:07:53.370Z | 2,018 | 12 | 18 | 6 | 1,556 | 3 | 719 | 38 | 5 | 0 | false | false | false | false | false | false | low |
53,635,269 | Gradle cannot resolve androidx.appcompat:appcompat:1.1.0-alpha01 and com.google.android.gms:play-services-nearby:16.0.0 | <p>I'm currently working on a school project and pulled the code from here <a href="https://github.com/googlesamples/android-nearby/tree/master/connections/rockpaperscissors" rel="nofollow noreferrer">https://github.com/googlesamples/android-nearby/tree/master/connections/rockpaperscissors</a>. I'm using Intellij IDEA ... | I'm currently working on a school project and pulled the code from here https://github.com/googlesamples/android-nearby/tree/master/connections/rockpaperscissors . I'm using Intellij IDEA Ultimate 2018.3. (Well, it's basically an Android Studio as well) I worked on that project for several days and everything works fin... | android|android-studio|gradle|android-gradle-plugin|google-play-services | 4 | 2018-12-05T15:09:09.100Z | 2,018 | 12 | 15 | 2 | 9,493 | 3 | 782 | 119 | 5 | 3 | true | false | true | false | false | false | low |
53,633,945 | recyclerView setText Position | <p>I am working on an android project, where I have set up a cardView inside recyclerView, where I need to be able to setText of the selected cardView. </p>
<p>Currently, this works:</p>
<p><strong>Adding CardView:</strong>
Press 3 dot Image (on cardview) -> Press on menu (Add cardview) -> (Alert dialog shows up) ent... | I am working on an android project, where I have set up a cardView inside recyclerView, where I need to be able to setText of the selected cardView. Currently, this works: Adding CardView: Press 3 dot Image (on cardview) -> Press on menu (Add cardview) -> (Alert dialog shows up) enter text -> new cardview is added, and... | android|text|android-recyclerview | 0 | 2018-12-05T13:53:41.967Z | 2,018 | 12 | 13 | 2 | 1,048 | 3 | 1,054 | 29 | 3 | 1 | true | false | false | false | false | false | zero |
53,446,852 | onKeyDown() event not triggered when in DialogFragment | <p>I capture Key Events (from an external keyboard) within my App. I use <code>onKeyDown()</code> method from <code>Activity</code>. In my app I switch between different Fragments. If I am in a normal <code>Fragment</code> then Activity's <code>onKeyDown()</code> is triggered when pressing buttons. But when I use a <co... | I capture Key Events (from an external keyboard) within my App. I use onKeyDown() method from Activity . In my app I switch between different Fragments. If I am in a normal Fragment then Activity's onKeyDown() is triggered when pressing buttons. But when I use a DialogFragment as a Dialog then pressing the button does ... | android|android-fragments|android-activity|kotlin|android-dialogfragment | 4 | 2018-11-23T12:37:13.550Z | 2,018 | 11 | 12 | 4 | 1,816 | 3 | 765 | 54 | 5 | 2 | true | false | false | false | false | false | low |
53,529,464 | How to keep certain Build Variant selected in Android Studio? | <p>I understand from <a href="https://developer.android.com/studio/build/build-variants#product-flavors" rel="noreferrer">the documentation</a> (reproduced below) that the <strong><code>Build Variants</code></strong> are generated during Gradle <code>sync</code>, but how could I keep a particular one <strong><em>"activ... | I understand from the documentation (reproduced below) that the Build Variants are generated during Gradle sync , but how could I keep a particular one "active" or selected in Android Studio ? Problem is that after checking out a branch I find the selected Build Variant has been reset. I can not find an "active Build V... | android-studio | 7 | 2018-11-28T23:07:02.733Z | 2,018 | 11 | 23 | 2 | 4,888 | 3 | 994 | 61 | 1 | 0 | false | false | true | false | false | false | medium |
53,606,445 | Android.bp: how to add external header .h files | <p>I have a similar problem as <a href="https://stackoverflow.com/questions/37761469/how-to-add-external-header-files-during-bazel-tensorflow-build">How to add external header files during bazel/tensorflow build</a>. but I hope there is a better solution.</p>
<p>I have a module that requires some external .h header fi... | I have a similar problem as How to add external header files during bazel/tensorflow build . but I hope there is a better solution. I have a module that requires some external .h header files at other location. Suppose I try to include "vendor/external/include/thirdpary.h", In Android.bp, I add some line like: [CODE] B... | android|hal|android-soong | 6 | 2018-12-04T05:49:01.007Z | 2,018 | 12 | 5 | 1 | 5,916 | 3 | 416 | 47 | 3 | 2 | true | false | true | false | false | false | medium |
53,577,205 | Getting Shared Preferences in Async Task Class | <p>I am trying to build an app, which takes the patient id as a shared preference and uses that id in another activity for getting the records of that id. In Main Activity I set the Shared Preferences, and it sets the value correctly. However, in FetchSinglePatientData, I am not able to get the same Shared Preference V... | I am trying to build an app, which takes the patient id as a shared preference and uses that id in another activity for getting the records of that id. In Main Activity I set the Shared Preferences, and it sets the value correctly. However, in FetchSinglePatientData, I am not able to get the same Shared Preference Valu... | java|android|android-studio|android-asynctask|sharedpreferences | 0 | 2018-12-02T03:48:15.910Z | 2,018 | 12 | 3 | 6 | 1,310 | 3 | 644 | 46 | 5 | 3 | true | false | false | false | false | false | zero |
53,680,970 | Android studio NPE when passing bundle | <p>I want to receive string from another activity. But it gave me an NPE.</p>
<p>MainActivity.class</p>
<pre><code>private void searchProcess(final String searchPhone) {
String tag_string_req = "req_search";
Intent i2 = new Intent(MainActivity.this, DbActivity.class);
Bundle bundle = new Bundle();
bun... | I want to receive string from another activity. But it gave me an NPE. MainActivity.class [CODE] DbActivity.class [CODE] and this error comes up [CODE] and line 156 is [CODE] help please | java|android|nullpointerexception | -2 | 2018-12-08T08:49:36.323Z | 2,018 | 12 | 8 | 5 | 32 | 3 | 186 | 38 | 3 | 4 | true | false | false | false | false | true | negative |
53,654,418 | ECDSA KeyPairGenerator not available (but in JUnit works) | <p>I am getting below Exception which I observed when running Android app - it does not occurs when I run the code below as JUnit. </p>
<pre><code>java.security.NoSuchAlgorithmException: ECDSA KeyPairGenerator not available
at java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:225)
at com.mhamdao... | I am getting below Exception which I observed when running Android app - it does not occurs when I run the code below as JUnit. [CODE] The code: [CODE] How to resolve this issue? UPDATE When I am creating JUnit in test (I am using Android Studio): [CODE] Everything works also. How to resolve this issue on App runtime? | java|android|android-studio|kotlin|bouncycastle | 1 | 2018-12-06T15:14:37.273Z | 2,018 | 12 | 15 | 3 | 1,056 | 3 | 319 | 57 | 5 | 3 | true | false | false | false | false | false | low |
53,429,152 | Exception while running flutter application. Error retrieving device properties for ro.product.cpu.abi | <p>We got an exception while running Flutter application in android studio 3.2.1. The error that occurred is given below. Please check and help us. I tried some solutions which were available on stackoverflow and other sites as well. </p>
<p>But unfortunately any of the provided solutions didn't work for me. I even di... | We got an exception while running Flutter application in android studio 3.2.1. The error that occurred is given below. Please check and help us. I tried some solutions which were available on stackoverflow and other sites as well. But unfortunately any of the provided solutions didn't work for me. I even did invalidate... | android|android-studio|dart|flutter | 3 | 2018-11-22T10:43:43.503Z | 2,018 | 11 | 10 | 3 | 3,873 | 3 | 394 | 102 | 4 | 1 | true | false | true | false | false | false | low |
53,378,493 | Programatically accessing elements of a custom view | <p>I am using a 3rd party library for an android activity, this library:
<a href="https://github.com/pavlospt/CircleView" rel="nofollow noreferrer">https://github.com/pavlospt/CircleView</a></p>
<p>And I have this implementation in my activity:</p>
<pre><code><com.github.pavlospt.CircleView
xmlns:app="http... | I am using a 3rd party library for an android activity, this library: https://github.com/pavlospt/CircleView And I have this implementation in my activity: [CODE] My problem is that I can´t change programatically the app:cv_titleText="30ºC" attribute. Could anyone help me? thanks! | java|android | -1 | 2018-11-19T16:03:28.663Z | 2,018 | 11 | 16 | 0 | 36 | 3 | 281 | 51 | 2 | 1 | true | false | false | false | false | true | negative |
53,431,919 | How to move Image to position x, y coordinate with current scale and padding | <p>I am using <a href="https://github.com/chrisbanes/PhotoView" rel="nofollow noreferrer">Photoview</a> Library in my project. I need to <strong>setPadding</strong> in Imageview with Zoom.</p>
<p>When I use with <strong>left and top padding</strong>, It working Perfectly. It also move image from left and top as I wish... | I am using Photoview Library in my project. I need to setPadding in Imageview with Zoom. When I use with left and top padding , It working Perfectly. It also move image from left and top as I wish. [CODE] But, When I apply right padding and bottom padding , it apply padding but not automatically move from current place... | android|android-layout|android-imageview|android-photoview | 3 | 2018-11-22T13:19:54.897Z | 2,018 | 11 | 13 | 3 | 1,316 | 3 | 328 | 76 | 4 | 2 | true | false | false | false | false | false | low |
53,650,647 | Implement MVVM on a Login Button in Xamarin | <p>I have a Qustion regarding the MVVM Pattern.
I have a page with a button. I created a LoginCommand for the Button and a ViewModel to handle the command. Now i want the button to change to a logout button if the LoginCommand is successfull.</p>
<p>I am just starting with MVVM so i do not know how i start handling th... | I have a Qustion regarding the MVVM Pattern. I have a page with a button. I created a LoginCommand for the Button and a ViewModel to handle the command. Now i want the button to change to a logout button if the LoginCommand is successfull. I am just starting with MVVM so i do not know how i start handling this. Thanks,... | android|xamarin|mvvm | 0 | 2018-12-06T11:40:11.883Z | 2,018 | 12 | 11 | 3 | 294 | 3 | 326 | 43 | 3 | 0 | false | false | false | false | false | false | zero |
53,389,150 | What if all resources are placed in one resolution for android app bundle | <p>As we all know that Google launch new feature of distributing android apk using android-app-bundle that has so many advantages.</p>
<p>So my question is, how my app will behave if I place all the images/resources in single folder like drawable-xxxhdpi. e.g. Lets say I have one application that uses 5 images. Instea... | As we all know that Google launch new feature of distributing android apk using android-app-bundle that has so many advantages. So my question is, how my app will behave if I place all the images/resources in single folder like drawable-xxxhdpi. e.g. Lets say I have one application that uses 5 images. Instead of taking... | android|android-app-bundle | 9 | 2018-11-20T08:43:26.333Z | 2,018 | 11 | 8 | 1 | 807 | 3 | 1,004 | 73 | 2 | 0 | false | false | false | false | false | false | medium |
53,499,136 | How can i share data b/w fragments using interface.i want the on button click Edit Text's data in fragment1 to be shown in the text view of fragment2 | <p>Main class is </p>
<pre><code>public class MainActivity extends AppCompatActivity implements TabLayout.OnTabSelectedListener, MyInterface {
ViewPager vp;
TabLayout tabLayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConte... | Main class is [CODE] Fragment1 is: [CODE] Fragment2 is.. [CODE] Interface is: [CODE] Pageadabter is: [CODE] On button click fragment1, I am able to move at fragment2 but I am not able to move with the data.it seems in fragment1 under onclicklistener body obj.onFragmentChanged(1); is working fine.but obj.setOnDataChange... | java|android|android-studio|android-fragments|interface | 0 | 2018-11-27T11:56:04.960Z | 2,018 | 11 | 11 | 1 | 42 | 3 | 407 | 149 | 5 | 5 | true | false | false | false | false | false | zero |
53,533,228 | Is there any way to install on the same android mobile a debug version of my app AND a google play store version of my app? | <p>Is there any way to install in the <strong>same android mobile</strong> a <strong>debug version of my app</strong> AND a <strong>google play store version of my app</strong>? I try to setup on my android multiple users, but when from another user than the owner user (where the debug version of my app is installed) I... | Is there any way to install in the same android mobile a debug version of my app AND a google play store version of my app ? I try to setup on my android multiple users, but when from another user than the owner user (where the debug version of my app is installed) I try to install the app from google play store I rece... | android|android-multiple-users | 1 | 2018-11-29T06:41:39.120Z | 2,018 | 11 | 6 | 3 | 555 | 3 | 419 | 123 | 2 | 0 | false | false | false | false | false | false | low |
53,697,500 | Clear app notifications in android studio | <p>I have an application that sends notifications, but when the user leaves the application the notification is still there, in case he does not click on it.
So, when the user logs out, or the session user is "null", the notifications will be automatically deleted.</p>
<p>My code:</p>
<pre><code>@RequiresApi(api = Bu... | I have an application that sends notifications, but when the user leaves the application the notification is still there, in case he does not click on it. So, when the user logs out, or the session user is "null", the notifications will be automatically deleted. My code: [CODE] | java|android|notifications | 0 | 2018-12-09T22:54:17.947Z | 2,018 | 12 | 22 | 6 | 46 | 3 | 278 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
53,722,804 | Is it possible to get the link of uploaded file from google drive API | <p>I was going through the Google drive API lists
<a href="https://developers.google.com/gsuite/guides/android" rel="nofollow noreferrer">Drive</a>. Is that possible to get the link of the files that uploaded in the drive programmatically from my app? Like a Picked. </p>
<p>I found API for upload and download. I also ... | I was going through the Google drive API lists Drive . Is that possible to get the link of the files that uploaded in the drive programmatically from my app? Like a Picked. I found API for upload and download. I also found google drive search parms . But didn't find anything like browse to the files and get the link of... | android|google-api|google-drive-api | 3 | 2018-12-11T11:06:34.643Z | 2,018 | 12 | 11 | 1 | 1,070 | 3 | 587 | 69 | 3 | 0 | false | false | false | false | false | false | low |
53,690,815 | json data fetching android | <p>How do I fetch this data using json. I have tried this but not working. Im very much confused about how to fetch the below data. Any help appreciated</p>
<pre><code> {
"sftid": [
"sfta"
],
"todate": 205618.268,
"today": 5307.174,
"sfta": 5093.717,
"sftb": 213.457,
"sftc": 0,
... | How do I fetch this data using json. I have tried this but not working. Im very much confused about how to fetch the below data. Any help appreciated [CODE] | android|json | 0 | 2018-12-09T09:08:24.847Z | 2,018 | 12 | 9 | 6 | 48 | 3 | 156 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
53,626,429 | Background on view groups when using constraint layout | <p>I'm using ConstraintLayout to create my views for a while now, but it seems I always having it hard to create a layout that has several background colours in it just like the attached image.</p>
<p>Let's say we want to create the screens on the right without using any RecyclerView. Ignore everything except the card... | I'm using ConstraintLayout to create my views for a while now, but it seems I always having it hard to create a layout that has several background colours in it just like the attached image. Let's say we want to create the screens on the right without using any RecyclerView. Ignore everything except the cards and we ar... | android|android-constraintlayout | 2 | 2018-12-05T06:32:36.327Z | 2,018 | 12 | 6 | 2 | 1,840 | 3 | 588 | 54 | 2 | 0 | false | false | false | false | false | false | low |
53,371,111 | Why won't the text color in the app bar change? | <p>the color of the text and icons in the app bar continue to be white, even though I'm trying to set them to be brown. What's wrong with my styles?</p>
<pre><code><style name="HobbesActionBarStyle" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:background">@color/HobbesBackground<... | the color of the text and icons in the app bar continue to be white, even though I'm trying to set them to be brown. What's wrong with my styles? [CODE] | android | 0 | 2018-11-19T08:51:21.210Z | 2,018 | 11 | 8 | 0 | 51 | 3 | 152 | 47 | 1 | 1 | true | false | false | false | false | false | zero |
53,706,890 | Function returned undefined, expected Promise or value. although i am returning snapshot.val(); | <p>I am writing a cloud function for my project . its being last 12 hours that i am stuck with this error "Function returned undefined, expected Promise or value"
i have tried alot to remove it but not able to find how to solve it</p>
<pre><code>exports.Notify = functions.database.ref('blood_share/Notifications/{user}... | I am writing a cloud function for my project . its being last 12 hours that i am stuck with this error "Function returned undefined, expected Promise or value" i have tried alot to remove it but not able to find how to solve it [CODE] | android|firebase|google-cloud-functions | -1 | 2018-12-10T13:39:51.013Z | 2,018 | 12 | 13 | 0 | 52 | 3 | 234 | 95 | 3 | 1 | true | false | false | false | false | true | negative |
53,656,014 | How can i get images dynamically from drawable folder? | <p>I'm getting images by statically given the name like </p>
<p><code>{R.drawable.image1,R.drawable.image2,R.drawable.image3}</code></p>
<p>If I have some 50 images I cant give each and every file name in array so it needs to be dynamic how can I achieve this. And also please tell me where to put my dynamically code<... | I'm getting images by statically given the name like {R.drawable.image1,R.drawable.image2,R.drawable.image3} If I have some 50 images I cant give each and every file name in array so it needs to be dynamic how can I achieve this. And also please tell me where to put my dynamically code [CODE] | android|android-viewpager|swipe | 0 | 2018-12-06T16:44:46.787Z | 2,018 | 12 | 16 | 3 | 820 | 3 | 293 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
53,613,953 | How should I update the data in database to my users? | <p>I'm working on an app that needs to have it's data updated once a week. There are probably ways to do this by scheduling the app to wake up on a specific day and time and then do the work. Could I fetch the data myself, insert into the database and create an update for the app so that users would then have this new ... | I'm working on an app that needs to have it's data updated once a week. There are probably ways to do this by scheduling the app to wake up on a specific day and time and then do the work. Could I fetch the data myself, insert into the database and create an update for the app so that users would then have this new dat... | android | 0 | 2018-12-04T13:21:24.693Z | 2,018 | 12 | 13 | 1 | 55 | 3 | 351 | 53 | 1 | 0 | false | false | false | false | false | false | zero |
53,679,941 | How to change TextView content if Spinner getSelecteditem | <p>I have a json file like this </p>
<blockquote>
<p>{"hotels":[{"date_res":"03/12/2018","price":980,} {"date_res":"12/12/2018","price":496,}],</p>
</blockquote>
<p>And I added the value of date_res to a spinner,
What I want to do is change the price in TextView if the user select a date</p> | I have a json file like this {"hotels":[{"date_res":"03/12/2018","price":980,} {"date_res":"12/12/2018","price":496,}], And I added the value of date_res to a spinner, What I want to do is change the price in TextView if the user select a date | java|android|json | -1 | 2018-12-08T05:52:33.597Z | 2,018 | 12 | 5 | 5 | 55 | 3 | 243 | 57 | 3 | 0 | false | false | false | false | false | true | negative |
53,772,127 | Changing a TextView's style and text dynamically | <p>I'm trying to make an app like the one in this mockup:</p>
<p><strong>Supermarket</strong>
<a href="https://i.stack.imgur.com/lDn57.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lDn57.png" alt="Supermarket"></a></p>
<p>It's a very simple supermarket app. As you can see, there's a TextView at t... | I'm trying to make an app like the one in this mockup: Supermarket It's a very simple supermarket app. As you can see, there's a TextView at the bottom of the screen that tells me whether my Cart is empty, or has items in it. If the cart is not empty, the user is shown the total price he/she must pay. You can also noti... | android|android-layout|android-intent|textview|master-detail | 1 | 2018-12-14T00:50:15.073Z | 2,018 | 12 | 0 | 4 | 823 | 3 | 838 | 48 | 5 | 0 | false | false | false | false | false | false | low |
53,711,068 | How to use Scratch Files in Android Studio? | <p>Recently I came across a cool feature in Android Studio called scratch files. Just wanted to share it in Q and A Style.</p>
<p>What are scratch files and how to use them?</p> | Recently I came across a cool feature in Android Studio called scratch files. Just wanted to share it in Q and A Style. What are scratch files and how to use them? | java|android|android-studio|kotlin|intellij-idea | 23 | 2018-12-10T17:52:52.957Z | 2,018 | 12 | 17 | 0 | 9,020 | 3 | 163 | 43 | 5 | 0 | false | false | true | false | true | false | high |
53,682,054 | How to get onClick state? | <p>I have an ImageView which I have set <code>android:clickable="true"</code> and I use the <code>setColorFilter()</code> to add a color when the ImageView is clicked. </p>
<p>Is there a way I can get the state of the <code>onClick()</code> so that when the image is clicked once I can apply the color, for example <cod... | I have an ImageView which I have set android:clickable="true" and I use the setColorFilter() to add a color when the ImageView is clicked. Is there a way I can get the state of the onClick() so that when the image is clicked once I can apply the color, for example setColorFilter(#FFF) , and when the ImageView is clicke... | android|onclick | -1 | 2018-12-08T11:26:26.193Z | 2,018 | 12 | 11 | 5 | 61 | 3 | 401 | 25 | 2 | 0 | false | false | false | false | false | true | negative |
53,665,470 | Wait until Kotlin coroutine finishes in onCreateView() | <p>I have an initialization block in <code>onCreateView</code>, where some variables are assigned from SharedPreferences, DB or Network (currently from SharedPreferences).</p>
<p>I want to update views with these values in <code>onViewCreated</code>. But they update with empty values before a coroutine in <code>onCrea... | I have an initialization block in onCreateView , where some variables are assigned from SharedPreferences, DB or Network (currently from SharedPreferences). I want to update views with these values in onViewCreated . But they update with empty values before a coroutine in onCreateView finishes. How to wait until the co... | android|kotlin|android-fragments|kotlin-coroutines | 10 | 2018-12-07T08:03:36.620Z | 2,018 | 12 | 8 | 4 | 17,469 | 3 | 539 | 54 | 4 | 1 | true | false | true | true | true | false | medium |
53,568,659 | ActivityMainBindingImpl cannot be found | <p>This is from the google site:
A binding class is generated for each layout file. By default, the name of the class is based on the name of the layout file, converting it to Pascal case and adding the Binding suffix to it. The above layout filename is activity_main.xml so the corresponding generated class is Activity... | This is from the google site: A binding class is generated for each layout file. By default, the name of the class is based on the name of the layout file, converting it to Pascal case and adding the Binding suffix to it. The above layout filename is activity_main.xml so the corresponding generated class is ActivityMai... | android|android-databinding|kotlin-android-extensions | 19 | 2018-12-01T07:17:21.337Z | 2,018 | 12 | 7 | 5 | 15,934 | 3 | 712 | 39 | 3 | 3 | true | false | true | true | true | false | medium |
53,764,711 | Can't make listview it said array null | <p>I want to display contacts that I get from API using listview. But when I want to run it, it forced close. When I try to look the log that I made, the usernamefriendprofile array is null outside the response. Otherwise, the usernamefriendprofile array had a value inside the response. If I put the array adapter in re... | I want to display contacts that I get from API using listview. But when I want to run it, it forced close. When I try to look the log that I made, the usernamefriendprofile array is null outside the response. Otherwise, the usernamefriendprofile array had a value inside the response. If I put the array adapter in respo... | android | -2 | 2018-12-13T15:04:48.743Z | 2,018 | 12 | 15 | 3 | 65 | 3 | 521 | 38 | 1 | 1 | true | false | false | false | false | true | negative |
53,488,334 | Two buttons, one Activity | <p>I have two buttons in my notification which opens the same activity but sending as extra different data. Do I really need to create 2 pending intents and 2 intents? There is maybe some shorten version of this?</p>
<pre><code> Intent intent1 = new Intent(this, ResponseActivity.class); //same
intent1.p... | I have two buttons in my notification which opens the same activity but sending as extra different data. Do I really need to create 2 pending intents and 2 intents? There is maybe some shorten version of this? [CODE] | android|android-pendingintent | 1 | 2018-11-26T20:11:47.310Z | 2,018 | 11 | 20 | 0 | 68 | 3 | 216 | 25 | 2 | 1 | true | false | false | false | false | false | low |
53,701,043 | Ignore firebase related exceptions in Roboelectric unit test | <p>My Roboelectric unit tests are giving this exception when I try to initialise Firebase in the Application class.</p>
<p><code>java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process null. Make sure to call FirebaseApp.initializeApp(Context) first.</code></p>
<p>Is there any way wher... | My Roboelectric unit tests are giving this exception when I try to initialise Firebase in the Application class. java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process null. Make sure to call FirebaseApp.initializeApp(Context) first. Is there any way where I can ignore this exceptions a... | android|unit-testing|robolectric | 1 | 2018-12-10T07:14:19.587Z | 2,018 | 12 | 7 | 0 | 836 | 3 | 341 | 60 | 3 | 0 | false | false | false | false | false | false | low |
53,694,400 | update marker position every x time in asynctask | <p>I wanted to mock location of a marker on map. I have list of LatLng values store in ArrayList. I use this value to update on map every second. I need this function to works in AsyncTask so that my UI thread will still responsive.</p>
<p>Initially, I tried using <code>Thread.sleep()</code> but made application not r... | I wanted to mock location of a marker on map. I have list of LatLng values store in ArrayList. I use this value to update on map every second. I need this function to works in AsyncTask so that my UI thread will still responsive. Initially, I tried using Thread.sleep() but made application not responsive. [CODE] I also... | java|android|android-asynctask | 0 | 2018-12-09T16:38:47.920Z | 2,018 | 12 | 16 | 6 | 72 | 3 | 501 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
53,376,162 | Migrating RecyclerView from Activity to Fragment - can't use findViewById | <p>I copied the following code from the MainActivity to a separate fragment, but I can't get <code>findViewById</code> to work:
I get "cannot resolve method findViewById(int)"
these are the related files:</p>
<p>**Also as a beginner, could you let me know if there's a general problem with my code that needs to fixed?<... | I copied the following code from the MainActivity to a separate fragment, but I can't get findViewById to work: I get "cannot resolve method findViewById(int)" these are the related files: **Also as a beginner, could you let me know if there's a general problem with my code that needs to fixed? MyFragment.java: [CODE] ... | android | -1 | 2018-11-19T13:55:07.367Z | 2,018 | 11 | 13 | 0 | 73 | 3 | 391 | 73 | 1 | 4 | true | false | false | false | false | true | negative |
44,318,549 | How to post back the data from an okhttp async thread to the ArrayAdapter in main thread? | <p>My intention is to get back data fetched from a server via an okhttp interface. The okhttp method is run in async and therefore on a separate thread from the activity. The activity in question is a fragment that creates a listView. Im trying to populate that listView with the data from okhttp by means of an ArrayAda... | My intention is to get back data fetched from a server via an okhttp interface. The okhttp method is run in async and therefore on a separate thread from the activity. The activity in question is a fragment that creates a listView. Im trying to populate that listView with the data from okhttp by means of an ArrayAdapte... | android|listview|okhttp | 0 | 2017-06-01T23:23:48.467Z | 2,017 | 6 | 23 | 3 | 769 | 3 | 405 | 89 | 3 | 1 | true | false | false | false | false | false | zero |
44,249,754 | How can I reload recycleview? | <p>This is my scenario:</p>
<p><code>Viewpager</code> has two <code>Fragment</code>s. Including <code>HistoryFragment</code>, which loads a <code>RecycleView</code> on creation.</p>
<p>I go ahead and add an item to the database from another <code>Activity</code>, however, it doesn't refresh the <code>RecycleView</cod... | This is my scenario: Viewpager has two Fragment s. Including HistoryFragment , which loads a RecycleView on creation. I go ahead and add an item to the database from another Activity , however, it doesn't refresh the RecycleView , I need to close the app and load it again to see it refreshed. How would you handle this?... | android|android-fragments|rx-java2 | 1 | 2017-05-29T20:11:07.457Z | 2,017 | 5 | 20 | 0 | 1,537 | 3 | 447 | 29 | 3 | 0 | false | false | false | false | false | false | low |
44,138,142 | Dynamically create controls in android using Kotlin | <p>Using java, to create a control dynamically we use something like
<code>TextView textview=new TextView(getApplicationContext());</code> </p>
<p>how can the same be done in Kotlin? <code>var textview = TextView</code>
does't work, nor does <code>var textview as TextView</code></p>
<p>unfortunately, haven't even en... | Using java, to create a control dynamically we use something like TextView textview=new TextView(getApplicationContext()); how can the same be done in Kotlin? var textview = TextView does't work, nor does var textview as TextView unfortunately, haven't even encountered any good kotlin tutorials for android. update-Actu... | android|kotlin|kotlin-android-extensions | 1 | 2017-05-23T14:49:03.253Z | 2,017 | 5 | 14 | 1 | 1,284 | 3 | 383 | 51 | 3 | 0 | false | false | false | false | false | false | low |
44,123,309 | How do I open different activities when receiving notification from Firebase | <p>In my app there are different categories, a main page(MainActivity), comments activities and Chat activity etc.
When i receive a notification, either from comments, Chat or main page, it still opens main activity. What I want is if I receive a notification regarding Chat it should open chat activity and if regarding... | In my app there are different categories, a main page(MainActivity), comments activities and Chat activity etc. When i receive a notification, either from comments, Chat or main page, it still opens main activity. What I want is if I receive a notification regarding Chat it should open chat activity and if regarding co... | android|firebase|push-notification | -2 | 2017-05-22T22:56:57.017Z | 2,017 | 5 | 22 | 0 | 1,540 | 3 | 392 | 76 | 3 | 0 | false | false | false | false | false | true | negative |
44,005,913 | Android requestLocationUpdates with GPS null | <pre><code>private void getLocation(){
locationManager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
List<String> providers = locationManager.getAllProviders();
for (String provider : providers) {
Log.e("GPS_provider: ", provider);
}
Criteria criteria = n... | [CODE] I'm trying to read position before doing an HTTP GET to retrieve my records: [CODE] } Even if i check if GPS is turned on, i always get null when i try to use GPS position, and then it takes position from NETWORK. For this reason i tried to setup GPS setting to "only GPS", and i get NULL, so no position. I read ... | java|android|android-asynctask|android-location|android-gps | 1 | 2017-05-16T15:41:18.470Z | 2,017 | 5 | 15 | 1 | 2,052 | 3 | 423 | 44 | 5 | 2 | true | false | false | false | false | false | low |
43,936,705 | Android list view swipe right to reveal button | <p>I wanted to achieve something like swipe right to reveal the button on each list view row in Android development.</p>
<p>I have a fully working list view which fetch and populate the data dynamically:</p>
<pre><code>public class ProfilePastEvent extends Fragment{
View pastEventView;
Context context;
private ListView... | I wanted to achieve something like swipe right to reveal the button on each list view row in Android development. I have a fully working list view which fetch and populate the data dynamically: [CODE] However, this list view works like user click on certain row to open up a new intent. How can I implement the swipe rig... | java|android|listview|animation | 4 | 2017-05-12T11:26:43.777Z | 2,017 | 5 | 11 | 4 | 3,588 | 3 | 372 | 46 | 4 | 1 | true | false | true | false | false | false | low |
43,957,504 | How to add Radio Group To this XML FIle | <p>I just created a 2 <code>radiobutton</code> In XML FIle All I need too add a <code>radiogroup</code> and put this two radio buttons inside the <code>radiogroup</code> but with the same VIew
here's my xml file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schema... | I just created a 2 radiobutton In XML FIle All I need too add a radiogroup and put this two radio buttons inside the radiogroup but with the same VIew here's my xml file [CODE] sorry if any thing is not clear I hope these gonna be understandable | android|xml | 1 | 2017-05-13T20:04:18.030Z | 2,017 | 5 | 20 | 5 | 3,590 | 3 | 245 | 39 | 2 | 1 | true | false | true | false | false | false | low |
43,933,671 | Conflict by updating the version of the google-services | <p>I try to update the version of my librairies in my app.
The problem is I have this error :</p>
<pre><code>Error:Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is avai... | I try to update the version of my librairies in my app. The problem is I have this error : [CODE] I really don't understand because I change the classpath to the last versions too. What is wrong ? This is my gradle app : [CODE] This is my Gradle project : [CODE] | android|android-studio|android-gradle-plugin | 0 | 2017-05-12T09:05:26.627Z | 2,017 | 5 | 9 | 4 | 1,288 | 3 | 262 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
44,357,872 | ImmersiveModeConfirmation with Espresso 2.2.2 | <p>Looks like some virtual devices on Google cloud test servers can't execute tests properly because of the Immersive mode confirmation popup (shown here: <a href="https://developer.android.com/training/system-ui/immersive.html" rel="nofollow noreferrer">https://developer.android.com/training/system-ui/immersive.html</... | Looks like some virtual devices on Google cloud test servers can't execute tests properly because of the Immersive mode confirmation popup (shown here: https://developer.android.com/training/system-ui/immersive.html ) - is there a way to automatically close that popup with Espresso? Basically my code works in a local e... | android|junit4|android-espresso|android-junit | 2 | 2017-06-04T19:15:24.247Z | 2,017 | 6 | 19 | 6 | 1,290 | 3 | 392 | 45 | 4 | 1 | true | false | false | false | false | false | low |
44,133,918 | Android Realm Database not updating Record | <p>I am new to Android Development i am trying to sort item position in <code>Recyclerview</code> i am useing Realm Database and my data-set for Adapter is <code>RealmResults<ShoppingList></code></p>
<p>here is my <code>Adapter</code> please take look my <code>moveItemDown</code> and <code>updateItemPosition</co... | I am new to Android Development i am trying to sort item position in Recyclerview i am useing Realm Database and my data-set for Adapter is RealmResults<ShoppingList> here is my Adapter please take look my moveItemDown and updateItemPosition method i m trying to update item position in updateItemPosition Method but it'... | android|android-recyclerview|realm | 1 | 2017-05-23T11:44:44.043Z | 2,017 | 5 | 11 | 1 | 780 | 3 | 383 | 42 | 3 | 1 | true | false | false | false | false | false | low |
44,214,744 | Check android:allowBackup value programmatically | <p>As I have studied about the security issues in Android, one good practice is to check if the <code>allowBackup</code> and <code>backupAgent</code> has been set in the <code>AndroidManifest.xml</code>.</p>
<p>How to check <code>android:allowBackup</code> value of an app programmatically?</p> | As I have studied about the security issues in Android, one good practice is to check if the allowBackup and backupAgent has been set in the AndroidManifest.xml . How to check android:allowBackup value of an app programmatically? | java|android|android-manifest|android-security|android-backup-service | 3 | 2017-05-27T08:36:32.753Z | 2,017 | 5 | 8 | 5 | 1,036 | 3 | 229 | 48 | 5 | 0 | false | false | false | false | false | false | low |
44,307,544 | Android - How to get from string resources all the elements which contains two or more similar words on their names | <p>I am looking about using the Android's resources and i want to get for example from the strings.xml file all the elements that include the word "menu", all of this is for managing the multiple section translations.</p>
<p>My XML is this </p>
<pre><code><resources>
<string name="app_name">MyApp</stri... | I am looking about using the Android's resources and i want to get for example from the strings.xml file all the elements that include the word "menu", all of this is for managing the multiple section translations. My XML is this [CODE] and for this i want to get all the elements that contain the "option" word in their... | java|android|string|resources | 0 | 2017-06-01T12:27:48.287Z | 2,017 | 6 | 12 | 3 | 270 | 3 | 795 | 115 | 4 | 1 | true | false | false | false | false | false | zero |
44,148,966 | AndroidViewModel vs ViewModel | <p>With the introduction of the Android Architecture Components library, several new classes were introduced, including <code>AndroidViewModel</code> and <code>ViewModel</code>. However, I'm having trouble figuring out the difference between these two classes. The <a href="https://developer.android.com/reference/androi... | With the introduction of the Android Architecture Components library, several new classes were introduced, including AndroidViewModel and ViewModel . However, I'm having trouble figuring out the difference between these two classes. The documentation succinctly describes AndroidViewModel as follows: Application context... | android|mvvm|viewmodel|android-architecture-components|android-viewmodel | 237 | 2017-05-24T04:24:20.153Z | 2,017 | 5 | 4 | 2 | 71,182 | 3 | 473 | 29 | 5 | 0 | false | false | true | true | true | false | high |
44,075,429 | How to access and pass parameters to the modules of an Android Instant App | <p>With normal installed apps it's possible to use the technique of <b>Deep Linking</b> in order to not only open a specific application from an URL but also to redirect it to a specific section/function such as a specific Facebook post or specific coordinates on a map.</p>
<p>Since I've read that with Instant Apps th... | With normal installed apps it's possible to use the technique of Deep Linking in order to not only open a specific application from an URL but also to redirect it to a specific section/function such as a specific Facebook post or specific coordinates on a map. Since I've read that with Instant Apps this won't be possib... | android|deep-linking|android-instant-apps | 20 | 2017-05-19T17:02:50.553Z | 2,017 | 5 | 17 | 4 | 27,662 | 3 | 917 | 74 | 3 | 0 | false | false | true | true | true | false | medium |
44,045,860 | In android studio why layout width matchparent changes to 368dp automatically? | <p>I am doing a project using android studio. In android studio when I fix <code>layout width</code> as <code>matchparent</code>it automatically changes to <code>368dp</code>. I need <code>layoutwidth</code> as <code>matchparent</code> but changes by default. </p>
<p>why?</p>
<p>kindly help me to fix this problem.</p... | I am doing a project using android studio. In android studio when I fix layout width as matchparent it automatically changes to 368dp . I need layoutwidth as matchparent but changes by default. why? kindly help me to fix this problem. | android-studio-2.1 | 3 | 2017-05-18T10:56:20.773Z | 2,017 | 5 | 10 | 3 | 1,552 | 3 | 234 | 78 | 1 | 0 | false | false | false | false | false | false | low |
44,258,241 | Xamarin c# android: change color text in a substring? | <p>I need to highlight some words in a string with different colors. The string will then be assigned to the Text property of a TextView. I did not find a simple and effective method to do this. Can you help me? Thank you . Maddox</p> | I need to highlight some words in a string with different colors. The string will then be assigned to the Text property of a TextView. I did not find a simple and effective method to do this. Can you help me? Thank you . Maddox | c#|android|xamarin|colors|substring | 3 | 2017-05-30T09:19:35.140Z | 2,017 | 5 | 9 | 1 | 1,808 | 3 | 227 | 53 | 5 | 0 | false | false | false | false | false | false | low |
44,162,084 | Xamarin.android Default FirebaseApp is not initialized in this process | <p>I face issue with get token from firebase (push notification)</p>
<pre><code>Default FirebaseApp is not initialized in this process com.ready_apps.Nebka.Business. Make sure to call FirebaseApp.initializeApp(Context) first.
</code></pre>
<p>even I called FirebaseApp.InitializeApp(this); in many places</p>
<p>MyAp... | I face issue with get token from firebase (push notification) [CODE] even I called FirebaseApp.InitializeApp(this); in many places MyApplication (that extend Application) , in onCreate of Activity where I call FirebaseInstanceId.Instance?.Token; | android|firebase|push-notification|xamarin.android|firebase-cloud-messaging | 11 | 2017-05-24T14:59:33.007Z | 2,017 | 5 | 14 | 2 | 6,163 | 3 | 245 | 70 | 5 | 1 | true | false | true | false | true | false | medium |
44,307,936 | Didn’t find class “android.support.constraint.ConstraintLayout” on path: DexPathList in Xamarin.Android | <p>I have very simple xamarin classic app with following .axml file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">... | I have very simple xamarin classic app with following .axml file [CODE] and following .cs file [CODE] I found next code for .gradle to enable constraint layout [CODE] But, of course, it doesn't work in Xamarin.Android. I tried to install Xamarin Android Constraint Layout 1.0.0-beta5 but it doesn't work for Mono.Android... | c#|xamarin|xamarin.android|android-constraintlayout | 0 | 2017-06-01T12:45:17.177Z | 2,017 | 6 | 12 | 3 | 1,047 | 3 | 364 | 103 | 4 | 3 | true | false | false | false | false | false | zero |
43,947,561 | Two TextWatchers creating an infinite loop | <p>I have 3 EditText fields in my android app that I'm trying to have communicate with each other. They are order total, amount received, and tip. The user enters the price of the order in the first EditText. The other two EditTexts are the ones I'm wanting to modify based on the value of each one. If the user enters 2... | I have 3 EditText fields in my android app that I'm trying to have communicate with each other. They are order total, amount received, and tip. The user enters the price of the order in the first EditText. The other two EditTexts are the ones I'm wanting to modify based on the value of each one. If the user enters 20.0... | android|textwatcher | 3 | 2017-05-12T23:04:21.070Z | 2,017 | 5 | 23 | 4 | 537 | 3 | 904 | 42 | 2 | 1 | true | false | false | false | false | false | low |
44,355,817 | How to detect which dynamically created button inside a Fragment was clicked, from Activity? | <p>I have a Fragment class that dynamically creates a grid of Buttons. An instance of that fragment is then created within the main activity which displays the grid. Here is my code:</p>
<p>Grid.java</p>
<pre><code>public class Grid extends Fragment {
LinearLayout myLayout;
@Override
public View onCreat... | I have a Fragment class that dynamically creates a grid of Buttons. An instance of that fragment is then created within the main activity which displays the grid. Here is my code: Grid.java [CODE] MainActivity.java [CODE] And in addition here is my content_mainactivity.xml [CODE] So my question is, how can I detect if ... | java|android|android-fragments | 0 | 2017-06-04T15:42:51.783Z | 2,017 | 6 | 15 | 6 | 32 | 3 | 464 | 92 | 3 | 3 | true | false | false | false | false | false | zero |
44,005,014 | Opening database inside fragment | <p>I'm having trouble opening my database inside fragment java file.
I've used this <a href="https://stackoverflow.com/questions/23073189/opening-android-sqlite-database-in-fragment">answer</a> which pretty much similar to my problem, though It's not working</p>
<pre><code>public class fragmentBmi extends Fragment {
... | I'm having trouble opening my database inside fragment java file. I've used this answer which pretty much similar to my problem, though It's not working [CODE] error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(jav... | java|android|fragment | 1 | 2017-05-16T14:59:30.347Z | 2,017 | 5 | 14 | 1 | 1,056 | 3 | 591 | 32 | 3 | 1 | true | false | false | false | false | false | low |
43,998,661 | How to increase the font size of method trace view in Android Studio? | <p>In Android Studio, I captured a <a href="https://developer.android.com/studio/profile/am-methodtrace.html#trace" rel="noreferrer">Method Trace</a> use <a href="https://developer.android.com/studio/profile/am-cpu.html#running" rel="noreferrer">CPU Monitor</a>, but on my computer (screen size is 1920*1080), the font o... | In Android Studio, I captured a Method Trace use CPU Monitor , but on my computer (screen size is 1920*1080), the font of the method name in Trace View is so small that I can't see it clearly. So I want to know any one has the solution to change the size of trace view. The method trace looks like the following figure: ... | android-studio | 7 | 2017-05-16T10:16:29.847Z | 2,017 | 5 | 10 | 1 | 291 | 3 | 326 | 69 | 1 | 0 | false | false | false | false | false | false | medium |
44,330,479 | Always displaying Home screen before exiting the app | <p>I have a Home screen and a sliding menu.
When the app starts the Home screen is displayed.
If you open the menu and click on on item, a new Activity (A1) is launched. This new Activity A1 can launch an Activity A1b. In that case if the user presses the back button he should go back to A1.
If you select another item ... | I have a Home screen and a sliding menu. When the app starts the Home screen is displayed. If you open the menu and click on on item, a new Activity (A1) is launched. This new Activity A1 can launch an Activity A1b. In that case if the user presses the back button he should go back to A1. If you select another item on ... | android|android-activity | 0 | 2017-06-02T13:46:10.250Z | 2,017 | 6 | 13 | 4 | 36 | 3 | 862 | 52 | 2 | 0 | false | false | false | false | false | false | zero |
44,121,587 | Jsoup Google Search Results | <p>I am attempting to parse the HTML of google's search results to grab the title of each result. This is done through android in a private nested class shown below:</p>
<pre><code>private class WebScraper extends AsyncTask<String, Void, String> {
public WebScraper() {}
@Override
protected String d... | I am attempting to parse the HTML of google's search results to grab the title of each result. This is done through android in a private nested class shown below: [CODE] an example url I am trying to parse: http://www.google.com/#q=i+might+site:genius.com For some reason, when i run the above code, my count is printed ... | java|android|web-scraping|jsoup|google-search | 1 | 2017-05-22T20:26:30.563Z | 2,017 | 5 | 20 | 0 | 4,132 | 3 | 475 | 27 | 5 | 1 | true | false | true | false | false | false | low |
44,054,548 | Have Up button act the same as android back button | <p>My android application has the following activity flow</p>
<p>Listing -> Buy -> Sell
From the listing when an item is clicked/selected an id is passed to buy to pull the relevant data from the server. If a user owns a certain item there will be a sell option as well from the buy screen (which doubles as an overvie... | My android application has the following activity flow Listing -> Buy -> Sell From the listing when an item is clicked/selected an id is passed to buy to pull the relevant data from the server. If a user owns a certain item there will be a sell option as well from the buy screen (which doubles as an overview of said it... | android | 2 | 2017-05-18T17:39:36.403Z | 2,017 | 5 | 17 | 3 | 293 | 3 | 949 | 50 | 1 | 0 | false | false | false | false | false | false | low |
44,346,959 | android:elevation applied to toolbar AND its title | <p>I use a very simple style to format my Toolbar, I use android:elevation to display a shadow under the Toolbar like this:</p>
<pre><code><style
name="AppToolbarTheme"
parent="AppTheme">
<item name="android:background">@color/colorPrimary</item>
<item name="android:titleTextColor... | I use a very simple style to format my Toolbar, I use android:elevation to display a shadow under the Toolbar like this: [CODE] And I'm applying it simply like that: [CODE] The shadow displays under the toolbar like I want, howerver it is also somehow applied to the title of the toolbar which looks very weird: | android | 5 | 2017-06-03T17:54:49.037Z | 2,017 | 6 | 17 | 5 | 1,061 | 3 | 311 | 50 | 1 | 2 | true | false | false | false | false | false | low |
43,977,826 | How to open the push notifications and read the text in Android/iOS device from Appium? | <p>1.When the device receives push how to automate in Appium so that it will open the push notification and read the text.</p> | 1.When the device receives push how to automate in Appium so that it will open the push notification and read the text. | android|iphone|push-notification|appium | 1 | 2017-05-15T11:03:28.807Z | 2,017 | 5 | 11 | 0 | 5,158 | 3 | 119 | 87 | 4 | 0 | false | false | true | false | false | false | low |
44,341,670 | Dressing a mannequin with different items in android | <p>I am trying to implement similar screen. Unable to add different items at proper place. I want to add shoes at the proper place.</p>
<p><img src="https://i.stack.imgur.com/cYLwu.jpg" alt="enter image description here"></p>
<p><strong>Layout</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?><R... | I am trying to implement similar screen. Unable to add different items at proper place. I want to add shoes at the proper place. Layout [CODE] [CODE] | android-layout | -19 | 2017-06-03T07:45:29.913Z | 2,017 | 6 | 7 | 5 | 553 | 3 | 149 | 52 | 1 | 2 | true | false | false | false | false | true | negative |
44,035,213 | token authentication using retrofit | <p>The scenario is that I have a login activity that sends username and passwords to the php-rest-api and if the response is ok it will show a new activity (here it is a test activity).</p>
<p>Then, in the new activity, with a token that I got from the login procedure, I can query the database by retrofit.</p>
<p>The... | The scenario is that I have a login activity that sends username and passwords to the php-rest-api and if the response is ok it will show a new activity (here it is a test activity). Then, in the new activity, with a token that I got from the login procedure, I can query the database by retrofit. The problem is that I ... | android|retrofit2 | 2 | 2017-05-17T21:41:46.150Z | 2,017 | 5 | 21 | 2 | 12,585 | 3 | 2,484 | 35 | 2 | 3 | true | false | true | true | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.