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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53,395,818 | #region in axml file for xamarin.android | <p>hello I am trying to make my code in the axml file more readable I have a lot of switches in my program and I want to shrink this part of the code. I read something about it and I found </p>
<pre><code><!--#region Name-->
My Code
<!--#endregion-->
</code></pre>
<p>But it is referred as a normal c... | hello I am trying to make my code in the axml file more readable I have a lot of switches in my program and I want to shrink this part of the code. I read something about it and I found [CODE] But it is referred as a normal comment. Could you help me out? I am using Visual Studio 2017 in case it is important to mention... | xamarin.android | 0 | 2018-11-20T15:01:53.903Z | 2,018 | 11 | 15 | 1 | 280 | 1 | 321 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
53,603,263 | Can't access an integer field through the JNI in Android project | <p>I have an Android project for which I have the following code in my c file</p>
<pre><code>JNIEXPORT void JNICALL Java_com_mersoft_labconco_controller_JNIStore_closeUART
(JNIEnv *env, jobject thiz) {
jclass SerialPortClass = (*env)->GetObjectClass(env, thiz);
jclass FileDescriptorClass = (*env)-&g... | I have an Android project for which I have the following code in my c file [CODE] And I expose all of my JNI methods in a separate class called JNITStore [CODE] This is giving me an error saying JNI ERROR: GetIntField on invalid reference (0x0) As far as I can tell, my C code correctly sets up the file descriptor to ge... | android|android-ndk|java-native-interface | 0 | 2018-12-03T23:02:15.690Z | 2,018 | 12 | 23 | 0 | 280 | 1 | 652 | 64 | 3 | 4 | true | false | false | false | false | false | zero |
53,771,940 | How can I get the DB to stop overwriting previous records? | <p>So in the picture, the entire score column gets overwritten everytime a user finishes the quiz. I'm not quite sure which method I'm supposed to use to get it to save scores individually. I've tried to update instead of insert as well, and had no luck with it. I was using shared preferences to save the highest score ... | So in the picture, the entire score column gets overwritten everytime a user finishes the quiz. I'm not quite sure which method I'm supposed to use to get it to save scores individually. I've tried to update instead of insert as well, and had no luck with it. I was using shared preferences to save the highest score and... | java|android|sql|sqlite | 0 | 2018-12-14T00:24:59.590Z | 2,018 | 12 | 0 | 4 | 280 | 1 | 484 | 58 | 4 | 3 | true | false | false | false | false | false | zero |
53,716,316 | react-native - itemTextStyle and itemStyle not working in Android | <p>Hi guys I have a problem there. I want to style my picker item fontSize, I use itemTextStyle prop, but it seems only working on iOS. How to make it also works in Android? Here's my code. Thanks! </p>
<pre><code><Picker
selectedValue={this.state.language}
style={{ height: 50, width: 160, marginTop: -12 }}
... | Hi guys I have a problem there. I want to style my picker item fontSize, I use itemTextStyle prop, but it seems only working on iOS. How to make it also works in Android? Here's my code. Thanks! [CODE] | android|reactjs|react-native | 0 | 2018-12-11T01:59:45.433Z | 2,018 | 12 | 1 | 1 | 536 | 1 | 201 | 65 | 3 | 1 | true | false | false | false | false | false | zero |
53,444,134 | How to Select Specific Range of rows (e.g 20 to 30) from Sqlite Database and then Randomize them | <p>Lets Suppose you have a Database of 40 questions</p>
<p>Now is it possible to pick question 1 to 10 by order and then random pick question b/w them</p>
<p>e.g i have 40 question it picks question 1 through 10 question above 10 are not picked and then ask question 1 to 10 in random order</p>
<pre><code> public ... | Lets Suppose you have a Database of 40 questions Now is it possible to pick question 1 to 10 by order and then random pick question b/w them e.g i have 40 question it picks question 1 through 10 question above 10 are not picked and then ask question 1 to 10 in random order [CODE] i have tried doing [CODE] but it only l... | android-studio|android-sqlite | 0 | 2018-11-23T09:44:12.600Z | 2,018 | 11 | 9 | 4 | 25 | 1 | 504 | 96 | 2 | 2 | true | false | false | false | false | false | zero |
53,469,599 | What happens to a mobile app if rewritten by new vendor | <p>We currently have a mobile app for our website. It is a free news website with videos and articles. The current mobile app is developed in house and is outdated. We are looking to hire a third party vendor to rebuild the mobile app from the ground app. Will the current end users need to uninstall the current mob... | We currently have a mobile app for our website. It is a free news website with videos and articles. The current mobile app is developed in house and is outdated. We are looking to hire a third party vendor to rebuild the mobile app from the ground app. Will the current end users need to uninstall the current mobile app... | android|ios|mobile|web-applications|mobile-safari | 0 | 2018-11-25T16:35:37.723Z | 2,018 | 11 | 16 | 6 | 25 | 1 | 452 | 55 | 5 | 0 | false | false | false | false | false | false | zero |
53,570,463 | viewpager with one listview into one fragment | <p>I am using android studio. I am trying to have view-pager with 3 view. i use one fragment with alistview , but with different adapters (get some data from database). moving between pages will change the adapter, but same fragment. I am doing so to avoid having 3 fragments each with its data-adapter, that may use pho... | I am using android studio. I am trying to have view-pager with 3 view. i use one fragment with alistview , but with different adapters (get some data from database). moving between pages will change the adapter, but same fragment. I am doing so to avoid having 3 fragments each with its data-adapter, that may use phone ... | android|listview|android-viewpager|fragment | 0 | 2018-12-01T11:47:45.220Z | 2,018 | 12 | 11 | 5 | 25 | 1 | 514 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
53,576,377 | For loop last item issue | <p>I am using a for loop in another for loop, Problem is I want Left options, Right Options and answers, but only getting last item of each. how will I get that? Please help me out</p>
<pre><code> for (int i = 0; i < jsonArray.length(); i++) {
DataModel model = new DataModel(... | I am using a for loop in another for loop, Problem is I want Left options, Right Options and answers, but only getting last item of each. how will I get that? Please help me out [CODE] | android|loops | 0 | 2018-12-02T00:48:31.167Z | 2,018 | 12 | 0 | 6 | 25 | 1 | 184 | 24 | 2 | 1 | true | false | false | false | false | false | zero |
53,579,997 | Why people use InputStream for loading files from assets folder but FileInputStream when loading files from internal storage? | <p>Why people use InputStream for loading files from assets folder but use FileInputStream when loading files from internal storage ?
Can't I just use FileInputStream for both the cases ?</p>
<p>NOTE : I am a beginner in both Android and Java Programming Language.
In Java I've used FileInputStream for File Handling pu... | Why people use InputStream for loading files from assets folder but use FileInputStream when loading files from internal storage ? Can't I just use FileInputStream for both the cases ? NOTE : I am a beginner in both Android and Java Programming Language. In Java I've used FileInputStream for File Handling purposes thou... | java|android|android-studio|fileinputstream|fileoutputstream | -1 | 2018-12-02T11:59:58.833Z | 2,018 | 12 | 11 | 6 | 25 | 1 | 323 | 125 | 5 | 0 | false | false | false | false | false | true | negative |
53,594,828 | How to remove unneccesary View behind DatePickerDialog? | <p>I implemented this example from <a href="https://www.youtube.com/watch?v=hwe1abDO2Ag" rel="nofollow noreferrer">here</a>. There in that example you can see he is running with a dialog style like this <a href="https://i.stack.imgur.com/T7i8G.png" rel="nofollow noreferrer">old style for DatePickerDialog without border... | I implemented this example from here . There in that example you can see he is running with a dialog style like this old style for DatePickerDialog without border When I use this, I can clearly see an additional view behind that dialog: date picker dialog with border How can I remove that additional view behind MY date... | android-dialog|android-datepicker|datepickerdialog | 0 | 2018-12-03T13:24:33.633Z | 2,018 | 12 | 13 | 0 | 25 | 1 | 335 | 55 | 3 | 0 | false | false | false | false | false | false | zero |
53,695,775 | force stop when i change theme in manifest | <p>I change <code>android:theme="@style/AppTheme"></code> to <code>android:theme="@android:style/Theme.Holo"></code> for change the theme without change anything but when I run AVD my app force stopped.</p> | I change android:theme="@style/AppTheme"> to android:theme="@android:style/Theme.Holo"> for change the theme without change anything but when I run AVD my app force stopped. | android|android-studio | -2 | 2018-12-09T19:15:55.240Z | 2,018 | 12 | 19 | 6 | 25 | 1 | 173 | 42 | 2 | 0 | false | false | false | false | false | true | negative |
53,720,285 | 'Tab' button deletes code instead of push code forward | <p>I'm using android studio version 3.2.1 'October 9' and in both Java and XML editor, the <code>Tab</code> button (when multiple lines selected) deletes selected code with 3 space characters instead of pushing selected code forward!</p> | I'm using android studio version 3.2.1 'October 9' and in both Java and XML editor, the Tab button (when multiple lines selected) deletes selected code with 3 space characters instead of pushing selected code forward! | android-studio|tabs|editor | 0 | 2018-12-11T08:41:09.810Z | 2,018 | 12 | 8 | 1 | 25 | 1 | 217 | 54 | 3 | 0 | false | false | false | false | false | false | zero |
53,529,334 | Empty cardview when scrolling | <p>I have problem with Cardview inside RecyclerView. Card contains ImageView and Textbox. At the beggining all cards are on the screen, but after scrolling down and scrolling up on the screen between are empty spaces.</p>
<p>cardview layout</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout ... | I have problem with Cardview inside RecyclerView. Card contains ImageView and Textbox. At the beggining all cards are on the screen, but after scrolling down and scrolling up on the screen between are empty spaces. cardview layout [CODE] Adapter [CODE] EventsFragment [CODE] EventsActivity [CODE] menu.axml (container fo... | android|xamarin|android-recyclerview|android-cardview | 0 | 2018-11-28T22:55:06.487Z | 2,018 | 11 | 22 | 2 | 281 | 1 | 593 | 29 | 4 | 6 | true | false | false | false | false | false | zero |
53,770,134 | How to set tabBackground of TabLayout circle indicator | <p>I have a <code>Tablayout</code> as onboarding indicators. I want to set the colors of indicators when onboarding background change from dark to light :</p>
<pre><code><android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_... | I have a Tablayout as onboarding indicators. I want to set the colors of indicators when onboarding background change from dark to light : [CODE] This is the background : [CODE] I created a new light background : [CODE] Dark screen Light screen I tried : [CODE] And : [CODE] It is not working, as you can see in the resu... | android|android-tablayout | 1 | 2018-12-13T21:12:10.547Z | 2,018 | 12 | 21 | 3 | 537 | 1 | 324 | 54 | 2 | 5 | true | false | false | false | false | false | low |
53,715,512 | JUnit/Espresso: "empty test suite" | <p>Far too often in Android Studio I run into this problem: I can run the entire suite of UI Tests just fine, but cannot run a single file or a single test case. When I try, I will get an error such as:</p>
<pre><code>Process finished with exit code 1
Class not found: "com.example.MyTest"Empty test suite.
</code></pre... | Far too often in Android Studio I run into this problem: I can run the entire suite of UI Tests just fine, but cannot run a single file or a single test case. When I try, I will get an error such as: [CODE] | android|android-studio|junit|android-espresso | 2 | 2018-12-10T23:59:38.490Z | 2,018 | 12 | 23 | 0 | 793 | 1 | 206 | 34 | 4 | 1 | true | false | false | false | false | false | low |
53,761,825 | Java.io.FileNotFoundException when using retrofit2 to upload images | <p>When I tried to use retrofit2 to upload images, I got this error</p>
<blockquote>
<p>:java.io.FileNotFoundException(No such file or directory).</p>
</blockquote>
<pre><code>HashMap<String, RequestBody> partMap = new HashMap<>();
file = new File(draggablePresent.getImageUrls().valueAt(0)) ... | When I tried to use retrofit2 to upload images, I got this error :java.io.FileNotFoundException(No such file or directory). [CODE] I got the error: E/TAGpppp: java.io.FileNotFoundException: file:/data/user/0/com.yaoyaodate.www.yaoyaodate/cache/cropped_1544702564825.jpg (No such file or directory) I added these code : [... | java|android|upload|retrofit2 | 0 | 2018-12-13T12:25:49.813Z | 2,018 | 12 | 12 | 3 | 793 | 1 | 812 | 67 | 4 | 4 | true | false | false | false | false | false | zero |
53,363,589 | Why doesn't the margin apply on this Button? | <p>I am pro grammatically creating buttons and specifying the height and width of each prior to adding it to a Grid View:</p>
<pre><code>Button discountButton = new Button(this, null, 0, R.style.discount_select_button);
discountButton.setText("blah");
discountButton.setWidth(300);
discountButton.setHeight(300);
discou... | I am pro grammatically creating buttons and specifying the height and width of each prior to adding it to a Grid View: [CODE] The button utilises this style, all items defined within the style get applied except for "layout_margin", why could this be? [CODE] When I apply all the above properties programmatically, all a... | android | 0 | 2018-11-18T17:25:02.533Z | 2,018 | 11 | 17 | 6 | 26 | 1 | 419 | 44 | 1 | 2 | true | false | false | false | false | false | zero |
53,403,705 | How do I fix Firestore not updating on my Phone (AndroidStudio apk deployment) | <p>The error is:</p>
<p><code>D/ShopsCollectionDisplaye: FromDBToShopsCollection: Doc{id=shop_test_Fb_1, shopImg=2131165326}
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.app.tacaalacaraman.wortheat, PID: 10527
java.lang.RuntimeException: Could not deserialize object. ... | The error is: D/ShopsCollectionDisplaye: FromDBToShopsCollection: Doc{id=shop_test_Fb_1, shopImg=2131165326} D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.app.tacaalacaraman.wortheat, PID: 10527 java.lang.RuntimeException: Could not deserialize object. Failed to convert value o... | android|google-cloud-firestore|persistence|avd | 0 | 2018-11-21T00:37:06.457Z | 2,018 | 11 | 0 | 2 | 26 | 1 | 498 | 78 | 4 | 0 | false | false | false | false | false | false | zero |
53,560,989 | Implementing the Android NavDrawer across all activities | <p>I have created an Activity in Android Studio and selected the Navigation Drawer layout. Android has then created an automated navigation layout that has a drawer than can be pulled out and provides me with navigation options.</p>
<p>I have edited all of the options to suit my navigation and also edited the images. ... | I have created an Activity in Android Studio and selected the Navigation Drawer layout. Android has then created an automated navigation layout that has a drawer than can be pulled out and provides me with navigation options. I have edited all of the options to suit my navigation and also edited the images. I have full... | android|layout|navigation | 0 | 2018-11-30T16:03:56.850Z | 2,018 | 11 | 16 | 4 | 26 | 1 | 746 | 56 | 3 | 0 | false | false | false | false | false | false | zero |
53,572,098 | How to detect an error in a compiled application? (Android Studio 3+) | <p>Is it possible in android studio to see the system or non-system log if the device is not with me? That is, if I could connect to it via usb, then everything would be simple, but we do not have such an opportunity. At the moment I was getting along with the try {} catch {} construct, but now I ran into a problem tha... | Is it possible in android studio to see the system or non-system log if the device is not with me? That is, if I could connect to it via usb, then everything would be simple, but we do not have such an opportunity. At the moment I was getting along with the try {} catch {} construct, but now I ran into a problem that I... | android|android-studio | -1 | 2018-12-01T15:06:03.167Z | 2,018 | 12 | 15 | 5 | 26 | 1 | 624 | 69 | 2 | 0 | false | false | false | false | false | true | negative |
53,693,768 | Intent and configured correctly manifest | <p>I'm getting error:</p>
<blockquote>
<p>No Activity found to handle Intent</p>
</blockquote>
<p>I think I configured my manifest correctly. Is there any issue with following config?</p>
<pre><code><activity
android:name=".Lancement"
android:label="@string/app_name"
android:theme="@style/AppTheme"&... | I'm getting error: No Activity found to handle Intent I think I configured my manifest correctly. Is there any issue with following config? [CODE] | android|android-intent|manifest | -1 | 2018-12-09T15:23:56.567Z | 2,018 | 12 | 15 | 6 | 26 | 1 | 146 | 40 | 3 | 1 | true | false | false | false | false | true | negative |
53,749,459 | I need to rebuild project every time other ways i have the RuntimeException, TransformException, ArgumentException | <p>I need to rebuild project every time other ways i have the RuntimeException, TransformException, ArgumentException. I think the problem is in the Gradle file.</p>
<p>Exception: RuntimeException: com.android.build.api.transform.TransformException: java.lang.IllegalArgumentException</p>
<pre><code> apply plugin: 'c... | I need to rebuild project every time other ways i have the RuntimeException, TransformException, ArgumentException. I think the problem is in the Gradle file. Exception: RuntimeException: com.android.build.api.transform.TransformException: java.lang.IllegalArgumentException [CODE] I will be grateful for your help | android|android-studio | 1 | 2018-12-12T18:45:33.220Z | 2,018 | 12 | 18 | 2 | 26 | 1 | 314 | 114 | 2 | 1 | true | false | false | false | false | false | low |
53,438,486 | Replace fragments in viewpager Mvvmcross | <p><strong>tldr:</strong> How can I replace fragments in viewpager using MvvmCross?</p>
<p>I have tried to replace a fragment in a viewpager using the approach described at <a href="http://www.pineappslab.com/post/fragments-viewpager/" rel="nofollow noreferrer">How to replace fragments within a Viewpager</a>. The idea... | tldr: How can I replace fragments in viewpager using MvvmCross? I have tried to replace a fragment in a viewpager using the approach described at How to replace fragments within a Viewpager . The idea is that within the view pager a "RootFragment" is shown. However, it is replaced by a first fragment. If needed, it can... | xamarin.android|mvvmcross | 0 | 2018-11-22T22:07:42.270Z | 2,018 | 11 | 22 | 3 | 282 | 1 | 1,215 | 40 | 2 | 5 | true | false | false | false | false | false | zero |
53,471,464 | Consume Zimbra Get Calendar REST Api in Java | <p>I get this error when I consume the REST Api of Zimbra on Android: must Athenticate java.lang.RuntimeException: Failed : HTTP error code : 401
at ZimbraREST.main(ZimbraREST.java:33). However I am absolutely sure that my login and my password are the good ones and my code was working perfectly fine yesterday, and... | I get this error when I consume the REST Api of Zimbra on Android: must Athenticate java.lang.RuntimeException: Failed : HTTP error code : 401 at ZimbraREST.main(ZimbraREST.java:33). However I am absolutely sure that my login and my password are the good ones and my code was working perfectly fine yesterday, and I did ... | java|android|rest|api|zimbra | 0 | 2018-11-25T20:12:05.807Z | 2,018 | 11 | 20 | 6 | 282 | 1 | 496 | 44 | 5 | 1 | true | false | false | false | false | false | zero |
53,751,035 | ThemeOverlay not showing changes in the preview/design view in Android Studio after update | <p>I just recently updated my Android Studio and ever since doing that the ThemeOverlay property is not showing on my buttons in the preview/design editor which it did prior to the update. However when I run the App on the Device the ThemeOverlay works. Below is some test code for the button. I have set the background ... | I just recently updated my Android Studio and ever since doing that the ThemeOverlay property is not showing on my buttons in the preview/design editor which it did prior to the update. However when I run the App on the Device the ThemeOverlay works. Below is some test code for the button. I have set the background att... | android|android-studio|android-layout | 0 | 2018-12-12T20:42:47.440Z | 2,018 | 12 | 20 | 2 | 282 | 1 | 718 | 90 | 3 | 1 | true | false | false | false | false | false | zero |
53,408,207 | Room Migration didn't properly handle | <p>Getting the following exception:</p>
<p>Expected:</p>
<blockquote>
<p>TableInfo{name='chat_table', columns={message=Column{name='message',
type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0},
messageStatus=Column{name='messageStatus', type='TEXT', affinity='2',
notNull=false, primaryKeyPosition... | Getting the following exception: Expected: TableInfo{name='chat_table', columns={message=Column{name='message', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, messageStatus=Column{name='messageStatus', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, id=Column{name='id', type='INTEGER'... | android|android-room | 1 | 2018-11-21T08:46:36.120Z | 2,018 | 11 | 8 | 2 | 794 | 1 | 958 | 37 | 2 | 1 | true | false | false | false | false | false | low |
53,404,471 | Providing Injection for AndroidX Fragment with Dagger2? | <p>I'm having some issues trying to provide an Injection to an AndroidX fragment, and I'm not sure what the exact issue is, and how to fix it. The app refuses to build, giving the following error:</p>
<pre><code> error: [Dagger/MissingBinding] java.util.Map<java.lang.Class<? extends androidx.fragment.app.Fragmen... | I'm having some issues trying to provide an Injection to an AndroidX fragment, and I'm not sure what the exact issue is, and how to fix it. The app refuses to build, giving the following error: [CODE] Here's the method to provide the Injection in the Fragment: [CODE] The fragment's parent Activity implements HasSupport... | android|android-fragments|dagger-2|androidx | 6 | 2018-11-21T02:24:18.090Z | 2,018 | 11 | 2 | 2 | 1,050 | 1 | 862 | 55 | 4 | 4 | true | false | false | false | false | false | medium |
53,479,538 | How to download image files in internal (App's private) storage react native | <p>I am working on a react-native project in which I need to download some image files from the server and save them inside the App. These must be saved in the internal private storage of the App such that the app user must not be able to find these files (in non-rooted phone). I have searched on google and found the b... | I am working on a react-native project in which I need to download some image files from the server and save them inside the App. These must be saved in the internal private storage of the App such that the app user must not be able to find these files (in non-rooted phone). I have searched on google and found the belo... | javascript|android|ios|react-native | 4 | 2018-11-26T10:51:36.257Z | 2,018 | 11 | 10 | 0 | 3,610 | 1 | 1,091 | 76 | 4 | 0 | false | false | true | false | false | false | low |
53,385,591 | Should we handle InstanceIDListenerService when app is in background? | <p>Should we also handle the case when service is not in foreground? I.e., should we call startForeground (for Oreo) inside the InstanceIDListenerService by ourself? Or it is ensured that the service must be started when app is in foreground only?</p>
<p>To elaborate more, if refreshing token happens while app is in b... | Should we also handle the case when service is not in foreground? I.e., should we call startForeground (for Oreo) inside the InstanceIDListenerService by ourself? Or it is ensured that the service must be started when app is in foreground only? To elaborate more, if refreshing token happens while app is in background (... | google-cloud-messaging|android-8.0-oreo|foreground|foreground-service|gcmlistenerservice | -1 | 2018-11-20T03:01:17.083Z | 2,018 | 11 | 3 | 1 | 27 | 1 | 517 | 69 | 5 | 0 | false | false | false | false | false | true | negative |
53,435,340 | Can I use .obb file in my app even if it's below 50 mb? | <p>I'm building an android application that has a lot of images to use inside of it.
Great, now I want to secure these images so I tend to use .obb file and store these images in that file.
Now I'm wondering if I can do this operation or not ?
Should I have an app that's above 50 mb in order to user .obb file or what e... | I'm building an android application that has a lot of images to use inside of it. Great, now I want to secure these images so I tend to use .obb file and store these images in that file. Now I'm wondering if I can do this operation or not ? Should I have an app that's above 50 mb in order to user .obb file or what ever... | java|android | 0 | 2018-11-22T16:48:44.360Z | 2,018 | 11 | 16 | 3 | 27 | 1 | 399 | 55 | 2 | 0 | false | false | false | false | false | false | zero |
53,502,999 | Can i retrieve Google Analytics events count on Android and IOS applications to display in my app? | <p>I am using Google Analytics to track Mobile application events, there is any chance to retrieve back this data to display in my application? </p>
<p>Thanks</p> | I am using Google Analytics to track Mobile application events, there is any chance to retrieve back this data to display in my application? Thanks | android|ios|google-analytics | 0 | 2018-11-27T15:32:16.650Z | 2,018 | 11 | 15 | 1 | 27 | 1 | 147 | 98 | 3 | 0 | false | false | false | false | false | false | zero |
53,521,990 | How to make image upload not just from camera? | <p>I have three buttons in my application. One is for a camera, second is for a gallery and the third one is to upload. I changed my upload method from web server to googles firebase. Currently, I am only able to upload from my camera button. If I try to upload from gallery button it starts searching image in a tempora... | I have three buttons in my application. One is for a camera, second is for a gallery and the third one is to upload. I changed my upload method from web server to googles firebase. Currently, I am only able to upload from my camera button. If I try to upload from gallery button it starts searching image in a temporary ... | android|firebase | 0 | 2018-11-28T14:42:24.617Z | 2,018 | 11 | 14 | 2 | 27 | 1 | 465 | 46 | 2 | 3 | true | false | false | false | false | false | zero |
53,595,940 | Want to providea proper navigation system in my app..? | <p>I want to provide a proper back navigation system in app.
I make a LIST of the activity which are loaded in the app . and when i press back it will check the list and load the activity which is on the top of the list and delete the element from the LIST then there is a variable name as last_id which tracks the last ... | I want to provide a proper back navigation system in app. I make a LIST of the activity which are loaded in the app . and when i press back it will check the list and load the activity which is on the top of the list and delete the element from the LIST then there is a variable name as last_id which tracks the last id ... | android | 1 | 2018-12-03T14:35:07.177Z | 2,018 | 12 | 14 | 0 | 27 | 1 | 1,077 | 54 | 1 | 4 | true | false | false | false | false | false | low |
53,608,537 | Fake tablayout scoll in android | <p>is there a way to scroll back and forth a TABLAYOUT in android? I need it to show the user that the tabs are scrollable</p>
<p>Thank you</p>
<pre><code> TabLayout tabLayout
</code></pre> | is there a way to scroll back and forth a TABLAYOUT in android? I need it to show the user that the tabs are scrollable Thank you [CODE] | java|android|xml|android-layout|android-tablayout | -1 | 2018-12-04T08:25:12.487Z | 2,018 | 12 | 8 | 1 | 27 | 1 | 136 | 31 | 5 | 1 | true | false | false | false | false | true | negative |
53,699,140 | Can a subscription product be shared among different apps? | <p>I am building a spinoff of my app, basically a "better accessibility" version of the app. (Main targeted at young adults, spinoff targeted at senior citizens). </p>
<p>The spinoff app will have it's own app id (com.mycompany.myapp vs com.mycompany.accessibilityapp).
Therefore it will have it's own store page and... | I am building a spinoff of my app, basically a "better accessibility" version of the app. (Main targeted at young adults, spinoff targeted at senior citizens). The spinoff app will have it's own app id (com.mycompany.myapp vs com.mycompany.accessibilityapp). Therefore it will have it's own store page and can technicall... | android|in-app-purchase|subscription | 0 | 2018-12-10T03:32:21.830Z | 2,018 | 12 | 3 | 0 | 27 | 1 | 696 | 58 | 3 | 0 | false | false | false | false | false | false | zero |
53,404,377 | How to use two sets of data for drawing graph using MPAndroidChart in Android | <p>I was trying to use two sets of data while using <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">MPAndroidChart</a> </p>
<pre><code>val values1 = ArrayList<Entry>()
values1.add(Entry(3f,2f))
values1.add(Entry(3.5f,4f))
values1.add(Entry(4f,3f))
val values = ArrayList<Entry>... | I was trying to use two sets of data while using MPAndroidChart [CODE] And drawing the Line graph [CODE] The outcome is like this I just want to improve or smooth the graph of set2 [arrow marked] so that the line exactly overlaps the set1 and hide that part of data. | android|charts|kotlin|mpandroidchart | 2 | 2018-11-21T02:09:53.363Z | 2,018 | 11 | 2 | 2 | 283 | 1 | 266 | 77 | 4 | 2 | true | false | false | false | false | false | low |
53,489,637 | adding localRotation moves ArCore Node? | <p>This has me totally puzzled. I put this node in the scene, but as soon as I add "localRotation", the node moves. It looks fine if I don't move it (positioned centered where I expect). Do I have to initialize the Quaternion so that it's perpendicular to the floor plane/pose?</p>
<pre><code> scene?.apply {
... | This has me totally puzzled. I put this node in the scene, but as soon as I add "localRotation", the node moves. It looks fine if I don't move it (positioned centered where I expect). Do I have to initialize the Quaternion so that it's perpendicular to the floor plane/pose? [CODE] | android|arcore|sceneview | 0 | 2018-11-26T21:50:59.140Z | 2,018 | 11 | 21 | 0 | 283 | 1 | 281 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
53,691,511 | How can I have the Instant Run button in IntelliJ like in Android Studio? | <p>In Android Studio, the Instant Run button is right next to the Run button, however, in IntelliJ, that button is nowhere to be found, even though I have Instant Run enabled. Is the Instant Run button only available in Android Studio or is there another option that needs to be enabled in IntelliJ to make that button s... | In Android Studio, the Instant Run button is right next to the Run button, however, in IntelliJ, that button is nowhere to be found, even though I have Instant Run enabled. Is the Instant Run button only available in Android Studio or is there another option that needs to be enabled in IntelliJ to make that button show... | android|intellij-idea | 3 | 2018-12-09T10:48:20.730Z | 2,018 | 12 | 10 | 6 | 283 | 1 | 343 | 73 | 2 | 0 | false | false | false | false | false | false | low |
53,363,146 | Osmdroid map blurred in android devices | <p>I am using osmdroid library for having osm maps functionality in my app.</p>
<pre><code>compile 'org.osmdroid:osmdroid-android:6.0.2'
</code></pre>
<p>Everything is working fine functionality wise, but I have one issue related to map appearance. A website is also being developed for the same functionality as of th... | I am using osmdroid library for having osm maps functionality in my app. [CODE] Everything is working fine functionality wise, but I have one issue related to map appearance. A website is also being developed for the same functionality as of the app and in the web they are also using osm maps. Now the issue is the map ... | android|openstreetmap|osmdroid | 0 | 2018-11-18T16:37:10.430Z | 2,018 | 11 | 16 | 6 | 539 | 1 | 577 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
53,677,243 | Admob updated, not showing ads unless anymore unless testing? | <p>I have an app that has had Admob integrated for years (so it's not a new ad spot).</p>
<p>I just updated Admob to latest "com.google.firebase:firebase-ads:17.1.1" from a previous verison, maybe 15 or 16 something. And consistently I am now getting this in logcat</p>
<blockquote>
<p>Failed to load ad: 3 (No... | I have an app that has had Admob integrated for years (so it's not a new ad spot). I just updated Admob to latest "com.google.firebase:firebase-ads:17.1.1" from a previous verison, maybe 15 or 16 something. And consistently I am now getting this in logcat Failed to load ad: 3 (No Fill) No fill from any mediat... | android|firebase|admob | 0 | 2018-12-07T21:51:42.780Z | 2,018 | 12 | 21 | 4 | 539 | 1 | 866 | 61 | 3 | 0 | false | false | false | false | false | false | zero |
53,437,128 | How I can set repeated texture on an object in Android ArCore Sceneform API? | <p>I have successfully made a line between two vectors in the AR Scene.</p>
<p>My code: </p>
<pre><code>private void addLineBetweenPoints(Scene scene, Vector3 from, Vector3 to) {
// prepare an anchor position
Quaternion camQ = scene.getCamera().getWorldRotation();
float[] f1 = new float[]{to.x... | I have successfully made a line between two vectors in the AR Scene. My code: [CODE] It works perfectly, but I have a mistake texture. In the file "textures/aim_line.png" contains PNG: (the line's half is transparent the other half is orange.) My current result: But I expected next result: So, I have use the Sampler wh... | android|arcore|sceneform | 2 | 2018-11-22T19:32:24Z | -1 | -1 | -1 | -1 | 2,331 | 1 | 477 | 76 | 3 | 1 | true | false | false | false | false | false | low |
53,354,698 | How to stop touch event passing through textview which is not clickable | <p>I have an Imageview which has touch listener. over the image, I have two text views which are clickable, text1 and text2. text2 is not clickable in the start. when the user clicks the text1 then text2 become clickable and focusable true.</p>
<pre><code> android:focusable="true"
androi... | I have an Imageview which has touch listener. over the image, I have two text views which are clickable, text1 and text2. text2 is not clickable in the start. when the user clicks the text1 then text2 become clickable and focusable true. [CODE] But when the user clicks the text2 which is not clickable in the start then... | android|touch | 0 | 2018-11-17T19:21:20.397Z | 2,018 | 11 | 19 | 5 | 28 | 1 | 446 | 71 | 2 | 1 | true | false | false | false | false | false | zero |
53,437,140 | ClickListener event for custom InfoWindow returns the same value for all markers. | <p>the code runs good without errors however the click event for the custom infowindow returns the same value (toast message) for both marker,i need the custom Infowindows to return the specific toast message within when clicked.</p>
<p>code:</p>
<p>public class HotelActivity extends FragmentActivity implements OnMap... | the code runs good without errors however the click event for the custom infowindow returns the same value (toast message) for both marker,i need the custom Infowindows to return the specific toast message within when clicked. code: public class HotelActivity extends FragmentActivity implements OnMapReadyCallback { [CO... | android | 0 | 2018-11-22T19:33:05.813Z | 2,018 | 11 | 19 | 3 | 28 | 1 | 323 | 81 | 1 | 1 | true | false | false | false | false | false | zero |
53,461,234 | AndroidStudio unable to save a file on the Emulator | <p>I would like to save/create a file in the directory of my Emulator but i cant do that and i dont understand what is wrong with my code. So everytime i try to run the code it says that android cant create the file in such directory.
Can someone please explain to me how i make it. Here is the code of my Application:</... | I would like to save/create a file in the directory of my Emulator but i cant do that and i dont understand what is wrong with my code. So everytime i try to run the code it says that android cant create the file in such directory. Can someone please explain to me how i make it. Here is the code of my Application: publ... | java|android|file|filewriter | 0 | 2018-11-24T18:36:06.893Z | 2,018 | 11 | 18 | 5 | 28 | 1 | 378 | 51 | 4 | 1 | true | false | false | false | false | false | zero |
53,466,068 | Dynamic ListView With EditTexts Android | <p>I have a ListView in my Android application that uses a CustomAdapterClass. The ListView is populated with rows that contain 2 Edit Texts per row. This is fine, the problem I'm having is the ListView is dynamic, i.e. I have added a button that will append on a new row by calling notifyDataSetChanged(); however this ... | I have a ListView in my Android application that uses a CustomAdapterClass. The ListView is populated with rows that contain 2 Edit Texts per row. This is fine, the problem I'm having is the ListView is dynamic, i.e. I have added a button that will append on a new row by calling notifyDataSetChanged(); however this cle... | java|android|listview|android-edittext | 1 | 2018-11-25T09:08:22.437Z | 2,018 | 11 | 9 | 6 | 28 | 1 | 525 | 39 | 4 | 3 | true | false | false | false | false | false | low |
53,505,910 | AlertDialog. When to change the style of the message? | <p>I want to have the message of an alertdialog displayed with a monospace font, so I wrote this code, which work nice:</p>
<pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setMessage("message");
...
AlertDialog dialog = builder.create();
dialog.show();
TextView messageView = dia... | I want to have the message of an alertdialog displayed with a monospace font, so I wrote this code, which work nice: [CODE] My question is about the order of the calls: you need dialog.show() to be called in order to call dialog.findViewById , otherwise you get a null pointer. It does not sound logical to show somethin... | android|android-alertdialog | 0 | 2018-11-27T18:24:02.320Z | 2,018 | 11 | 18 | 1 | 28 | 1 | 454 | 53 | 2 | 1 | true | false | false | false | false | false | zero |
53,579,080 | Firebase, retrieving through getter is successful except for one specific value | <p>This is weird, I have a working code to retrieve a set of data including Long, String, int, work perfectly. (eg: "player1Name" in this example)</p>
<p>But when I add one more item, String "observerCode" through updateGameInfo(), it cannot retrieve for no reason, just retrieved a blank text to display ..</p>
<pre><... | This is weird, I have a working code to retrieve a set of data including Long, String, int, work perfectly. (eg: "player1Name" in this example) But when I add one more item, String "observerCode" through updateGameInfo(), it cannot retrieve for no reason, just retrieved a blank text to display .. [CODE] onClick retriev... | android|firebase-realtime-database | 0 | 2018-12-02T09:46:01.857Z | 2,018 | 12 | 9 | 6 | 28 | 1 | 639 | 79 | 2 | 6 | true | false | false | false | false | false | zero |
53,581,945 | PhoneGap Development | <p>How easy is PhoneGap to build and deploy Android applications? The application I'm thinking of is not a beginner level app. How is the level of debugging and error handling and the support it gives?</p>
<p>Thanks in advance. </p> | How easy is PhoneGap to build and deploy Android applications? The application I'm thinking of is not a beginner level app. How is the level of debugging and error handling and the support it gives? Thanks in advance. | android|phonegap | -2 | 2018-12-02T15:53:00.880Z | 2,018 | 12 | 15 | 6 | 28 | 1 | 217 | 20 | 2 | 0 | false | false | false | false | false | true | negative |
53,684,252 | Displaying course data from Firebase for each user in Android | <pre><code>public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.activity_course_fragment, null);
textView=v.findViewById(R.id.list);
final DatabaseReference rootRef = FirebaseDatabase.getInstance().getRe... | [CODE] This code worked perfectly but when i reinstalled this again ,its not working according to my need.I actually needed to display particular course for each user what they registered to . But here only course for "ANAND" is displaying. How can i correct this Problem? | android|firebase|firebase-realtime-database | 0 | 2018-12-08T15:57:17.690Z | 2,018 | 12 | 15 | 5 | 28 | 1 | 272 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
53,711,457 | Using AndroidStudio emulation On_Click Events within fragments firing when using tab and enter key but not mouse click | <p>I have a problem within my code that seems to me as it is working but only in the given situation where On_Click Events within fragments are firing when using tab and enter key but not mouse click. I am using the emulator through android studio SDK23 for the emulater. When I test it on my phone sdk26 it does not a... | I have a problem within my code that seems to me as it is working but only in the given situation where On_Click Events within fragments are firing when using tab and enter key but not mouse click. I am using the emulator through android studio SDK23 for the emulater. When I test it on my phone sdk26 it does not allow ... | android|android-fragments | 1 | 2018-12-10T18:20:14.363Z | 2,018 | 12 | 18 | 0 | 28 | 1 | 550 | 118 | 2 | 4 | true | false | false | false | false | false | low |
53,757,963 | Exception on orientation change from two-pane mode to one-pane mode | <p>I have a demo app which supports both smartphones and tablets. </p>
<p>Also it supports orientation change. </p>
<p>On tablets there is one pane and two pane modes. Two pane modes works only in landscape mode. All UI is exposed into fragments. </p>
<p>UI in two pane mode is common master-detail pattern: list on t... | I have a demo app which supports both smartphones and tablets. Also it supports orientation change. On tablets there is one pane and two pane modes. Two pane modes works only in landscape mode. All UI is exposed into fragments. UI in two pane mode is common master-detail pattern: list on the left and detail screen on t... | android|screen-orientation | 0 | 2018-12-13T08:43:34.600Z | 2,018 | 12 | 8 | 3 | 28 | 1 | 1,135 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
53,789,119 | Cordova android manifest specifying sdks to use | <p>I have an android app that i want to compile. The current manifest looks like </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work f... | I have an android app that i want to compile. The current manifest looks like [CODE] I want my app to be as compatible in newer and older android smartphones.The goal is to be compatible with as many devices out there as possible. If i edited my uses-sdk section like this: [CODE] Will i be saying that my app can run fr... | android|cordova | 0 | 2018-12-15T02:47:02.613Z | 2,018 | 12 | 2 | 5 | 28 | 1 | 351 | 47 | 2 | 2 | true | false | false | false | false | false | zero |
53,436,986 | HTTP Client Android Studio | <p>When I'm using IntelliJ Ultimate I often find myself using the built in HTTP Client plugin.</p>
<p>This plugin allows you to organize your REST endpoints in a plain text file ending with <code>.http</code>, which is really handy for sharing them with the team over GIT.<br>
It also allows you to easily execute them ... | When I'm using IntelliJ Ultimate I often find myself using the built in HTTP Client plugin. This plugin allows you to organize your REST endpoints in a plain text file ending with .http , which is really handy for sharing them with the team over GIT. It also allows you to easily execute them from your IDEA. For Example... | rest|android-studio|intellij-idea|intellij-plugin | 1 | 2018-11-22T19:19:15.703Z | 2,018 | 11 | 19 | 3 | 284 | 1 | 533 | 26 | 4 | 0 | false | false | false | false | false | false | low |
53,637,629 | Number picker increase number from opposite direction | <p>Till now my number picker it starts to increse my number from top to bottom. Can i change that to opposite direction?</p>
<p>XML</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-au... | Till now my number picker it starts to increse my number from top to bottom. Can i change that to opposite direction? XML [CODE] Activity [CODE] Please see image below: | java|android|xamarin | 1 | 2018-12-05T17:22:55.147Z | 2,018 | 12 | 17 | 2 | 540 | 1 | 168 | 53 | 3 | 2 | true | false | false | false | false | false | low |
53,460,355 | Improving spanned/spannable performance in setting TextView RecylcerView | <p>I have a <code>RecyclerView</code> with a number of <code>TextViews</code>. One of these <code>TextViews</code> is populated with a <code>Spanned</code>, via a marked up <code>String</code> taken from an <code>ArrayList<Object></code>. After reading <a href="https://medium.com/androiddevelopers/underspanding... | I have a RecyclerView with a number of TextViews . One of these TextViews is populated with a Spanned , via a marked up String taken from an ArrayList<Object> . After reading this tutorial by Florina Muntenescu, I realize I can likely improve my performance by using Spannable Factory . My biggest problem is that her co... | java|android|android-recyclerview|textview|spannable | 2 | 2018-11-24T16:51:25.547Z | 2,018 | 11 | 16 | 5 | 796 | 1 | 880 | 72 | 5 | 3 | true | false | false | false | false | false | low |
53,360,333 | How to fix right button border not showing in app? | <p>I am trying to make a game with multiple levels. My plan is to print 15 levels on 1 page. I have attached a <a href="https://i.stack.imgur.com/eqB0e.jpg" rel="nofollow noreferrer">photo</a> of the simple design I am currently using.</p>
<p>As you can see in the picture the right border of a button is not showing. F... | I am trying to make a game with multiple levels. My plan is to print 15 levels on 1 page. I have attached a photo of the simple design I am currently using. As you can see in the picture the right border of a button is not showing. For the parent I am using this java code: [CODE] And to set 3 buttons horizontally in th... | java|android|android-studio | 1 | 2018-11-18T11:27:22.550Z | 2,018 | 11 | 11 | 6 | 29 | 1 | 671 | 50 | 3 | 3 | true | false | false | false | false | false | low |
53,457,006 | Not getting All data from list while using DBFlow database | <pre><code>I add Some data of list in DbFlow Databse but when I want that data get only one from list .
Here is my code for reference
for(i in path.indices){
val image_off_obj=UserObject()
image_off_obj.image_path=path[i].toString()
image_off_obj.save()
}
</code></pre>
<p><strong>Below syntax is for getting... | [CODE] Below syntax is for getting data from database, but I got only one from it. //Output val image_data = SQLite .select() .from(UserObject::class.java) .queryList() | android | 0 | 2018-11-24T09:53:52.623Z | 2,018 | 11 | 9 | 5 | 29 | 1 | 168 | 58 | 1 | 1 | true | false | false | false | false | false | zero |
53,469,487 | Multi JSON object into single JSON object | <p>I have this schema for json object :</p>
<pre><code>{
"pRequest": {
"ClsBuildingExeReport":{
"BuildingExecRep_FormOperation_Main" : {
"NIdBuildingExecRep" : "777"
},
"BuildingExecRep_Detail_Main": [
{
"BuildingExecDate":... | I have this schema for json object : [CODE] I make BuildingExecRep_FormOperation_Main like this: [CODE] In this way i added json object to ClsBuildingExeReport object. Now I have created BuildingExecRep_Detail_Main How can i add this ArrayList into ClsBuildingExeReport object? [CODE] When i execute this code ClsBuildin... | android|json | 0 | 2018-11-25T16:24:37.883Z | 2,018 | 11 | 16 | 6 | 29 | 1 | 388 | 41 | 2 | 3 | true | false | false | false | false | false | zero |
53,470,391 | URL for calling REST service from Android app | <p>I made a demo SpringBoot project. It has a REST service and an embeded TomCat server. The project is called demo, it is in RestProject folder, the service is up and running. When I try to call it from mi Android app the URL path is wrong. In the example I have followed it is mentioned that the URL for invoking a ser... | I made a demo SpringBoot project. It has a REST service and an embeded TomCat server. The project is called demo, it is in RestProject folder, the service is up and running. When I try to call it from mi Android app the URL path is wrong. In the example I have followed it is mentioned that the URL for invoking a servic... | android|rest|spring-boot|tomcat | 0 | 2018-11-25T18:08:23.937Z | 2,018 | 11 | 18 | 6 | 29 | 1 | 571 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
53,559,277 | ArcGis usage on Map UI of Android | <p>I want to implement Map SDK on Android Project to show Birds/Predator Region.
Which sdk is better between ArcGIS and Google Map library to make coloring range and border lines in specified area?</p> | I want to implement Map SDK on Android Project to show Birds/Predator Region. Which sdk is better between ArcGIS and Google Map library to make coloring range and border lines in specified area? | android|google-maps|arcgis | 0 | 2018-11-30T14:18:36.463Z | 2,018 | 11 | 14 | 4 | 29 | 1 | 194 | 33 | 3 | 0 | false | false | false | false | false | false | zero |
53,578,577 | How is the android app is automatically updated,W/o me updating it on playstore? | <p>How is the application updating, even if i didnt updated it?.
Like,
Amazon:- The shopping list gets updated, clothes are changed,etc.
How is the interface changed?</p> | How is the application updating, even if i didnt updated it?. Like, Amazon:- The shopping list gets updated, clothes are changed,etc. How is the interface changed? | android|android-studio|android-layout|uiview | 0 | 2018-12-02T08:19:11.020Z | 2,018 | 12 | 8 | 6 | 29 | 1 | 163 | 80 | 4 | 0 | false | false | false | false | false | false | zero |
53,615,466 | onItemClick doesn't work after creating a new Adapter | <p>Actually in my app i have a recyclerView with some items in it</p>
<p>I also have a searchView and when i make it's empty i'm making the following actions</p>
<pre><code>edtSearch.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, i... | Actually in my app i have a recyclerView with some items in it I also have a searchView and when i make it's empty i'm making the following actions [CODE] Till here all works fine but after i clear the text from this editText the onClick method on the recyclerView is not working anymore so i have to close and reopen my... | android|android-recyclerview | 0 | 2018-12-04T14:45:54.887Z | 2,018 | 12 | 14 | 1 | 29 | 1 | 356 | 53 | 2 | 1 | true | false | false | false | false | false | zero |
53,619,174 | Changing of GridView while adding to RelativeLayout | <p>I have such an xml file:</p>
<p><strong>UPD</strong></p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:lay... | I have such an xml file: UPD [CODE] My aim was to make a scrollable layout, which contains GridView and TextView. TextView shoulde me below the GridView. When I run my program GridView size become small and I don't know why. Probably there's nothing in textview what can change GridView size in a such way (as I think). ... | android|xml|gridview | 1 | 2018-12-04T18:18:41.090Z | 2,018 | 12 | 18 | 1 | 29 | 1 | 758 | 51 | 3 | 2 | true | false | false | false | false | false | low |
53,669,304 | Adding values from Firebase to RecycleView adapter won't show in app | <p>I'm trying to return the key and value from my Firebase Database and insert it into a <code>RecycleView</code> adapter but the values won't show up in the app. </p>
<p>I can't wrap my head around this whatsoever. </p>
<p>I tried to show the values in a <code>Toast</code> and it worked but why won't the values be ... | I'm trying to return the key and value from my Firebase Database and insert it into a RecycleView adapter but the values won't show up in the app. I can't wrap my head around this whatsoever. I tried to show the values in a Toast and it worked but why won't the values be inserted into the RecycleView adapter? This is t... | java|android|firebase|firebase-realtime-database|android-recyclerview | 0 | 2018-12-07T12:12:24.463Z | 2,018 | 12 | 12 | 4 | 29 | 1 | 335 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
53,679,012 | browsing folder and uploading file firebase | <p>I'm trying to allow the user to browse for a video and upload it to firebase storage but looking at the example provided I'm not sure how to get from specifying the file to allowing the user to choose. The example provided is:</p>
<pre><code>Uri file = Uri.fromFile(new File("path/to/images/rivers.jpg"));
StorageRef... | I'm trying to allow the user to browse for a video and upload it to firebase storage but looking at the example provided I'm not sure how to get from specifying the file to allowing the user to choose. The example provided is: [CODE] I use ACTION_GET_CONTENT to open a file browser for the user but how do I get the file... | android|android-studio | 0 | 2018-12-08T02:34:42.350Z | 2,018 | 12 | 2 | 5 | 29 | 1 | 355 | 43 | 2 | 1 | true | false | false | false | false | false | zero |
53,800,119 | Issues while running AVD | <p>I am trying to run AVD with newly installed Android Studio. I have an AMD Ryzen processor, who I downloaded the ARM API.</p>
<p>I still get an error
minSdk(api27) > devSdk(api25)</p>
<p>I learnt that I need to make changes in the build.gradle file.
when I opened it. It already had the settings as below </p>
<pre>... | I am trying to run AVD with newly installed Android Studio. I have an AMD Ryzen processor, who I downloaded the ARM API. I still get an error minSdk(api27) > devSdk(api25) I learnt that I need to make changes in the build.gradle file. when I opened it. It already had the settings as below [CODE] please help | android|android-studio|android-emulator | 0 | 2018-12-16T07:05:49.440Z | 2,018 | 12 | 7 | 6 | 29 | 1 | 308 | 24 | 3 | 1 | true | false | false | false | false | false | zero |
53,795,422 | How do I share Images from Firebase Database? | <p>I have created database and there is Url of image and I want to show that image in my app which is working but now I want share that image in Whatsapp etc. Now what I need to change there as I didn't get any idea,how to do it?</p>
<p>Here is my Code: </p>
<pre><code>@Override
public void onBindViewHolder(@NonNull... | I have created database and there is Url of image and I want to show that image in my app which is working but now I want share that image in Whatsapp etc. Now what I need to change there as I didn't get any idea,how to do it? Here is my Code: [CODE] | android|firebase | 0 | 2018-12-15T17:11:05.923Z | 2,018 | 12 | 17 | 5 | 797 | 1 | 250 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
53,441,628 | Admob native advance Ads repeating in recycler view | <p>I ran this(<a href="https://github.com/googlecodelabs/admob-native-advanced-feed" rel="nofollow noreferrer">Google Codelab Native Ads</a>) code and the native ads in the list are sometimes working fine but most of the time they are like the bottom two screenshots.
They are not in order and repeating themselves.</p>
... | I ran this( Google Codelab Native Ads ) code and the native ads in the list are sometimes working fine but most of the time they are like the bottom two screenshots. They are not in order and repeating themselves. Can anyone please check whats wrong in this demo code? Tried on different devices but no luck :( Screensho... | android|android-recyclerview|admob|native-ads | 3 | 2018-11-23T06:32:15.963Z | 2,018 | 11 | 6 | 4 | 1,053 | 1 | 335 | 51 | 4 | 0 | false | false | false | false | false | false | low |
53,763,882 | How to get mailto working on android chrome? | <p>So I've seen a couple questions on here about mailto not working on android, my problem is a little bit more specific than that. My website has a mailto link setup as a submit button to send forms filled out on my website straight to my email. The link works just fine on desktop in chrome and firefox, and was also t... | So I've seen a couple questions on here about mailto not working on android, my problem is a little bit more specific than that. My website has a mailto link setup as a submit button to send forms filled out on my website straight to my email. The link works just fine on desktop in chrome and firefox, and was also test... | android|html|google-chrome|mailto | 1 | 2018-12-13T14:17:43.563Z | 2,018 | 12 | 14 | 3 | 1,821 | 1 | 1,178 | 44 | 4 | 1 | true | false | false | false | false | false | low |
53,582,679 | Get all Items of a custom ArrayAdapter in Kotlin | <p>I'm making a custom ArrayAdapter and I need to get the Items List, I simply create a method named getItems that return the list passed in the adapter constructor, the problem is that Android studio gives me this error message:
<a href="https://i.stack.imgur.com/3PO40.png" rel="nofollow noreferrer"><img src="https://... | I'm making a custom ArrayAdapter and I need to get the Items List, I simply create a method named getItems that return the list passed in the adapter constructor, the problem is that Android studio gives me this error message: I have do this in Java, but in Kotlin can achieve the same behaviour. This is mi actual code:... | android|kotlin|android-arrayadapter | 1 | 2018-12-02T17:16:30.403Z | 2,018 | 12 | 17 | 6 | 5,661 | 1 | 381 | 48 | 3 | 1 | true | false | true | false | false | false | low |
53,360,642 | Recycler view not showing up | <p>So I am querying a firebase database, and trying to read the data into a recyclerview. Now when I simply read the data into a textview and set the text to the data, (i.e. I have 3 text views - colour, height, name) this all works fine and the correct data shows up.</p>
<p>However, I've been trying to load the query... | So I am querying a firebase database, and trying to read the data into a recyclerview. Now when I simply read the data into a textview and set the text to the data, (i.e. I have 3 text views - colour, height, name) this all works fine and the correct data shows up. However, I've been trying to load the query results in... | android | 0 | 2018-11-18T12:01:20.073Z | 2,018 | 11 | 12 | 6 | 30 | 1 | 863 | 28 | 1 | 3 | true | false | false | false | false | false | zero |
53,396,744 | How to call SamsungMobilePrint scan function via intent | <p>For some reason I would like to call SamsungMobilePrint/Scan directly from an app with startActivity.</p>
<p>Samsung suggested </p>
<pre><code>Intent intent = new Intent("com.sec.print.mobileprint.action.SCAN");
startActivity(intent);
</code></pre>
<p>but this leads to a Nullpointer-Exception somewhere within Jav... | For some reason I would like to call SamsungMobilePrint/Scan directly from an app with startActivity. Samsung suggested [CODE] but this leads to a Nullpointer-Exception somewhere within Java. I am able to call the Print-Fuction directly without problems by doing: [CODE] I can also call the whole MobilePrint app by: [CO... | android | 0 | 2018-11-20T15:51:11.547Z | 2,018 | 11 | 15 | 1 | 30 | 1 | 394 | 55 | 1 | 4 | true | false | false | false | false | false | zero |
53,401,723 | What are the general instructions to add a new fragment that uses a new screen and has its own layout? | <p>I'm struggling to figure out how to create fragments that have their own layout files and take up the whole screen, as opposed to adding them to the activity's layout. </p>
<p>For instance, in my activity there is a button which should call a RecyclerView Fragment that takes up the whole screen, let the user pick a... | I'm struggling to figure out how to create fragments that have their own layout files and take up the whole screen, as opposed to adding them to the activity's layout. For instance, in my activity there is a button which should call a RecyclerView Fragment that takes up the whole screen, let the user pick an item, and ... | java|android | -1 | 2018-11-20T21:21:48.397Z | 2,018 | 11 | 21 | 1 | 30 | 1 | 654 | 102 | 2 | 0 | false | false | false | false | false | true | negative |
53,568,689 | Android Button not registering in Fragment | <p>I am working with fragments and I am coming across a weird issue, and is that my buttons are not working inside my oncreateview in a fragment i am setting.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html la... | I am working with fragments and I am coming across a weird issue, and is that my buttons are not working inside my oncreateview in a fragment i am setting. [CODE] I am also logging it, but I get no response at all. | android|android-fragments|kotlin | -1 | 2018-12-01T07:22:19.143Z | 2,018 | 12 | 7 | 5 | 30 | 1 | 214 | 42 | 3 | 1 | true | false | false | false | false | true | negative |
53,568,911 | Invariant Violation react native while running from a different machine | <p>Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in. </p>
<p>I have a project with the nativave version 0.57.5 and react 16.6.3 and am runnin... | Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in. I have a project with the nativave version 0.57.5 and react 16.6.3 and am running it in wind... | android|react-native | 0 | 2018-12-01T07:56:16.920Z | 2,018 | 12 | 7 | 5 | 30 | 1 | 707 | 71 | 2 | 0 | false | false | false | false | false | false | zero |
53,574,492 | android :button not working after i go to the activity again | <p>i have a button in an activity to send a message by it</p>
<p>the problem is if the person entered the page the button send the message</p>
<p>but if he exit from the page and opened it again .. the button not working </p>
<p>its like became disabled </p>
<p>and the solutions that i used</p>
<p>1 - i disabled t... | i have a button in an activity to send a message by it the problem is if the person entered the page the button send the message but if he exit from the page and opened it again .. the button not working its like became disabled and the solutions that i used 1 - i disabled the butterknife library and used [CODE] 2 - i ... | android | 0 | 2018-12-01T19:49:22.110Z | 2,018 | 12 | 19 | 5 | 30 | 1 | 643 | 60 | 1 | 4 | true | false | false | false | false | false | zero |
53,695,742 | How to get a node key from inner matching values | <p>I need to get the key of each event that match the users ID's that I have looped before in another table, so, I have this table where the current userID that is logged in has a list of users that will assist to a certain event</p>
<p><a href="https://i.stack.imgur.com/V8AXO.png" rel="nofollow noreferrer"><img src="... | I need to get the key of each event that match the users ID's that I have looped before in another table, so, I have this table where the current userID that is logged in has a list of users that will assist to a certain event Im logged in as the user MUTzo13NuJRlbbkZCDp2nCdHkIn1 , then I just get all the users below t... | java|android|firebase|firebase-realtime-database | 0 | 2018-12-09T19:11:40.633Z | 2,018 | 12 | 19 | 6 | 30 | 1 | 1,144 | 48 | 4 | 2 | true | false | false | false | false | false | zero |
53,716,754 | No response after putting in Header in request | <p>My code as follows:</p>
<pre><code>public void getProfile(){
String LOGIN_REQUEST_TAG = "LOGIN_REQUEST_TAG";
String url = Constants.API_URL + "/users/profile";
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>(... | My code as follows: [CODE] The code works initially but after we added headers which are required by the api request, the code above didn't seem to work. Did I write the headers code above wrongly? Thanks for your help. Error from logcat as follows: [CODE] | android|android-volley | 0 | 2018-12-11T03:04:40.830Z | 2,018 | 12 | 3 | 1 | 30 | 1 | 256 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
53,549,868 | Save multiple images paths to realtime database firebase | <p>I am uploading 6 images to firebase storage and save images paths and some data in firebase database. So far it works when only all 6 images are upload. </p>
<p>I am BSimagePicker library <a href="https://github.com/siralam/BSImagePicker" rel="nofollow noreferrer">https://github.com/siralam/BSImagePicker</a> to se... | I am uploading 6 images to firebase storage and save images paths and some data in firebase database. So far it works when only all 6 images are upload. I am BSimagePicker library https://github.com/siralam/BSImagePicker to select multiple images then upload them to storage and save paths in database. The issue I am ha... | android|firebase|android-fragments|firebase-realtime-database|google-cloud-firestore | 0 | 2018-11-30T01:14:30.310Z | 2,018 | 11 | 1 | 4 | 286 | 1 | 805 | 56 | 5 | 2 | true | false | false | false | false | false | zero |
53,568,762 | Can't make date picker full screen in activity | <p>I want to add date picker in full screen. I used match_marent but it can't work. There has a margin at the right of the screen. Can't removed it.
This is my xml:</p>
<pre><code><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_w... | I want to add date picker in full screen. I used match_marent but it can't work. There has a margin at the right of the screen. Can't removed it. This is my xml: [CODE] It's look like this: | android|layout|datepicker | 3 | 2018-12-01T07:34:14.987Z | 2,018 | 12 | 7 | 5 | 542 | 1 | 189 | 46 | 3 | 1 | true | false | false | false | false | false | low |
53,358,940 | Unity Android touch Input reset | <p>first, I'm sorry for my english ahead <br>
I want player to move when they input one touch and to use skill only when input two touches.<br>
Below code seems fine except when I input two touches then took off the '<strong>first touch'</strong> and re-input touch, it goes wrong.<br> but if I took off the <strong>stro... | first, I'm sorry for my english ahead I want player to move when they input one touch and to use skill only when input two touches. Below code seems fine except when I input two touches then took off the ' first touch' and re-input touch, it goes wrong. but if I took off the strong text second touch it works fine. [COD... | c#|android|unity3d | 0 | 2018-11-18T08:00:25.103Z | 2,018 | 11 | 8 | 6 | 798 | 1 | 951 | 31 | 3 | 1 | true | false | false | false | false | false | zero |
53,371,909 | Room and RX Java | <p>I have a method in which a data sheet is committed.
<div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>private void saveItemsToDB(List<NewsEntity> newsEntityList) {
Di... | I have a method in which a data sheet is committed. [CODE] I need to save them to the database. I work with Room. There is a method [CODE] No saving occurs Link | rx-java2|android-room | 0 | 2018-11-19T09:44:20.840Z | 2,018 | 11 | 9 | 0 | 31 | 1 | 160 | 16 | 2 | 2 | true | false | false | false | false | false | zero |
53,403,664 | dynamic gradiant background of textview based on content | <p>Is it possible to have the textview load colors from xml based on its value. I did have a look at states but that didn't fulfill my needs. Let's say the background would change from red to green based on decimal value for the text (rating) ... zomato style ..</p>
<p>Any help is appreciated</p>
<p>i did try :</p>
... | Is it possible to have the textview load colors from xml based on its value. I did have a look at states but that didn't fulfill my needs. Let's say the background would change from red to green based on decimal value for the text (rating) ... zomato style .. Any help is appreciated i did try : [CODE] And checks based ... | java|android | 0 | 2018-11-21T00:32:19.213Z | 2,018 | 11 | 0 | 2 | 31 | 1 | 470 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
53,465,661 | Need suggestion for creating attached layout | <p>I want to create soccer lineup like attached image. user can remove any time in 2nd, 3rd and 4th row of item and add up to max 5 player. Which one will better layout for this design tableview layout, or different recyclerview or gridview or something else?</p>
<p><a href="https://i.stack.imgur.com/zznIM.png" rel="n... | I want to create soccer lineup like attached image. user can remove any time in 2nd, 3rd and 4th row of item and add up to max 5 player. Which one will better layout for this design tableview layout, or different recyclerview or gridview or something else? | android|android-layout|android-recyclerview|android-gridview | 0 | 2018-11-25T07:57:59.007Z | 2,018 | 11 | 7 | 6 | 31 | 1 | 256 | 44 | 4 | 0 | false | false | false | false | false | false | zero |
53,574,941 | Android queue of user objects that overwrites duplicates instead of ignoring them like LinkedHashSet? | <p>I'm trying to create a queue for outgoing bluetooth messages in Android. The UI can generate a bunch of messages to be sent out via bluetooth. Sometimes these are of the same message type, but with different data. If I have 10 of the same message type waiting to go out, I don't want to send all 10, I just want to... | I'm trying to create a queue for outgoing bluetooth messages in Android. The UI can generate a bunch of messages to be sent out via bluetooth. Sometimes these are of the same message type, but with different data. If I have 10 of the same message type waiting to go out, I don't want to send all 10, I just want to send ... | java|android | 1 | 2018-12-01T20:52:48.437Z | 2,018 | 12 | 20 | 5 | 31 | 1 | 1,258 | 101 | 2 | 2 | true | false | false | false | false | false | low |
53,734,397 | App erasure, when different apps use the same library | <p>I have created a project, using library from another my earlier project as in this example</p>
<p><a href="https://stackoverflow.com/questions/24658422/android-studio-creating-modules-without-copying-files">Android Studio - Creating Modules without copying files?</a></p>
<p>BUT, after I've compiled a debug version... | I have created a project, using library from another my earlier project as in this example Android Studio - Creating Modules without copying files? BUT, after I've compiled a debug version of newer project using phone as debug device, old project has been removed from phone. How I can fix it so, that both apps could co... | android|android-studio|module | 0 | 2018-12-12T00:29:14.623Z | 2,018 | 12 | 0 | 2 | 31 | 1 | 377 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
53,781,750 | How to pass data from a BroadcastReceiver from a second activity to a function in another activity | <p>I need to send a data from a BroadcastReceiver from a second activity to a function in another activity but I do not know how to do it, someone could tell me how to do it.</p>
<p>This is the BroadcastReceiver of a second activity:</p>
<pre><code>public class UsbService extends Service implements SerialPortCallback... | I need to send a data from a BroadcastReceiver from a second activity to a function in another activity but I do not know how to do it, someone could tell me how to do it. This is the BroadcastReceiver of a second activity: [CODE] The data I need to send is the Boolean statusUSB This is a function of the first activity... | android | 0 | 2018-12-14T14:38:36.443Z | 2,018 | 12 | 14 | 4 | 31 | 1 | 370 | 98 | 1 | 2 | true | false | false | false | false | false | zero |
53,615,387 | Navigation Architecture Component cache webview content | <p>I make navigation in my app via <code>Navigation Architecture Component</code> <a href="https://developer.android.com/topic/libraries/architecture/navigation/" rel="nofollow noreferrer">https://developer.android.com/topic/libraries/architecture/navigation/</a></p>
<p>I have one <code>MainActivity</code> and switchi... | I make navigation in my app via Navigation Architecture Component https://developer.android.com/topic/libraries/architecture/navigation/ I have one MainActivity and switching fragments inside it. [CODE] and in MapFragment I have something like this (load html with iframes): [CODE] My problem: each time, when I click ma... | android|android-architecture-navigation | 0 | 2018-12-04T14:41:40.760Z | 2,018 | 12 | 14 | 1 | 287 | 1 | 667 | 55 | 2 | 2 | true | false | false | false | false | false | zero |
53,683,268 | Layout-sw400dp not called. Multiple screen support | <p>I have multiple layouts to support different screen sizes:</p>
<p><code>layout-sw320dp (smallest phones, 4.0" and smaller)</code></p>
<p><code>layout-sw360dp (approximately 4.7-5")</code></p>
<p><code>layout-sw400dp (most phones right now, 5-6")</code></p>
<p>Note: This values are from <code>Design</code> tab in... | I have multiple layouts to support different screen sizes: layout-sw320dp (smallest phones, 4.0" and smaller) layout-sw360dp (approximately 4.7-5") layout-sw400dp (most phones right now, 5-6") Note: This values are from Design tab in Layout Editor from Android Studio. (Example for layout-sw320dp ) First layout ( layout... | android|android-layout | 0 | 2018-12-08T14:00:49.173Z | 2,018 | 12 | 14 | 5 | 287 | 1 | 1,249 | 50 | 2 | 0 | false | false | false | false | false | false | zero |
53,694,922 | Android Studio failed to load image file | <p>I cannot run any virtual device on Android studio. Every time I get black screen and error as shown on the picture: <a href="https://i.stack.imgur.com/PhRem.png" rel="nofollow noreferrer">screen</a>
.
Week ago everything worked properly. </p> | I cannot run any virtual device on Android studio. Every time I get black screen and error as shown on the picture: screen . Week ago everything worked properly. | android|android-studio|react-native|android-emulator|virtual-device-manager | 0 | 2018-12-09T17:37:43.227Z | 2,018 | 12 | 17 | 6 | 287 | 1 | 161 | 40 | 5 | 0 | false | false | false | false | false | false | zero |
53,510,192 | Android NSD: Why service type don't match | <p>I've created an app to test the network service discovery (NSD) on android. </p>
<p><strong>The failing scenario</strong> </p>
<p>Two devices running the app. I hit <em>register</em> on the first device and after I see a toast that confirms the registration I hit <em>discover</em> on the other.</p>
<p>The service... | I've created an app to test the network service discovery (NSD) on android. The failing scenario Two devices running the app. I hit register on the first device and after I see a toast that confirms the registration I hit discover on the other. The service is discovered by the second device but it's type its unknown . ... | java|android|service-discovery|nsd | 2 | 2018-11-28T00:12:25.603Z | 2,018 | 11 | 0 | 2 | 1,311 | 1 | 569 | 41 | 4 | 4 | true | false | false | false | false | false | low |
53,778,205 | How to use EventBus between activities in android | <p>In my application i have <strong>two</strong> <code>activities</code>.<br>
<strong>Activity A</strong> and <strong>Activity B</strong>. <br>
into <strong>activity B</strong> i have <code>dialog</code> and when users click on one of buttons this <code>dialog</code>, i want call method into <strong>Activity A</strong>... | In my application i have two activities . Activity A and Activity B . into activity B i have dialog and when users click on one of buttons this dialog , i want call method into Activity A I write below codes, but when click on dialog button not call method in Activity A . Activity B dialog codes : [CODE] Activity A cod... | java|android|greenrobot-eventbus-3.0 | 1 | 2018-12-14T10:47:36.153Z | 2,018 | 12 | 10 | 4 | 1,311 | 1 | 425 | 49 | 3 | 2 | true | false | false | false | false | false | low |
53,366,023 | Can't run my react-native app because I'm having an error | <p>I installed react-native-firebase and follow any of the steps of <a href="https://stackoverflow.com/questions/53297730/google-admob-with-react-native-version-0-57/53299688?noredirect=1#comment93600858_53299688">this SO question</a>,
but I have <a href="https://drive.google.com/open?id=1d3TaU73OcO4zm71IXs5k46QOVSPAgc... | I installed react-native-firebase and follow any of the steps of this SO question , but I have this problem on Node and I don't know how to solve it. Can someone help me ?? | android|firebase|react-native|admob | 0 | 2018-11-18T22:19:39.683Z | 2,018 | 11 | 22 | 6 | 32 | 1 | 172 | 57 | 4 | 0 | false | false | false | false | false | false | zero |
53,370,889 | how can i use buttons or any user Input view on viewpager? | <p>Basically i have three buttons on viewpager's page 1 . and i want to select one of them and get the value into my db. but when i am clicking on any of the button it is showing me an error:</p>
<p>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListen... | Basically i have three buttons on viewpager's page 1 . and i want to select one of them and get the value into my db. but when i am clicking on any of the button it is showing me an error: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.... | android|android-studio|android-viewpager | 0 | 2018-11-19T08:32:26.520Z | 2,018 | 11 | 8 | 0 | 32 | 1 | 799 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
53,505,648 | Why do I have to add the Permission into the Manifest although I do request them on start | <p>On startup I ask for permission with a Codeblock like this:</p>
<pre><code> if (ContextCompat.checkSelfPermission(getContext(),
Manifest.permission.WRITE_SETTINGS)
!= PackageManager.PERMISSION_GRANTED) {
if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(),
... | On startup I ask for permission with a Codeblock like this: [CODE] The Request prompts but im not able to grant the permission until I add this to my Manifest: [CODE] Why do I have to add the uses-permission although it's only for system apps(at least android studio tells me that) and i request the needed permission on... | android | -1 | 2018-11-27T18:07:12.100Z | 2,018 | 11 | 18 | 1 | 32 | 1 | 330 | 89 | 1 | 2 | true | false | false | false | false | true | negative |
53,541,336 | if my table has 4 colums and i want to fetch the 3rd column what do i do. | <p>here is colums in my table</p>
<pre><code> Song song = new Song();
song.setMsong_id(cursor.getLong(0));
song.setmSong_name(cursor.getString(1));
song.setmSong_year(cursor.getLong(2));
song.setmSong_path(cursor.getString(3));
</code></pre>
<p>now i want to see the 3rd column so should i write this... | here is colums in my table [CODE] now i want to see the 3rd column so should i write this code [CODE] or [CODE] with getString(0); it is returning the the size of list as this method [CODE] but it is not displaying it in other activity.it shows the empty string, i've checked it by using the Toast.code of that activity ... | android-sqlite | 1 | 2018-11-29T14:32:32.963Z | 2,018 | 11 | 14 | 3 | 32 | 1 | 329 | 73 | 1 | 5 | true | false | false | false | false | false | low |
53,568,306 | Deleting file that find using uri don't work | <p>I want to build a File Manager.I get list of all files using <code>ContentResolver</code>.For example I get all audio file in this way:</p>
<pre><code> private void getMusic(){
ContentResolver contentResolver=getContentResolver();
Uri songUri= MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
Cursor songC... | I want to build a File Manager.I get list of all files using ContentResolver .For example I get all audio file in this way: [CODE] I write this method for deleting file, but didn't work for me.I also get WRITE and READ external permission from user. [CODE] And this is my model: [CODE] | java|android|file|uri|delete-file | 0 | 2018-12-01T06:21:59.860Z | 2,018 | 12 | 6 | 5 | 32 | 1 | 285 | 44 | 5 | 3 | true | false | false | false | false | false | zero |
53,592,800 | Open fragment from inside of another fragment | <p>as the questions say I am trying to open a fragment from within another fragment. I have a navigation bar that contains all of my current fragments. However, I would like to open up a separate fragment from within one of these, so that the user can do some stuff (navigate to the contact list fragment and add a new c... | as the questions say I am trying to open a fragment from within another fragment. I have a navigation bar that contains all of my current fragments. However, I would like to open up a separate fragment from within one of these, so that the user can do some stuff (navigate to the contact list fragment and add a new cont... | android|android-fragments | 0 | 2018-12-03T11:23:54.930Z | 2,018 | 12 | 11 | 0 | 32 | 1 | 958 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
53,597,589 | Add Product into cart and get it in another Activity | <p>I want to implement cart function when user clicks on plus or minus btn of item that item should be saved some where and if he clicked on same item again then only quantity have to updated not all the item of list. It means on clicking plus btn json object of that item will be saved in shard preference but again whe... | I want to implement cart function when user clicks on plus or minus btn of item that item should be saved some where and if he clicked on same item again then only quantity have to updated not all the item of list. It means on clicking plus btn json object of that item will be saved in shard preference but again when s... | android | 0 | 2018-12-03T16:12:19.767Z | 2,018 | 12 | 16 | 0 | 32 | 1 | 393 | 52 | 1 | 1 | true | false | false | false | false | false | zero |
53,618,612 | Android-what to do with chosen image? | <p>I have the following code on my button, which allows me to click a button and choose a PDF file. How do I get the path of the PDF file, and actually do something with the file (because right now I can only click on the file and nothing happens). I want the image to be put in an API do to something to the image. </p>... | I have the following code on my button, which allows me to click a button and choose a PDF file. How do I get the path of the PDF file, and actually do something with the file (because right now I can only click on the file and nothing happens). I want the image to be put in an API do to something to the image. [CODE] | java|android | 0 | 2018-12-04T17:38:31.983Z | 2,018 | 12 | 17 | 1 | 32 | 1 | 319 | 37 | 2 | 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.