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
44,196,193
How to create apk from appium automation
<p>I am trying to do appium automation and i had written the appium automation code. i had used appium server and my code is mention below :</p> <pre><code> public class WaitTests { WebDriver driver; @Before public void setUp() throws MalformedURLException { DesiredCapabilities capabilities = n...
I am trying to do appium automation and i had written the appium automation code. i had used appium server and my code is mention below : [CODE] I want to run the code without IDE after creating .apk so what should i do to achieve. please suggest me
android|android-studio|appium
1
2017-05-26T07:40:35.750Z
2,017
5
7
4
536
1
249
40
3
1
true
false
false
false
false
false
low
44,264,753
Room + RxJava2 case with infinite loop
<p>I'm using the new Android persistance lib, Room, with RxJava2. The following code is causing an infinite loop. If I comment out the line that updates the user in the second observable it works fine. If I leave it there, the onNext method of the first observable will be called on and on again.</p> <p>Does Room reque...
I'm using the new Android persistance lib, Room, with RxJava2. The following code is causing an infinite loop. If I comment out the line that updates the user in the second observable it works fine. If I leave it there, the onNext method of the first observable will be called on and on again. Does Room requery the tabl...
android|android-room
2
2017-05-30T14:16:34.880Z
2,017
5
14
1
792
1
476
38
2
1
true
false
false
false
false
false
low
44,018,377
Gradle sync failed version does not support the ModelBuilder API while version is 3.3
<p>I'm fairly new to android development, all of a sudden I'm receiving the following error:<code>The version of Gradle you are using (Gradle distribution 'https://services.gradle.org/distributions/gradle-3.3-all.zip') does not support the ModelBuilder API. Support for this is available in Gradle 1.2 and all later ver...
I'm fairly new to android development, all of a sudden I'm receiving the following error: The version of Gradle you are using (Gradle distribution 'https://services.gradle.org/distributions/gradle-3.3-all.zip') does not support the ModelBuilder API. Support for this is available in Gradle 1.2 and all later versions Whi...
java|android|gradle
2
2017-05-17T07:33:39.813Z
2,017
5
7
2
1,560
1
776
85
3
0
false
false
false
false
false
false
low
44,242,096
How to wait for callback before leaving method (Java)
<p>I have a method in which I call another method that has a callback. I want to receive this callback before leaving my method. I saw some other posts in which latches are used. My code looks like this:</p> <pre><code>public void requestSecurityToken(&lt;some params&gt;){ final CountDownLatch latch = new CountDo...
I have a method in which I call another method that has a callback. I want to receive this callback before leaving my method. I saw some other posts in which latches are used. My code looks like this: [CODE] This doesn't work, the method is stuck in the await() function. What happens is that, the method immediately jum...
java|android
3
2017-05-29T12:06:37.417Z
2,017
5
12
0
1,560
1
548
53
2
1
true
false
false
false
false
false
low
44,317,525
How to restore Sqlite database after backup Android
<p>I searched a lot about backup/restore Sqlite database i found code to copy sqlite file to SD card this is the code </p> <pre><code>private void exportDB() { try { File sd = Environment.getExternalStorageDirectory(); File data = Environment.getDataDirectory(); if (sd.canWrite()) { String currentDBPath = "//data...
I searched a lot about backup/restore Sqlite database i found code to copy sqlite file to SD card this is the code [CODE] Now i have database file (.db) in SD card and i want to restore data to app i tried this code but it is not restore data to app [CODE] My question is how i can restore sqlite database to my app?
android|database|sqlite|android-sqlite
0
2017-06-01T21:42:39.017Z
2,017
6
21
3
2,328
1
316
51
4
2
true
false
false
false
false
false
zero
43,929,783
If an button element is set to null then will the click listeners added to it are removed?
<p>In Xamarin Android, after the page is destroyed, i am setting the button element to null, is it ok to leave it or should i remove the click listener before making the button to null to avoid memory leak ?</p>
In Xamarin Android, after the page is destroyed, i am setting the button element to null, is it ok to leave it or should i remove the click listener before making the button to null to avoid memory leak ?
c#|xamarin.android
2
2017-05-12T05:16:50.533Z
2,017
5
5
4
25
1
204
90
2
0
false
false
false
false
false
false
low
43,975,817
Remove child isn't working
<p>I have a problem. I have an xml, and I want to delete an especific node, and with my code, I can see it, as a System.out, I can see my xml without that node, but later, when I check the xml, it still has the node. My code:</p> <pre><code>public void borrarelemento(String id_elementoaborrar, String direccion) { t...
I have a problem. I have an xml, and I want to delete an especific node, and with my code, I can see it, as a System.out, I can see my xml without that node, but later, when I check the xml, it still has the node. My code: [CODE] Where direccion is the path of the xml, and id_elementoaborrar is the value I'm looking fo...
xml|android-studio|removechild
0
2017-05-15T09:27:27.280Z
2,017
5
9
0
25
1
351
26
3
2
true
false
false
false
false
false
zero
44,177,821
Android calendar - Event is created, but cant see its listed in Android default calendar
<p>I am using CalendarContract.EVENTS to register an event, but not the Intent.</p> <p>Now the way I am retrieving calendar id is like below - </p> <pre><code>String[] projection = new String[]{Calendars._ID, Calendars.NAME, Calendars.ACCOUNT_NAME, Calendars.ACCOUNT_TYPE}; Cursor cursor = getContentResolver().query(C...
I am using CalendarContract.EVENTS to register an event, but not the Intent. Now the way I am retrieving calendar id is like below - [CODE] This calId is further used in registering an event. Though I am not getting any runtime failure, I am unable to observe an event is registered at Android Calendar. Hence unable to ...
android|calendar
0
2017-05-25T10:09:44.880Z
2,017
5
10
3
25
1
405
88
2
1
true
false
false
false
false
false
zero
44,208,243
Why does return type of the methods are abstract?
<p>Link:<a href="https://developer.android.com/reference/android/view/Menu.html#NONE" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/Menu.html#NONE</a></p> <p>In the above link everymethod has abstract added to it .Which class or classes implement the menu interface?</p>
Link: https://developer.android.com/reference/android/view/Menu.html#NONE In the above link everymethod has abstract added to it .Which class or classes implement the menu interface?
android|methods
-2
2017-05-26T18:41:21.290Z
2,017
5
18
4
25
1
182
49
2
0
false
false
false
false
false
true
negative
44,215,090
How to hide the contents of an image
<p>In the activity I had an image, but I want to hide its contents until the click.</p> <p>When one arrives at the activity</p> <p><img src="https://i.stack.imgur.com/RyMi1.png" alt="activity"></p> <p>When clicking on this image</p> <p><img src="https://i.stack.imgur.com/dMw0l.png" alt="image"></p>
In the activity I had an image, but I want to hide its contents until the click. When one arrives at the activity When clicking on this image
android
-1
2017-05-27T09:17:03.683Z
2,017
5
9
5
25
1
141
36
1
0
false
false
false
false
false
true
negative
44,268,216
How to reference the NsdManager
<p>I want to discover services on a local area network using the network service discovery manager, as per the example in the <a href="https://developer.android.com/training/connect-devices-wirelessly/nsd.html" rel="nofollow noreferrer">documentation</a>:</p> <blockquote> <p>mNsdManager.discoverServices( S...
I want to discover services on a local area network using the network service discovery manager, as per the example in the documentation : mNsdManager.discoverServices( SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, mDiscoveryListener); My problem is I don't know how to reference an isntance of the mNsdManager . I've tried ...
android
0
2017-05-30T17:15:14.867Z
2,017
5
17
1
25
1
502
31
1
1
true
false
false
false
false
false
zero
44,363,677
I want to create a window manager dialog when incoming call is detected but click event is not working
<p>I want to create a window manager dialog when incoming call is detected but click event is not working</p> <p>I want click event in the dialog and outside the dialog as I would want to receive calls</p> <pre><code>windowManager = (WindowManager) this.getSystemService(WINDOW_SERVICE); params = new WindowMan...
I want to create a window manager dialog when incoming call is detected but click event is not working I want click event in the dialog and outside the dialog as I would want to receive calls [CODE]
android|window
0
2017-06-05T07:20:12.980Z
2,017
6
7
0
25
1
198
102
2
1
true
false
false
false
false
false
zero
44,111,570
php script executing twice when i am sending fcm notifications using curl
<p>I am trying to send notification to multiple users using FCM with a curl function in PHP. Sometimes it is sending perfectly, sometimes it is re-executing entire page and inserting values twice and sending notification twice.</p> <p>Here is my notification code </p> <pre><code>$response = sendNotification( ...
I am trying to send notification to multiple users using FCM with a curl function in PHP. Sometimes it is sending perfectly, sometimes it is re-executing entire page and inserting values twice and sending notification twice. Here is my notification code [CODE]
php|curl|firebase-cloud-messaging|android-push-notification
0
2017-05-22T11:21:18.503Z
2,017
5
11
0
793
1
260
73
4
1
true
false
false
false
false
false
zero
43,943,722
In Android development, is there something similar to the app class in WPF
<p>This is a general curiosity question. WPF (Microsoft's Implementation of XAML) based application have a base class (executable starting point) called App. </p> <p>Is there something in like this in Android Development?</p>
This is a general curiosity question. WPF (Microsoft's Implementation of XAML) based application have a base class (executable starting point) called App. Is there something in like this in Android Development?
java|android
0
2017-05-12T17:48:31.530Z
2,017
5
17
4
26
1
210
74
2
0
false
false
false
false
false
false
zero
43,949,242
How String object is not receiving data from the editText? - Android
<p>I have a problem with this, the editText in the log is sending data but the String is null and the object is null this is my code:</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_group_chat); mSendMessag...
I have a problem with this, the editText in the log is sending data but the String is null and the object is null this is my code: [CODE] the log is not receiving anything and the string is not receiving anything
android|string|android-edittext
-2
2017-05-13T04:40:38.817Z
2,017
5
4
5
26
1
212
68
3
1
true
false
false
false
false
true
negative
43,966,308
How do I access 'activity' - the symbol won't resolve
<p>I've just added a new activity to my Android Studio project in order to move app permissions checking into its own activity.</p> <p>The activity screen shows an explanation of which permissions the app requires and why with a 'continue' button at the bottom for the user to click when they are ready to accept the pe...
I've just added a new activity to my Android Studio project in order to move app permissions checking into its own activity. The activity screen shows an explanation of which permissions the app requires and why with a 'continue' button at the bottom for the user to click when they are ready to accept the permissions (...
android
0
2017-05-14T16:28:45.783Z
2,017
5
16
6
26
1
769
53
1
2
true
false
false
false
false
false
zero
44,061,222
Create multiple tables in a DB previously created
<p>I want to search on a scholar subject DB, and when I get the name of the subject, create a new table to save some homework there ( as a list to do) but this will be multiple (a scholar schedule).</p> <p>I have been trying with on upgrade, I get the name, I create the table, but when I try to add smt it says "no suc...
I want to search on a scholar subject DB, and when I get the name of the subject, create a new table to save some homework there ( as a list to do) but this will be multiple (a scholar schedule). I have been trying with on upgrade, I get the name, I create the table, but when I try to add smt it says "no such table" ho...
android|sqlite
1
2017-05-19T04:00:19.873Z
2,017
5
4
4
26
1
349
49
2
0
false
false
false
false
false
false
low
44,091,481
How do I parse a double and show it in an EdiText after calculation?
<p>I am a beginner, please just tell me what Im doing wrong with a hint. Dont tell me the solution just a good hint. This is my code:</p> <pre><code>package com.dietel.preserve; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.Editable; import android.util.Log; import an...
I am a beginner, please just tell me what Im doing wrong with a hint. Dont tell me the solution just a good hint. This is my code: [CODE] I'm just trying to get a value from an editText and then convert it into a double and then show it inside another ediText after calculation. Please help me. This is my xml code: [COD...
java|android
-1
2017-05-20T22:43:50.303Z
2,017
5
22
5
26
1
322
68
2
2
true
false
false
false
false
true
negative
44,155,628
onClick of mail link inside HTML asset how to fire intent to open mail applications in Android
<p>I am loading html characters from asset. I have a mail link there onclick of which I want to fire intent to open mail application. I tried two ways to do this, first I declared mail link as <code>&lt;a href&gt;</code> but that won't work unless its a url or a website to visit. Hence, I used below code but no action ...
I am loading html characters from asset. I have a mail link there onclick of which I want to fire intent to open mail application. I tried two ways to do this, first I declared mail link as <a href> but that won't work unless its a url or a website to visit. Hence, I used below code but no action happening [CODE]
android
0
2017-05-24T10:22:52.800Z
2,017
5
10
2
26
1
314
94
1
1
true
false
false
false
false
false
zero
44,172,960
Using expansion files for android wear watchfaces
<p>I am working a watch face everything works is fine but the problem is apk has crossed 100 MB (80% of space is because of image resources). So i m in a situation to use the expansion file. Have added the image resource as expansion file &amp; i can now access the images in my handheld without any error. Now my questi...
I am working a watch face everything works is fine but the problem is apk has crossed 100 MB (80% of space is because of image resources). So i m in a situation to use the expansion file. Have added the image resource as expansion file & i can now access the images in my handheld without any error. Now my question is h...
wear-os|android-wear-data-api|apk-expansion-files
0
2017-05-25T05:31:23.137Z
2,017
5
5
3
26
1
524
49
3
0
false
false
false
false
false
false
zero
44,244,883
Set wait time before the sound of a button starts
<p>I set a sound when I check the button</p> <pre><code> public void Button(View v) { final MediaPlayer mpStart = MediaPlayer.create(this, R.raw.startsound); mpStart.start(); } </code></pre> <p>I want to wait some time before the sound starts. How can i do?</p>
I set a sound when I check the button [CODE] I want to wait some time before the sound starts. How can i do?
android-studio
1
2017-05-29T14:26:54.573Z
2,017
5
14
0
26
1
108
49
1
1
true
false
false
false
false
false
low
44,263,919
Android Studio wear app installation fails
<p>So I've got a project with a mobile and a wear part. Actually, it's the default Basic Activity and Basic Wear Activity project, targeting API 21 on the phone and the latest 7.1.1 for watches. My watch (OG LG Urbane on AW2.0) is plugged in with ADB debugging enabled.</p> <p>The watch shows up in the list of ADB devi...
So I've got a project with a mobile and a wear part. Actually, it's the default Basic Activity and Basic Wear Activity project, targeting API 21 on the phone and the latest 7.1.1 for watches. My watch (OG LG Urbane on AW2.0) is plugged in with ADB debugging enabled. The watch shows up in the list of ADB devices, but wh...
android|android-studio|adb|wear-os
0
2017-05-30T13:39:47.073Z
2,017
5
13
1
26
1
473
42
4
1
true
false
false
false
false
false
zero
44,309,799
Phonegap google maps api query not working
<p>I am developing a simple android app using phonegap that sends a google maps geocoding api request with lat,lan location and returns an address. When working using my desktop, everything works fine! Once I build the app using the adobe phonegap cloud builder, it does not work. in addition, I am unable to debug as ...
I am developing a simple android app using phonegap that sends a google maps geocoding api request with lat,lan location and returns an address. When working using my desktop, everything works fine! Once I build the app using the adobe phonegap cloud builder, it does not work. in addition, I am unable to debug as nothi...
android|google-maps|phonegap
0
2017-06-01T14:07:02.790Z
2,017
6
14
3
26
1
535
42
3
1
true
false
false
false
false
false
zero
44,349,169
How to use Android Service or ServiceIntent
<p>Can someone help me understand how to use Android Service or IntentService correctly. The documentation seems to contradict itself here:</p> <pre><code> Caution: A service runs in the same process as the application in which it is declared and in the main thread of that application by default. If your service ...
Can someone help me understand how to use Android Service or IntentService correctly. The documentation seems to contradict itself here: [CODE] and here [CODE] Given the whole purpose of the Service or ServiceIntent is to run long running jobs in the background without affecting the UI why then does the example code do...
android|multithreading
0
2017-06-03T22:41:50.923Z
2,017
6
22
5
26
1
1,359
43
2
2
true
false
false
false
false
false
zero
44,068,657
Difference between android.hardware.Sensor and Fitness.SENSORS_API
<p>I'm looking for the difference between <code>android.hardware.Sensor</code> and <code>Fitness.SENSORS_API</code> in term of performance, simplicity. </p> <p>Because I saw on <a href="https://developers.google.com/android/reference/com/google/android/gms/fitness/SensorsApi.html" rel="nofollow noreferrer">Sensor API ...
I'm looking for the difference between android.hardware.Sensor and Fitness.SENSORS_API in term of performance, simplicity. Because I saw on Sensor API doc : The API exposes data sources from hardware sensors in the local device and in companion devices. It also exposes data sources from applications. Data sources can b...
android|wear-os|android-sensors|google-fit|android-hardware
0
2017-05-19T11:16:15.107Z
2,017
5
11
4
282
1
717
66
5
0
false
false
false
false
false
false
zero
44,095,139
When singleton Application object sometimes is null
<p>Currently, I have an <code>Application</code> class which I expect to be visible in entire application life cycle.</p> <h2>MyApplication.java</h2> <pre><code>public class MyApplication extends android.support.multidex.MultiDexApplication { protected void attachBaseContext(Context base) { super.attachB...
Currently, I have an Application class which I expect to be visible in entire application life cycle. MyApplication.java [CODE] However, under very rare situation, MyApplication.instance() is returning null in connectivity change broadcast receiver. ConnectivityChangeBroadcastReceiver.java [CODE] How I register the net...
android
3
2017-05-21T09:16:28.617Z
2,017
5
9
6
282
1
517
51
1
3
true
false
false
false
false
false
low
44,165,189
How to implement Fused Location Provider in Android Api level 23
<p>i am trying to get continuous location updates in my app using Fused Location provider somehow it worked fine in Lollipop but in Marshmallow it is not showing any location update.</p> <p>Below is my code.Plz let me know what i am ding wrong.</p> <pre><code>public class Gps extends AppCompatActivity implements Goog...
i am trying to get continuous location updates in my app using Fused Location provider somehow it worked fine in Lollipop but in Marshmallow it is not showing any location update. Below is my code.Plz let me know what i am ding wrong. [CODE] }
android
-1
2017-05-24T17:36:45.647Z
2,017
5
17
2
282
1
243
64
1
1
true
false
false
false
false
true
negative
44,240,504
Recyclerview with GridLayout. Add a divider only if date of next item differ
<p>I have a <code>RecyclerView</code> with a <code>GridLayout</code>. My data is a <code>List</code> of ordered objects by date. I need to add a divider if next item has different date that current one. Here is my class:</p> <pre><code>public class ImageContentFragment extends Fragment { @Override public View onCrea...
I have a RecyclerView with a GridLayout . My data is a List of ordered objects by date. I need to add a divider if next item has different date that current one. Here is my class: [CODE] What is the best way to do that? It also would be great to add a TextView with divider.
android|android-recyclerview|grid-layout
0
2017-05-29T10:42:04.093Z
2,017
5
10
0
282
1
274
76
3
1
true
false
false
false
false
false
zero
44,228,853
TaskCompletionSource and dismiss causes that multiple custom alertdialogs aren't appearing
<p>I got a problem related with the TaskCompletionSource object and the Dismiss function of an alert. This problem does not appear within the IOS version of the application</p> <p>When the application sends an notification, two alerts with working functionality will show up when the user activates the application:</p>...
I got a problem related with the TaskCompletionSource object and the Dismiss function of an alert. This problem does not appear within the IOS version of the application When the application sends an notification, two alerts with working functionality will show up when the user activates the application: Authentication...
c#|android|xamarin|xamarin.android
10
2017-05-28T15:14:13.357Z
2,017
5
15
6
538
1
1,015
90
4
3
true
false
false
false
true
false
medium
43,947,814
React Native Drawer with React Native Router Flux set up not working
<p>I am trying to set up react-native-drawer with react-native-router-flux.</p> <p>I have set up the Drawer as in the flux <a href="https://github.com/aksonov/react-native-router-flux/blob/master/docs/OTHER_INFO.md" rel="nofollow noreferrer">OTHER INFO</a> doc as below</p> <pre><code>import React from 'react-native';...
I am trying to set up react-native-drawer with react-native-router-flux. I have set up the Drawer as in the flux OTHER INFO doc as below [CODE] Then I put the drawer scenes inside Router component as below [CODE] Now the problem is that from another component e.g. ServiceChoice, if I do Actions.map() , nothing happens....
android|react-native-router-flux|react-native-drawer
1
2017-05-12T23:41:47.050Z
2,017
5
23
4
2,074
1
451
68
3
2
true
false
false
false
false
false
low
43,940,902
google maps api markers zoom works in only 1 listener
<p>Im trying to get the zoom out of any markers i make, for this i did a method where i create all the markers with their owns <code>setOnMarkerClickListener</code> , the thing is when i run the app it only does the zoom to miami but not to the others, i dont know what im missing</p> <pre><code>private float zoomLeve...
Im trying to get the zoom out of any markers i make, for this i did a method where i create all the markers with their owns setOnMarkerClickListener , the thing is when i run the app it only does the zoom to miami but not to the others, i dont know what im missing [CODE] pd: is there a way to zoom in progressive and no...
android|google-maps|markers
0
2017-05-12T15:03:04Z
-1
-1
-1
-1
27
1
340
53
3
1
true
false
false
false
false
false
zero
44,053,634
Encoding the data for use in WebView Android
<p>Good day, I have an app to display the posts of a web (wordpress). I'm using the wordpress rest api and I show the content of the posts in a WebView, but when I run the app and select a post, strange characters are seen in the content eg A3n instead of the accented / or). I have the following line of code where I de...
Good day, I have an app to display the posts of a web (wordpress). I'm using the wordpress rest api and I show the content of the posts in a WebView, but when I run the app and select a post, strange characters are seen in the content eg A3n instead of the accented / or). I have the following line of code where I defin...
android|wordpress
0
2017-05-18T16:47:18.567Z
2,017
5
16
3
27
1
548
44
2
0
false
false
false
false
false
false
zero
44,189,941
Volley android remove div-container from fetched json
<p>I use volley to fetch content from a wordpress blog via its api.</p> <p>The content I receive looks like this:</p> <pre><code>&lt;p&gt;Blog content blabla&lt;/p&gt;\n &lt;div id=\ "pressrelease-link-345\" class=\ "sh-link pressrelease-link sh-hide\"&gt; &lt;a href=\ "#\" onclick=\ "showhide_toggle('pressrelease...
I use volley to fetch content from a wordpress blog via its api. The content I receive looks like this: [CODE] I'd like to show the full text in my app, so the whole -part should be removed. Is there a nicer way to do this than just building the string for each article (id, here 345)? I though maybe I could just 'filte...
android|wordpress|rest|android-volley|wordpress-rest-api
0
2017-05-25T21:15:03.943Z
2,017
5
21
3
27
1
379
53
5
1
true
false
false
false
false
false
zero
44,206,778
Android: Error converting type Date to Calendar
<p>I am using realm to save a date but need to use the day and month of the date for later use so am converting the type Date to Calendar using:</p> <pre><code> public static Calendar toCalendar(Date date){ Calendar cal = Calendar.getInstance(); cal.setTime(date); return cal; } </code></pre> <p>Then on on...
I am using realm to save a date but need to use the day and month of the date for later use so am converting the type Date to Calendar using: [CODE] Then on onCreate of a fragment: [CODE] The DAY_OF_MONTH and MONTH methods of testCalendar are returning the day as the 5th and month as the 2nd rather than the 26th and 5t...
android
0
2017-05-26T17:03:03.480Z
2,017
5
17
4
27
1
322
47
1
2
true
false
false
false
false
false
zero
44,271,577
Delay method after input/stop receiving input
<p>So I'm trying to create a trivia like quiz game where two people can play head-to-head on the same phone. Everything is perfect except for when you select an answer it generates the next question so fast the other person ends up hitting a random answer.</p> <p>For example, if both players go to hit the button almos...
So I'm trying to create a trivia like quiz game where two people can play head-to-head on the same phone. Everything is perfect except for when you select an answer it generates the next question so fast the other person ends up hitting a random answer. For example, if both players go to hit the button almost at the sa...
android
0
2017-05-30T20:42:52.493Z
2,017
5
20
1
27
1
786
45
1
1
true
false
false
false
false
false
zero
44,293,218
Android - Data from multiple sources
<p>I'm using retrofit, rxjava and realm to build an application. This is what I'm trying to accomplish:</p> <ol> <li>Load data from local DB and at same time issue network request</li> <li>First time display a loader only</li> <li>If data is already there in DB display it and show small loader on somewhere</li> <li>Wh...
I'm using retrofit, rxjava and realm to build an application. This is what I'm trying to accomplish: Load data from local DB and at same time issue network request First time display a loader only If data is already there in DB display it and show small loader on somewhere When network results are ready update the list...
android|rx-java|retrofit2|rx-java2
1
2017-05-31T19:28:55.843Z
2,017
5
19
2
539
1
669
36
4
2
true
false
false
false
false
false
low
44,170,358
Navigation Drawer Backstacks with Fragments
<p>My app uses a navigation drawer with 2 sections.</p> <p>Section 1: Character List, Favorites List</p> <p>Section 2: List of all characters</p> <p>Character List has the same character selections as section 2 in the navigation drawer. Selecting a character from "Character List" or "Favorites List" in section 1, or...
My app uses a navigation drawer with 2 sections. Section 1: Character List, Favorites List Section 2: List of all characters Character List has the same character selections as section 2 in the navigation drawer. Selecting a character from "Character List" or "Favorites List" in section 1, or from the list in the drawe...
android|android-fragments|navigation-drawer|back-stack|onbackpressed
0
2017-05-25T00:15:34.680Z
2,017
5
0
3
28
1
695
43
5
3
true
false
false
false
false
false
zero
44,264,023
Request caching OKHttp 3.o or any other solution
<p>I am writing an application that requires end user to constantly send updates to our server. I generally use the OKhttom or httpURLConnec clients to make me api calls. </p> <p>The api call is tied to a button click.</p> <p>In case my end user has no internet access, is it possible that if he clicks the button to m...
I am writing an application that requires end user to constantly send updates to our server. I generally use the OKhttom or httpURLConnec clients to make me api calls. The api call is tied to a button click. In case my end user has no internet access, is it possible that if he clicks the button to make the request. The...
java|android|rest|http|okhttp
0
2017-05-30T13:44:43.407Z
2,017
5
13
1
28
1
402
48
5
0
false
false
false
false
false
false
zero
44,311,930
Xml widget Properties won't load
<p>I have a problem with the Properties window in Android Studios. The problem is that the properties won't load. Like in the Picture, it only shows Loading and it's symbol, but nothing happens. I have already waited for more than five minutes but it still happens nothing. All other windows work peferctly. I restarted ...
I have a problem with the Properties window in Android Studios. The problem is that the properties won't load. Like in the Picture, it only shows Loading and it's symbol, but nothing happens. I have already waited for more than five minutes but it still happens nothing. All other windows work peferctly. I restarted it ...
android|android-studio|android-service|settings
0
2017-06-01T15:42:02.567Z
2,017
6
15
3
28
1
449
32
4
0
false
false
false
false
false
false
zero
44,322,424
Is require any permissions to open and use it for commercial purpose others web site from android webview
<p>Is it there any rule and regulation on how to use other web site for commercial purpose on our android application through the webview . I have developed and music application and now i want to give an search option for user where user can got to music website and download song from within my application only.I don...
Is it there any rule and regulation on how to use other web site for commercial purpose on our android application through the webview . I have developed and music application and now i want to give an search option for user where user can got to music website and download song from within my application only.I don't k...
android
-1
2017-06-02T06:41:52.947Z
2,017
6
6
4
28
1
387
105
1
0
false
false
false
false
false
true
negative
44,030,833
Android Fragment: Progressbar shows up, rotating and doesn't hide
<p>I started learning programming Android Apps some days ago and I always managed to find an answer by watching youtube videos or searching on this site here. But the following problem I couldn't even find.</p> <p>In the class <code>Navigation</code>I'm starting/loading a fragment (<code>Fragement_trupp1</code>). And ...
I started learning programming Android Apps some days ago and I always managed to find an answer by watching youtube videos or searching on this site here. But the following problem I couldn't even find. In the class Navigation I'm starting/loading a fragment ( Fragement_trupp1 ). And it works great but I'm always havi...
android|android-fragments
1
2017-05-17T16:57:26.717Z
2,017
5
16
2
284
1
940
65
2
2
true
false
false
false
false
false
low
44,006,911
when i type ionic cordova build android
<p>th ionic info global packages:</p> <pre><code>@ionic/cli-utils : 1.0.0 Cordova CLI : 7.0.1 Ionic CLI : 3.0.0 </code></pre> <p>local packages:</p> <pre><code>@ionic/cli-plugin-cordova : 1.0.0 @ionic/cli-plugin-ionic1 : 1.0.0 Ionic Framework : ionic1 1.3.3 </code></pre> <p>System:</p> <pre...
th ionic info global packages: [CODE] local packages: [CODE] System: [CODE] ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova build android (exit code 1): [CODE] FAILURE: Build failed ...
android|linux|ionic-framework
1
2017-05-16T16:30:29.630Z
2,017
5
16
1
540
1
345
39
3
5
true
false
false
false
false
false
low
44,194,297
Read Epub Files using HTML and Javascript from Android Asset folder?
<p>I want to read the EPUB files which are located in Assets folder. I have a HTML file. In which i have referred epub.min.js and provided a epub file location to read the file. But the epub file was not loaded. Can anyone suggest me how to read epub files using html and javascript in Android?</p> <p><strong>File Loca...
I want to read the EPUB files which are located in Assets folder. I have a HTML file. In which i have referred epub.min.js and provided a epub file location to read the file. But the epub file was not loaded. Can anyone suggest me how to read epub files using html and javascript in Android? File Locations [CODE]
android|jquery|html|epub
3
2017-05-26T05:34:18.247Z
2,017
5
5
4
540
1
313
68
4
1
true
false
false
false
false
false
low
44,301,616
java.lang.null pointer exception on opening the alert dialog for password in androidchange
<p>While creating the android app in user profile when user click on password edit text the pop should be displayed I have implemented it but when i click on edit text It is giving me the below error. I have googled it but not found any useful solution. Please can you tell I am attaching the code :</p> <p>java.lang.N...
While creating the android app in user profile when user click on password edit text the pop should be displayed I have implemented it but when i click on edit text It is giving me the below error. I have googled it but not found any useful solution. Please can you tell I am attaching the code : java.lang.NullPointerEx...
java|android
-2
2017-06-01T07:50:02.457Z
2,017
6
7
3
540
1
1,830
90
2
1
true
false
false
false
false
true
negative
44,306,175
Missing sync_val_compare_and_swap_1
<p>I have a standalone toolchain NDK13b, api19, llvm 3.8 compiler, arm 32 bit, with libcpp (llvm C++ library)</p> <p>I want to avoid depending on libgcc, so I build compiler-rt. The best version I could find (that which leaves me with the least undefined symbols) comes from <a href="https://android.googlesource.com/pl...
I have a standalone toolchain NDK13b, api19, llvm 3.8 compiler, arm 32 bit, with libcpp (llvm C++ library) I want to avoid depending on libgcc, so I build compiler-rt. The best version I could find (that which leaves me with the least undefined symbols) comes from https://android.googlesource.com/platform/external/comp...
android|c++|android-ndk|linker|llvm
1
2017-06-01T11:23:10.847Z
2,017
6
11
3
540
1
1,760
35
5
3
true
false
false
false
false
false
low
44,106,506
How to update a quantity with existing item in table change in android sqlite
<p>I want to update quantity value in `sqlitedb` if item is already existed with same name which I want to insert,I execute that query but not affected on table.</p> <p> This is my code to update quantity of particular item:</p> <pre><code> public int updateContact(Contact contact) { SQLiteDatabase db = this.getW...
I want to update quantity value in `sqlitedb` if item is already existed with same name which I want to insert,I execute that query but not affected on table. This is my code to update quantity of particular item: [CODE]
android|database|sqlite
0
2017-05-22T07:02:10.727Z
2,017
5
7
0
796
1
220
77
3
1
true
false
false
false
false
false
zero
44,163,456
Reactnative $JAVA_HOME path error
<pre><code>zzz@zzz-PC ~/AndroidStudioProjects/Example $ react-native run-android Scanning 555 folders for symlinks in /home/zzz/AndroidStudioProjects/Example/node_modules (16ms) Starting JS server... Building and installing the app on the device (cd android &amp;&amp; ./gradlew installDebug)... ERROR: JAVA_HOME is set...
[CODE] Anyone can tell what's the problem, after I've run "react-native run-android" command. I've changed my JAVA_HOME path in /etc/environment, it still failed.
android|react-native|java-home
1
2017-05-24T16:04:43.303Z
2,017
5
16
2
5,660
1
162
33
3
1
true
false
true
false
false
false
low
43,958,644
the most recent Geobased ARSDKs for Android
<p>im trying to build a geobased AR application for Android and i want a free SDK, all the SDKs i found are about 4 years old since the eclipse era (ex: <a href="https://github.com/bitstars/droidar" rel="nofollow noreferrer">droidAr</a> and <a href="http://www.beyondar.com/" rel="nofollow noreferrer">BeyondAR</a> Why ...
im trying to build a geobased AR application for Android and i want a free SDK, all the SDKs i found are about 4 years old since the eclipse era (ex: droidAr and BeyondAR Why aren't there updating for different SDKs and what arethe most recent i could use
android|augmented-reality
0
2017-05-13T22:41:01.660Z
2,017
5
22
5
29
1
255
43
2
0
false
false
false
false
false
false
zero
43,973,765
ListView with subitems avoid 2 times same information
<p>I have a ListView populated with my database using a SimpleCursorAdapter. I have 2 lines in my ListView , 1 for the date (one column of my table) and the other for 2 columns of my db as well.</p> <p>The 1st column is the date, 2nd is the lesson and the 3rd is the theme of the lesson.</p> <p>The problem is : If I ...
I have a ListView populated with my database using a SimpleCursorAdapter. I have 2 lines in my ListView , 1 for the date (one column of my table) and the other for 2 columns of my db as well. The 1st column is the date, 2nd is the lesson and the 3rd is the theme of the lesson. The problem is : If I have more than one l...
android|listview|simplecursoradapter
0
2017-05-15T07:34:11.863Z
2,017
5
7
0
29
1
782
53
3
3
true
false
false
false
false
false
zero
43,981,886
Android - Displaying a static activity within another static activity
<p>Disclaimer: I am brand new to Android and just finding my way - <code>Fragments</code> confuse the hell out of me.</p> <p>I'm working on building a little resume app that will eventually have a tab layout. For now I'm working on the front page which will display a header with an image and a name, then a TextView wi...
Disclaimer: I am brand new to Android and just finding my way - Fragments confuse the hell out of me. I'm working on building a little resume app that will eventually have a tab layout. For now I'm working on the front page which will display a header with an image and a name, then a TextView with a short summary state...
java|android|listview|android-fragments
0
2017-05-15T14:21:11.797Z
2,017
5
14
0
29
1
945
69
4
2
true
false
false
false
false
false
zero
44,150,810
Not getting notification using AlaramManager in Android
<p>MY code...</p> <pre><code>Button start = (Button) findViewById(R.id.button10); start.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(getApplicationContext(), Nortification_Reciver.class); PendingIntent pe...
MY code... [CODE] calender.getmills have correct values. Nortification_Reciver.java [CODE] Manifest [CODE] There is no notification showing. Whats wrong in this code.? How can i resolve this issue.? Is my service starting.?
android|android-alarms
0
2017-05-24T06:42:59.350Z
2,017
5
6
2
29
1
223
55
2
3
true
false
false
false
false
false
zero
44,270,194
Incorrect transition between activities
<p>Probably something I do not understand.</p> <p>In the application programs (from google play), if we move from the main activity to the second and then back to the main, then after pressing the "back" button on the phone, the application closes.</p> <p>I tried to make my own applications with two activities, but i...
Probably something I do not understand. In the application programs (from google play), if we move from the main activity to the second and then back to the main, then after pressing the "back" button on the phone, the application closes. I tried to make my own applications with two activities, but it did not work as i...
java|android
1
2017-05-30T19:13:47.907Z
2,017
5
19
1
29
1
610
39
2
2
true
false
false
false
false
false
low
44,345,455
Two TimePickers comparison
<p>So I have allowed the user to pick two Dates Start and End time and connected to Notification Method that will check if the Current time is between his choosing. However the comparison doesn't seem to return the correct result. Here are the method inside the <code>BrodcatRecevier</code>: </p> <pre><code> public...
So I have allowed the user to pick two Dates Start and End time and connected to Notification Method that will check if the Current time is between his choosing. However the comparison doesn't seem to return the correct result. Here are the method inside the BrodcatRecevier : [CODE] And Here the Log returns. [CODE]
android|alarmmanager|datetimepicker|android-jobscheduler
1
2017-06-03T15:18:46.677Z
2,017
6
15
5
29
1
316
26
4
2
true
false
false
false
false
false
low
44,370,275
Would final users have to download android app again when app is moved from a Google play account to another?
<p>Suppose you have an android application associated to some account in Google Play. Then, this account's onwer decide to disassociate such app from his/her account. So, I would have to upload (don't know for sure) this app to Google Play again using a new account owner.</p> <p>Would end users have to download app ag...
Suppose you have an android application associated to some account in Google Play. Then, this account's onwer decide to disassociate such app from his/her account. So, I would have to upload (don't know for sure) this app to Google Play again using a new account owner. Would end users have to download app again (from t...
android|google-play
0
2017-06-05T13:37:50.420Z
2,017
6
13
0
29
1
395
109
2
0
false
false
false
false
false
false
zero
44,195,867
Android App stops responding for SQLCipher
<p>I have just changed my database from SQLite to SQLCipher. And my app became unbelievably slow. It takes ages to take click actions. I studied and found out these two possible reasons:</p> <ul> <li><p><strong>Do not repeatedly open and close connections, as key derivation is very expensive, by design. Frequent openi...
I have just changed my database from SQLite to SQLCipher. And my app became unbelievably slow. It takes ages to take click actions. I studied and found out these two possible reasons: Do not repeatedly open and close connections, as key derivation is very expensive, by design. Frequent opening / closing of the database...
android|performance|android-sqlite|android-database|sqlcipher-android
2
2017-05-26T07:21:16.743Z
2,017
5
7
4
285
1
1,104
42
5
0
false
false
false
false
false
false
low
44,017,057
Android Google Maps GeoJsonLayer OnFeatureClickListener, multiple layers
<p>Please look at my code to create layer from geojson string and add layer to map:</p> <pre><code>private GeoJsonLayer createLayerFromGeojson(String json) { JSONObject ob = null; try { ob = new JSONObject(json); } catch (JSONException e) { e...
Please look at my code to create layer from geojson string and add layer to map: [CODE] Next add 2 layers to map: [CODE] Problem: When I click on marker or pologon, always description taken from second json (json2) is displayed, even if I click on object created from first json, on first layer. What's wrong? Any ideas?
android|google-maps|onclick|geojson|layer
3
2017-05-17T06:22:48.417Z
2,017
5
6
2
1,565
1
320
72
5
2
true
false
false
false
false
false
low
43,949,515
Volley Crashing in onResponse When Creating View
<p>This will be brief because I have no clue what the problem is. In my onResponse of a Volley Request I'm creating a TextView. In doing so the application crashes. I can't understand the stack trace because it seems to be 90% assembly (and my assembly knowledge consists of 1s and 0s). Here's a link to the stack (It's ...
This will be brief because I have no clue what the problem is. In my onResponse of a Volley Request I'm creating a TextView. In doing so the application crashes. I can't understand the stack trace because it seems to be 90% assembly (and my assembly knowledge consists of 1s and 0s). Here's a link to the stack (It's abo...
android|request|android-volley
0
2017-05-13T05:22:12.993Z
2,017
5
5
5
30
1
659
48
3
1
true
false
false
false
false
false
zero
43,960,049
Run activity before clicking a button
<p>I would like to implement this with a thread. But I do not know how to start For example when opening a menu and before pressing an option, I run my activity so that, when you click on the option, all the data is already loaded, so that the user can see the data quickly without having to wait, someone could Help me ...
I would like to implement this with a thread. But I do not know how to start For example when opening a menu and before pressing an option, I run my activity so that, when you click on the option, all the data is already loaded, so that the user can see the data quickly without having to wait, someone could Help me wit...
android|multithreading
0
2017-05-14T03:18:03.707Z
2,017
5
3
6
30
1
358
37
2
0
false
false
false
false
false
false
zero
43,990,035
What package or event can I use so that my apk can not uninstall?
<p>What package or event can I use so that my apk can not uninstall or execute an action when it wants to uninstall?</p>
What package or event can I use so that my apk can not uninstall or execute an action when it wants to uninstall?
android|events|action|system|uninstallation
-3
2017-05-15T22:58:12.363Z
2,017
5
22
0
30
1
113
65
5
0
false
false
false
false
false
true
negative
44,087,866
Targeting different screen sizes for Android
<p>How should be the Android manifest.xml for separately targeting the following screen sizes in Google store: 800px*1280px, 600px*1024px, 360px*640px, 320px*530px </p> <p>Thank you. </p>
How should be the Android manifest.xml for separately targeting the following screen sizes in Google store: 800px*1280px, 600px*1024px, 360px*640px, 320px*530px Thank you.
android|screen
-1
2017-05-20T15:46:48.997Z
2,017
5
15
5
30
1
171
44
2
0
false
false
false
false
false
true
negative
44,286,806
Modify layout elements when execute http request
<p>I will explain my problem.</p> <p>I have an activity which retrieves data from a previous activity. When I click on my button, the method invokeSendQuestionChoose()is executed.</p> <p>This method does two actions: send http request on two different ressources.</p> <p>The first resource is /nextquestion. I want to...
I will explain my problem. I have an activity which retrieves data from a previous activity. When I click on my button, the method invokeSendQuestionChoose()is executed. This method does two actions: send http request on two different ressources. The first resource is /nextquestion. I want to refresh my Checkbox and Te...
android|json|http
0
2017-05-31T13:58:08.603Z
2,017
5
13
2
30
1
489
48
3
3
true
false
false
false
false
false
zero
44,370,510
Sound overlapping with multiple button clicks
<pre><code>package com.example.tobiadegoroye.pokemonsoundboard; import android.media.MediaPlayer; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; public class PokemonSoundboard extends AppCompatActivi...
[CODE]
java|android
-1
2017-06-05T13:49:52.300Z
2,017
6
13
0
30
1
6
45
2
1
true
false
false
false
false
true
negative
44,046,492
KML layer doesn't match with map shape in Android Google Maps API
<p>I am developing an android app and I am using <strong>Google Maps Android API</strong> to show a <strong>KML layer</strong> I made with ArcGIS over Spain. I created this layer with ArcGIS by exporting a File Geodatabase Raster Dataset to KML. The spatial reference of the file in ArcGIS was in ED_1950_UTM_Zone_30N (P...
I am developing an android app and I am using Google Maps Android API to show a KML layer I made with ArcGIS over Spain. I created this layer with ArcGIS by exporting a File Geodatabase Raster Dataset to KML. The spatial reference of the file in ArcGIS was in ED_1950_UTM_Zone_30N (Projected Coordinate System) and has t...
android|google-maps-android-api-2|kml
1
2017-05-18T11:27:34.083Z
2,017
5
11
3
542
1
1,278
65
3
2
true
false
false
false
false
false
low
44,234,782
TextInputEditText set hint start animated if edittext is not empty
<p>I wanted to make my hint to not animate if the edit text is empty. If user start typing the hint will move up, but if the edit text is empty, the hint will return into the edit text.</p> <p>I have tried </p> <pre><code>@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { ...
I wanted to make my hint to not animate if the edit text is empty. If user start typing the hint will move up, but if the edit text is empty, the hint will return into the edit text. I have tried [CODE] but the hint does not act like how I wanted it to be.
android-textinputedittext
0
2017-05-29T04:48:23.400Z
2,017
5
4
0
542
1
256
66
1
1
true
false
false
false
false
false
zero
44,163,832
Android Dagger 2 - how to make custom scope be a local singleton
<p>According to tutorials like this <a href="https://frogermcs.github.io/dependency-injection-with-dagger-2-custom-scopes/" rel="nofollow noreferrer">one</a>: in Dagger2 we are able to provide local singleton objects using a custom scope.</p> <p>I already have a global appComponent and my goal is to create a activity s...
According to tutorials like this one : in Dagger2 we are able to provide local singleton objects using a custom scope. I already have a global appComponent and my goal is to create a activity scope that allows a subcomponent to have local singleton providers. My issue is when i create a custom scope and inject my activ...
android|dagger-2
3
2017-05-24T16:24:32.023Z
2,017
5
16
2
1,310
1
1,664
64
2
7
true
false
false
false
false
false
low
44,133,927
How to give persiomission com.sec.android.provider.badge.permission.READ or WRITE in android 6.0
<p>I am trying to show badge on app icon when notification came from server.</p> <p>I am getting this exception:</p> <pre><code>Caused by: java.lang.SecurityException: Permission Denial: opening provider com.sec.android.provider.badge.BadgeProvider from ProcessRecord{ab1124 10588:com.rehq.app/u0a175} (pid=10588, uid=...
I am trying to show badge on app icon when notification came from server. I am getting this exception: [CODE]
android
1
2017-05-23T11:45:04.020Z
2,017
5
11
1
8,222
1
109
96
1
1
true
false
true
false
false
false
low
43,980,738
Service gets killed
<p>I had created one service and started in onCreate() of launcher activity.But when i am comming out of application and then manually changes the time or date,service automatically gets stop and onDestroy() method of service also not called.why this happens?</p>
I had created one service and started in onCreate() of launcher activity.But when i am comming out of application and then manually changes the time or date,service automatically gets stop and onDestroy() method of service also not called.why this happens?
android|service
0
2017-05-15T13:22:12.083Z
2,017
5
13
0
31
1
256
19
2
0
false
false
false
false
false
false
zero
43,985,558
Guideline in ConstrainLayout XML my layout dose not look right can anyone help me fix it
<p>Hi as you can see in the image that i have two Teams and i want them side by side but when i did it thru the Design section in Android studio it came out sloppy they don't look centered and i want also that the buttons should be all the same size.</p> <p>thanks Joe</p> <p><a href="https://i.stack.imgur.com/7klY7.p...
Hi as you can see in the image that i have two Teams and i want them side by side but when i did it thru the Design section in Android studio it came out sloppy they don't look centered and i want also that the buttons should be all the same size. thanks Joe enter image description here this is how it looks [CODE]
android|xml
0
2017-05-15T17:32:41.127Z
2,017
5
17
0
31
1
315
88
2
1
true
false
false
false
false
false
zero
44,029,499
Android - Custom style on Action Bar
<p>is it possible to customize the background (and title) of my action bar in a specific activity? What I have done and it's not working:</p> <pre><code>&lt;style name="AppTheme.BenchTheme"&gt; &lt;!-- style of my activity --&gt; &lt;item name="android:windowBackground"&gt;@android:color/holo_blue_light&lt;/item&g...
is it possible to customize the background (and title) of my action bar in a specific activity? What I have done and it's not working: [CODE] and [CODE] I want to do it in my style.xml. Is it possible? I know I can do it via code (using something like getSupportActionBar().setBackgroundDrawable(myColor);)... Thanks
android
0
2017-05-17T15:48:14.603Z
2,017
5
15
2
31
1
316
36
1
2
true
false
false
false
false
false
zero
44,095,874
My Mediaplayer got stuck after once
<p>There are two buttons in my UI. These two buttons have two audio separately, I have mentioned it as <code>dk1</code> and <code>dk2</code>.</p> <p>What I want:</p> <ol> <li><p>To stop <code>dk1</code> when <code>dk2</code> is pressed</p></li> <li><p>To repeat the procedure all time</p></li> <li><p>I want to create ...
There are two buttons in my UI. These two buttons have two audio separately, I have mentioned it as dk1 and dk2 . What I want: To stop dk1 when dk2 is pressed To repeat the procedure all time I want to create another 6 audio like above dk1 and dk2 The problem: I can't paly like this more than one time. This is my code:...
java|android|audio
0
2017-05-21T10:41:23.977Z
2,017
5
10
6
31
1
327
35
3
1
true
false
false
false
false
false
zero
44,120,420
How can I prevent FrameLayout from shadowing my Views?
<p>My interface looks like this:</p> <p><a href="https://i.stack.imgur.com/KbmDR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KbmDR.png" alt="enter image description here" /></a></p> <p><strong>XML:</strong></p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;FrameL...
My interface looks like this: XML: [CODE] Now, you can see at the bottom there is I am here to... . This is a dropdown and when I choose one of the options, my code dynamically adds a few views to the hierarchy but the problem is they are not visible(not all of them; just I am a... is visible.) I checked the layout hie...
android|android-layout|android-framelayout
0
2017-05-22T19:08:10.520Z
2,017
5
19
0
31
1
812
54
3
1
true
false
false
false
false
false
zero
44,137,289
Android app keeps adding database values that I removed
<p>I am developing an app that uses a RecyclerView, so I made a bunch of dummy objects to add to the RecyclerView so I can see what it looks like when it's full. </p> <p>The problem is, I removed the code, uninstalled the app, then reinstalled it (to clear the database), but the dummy objects keep showing up. If I del...
I am developing an app that uses a RecyclerView, so I made a bunch of dummy objects to add to the RecyclerView so I can see what it looks like when it's full. The problem is, I removed the code, uninstalled the app, then reinstalled it (to clear the database), but the dummy objects keep showing up. If I delete them the...
android|database|sqlite|android-sqlite
0
2017-05-23T14:15:01.290Z
2,017
5
14
1
31
1
578
55
4
1
true
false
false
false
false
false
zero
44,139,326
Multiple substitions specified in non-position format error
<p>I having the error "Multiple substitions specified in non-position format error" for the following string resource:</p> <pre><code>&lt;string name="stCrewmanBlockedEnemy"&gt;The %1$s has blocked the enemy attack! (dice: %2$d + skill: %3d$d) vs (dice: %4$d + skill: %5$d)&lt;/string&gt; </code></pre> <p>However the ...
I having the error "Multiple substitions specified in non-position format error" for the following string resource: [CODE] However the substitutions are in positional format... I know there are other questions in stackoverflow with the same topic but I don't think they answer my question. Any ideas? Edit: I've narrowed...
java|android|xml|string|android-resources
0
2017-05-23T15:38:14.483Z
2,017
5
15
1
31
1
429
59
5
1
true
false
false
false
false
false
zero
44,147,255
Annoying Cordova + android + JSON behavior
<p>I have been far too many hours with this one. I am trying to execute the seemingly simple line of code:</p> <pre><code>$.getJSON(SERVER_URL + '/path/', function(data) {alert(data);}); </code></pre> <p>which works just fine with <code>cordova serve</code>. When I build the Android Apk, that line never gets executed...
I have been far too many hours with this one. I am trying to execute the seemingly simple line of code: [CODE] which works just fine with cordova serve . When I build the Android Apk, that line never gets executed (although everything is in place and I know for sure that the line is reached). There is no request receiv...
android|json|cordova
-1
2017-05-24T00:56:13.317Z
2,017
5
0
2
31
1
575
42
3
1
true
false
false
false
false
true
negative
44,213,956
Selecting multiple images and setting to a gridView
<p>This is probably the worst way to go about this but I'm currently stuck and just going for it. I currently have an Activity where I select multiple images from a GridView from the phone itself. I'm now trying to display it in my MainActivity in another GridView. I've see a lot of people doing this in a LinearLayout ...
This is probably the worst way to go about this but I'm currently stuck and just going for it. I currently have an Activity where I select multiple images from a GridView from the phone itself. I'm now trying to display it in my MainActivity in another GridView. I've see a lot of people doing this in a LinearLayout but...
java|android
0
2017-05-27T06:58:09.740Z
2,017
5
6
5
31
1
574
51
2
2
true
false
false
false
false
false
zero
44,227,512
Data is stored in db but when app is closed and opened fro next time, it displays nothing
<p>I am storing my data in db and displaying in recyclerview using adapter. But once I close the application and open it again the it does not display any data. Db should save my data in recyclerview, sholudn't it?</p>
I am storing my data in db and displaying in recyclerview using adapter. But once I close the application and open it again the it does not display any data. Db should save my data in recyclerview, sholudn't it?
android|android-sqlite
-2
2017-05-28T12:50:42.050Z
2,017
5
12
6
31
1
211
89
2
0
false
false
false
false
false
true
negative
44,294,455
Connecting a server to my android app
<p>I am creating an android app in android studios that allows for users within a group (i.e. classroom, work environment etc...) to anonomously make suggestions to improve the environment or whatever it may be. I want it to be like a log such as Twitter or Instagram where it keeps the currently submitted suggestions. ...
I am creating an android app in android studios that allows for users within a group (i.e. classroom, work environment etc...) to anonomously make suggestions to improve the environment or whatever it may be. I want it to be like a log such as Twitter or Instagram where it keeps the currently submitted suggestions. I a...
java|android|mobile|server
-3
2017-05-31T20:51:54.483Z
2,017
5
20
2
31
1
683
37
4
0
false
false
false
false
false
true
negative
44,371,159
Unable to get the list in the fragments (Android Studio)
<p>Why I am unable to get listview in the fragment. I have created the list along with the items. I have added items but unable to understand this. Please help me out to understand it. I have copied it and edited it.</p> <p>Here's my code:</p> <pre><code>public class NewsFragment extends Fragment { private ListView m...
Why I am unable to get listview in the fragment. I have created the list along with the items. I have added items but unable to understand this. Please help me out to understand it. I have copied it and edited it. Here's my code: [CODE] Any suggestions?
android|android-studio|android-fragments
0
2017-06-05T14:23:01.817Z
2,017
6
14
0
31
1
253
56
3
1
true
false
false
false
false
false
zero
44,271,644
Using getShortClassName() method in Android
<p>I'm trying to modify an application to use the getShortClassName() method instead of displaying the full class name (e.g. "com.google.app.MainActivity" to simply ".MainActivity"). The current setup gives me no errors but doesn't display the text.</p> <p>I presume the solution is not complicated, although I just don...
I'm trying to modify an application to use the getShortClassName() method instead of displaying the full class name (e.g. "com.google.app.MainActivity" to simply ".MainActivity"). The current setup gives me no errors but doesn't display the text. I presume the solution is not complicated, although I just don't have the...
java|android|class|android-activity
0
2017-05-30T20:46:36.250Z
2,017
5
20
1
287
1
368
43
4
2
true
false
false
false
false
false
zero
44,341,772
How to pause and resume AsyncTask or change order of Asynctask execution in android?
<p>I am using Asynctask to get data from the net. When the application starts it refreshes data from the internet. I now included an option to autocomplete when "adding new things" which retrieves matching strings from internet. The problem is when "adding new things" the matching string is not fetched instantaneously ...
I am using Asynctask to get data from the net. When the application starts it refreshes data from the internet. I now included an option to autocomplete when "adding new things" which retrieves matching strings from internet. The problem is when "adding new things" the matching string is not fetched instantaneously whe...
android|multithreading|android-asynctask
0
2017-06-03T07:58:33.077Z
2,017
6
7
5
287
1
639
84
3
0
false
false
false
false
false
false
zero
44,313,664
Pinterest Sharing From Android App using Intent
<p>Pinterest Sharing From Android App using Intent is not working,Can somebody help me on this?</p> <pre><code>Uri bmpUri = Uri.fromFile(imageFileToShare) shareIntent.setAction(Intent.ACTION_SEND); shareIntent.putExtra("com.pinterest.EXTRA_DESCRIPTION", "Messagessssssssss"); shareIntent.putExtra(Intent.EXTRA_STREAM, b...
Pinterest Sharing From Android App using Intent is not working,Can somebody help me on this? [CODE]
android|android-intent|pinterest
0
2017-06-01T17:24:22.010Z
2,017
6
17
3
543
1
99
47
3
1
true
false
false
false
false
false
zero
44,072,287
Android. Animation on gravity change
<p>I have a FrameLayout within another one. It is aligned to the center.</p> <p>No I want to align it to top by changing it gravity, but I also want to animate this change.</p> <p>I already found this answer here <a href="https://stackoverflow.com/a/33192335/408780">https://stackoverflow.com/a/33192335/408780</a>, bu...
I have a FrameLayout within another one. It is aligned to the center. No I want to align it to top by changing it gravity, but I also want to animate this change. I already found this answer here https://stackoverflow.com/a/33192335/408780 , but LayoutTransition.CHANGING using there needs API 16. Our app's however minS...
android|android-animation
1
2017-05-19T14:11:50.807Z
2,017
5
14
4
2,335
1
404
36
2
1
true
false
false
false
false
false
low
43,982,027
RecycleView not calling methods
<p>I'm trying to fetch data from a JSON, but it doesn't seem to work. OnBindViewHolder is never called...</p> <p>ADAPTER CODE:</p> <pre><code>public class AdapterRallye extends RecyclerView.Adapter&lt;AdapterRallye.MyViewHolder&gt; implements View.OnClickListener { private Context context; private View.OnClic...
I'm trying to fetch data from a JSON, but it doesn't seem to work. OnBindViewHolder is never called... ADAPTER CODE: [CODE] FRAGMENT CODE: [CODE] I've seen other StackOverflow posts where the problem is already solved, but I've been trying alot of the solutions the user said, but none is working... Thanks!
android
0
2017-05-15T14:26:38.497Z
2,017
5
14
0
32
1
307
31
1
2
true
false
false
false
false
false
zero
44,073,038
cardView with textView disables swiping between tabs
<p>I have a cardView / recylerView within a tabbed layout. When attempting to swipe between tabs nothing happens but if I remove the textView I can now swipe again.</p> <p>How can I send touch events to the card to bypass the textView.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xml...
I have a cardView / recylerView within a tabbed layout. When attempting to swipe between tabs nothing happens but if I remove the textView I can now swipe again. How can I send touch events to the card to bypass the textView. [CODE]
java|android|android-recyclerview|android-cardview
0
2017-05-19T14:47:05.587Z
2,017
5
14
4
32
1
232
52
4
1
true
false
false
false
false
false
zero
44,119,271
Is there more efficient way to randomize and then combine 3 subsets of data with an even distribution?
<p>I made a simple app for my local writing group that "randomly" splits the group in half in order to decide if they are in the orange room or the blue room. What I have works, and the number of people is never more than 20, but I know it's a brute force method that wouldn't hold up for very large numbers.</p> <p>I'v...
I made a simple app for my local writing group that "randomly" splits the group in half in order to decide if they are in the orange room or the blue room. What I have works, and the number of people is never more than 20, but I know it's a brute force method that wouldn't hold up for very large numbers. I've tried to ...
java|android|algorithm
0
2017-05-22T17:58:53.193Z
2,017
5
17
0
32
1
1,373
102
3
2
true
false
false
false
false
false
zero
44,146,331
What purpose does logging serve in Android Studio?
<p>I understand how to create logs but to not understand what they are for. I see that they are like comments in your code expect they show up in run-time. Why would I create a log instead of a comment? What were they created to do?</p>
I understand how to create logs but to not understand what they are for. I see that they are like comments in your code expect they show up in run-time. Why would I create a log instead of a comment? What were they created to do?
android|android-studio
1
2017-05-23T22:55:59.333Z
2,017
5
22
1
32
1
229
50
2
0
false
false
false
false
false
false
low
44,214,083
when view that not display complete,set it gone
<p>There is a horizontal LinearLayout ,there are some TextView int he LinearLayout. some TextView is Gone or Visibile depends on data <br/> The text in the TextView is not fixed. when text is too long. it will show partial. <br/> some TextView is Gone or Visibile depends on data <br/> For example <br/></p> <pre><code>...
There is a horizontal LinearLayout ,there are some TextView int he LinearLayout. some TextView is Gone or Visibile depends on data The text in the TextView is not fixed. when text is too long. it will show partial. some TextView is Gone or Visibile depends on data For example [CODE] so hide the 3st TextView and the 4st...
android|android-layout
0
2017-05-27T07:15:44.400Z
2,017
5
7
5
32
1
529
47
2
1
true
false
false
false
false
false
zero
44,289,386
Why all markers show up in the map after entering a query?
<p>I am working on an Android Map application. It usually works fine when I enter a query but sometimes all markers show up unexpectedly.</p> <p>What correction(s) do I need to make to my code?</p> <p>This is my code:</p> <pre><code>mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { priva...
I am working on an Android Map application. It usually works fine when I enter a query but sometimes all markers show up unexpectedly. What correction(s) do I need to make to my code? This is my code: [CODE]
java|android|google-maps
-2
2017-05-31T15:52:57.433Z
2,017
5
15
2
32
1
207
58
3
1
true
false
false
false
false
true
negative
44,322,531
how to handle activities laucher using android
<p>Well, I have 3 pages, Login, Splash and MainActivity, so if the user is not Logged it has to rise the Login Page after the Splash, so inside of my Splash I check with the Realm Database if a field is filled and if it has it means that the user is already logged, but if is not, rises the Login Page and works fine, bu...
Well, I have 3 pages, Login, Splash and MainActivity, so if the user is not Logged it has to rise the Login Page after the Splash, so inside of my Splash I check with the Realm Database if a field is filled and if it has it means that the user is already logged, but if is not, rises the Login Page and works fine, but i...
android
0
2017-06-02T06:49:32.453Z
2,017
6
6
4
32
1
561
46
1
1
true
false
false
false
false
false
zero
44,335,935
How to have background images without swiping becoming unbearable?
<p>I have 4 fragments that look like this:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/hg_nahrung" a...
I have 4 fragments that look like this: [CODE] I assigned a background image to each as in android:background="@drawable/hg_nahrung" , android:background="@drawable/hg_aufnahme" etc. What was a quick swipe before is now choppy. But the images are just 720 x 1280(the resolution of my device). How to have background imag...
android|performance
0
2017-06-02T19:13:05.220Z
2,017
6
19
4
32
1
522
66
2
1
true
false
false
false
false
false
zero
44,048,081
How to change endpoint for Android Speech Language Understanding (LUIS) SDK?
<p>I have set up an app on both luis.ai and eu.luis.ai.</p> <p>I am using this for speech recognition purposes using the SDK provided in this repository: <a href="https://github.com/Azure-Samples/Cognitive-Speech-STT-Android" rel="nofollow noreferrer">https://github.com/Azure-Samples/Cognitive-Speech-STT-Android</a> I...
I have set up an app on both luis.ai and eu.luis.ai. I am using this for speech recognition purposes using the SDK provided in this repository: https://github.com/Azure-Samples/Cognitive-Speech-STT-Android It has the possibility to use LUIS combined with speech recognition directly, and that is exactly what I need. It ...
android|speech-recognition|speech-to-text|microsoft-cognitive
0
2017-05-18T12:41:55.930Z
2,017
5
12
3
288
1
613
76
4
0
false
false
false
false
false
false
zero
44,047,441
Xamarin Android GC get stuck
<p>My application hang after some repeated user actions. At the beginning I see GC output:</p> <pre><code>05-18 14:48:05.599 I/art ( 2985): Explicit concurrent mark sweep GC freed 25278(1141KB) AllocSpace objects, 0(0B) LOS objects, 21% free, 14MB/18MB, paused 610us total 23.887ms 05-18 14:48:05.606 D/Mono ( 2...
My application hang after some repeated user actions. At the beginning I see GC output: [CODE] After some time, the application hangs and I see a lot of such lines in the log: [CODE] It's seems that GC try to free resources but can't. What objects are trying to destroy? Can someone explain to me what's going on?
xamarin|garbage-collection|xamarin.android
0
2017-05-18T12:12:36.930Z
2,017
5
12
3
544
1
313
28
3
2
true
false
false
false
false
false
zero
44,210,652
how to view source of native methods in Android Studio
<p>I am in Android Studio diving into the source code of Android. As I dig deeper, I get to a method of the form, say, <code>native_setup(name, nameIsType, encoder);</code>. When I click through, all I get is </p> <pre><code>private native final void native_setup( @NonNull String name, boolean nameIsType, bool...
I am in Android Studio diving into the source code of Android. As I dig deeper, I get to a method of the form, say, native_setup(name, nameIsType, encoder); . When I click through, all I get is [CODE] I want to see the source of that native method right from inside Android Studio. How might I do that?
android|android-studio|sdk|android-ndk
0
2017-05-26T21:59:53.107Z
2,017
5
21
4
544
1
302
54
4
1
true
false
false
false
false
false
zero
44,248,342
how to display image upon clicking the button and slide the image option by swiping in the particular direction in android studio?
<p>I have created a float button in Android Studio</p> <p><a href="https://i.stack.imgur.com/ACucH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ACucH.png" alt="enter image description here"></a></p> <p>After I click the image, the add floating button should be disabled and the 3 images should be...
I have created a float button in Android Studio After I click the image, the add floating button should be disabled and the 3 images should be displayed. One images have to selected from the images displayed horizontally just like in the image below. If i have to select the image in the right then i have to the right t...
android|image|swipe|slide|floating
0
2017-05-29T18:11:47.077Z
2,017
5
18
0
544
1
489
130
5
0
false
false
false
false
false
false
zero
44,321,181
best way to maintain a socket connection when an app goes to the background
<p>I need to persist a socket connection when my android app goes to background.</p> <p>Currently, the socket is started, read and written from its own thread. I also store a reference to this thread in a static instance of a class which means i have access to the thread's reference when my app is resumed.</p> <p>I a...
I need to persist a socket connection when my android app goes to background. Currently, the socket is started, read and written from its own thread. I also store a reference to this thread in a static instance of a class which means i have access to the thread's reference when my app is resumed. I also don't need this...
java|android|android-service
0
2017-06-02T05:06:36.280Z
2,017
6
5
4
544
1
827
75
3
0
false
false
false
false
false
false
zero
44,127,747
How to populate a Listview in xamarin android c# using REST API, custom listview, adapter, row layout
<p>I have very limited know how of programming in general. Trying to create a custom list view to display an image and a message mainly. </p> <p>Ive been trying to follow tutorials on how to do it and cannot for the life of me work out how to make it work .. </p> <p>currently have these errors and have no idea how to...
I have very limited know how of programming in general. Trying to create a custom list view to display an image and a message mainly. Ive been trying to follow tutorials on how to do it and cannot for the life of me work out how to make it work .. currently have these errors and have no idea how to fix: [![msgInbox scr...
c#|android|listview|xamarin|android-arrayadapter
0
2017-05-23T06:54:53.233Z
2,017
5
6
1
800
1
455
101
5
3
true
false
false
false
false
false
zero
44,041,982
Android SSLHandShakeException: Handschake failed on Android 6.0.1
<p>Since a week when doing a request, I get this SSLHandschakeException. Have been searching the internet, found nothing to solve the problem. The code used to work, and stopped working wihout a change. The SSL certificate is valid, it works in the browser, also on the Android device. But not in the app.</p> <p>I run ...
Since a week when doing a request, I get this SSLHandschakeException. Have been searching the internet, found nothing to solve the problem. The code used to work, and stopped working wihout a change. The SSL certificate is valid, it works in the browser, also on the Android device. But not in the app. I run the app on ...
android|ssl|sslhandshakeexception
3
2017-05-18T08:05:17.627Z
2,017
5
8
3
2,080
1
563
65
3
1
true
false
false
false
false
false
low
44,023,646
Android Device Administrator / Profile owner
<p>I'm trying to know how Device Administrator and Profile Owner works. I followed some examples from google website, but I still do not quite know how profile owner works.</p> <p>To test this, I've built a sample app which will ask the user to accept the Profile Owner and then will install a certificate without user ...
I'm trying to know how Device Administrator and Profile Owner works. I followed some examples from google website, but I still do not quite know how profile owner works. To test this, I've built a sample app which will ask the user to accept the Profile Owner and then will install a certificate without user interaction...
android|certificate|device-admin|profile-owner
5
2017-05-17T11:31:23.277Z
2,017
5
11
2
4,640
1
1,117
44
4
3
true
false
true
false
false
false
low
43,967,279
How to put an value to the extracting JSON and display it
<p>I wanna display a parsed json with my values . I mean , I wanna add some values to the json and display it . I can display all result from respond , but I wanna display just the json with my values not all data :)</p> <p>here i have parsed allready my json</p> <p>JSONObject jsonObject = new JSONObject(adresUrl);<...
I wanna display a parsed json with my values . I mean , I wanna add some values to the json and display it . I can display all result from respond , but I wanna display just the json with my values not all data :) here i have parsed allready my json JSONObject jsonObject = new JSONObject(adresUrl); [CODE] // here is a ...
java|android|json|parsing
0
2017-05-14T18:08:59.343Z
2,017
5
18
6
33
1
376
57
4
2
true
false
false
false
false
false
zero
43,996,016
create an global overlap view for android application
<p>We need a in-app notification bar. Anytime when the App receive a push-notification and no matter which activity is in front, notification bar need to be shown and float at the top of the activity. it's semitransparent, and if customize click it, it disappears.</p> <p>It seems Android doesn't have a Window Frame(li...
We need a in-app notification bar. Anytime when the App receive a push-notification and no matter which activity is in front, notification bar need to be shown and float at the top of the activity. it's semitransparent, and if customize click it, it disappears. It seems Android doesn't have a Window Frame(like IOS or W...
android
0
2017-05-16T08:19:08.823Z
2,017
5
8
1
33
1
644
53
1
0
false
false
false
false
false
false
zero