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,585,211 | Why is my androidx instrumented test suite process crashing? | <p>Starting a new project with the following dependencies:</p>
<pre><code>dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.... | Starting a new project with the following dependencies: [CODE] With a default config set to this: [CODE] I've written the following test class: [CODE] When I run the test using Android studio, I get the following error in the test output [CODE] Along with the following error in logcat : [CODE] What is causing the runne... | android|android-espresso|androidx | 0 | 2018-12-02T22:28:18.357Z | 2,018 | 12 | 22 | 6 | 1,033 | 1 | 403 | 60 | 3 | 5 | true | false | false | false | false | false | zero |
53,481,063 | Firebase how to stop Listener | <p>Can I stop datasnapshot when my global boolean is true without waiting ending execution of listener and without limitToFirst. I have some verification in event listener because I need to verify some data and I need make ending in listener</p> | Can I stop datasnapshot when my global boolean is true without waiting ending execution of listener and without limitToFirst. I have some verification in event listener because I need to verify some data and I need make ending in listener | android|firebase|firebase-realtime-database | -1 | 2018-11-26T12:23:48.543Z | 2,018 | 11 | 12 | 0 | 1,545 | 1 | 238 | 29 | 3 | 0 | false | false | false | false | false | true | negative |
53,440,756 | Cannot get property compileSdkVersion on extra properties? | <p>I am using react-native app on windows. When I do <code>react-native run-android</code> I get error <code>compileSdkVersion on extra properties</code> see screenshot 1 below. To solve that issue in android folder ->build.gradle I added following code:</p>
<pre><code>// Top-level build file where you can add configu... | I am using react-native app on windows. When I do react-native run-android I get error compileSdkVersion on extra properties see screenshot 1 below. To solve that issue in android folder ->build.gradle I added following code: [CODE] And in android->app->build.gradle: [CODE] But if I do above changes it doesn't work why... | android|react-native | 2 | 2018-11-23T04:44:06.443Z | 2,018 | 11 | 4 | 4 | 2,057 | 1 | 397 | 58 | 2 | 2 | true | false | false | false | false | false | low |
53,405,524 | How to vibrate with sound | <p>I am trying to add sound while vibration.</p>
<pre><code>@Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context,"Get Ready Bus is Near",Toast.LENGTH_LONG).show();
Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
v.vibrate(2000);
}
</code></pre... | I am trying to add sound while vibration. [CODE] Vibration Applied successfully, but how to add sound while phone vibrate? | java|android | 1 | 2018-11-21T04:59:55.770Z | 2,018 | 11 | 4 | 2 | 266 | 1 | 122 | 25 | 2 | 1 | true | false | false | false | false | false | low |
53,674,689 | Communication of Android Services with Activity in MVVM (Model View View Model) | <p>I have just started using MVVM in android using kotlin. I have created an <a href="https://developer.android.com/guide/components/services" rel="noreferrer">Android Service</a> which is just fetching user location. This service runs constantly on background and uses <a href="https://developers.google.com/android/ref... | I have just started using MVVM in android using kotlin. I have created an Android Service which is just fetching user location. This service runs constantly on background and uses FusedLocationApi to fetch the location. I have been reading articles of using background services with MVVM. The most helpful article I foun... | android|mvvm|kotlin|android-service|viewmodel | 5 | 2018-12-07T17:57:48.270Z | 2,018 | 12 | 17 | 4 | 1,034 | 1 | 782 | 79 | 5 | 0 | false | false | false | false | false | false | low |
53,468,878 | Why I am Getting Error "panic: missing emulator engine program for 'x86' cpu." | <p>When I am Running Command ionic cordova run android its not working there was a error called "panic: missing emulator engine program for 'x86' cpu."</p>
<p>I am Working on Mac.Can I have A Solution </p> | When I am Running Command ionic cordova run android its not working there was a error called "panic: missing emulator engine program for 'x86' cpu." I am Working on Mac.Can I have A Solution | android|ionic-framework|ionic3 | 2 | 2018-11-25T15:14:08.457Z | 2,018 | 11 | 15 | 6 | 1,290 | 1 | 190 | 78 | 3 | 0 | false | false | false | false | false | false | low |
53,469,066 | What triggers LiveData onChanged()? | <p>I'm using <code>Room</code> and in the <code>Dao</code> I have this method:</p>
<pre><code>LiveData<List<Books>> getAllBooks();
</code></pre>
<p>In MainActivity I have subscribed to that method from the <code>ViewModel</code>. Changes to the data trigger the <code>onChanged()</code> callback:</p>
<pre... | I'm using Room and in the Dao I have this method: [CODE] In MainActivity I have subscribed to that method from the ViewModel . Changes to the data trigger the onChanged() callback: [CODE] What I would like to know is what constitutes an update? When the app first starts I do 100 insertions, each of them changes the dat... | android|android-room|android-components | 0 | 2018-11-25T15:35:18.097Z | 2,018 | 11 | 15 | 6 | 1,546 | 1 | 664 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
53,698,022 | flutter app compile error:too few positional arguments: 1 required, 0 given. leading = IconButton( | <p>I had my flutter app working fine but started getting multiple errors on compile. I have also tired a new project with boiler plate code but it also throws the same bunch of errors. Any help would be great. I have tired upgrading and cleaning the project with no success.</p>
<pre><code>flutter: The following _Compi... | I had my flutter app working fine but started getting multiple errors on compile. I have also tired a new project with boiler plate code but it also throws the same bunch of errors. Any help would be great. I have tired upgrading and cleaning the project with no success. [CODE] | android|ios|flutter | 0 | 2018-12-10T00:17:02.240Z | 2,018 | 12 | 0 | 0 | 4,618 | 1 | 278 | 98 | 3 | 1 | true | false | true | false | false | false | zero |
53,538,428 | How to implement push notification with react-native | <p>Socket.io channel disconnects whenever the app is in background or closed, how to keep channel connected all time because i have to include push notification feature to my chat application.</p> | Socket.io channel disconnects whenever the app is in background or closed, how to keep channel connected all time because i have to include push notification feature to my chat application. | javascript|android|ios|react-native|push-notification | 4 | 2018-11-29T11:51:19.473Z | 2,018 | 11 | 11 | 3 | 6,666 | 1 | 189 | 52 | 5 | 0 | false | false | true | false | false | false | low |
53,624,103 | What does the method ArrayUtils.newUnpaddedObjectArray() do? | <p>When I read the source code of SparseArray in Android SDK, I met a method named ArrayUtils.newUnpaddedObjectArray(capacity). I don't understand what the unpadded array means?</p> | When I read the source code of SparseArray in Android SDK, I met a method named ArrayUtils.newUnpaddedObjectArray(capacity). I don't understand what the unpadded array means? | java|android | 0 | 2018-12-05T02:03:44.153Z | 2,018 | 12 | 2 | 2 | 267 | 1 | 174 | 60 | 2 | 0 | false | false | false | false | false | false | zero |
53,403,631 | HttpsURLConnection 400 Bad Request error occured | <p>I need to convert below Swift code to Java.
Swift code works.
But, Java code is not worked.</p>
<p>HttpsURLConnection has failed.</p>
<p>responseCode: 400 (HttpsURLConnection.getResponseCode())</p>
<p>message2: Bad Request (HttpsURLConnection.getResponseMessage())</p>
<p>How can I solve 400 Bad Request error.</p... | I need to convert below Swift code to Java. Swift code works. But, Java code is not worked. HttpsURLConnection has failed. responseCode: 400 (HttpsURLConnection.getResponseCode()) message2: Bad Request (HttpsURLConnection.getResponseMessage()) How can I solve 400 Bad Request error. In Swift(It worked) [CODE] I wrote in... | java|android|ios|swift|firebase | -1 | 2018-11-21T00:27:21.830Z | 2,018 | 11 | 0 | 2 | 268 | 1 | 344 | 48 | 5 | 2 | true | false | false | false | false | true | negative |
53,442,443 | Android: Query model before adding to RecyclerView Adapter | <p>I have Tab/ViewPager Layout all consists of RecyclerView with datas depending on 'ID', What I tried so far is to get all the data in my model and add to adapter, then set the visibility to hide others data but it just leaves a blank space without the layout in my recyclerview. So i would like to query it first and j... | I have Tab/ViewPager Layout all consists of RecyclerView with datas depending on 'ID', What I tried so far is to get all the data in my model and add to adapter, then set the visibility to hide others data but it just leaves a blank space without the layout in my recyclerview. So i would like to query it first and just... | android|android-recyclerview|android-adapter|android-query | 0 | 2018-11-23T07:37:48.390Z | 2,018 | 11 | 7 | 4 | 268 | 1 | 495 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
53,626,379 | How react native components behave at run time as view, ViewGroup or Fragments? | <blockquote>
<p>In React native we create components as:-</p>
</blockquote>
<pre><code>export default class MyComponent extends Component {
render() {
return (
<View >
</View>
)
}
}
</code></pre>
<blockquote>
<p>and make a Android build but when its run on android OS then these... | In React native we create components as:- [CODE] and make a Android build but when its run on android OS then these components will convert into which android component (fragment, View or ViewGroup). | android|react-native | 1 | 2018-12-05T06:28:24.967Z | 2,018 | 12 | 6 | 2 | 524 | 1 | 199 | 79 | 2 | 1 | true | false | false | false | false | false | low |
53,571,655 | Title of the last tab in my ViewPager doesn't show | <p>Title of the last tab in my ViewPager doesn't show, <a href="https://i.stack.imgur.com/nCs0N.png" rel="nofollow noreferrer">in this case i have 4 tabs but only the first 3 tabs are shown but not the last one although I can swipe to the fourth tab</a></p>
<p>Code</p>
<pre><code>import android.support.v4.app.Fragmen... | Title of the last tab in my ViewPager doesn't show, in this case i have 4 tabs but only the first 3 tabs are shown but not the last one although I can swipe to the fourth tab Code [CODE] Title of the last tab in my ViewPager doesn't show, in this case i have 4 tabs but only the first 3 tabs are shown but not the last o... | java|android|android-viewpager | 0 | 2018-12-01T14:15:00.483Z | 2,018 | 12 | 14 | 5 | 13 | 1 | 361 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
53,517,357 | Update direction path on Google Maps in driving mode | <p>I am using Google Map, now I am showing a polyline b/w my current location to my destination by using Google Direction API with moving marker animation.</p>
<p>Now if I change my path while driving then how can I update that path from my current location to the destination.</p>
<p>Here is my code</p>
<p>@Override... | I am using Google Map, now I am showing a polyline b/w my current location to my destination by using Google Direction API with moving marker animation. Now if I change my path while driving then how can I update that path from my current location to the destination. Here is my code @Override [CODE] Here in OnDirection... | android|google-maps-api-3|google-polyline|google-directions-api | 0 | 2018-11-28T10:32:30.167Z | 2,018 | 11 | 10 | 2 | 781 | 1 | 485 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
53,465,662 | In Android Studio , is re-installation normal when you exit ? | <p>In Android Studio , is re-installation normal when you exit ?<br>
When I close the Android and reopen it , I m surprised to see the re-installation . It 's faster than the first time but I m surprised because it shouldn't happen , should it ?
I ve clicked right on the Android icon on my dashboard and chose open . a... | In Android Studio , is re-installation normal when you exit ? When I close the Android and reopen it , I m surprised to see the re-installation . It 's faster than the first time but I m surprised because it shouldn't happen , should it ? I ve clicked right on the Android icon on my dashboard and chose open . and then ... | android|android-studio|installation|exit | 0 | 2018-11-25T07:58:04.173Z | 2,018 | 11 | 7 | 6 | 14 | 1 | 433 | 61 | 4 | 0 | false | false | false | false | false | false | zero |
53,701,515 | Libgdx- Music doesn't stop | <p>I have an android application for live wallpaper where a user can dynamically play and stop music. I am using libgdx and I am starting music in render() method of my class implementing ApplicationListener from libgdx.</p>
<p>I am checking shared preferences inside render method to check if the play music option is ... | I have an android application for live wallpaper where a user can dynamically play and stop music. I am using libgdx and I am starting music in render() method of my class implementing ApplicationListener from libgdx. I am checking shared preferences inside render method to check if the play music option is enabled or ... | android|libgdx | 0 | 2018-12-10T07:55:02.357Z | 2,018 | 12 | 7 | 0 | 270 | 1 | 864 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
53,398,783 | Dagger 2: Inject 2 different scopes into one object | <p>Before someone starts marking this question as duplicated, let me say that I already checked this <a href="https://stackoverflow.com/questions/29037821/dagger-v2-inject-2-different-scopes-into-one-object">post</a>, but it didn't solve my issue.</p>
<p>As the title says, I need to inject two objects from different s... | Before someone starts marking this question as duplicated, let me say that I already checked this post , but it didn't solve my issue. As the title says, I need to inject two objects from different scopes in other object. Let's say we have the next situation: We have a screen where we let a user sign up and then, in th... | android|dagger-2 | 1 | 2018-11-20T17:53:30.750Z | 2,018 | 11 | 17 | 1 | 526 | 1 | 1,075 | 51 | 2 | 3 | true | false | false | false | false | false | low |
53,614,810 | How to Change Play/Pause audio icon within a ListView using RecyclerView? | <p>so I want to change play icon with pause icon when the associated list item is clicked while the audio is playing and replace it again with play icon when its done .
here is my code for main activity :</p>
<p>public class MainActivity extends AppCompatActivity {</p>
<pre><code>/** Handles playback of all the sound... | so I want to change play icon with pause icon when the associated list item is clicked while the audio is playing and replace it again with play icon when its done . here is my code for main activity : public class MainActivity extends AppCompatActivity { [CODE] } and this is the code for the customized adaptor : [CODE... | android|android-studio|listview|audio|android-recyclerview | 0 | 2018-12-04T14:10:59.710Z | 2,018 | 12 | 14 | 1 | 1,038 | 1 | 358 | 73 | 5 | 3 | true | false | false | false | false | false | zero |
53,743,355 | Android NotificationCompat.Builder setsmallicon() not working | <p>In Redmi Note 5 Pro, I am using remoteviews for custom notifications. While doing this, the resource which i am passing using setsmallicon() is not being taken and plain solid square is being displayed. The resource is being used if it is not a custom notification.</p>
<p>Can someone help me solve this issue.</p> | In Redmi Note 5 Pro, I am using remoteviews for custom notifications. While doing this, the resource which i am passing using setsmallicon() is not being taken and plain solid square is being displayed. The resource is being used if it is not a custom notification. Can someone help me solve this issue. | android|android-notifications|notification-icons | -1 | 2018-12-12T12:46:20.317Z | 2,018 | 12 | 12 | 2 | 1,294 | 1 | 303 | 61 | 3 | 0 | false | false | false | false | false | true | negative |
53,382,246 | Generate listview from JSON in android without Main node? | <p>Is posible to make a listview from JSON without the main node.
I get this json object from a REST
My json string is </p>
<pre><code>[{"productName": "prod1", "category": "cat1"},
{"productName": "prod2", "category": "cat1"},
{"productName": "prod3", "category": "cat2"},
{"productName": "prod4", "category": "cat1"}]... | Is posible to make a listview from JSON without the main node. I get this json object from a REST My json string is [CODE] But it doesn't have a main node like { "products": [ ... ] } how do I parse that into a list view without the main node? | java|android|json|listview | 0 | 2018-11-19T20:35:11.917Z | 2,018 | 11 | 20 | 0 | 15 | 1 | 243 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
53,438,214 | How do I set margins for my Android app table? | <p>I am trying a add rows to my table by pressing a button, I can add the rows but I don't know how to add layout to the added row. </p>
<p>Here is my code:</p>
<pre><code> public void testRow(View view) {
// get a reference for the TableLayout
TableLayout table = (TableLayout) findViewById(R.id.accountTab... | I am trying a add rows to my table by pressing a button, I can add the rows but I don't know how to add layout to the added row. Here is my code: [CODE] | java|android | 0 | 2018-11-22T21:35:09.657Z | 2,018 | 11 | 21 | 3 | 15 | 1 | 152 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
53,483,133 | how to avoid android vm release some singleton | <p>I've one android app which runs some tasks in background when user is not with app open.</p>
<p>The idea is the user opens the app and configure some tasks to be done in background then it goes using other apps and the tasks are being done.</p>
<p>in order to execute the tasks in background i created a <code>Servi... | I've one android app which runs some tasks in background when user is not with app open. The idea is the user opens the app and configure some tasks to be done in background then it goes using other apps and the tasks are being done. in order to execute the tasks in background i created a Service so android keep it act... | android|singleton|android-memory | -1 | 2018-11-26T14:21:07.297Z | 2,018 | 11 | 14 | 0 | 15 | 1 | 1,067 | 46 | 3 | 0 | false | false | false | false | false | true | negative |
53,749,452 | Is it possible that the user has to press a file instead of clicking to select it in action_get_content? | <p>I have the following code and I realized that when the user is going to select more than one file, he has to leave the first one pressed and then he can select or deselect more, and to confirm that they are the ones he wants click on open.</p>
<pre><code>private void showFileChooser(String type) {
Intent intent... | I have the following code and I realized that when the user is going to select more than one file, he has to leave the first one pressed and then he can select or deselect more, and to confirm that they are the ones he wants click on open. [CODE] However, when you only want one, click on the file and automatically send... | android | 0 | 2018-12-12T18:44:49.507Z | 2,018 | 12 | 18 | 2 | 15 | 1 | 526 | 104 | 1 | 1 | true | false | false | false | false | false | zero |
53,765,843 | Does android AnimationDrawable has any quick import tool? | <p>I want to create a Animation Drawable just like this example from google,</p>
<pre><code><!-- Animation frames are wheel0.png through wheel5.png
files inside the res/drawable/ folder -->
<animation-list android:id="@+id/selected" android:oneshot="false">
<item android:drawable="@drawable/whee... | I want to create a Animation Drawable just like this example from google, [CODE] Seems I need to assign all drawable and its duration one by one to animation. It will be a dull work when I have hundred of drawable need to assign in. Does there has any tool to help this? Or any way that could make this better? Thanks. | android|animationdrawable | 0 | 2018-12-13T16:07:50.590Z | 2,018 | 12 | 16 | 3 | 15 | 1 | 318 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
53,374,867 | AbstractAccountAuthenticator allow only 1 account | <p>I have implemented AbstractAccountAuthenticator as a requirement to use SyncAdapter hower my application is supporting only 1 account at a time. </p>
<p>When the user is trying to add another account via settings - Settings crash with an error that it stopped working. </p>
<p>I have seen some application e.g. Link... | I have implemented AbstractAccountAuthenticator as a requirement to use SyncAdapter hower my application is supporting only 1 account at a time. When the user is trying to add another account via settings - Settings crash with an error that it stopped working. I have seen some application e.g. LinkedIn, Facebook they s... | android|android-syncadapter|android-authenticator | 0 | 2018-11-19T12:40:31.887Z | 2,018 | 11 | 12 | 0 | 271 | 1 | 506 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
53,361,871 | Uiautomator - cannot use UiObject2 | <p>I'm trying to create a new UiObject2 in UiAutomator but I receive the following message:</p>
<p><code>UiObject2(android.support.test.uiautomator.UiDevice, android.support.test.uiautomator.BySelector, android.view.accessibility.AccessibilityNodeInfo)</code> is not public in 'android.support.test.uiautomator.UiObject2... | I'm trying to create a new UiObject2 in UiAutomator but I receive the following message: UiObject2(android.support.test.uiautomator.UiDevice, android.support.test.uiautomator.BySelector, android.view.accessibility.AccessibilityNodeInfo) is not public in 'android.support.test.uiautomator.UiObject2'. Cannot be accessed f... | android-uiautomator | 1 | 2018-11-18T14:19:16.327Z | 2,018 | 11 | 14 | 6 | 527 | 1 | 373 | 34 | 1 | 0 | false | false | false | false | false | false | low |
53,678,232 | Prefetch Text Layout in RecyclerView, cannot resolve method setTextFuture | <p>I'm trying to add Prefetch Text Layout to my <code>reyclerview</code> as shown <a href="https://www.youtube.com/watch?v=vXqwRhjd7b4&feature=youtu.be" rel="nofollow noreferrer">here</a> and <a href="https://medium.com/androiddevelopers/prefetch-text-layout-in-recyclerview-4acf9103f438" rel="nofollow noreferrer">h... | I'm trying to add Prefetch Text Layout to my reyclerview as shown here and here . Weirdly, it is only working on a my custom TextView and not with standard TextViews . For my standard TextView, I get Cannot resolve method setTextFuture error. Also to add, everything was working fine before. the standard setText method ... | android|android-recyclerview|textview|prefetch | 1 | 2018-12-07T23:59:43.310Z | 2,018 | 12 | 23 | 4 | 783 | 1 | 550 | 73 | 4 | 1 | true | false | false | false | false | false | low |
53,430,160 | NoSuchFieldError : PREFER_HIGHEST_OR_REMOTE_VERSION_NO_FORCE_STAGING | <p>I'm facing java.lang.NoSuchFieldError error while using Firebase products. </p>
<p>App crashes randomly, once per several launches and I don't see any visible reasons for that. </p>
<p>Crashlytics recognizes as two separate issues:</p>
<p>First:</p>
<pre><code>Fatal Exception: java.lang.NoSuchFieldError
No field... | I'm facing java.lang.NoSuchFieldError error while using Firebase products. App crashes randomly, once per several launches and I don't see any visible reasons for that. Crashlytics recognizes as two separate issues: First: [CODE] Second: [CODE] I wonder what could be the causing reason, at least what library. Any help ... | android|firebase | 2 | 2018-11-22T11:38:15.040Z | 2,018 | 11 | 11 | 3 | 1,295 | 1 | 411 | 68 | 2 | 4 | true | false | false | false | false | false | low |
53,572,525 | ScrimBackground from Theme.MaterialComponents is not Working | <p>I'm trying to change the scrimBackground that show up when you opened a dialog. And I know that in the new MaterialComponents-Theme is an attribute for this case (scrimBackground). But it is currently not working for me.</p>
<p>On the material.io website that background is also descriped as the scrimBackground and... | I'm trying to change the scrimBackground that show up when you opened a dialog. And I know that in the new MaterialComponents-Theme is an attribute for this case (scrimBackground). But it is currently not working for me. On the material.io website that background is also descriped as the scrimBackground and it looks li... | android|background|android-alertdialog|material-components-android|material-design | 0 | 2018-12-01T15:55:59.297Z | 2,018 | 12 | 15 | 5 | 1,295 | 1 | 469 | 60 | 5 | 1 | true | false | false | false | false | false | zero |
53,596,562 | Absolute path reference for files on Android with Cordova | <p>I have an external Web based app using PhoneGap and Cordova. On iOS, I have no problem referencing local files, such as image files in the package. I include the Cordova <strong>cordova-plugin-file</strong> and on the external web server I reference the local image files with the path <strong>cdvfile://localhost/b... | I have an external Web based app using PhoneGap and Cordova. On iOS, I have no problem referencing local files, such as image files in the package. I include the Cordova cordova-plugin-file and on the external web server I reference the local image files with the path cdvfile://localhost/bundle/www/img/ such as the img... | android|cordova|phonegap-build|phonegap | 2 | 2018-12-03T15:13:53.247Z | 2,018 | 12 | 15 | 0 | 1,295 | 1 | 951 | 57 | 4 | 4 | true | false | false | false | false | false | low |
53,571,297 | Can't add button under the admob ad | <p>I am trying to add Add a simple button under my admob ad but it doesn't let me</p>
<p>Here's the xml code</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_p... | I am trying to add Add a simple button under my admob ad but it doesn't let me Here's the xml code [CODE] Here's the screenshot No matter what i try to do the button just doesn't go under ad. Sorry for the newbie question I am just starting out... Thank you | android|android-layout|admob | 0 | 2018-12-01T13:33:24.890Z | 2,018 | 12 | 13 | 5 | 16 | 1 | 257 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
53,715,814 | sqlite query using WHERE and AND in android studio | <p>So I am trying to select the count where a value = value* conditional to another boolean value being true. I wrote a query as such I am new to sqlite so I am sorry in advance for syntax:</p>
<pre><code>public int getPlaceCount(String name){
SQLiteDatabase db = this.getWritableDatabase();
String query = "SEL... | So I am trying to select the count where a value = value* conditional to another boolean value being true. I wrote a query as such I am new to sqlite so I am sorry in advance for syntax: [CODE] now in mysql I would do something like this: [CODE] thanks in advance | android|sqlite | 0 | 2018-12-11T00:40:49.517Z | 2,018 | 12 | 0 | 1 | 16 | 1 | 263 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
53,516,157 | ACTION_TIME_CHANGED Broadcast called for every single minute | <p>on API 19 and in between API 23 every single minute Broadcast is fired. My Intent filter for the broadcast only have android.intent.action.TIME_SET filter and its registered on runtime.</p>
<p>This issue is not observed on all devices running on the above platform. Only few set of devices. </p>
<p>Is this a known ... | on API 19 and in between API 23 every single minute Broadcast is fired. My Intent filter for the broadcast only have android.intent.action.TIME_SET filter and its registered on runtime. This issue is not observed on all devices running on the above platform. Only few set of devices. Is this a known AOSP bug or is there... | android|datetime|broadcast | 0 | 2018-11-28T09:28:57.423Z | 2,018 | 11 | 9 | 2 | 272 | 1 | 469 | 60 | 3 | 0 | false | false | false | false | false | false | zero |
53,520,563 | Detect if the device has a keyboard, or is a touch device | <p>What would be the best solution to detect if the user is on a device with keyboard with arrow and esc keys, or is on a mobile device with touch functionality - like swipe?</p>
<p>I have a image gallery which I would like to display either arrow keys if they are on a device with a keyboard.<br>
Or, if they are on a ... | What would be the best solution to detect if the user is on a device with keyboard with arrow and esc keys, or is on a mobile device with touch functionality - like swipe? I have a image gallery which I would like to display either arrow keys if they are on a device with a keyboard. Or, if they are on a mobile device, ... | android|jquery|ios|keyboard|swipe | 2 | 2018-11-28T13:28:09.593Z | 2,018 | 11 | 13 | 2 | 528 | 1 | 1,045 | 57 | 5 | 0 | false | false | false | false | false | false | low |
53,566,370 | RecyclerView multiple selections and ActionMode | <p>I'm working on a app that uses RecyclerView and ActionMode. On the RecyclerView item I have an Imageview (mMultipleSelectionBackground) that is set to GONE. Basically when I use long click / click on an item it will select it and highlight it (changing the ImageView to visible) (if multiple items are selected, it wi... | I'm working on a app that uses RecyclerView and ActionMode. On the RecyclerView item I have an Imageview (mMultipleSelectionBackground) that is set to GONE. Basically when I use long click / click on an item it will select it and highlight it (changing the ImageView to visible) (if multiple items are selected, it will ... | android|android-recyclerview|actionmode | 0 | 2018-11-30T23:40:41.367Z | 2,018 | 11 | 23 | 4 | 528 | 1 | 763 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
53,774,348 | How to use retrofit post params&body but i cant use @Filed(FormUrlEncoded)&@Body together . what can i do? | <p>@FormUrlEncoded</p>
<p>@POST("/api/pofPortfolio/placeOrder/")Observable> placeOrder (@Field("type") String type,@Body RequestBody body);</p>
<ol>
1.
</ol> | @FormUrlEncoded @POST("/api/pofPortfolio/placeOrder/")Observable> placeOrder (@Field("type") String type,@Body RequestBody body); 1. | android|retrofit2 | -2 | 2018-12-14T06:14:02.617Z | 2,018 | 12 | 6 | 4 | 17 | 1 | 132 | 106 | 2 | 0 | false | false | false | false | false | true | negative |
53,523,556 | How to make standalone app from ejected expo project | <p>everyone.
I have ejected expo project.
It works well on local.
To make standalone app, I execute the command "expo publish" and then make the apk file from android studio.
And install this apk file on android phone.
But app wasn't run and show following screen:</p>
<p>Screenshot when expo app running
<img src="htt... | everyone. I have ejected expo project. It works well on local. To make standalone app, I execute the command "expo publish" and then make the apk file from android studio. And install this apk file on android phone. But app wasn't run and show following screen: Screenshot when expo app running Then how can I build stan... | android|react-native|mobile|hybrid-mobile-app|expo | 2 | 2018-11-28T16:03:12.697Z | 2,018 | 11 | 16 | 2 | 273 | 1 | 402 | 52 | 5 | 0 | false | false | false | false | false | false | low |
53,411,003 | Android, NDK, JNI, "cannot initialize a variable of type 'long *' with an rvalue of type 'jlong *' " | <p>I want to get a Java <code>long[]</code> array and ultimately pass it to the function <code>powerEstimate</code> that need a <code>const long</code> type in input.
This is the function definition in c++:</p>
<pre><code>void powerEstimate(const double rr_data[], const long timeRR_data[])
</code></pre>
<p>This is th... | I want to get a Java long[] array and ultimately pass it to the function powerEstimate that need a const long type in input. This is the function definition in c++: [CODE] This is the code I use to get the Java long[] array: [CODE] When I build it, I get this error: [CODE] Can someone explain why I get this error and h... | java|android|c++|java-native-interface | 0 | 2018-11-21T11:19:54.613Z | 2,018 | 11 | 11 | 2 | 529 | 1 | 371 | 100 | 4 | 3 | true | false | false | false | false | false | zero |
53,566,501 | How can I download PDF from Android (Java) on MySQL | <pre class="lang-php prettyprint-override"><code><?php
// Check if a file has been uploaded
if (isset($_FILES['uploaded_file'])) {
// Make sure the file was sent without errors
if ($_FILES['uploaded_file']['error'] == 0) {
// Connect to the database
$dbLink = new mysqli('localhost', 'root', '... | [CODE] I used the above code to upload a file on my mysql database using php,html. I want to download this file on my android app. I'm quite blank on this android thing. I have recently just made a login activity using mysql database and I used jdbc driver for that purpose. Can anyone guide me how can I download the ab... | android|mysql|pdf | 0 | 2018-11-30T23:58:47.687Z | 2,018 | 11 | 23 | 4 | 785 | 1 | 356 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
53,354,646 | Handling Bodies After Leaving Camera Viewport | <p>In Libgdx in my game I have bodies that enter my camera viewport and then exit the viewport and never return. Is it better for memory management to destroy these bodies and remove them from Arrays or sleep them? </p> | In Libgdx in my game I have bodies that enter my camera viewport and then exit the viewport and never return. Is it better for memory management to destroy these bodies and remove them from Arrays or sleep them? | java|android|libgdx | 0 | 2018-11-17T19:15:45.593Z | 2,018 | 11 | 19 | 5 | 18 | 1 | 211 | 45 | 3 | 0 | false | false | false | false | false | false | zero |
53,359,014 | Showing share services options every time | <p>I am trying to add a share button for my android app that can show share options every time a user wants to share. The app currently goes directly to gmail because i had selected gmail in the first attempt but doesn't show Whatsapp or facebook apps on the second attempt. It seems my phone sets the first app as defau... | I am trying to add a share button for my android app that can show share options every time a user wants to share. The app currently goes directly to gmail because i had selected gmail in the first attempt but doesn't show Whatsapp or facebook apps on the second attempt. It seems my phone sets the first app as default.... | android|share | 0 | 2018-11-18T08:13:51.613Z | 2,018 | 11 | 8 | 6 | 18 | 1 | 364 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
53,447,749 | why junk data receiving in Looper.getMainLooper()) | <blockquote>
<p>Receiving proper data outside of <strong>Looper.getMainLooper())</strong>
I could not able to understand,why Junk data receiving inside of Looper.getMainLooper()).</p>
</blockquote>
<pre><code> public class A1Service extends PresentationService implements
Runnable {
switch(dataId) {
cas... | Receiving proper data outside of Looper.getMainLooper()) I could not able to understand,why Junk data receiving inside of Looper.getMainLooper()). [CODE] | android|user-interface|handler|presentation|android-looper | 0 | 2018-11-23T13:37:39.120Z | 2,018 | 11 | 13 | 4 | 18 | 1 | 153 | 50 | 5 | 1 | true | false | false | false | false | false | zero |
53,458,491 | Type of data changed in sending data by Volley | <p>I use below code to send data in Volley to PHP server ( I use slim framework ):</p>
<pre><code>StringRequest strRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
try {
JSONObject jObjResult = ... | I use below code to send data in Volley to PHP server ( I use slim framework ): [CODE] Data send true as {"gcms":[],"gcm":[],"gc":[]} but in server received as values=%7B%22gcms%22%3A%5B%5D%2C%22gcm%22%3A%5B%5D%2C%22gc%22%3A%5B%5D%7D& . I test some works such as set Header for request in android or try to encode data i... | android|json|android-volley|slim | 0 | 2018-11-24T13:11:31.563Z | 2,018 | 11 | 13 | 5 | 18 | 1 | 382 | 46 | 4 | 1 | true | false | false | false | false | false | zero |
53,509,038 | Is there a way to additional download and integrate activities and .xml? | <p>I want to make an app where the the user can choose what parts of the app he wants to use. On the start the app, it should only contain the part of the code (to be very small) where the user can choose additional parts and install it. Then additional code should be downloaded from a sever.</p> | I want to make an app where the the user can choose what parts of the app he wants to use. On the start the app, it should only contain the part of the code (to be very small) where the user can choose additional parts and install it. Then additional code should be downloaded from a sever. | java|android | 0 | 2018-11-27T22:14:08.520Z | 2,018 | 11 | 22 | 1 | 18 | 1 | 290 | 72 | 2 | 0 | false | false | false | false | false | false | zero |
53,561,770 | Unvisible google map in Android | <p>I using google map API in my android project, but it isn't visible. I wrote These codes:</p>
<ol>
<li>Manifest file:</li>
</ol>
<pre><code><uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission andr... | I using google map API in my android project, but it isn't visible. I wrote These codes: Manifest file: [CODE] Then, i wrote these Codes: [CODE] | java|android|api|google-maps|manifest | 0 | 2018-11-30T16:54:20.270Z | 2,018 | 11 | 16 | 4 | 18 | 1 | 144 | 31 | 5 | 2 | true | false | false | false | false | false | zero |
53,602,995 | Determine daily access in Android | <p>I want to determinate a daily access in Android, I know that can I use SQLite but I want to use something more lightly.</p>
<p>I can determinate the day of the access using</p>
<pre><code>Calendar calendar = Calendar.getInstance();
int day = calendar.get(Calendar.DAY_OF_WEEK);
switch (day) {
case ... | I want to determinate a daily access in Android, I know that can I use SQLite but I want to use something more lightly. I can determinate the day of the access using [CODE] But how can I determine if the user accesses my app for (example) 100 consecutive days. | android | 0 | 2018-12-03T22:35:31.443Z | 2,018 | 12 | 22 | 0 | 18 | 1 | 260 | 33 | 1 | 1 | true | false | false | false | false | false | zero |
53,607,076 | Android application user uninstalls details | <p>WE have Android application in the play store, we would like to send communication to all uninstalled app users, is there any way we come to know who are the users who have uninstalled. kindly help</p> | WE have Android application in the play store, we would like to send communication to all uninstalled app users, is there any way we come to know who are the users who have uninstalled. kindly help | android | 0 | 2018-12-04T06:43:04.927Z | 2,018 | 12 | 6 | 1 | 18 | 1 | 197 | 43 | 1 | 0 | false | false | false | false | false | false | zero |
53,674,383 | i have applied a Setonitemclicklistener on a custom list view but it doesn't do anything when i click the items | <p>i have tried several methods to make my items clickable i have read about focus and added the lines in my XML file Relative layout. nothing seems to help. the click listener still doesn't seem to do anything for me.. please help!!!</p>
<p>this is my activity list view class:</p>
<pre><code> package com.example.... | i have tried several methods to make my items clickable i have read about focus and added the lines in my XML file Relative layout. nothing seems to help. the click listener still doesn't seem to do anything for me.. please help!!! this is my activity list view class: [CODE] below is my custom adapter class for admin: ... | java|android | 0 | 2018-12-07T17:34:44.107Z | 2,018 | 12 | 17 | 4 | 18 | 1 | 368 | 111 | 2 | 3 | true | false | false | false | false | false | zero |
53,786,953 | Unable to receive data from Volley's response (asynchronous call) | <p>I am using Volley as HTTP library to handle my web communication and it works perfectly fine as every respone I generally handle is either JSON or String. </p>
<p>The only thing that I'm having issues with is a particular call that responds with a JSON array, which gets parsed correctly but I can't return the "pars... | I am using Volley as HTTP library to handle my web communication and it works perfectly fine as every respone I generally handle is either JSON or String. The only thing that I'm having issues with is a particular call that responds with a JSON array, which gets parsed correctly but I can't return the "parsed" value, a... | android|android-volley | 0 | 2018-12-14T21:13:17.693Z | 2,018 | 12 | 21 | 4 | 18 | 1 | 941 | 65 | 2 | 2 | true | false | false | false | false | false | zero |
53,700,886 | Decrease polyline in google map when the marker moves towards destination(Android) | <p>Please provide some idea,</p>
<p>I am trying to decrease the polyline in google map as the marker moves towards the destination.</p>
<p>I am hitting the google api for getting the poly line list frequently and redrawing the root.</p>
<p>I am searching for any best options...</p> | Please provide some idea, I am trying to decrease the polyline in google map as the marker moves towards the destination. I am hitting the google api for getting the poly line list frequently and redrawing the root. I am searching for any best options... | android|google-maps-markers|google-maps-android-api-2|google-polyline | -1 | 2018-12-10T06:59:55.507Z | 2,018 | 12 | 6 | 0 | 274 | 1 | 254 | 82 | 4 | 0 | false | false | false | false | false | true | negative |
53,731,124 | How to add Youtube trending videos to my app? | <p>i am currently working on an app where i want to display something like a recycle view containing a list of 10 currently trending videos on YouTube. I know i would have to work with YouTube Data API but i don't see what i need to pass in as parameters in order to get a response with trending videos. I have already m... | i am currently working on an app where i want to display something like a recycle view containing a list of 10 currently trending videos on YouTube. I know i would have to work with YouTube Data API but i don't see what i need to pass in as parameters in order to get a response with trending videos. I have already made... | android | -2 | 2018-12-11T19:32:47.127Z | 2,018 | 12 | 19 | 1 | 274 | 1 | 505 | 45 | 1 | 0 | false | false | false | false | false | true | negative |
53,655,595 | "Text to Speech" in Android 9.0 | <p>I want to use <code>TTS</code> in an <code>Android</code> application. I followed <a href="https://android-developers.googleblog.com/2009/09/introduction-to-text-to-speech-in.html" rel="nofollow noreferrer">introduction-to-text-to-speech-in</a>. And this is the code of the <code>Activity</code> which creates <code>T... | I want to use TTS in an Android application. I followed introduction-to-text-to-speech-in . And this is the code of the Activity which creates TTS instance: [CODE] As you can see it is straightforward and simple and also works up to Android 8.1-API 27 ; but in Android 9.0 I get ActivityNotFoundException : in onCreate m... | android|text-to-speech | 1 | 2018-12-06T16:20:39.380Z | 2,018 | 12 | 16 | 3 | 786 | 1 | 683 | 31 | 2 | 1 | true | false | false | false | false | false | low |
53,550,133 | I can use 32bit OS virtualization but not Android Studio | <p>First of all, I have a problem with my BIOS, I cannot access it, so I cannot enable 64bits virtualization.</p>
<p>But, the thing is that I can virtualize 32bit OS (VirtualBox). However, I cannot use Android Studio virtualization (I'm using the Intel x86 emulator package), I always get the following error message "x... | First of all, I have a problem with my BIOS, I cannot access it, so I cannot enable 64bits virtualization. But, the thing is that I can virtualize 32bit OS (VirtualBox). However, I cannot use Android Studio virtualization (I'm using the Intel x86 emulator package), I always get the following error message "x86 emulatio... | android|android-studio|virtualization|bios | 0 | 2018-11-30T01:54:39.693Z | 2,018 | 11 | 1 | 4 | 19 | 1 | 434 | 56 | 4 | 0 | false | false | false | false | false | false | zero |
53,551,998 | Manage types of responses from the server | <p>I am confused and I hope that you can help me resolve this doubt, I am working with the POST method hand in hand with the Volley library, the server brings me two types of answers.</p>
<p><strong>The first</strong></p>
<p>If the user enters correctly his data the server has to throw me the user's data. As exemplif... | I am confused and I hope that you can help me resolve this doubt, I am working with the POST method hand in hand with the Volley library, the server brings me two types of answers. The first If the user enters correctly his data the server has to throw me the user's data. As exemplified below. Result of the user's requ... | json|android-studio|http|server|android-volley | 0 | 2018-11-30T05:56:01.890Z | 2,018 | 11 | 5 | 4 | 19 | 1 | 1,004 | 41 | 5 | 2 | true | false | false | false | false | false | zero |
53,572,335 | Many Handlers, not every will be executed | <p>My app gets data for map markers from a server. Everytime a new marker arrives, the map should be notified and add the marker. The server interaction runs in its own thread. Because the mapview depends on the main loop I need to use a Handler:</p>
<pre><code> notifyMap(Marker marker) {
Handler handler = new Ha... | My app gets data for map markers from a server. Everytime a new marker arrives, the map should be notified and add the marker. The server interaction runs in its own thread. Because the mapview depends on the main loop I need to use a Handler: [CODE] Now I've did a test and added 100 markers [CODE] where randomPosition... | android | 0 | 2018-12-01T15:34:35.190Z | 2,018 | 12 | 15 | 5 | 19 | 1 | 673 | 41 | 1 | 2 | true | false | false | false | false | false | zero |
53,795,565 | Room Database Query Starting with a letter | <p>I want to display songs from table starting with a specified letter in Room Database</p>
<p>Here is my Query</p>
<p>@Dao
public interface SongDao
{</p>
<pre><code>@Insert
public void addSong(SongEntity songEntity);
@Query( "SELECT * FROM malayalam where title LIKE :letter '%' ")
List<SongEntity>getSongs(S... | I want to display songs from table starting with a specified letter in Room Database Here is my Query @Dao public interface SongDao { [CODE] here letter will replaced by A,B,C, ...etc please help. | android | 0 | 2018-12-15T17:28:17.147Z | 2,018 | 12 | 17 | 5 | 275 | 1 | 196 | 42 | 1 | 1 | true | false | false | false | false | false | zero |
53,371,583 | Draw line between location markers in ArCore? | <p>Is there a possibility to connect two marker locations with a line? I have two location marker:</p>
<pre><code>LocationMarker point1 = new LocationMarker(
20.501925,
44.792181,
new AnnotationRenderer("point1 ")
);
LocationMarker point2 = new LocationMarker(
20.502972,
44.790873,
... | Is there a possibility to connect two marker locations with a line? I have two location marker: [CODE] Any example? I use ArCore Location | java|android|location|arcore | 0 | 2018-11-19T09:24:14.657Z | 2,018 | 11 | 9 | 0 | 1,299 | 1 | 137 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
53,448,858 | Passing a spinner value from one fragment to the next | <p>I need to get the value of the spinner set in the first fragment and pass the value along to fragment 2. At the moment I'm just trying to set one text field in fragment 2 to the spinner's value, but later on I'll need to somehow have the fragment 1 spinner value match a unit like meters, and then for fragment 2 to b... | I need to get the value of the spinner set in the first fragment and pass the value along to fragment 2. At the moment I'm just trying to set one text field in fragment 2 to the spinner's value, but later on I'll need to somehow have the fragment 1 spinner value match a unit like meters, and then for fragment 2 to be a... | java|android | 0 | 2018-11-23T14:53:54.800Z | 2,018 | 11 | 14 | 4 | 20 | 1 | 561 | 53 | 2 | 3 | true | false | false | false | false | false | zero |
53,759,909 | Getting error in firebase code android How to resolve? | <p>Getting below errors:</p>
<blockquote>
<p>Error:(209, 62) error: cannot access zzbgl
class file for com.google.android.gms.internal.zzbgl not found</p>
</blockquote>
<p>Module gradle:</p>
<pre><code>apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 27
buildTool... | Getting below errors: Error:(209, 62) error: cannot access zzbgl class file for com.google.android.gms.internal.zzbgl not found Module gradle: [CODE] app.gradle; [CODE] | java|android|firebase|firebase-cloud-messaging|google-play-services-3.3.0 | -1 | 2018-12-13T10:36:47.993Z | 2,018 | 12 | 10 | 3 | 532 | 1 | 168 | 54 | 5 | 2 | true | false | false | false | false | true | negative |
53,787,614 | Firebase Listener on the Background Android | <p>So, I wanted to use a Firebase Listener in the background because there's some code I need to trigger while the app is closed based on Database values. I thought I could just throw the listener on a Service, however reading the docs looks like Services are no longer a good option because of how the OS works in recen... | So, I wanted to use a Firebase Listener in the background because there's some code I need to trigger while the app is closed based on Database values. I thought I could just throw the listener on a Service, however reading the docs looks like Services are no longer a good option because of how the OS works in recent v... | android|firebase|firebase-realtime-database|listener|android-workmanager | 1 | 2018-12-14T22:19:02.457Z | 2,018 | 12 | 22 | 4 | 788 | 1 | 736 | 43 | 5 | 0 | false | false | false | false | false | false | low |
53,395,478 | Zoomable ImageView conflicts in Dragable Parent View | <p>I've a activity which has a ViewPager and each Page is fragment having Zoomable imageView. I've implemented drag to close feature using onTouch method on parent view of zoomable imageView and drag is working fine. But i want to check if there are 2 figures detected in dispatchTouchEvent then ignore onTouch method an... | I've a activity which has a ViewPager and each Page is fragment having Zoomable imageView. I've implemented drag to close feature using onTouch method on parent view of zoomable imageView and drag is working fine. But i want to check if there are 2 figures detected in dispatchTouchEvent then ignore onTouch method and p... | android|ontouchlistener|android-touch-event | 0 | 2018-11-20T14:43:09.757Z | 2,018 | 11 | 14 | 1 | 21 | 1 | 555 | 52 | 3 | 2 | true | false | false | false | false | false | zero |
53,397,448 | Implement a color setting | <p>In my application I have a settings screen that lets you change some colors of the application. I have defined the colorPrimary and colorPrimaryDark on my color resource file, and I know that after the build is complete, it is impossible to change those values.</p>
<p>So the way I am doing this is by saving the col... | In my application I have a settings screen that lets you change some colors of the application. I have defined the colorPrimary and colorPrimaryDark on my color resource file, and I know that after the build is complete, it is impossible to change those values. So the way I am doing this is by saving the color Integer ... | android|kotlin|colors|sharedpreferences | 0 | 2018-11-20T16:32:20.917Z | 2,018 | 11 | 16 | 1 | 21 | 1 | 860 | 25 | 4 | 2 | true | false | false | false | false | false | zero |
53,438,797 | Returning from 2 different activities. How to know where I came from | <p>so I have an activity that returns leads me back to the main activity with an Int. the tricky part is that there are 2 ways to get back. either return with a location id or return with a route id. if it returns with a location id, it'll create a marker on the map. However, if it returns with a route id then it draws... | so I have an activity that returns leads me back to the main activity with an Int. the tricky part is that there are 2 ways to get back. either return with a location id or return with a route id. if it returns with a location id, it'll create a marker on the map. However, if it returns with a route id then it draws a ... | android|android-intent|android-activity | 0 | 2018-11-22T22:49:36.513Z | 2,018 | 11 | 22 | 3 | 21 | 1 | 526 | 68 | 3 | 3 | true | false | false | false | false | false | zero |
53,439,127 | Android ImageView change maxHeight property through code | <p>I have a <strong>scrollable view</strong> in which I'm inserting various views programatically. <strong>Some views are text fields, some are images.</strong></p>
<p>Most of the images that I insert are horizontal images but <strong>some of the images are vertical.</strong> For vertical images I want to modify my Im... | I have a scrollable view in which I'm inserting various views programatically. Some views are text fields, some are images. Most of the images that I insert are horizontal images but some of the images are vertical. For vertical images I want to modify my ImageView's maxHeight property programatically. So I've put an a... | android|imageview | 0 | 2018-11-22T23:39:41.803Z | 2,018 | 11 | 23 | 3 | 21 | 1 | 494 | 56 | 2 | 2 | true | false | false | false | false | false | zero |
53,469,671 | Layout-land folder is not changing the display on an emulator | <p>I'm having a problem making my emulator switch to a landscape layout, as shown by the screenshot below i have defined a landscape layout folder, with the files in it. I'm not sure if the problem is to do with the fact they are fragments but i'm unsure. </p>
<p><a href="https://i.stack.imgur.com/i41RZ.png" rel="nofo... | I'm having a problem making my emulator switch to a landscape layout, as shown by the screenshot below i have defined a landscape layout folder, with the files in it. I'm not sure if the problem is to do with the fact they are fragments but i'm unsure. example Manifext.xml [CODE] Start of fragment1.xml file [CODE] Star... | android | 0 | 2018-11-25T16:46:24.360Z | 2,018 | 11 | 16 | 6 | 21 | 1 | 361 | 61 | 1 | 3 | true | false | false | false | false | false | zero |
53,495,782 | Hybrid Mobile Application Performance Testing | <p>i am performance testing a hybrid mobile application using the dev tools (inspect element) performance section. It shows idle time out as 90% for most of my scenarios, but i am unable to find out the reason behind the idle time. Please advise.</p> | i am performance testing a hybrid mobile application using the dev tools (inspect element) performance section. It shows idle time out as 90% for most of my scenarios, but i am unable to find out the reason behind the idle time. Please advise. | android|performance | 0 | 2018-11-27T08:50:00.123Z | 2,018 | 11 | 8 | 1 | 21 | 1 | 243 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
53,509,914 | Image no longer drawing on CustomRadioImageButton with Android 7 | <p>I have been using this segmented controller library for a long long time, but under Android 7, the images are no longer drawing on the radio buttons... Does anyone have any ideas what changed in this version of Android that caused this to stop working?</p>
<p>The segmentedcontrollerradiobutton draws, but the image... | I have been using this segmented controller library for a long long time, but under Android 7, the images are no longer drawing on the radio buttons... Does anyone have any ideas what changed in this version of Android that caused this to stop working? The segmentedcontrollerradiobutton draws, but the image that should... | android|radio-button|segmentedcontrol | -1 | 2018-11-27T23:38:41.720Z | 2,018 | 11 | 23 | 1 | 21 | 1 | 512 | 64 | 3 | 2 | true | false | false | false | false | true | negative |
53,685,398 | java.io.EOFException RecycleView | <p>I'm trying to parse a json file from an API and as argument in the request http I take the text field of a recycleview item</p>
<p>I make a toast to see if I recover the field text and indeed I recover it well</p>
<p>but when I run the http request I have an "java.io.EOFException" exception.</p>
<p>I tried to run... | I'm trying to parse a json file from an API and as argument in the request http I take the text field of a recycleview item I make a toast to see if I recover the field text and indeed I recover it well but when I run the http request I have an "java.io.EOFException" exception. I tried to run the same request but inste... | java|android|json|http|exception | 0 | 2018-12-08T18:01:56.510Z | 2,018 | 12 | 18 | 5 | 21 | 1 | 928 | 32 | 5 | 3 | true | false | false | false | false | false | zero |
53,507,479 | open any .jpg image using my application + xamarin android | <p>I am looking for a code implementation which help me to open any .jpg image of my device can be open by my application.
I want my application in list of "open with".</p> | I am looking for a code implementation which help me to open any .jpg image of my device can be open by my application. I want my application in list of "open with". | android|xamarin|file-type-associations | 0 | 2018-11-27T20:18:53.167Z | 2,018 | 11 | 20 | 1 | 277 | 1 | 165 | 58 | 3 | 0 | false | false | false | false | false | false | zero |
53,464,376 | Unable to apply addOnSuccessListener on fragment | <p>I am unable to add any listener after the end of the onCanelled Listener
Actually, I want to do some task after getting data from the snapshot for which I need onSuccessListener and I am unable to add that</p>
<pre><code>public UserFragment() {
// Required empty public constructor
}
@Override
public View onCr... | I am unable to add any listener after the end of the onCanelled Listener Actually, I want to do some task after getting data from the snapshot for which I need onSuccessListener and I am unable to add that [CODE] | android|firebase|firebase-realtime-database | 0 | 2018-11-25T03:24:32.847Z | 2,018 | 11 | 3 | 6 | 533 | 1 | 212 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
53,550,223 | Android : org json jsonexception no value for | <p>i use this json url :
<a href="https://www.theaudiodb.com/api/v1/json/1/search.php?s=coldplay" rel="nofollow noreferrer">https://www.theaudiodb.com/api/v1/json/1/search.php?s=coldplay</a></p>
<pre><code>{
"artists": [
{
"idArtist": "111239",
"strArtist": "Coldplay",
"strArtistStripped": ... | i use this json url : https://www.theaudiodb.com/api/v1/json/1/search.php?s=coldplay [CODE] and this is my android java code : [CODE] But I still get this Error: org.json.jsonexception no value for strArtist. The strArtist has this value "Coldplay", but why do I get this error? | android-fragments|jsonexception | 0 | 2018-11-30T02:07:14.307Z | 2,018 | 11 | 2 | 4 | 789 | 1 | 278 | 45 | 2 | 2 | true | false | false | false | false | false | zero |
53,760,086 | How to add Admin SDK api to android project | <p>I am currently working in an Android application that requires to have Admin and regular users. To illustrate, the admin has the ability to manage the regular users like delete , modify their contents. According to my reserch that firebase provide Admin SDK API that can be realy sutiable for this issue but according... | I am currently working in an Android application that requires to have Admin and regular users. To illustrate, the admin has the ability to manage the regular users like delete , modify their contents. According to my reserch that firebase provide Admin SDK API that can be realy sutiable for this issue but according to... | android|firebase|firebase-realtime-database|google-admin-sdk | 3 | 2018-12-13T10:45:21.950Z | 2,018 | 12 | 10 | 3 | 1,813 | 1 | 739 | 43 | 4 | 0 | false | false | false | false | false | false | low |
53,730,163 | How to update arrayList in cloud firestore in android | <p>Working with cloud firestore its always good to keep in mind about count of document read. I am working on an inventory app in which bill is getting generated for the list of products along with other details. Everything is working fine except the update of arraylist in the bill. I am able to insert the arraylist of... | Working with cloud firestore its always good to keep in mind about count of document read. I am working on an inventory app in which bill is getting generated for the list of products along with other details. Everything is working fine except the update of arraylist in the bill. I am able to insert the arraylist of pr... | android|firebase|google-cloud-firestore | 3 | 2018-12-11T18:20:46.570Z | 2,018 | 12 | 18 | 1 | 4,629 | 1 | 890 | 53 | 3 | 4 | true | false | true | false | false | false | low |
53,354,526 | Create new actitvity in application | <p>Is it possible to create a new activity in the application (not in android studio)?</p>
<p>For example, I have a listview wich I can add new items. What I want is when I click on one of the items, then it will start/create a new activity that are dedicated to that specific item. Is it possible? Or is it another way... | Is it possible to create a new activity in the application (not in android studio)? For example, I have a listview wich I can add new items. What I want is when I click on one of the items, then it will start/create a new activity that are dedicated to that specific item. Is it possible? Or is it another way to do it? | android-activity | 0 | 2018-11-17T19:02:22.923Z | 2,018 | 11 | 19 | 5 | 22 | 1 | 319 | 35 | 1 | 0 | false | false | false | false | false | false | zero |
53,364,472 | My ImageView won't work in position which I set in my xml, but when is it top left corner it works finse.So how can I adjust position? | <p>I have problem with imageView, after I add layoutParams and set width and height my image goes in TOP LEFT corner after compiling it.How can I fix it...Thank you in andvance.
I'm new in android studio so I'am not sure if I was working everything properly for now and I was started making some small game and this happ... | I have problem with imageView, after I add layoutParams and set width and height my image goes in TOP LEFT corner after compiling it.How can I fix it...Thank you in andvance. I'm new in android studio so I'am not sure if I was working everything properly for now and I was started making some small game and this happene... | android|xml|android-studio|imageview|android-imageview | 0 | 2018-11-18T19:07:07.003Z | 2,018 | 11 | 19 | 6 | 22 | 1 | 427 | 134 | 5 | 2 | true | false | false | false | false | false | zero |
53,471,267 | GoogleMaps list results | <p>I've been trying to make a nearby places app, and I've been wondering if there is any function that shows the results like on the image down below:</p>
<p><img src="https://i.stack.imgur.com/t9GdB.png" alt="Screenshot"></p> | I've been trying to make a nearby places app, and I've been wondering if there is any function that shows the results like on the image down below: | android | -2 | 2018-11-25T19:51:00.523Z | 2,018 | 11 | 19 | 6 | 22 | 1 | 147 | 23 | 1 | 0 | false | false | false | false | false | true | negative |
53,560,051 | GearVRf - SceneObject not visible with GVSphere Image | <p>I am trying to show a dot/pointer on <code>GVRSphereSceneObject</code> in <code>GearVR</code>. But, only the <code>GVRSphereSceneObject</code> is showing where as scene object hides once the texture image becomes visible. If I add both sphere and object using <code>addSceneObject</code>, then image is shown on one s... | I am trying to show a dot/pointer on GVRSphereSceneObject in GearVR . But, only the GVRSphereSceneObject is showing where as scene object hides once the texture image becomes visible. If I add both sphere and object using addSceneObject , then image is shown on one side and rest of view is blacked out. I couldn't find ... | android|gear-vr | 0 | 2018-11-30T15:07:12.267Z | 2,018 | 11 | 15 | 4 | 22 | 1 | 461 | 53 | 2 | 1 | true | false | false | false | false | false | zero |
53,652,649 | Disconnect incoming call on Nougat and later | <p>I have a code which identifies incoming call for Android 5. Below I am providing snippet for the same.</p>
<p>Manifest file snippet - </p>
<pre><code><uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-... | I have a code which identifies incoming call for Android 5. Below I am providing snippet for the same. Manifest file snippet - [CODE] BroadcastReceiver implementation as below - [CODE] Problem here is, I have tried to test this code on Android 5, onReceive is called & it could show me log message; but same code if I tr... | android | 0 | 2018-12-06T13:35:25.903Z | 2,018 | 12 | 13 | 3 | 22 | 1 | 448 | 44 | 1 | 2 | true | false | false | false | false | false | zero |
53,679,136 | Request: Way of avoiding TextView and ImageViews because of the amount of Text and Images | <p>i am learning to code in Android Studio. I want to build a guide, with different fragments, called through a navigation drawer.</p>
<p><strong>What I want to do and my issue:</strong>
Each fragment will describe different topics, therefore I will probably use a spinner to access those differnt topics. </p>
<p><str... | i am learning to code in Android Studio. I want to build a guide, with different fragments, called through a navigation drawer. What I want to do and my issue: Each fragment will describe different topics, therefore I will probably use a spinner to access those differnt topics. What I am asking for: Each topic will hav... | android|android-studio|android-fragments | -6 | 2018-12-08T03:05:21.240Z | 2,018 | 12 | 3 | 5 | 22 | 1 | 860 | 89 | 3 | 0 | false | false | false | false | false | true | negative |
53,691,436 | Is it possible to disable codeless init in MarketingInitProvider | <p>Should we give the developer an option to initialize the facebook SDK by themselves later in their application? The codeless init in MarketingInitProvider is a good and convenient feature for most developers, but there are developers who want to fully control when to initialize facebook SDK as well.</p>
<p>Facebook... | Should we give the developer an option to initialize the facebook SDK by themselves later in their application? The codeless init in MarketingInitProvider is a good and convenient feature for most developers, but there are developers who want to fully control when to initialize facebook SDK as well. Facebook SDK initia... | android|facebook|facebook-sdk-4.x | 1 | 2018-12-09T10:39:32.323Z | 2,018 | 12 | 10 | 6 | 278 | 1 | 660 | 64 | 3 | 0 | false | false | false | false | false | false | low |
53,699,293 | Kotlin Android Studio - load thumbnails from newsapi | <p>I'm using this <a href="https://newsapi.org/" rel="nofollow noreferrer">news api</a> to pull the json data into my app and render it in my <code>articlerecycler</code> adapter class.
From the api there is a json value <code>urlToImage</code> that contains the thumbnail that I need to render. Currently I have a work... | I'm using this news api to pull the json data into my app and render it in my articlerecycler adapter class. From the api there is a json value urlToImage that contains the thumbnail that I need to render. Currently I have a working list of 20 or so articles displaying the author, title, description, etc. What is the b... | android|android-studio | 1 | 2018-12-10T03:56:08.170Z | 2,018 | 12 | 3 | 0 | 278 | 1 | 545 | 52 | 2 | 2 | true | false | false | false | false | false | low |
53,759,594 | Adding Search function to Recycler view | <p>I have tried many ways to implement search function into recyclerview. But the search function is not working.</p>
<p>XML</p>
<pre class="lang-xml prettyprint-override"><code><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
... | I have tried many ways to implement search function into recyclerview. But the search function is not working. XML [CODE] Churchcontact.java [CODE] Churchcontactadapter.java [CODE] Churchcontactclass.java [CODE] I have tried several other codes too. But all of them were not working. I am a beginner. | android-studio|android-recyclerview | 0 | 2018-12-13T10:20:00.487Z | 2,018 | 12 | 10 | 3 | 278 | 1 | 300 | 39 | 2 | 4 | true | false | false | false | false | false | zero |
53,409,816 | How to stop autocorrect input text for a PWA on mobile browser (Android and iOS)? | <p>On my PWA, for input, native keyboard of the phones are active. Need code for following usecases
1. How to disable autocorrect for PWA for android and iOS?
2. How to build your own keyboard without auto correct for PWA for android and iOS?</p> | On my PWA, for input, native keyboard of the phones are active. Need code for following usecases 1. How to disable autocorrect for PWA for android and iOS? 2. How to build your own keyboard without auto correct for PWA for android and iOS? | android|ios|keyboard|progressive-web-apps|autocorrect | 1 | 2018-11-21T10:17:26.903Z | 2,018 | 11 | 10 | 2 | 534 | 1 | 239 | 81 | 5 | 0 | false | false | false | false | false | false | low |
53,559,037 | How to access parent view of activity in fragment through dataBinding | <p>I am using data binding and i want to access activity view in my fragment using data binding because i want to display some message on the main container of activity.</p> | I am using data binding and i want to access activity view in my fragment using data binding because i want to display some message on the main container of activity. | android|data-binding|fragment | 2 | 2018-11-30T14:03:18.850Z | 2,018 | 11 | 14 | 4 | 534 | 1 | 166 | 69 | 3 | 0 | false | false | false | false | false | false | low |
53,514,116 | Firebase query on the basis of attribute exist(key) | <blockquote>
<p>As I am trying to <strong>short my data.</strong> So I decided to save <strong>userLikeCollection</strong> as </p>
</blockquote>
<p><code>questionID = true/false</code> -> where <code>true means like and false means dislike</code>. And if this document not exist it means it is <code>neither like nor ... | As I am trying to short my data. So I decided to save userLikeCollection as questionID = true/false -> where true means like and false means dislike . And if this document not exist it means it is neither like nor disliked ... and there ID comprises of ( userID + questionID ) Now I want to query whether this question i... | android|firebase|nosql|google-cloud-firestore | 1 | 2018-11-28T07:22:02.203Z | 2,018 | 11 | 7 | 2 | 790 | 1 | 831 | 51 | 4 | 2 | true | false | false | false | false | false | low |
53,406,093 | Shell Script Running adb commands break the while loop | <p>I am writing a bin bash shell script to collect the information from multiple devices at once. However I notice if there is any adb commands executed in the while loop will break it. Not sure why as the loop is clearly not complete. I know there are multiple feeds discussing this topic but I am unable to find simila... | I am writing a bin bash shell script to collect the information from multiple devices at once. However I notice if there is any adb commands executed in the while loop will break it. Not sure why as the loop is clearly not complete. I know there are multiple feeds discussing this topic but I am unable to find similar i... | android|bash|shell|adb | 0 | 2018-11-21T06:01:46.793Z | 2,018 | 11 | 6 | 2 | 1,558 | 1 | 383 | 54 | 4 | 1 | true | false | false | false | false | false | zero |
53,504,167 | An easy way to print a variable in Android Studio's build.gradle? | <p>I'm trying to print out a variable (example:${project.projectDir}) when I sync my Android Studio project with build.gradle, because I need to see the variable's value to make my task definition working properly.</p>
<p>I searched stack overflow and then followed others' suggestion, I tried follows:</p>
<pre><code>... | I'm trying to print out a variable (example:${project.projectDir}) when I sync my Android Studio project with build.gradle, because I need to see the variable's value to make my task definition working properly. I searched stack overflow and then followed others' suggestion, I tried follows: [CODE] But none of above wo... | android|android-studio|gradle | 3 | 2018-11-27T16:34:23.497Z | 2,018 | 11 | 16 | 1 | 3,606 | 1 | 534 | 65 | 3 | 1 | true | false | true | false | false | false | low |
53,357,538 | Android - How to fit each TableRow to the screen height | <p>I'm looking to create a table with 3 cells (TableRow) each cell should have the dimensions of the size of the full screen (width and height).</p>
<p>Should I use something other than a TableLayout to get the same effect?</p>
<p>Thanks a lot.</p>
<p><a href="https://i.stack.imgur.com/oauBE.png" rel="nofollow noref... | I'm looking to create a table with 3 cells (TableRow) each cell should have the dimensions of the size of the full screen (width and height). Should I use something other than a TableLayout to get the same effect? Thanks a lot. Here is an example of the expected result | android | 1 | 2018-11-18T03:07:47.363Z | 2,018 | 11 | 3 | 6 | 23 | 1 | 269 | 55 | 1 | 0 | false | false | false | false | false | false | low |
53,599,451 | Fragment Replace is causing problems yet again | <p>My activity XML</p>
<pre><code><android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/contentFrame1"
android:layout_widt... | My activity XML [CODE] I have an attachView method that invokes from onCreate of the activity [CODE] When I press back from the VictorFragment , I am greeted with MatchFragment. Shouldn't the VictorFragment be the lone existing fragment in the scenario and pressing back from it should exit the activity? | android|android-fragments | 0 | 2018-12-03T18:09:22.920Z | 2,018 | 12 | 18 | 0 | 23 | 1 | 304 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
53,690,313 | Rendering different response to web and android app | <p>I saw this <a href="https://stackoverflow.com/questions/24579602/designing-a-flask-application-with-mobile-in-mind">answer</a> (2nd one), where it is advised to add a field (eg. device = "web") in <code>request</code> to decide what kind of <code>response</code> to be returned to a web or an android app, from a REST... | I saw this answer (2nd one), where it is advised to add a field (eg. device = "web") in request to decide what kind of response to be returned to a web or an android app, from a REST API. Suggested way: [CODE] I found it pretty useful, however, author himself/herself says that it's a crude way to do it, and that there ... | android|web|flask-restful | 0 | 2018-12-09T07:33:29.697Z | 2,018 | 12 | 7 | 6 | 23 | 1 | 384 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
53,713,193 | How can I capture variables inside of Context | <p>I would like to know if the following is possible. I have a foreground service that runs even if the app is killed and it is started with application context. Is it possible to capture static variables inside that application context and keep them alive as long as the service is alive even when the application is ki... | I would like to know if the following is possible. I have a foreground service that runs even if the app is killed and it is started with application context. Is it possible to capture static variables inside that application context and keep them alive as long as the service is alive even when the application is kille... | android|service|static|applicationcontext|foreground | 0 | 2018-12-10T20:31:35.343Z | 2,018 | 12 | 20 | 0 | 23 | 1 | 322 | 45 | 5 | 0 | false | false | false | false | false | false | zero |
53,533,986 | RxJava repeatWhen doesn't called again in Mockito | <p>I am writing a testing code using Mockito.
I am using RxJava and Retrofit to get the resource from the server.</p>
<p>mockRestService.get(id) method returns Observable.
First, the request call returns an item with the status of "not ready".
So I should use the Rx operator "repeatWhen()".
After some retry, the serve... | I am writing a testing code using Mockito. I am using RxJava and Retrofit to get the resource from the server. mockRestService.get(id) method returns Observable. First, the request call returns an item with the status of "not ready". So I should use the Rx operator "repeatWhen()". After some retry, the server sends an ... | android|junit|kotlin|mockito|rx-java | 1 | 2018-11-29T07:38:13.660Z | 2,018 | 11 | 7 | 3 | 279 | 1 | 618 | 49 | 5 | 2 | true | false | false | false | false | false | low |
53,406,813 | How to add stroke/border to transparent png image in android? | <p>I have transparent images like shapes,letters which I'm fetch from gallery so I need to give them stroke/outline with black color, I can set border but It's set to whole bitmap like left,right,top and bottom.</p>
<blockquote>
<p>Same thing we can do with photoshop is giving outerstroke to image but I want to achi... | I have transparent images like shapes,letters which I'm fetch from gallery so I need to give them stroke/outline with black color, I can set border but It's set to whole bitmap like left,right,top and bottom. Same thing we can do with photoshop is giving outerstroke to image but I want to achieve that in android. I tri... | java|android|bitmap|png|android-canvas | 7 | 2018-11-21T07:02:53.933Z | 2,018 | 11 | 7 | 2 | 1,559 | 1 | 470 | 61 | 5 | 0 | false | false | false | false | false | false | medium |
53,512,752 | Kotlin: Coroutine with Live Data or only Coroutines? | <p>which is better between these two</p>
<p>1) Using coroutines in Viewmodel to fetch data from network and updating View using live data?</p>
<p>2) Using coroutine from View to call suspend function in viewmodel that fetches data from network?</p>
<p>Another question</p>
<p>Should we be using livedata for use case... | which is better between these two 1) Using coroutines in Viewmodel to fetch data from network and updating View using live data? 2) Using coroutine from View to call suspend function in viewmodel that fetches data from network? Another question Should we be using livedata for use cases where we need to update UI only o... | android|kotlin|android-livedata|kotlinx.coroutines | 4 | 2018-11-28T05:33:52.703Z | 2,018 | 11 | 5 | 2 | 1,815 | 1 | 394 | 52 | 4 | 0 | false | false | false | false | false | false | low |
53,589,981 | MPAndroidChart error class ValueFormatter not found | <p>After updating the MPAndroidChart library <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">here</a> in our project from 'com.github.PhilJay:MPAndroidChart:v2.25 to 'com.github.PhilJay:MPAndroidChart:v3.0.2 an error occurs that states that the class ValueFormatter cannot be found. On furt... | After updating the MPAndroidChart library here in our project from 'com.github.PhilJay:MPAndroidChart:v2.25 to 'com.github.PhilJay:MPAndroidChart:v3.0.2 an error occurs that states that the class ValueFormatter cannot be found. On further research, it seems someone made a mistake on the maven repository artefact index ... | java|android|android-studio | 1 | 2018-12-03T08:29:58.023Z | 2,018 | 12 | 8 | 0 | 2,327 | 1 | 422 | 51 | 3 | 0 | false | false | false | false | false | false | low |
53,468,778 | User coming from a notification click | <p>I want to trigger a Toast if the user come from a Notification click.</p>
<p>But I don't know how to know if a user is coming from a notification click.
Right know I set the notification like that:</p>
<pre><code> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
int importance = Notification... | I want to trigger a Toast if the user come from a Notification click. But I don't know how to know if a user is coming from a notification click. Right know I set the notification like that: [CODE] | java|android|push-notification|notifications | 0 | 2018-11-25T15:01:41.007Z | 2,018 | 11 | 15 | 6 | 24 | 1 | 197 | 37 | 4 | 1 | true | false | false | false | false | false | zero |
53,495,849 | Issue regarding displaying a clicked image on an application through an android device | <p>This is the Home.ts file where the <code>takephoto()</code> function is coded, i did import the camera and camera options from ionic-native/camera as shown below:</p>
<pre><code>import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Camera, CameraOptions } from '@ionic-na... | This is the Home.ts file where the takephoto() function is coded, i did import the camera and camera options from ionic-native/camera as shown below: [CODE] and this is my Home.html file : [CODE] Once I click an image on my android device it doesn't show the end result on home.html can anyone please tell what is causin... | android|angularjs|ionic-framework | 0 | 2018-11-27T08:53:55.610Z | 2,018 | 11 | 8 | 1 | 24 | 1 | 526 | 86 | 3 | 2 | true | false | false | false | false | false | zero |
53,653,176 | Do I have to migrate if I change variables type - realm? | <p>At first I had</p>
<pre><code> @SerialName("state") var state: String
</code></pre>
<p>Then I decided to do this - changed the type</p>
<pre><code> @SerialName("state") @BooleanString var state: Int
</code></pre>
<p>Do I've to do something additional in migration or am I good to go?</p> | At first I had [CODE] Then I decided to do this - changed the type [CODE] Do I've to do something additional in migration or am I good to go? | android|realm | 1 | 2018-12-06T14:06:01.293Z | 2,018 | 12 | 14 | 3 | 24 | 1 | 141 | 56 | 2 | 2 | true | false | false | false | false | false | low |
53,728,360 | SharedPreference not saving with commit on android 16 | <p>I'm having a very weird problem that only happens on android 16 and not in android 27 [i didn't test other version to check where it starts]</p>
<pre><code> SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(getApplication()).edit();
edit.putBoolean(getString(R.string.pref_cu... | I'm having a very weird problem that only happens on android 16 and not in android 27 [i didn't test other version to check where it starts] [CODE] Imported is a Set<String> when i restart the app and try to read [CODE] On android 16 i get an empty set, but on 27 everything is fine what might be? | android|sharedpreferences | 0 | 2018-12-11T16:24:48.090Z | 2,018 | 12 | 16 | 1 | 24 | 1 | 297 | 53 | 2 | 2 | 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.