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,685,863 | list.notify() throws an exception | <p>i have to remove a object from my List within my BaseCardAdapter. This BaseCardAdapter is used for my SwipeCardView. I try to remove an object after pressing a button. After that i need to notify the adapter that one object is removed. Unfortunately i receive this error: </p>
<blockquote>
<p>java.lang.Illegal... | i have to remove a object from my List within my BaseCardAdapter. This BaseCardAdapter is used for my SwipeCardView. I try to remove an object after pressing a button. After that i need to notify the adapter that one object is removed. Unfortunately i receive this error: java.lang.IllegalMonitorStateException: object n... | java|android | 0 | 2018-12-08T18:55:55.290Z | 2,018 | 12 | 18 | 5 | 47 | 1 | 379 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
53,712,841 | How to change my button color permanent from pressing button on another activity button | <p>This is my First Activity where i want to change button color by pressing button on another activity</p>
<pre><code> public void colorchangeOnfirstActivity(){
Button btnA = (Button) findViewById(R.id.asmat_btn);
btnA.setBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
}
</code... | This is my First Activity where i want to change button color by pressing button on another activity [CODE] This is my second Activity where the second activity button is. [CODE] | java|android | -1 | 2018-12-10T20:04:44.927Z | 2,018 | 12 | 20 | 0 | 47 | 1 | 178 | 87 | 2 | 2 | true | false | false | false | false | true | negative |
53,747,762 | How to parse json in retrofit with dynamic key using dynamic id | <p>Are using retrofit in my project and it is working correctly at all.</p>
<p>But now the demand has arisen to consume a dynamic Json where its key is ID only
I've researched everywhere and found nothing that could help me.</p>
<p>How can I "parse" this json in my Class Model?</p>
<p><a href="https://raw.githubuser... | Are using retrofit in my project and it is working correctly at all. But now the demand has arisen to consume a dynamic Json where its key is ID only I've researched everywhere and found nothing that could help me. How can I "parse" this json in my Class Model? Here the link to Json Here a piece of Json [CODE] I alread... | android|retrofit|retrofit2 | 0 | 2018-12-12T16:52:12.047Z | 2,018 | 12 | 16 | 2 | 47 | 1 | 694 | 63 | 3 | 3 | true | false | false | false | false | false | zero |
53,794,148 | What is the better way to display more text? | <p>I am developing a class notes app for a subject. In one activity the lesson names are displayed using recycler view:</p>
<p><a href="https://i.stack.imgur.com/nuiZN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nuiZN.png" alt="Image 1"></a></p>
<p>In another activity the content of the lesson ... | I am developing a class notes app for a subject. In one activity the lesson names are displayed using recycler view: In another activity the content of the lesson is displayed like this: I am using intent putExtra - setText approaches for this purpose. Is there any better way to display more text smoothly considering a... | android|android-intent|textview|settext | 0 | 2018-12-15T14:29:34.783Z | 2,018 | 12 | 14 | 5 | 47 | 1 | 734 | 44 | 4 | 4 | true | false | false | false | false | false | zero |
53,788,567 | Add To Favorite Button in a Listview | <p>So I have a listeView,each listeView Item have "add to favorite" button ,what I want to do is whenever the user click favorite button this listView Item will be added to a Favorite listview (Im using fragments).what I did is add this code to my custom adaptor getview methode :</p>
<pre><code> final Word currentWord... | So I have a listeView,each listeView Item have "add to favorite" button ,what I want to do is whenever the user click favorite button this listView Item will be added to a Favorite listview (Im using fragments).what I did is add this code to my custom adaptor getview methode : [CODE] Now I want to send this favoritewor... | android|android-studio|listview|android-arrayadapter | -1 | 2018-12-15T00:38:16.993Z | 2,018 | 12 | 0 | 5 | 303 | 1 | 443 | 36 | 4 | 1 | true | false | false | false | false | true | negative |
53,773,284 | Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.daimajia.slider:library:1.1.5 | <p>I trying to use AndroidImageSlider library but getting this errors: </p>
<pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.daimajia.slider:library:1.1.5.
</code></pre>
<p></p>
<p>Have this kind of dependencies in my build.gradle</p>
<pre><code>implementation 'com.n... | I trying to use AndroidImageSlider library but getting this errors: [CODE] Have this kind of dependencies in my build.gradle [CODE] | android|androidimageslider | 0 | 2018-12-14T03:51:51.843Z | 2,018 | 12 | 3 | 4 | 559 | 1 | 131 | 115 | 2 | 2 | true | false | false | false | false | false | zero |
53,420,665 | java.lang.reflect.invocationtargetexception Android Studio | <p>hello I hope you help me, I have an activity with Android Expandable News, it was working fine but yesterday I realized that I was not showing the detail of the news, and I get this error:</p>
<p>java.lang.reflect.invocationtargetexception</p>
<p>the code is the following:</p>
<p>the error is in this line:</p>
<... | hello I hope you help me, I have an activity with Android Expandable News, it was working fine but yesterday I realized that I was not showing the detail of the news, and I get this error: java.lang.reflect.invocationtargetexception the code is the following: the error is in this line: captionTxt.setText(mInfo.getDetal... | java|android | -2 | 2018-11-21T21:25:00.503Z | 2,018 | 11 | 21 | 2 | 7,215 | 1 | 361 | 58 | 2 | 1 | true | false | true | false | false | true | negative |
53,361,814 | How to get latitude and longitude from android devide? | <p>I have an app that is already asking for runtime permissions to activate the localization permission and I have all ready to receive longitude and latitude. My problem now is only to get the latitude and longitude from the device itself.</p>
<p>This is my method, assume that the method goes to the else statement be... | I have an app that is already asking for runtime permissions to activate the localization permission and I have all ready to receive longitude and latitude. My problem now is only to get the latitude and longitude from the device itself. This is my method, assume that the method goes to the else statement because I alr... | android|google-maps|kotlin | 0 | 2018-11-18T14:12:48.663Z | 2,018 | 11 | 14 | 6 | 48 | 1 | 369 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
53,466,039 | Use the event of a recyclerview in a Fragment | <p>Good morning friends,
My problem is the following. I have a cardview with a button, i catch the button event in the recyclerview, but I would like to catch the button event in the fragment that contains the recyclerview.</p>
<pre><code>@Override
public void onBindViewHolder(@NonNull final MyViewHolder myViewHolder... | Good morning friends, My problem is the following. I have a cardview with a button, i catch the button event in the recyclerview, but I would like to catch the button event in the fragment that contains the recyclerview. [CODE] I need to use the event here. [CODE] Thanks in advance. | java|android|android-studio|android-recyclerview|android-cardview | 0 | 2018-11-25T09:03:13.720Z | 2,018 | 11 | 9 | 6 | 48 | 1 | 283 | 45 | 5 | 2 | true | false | false | false | false | false | zero |
53,507,351 | retrofit get method param | <pre><code> public class RetrofitClient {
public static String BASE_URL = "https://android-full-time-task.firebaseio.com";
private static Retrofit retrofit;
public static Retrofit getRetrofit(){
if(retrofit==null){
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addCon... | [CODE] } [CODE] } Here how to use @GET method? how to map this url https://android-full-time-task.firebaseio.com/data.json I am new to Retrofit dont know how to use get method.. | android|get|retrofit | 0 | 2018-11-27T20:08:01.470Z | 2,018 | 11 | 20 | 1 | 48 | 1 | 177 | 25 | 3 | 2 | true | false | false | false | false | false | zero |
53,551,268 | java lock synchronization access | <p>I encountered a multi-threaded access scenario here, so I used lock synchronization access. I want to see the frequency and severity of lock blocking. Is there any relevant detection tools or methods? My current development platform is Android, and the method of Java platform can also be referred to.</p> | I encountered a multi-threaded access scenario here, so I used lock synchronization access. I want to see the frequency and severity of lock blocking. Is there any relevant detection tools or methods? My current development platform is Android, and the method of Java platform can also be referred to. | java|android|synchronization|locking | -3 | 2018-11-30T04:29:11.963Z | 2,018 | 11 | 4 | 4 | 48 | 1 | 301 | 32 | 4 | 0 | false | false | false | false | false | true | negative |
53,559,184 | How to merge a dynamically created .xml-file with the main AndroidManifest.xml | <p>I'm developing an android app and have made a script that can generate a .xml file dynamically based on certain values. The content it generates are a bunch of <code><intent-filter></code> elements.</p>
<p>After generating the file I want to use android's <a href="https://developer.android.com/studio/build/ma... | I'm developing an android app and have made a script that can generate a .xml file dynamically based on certain values. The content it generates are a bunch of <intent-filter> elements. After generating the file I want to use android's AndroidManifest-merging to merge it into my main AndroidManifest.xml The various doc... | android|android-manifest | 0 | 2018-11-30T14:12:50.890Z | 2,018 | 11 | 14 | 4 | 48 | 1 | 1,341 | 78 | 2 | 1 | true | false | false | false | false | false | zero |
53,608,548 | How to mark view do not need layout_width and layout_height in Android XML layout | <p>Define some custom views with default layout_width and layout_height by override <code>SetLayoutParams</code> and Constructor method. But Android Studio reports View need layout_width and layout_height.</p>
<p>TableRow do not need layout_width and layout_height as docs says.</p> | Define some custom views with default layout_width and layout_height by override SetLayoutParams and Constructor method. But Android Studio reports View need layout_width and layout_height. TableRow do not need layout_width and layout_height as docs says. | android|android-xml | 0 | 2018-12-04T08:25:51.867Z | 2,018 | 12 | 8 | 1 | 48 | 1 | 255 | 81 | 2 | 0 | false | false | false | false | false | false | zero |
53,623,811 | Cannot read packageName - Android Studio | <p>I've checked and tried different solutions I ran into but none helped. I keep getting this error message and I checked to see if the manifest file was under /src/main and it was. <a href="https://i.stack.imgur.com/ocLsm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ocLsm.png" alt="enter image de... | I've checked and tried different solutions I ran into but none helped. I keep getting this error message and I checked to see if the manifest file was under /src/main and it was. | java|android|mobile | 0 | 2018-12-05T01:19:55.690Z | 2,018 | 12 | 1 | 2 | 48 | 1 | 178 | 40 | 3 | 0 | false | false | false | false | false | false | zero |
53,686,172 | My Xamarin.forms images didn't load, can you help me? | <p>I'm trying to make a cross-platform app and I'm trying to create a SplashScreen.
I have added all the images to the Ressources folders and put them in Embedded resource but I don't see them.
<a href="https://i.stack.imgur.com/3mFez.png" rel="nofollow noreferrer">Ressource folder</a></p>
<p><a href="https://i.stack.... | I'm trying to make a cross-platform app and I'm trying to create a SplashScreen. I have added all the images to the Ressources folders and put them in Embedded resource but I don't see them. Ressource folder The result I got [CODE] The form class: [CODE] Thank in advance louga31 | c#|xamarin|xamarin.forms|xamarin.ios|xamarin.android | 0 | 2018-12-08T19:31:35.230Z | 2,018 | 12 | 19 | 5 | 48 | 1 | 279 | 53 | 5 | 2 | true | false | false | false | false | false | zero |
53,705,970 | How to remove Specific activity/activities from activity stack based on some action? | <p>I am working on an application where i need to navigate to specific activity based on some actions. Here is a image </p>
<p><a href="https://i.stack.imgur.com/mKrkF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mKrkF.png" alt="enter image description here"></a></p>
<p>Here my first activity is... | I am working on an application where i need to navigate to specific activity based on some actions. Here is a image Here my first activity is the ReadingActivity. Based on some actions user will be taken to the NewProjectReadingActivity. There the user will have Two options. Option One Option Two Based on the options c... | android|android-activity|android-navigation|activity-stack | 2 | 2018-12-10T12:47:00.757Z | 2,018 | 12 | 12 | 0 | 48 | 1 | 1,699 | 84 | 4 | 4 | true | false | false | false | false | false | low |
53,751,049 | Realm Javascript to Realm Java Version Mapping | <p>I have a react native project that uses realm version 2.4.0. The project has a purely native feature implementation in Android that depends on some data stored in realm js.</p>
<p>After adding the Android integrations natively to the Android project, trying to invoke any methods on the realm object from Android nat... | I have a react native project that uses realm version 2.4.0. The project has a purely native feature implementation in Android that depends on some data stored in realm js. After adding the Android integrations natively to the Android project, trying to invoke any methods on the realm object from Android natively throw... | android|react-native|realm|realm-mobile-platform | 0 | 2018-12-12T20:43:31.333Z | 2,018 | 12 | 20 | 2 | 48 | 1 | 572 | 46 | 4 | 0 | false | false | false | false | false | false | zero |
53,680,207 | Framework7 and Material Design: Styling not rendered | <p>I'm building my first Android app using Framework7. However, when I use the example provided in <a href="https://www.tutorialspoint.com/framework7/navbar_basic.htm" rel="nofollow noreferrer">https://www.tutorialspoint.com/framework7/navbar_basic.htm</a>, and use the CDNs corresponding to the latest version of Framew... | I'm building my first Android app using Framework7. However, when I use the example provided in https://www.tutorialspoint.com/framework7/navbar_basic.htm , and use the CDNs corresponding to the latest version of Framework7 (3.6.0 instead of 1.4.2), my webpage just renders as HTML without any styling whatsoever. My cod... | javascript|android|html|css|html-framework-7 | 1 | 2018-12-08T06:38:38.070Z | 2,018 | 12 | 6 | 5 | 304 | 1 | 329 | 52 | 5 | 1 | true | false | false | false | false | false | low |
53,524,300 | Oreo AlarmManager not working in Background | <p>I want to start a Notification Service with an AlarmManager. However, it doesn't alyways work, when swiped the app in the recent tasks layer. I have also tried out JobIntentService and JobService with the propriate entries in the Manifest, everything resulted in the same problem: The Notification or also startActivi... | I want to start a Notification Service with an AlarmManager. However, it doesn't alyways work, when swiped the app in the recent tasks layer. I have also tried out JobIntentService and JobService with the propriate entries in the Manifest, everything resulted in the same problem: The Notification or also startActivity(... | android|alarmmanager|android-notifications|android-8.0-oreo|android-8.1-oreo | 0 | 2018-11-28T16:45:56.360Z | 2,018 | 11 | 16 | 2 | 560 | 1 | 647 | 43 | 5 | 2 | true | false | false | false | false | false | zero |
53,563,099 | Firebase Anonymous Auth (Android): Lifetime? | <p>I'm thinking about using anonymous login in one of my apps as I don't really need to know anything about the user and using the account across devices is not required.
However, the user has to provide some information (once when first using the app) in order to use the app. This information is - obviously - linked t... | I'm thinking about using anonymous login in one of my apps as I don't really need to know anything about the user and using the account across devices is not required. However, the user has to provide some information (once when first using the app) in order to use the app. This information is - obviously - linked to t... | android|firebase|firebase-authentication | 1 | 2018-11-30T18:38:39.973Z | 2,018 | 11 | 18 | 4 | 560 | 1 | 770 | 44 | 3 | 0 | false | false | false | false | false | false | low |
53,647,936 | Adjust cropper instead of image zoom react native image crop picker | <p>I am trying to adjust the cropper instead of zoom in and zoom out of image.</p>
<p>I am using <code>react-native-image-crop-picker</code>. I want the cropper to move rather than the image clicked.</p>
<p>Here is my code:</p>
<pre><code>imageCropView(){
ImagePicker.openCropper({
hideBottomControls:true,
... | I am trying to adjust the cropper instead of zoom in and zoom out of image. I am using react-native-image-crop-picker . I want the cropper to move rather than the image clicked. Here is my code: [CODE] | javascript|android|ios|reactjs|react-native | 0 | 2018-12-06T09:10:45.747Z | 2,018 | 12 | 9 | 3 | 816 | 1 | 201 | 67 | 5 | 1 | true | false | false | false | false | false | zero |
53,557,381 | ExoPlayer Seek Start and Seek End events | <p>I implemented the AnalyticsListener interface and I'm listening "onSeekStarted" and "onSeekProcessed" events.</p>
<p>In ExoPlayer when I start seeking I don't get any event. When I release the slider I get the "onSeekStarted", then the video recalculates the position and when the video starts playing again from the... | I implemented the AnalyticsListener interface and I'm listening "onSeekStarted" and "onSeekProcessed" events. In ExoPlayer when I start seeking I don't get any event. When I release the slider I get the "onSeekStarted", then the video recalculates the position and when the video starts playing again from the new positi... | android|exoplayer|exoplayer2.x | 0 | 2018-11-30T12:13:33.383Z | 2,018 | 11 | 12 | 4 | 3,888 | 1 | 591 | 40 | 3 | 0 | false | false | true | false | false | false | zero |
53,365,837 | Alarm Notification Data disappear after rebooting phone | <p>I am building a notification app, that uses alarm manager to set multiple notifications to reminde user of daily tasks, when phone is On everything is good, but when a reboot the phone, the notification is showing up but the notification data are lost (for example notification content) those data are saved into inte... | I am building a notification app, that uses alarm manager to set multiple notifications to reminde user of daily tasks, when phone is On everything is good, but when a reboot the phone, the notification is showing up but the notification data are lost (for example notification content) those data are saved into intent ... | android|android-intent|notifications|broadcastreceiver|alarmmanager | 0 | 2018-11-18T21:53:31.557Z | 2,018 | 11 | 21 | 6 | 49 | 1 | 494 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
53,406,920 | Item showing during debug otherwise not showing item in ListView | <p>This is my code, when I debugging then code work properly means list item show in Listview but without debugging list item not showing in this code Listview empty </p>
<pre><code>ImageView cancl1e = convertView1.findViewById(R.id.btncance);
if (jsonArray.length() > 0) {
listView = convertView1.findViewBy... | This is my code, when I debugging then code work properly means list item show in Listview but without debugging list item not showing in this code Listview empty [CODE] | java|android | 1 | 2018-11-21T07:11:50.230Z | 2,018 | 11 | 7 | 2 | 49 | 1 | 169 | 64 | 2 | 1 | true | false | false | false | false | false | low |
53,450,268 | Is it possible to check whether a user is typing or not using background service of third party application? | <p>I am making an android application that can make alert when a user starts typing in android phone. My service would be running in background and from that service i want to sense that user is typing in any other application.</p> | I am making an android application that can make alert when a user starts typing in android phone. My service would be running in background and from that service i want to sense that user is typing in any other application. | android|service | -1 | 2018-11-23T16:38:25.450Z | 2,018 | 11 | 16 | 4 | 49 | 1 | 224 | 108 | 2 | 0 | false | false | false | false | false | true | negative |
53,450,881 | How to create an external shadow at the top of my layout? | <p>I want to create External Shadow at the top of a view in Android.</p>
<pre><code> <LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/layout2"
... | I want to create External Shadow at the top of a view in Android. [CODE] How to make shadow in the external Top of the layout layout1 ? | android|android-layout|android-widget|android-linearlayout|shadow | 0 | 2018-11-23T17:31:48.943Z | 2,018 | 11 | 17 | 4 | 49 | 1 | 135 | 57 | 5 | 1 | true | false | false | false | false | false | zero |
53,571,242 | Error in posting data to Rest API server with auth Token in android | <p>I am trying to post data to REST API server with retrofit + RxJava . When I am trying to send data to server , it said " HTTP 500 Internal Server Error Occurred". But when the data is send with POSTMAN, it succeeded. </p>
<p>This is the function for sending data in Model.</p>
<pre><code> // Encountering with 500... | I am trying to post data to REST API server with retrofit + RxJava . When I am trying to send data to server , it said " HTTP 500 Internal Server Error Occurred". But when the data is send with POSTMAN, it succeeded. This is the function for sending data in Model. [CODE] This is my API interface [CODE] This is the retr... | android|retrofit|rx-java | 1 | 2018-12-01T13:27:45.280Z | 2,018 | 12 | 13 | 5 | 49 | 1 | 513 | 67 | 3 | 3 | true | false | false | false | false | false | low |
53,582,441 | GPS app failing to start after boot when targetting API Level 26 (Oreo) update | <p>I have gps app on google store which target API version 25. I made some functional update and updated target/compile version to 26 because Google requires that these days. But my background service fails when it try to start after boot. Android studio is not giving any error when I debug. When I change back target v... | I have gps app on google store which target API version 25. I made some functional update and updated target/compile version to 26 because Google requires that these days. But my background service fails when it try to start after boot. Android studio is not giving any error when I debug. When I change back target vers... | android|android-gps | 0 | 2018-12-02T16:48:16.173Z | 2,018 | 12 | 16 | 6 | 49 | 1 | 569 | 78 | 2 | 2 | true | false | false | false | false | false | zero |
53,592,459 | label doesn't update on older system version - xamarin | <p>I have issue. </p>
<p>Label doesn't update on older version.
On android system version 8.1 everything is ok but for instance on 7.1 version refreshing label doesn't work.</p>
<pre><code> private void OnTimedEvent(object sender, System.Timers.ElapsedEventArgs e)
{
var lab_seconds = FindViewByI... | I have issue. Label doesn't update on older version. On android system version 8.1 everything is ok but for instance on 7.1 version refreshing label doesn't work. [CODE] | c#|android|xamarin | 2 | 2018-12-03T11:02:22.447Z | 2,018 | 12 | 11 | 0 | 49 | 1 | 169 | 54 | 3 | 1 | true | false | false | false | false | false | low |
53,600,342 | Android Studio Bluetooth Application Error: :app:mergeDebugResources | <p>Hi I am trying to build a simple bluetooth and followed a tutorial off Youtube. However I have been getting 1 error when building. In the build terminal There is an error in Run build > Run tasks > :app:mergeDebugResources:</p>
<pre><code>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:... | Hi I am trying to build a simple bluetooth and followed a tutorial off Youtube. However I have been getting 1 error when building. In the build terminal There is an error in Run build > Run tasks > :app:mergeDebugResources: [CODE] I have looked online for help and the tips have not worked yet. Can anyone help me solve ... | java|android|android-studio|bluetooth | 0 | 2018-12-03T19:12:38.177Z | 2,018 | 12 | 19 | 0 | 49 | 1 | 332 | 68 | 4 | 1 | true | false | false | false | false | false | zero |
53,623,387 | Cannot resolve symbil intent - Did import intent | <p>So trying to create a what I assume is a basic resumé app.
I got two classes, both have the same problem. It says it "cannot resolve symbol intent" </p>
<p>Did the google part but nothing makes sense..</p>
<p>Here's my code.</p>
<p>MainActivity class:</p>
<pre><code>package com.example.boo.mittcv;
import andro... | So trying to create a what I assume is a basic resumé app. I got two classes, both have the same problem. It says it "cannot resolve symbol intent" Did the google part but nothing makes sense.. Here's my code. MainActivity class: [CODE] Cv Class: [CODE] | java|android|android-studio|compiler-errors | 0 | 2018-12-05T00:21:50.547Z | 2,018 | 12 | 0 | 2 | 49 | 1 | 253 | 48 | 4 | 2 | true | false | false | false | false | false | zero |
53,636,168 | Sum of values from database in new textbox | <p>I have a problem with displaying total sum of all database values into one textbox.</p>
<p>Here is code from activity_main.xml</p>
<pre><code><TextView
android:id="@+id/ukupno"
android:layout_width="172dp"
android:layout_height="94dp"
android:layout_alignParentStart="true"
... | I have a problem with displaying total sum of all database values into one textbox. Here is code from activity_main.xml [CODE] Here is code from MainActivity.java [CODE] And here is code from ArtiklCursorAdapter [CODE] Now, I want to sum all double totalCurrent, from each row and display sum in "ukupno" textbox. TY for... | android|database|sum | -1 | 2018-12-05T15:59:00.773Z | 2,018 | 12 | 15 | 2 | 49 | 1 | 326 | 42 | 3 | 3 | true | false | false | false | false | true | negative |
53,672,469 | Retrieving multiple data from firebase returning null | <p>I'm using a Firebase database to store and read a list of "clubs" in an Android app.
Below there's the Json representation of that.</p>
<pre><code>{
"clubs" : [ {
"id" : 1,
"image" : {
"allocationByteCount" : 589824,
"byteCount" : 589824,
"config" : "ARGB_8888",
"density" : 320,
... | I'm using a Firebase database to store and read a list of "clubs" in an Android app. Below there's the Json representation of that. [CODE] I'm using a FirebaseAdapter class to call methods upon the Firebase database. But it returns null when trying to get all clubs. Bellow theres the method that calls it: [CODE] Is the... | java|android | 0 | 2018-12-07T15:28:50.323Z | 2,018 | 12 | 15 | 4 | 49 | 1 | 376 | 53 | 2 | 2 | true | false | false | false | false | false | zero |
53,692,358 | Fitting Bitmap to Screen In SomeView Class onDrawBitmap method | <p>Firstly its not just about scaling bitmap to all screen. It's not duplicate. I searched for it. </p>
<p>I have a class named SomeView and I'm calling this <strong>SomeView class</strong> on <strong>MainActivity</strong> like;</p>
<pre><code> setContentView(new SomeView(MainActivity.this, bitmap ));
</code></pre... | Firstly its not just about scaling bitmap to all screen. It's not duplicate. I searched for it. I have a class named SomeView and I'm calling this SomeView class on MainActivity like; [CODE] Sendind bitmap from MainActivity. And I'm loading image using [CODE] I also tried. [CODE] and also tried.. [CODE] But nothing wor... | java|android|bitmap|android-canvas|android-bitmap | 0 | 2018-12-09T12:37:02.720Z | 2,018 | 12 | 12 | 6 | 49 | 1 | 471 | 62 | 5 | 5 | true | false | false | false | false | false | zero |
53,721,805 | Firebase: How to implement "take action only when another device is online"? | <p>I am implementing a communication app using Firebase Real-time database with certain game kinds of features which needs both the users online. Consider user <code>A</code> and <code>B</code> are communicating and there are certain actions <code>A</code> can take only if <code>B</code> is also online(B is connected t... | I am implementing a communication app using Firebase Real-time database with certain game kinds of features which needs both the users online. Consider user A and B are communicating and there are certain actions A can take only if B is also online(B is connected to Firebase Real-time Database). How can I implement thi... | android|firebase|firebase-realtime-database | 1 | 2018-12-11T10:11:00.323Z | 2,018 | 12 | 10 | 1 | 49 | 1 | 1,037 | 76 | 3 | 0 | false | false | false | false | false | false | low |
53,754,735 | Slide down, up animation only works for the first time in fragment | <p>I have implemented a slide_down and slide_up animation for my layout in my fragment. I have implemented that for a click in my MPAndroidChart bar chart. Problem is this works well for the first slide_down and slide_up click. For next clicks animation not working.</p>
<p><strong>slide_down.xml</strong></p>
<p></p>
... | I have implemented a slide_down and slide_up animation for my layout in my fragment. I have implemented that for a click in my MPAndroidChart bar chart. Problem is this works well for the first slide_down and slide_up click. For next clicks animation not working. slide_down.xml [CODE] slide_up.xml [CODE] Layout [CODE] ... | android|animation | 0 | 2018-12-13T03:44:48.160Z | 2,018 | 12 | 3 | 3 | 49 | 1 | 410 | 66 | 2 | 5 | true | false | false | false | false | false | zero |
53,687,541 | Android Studio multi module app - issue with Content Root | <p>I am learning how to create a multi-module Android app.
I have created a new project and deleted the initial <code>app</code> module.
Then I added 2 pure Java/Kotlin modules: data and domain.</p>
<p>I have an issue that the content root of these modules is not recognized automatically when I invalidate the cache a... | I am learning how to create a multi-module Android app. I have created a new project and deleted the initial app module. Then I added 2 pure Java/Kotlin modules: data and domain. I have an issue that the content root of these modules is not recognized automatically when I invalidate the cache and restart Android Studio... | java|android|android-studio|kotlin|multi-module | 0 | 2018-12-08T22:19:35.233Z | 2,018 | 12 | 22 | 5 | 305 | 1 | 493 | 57 | 5 | 0 | false | false | false | false | false | false | zero |
53,509,285 | CheckedTextview not checkable | <p>Can't get my checkedtextview to check or do anything for that matter. When I touch the listitem it doesn't do anything, it's not clickable.
I've tried to add itemclicklistener to the listview but it didn't work.
Am I missing something? or is it another way to do this?</p>
<p>MainActivity:</p>
<pre><code>public cl... | Can't get my checkedtextview to check or do anything for that matter. When I touch the listitem it doesn't do anything, it's not clickable. I've tried to add itemclicklistener to the listview but it didn't work. Am I missing something? or is it another way to do this? MainActivity: [CODE] Adapter: [CODE] } Model class:... | android|android-listview|checkedtextview | 0 | 2018-11-27T22:34:27.080Z | 2,018 | 11 | 22 | 1 | 561 | 1 | 336 | 29 | 3 | 4 | true | false | false | false | false | false | zero |
53,606,770 | Broadcast receiver to read incoming sms | <p>My app to read incoming sms using broadcast receiver is working fine in many mobiles but not working in samsung j5 mobile. Can you give me proper solution for that problem.<br>
My <code>MainActivity.java</code> is</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void ... | My app to read incoming sms using broadcast receiver is working fine in many mobiles but not working in samsung j5 mobile. Can you give me proper solution for that problem. My MainActivity.java is [CODE] MyReceiver.java [CODE] SmsListener.java [CODE] AndroidManifest.xml [CODE] This is my application code. I want to toa... | android-studio|android-broadcastreceiver | 0 | 2018-12-04T06:17:07.547Z | 2,018 | 12 | 6 | 1 | 561 | 1 | 454 | 39 | 2 | 4 | true | false | false | false | false | false | zero |
53,359,772 | Weird issue with local notification on Oreo | <p>I was trying to implement a feature where user can set a reminder that will be delivered with a local push notification.</p>
<p>I am using <code>AlarmManager</code> to throw a broadcast when the time is up.
Then in the broadcast receiver, I am posting a local notification and then starting a foreground service whic... | I was trying to implement a feature where user can set a reminder that will be delivered with a local push notification. I am using AlarmManager to throw a broadcast when the time is up. Then in the broadcast receiver, I am posting a local notification and then starting a foreground service which starts an activity so ... | android|notifications|android-8.0-oreo | 2 | 2018-11-18T10:15:59.523Z | 2,018 | 11 | 10 | 6 | 50 | 1 | 842 | 43 | 3 | 2 | true | false | false | false | false | false | low |
53,512,753 | RxJava: Executing another observable from inside first observable under some condition | <p>I have the following</p>
<pre><code>Observable<DATA> = getDataFromA();
Observable<DATA> = getDataFromB();
Observable<DATA> = getData();
public void getData() {
/*
Here I would like to have the following in a single stream:
1. return getDataFromA();
2. after data from A is fetched: if (Conditi... | I have the following [CODE] Observable.concat() and Observable.merge() would join the streams and thus the results from getDataFromB() would be received by the subscriber. Is there a way so that getDataFromB() observable is executed after getDataFromA() but without providing direct results to the subscriber. Thanks. | rx-java|rx-java2|rx-android | 0 | 2018-11-28T05:33:55.970Z | 2,018 | 11 | 5 | 2 | 50 | 1 | 317 | 86 | 3 | 1 | true | false | false | false | false | false | zero |
53,543,386 | Changing background color of view depending on if statement | <p>My question is about trying to change the background color of a view in Android studio in multiple places in a code.</p>
<p>I'm working on a booking system, and trying to change the color of a view based on if too many of a single ressource is booked.
The idea is to call a function called "tooManyItems()" to check ... | My question is about trying to change the background color of a view in Android studio in multiple places in a code. I'm working on a booking system, and trying to change the color of a view based on if too many of a single ressource is booked. The idea is to call a function called "tooManyItems()" to check this. and c... | android|view | 0 | 2018-11-29T16:21:57.757Z | 2,018 | 11 | 16 | 3 | 50 | 1 | 1,513 | 59 | 2 | 3 | true | false | false | false | false | false | zero |
53,591,281 | Unity game asks permission not reflected in the manifest | <p>So I am developing this game in which some 3rd party SDKs are also included. When I am trying to install the apk, it asks for some permissions, namely:
1- Accessing the contacts,
2- Accessing photos, media and files,
3- Managing phone calls.</p>
<p>However, none of these permissions is mentioned neither in the main... | So I am developing this game in which some 3rd party SDKs are also included. When I am trying to install the apk, it asks for some permissions, namely: 1- Accessing the contacts, 2- Accessing photos, media and files, 3- Managing phone calls. However, none of these permissions is mentioned neither in the main Android Ma... | android|unity3d|android-manifest | 0 | 2018-12-03T09:57:56.783Z | 2,018 | 12 | 9 | 0 | 50 | 1 | 446 | 56 | 3 | 0 | false | false | false | false | false | false | zero |
53,600,800 | Is there a similar thing in Android to WPF's Imagebrush? | <p>I would like to fill each Rect with a small unique image. Is there a best way to do this? Right now they are drawn with using a Paint object.</p> | I would like to fill each Rect with a small unique image. Is there a best way to do this? Right now they are drawn with using a Paint object. | android|kotlin|rect|imagebrush | 0 | 2018-12-03T19:45:07.973Z | 2,018 | 12 | 19 | 0 | 50 | 1 | 141 | 56 | 4 | 0 | false | false | false | false | false | false | zero |
53,680,149 | why http.dart file shows empty when redirecting from import line after adding dependency , also http.get(url) method is undfined | <p>i am a newbie in flutter, actually i am importing http.dart file after adding dependency "http: ^0.12.0" in pubspec.yaml , but as soon as i started importing http.dart file in main.dart and redirect to http.dart file , it shows empty there also the http.get(url) is unrecognized.</p>
<p>thats how i am importing http... | i am a newbie in flutter, actually i am importing http.dart file after adding dependency "http: ^0.12.0" in pubspec.yaml , but as soon as i started importing http.dart file in main.dart and redirect to http.dart file , it shows empty there also the http.get(url) is unrecognized. thats how i am importing http.dart file ... | android|ios|dart|flutter|flutter-dependencies | 1 | 2018-12-08T06:30:05.003Z | 2,018 | 12 | 6 | 5 | 50 | 1 | 416 | 128 | 5 | 2 | true | false | false | false | false | false | low |
53,694,193 | How to parse Json data and pass them on another activity? | <p>I have a php file that has this output in Json format.</p>
<pre><code>{"user":{"id":"2","name":"aris","surname":"roumeliotis","expire_memb":"201812-15","program":"chest_workout"}
,"exercise1":
{"name":"chest_exercise_name_1",
"gif":"\/img\/ex\/ex_1",
"place":"machine 18",
"muscle_team":"chest"}
,"exercise2":
{"nam... | I have a php file that has this output in Json format. [CODE] It means that the user with the id 2 has 2 exercises in his gym program. I know how to parse the data(using Volley library) but I am having trouble to send them to another activity using intent since exercise1 and exercise2 have the same key names. The exerc... | java|android|json | 0 | 2018-12-09T16:12:18.010Z | 2,018 | 12 | 16 | 6 | 50 | 1 | 903 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
53,712,317 | Disabling sound on Android's Ongoing notification updating | <p>I have an <code>Ongoing</code> notification that shows Date and updates every minute inside a service. But in android 8 it plays sound in every update and users confused whats happening.</p>
<p>i set this:</p>
<pre><code>builder.setPriority(NotificationCompat.PRIORITY_LOW);
</code></pre>
<p>This disabled the soun... | I have an Ongoing notification that shows Date and updates every minute inside a service. But in android 8 it plays sound in every update and users confused whats happening. i set this: [CODE] This disabled the sound but has a side effect. Updating the Date is not working too! I want to update Notification without any ... | java|android|push-notification|android-notifications | 1 | 2018-12-10T19:26:05.833Z | 2,018 | 12 | 19 | 0 | 50 | 1 | 346 | 58 | 4 | 1 | true | false | false | false | false | false | low |
53,731,903 | Why don't I get an error when I reference a id that hasn't been flagged with "@+id"? | <p>I'm referencing @id/action_profile before assigning @+id/action_profile. Why doesn't this give me an error? Is it because the ids are assigned in R.java and the attributes are assigned at runtime?</p>
<pre><code><RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
... | I'm referencing @id/action_profile before assigning @+id/action_profile. Why doesn't this give me an error? Is it because the ids are assigned in R.java and the attributes are assigned at runtime? [CODE] | android|xml|android-layout | 1 | 2018-12-11T20:31:04.370Z | 2,018 | 12 | 20 | 1 | 50 | 1 | 203 | 84 | 3 | 1 | true | false | false | false | false | false | low |
53,739,439 | How to resolve Unexpected response code 400 While POST data using API | <p>As i am unable to post data using this api i am getting the response code of 400 so can u help me to get out of this
This is My Activity</p>
<pre><code>String BASE_URL = "http://74.207.233.160/api/v1/users";
StringRequest stringRequest = new StringRequest(Request.Method.POST, BASE_URL,new Response.Listener<Strin... | As i am unable to post data using this api i am getting the response code of 400 so can u help me to get out of this This is My Activity [CODE] And here is My SingleTon class [CODE] Here is the details of error [CODE] Here is My Postman Screen shot postman post data From the above postman if i use user[email], i am get... | java|android|json|string | -1 | 2018-12-12T09:07:06.090Z | 2,018 | 12 | 9 | 2 | 50 | 1 | 342 | 69 | 4 | 3 | true | false | false | false | false | true | negative |
53,785,859 | How should i fix my error in gradle sincing? | <p>unfortunately i got this error when the gradle was syncing,</p>
<p>Could not find gradle.jar (com.android.tools.build:gradle:3.2.1).
Searched in the following locations:
<a href="https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar" rel="nofollow noreferrer">https://dl.g... | unfortunately i got this error when the gradle was syncing, Could not find gradle.jar (com.android.tools.build:gradle:3.2.1). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar here is my build.Gradle page details, [CODE] | android|gradle | -2 | 2018-12-14T19:31:45.100Z | 2,018 | 12 | 19 | 4 | 50 | 1 | 301 | 44 | 2 | 1 | true | false | false | false | false | true | negative |
53,734,732 | Why Firebase Function calling Firebase admin.messaging.sendToDevice() cannot create notification on Android device | <p>I have an Android app, and am trying to send a notification to a specific device on which it is installed, using the Firebase Messaging API from a Firebase Function. But the notification never shows up. However, sending manually from the Firebase Console does make a notification show up successfully on the same devi... | I have an Android app, and am trying to send a notification to a specific device on which it is installed, using the Firebase Messaging API from a Firebase Function. But the notification never shows up. However, sending manually from the Firebase Console does make a notification show up successfully on the same device.... | android|firebase|firebase-cloud-messaging|google-cloud-functions|android-notifications | 1 | 2018-12-12T01:17:06.777Z | 2,018 | 12 | 1 | 2 | 306 | 1 | 812 | 114 | 5 | 4 | true | false | false | false | false | false | low |
53,691,777 | AndroidStudio MotionEvent: detect only ACTION_UP on a second view, starting ACTION_DOWN on first view | <p>Solved it by using emandt's suggestion. My personal Solution added below.</p>
<p>I'm using Android Studio for this.</p>
<p>I searched for solutions but couldn't find anything resembling this.</p>
<p>I want to know on which ImageView an UP action occurs while starting the DOWN action on a different ImageView (to e... | Solved it by using emandt's suggestion. My personal Solution added below. I'm using Android Studio for this. I searched for solutions but couldn't find anything resembling this. I want to know on which ImageView an UP action occurs while starting the DOWN action on a different ImageView (to eventually be able to drag o... | java|android|android-studio|ontouchlistener|motionevent | 0 | 2018-12-09T11:20:40.320Z | 2,018 | 12 | 11 | 6 | 562 | 1 | 1,857 | 101 | 5 | 3 | true | false | false | false | false | false | zero |
53,596,596 | JobScheduler-NETWORK_TYPE_NONE gives IllegalArgumentException | <p>I am using below code to schedule a job service.</p>
<pre><code>JobScheduler jobScheduler = (JobScheduler) mContext.getApplicationContext().getSystemService(Context.JOB_SCHEDULER_SERVICE);
if (jobScheduler != null) {
try {
jobScheduler.schedule... | I am using below code to schedule a job service. [CODE] But getting below exception 2018-12-03 17:51:22.360 5032-5557/? W/System.err: java.lang.IllegalArgumentException: You're trying to build a job with no constraints, this is not allowed. But when I change setRequiredNetworkType(NETWORK_TYPE_NONE) to setRequiredNetwo... | android|illegalargumentexception|android-jobscheduler|jobservice | 1 | 2018-12-03T15:16:14.957Z | 2,018 | 12 | 15 | 0 | 818 | 1 | 483 | 61 | 4 | 1 | true | false | false | false | false | false | low |
53,768,081 | How to fix app go to background after reorder to front and back | <p>I currently managed to allow user switch between two distinct acitivties groups (let's said 4 activity classes A/B group and X/Y group) and switch by <code>FLAG_ACTIVITY_REORDER_TO_FRONT</code> flag, but I noticed there are some strange behaviour:</p>
<pre><code>A ->(start activity) X
X ->(reorder to front) ... | I currently managed to allow user switch between two distinct acitivties groups (let's said 4 activity classes A/B group and X/Y group) and switch by FLAG_ACTIVITY_REORDER_TO_FRONT flag, but I noticed there are some strange behaviour: [CODE] How to prevent app hide to background when back from B2 ? I noticed it only ha... | android-intent|android-activity|android-background|android-task | 2 | 2018-12-13T18:29:50.750Z | 2,018 | 12 | 18 | 3 | 1,074 | 1 | 851 | 63 | 4 | 1 | true | false | false | false | false | false | low |
53,796,045 | Multiple cursors in Android Studio automatically at every text that matches? | <p>I have been using multiple cursors with <code>ALT + SHIFT</code>. Sometimes I need like 20 cursors and I want them at the start of the same portion of text. This is tedious to do every time. Is there a shortcut for this? Like imagine there are 20 instance of the text "foo" in the file then I would like to just selec... | I have been using multiple cursors with ALT + SHIFT . Sometimes I need like 20 cursors and I want them at the start of the same portion of text. This is tedious to do every time. Is there a shortcut for this? Like imagine there are 20 instance of the text "foo" in the file then I would like to just select one and ideal... | android-studio|intellij-idea|multiple-cursor | 6 | 2018-12-15T18:26:43.517Z | 2,018 | 12 | 18 | 5 | 2,866 | 1 | 412 | 76 | 3 | 0 | false | false | true | false | false | false | medium |
53,386,439 | App's map stays blank in first run after asking for permissions, but works properly after closed and reopened | <p>I'm making an app that shows you a map and you can add custom markers with some info. I'm still working on connecting it into a DB to save everything.</p>
<p>So, every time I run my app and it doesn't have the permissions allowed, it asks for them. Afterwards, it should then center and zoom the map on the current l... | I'm making an app that shows you a map and you can add custom markers with some info. I'm still working on connecting it into a DB to save everything. So, every time I run my app and it doesn't have the permissions allowed, it asks for them. Afterwards, it should then center and zoom the map on the current location. Ho... | java|android|xml|google-maps|android-studio | 0 | 2018-11-20T04:53:09.153Z | 2,018 | 11 | 4 | 1 | 51 | 1 | 1,150 | 109 | 5 | 2 | true | false | false | false | false | false | zero |
53,411,772 | Checbox is automatically showing as selected in ExpandableListView | <p>I have a ExpandableListView that has only one child and max 2 groups
this child has a groupview with 4-5 checkboxes - all groupview are using the same childview</p>
<p>When I check a element in first child and I scroll down I see that the same element is showing as selected in second group
I repeat is showing as ... | I have a ExpandableListView that has only one child and max 2 groups this child has a groupview with 4-5 checkboxes - all groupview are using the same childview When I check a element in first child and I scroll down I see that the same element is showing as selected in second group I repeat is showing as selected, its... | android|listener|expandablelistview | 0 | 2018-11-21T12:11:05.453Z | 2,018 | 11 | 12 | 2 | 51 | 1 | 861 | 66 | 3 | 0 | false | false | false | false | false | false | zero |
53,419,310 | How get an ArrayList return from the WebService | <p>I have a WebService with a method returns an ArrayList with two values, and in Android I need to save in another ArrayList but when i do the .add(), gives me an ArrayList with one value [string, string].</p>
<p>Here is the code form the WebService method:</p>
<pre><code>@WebMethod(operationName = "mostarNombre")
p... | I have a WebService with a method returns an ArrayList with two values, and in Android I need to save in another ArrayList but when i do the .add(), gives me an ArrayList with one value [string, string]. Here is the code form the WebService method: [CODE] And here is the code from my method in Android: [CODE] When I do... | java|android | 0 | 2018-11-21T19:31:42.087Z | 2,018 | 11 | 19 | 2 | 51 | 1 | 453 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
53,437,110 | java.sql.Timestamp generates apace(s) between date and time .Must be replaced with %20 for good working on all PCs or devices | <p>I countered to a serious problem about android studio. I have a project working on a laptop and a pc in two places.Problem:When I work with PC in place of 1 , All my services in android is working but in the place of 2 (on laptop) all services except one in working. For this special service I got error code of 400 ... | I countered to a serious problem about android studio. I have a project working on a laptop and a pc in two places.Problem:When I work with PC in place of 1 , All my services in android is working but in the place of 2 (on laptop) all services except one in working. For this special service I got error code of 400 in p... | java|android|android-studio|android-service | 0 | 2018-11-22T19:30:47.560Z | 2,018 | 11 | 19 | 3 | 51 | 1 | 746 | 125 | 4 | 0 | false | false | false | false | false | false | zero |
53,440,649 | Can not Rebuild Project or Build Apk File | <p>When i try to rebuild or build APK file, the error show :</p>
<p><strong>D:\MyApp\My_FCM\libs\preLollipopTransition\src\main\java\com\albinmathew\transitions\core\TransitionAnimation.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.</strong></p>
<p>My preLollopopTransition gr... | When i try to rebuild or build APK file, the error show : D:\MyApp\My_FCM\libs\preLollipopTransition\src\main\java\com\albinmathew\transitions\core\TransitionAnimation.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details. My preLollopopTransition gradle : [CODE] What's wrong ? Anybody... | android | -1 | 2018-11-23T04:26:57.443Z | 2,018 | 11 | 4 | 4 | 51 | 1 | 334 | 41 | 1 | 1 | true | false | false | false | false | true | negative |
53,600,112 | Fill a list from data of the database | <p>please I would need your help to figure out, why these code lines do not work.
I would like to fill a list with String elements taken from the database.</p>
<p>This is the mothod fillTheList() which returns a list:</p>
<pre><code>public List<String> fillTheList() {
List<String> list = new ArrayList... | please I would need your help to figure out, why these code lines do not work. I would like to fill a list with String elements taken from the database. This is the mothod fillTheList() which returns a list: [CODE] The getDataCategories() is a mehod of the sqLiteHelper-class [CODE] The error occurs at: Cursor cursor = ... | android|sqlite | 0 | 2018-12-03T18:55:40.433Z | 2,018 | 12 | 18 | 0 | 51 | 1 | 630 | 37 | 2 | 2 | true | false | false | false | false | false | zero |
53,624,737 | When I add a new .c file, Android Studio informs me that it is not part of the project | <p>I'm developing an Android Studio project with JNI code, and I added a .c and .h source file manually to the project. However, Android Studio informs me that the file is not part of the project. I Googled a bit and the solution seems to be to include it in Android.mk, but I did a search for that file and there are mu... | I'm developing an Android Studio project with JNI code, and I added a .c and .h source file manually to the project. However, Android Studio informs me that the file is not part of the project. I Googled a bit and the solution seems to be to include it in Android.mk, but I did a search for that file and there are multi... | android|c++|c|android-studio|java-native-interface | -1 | 2018-12-05T03:27:31.427Z | 2,018 | 12 | 3 | 2 | 51 | 1 | 402 | 86 | 5 | 0 | false | false | false | false | false | true | negative |
53,663,404 | Android Allocating Faster than Garbage Collecting | <p>I have a large app (2 year old codebase) and it's beginning to get ANRs from a number of its users. </p>
<p>I looked at the Profiler on Android Studio and it looks like I have been allowing deallocations for everything -- no circular references (not that this should matter) and every object type eventually gets som... | I have a large app (2 year old codebase) and it's beginning to get ANRs from a number of its users. I looked at the Profiler on Android Studio and it looks like I have been allowing deallocations for everything -- no circular references (not that this should matter) and every object type eventually gets some deallocati... | android|performance|android-studio|profiler | 0 | 2018-12-07T04:44:39.113Z | 2,018 | 12 | 4 | 4 | 51 | 1 | 929 | 49 | 4 | 0 | false | false | false | false | false | false | zero |
53,794,167 | How download file in different folder from different URLs by asyncTask? | <p>I have an app that download multiply files from a two URLs to download folder by asyncTask . It works perfectly but I want download file in a different folder. for example, file 1 download in App folder and file 2 download in download folder.. how can do like this?</p>
<pre><code> Button button = (Button) findViewB... | I have an app that download multiply files from a two URLs to download folder by asyncTask . It works perfectly but I want download file in a different folder. for example, file 1 download in App folder and file 2 download in download folder.. how can do like this? [CODE] | java|android | 2 | 2018-12-15T14:31:58.153Z | 2,018 | 12 | 14 | 5 | 51 | 1 | 272 | 71 | 2 | 1 | true | false | false | false | false | false | low |
53,546,614 | How to use ObjectBox in Gradle multi-module project? | <p>I try to create multi-module project with two features(<strong>A</strong> and <strong>B</strong>). They have several entities <strong>AEntity</strong> and <strong>BEntity</strong>.</p>
<p>After make project I have several <strong>MyObjectBox</strong> classes in the each feature-module.</p>
<p>When I do:</p>
<pre>... | I try to create multi-module project with two features( A and B ). They have several entities AEntity and BEntity . After make project I have several MyObjectBox classes in the each feature-module. When I do: [CODE] I catch this: Another BoxStore is still open for this directory... Cause BoxStore can be opened only one... | android|multi-module|objectbox | 2 | 2018-11-29T19:56:00.220Z | 2,018 | 11 | 19 | 3 | 307 | 1 | 451 | 52 | 3 | 1 | true | false | false | false | false | false | low |
53,447,626 | Android Camera: How to process byte data in onPictureTaken using openCV | <p>I'm trying to process an image that comes from a <code>JpegImageCallback</code> like this</p>
<pre><code> mContentView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mContentView.getCamera().setPreviewCallback(null);
mContentView... | I'm trying to process an image that comes from a JpegImageCallback like this [CODE] The JpegImageCallback looks like this [CODE] The conversion from data to org.opencv.core.Mat is copied from org.opencv.android.JavaCameraView . It works totally fine when the data comes in onPreviewFrame(byte[] frame, Camera camera) in ... | android|opencv | 1 | 2018-11-23T13:29:51.007Z | 2,018 | 11 | 13 | 4 | 563 | 1 | 989 | 71 | 2 | 2 | true | false | false | false | false | false | low |
53,721,111 | Work manager periodic job not working on chinese ROMs once app is force closed | <p>I have tried stack overflow but people only added Android documentation which says it'll work but it doesn't i have also raised an issue in google's issue tracker <a href="https://issuetracker.google.com/issues/120811754" rel="nofollow noreferrer">here</a>.</p>
<p>I have tested on Android versions: 6, 7, 8 and work... | I have tried stack overflow but people only added Android documentation which says it'll work but it doesn't i have also raised an issue in google's issue tracker here . I have tested on Android versions: 6, 7, 8 and work manager 1.0.0-alpha11, 1.0.0-alpha12 If anyone has found any solution for running periodic job ple... | android|androidx|android-workmanager | 1 | 2018-12-11T09:31:49.450Z | 2,018 | 12 | 9 | 1 | 563 | 1 | 361 | 78 | 3 | 0 | false | false | false | false | false | false | low |
53,579,143 | React Native - Dimensions.set() is not working? | <p>I am new to <code>react native</code> and learning about handling the screen dimension for Android platform. I imported the <code>Dimensions</code> module and did everything right but when i call the <code>Dimensions.set()</code> method, nothing is happening. Here is the script:</p>
<pre><code><Button title='Set... | I am new to react native and learning about handling the screen dimension for Android platform. I imported the Dimensions module and did everything right but when i call the Dimensions.set() method, nothing is happening. Here is the script: [CODE] Can anyone tell whats wrong with my script and how to use this method? A... | android|ios|reactjs|react-native | 0 | 2018-12-02T09:55:33.177Z | 2,018 | 12 | 9 | 6 | 819 | 1 | 372 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
53,479,959 | LibGDX AStar Pathfinding on a Tiled Map | <p>I want to have pathfinding in my .tmx file that created by tiled tool for libgdx but I am very biginner in libgdx. can you show me a complete pathfinding example in tiled maps with libgdx?</p>
<p>I use <a href="https://www.mapeditor.org/" rel="nofollow noreferrer">tiled</a> for build my game map. in this grid map ,... | I want to have pathfinding in my .tmx file that created by tiled tool for libgdx but I am very biginner in libgdx. can you show me a complete pathfinding example in tiled maps with libgdx? I use tiled for build my game map. in this grid map , I want to add node to every grid and connect with other nodes that it make us... | java|android|libgdx|path-finding | 1 | 2018-11-26T11:17:10.827Z | 2,018 | 11 | 11 | 0 | 1,331 | 1 | 514 | 39 | 4 | 0 | false | false | false | false | false | false | low |
53,585,123 | Can't sort data from firebase realtime database by timeStamp | <p>I am making a challenges between users in my app .I am trying to get the last 15 users who enters in challenges. I store the time each time the users enter a new challenge. The query was working well in the begging but after that it stops showing new users and only old users appears in it.</p>
<p>this is the query ... | I am making a challenges between users in my app .I am trying to get the last 15 users who enters in challenges. I store the time each time the users enter a new challenge. The query was working well in the begging but after that it stops showing new users and only old users appears in it. this is the query code : [COD... | android|firebase|firebase-realtime-database|firebase-security | 2 | 2018-12-02T22:16:07.647Z | 2,018 | 12 | 22 | 6 | 1,331 | 1 | 643 | 60 | 4 | 1 | true | false | false | false | false | false | low |
53,680,668 | versionCodeOverride equivalent for Gradle Kotlin DSL | <pre><code> android.applicationVariants.all { variant ->
variant.outputs.each { output ->
int newVersionCode = android.defaultConfig.versionCode * 10 + abiVersionCodes.get(output.getFilter(com.android.build.OutputFile.ABI), 0)
output.versionCodeOverride = newVersionCode
... | [CODE] I am trying to convert this Gradle Groovy DSL code to the new Gradle Kotlin DSL. I want the code to work exactly like it used to were APK splitted variant follows my versionCode pattern This is what i have tried to write in Kotlin DSL: [CODE] But it says: "Unresolved reference: versionCodeOverride" What is the c... | android|gradle|kotlin|gradle-kotlin-dsl|groovydsl | 7 | 2018-12-08T07:57:15.827Z | 2,018 | 12 | 7 | 5 | 1,587 | 1 | 361 | 52 | 5 | 2 | true | false | false | false | false | false | medium |
53,587,084 | Android Robotium solo - how to access WebElements contained in an IFRAME? | <p><strong>Scenario:</strong>
I'm using Android Robotium Solo (v5.6.3) to automate web page interactions within my app. I need to automate data entry into INPUT fields that are contained within an IFRAME but I do not have much luck!</p>
<p><strong>The Problem:</strong>
When I attempt to use, for example, solo.waitFor... | Scenario: I'm using Android Robotium Solo (v5.6.3) to automate web page interactions within my app. I need to automate data entry into INPUT fields that are contained within an IFRAME but I do not have much luck! The Problem: When I attempt to use, for example, solo.waitForWebElement(By.id("room-number", 5000, true) an... | android|robotium | 0 | 2018-12-03T03:28:54.883Z | 2,018 | 12 | 3 | 0 | 52 | 1 | 1,174 | 73 | 2 | 2 | true | false | false | false | false | false | zero |
53,662,998 | How can retorfit2 get this json correct? | <p>My json string is produced as below:</p>
<pre><code> header('Content-type:text/json');
if (mysql_num_rows ( $result ) != 0) {
$row = mysql_fetch_assoc($result);
$jobj=new stdclass();
foreach($row as $key=>$value){
$jobj->$key=$value;
}
}
echo json_enc... | My json string is produced as below: [CODE] In browser, the result is {"user_id":1,"step":1,"status":1} . My javabean is : [CODE] set...get...etc When I use retrofit2: [CODE] I get this android.content.res.Resources$NotFoundException: String resource ID #0x1 When I change the JavaBean to this: [CODE] I get the correct ... | java|android|json|gson|retrofit2 | 1 | 2018-12-07T03:54:28.937Z | 2,018 | 12 | 3 | 4 | 52 | 1 | 374 | 40 | 5 | 4 | true | false | false | false | false | false | low |
53,669,455 | Android Read JSON From HTML | <p>I am using an Android Application to do a request to a Node.js server to complete a function on a MongoDB. I am wondering how can I make the Android Application read the JSON response? I have tried putting it into a code bracket on the HTML but it makes no difference. I can do this in PHP just fine but for this envi... | I am using an Android Application to do a request to a Node.js server to complete a function on a MongoDB. I am wondering how can I make the Android Application read the JSON response? I have tried putting it into a code bracket on the HTML but it makes no difference. I can do this in PHP just fine but for this environ... | java|android|html|node.js | 0 | 2018-12-07T12:21:33.973Z | 2,018 | 12 | 12 | 4 | 52 | 1 | 434 | 27 | 4 | 3 | true | false | false | false | false | false | zero |
53,676,035 | DexArchiveMergerException when generating build | <p>I am facing exception when generating build(Build APKs). Below is the exception faced.</p>
<blockquote>
<p>java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives</p>
</blockquote>
<p>I tried to figure out the cause with my libraries tree view. And I ref... | I am facing exception when generating build(Build APKs). Below is the exception faced. java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives I tried to figure out the cause with my libraries tree view. And I referred below links [CODE] And my app's dependency... | android|apk|android-multidex | 1 | 2018-12-07T19:53:28.490Z | 2,018 | 12 | 19 | 4 | 52 | 1 | 346 | 47 | 3 | 2 | true | false | false | false | false | false | low |
53,722,799 | How to build android apk using javafxports,opencv3.4, gradle and eclipse | <p>I use OpenSource <em>javafxports plugins</em> to build a desktop and android application using <em>gradle</em> buildtool with eclipse.</p>
<p>For android I can generate APK and upon unzip in <em>/lib</em> folder there are no native libraries.</p>
<p>My question is: How to build with the Android and can is use same... | I use OpenSource javafxports plugins to build a desktop and android application using gradle buildtool with eclipse. For android I can generate APK and upon unzip in /lib folder there are no native libraries. My question is: How to build with the Android and can is use same System.loadLibrary(Core.NATIVE_LIBRARY_NAME);... | android|eclipse|opencv|build.gradle|javafxports | 0 | 2018-12-11T11:06:23.793Z | 2,018 | 12 | 11 | 1 | 52 | 1 | 494 | 72 | 5 | 0 | false | false | false | false | false | false | zero |
53,734,755 | Android Studio not recognizing base packages such as String or Integer 'Cannot Resolve Symbol ...' | <p>My Android Studio no longer recognizes basic embedded packages such as Strings and Integers.</p>
<p>This is something that occurs across any projects so it may not have to do with code. </p>
<p>I have tried looking into the JDK however nothing has changed with it and it used to work okay in the past. I have also t... | My Android Studio no longer recognizes basic embedded packages such as Strings and Integers. This is something that occurs across any projects so it may not have to do with code. I have tried looking into the JDK however nothing has changed with it and it used to work okay in the past. I have also tried Invalidate and ... | java|android|package | 0 | 2018-12-12T01:21:29.737Z | 2,018 | 12 | 1 | 2 | 52 | 1 | 512 | 98 | 3 | 0 | false | false | false | false | false | false | zero |
53,796,290 | how to call setAction in dialog? | <p>i want to create add data to SQL lite with pop up dialog, in dialog just have one textedit and buttom save. in Snackbar usually use setAction(). but in dialog I don't know how to call "AddData".</p>
<pre><code> @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
... | i want to create add data to SQL lite with pop up dialog, in dialog just have one textedit and buttom save. in Snackbar usually use setAction(). but in dialog I don't know how to call "AddData". [CODE] and i want to call this code AddData to onCreate, this code to save text in sqlLite. [CODE] Please help me solve this ... | android|android-fragments|android-dialogfragment|android-dialog | -1 | 2018-12-15T18:56:06.527Z | 2,018 | 12 | 18 | 5 | 52 | 1 | 339 | 32 | 4 | 2 | true | false | false | false | false | true | negative |
53,543,026 | react-native: project not building after running expo eject | <p>I recently ejected my Expo project because I needed to install a native module. It built the first time after taking an incredible amount of time, then trying to build again and it keeps saying this:</p>
<pre><code>FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configur... | I recently ejected my Expo project because I needed to install a native module. It built the first time after taking an incredible amount of time, then trying to build again and it keeps saying this: [CODE] I've tried everything I can, and the issues on GitHub don't provide an explicit way to fix this | android|react-native|expo | 0 | 2018-11-29T16:01:51.590Z | 2,018 | 11 | 16 | 3 | 308 | 1 | 302 | 59 | 3 | 1 | true | false | false | false | false | false | zero |
53,667,676 | Wants to add Scroll in Registration Page in flutter | <p>I tried with NestedScrollview, CustomScrollview but not get proper output.
I want to add scroll in Registration page without taking list .
I added data as a TextFormField.
parent is Container and inside Container add Scfold as a child.
Here is my code:</p>
<pre><code>body: SingleChildScrollView(
child... | I tried with NestedScrollview, CustomScrollview but not get proper output. I want to add scroll in Registration page without taking list . I added data as a TextFormField. parent is Container and inside Container add Scfold as a child. Here is my code: [CODE] | android|flutter | 0 | 2018-12-07T10:29:15.667Z | 2,018 | 12 | 10 | 4 | 308 | 1 | 259 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
53,709,347 | Paging Library Invalidate Data Source | <p>What's the simplest way to invalidate data retrieved by the paging library?
I need to do that on logout.
I've a DataSource.Factory and a DataSource that extends PageKeyedDataSource. Is it a good idea to call invalidate() on DataSource contructor? Will it work as expected?</p> | What's the simplest way to invalidate data retrieved by the paging library? I need to do that on logout. I've a DataSource.Factory and a DataSource that extends PageKeyedDataSource. Is it a good idea to call invalidate() on DataSource contructor? Will it work as expected? | android|datasource|invalidation|android-paging|android-paging-library | 1 | 2018-12-10T16:04:16.287Z | 2,018 | 12 | 16 | 0 | 2,356 | 1 | 272 | 37 | 5 | 0 | false | false | false | false | false | false | low |
53,389,285 | Using an ArrayAdapter with LiveData. | <p>I'm familiar with MVVM in WPF, but am in the process of porting an existing Android app to make use of a ViewModel class and LiveData for the first time. </p>
<p>The app "as/was" has a custom ArrayAdapter that is used to correctly display the items contained in a List in a gridview. The code that does that looks es... | I'm familiar with MVVM in WPF, but am in the process of porting an existing Android app to make use of a ViewModel class and LiveData for the first time. The app "as/was" has a custom ArrayAdapter that is used to correctly display the items contained in a List in a gridview. The code that does that looks essentially li... | android|android-livedata|mutablelivedata | 4 | 2018-11-20T08:51:35.043Z | 2,018 | 11 | 8 | 1 | 3,892 | 1 | 1,443 | 36 | 3 | 4 | true | false | true | false | false | false | low |
53,399,983 | HTTPS connections - How are the keypairs managed | <p>In an HTTPS connection, a client and a server exchange public keys and use these keys to encrypt their messages using an algorithm (e.g. RSA) (Asymmetric encryption). Interestingly, for HTTPS connections on web, after both sides assure they have a secure channel, they transmit a key for sending further messages encr... | In an HTTPS connection, a client and a server exchange public keys and use these keys to encrypt their messages using an algorithm (e.g. RSA) (Asymmetric encryption). Interestingly, for HTTPS connections on web, after both sides assure they have a secure channel, they transmit a key for sending further messages encrypt... | android|encryption|https|cryptography|operating-system | 1 | 2018-11-20T19:13:43.700Z | 2,018 | 11 | 19 | 1 | 53 | 1 | 1,266 | 48 | 5 | 0 | false | false | false | false | false | false | low |
53,403,548 | My searchview/filter does nothing when typing inside | <p>I have written code for an app that is designed to read XML and populate a listview with the data read. The data is stored in a containing class. I've created an adapter class as well as a custom filter. For some reason, when I type inside my searchView, nothing comes up! I've looked all over youtube/google for a f... | I have written code for an app that is designed to read XML and populate a listview with the data read. The data is stored in a containing class. I've created an adapter class as well as a custom filter. For some reason, when I type inside my searchView, nothing comes up! I've looked all over youtube/google for a few d... | java|android|listview|android-arrayadapter|searchview | 1 | 2018-11-21T00:17:41.657Z | 2,018 | 11 | 0 | 2 | 53 | 1 | 458 | 52 | 5 | 2 | true | false | false | false | false | false | low |
53,559,116 | getValue of database entry onitemClick | <p>I'm having an issue getting the Value of a database entry and passing it to intent.in the following code onItemClick is passing the data of the whole database over as opposed to the item clicked. How can I specify to only pass the data of the item clicked over?? Newbie to Firebase so im at a loss, any help greatly a... | I'm having an issue getting the Value of a database entry and passing it to intent.in the following code onItemClick is passing the data of the whole database over as opposed to the item clicked. How can I specify to only pass the data of the item clicked over?? Newbie to Firebase so im at a loss, any help greatly appr... | java|android|firebase | 0 | 2018-11-30T14:08:17.050Z | 2,018 | 11 | 14 | 4 | 53 | 1 | 327 | 38 | 3 | 0 | false | false | false | false | false | false | zero |
53,603,439 | Automatic notification at a specific time | <p>What I am trying to make is to have a notification which is going to go off on the exact same time everyday. I'd like to keep as simple as possible as I'm still a semi beginner.</p>
<p>Here's my MainActivity:</p>
<pre><code>private static final int notificationId = 4242;
@Override
protected void onCreate(Bundle s... | What I am trying to make is to have a notification which is going to go off on the exact same time everyday. I'd like to keep as simple as possible as I'm still a semi beginner. Here's my MainActivity: [CODE] What my code currently does is absolutely nothing. I believe the code should send a notification when I start t... | java|android|time|notifications|calendar | -1 | 2018-12-03T23:21:40.143Z | 2,018 | 12 | 23 | 0 | 53 | 1 | 709 | 41 | 5 | 1 | true | false | false | false | false | true | negative |
53,664,425 | Overcoming web authentication with android studio | <p><a href="https://i.stack.imgur.com/g1jpd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g1jpd.png" alt="enter image description here"></a>
I have a server that gives JSON data to my android application. How to overcome the authentication code for username and password in android studio when the w... | I have a server that gives JSON data to my android application. How to overcome the authentication code for username and password in android studio when the web uses authentication like this? Whereas I want people who use my mobile application do not need to type their username and password | php|json|android-studio | 0 | 2018-12-07T06:32:11.550Z | 2,018 | 12 | 6 | 4 | 53 | 1 | 291 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
53,724,258 | How to add objects in an InfoWindow making it larger | <p><br>
I need to have a <code>Button</code> and a <code>ProgressBar</code> in the <code>InfoWindow</code> of my markers. I have two main problems that are:</p>
<ol>
<li>The <code>InfoWindow</code> is not large enaugh to contain the text I need.</li>
<li>I don't know how to add any kind of object inside <code>InfoWind... | I need to have a Button and a ProgressBar in the InfoWindow of my markers. I have two main problems that are: The InfoWindow is not large enaugh to contain the text I need. I don't know how to add any kind of object inside InfoWindow . Here is how it looks like in my map and the code I use to generate a marker: [CODE] ... | android|google-maps-api-2|infowindow | 1 | 2018-12-11T12:28:42.570Z | 2,018 | 12 | 12 | 1 | 53 | 1 | 485 | 52 | 3 | 1 | true | false | false | false | false | false | low |
53,710,058 | How to share my mp3 file with other apps from raw folder | <p>I have a recycler view of the audio file, The audio file stored in the raw folder. Now, I want to share my Audio file with other apps. I'm trying this code in adapter clss.</p>
<pre><code> Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
sh... | I have a recycler view of the audio file, The audio file stored in the raw folder. Now, I want to share my Audio file with other apps. I'm trying this code in adapter clss. [CODE] But it's not working. How to solve this. Thanks in advance. | android|android-recyclerview|android-mediaplayer|media-player | 1 | 2018-12-10T16:46:24.950Z | 2,018 | 12 | 16 | 0 | 309 | 1 | 239 | 56 | 4 | 1 | true | false | false | false | false | false | low |
53,526,912 | Why does RealmRecyclerViewAdapter not work? | <p>I am running into an odd problem with <code>RealmRecyclerViewAdapter</code>. I override the class, specifying <code>null</code> for the initial data and <code>true</code> for the <code>autoUpdate</code>. The adapter is already registered for the RecyclerView. Then later in <code>onResume()</code> I perform the follo... | I am running into an odd problem with RealmRecyclerViewAdapter . I override the class, specifying null for the initial data and true for the autoUpdate . The adapter is already registered for the RecyclerView. Then later in onResume() I perform the following: theAdapter.updateData(myQuery.findAllAsync()); However, when... | android|realm | 2 | 2018-11-28T19:39:57.873Z | 2,018 | 11 | 19 | 2 | 565 | 1 | 1,419 | 43 | 2 | 1 | true | false | false | false | false | false | low |
53,612,633 | Set ARCore Sceneview on another screen element | <p>I'm trying to display one arFragment twice on my screen by simply using the feed of one fragment and setting another screen element to the same, but I can't figure out which element to take.</p>
<p>I know, I get the current Camera image by calling</p>
<pre><code>ArFragment arFragment = (ArFragment) getSupportFragm... | I'm trying to display one arFragment twice on my screen by simply using the feed of one fragment and setting another screen element to the same, but I can't figure out which element to take. I know, I get the current Camera image by calling [CODE] But I don't know how to take another screen object and set the view to t... | java|android|xml|arcore|sceneform | 0 | 2018-12-04T12:07:00.833Z | 2,018 | 12 | 12 | 1 | 565 | 1 | 1,068 | 46 | 5 | 3 | true | false | false | false | false | false | zero |
53,602,869 | Constraintlayout overlap views | <p>I currently have 2 cardlayout, one below the other. Each card contains a constraint layout (and each one contains its own child). These 2 cards are inside a main constraint layout.
I've put the second card (called main card) below the first one (called info card).
The problem is that the main card overlap the info c... | I currently have 2 cardlayout, one below the other. Each card contains a constraint layout (and each one contains its own child). These 2 cards are inside a main constraint layout. I've put the second card (called main card) below the first one (called info card). The problem is that the main card overlap the info card... | android|android-constraintlayout | 0 | 2018-12-03T22:23:28.623Z | 2,018 | 12 | 22 | 0 | 1,077 | 1 | 413 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
53,750,168 | Android FCM not able to start Service and receive resposne | <p>I am implementing Android FCM and have so far setup all, getting default notifications when I send from firebase but the Service is not handling the sent messages.</p>
<p>Below is my service:</p>
<pre><code>public class MyFirebaseMessagingService extends FirebaseMessagingService {
private static final String TAG ... | I am implementing Android FCM and have so far setup all, getting default notifications when I send from firebase but the Service is not handling the sent messages. Below is my service: [CODE] I have declared this service in Manifest file also. When I send the message from Firebase Console, I do receive default notifica... | android|firebase|firebase-cloud-messaging | 0 | 2018-12-12T19:34:20.843Z | 2,018 | 12 | 19 | 2 | 1,077 | 1 | 590 | 58 | 3 | 3 | true | false | false | false | false | false | zero |
53,681,854 | Kotlin : Inheritance and issue with parcelable data | <p>I am trying to get my head around an issue and i couldn't find any particular solution.</p>
<p>Base Class </p>
<pre><code>open class FeedBase() : Parcelable{
var type : String =""
constructor(parcel: Parcel) : this() {
type=parcel.readString()
}
override fun writeToParcel(parcel: Parcel, flags: Int) {
p... | I am trying to get my head around an issue and i couldn't find any particular solution. Base Class [CODE] Item Class holding data class & extending Base class [CODE] & Data class [CODE] Now I am trying to send my data across activities and I am creating my object like below [CODE] but I am not able to get the correct t... | android|inheritance|kotlin|parcelable | 4 | 2018-12-08T10:59:16.647Z | 2,018 | 12 | 10 | 5 | 2,101 | 1 | 483 | 51 | 4 | 4 | true | false | false | false | false | false | low |
53,677,981 | Unable to instantiate appComponentFactory when using Google Maps Android Marker Clustering Utility | <p>When I try to run my app and load te map from Google to show nearby places, it will show the map but not the places. I have been searching on Stackoverflow but haven't found a solution that works... </p>
<p>this is part of my error : </p>
<pre><code>2018-12-07 23:59:28.409 1872-1872/? E/LoadedApk: Unable to instan... | When I try to run my app and load te map from Google to show nearby places, it will show the map but not the places. I have been searching on Stackoverflow but haven't found a solution that works... this is part of my error : [CODE] my manifest looks like this: [CODE] and my Gradle file: [CODE] If anyone can point me i... | java|android|google-maps|google-maps-api-3|android-appcompat | 3 | 2018-12-07T23:20:44.803Z | 2,018 | 12 | 23 | 4 | 5,173 | 1 | 421 | 98 | 5 | 3 | true | false | true | false | false | false | low |
53,715,200 | Android MaterialButton style not changing | <p>I am trying to style the material buttons using the new styles offered by the <code>implementation 'com.google.android.material:material:1.0.0'
</code> library. The issue is that the buttons are not styling properly. For example, I have 2 different activities using the exact same theme, with the exact same code for ... | I am trying to style the material buttons using the new styles offered by the implementation 'com.google.android.material:material:1.0.0' library. The issue is that the buttons are not styling properly. For example, I have 2 different activities using the exact same theme, with the exact same code for the button but on... | android|android-studio|material-design | 1 | 2018-12-10T23:23:28.630Z | 2,018 | 12 | 23 | 0 | 5,685 | 1 | 757 | 41 | 3 | 5 | true | false | true | false | false | false | low |
53,435,027 | How to use getUrl() in Chrome custom tabs | <p>im using chrome custom tabs (webview) but doesn't work getUrl() and getTitle() function. how to make this?</p>
<pre><code> final CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();
intentBuilder.setToolbarColor(ContextCompat.getColor(getActivity(), R.color.colorPrimary));
... | im using chrome custom tabs (webview) but doesn't work getUrl() and getTitle() function. how to make this? [CODE] | android|android-fragments|webview | 0 | 2018-11-22T16:28:45.817Z | 2,018 | 11 | 16 | 3 | 54 | 1 | 113 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
53,481,815 | RelativeLayout: wrap_content is not respected | <p>Why the RelativeLayout doesn't wrap content? If I remove the last view which aligns to the bottom parent, it works...</p>
<pre><code><RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="3dp"
android:layout_marginBottom="@dime... | Why the RelativeLayout doesn't wrap content? If I remove the last view which aligns to the bottom parent, it works... [CODE] The current result is (in red rectangle is the RelativeLayout): So can I have a wrap content properly for this RelativeLayout? Thank you very much guys! | android|android-relativelayout | 1 | 2018-11-26T13:07:44.853Z | 2,018 | 11 | 13 | 0 | 54 | 1 | 277 | 45 | 2 | 1 | true | false | false | false | false | false | low |
53,493,130 | How do I change a Button font after it's added to a ViewGroup? | <p>Given a <code>Button</code> created at runtime:</p>
<pre><code>Button button = Button(context)
</code></pre>
<p>The way to set a custom typeface is:</p>
<pre><code>button.setTypeface(myTypeface)
</code></pre>
<p>However I find it only works <em>before</em> I add it to a <code>ViewGroup</code> and not <em>after</... | Given a Button created at runtime: [CODE] The way to set a custom typeface is: [CODE] However I find it only works before I add it to a ViewGroup and not after . I've also tried: [CODE] but it didn't work either. I need to change my Button font dynamically. I've tried invalidate() and requestLayout() but the font never... | android|android-button|android-styles|android-fonts|android-typeface | -1 | 2018-11-27T05:12:21.323Z | 2,018 | 11 | 5 | 1 | 54 | 1 | 329 | 62 | 5 | 3 | true | false | false | false | false | true | negative |
53,727,410 | DialogFragment over keyboard | <p>I got a login Activity with EditText.</p>
<p>The user starts typing and the keyboard is shown.</p>
<p>After some time I'm trying to show a DialogFragment (Over the entire <em>activity</em> <strong>AND</strong> the <em>keyboard</em>)</p>
<p>The problem is that the keyboard gets disappear.</p>
<p>Is there a way to... | I got a login Activity with EditText. The user starts typing and the keyboard is shown. After some time I'm trying to show a DialogFragment (Over the entire activity AND the keyboard ) The problem is that the keyboard gets disappear. Is there a way to show the dialog Over the activity and the keyboard? | android|android-softkeyboard|dialogfragment | 3 | 2018-12-11T15:32:09.003Z | 2,018 | 12 | 15 | 1 | 54 | 1 | 303 | 28 | 3 | 0 | false | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.