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,348,612
recyclerview not working in fragment
<p>I have a tabed activity , im trying make a recyclerview in activity's fragment , when i Declarate recyclerview in oncreate in runtime gives below error:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.daneshhamrah.konkuri/com.daneshhamrah.konkuri.Soalate_Konkur}: java.lang.Null...
I have a tabed activity , im trying make a recyclerview in activity's fragment , when i Declarate recyclerview in oncreate in runtime gives below error: [CODE] and when i Declarate recyclerview in oncreateview in runtime gives below error: [CODE] this error is for recyclerview items layout how can i sove this problem ?...
android|layout|android-recyclerview|fragment
0
2017-06-03T21:14:59.947Z
2,017
6
21
5
781
1
444
36
4
5
true
false
false
false
false
false
zero
44,182,926
Error converting bytecode to dex: Cause: java.util.zip.ZipException: invalid stored block lengths
<p>After updating my Android SDK suddenly i am getting the above error , any one facing this? i am using NDK also in my app which is working an hour back before upgrading Android studio and SDK.</p>
After updating my Android SDK suddenly i am getting the above error , any one facing this? i am using NDK also in my app which is working an hour back before upgrading Android studio and SDK.
android|android-ndk
0
2017-05-25T14:22:10.067Z
2,017
5
14
3
1,037
1
191
97
2
0
false
false
false
false
false
false
zero
44,236,738
Adding Multiple Databases to a Single android app
<p>I am currently trying to add a second firebase Real Time Database to my application. I am following this tutorial from the Firebase blog which is exactly what I want. I am currently connected to the other Database. However I am unable to create a reference </p> <p>eg: mRef = FirebaseDatabase.getInstance().getRefer...
I am currently trying to add a second firebase Real Time Database to my application. I am following this tutorial from the Firebase blog which is exactly what I want. I am currently connected to the other Database. However I am unable to create a reference eg: mRef = FirebaseDatabase.getInstance().getReference(); I am ...
android|firebase|firebase-realtime-database
2
2017-05-29T07:23:20.833Z
2,017
5
7
0
1,037
1
728
49
3
1
true
false
false
false
false
false
low
44,019,186
Android - Bluetooth LE can't find any device
<p>I would like to use the Bluetooth Low Energy (BLE) technology to make connection between two supported <strong>phones</strong> (currently I would like to use it with only Android phones, iOS support is possible in the future). The client which starts the connection should be an Android device with API level 19 (KitK...
I would like to use the Bluetooth Low Energy (BLE) technology to make connection between two supported phones (currently I would like to use it with only Android phones, iOS support is possible in the future). The client which starts the connection should be an Android device with API level 19 (KitKat) or above. I've r...
android|bluetooth-lowenergy|android-bluetooth|android-version
1
2017-05-17T08:15:41.653Z
2,017
5
8
2
1,805
1
2,684
44
4
3
true
false
false
false
false
false
low
44,121,515
Webview not showing any content(html) react native
<p>Contents did showing up perfectly inside emulator and debug with real device but does not showing anything when testing out with real device <em>(using released .apk)</em>. It just only showed blank container with white color. Or do i missed something?</p> <pre><code>&lt;WebView ref={(wView) =&gt; {this.wView ...
Contents did showing up perfectly inside emulator and debug with real device but does not showing anything when testing out with real device (using released .apk) . It just only showed blank container with white color. Or do i missed something? [CODE] Environment react-native-cli: 2.0.1 react-native: 0.43.4 react: 16.0...
android|webview|react-native
2
2017-05-22T20:21:18.920Z
2,017
5
20
0
2,829
1
373
50
3
1
true
false
true
false
false
false
low
44,115,630
is Android module dependency increase apk size
<p>I have an android app separated into several modules.</p> <p>It is traveling app but it will be for different clients.</p> <p>with every client may I need to change only hotel or car screen, colors or images.</p> <p>so I make every part of the app as library modules.</p> <p>for example:</p> <p>App Module</p> <...
I have an android app separated into several modules. It is traveling app but it will be for different clients. with every client may I need to change only hotel or car screen, colors or images. so I make every part of the app as library modules. for example: App Module Config Module >> like base URLs, colors, facebook...
android
0
2017-05-22T14:34:07.370Z
2,017
5
14
0
270
1
699
46
1
0
false
false
false
false
false
false
zero
44,013,865
Given a realpath show it into an ImageView. (Using Glide Library)
<p>I'm trying to do this with Glide library but it doesn't work, and I don't know what to do.</p> <p>When I use this Intent, Glide works fine and load the selected image.</p> <pre><code>Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI); startActivityForResult(gallery,PICK_P...
I'm trying to do this with Glide library but it doesn't work, and I don't know what to do. When I use this Intent, Glide works fine and load the selected image. [CODE] I load the image here. [CODE] The code above works fine. But when I give the realpath nothing happens. This is my image path. [CODE] I'm using this very...
android|android-recyclerview|android-glide
0
2017-05-17T01:03:11.653Z
2,017
5
1
2
526
1
713
65
3
7
true
false
false
false
false
false
zero
44,347,562
Swiftkey ignores TextInputEditText flag InputType.TYPE_TEXT_FLAG_CAP_WORDS - doesn't capitalize
<p>I have a simple TextInputLayout. TextInputEditText which is inside TextInputLayout has two InputType flags - </p> <pre><code>InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS </code></pre> <p>and</p> <pre><code>InputType.TYPE_TEXT_FLAG_CAP_WORDS </code></pre> <p>These flags are set programmatically. It should disable sug...
I have a simple TextInputLayout. TextInputEditText which is inside TextInputLayout has two InputType flags - [CODE] and [CODE] These flags are set programmatically. It should disable suggestions and capitalize each single word which you write. It works without problem on default Android keyboard. Unfortunately, if you ...
android|android-layout|android-edittext|android-textinputlayout|swift-keyboard
2
2017-06-03T19:00:36.550Z
2,017
6
19
5
526
1
544
95
5
2
true
false
false
false
false
false
low
44,313,747
OpenThread Border Router on Android Thing device
<p>I am starting to develop for Android Things and I was wondering if it was possible to implement OpenThread Border Router on a Raspberry PI 3B with Android Things flashed into it. </p> <p><a href="https://github.com/openthread/openthread" rel="nofollow noreferrer">https://github.com/openthread/openthread</a> <a hre...
I am starting to develop for Android Things and I was wondering if it was possible to implement OpenThread Border Router on a Raspberry PI 3B with Android Things flashed into it. https://github.com/openthread/openthread https://github.com/openthread/borderrouter "A Border Router connects a Thread network to networks at...
android-things|openthread
0
2017-06-01T17:29:33.167Z
2,017
6
17
3
782
1
522
48
2
0
false
false
false
false
false
false
zero
44,326,254
Is there any use case example where @RequiresApi is more useful than @TargetApi
<p>to suppress API level warning, I usually prefer to use <code>@RequiresApi</code>, than <code>@TargetApi</code>.</p> <p>As, <code>@RequresApi</code> seems newer and better than <code>@TargetApi</code>, according to <a href="https://stackoverflow.com/questions/40007365/requiresapi-vs-targetapi-android-annotations">Re...
to suppress API level warning, I usually prefer to use @RequiresApi , than @TargetApi . As, @RequresApi seems newer and better than @TargetApi , according to RequiresApi vs TargetApi android annotations But, is there any real use case, where we can solve using @RequiresApi , but not using @TargetApi ?
android
5
2017-06-02T10:05:34.680Z
2,017
6
10
4
782
1
302
79
1
0
false
false
false
false
false
false
low
44,277,602
How to download only the Android SDK?
<p>I have Android Studio installed. Just cleared 3GB Junk memory. So, I want to install full SDK(including All the tools, emulator and not just command line tools as given in "How do I download the Android SDK without downloading Android Studio?") Can I download SDK on mobile and then transfer it to Computer due to som...
I have Android Studio installed. Just cleared 3GB Junk memory. So, I want to install full SDK(including All the tools, emulator and not just command line tools as given in "How do I download the Android SDK without downloading Android Studio?") Can I download SDK on mobile and then transfer it to Computer due to some I...
android|android-studio|sdk
0
2017-05-31T06:49:57.613Z
2,017
5
6
2
1,294
1
365
37
3
0
false
false
false
false
false
false
zero
44,353,714
Search filter in listview for array of strings with android SearchView
<p>I need to filter my list items via getFilter method, In my Model class, I have an array variable named <code>genre</code>.</p> <p>This genre sometimes is one word, and sometimes more than one separated with <code>,</code> . For example like:</p> <p><strong><em>android, iPhone, blackberry</em></strong>.</p> <p>Now...
I need to filter my list items via getFilter method, In my Model class, I have an array variable named genre . This genre sometimes is one word, and sometimes more than one separated with , . For example like: android, iPhone, blackberry . Now in my code when I try to search in my list for an item, it will only search ...
android|listview|filter|searchview|android-search
0
2017-06-04T11:47:07.310Z
2,017
6
11
6
1,294
1
739
70
5
1
true
false
false
false
false
false
zero
44,127,950
Android Things and Bluetooth Gatt Client (Central)
<p>I've not done a lot of Android development and at best I'm a n00b!</p> <p>I'm looking at using "Android Things" on a RPi3 to connect to a sensor tag via BTLE. The tag is already configured and holds some data, it's running as a GATT Server and is the peripheral. I have a Advertising service UUID I can scan for and ...
I've not done a lot of Android development and at best I'm a n00b! I'm looking at using "Android Things" on a RPi3 to connect to a sensor tag via BTLE. The tag is already configured and holds some data, it's running as a GATT Server and is the peripheral. I have a Advertising service UUID I can scan for and connect to ...
android|bluetooth|bluetooth-lowenergy|iot|android-things
0
2017-05-23T07:07:12.657Z
2,017
5
7
1
1,806
1
1,333
50
5
0
false
false
false
false
false
false
zero
43,941,441
How to send informations from a fragment to another hosting different TabbedActivites
<p>I have a TabbedActivity (OngletCours) with 3 tabs. Each tab has a listView and when I click on it, an AlertDialog opens. One of the options is to go to another TabbedActivity(OngletJalonNotes) that has 2 tabs.</p> <p>I use database in my app. I want to be able to create some 'Jalon'depending on the item I clicked o...
I have a TabbedActivity (OngletCours) with 3 tabs. Each tab has a listView and when I click on it, an AlertDialog opens. One of the options is to go to another TabbedActivity(OngletJalonNotes) that has 2 tabs. I use database in my app. I want to be able to create some 'Jalon'depending on the item I clicked on in the fi...
android|android-fragments|fragmentmanager
0
2017-05-12T15:29:45.957Z
2,017
5
15
4
15
1
1,016
85
3
2
true
false
false
false
false
false
zero
44,223,113
No network on android studio emulator when target nougat with arm
<p>Testing my app on android studio emulator, app needs to connect to network.<br> It works fine below Android 7.0, both x86 and arm.<br> But if I run it on Android 7.0 or 7.1.1, it only works on x86.<br> Seems there's no network on Android 7.0 or 7.1.1 with arm.<br> And when I open the chrome, trying www.google.com,It...
Testing my app on android studio emulator, app needs to connect to network. It works fine below Android 7.0, both x86 and arm. But if I run it on Android 7.0 or 7.1.1, it only works on x86. Seems there's no network on Android 7.0 or 7.1.1 with arm. And when I open the chrome, trying www.google.com,It failed. Anyone can...
android|android-studio|networking|arm|emulation
1
2017-05-28T01:51:16.997Z
2,017
5
1
6
271
1
326
65
5
0
false
false
false
false
false
false
low
44,363,686
How to use a DialogFragment to return either true or false?
<p>I have a password dialog class that ask password when ever they want to delete something or add. What i want is that can reuse this dialog again and again.<br> Heres my password dialog class looks like<br></p> <pre><code>public static class myPasswordDialog extends DialogFragment { @NonNull @Overri...
I have a password dialog class that ask password when ever they want to delete something or add. What i want is that can reuse this dialog again and again. Heres my password dialog class looks like [CODE] and this is how I call my password class [CODE] What I have in mind is that the fragment will return a boolean if t...
java|android|android-fragments
2
2017-06-05T07:20:33.853Z
2,017
6
7
0
271
1
390
59
3
2
true
false
false
false
false
false
low
44,032,096
android progress bar not showing
<p>ok so what am i missing here? i am trying to start a circular progress bar in a button press and stop it after methods finish the progress bar does not display at all or displays only when tasks are finished weird because it seems in other tutorials i am doing right.</p> <pre><code>public class contacts extends App...
ok so what am i missing here? i am trying to start a circular progress bar in a button press and stop it after methods finish the progress bar does not display at all or displays only when tasks are finished weird because it seems in other tutorials i am doing right. [CODE] xml file [CODE]
android|android-progressbar
0
2017-05-17T18:12:16.153Z
2,017
5
18
2
1,551
1
290
32
2
2
true
false
false
false
false
false
zero
44,363,530
Difference between autoRemoveFromRecents and excludeFromRecents
<p>I have gone through android docs but unable to get clear idea about these tags? When should I use <code>autoRemoveFromRecents</code> and <code>excludeFromRecents</code>? </p>
I have gone through android docs but unable to get clear idea about these tags? When should I use autoRemoveFromRecents and excludeFromRecents ?
android|android-manifest
10
2017-06-05T07:10:30.097Z
2,017
6
7
0
3,343
1
144
63
2
0
false
false
true
false
true
false
medium
44,009,543
Need information on saving imagery for native iOS and Droid apps
<p>First, I'm a UI/UX Designer so be patient with me please :)</p> <p>I designed a new app. The app will only be viewed in portrait mode. My image area at the top of the page is fixed at 280px tall, but the image will always fill the width of the screen.</p> <p>What I'm trying to avoid is scaling the image for each s...
First, I'm a UI/UX Designer so be patient with me please :) I designed a new app. The app will only be viewed in portrait mode. My image area at the top of the page is fixed at 280px tall, but the image will always fill the width of the screen. What I'm trying to avoid is scaling the image for each size. I want to crop...
android|ios|user-interface
0
2017-05-16T19:01:48.423Z
2,017
5
19
1
16
1
1,096
64
3
0
false
false
false
false
false
false
zero
43,932,519
How to use private app in Google Play?
<p>For the last two days I'm stuck with publishing my private app... Steps i did:</p> <ol> <li>Registered <code>GSuite</code> in my company domain.</li> <li>Checked thousand of options by instructions from <code>Google Support</code></li> <li>Registered <code>Google Play Developer Account</code> in my company domain.<...
For the last two days I'm stuck with publishing my private app... Steps i did: Registered GSuite in my company domain. Checked thousand of options by instructions from Google Support Registered Google Play Developer Account in my company domain. Published the app (also check the box to allow to use app only from my org...
android|google-play|google-workspace
-1
2017-05-12T08:03:06.350Z
2,017
5
8
4
784
1
919
38
3
0
false
false
false
false
false
true
negative
44,010,240
How to "listen" for customtabsintent url?
<p>I'm currently using xamarin.forms and xamarin.auth to authenticate users. I am able to launch URL with CustomTabsIntent, however I am unable to figure out how to "listen" for the redirect URL. after user logs in, it just sits on the redirectURL page in the Custom Tab</p> <p>How can I switch back to my android appli...
I'm currently using xamarin.forms and xamarin.auth to authenticate users. I am able to launch URL with CustomTabsIntent, however I am unable to figure out how to "listen" for the redirect URL. after user logs in, it just sits on the redirectURL page in the Custom Tab How can I switch back to my android application when...
android|xamarin.forms|android-authenticator
0
2017-05-16T19:42:02.887Z
2,017
5
19
1
784
1
369
41
3
0
false
false
false
false
false
false
zero
44,096,809
Starting new activity on navigation drawer item click
<p>I'm trying to make a navigation drawer that opens a new activity when the user taps an item.</p> <p>There is 5 items in my drawer and I want each of them to open a different activity.</p> <p>I don't know how to do this?</p> <p>My code is the following</p> <pre><code>public class TabView extends AppCompatActivity...
I'm trying to make a navigation drawer that opens a new activity when the user taps an item. There is 5 items in my drawer and I want each of them to open a different activity. I don't know how to do this? My code is the following [CODE]
android|navigation-drawer
0
2017-05-21T12:23:21.250Z
2,017
5
12
6
1,296
1
237
53
2
1
true
false
false
false
false
false
zero
44,108,848
Undefined error when trying to stop webView loading in react-native
<p>After looking through the react-native docs and various answers on here, I can see:</p> <pre><code>this.refs[WEBVIEW_REF].stopLoading(); </code></pre> <p>is used to stop the webView from continuing to load.</p> <p>I've tried this but always get an:</p> <pre><code>undefined is not an object (evaluating 'this.refs...
After looking through the react-native docs and various answers on here, I can see: [CODE] is used to stop the webView from continuing to load. I've tried this but always get an: [CODE] My code is as follows and I'm trying to stop the app from loading the help page and launch in a browser rather than the app. [CODE] An...
javascript|android|webview|react-native
0
2017-05-22T09:05:29.590Z
2,017
5
9
0
2,576
1
381
67
4
3
true
false
false
false
false
false
zero
44,319,789
How to use HttpURLConnection to make oauth2 request
<p>I am trying to make a practise using HttpURLConnection to make a Oauth2 request on Android Studio. However, when I tried my code on bluestacks, the app crashed, and I didn't find the error. Can anyone help me with this?</p> <p>Here is my code:</p> <pre><code>package com.example.administrator.practise; import andr...
I am trying to make a practise using HttpURLConnection to make a Oauth2 request on Android Studio. However, when I tried my code on bluestacks, the app crashed, and I didn't find the error. Can anyone help me with this? Here is my code: [CODE]
android|android-studio|oauth-2.0|httpurlconnection
1
2017-06-02T02:14:19.733Z
2,017
6
2
4
2,832
1
243
51
4
1
true
false
true
false
false
false
low
44,027,714
DllNotFoundException on Android
<p>I'm trying to load shared libraries in Unity. It works on Windows/Editor but not on Android, whatever I do or use for libraries I always get the DllNotFoundException.</p> <p>I am using lib.so files, those are for 32BIT ARM EABIS, so the cross platform compilation seems to succeed.</p> <p>my lib.so files are in the...
I'm trying to load shared libraries in Unity. It works on Windows/Editor but not on Android, whatever I do or use for libraries I always get the DllNotFoundException. I am using lib.so files, those are for 32BIT ARM EABIS, so the cross platform compilation seems to succeed. my lib.so files are in the Assets/Plugins/And...
android|unity3d
2
2017-05-17T14:28:51.777Z
2,017
5
14
2
6,160
1
1,147
31
2
1
true
false
true
false
false
false
low
43,995,701
Can i combine bootstrapToggle with http.get?
<p>I have want make some toggle in android and i used bootstrapToggle and i don't know how to combine with http.get. I try used toggle like this in my html</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js...
I have want make some toggle in android and i used bootstrapToggle and i don't know how to combine with http.get. I try used toggle like this in my html [CODE] [CODE]
android|jquery
1
2017-05-16T08:02:46.840Z
2,017
5
8
1
17
1
166
44
2
2
true
false
false
false
false
false
low
44,097,023
java.lang.ClassCastException android
<p>I need to do two recyclerViews with sections in my android app. The first one works well, but the second one shows such error</p> <pre><code> java.lang.ClassCastException: com.example.battlefield.WaysRecyclerViewAdapter.WaysItemViewHolder cannot be cast to com.example.battlefield.WaysRecyclerViewAdapter.WaysHeaderV...
I need to do two recyclerViews with sections in my android app. The first one works well, but the second one shows such error [CODE] I separated viewHolders for sectionHeaders and items of recyclerView. There are my classes WaysItemViewHolder: [CODE] WaysHeaderViewHolder: [CODE] And recyclerViewAdapter: [CODE] For maki...
java|android|sectionedrecyclerviewadapter
0
2017-05-21T12:45:49.297Z
2,017
5
12
6
273
1
456
36
3
4
true
false
false
false
false
false
zero
44,346,248
Android Studio List from API
<p>I'm pretty new to Android Studio and I've gone through most of the BigNerdRanch's guide on it. I've done some research but I can't seem to find a method of taking the information from an <a href="http://api.aladhan.com/timingsByCity?city=Dubai&amp;country=AE&amp;method=2" rel="nofollow noreferrer">API</a> and then p...
I'm pretty new to Android Studio and I've gone through most of the BigNerdRanch's guide on it. I've done some research but I can't seem to find a method of taking the information from an API and then proceeding to list the information. Also, how would could I sort through the info from the API to find object such as ti...
android|list|api
-1
2017-06-03T16:39:55.837Z
2,017
6
16
5
273
1
341
28
3
0
false
false
false
false
false
true
negative
43,987,913
setMinHeight and setMaxHeight in android custom view
<p>Hi I want to set android custom buttons' setMinHeight and setMaxHeight</p> <p>I have android button widget in the Library project and user of SDK(library project) can take use of that custom Button but I want to put restriction that button's Minimum size has to be <strong>200dp</strong> and button's maximum height ...
Hi I want to set android custom buttons' setMinHeight and setMaxHeight I have android button widget in the Library project and user of SDK(library project) can take use of that custom Button but I want to put restriction that button's Minimum size has to be 200dp and button's maximum height can not exceed 350dp how do ...
android|android-layout
1
2017-05-15T20:05:44.713Z
2,017
5
20
0
529
1
721
52
2
2
true
false
false
false
false
false
low
44,044,294
Running Genymotion in the cloud - EC2 Instance
<p>I am looking to test my application on an android device but also need to be able to install things like <code>nodejs</code>, <code>mongo</code>, <code>ruby</code> to name but a few. Basically my application sends data to an endpoint (mongo) and then i assert that they are there with some cucumber tests.</p> <p>So ...
I am looking to test my application on an android device but also need to be able to install things like nodejs , mongo , ruby to name but a few. Basically my application sends data to an endpoint (mongo) and then i assert that they are there with some cucumber tests. So i have come across Genymotion On Demand which lo...
android|amazon-ec2|virtual-machine|amazon|genymotion
0
2017-05-18T09:46:13.220Z
2,017
5
9
3
785
1
606
46
5
0
false
false
false
false
false
false
zero
44,037,808
Custom view FloatingActionButton has setOnTouchListener called on it but does not override performClick
<p>I am very confused by the warning I get because I am not using a custom class, I am simply using a Floating Action Button. Does anyone have an idea of how to solve this issue? </p> <p>" Custom view <code>FloatingActionButton</code> has <code>setOnTouchListener</code> called on it but does not override <code>perform...
I am very confused by the warning I get because I am not using a custom class, I am simply using a Floating Action Button. Does anyone have an idea of how to solve this issue? " Custom view FloatingActionButton has setOnTouchListener called on it but does not override performClick " [CODE] relevant XML for the FAB. [CO...
android|floating-action-button
1
2017-05-18T02:50:57.890Z
2,017
5
2
3
1,809
1
575
103
2
2
true
false
false
false
false
false
low
44,356,302
generate automatically getter and setter in Android Studio
<p>When I programmed with Android Studio, it seems to me that is a way to generate automatically the getter and the setter of my new java class.</p> <p>Can anyone tell me how to do it?</p>
When I programmed with Android Studio, it seems to me that is a way to generate automatically the getter and the setter of my new java class. Can anyone tell me how to do it?
android-studio|auto-generate
3
2017-06-04T16:33:35.147Z
2,017
6
16
6
2,321
1
174
58
2
0
false
false
false
false
false
false
low
44,119,309
How do I loop through my data in firebase database?
<p>This is my JSON data structure in Firebase database: </p> <pre><code>familylist |- 0 |--children | |-- 0:"FGH" | |-- 1:"HJU" |-- code: "2222" |-- family: "SWE" |-- fatherName: "ABC" |-- motherName: "XYZ" </code></pre> <p>The problem is I have to loop through my entire loop. Hence I...
This is my JSON data structure in Firebase database: [CODE] The problem is I have to loop through my entire loop. Hence I can't hard code the database reference value to 0,1,.. etc every time I check a condition whether the user's entered code matched with this code field. For example: [CODE] I'm able to get a single v...
android|firebase|firebase-realtime-database
0
2017-05-22T18:01:29.650Z
2,017
5
18
0
2,833
1
496
51
3
3
true
false
true
false
false
false
zero
43,948,088
How to work with placing drawable images with appropriate sizes
<p>Hello there are many articles for this question but non explain them correctly. Can somebody clearly explain me about size of image should be? and how are they to be made or xxhdpi hdpi and all? Please give me example appropriately. And everything so that it helps other people o this community</p>
Hello there are many articles for this question but non explain them correctly. Can somebody clearly explain me about size of image should be? and how are they to be made or xxhdpi hdpi and all? Please give me example appropriately. And everything so that it helps other people o this community
android
0
2017-05-13T00:30:52.037Z
2,017
5
0
5
18
1
294
63
1
0
false
false
false
false
false
false
zero
44,092,116
Find a String for an Intent in another Activity in Android Studio
<p>a have this brief problem:</p> <p><a href="https://i.stack.imgur.com/qZMm2.png" rel="nofollow noreferrer">The definition of the String is here</a></p> <p><a href="https://i.stack.imgur.com/R15pb.png" rel="nofollow noreferrer">Here, the String isn't reconized</a></p> <p>Why isn't it reconized? it says "Can't resol...
a have this brief problem: The definition of the String is here Here, the String isn't reconized Why isn't it reconized? it says "Can't resolve symbol "EXTRA_MESSAGE" " Thanks you if you help me, and please excuse my bad english, i'm actually french
java|android|xml|string|android-intent
0
2017-05-21T00:39:31.157Z
2,017
5
0
6
18
1
249
65
5
0
false
false
false
false
false
false
zero
44,003,467
Where are the Yahoo's current security standards for third party email clients
<p>What/Where are the current security standards to make an email client that allows yahoo mails to be retrieved without enabling access to less secure apps setting on Yahoo account.</p> <p>The line below from this <a href="https://help.yahoo.com/kb/mail-for-desktop/apps-outdated-security-require-grant-access-yahoo-ma...
What/Where are the current security standards to make an email client that allows yahoo mails to be retrieved without enabling access to less secure apps setting on Yahoo account. The line below from this link says, Make sure that your third party (non-Yahoo) email programs use current security standards. But there is ...
android|jakarta-mail|yahoo-mail
0
2017-05-16T13:54:15.147Z
2,017
5
13
1
274
1
575
78
3
0
false
false
false
false
false
false
zero
44,066,052
Android Unit Testing result List<List<Model>> instead of List<Model>
<p>I have tried to unit testing by <a href="https://medium.com/upday-devs/android-architecture-patterns-part-3-model-view-viewmodel-e7eeee76b73b" rel="nofollow noreferrer">https://medium.com/upday-devs/android-architecture-patterns-part-3-model-view-viewmodel-e7eeee76b73b</a>. Why does Testsubscriber give List of List...
I have tried to unit testing by https://medium.com/upday-devs/android-architecture-patterns-part-3-model-view-viewmodel-e7eeee76b73b . Why does Testsubscriber give List of ListModel result instead of ListModel ? my test [CODE] in MainViewModel [CODE] in DataModel [CODE]
android|unit-testing|observable|rx-android
0
2017-05-19T09:15:56.793Z
2,017
5
9
4
274
1
270
68
4
3
true
false
false
false
false
false
zero
43,961,519
Read Firebase Data Once With ValueEventListener
<p>Within my app I often have the need to read data once. I originally started by using the addListenerForSingleValueEvent() method for this, however I ran into problems using this method as it does not work as I wanted when offline capabilities are enabled (see here the issue: <a href="https://stackoverflow.com/quest...
Within my app I often have the need to read data once. I originally started by using the addListenerForSingleValueEvent() method for this, however I ran into problems using this method as it does not work as I wanted when offline capabilities are enabled (see here the issue: Firebase Offline Capabilities and addListene...
android|firebase|firebase-realtime-database
0
2017-05-14T07:40:36.913Z
2,017
5
7
6
530
1
987
47
3
2
true
false
false
false
false
false
zero
44,301,086
Mapbox clustering on Android
<p>I wanted to add clusters to the mapbox map. I followed available documentation and after some time I stacked with that:</p> <pre><code>List&lt;Feature&gt; markerCoordinates = new ArrayList&lt;&gt;(); Log.v(LOG_TAG, "all advertiesrs retrieved"); for(Elem e: result) { markerCo...
I wanted to add clusters to the mapbox map. I followed available documentation and after some time I stacked with that: [CODE] Problem is that, that I need add different icon markers for different unclustered points. For now I am able to only add one common icon marker_1 . I cannot figure out how to create some "groups...
android|mapbox
2
2017-06-01T07:24:25.200Z
2,017
6
7
3
786
1
393
28
2
1
true
false
false
false
false
false
low
44,001,284
How to get event notification on orientation change from Landscape Left to LandScape Right?
<p>I have an <code>Activity</code> which override <code>public void onConfigurationChanged(Configuration newConfig)</code> method. It receive event when user change orientation from landscape to portrait or from portrait to landscape . But don't show any event when i change orientation Landscape Right to Landscape Left...
I have an Activity which override public void onConfigurationChanged(Configuration newConfig) method. It receive event when user change orientation from landscape to portrait or from portrait to landscape . But don't show any event when i change orientation Landscape Right to Landscape Left or Landscape Left to Landsca...
android|orientation|screen-rotation|onconfigurationchanged
0
2017-05-16T12:18:55.337Z
2,017
5
12
1
1,042
1
411
91
4
0
false
false
false
false
false
false
zero
44,210,708
Xamarin Maps Pins Invisible
<p>I have a very strange issue where the map pins do not show up on the map.</p> <p>I am using Xamarin.Forms.Maps</p> <p>I am setting up a map with </p> <pre><code> map = new CustomMap( MapSpan.FromCenterAndRadius( new Position(37, -122), Distance.FromMiles(0.3)), this) ...
I have a very strange issue where the map pins do not show up on the map. I am using Xamarin.Forms.Maps I am setting up a map with [CODE] Then I create an absolute layout and add map to it and set the absoluteLayout to be the content [CODE] I also add an initial pin to the map [CODE] However, in the app I can see the m...
google-maps|xamarin|xamarin.forms|maps|google-maps-android-api-2
0
2017-05-26T22:04:52.200Z
2,017
5
22
4
1,042
1
586
27
5
3
true
false
false
false
false
false
zero
44,347,638
Android Studio: I can not run/debug my project after cloning it from my repository
<p>My HD died two days ago, luckily my android app is versioned on Bitbucket. So I got an SSD, reinstalled Windows 10 and the latest Android Studio. With Android Studio installed, I've cloned the project of my app through the 'Checkout project from Version Control' option in the welcome window of Android Studio. The pr...
My HD died two days ago, luckily my android app is versioned on Bitbucket. So I got an SSD, reinstalled Windows 10 and the latest Android Studio. With Android Studio installed, I've cloned the project of my app through the 'Checkout project from Version Control' option in the welcome window of Android Studio. The proje...
android|android-studio|android-gradle-plugin
0
2017-06-03T19:09:18.730Z
2,017
6
19
5
1,298
1
913
82
3
0
false
false
false
false
false
false
zero
44,352,272
How to ensure a file exists on assets folder at build time?
<p>I have a JSON file <code>db_seed.json</code> that I want to use as a seed to pre-populate local database in my Android application. This JSON file is dynamically generated from another data source and quite big in size, so I don't want to include this in version control. </p> <p>However, each time I build the appli...
I have a JSON file db_seed.json that I want to use as a seed to pre-populate local database in my Android application. This JSON file is dynamically generated from another data source and quite big in size, so I don't want to include this in version control. However, each time I build the application, I want to make su...
android|android-studio|gradle
2
2017-06-04T08:45:41.930Z
2,017
6
8
6
1,554
1
555
59
3
0
false
false
false
false
false
false
low
44,118,112
Getting Uncaught TypeError while calling Titanium.Filesystem.getSeperator on Android
<p>Was trying to use the function <code>Titanium.Filesystem.getSeperator</code> on Appcelerator and it works well on ios. However on Android we got the following error:</p> <pre><code>[ERROR] V8Exception: Exception occurred at /scripts.js:1: Uncaught TypeError: Titanium.Filesystem.getSeperator is not a function </code...
Was trying to use the function Titanium.Filesystem.getSeperator on Appcelerator and it works well on ios. However on Android we got the following error: [CODE] Anyone has any idea? Tried to google but nothing..
android|appcelerator|appcelerator-titanium
0
2017-05-22T16:42:30.103Z
2,017
5
16
0
19
1
210
84
3
1
true
false
false
false
false
false
zero
44,142,996
How do i adjust the margin of an imageView according to it's shape?
<p>I have a imageView like this: <a href="https://i.stack.imgur.com/eTH9h.png" rel="nofollow noreferrer">Primary Image</a></p> <p>I want a this imageView margin like this: <a href="https://i.stack.imgur.com/pUJJf.jpg" rel="nofollow noreferrer">Desired Image</a></p> <p>Can this be possible? </p>
I have a imageView like this: Primary Image I want a this imageView margin like this: Desired Image Can this be possible?
android
0
2017-05-23T18:58:58.317Z
2,017
5
18
1
19
1
121
67
1
0
false
false
false
false
false
false
zero
44,274,352
To import MS Band packages, what else do I have to do other than typing 'import' statement in .java?
<p>I want to make my app connect to MS Band, get some data from it, and save the data in form of SQLite. Using the sample file given, I gathered the data I want; but I need to implement this in the actual app.</p> <p>Referencing <a href="https://developer.microsoftband.com/content/docs/microsoft%20band%20sdk.pdf" rel=...
I want to make my app connect to MS Band, get some data from it, and save the data in form of SQLite. Using the sample file given, I gathered the data I want; but I need to implement this in the actual app. Referencing https://developer.microsoftband.com/content/docs/microsoft%20band%20sdk.pdf , I put the following sta...
java|android|package
0
2017-05-31T01:46:15.577Z
2,017
5
1
2
19
1
550
100
3
2
true
false
false
false
false
false
zero
43,996,268
How to change text color on the current tab in ActionBar xamarin android?
<p>I am new in Xamarin, and I try to change the color on my selected tab in a ActionBar like this ?</p> <p><a href="https://i.stack.imgur.com/mjOr5.png" rel="nofollow noreferrer">Example</a></p> <p>Just the text color and underline but not the background?</p> <p>Thanks a lot</p>
I am new in Xamarin, and I try to change the color on my selected tab in a ActionBar like this ? Example Just the text color and underline but not the background? Thanks a lot
android|xamarin|tabs|android-actionbar
0
2017-05-16T08:32:18.333Z
2,017
5
8
1
275
1
175
73
4
0
false
false
false
false
false
false
zero
44,303,757
Change summary text color of dialogpreference with preference V7
<p>How can we change the text color of summary of preference. right now, its taking textcolorsecondary by default which is white color. but i dont want to use it. i want to use other color. because i need textcolorsecondary for overflow and back icon color.</p> <p>you can see below image where summary text not showing...
How can we change the text color of summary of preference. right now, its taking textcolorsecondary by default which is white color. but i dont want to use it. i want to use other color. because i need textcolorsecondary for overflow and back icon color. you can see below image where summary text not showing because of...
android|android-preferences
0
2017-06-01T09:31:10.547Z
2,017
6
9
3
275
1
333
64
2
0
false
false
false
false
false
false
zero
44,197,199
Default String value in number picker
<p>i m using a number picker to show string values. in case when no value get from adapter then default value is shown "0". i want my number picker to be String default value when adapter not set any value.. </p> <pre><code>&lt;NumberPicker android:id="@+id/sub_category" android:layout_width="match_par...
i m using a number picker to show string values. in case when no value get from adapter then default value is shown "0". i want my number picker to be String default value when adapter not set any value.. [CODE]
android
-1
2017-05-26T08:40:23Z
-1
-1
-1
-1
531
1
211
37
1
1
true
false
false
false
false
true
negative
44,314,415
Set Alarm to Repeat only 3 Times
<p>I am using the AlarmManager.setRepeating (int type, long triggerAtMillis, long intervalMillis, PendingIntent operation) Method in order to set a repeating Alarm. Meanwhile, I would like to set the Alarm to repeat only 3 times, and not indefinitely as this Method does. How could I achieve this?</p>
I am using the AlarmManager.setRepeating (int type, long triggerAtMillis, long intervalMillis, PendingIntent operation) Method in order to set a repeating Alarm. Meanwhile, I would like to set the Alarm to repeat only 3 times, and not indefinitely as this Method does. How could I achieve this?
android
0
2017-06-01T18:13:05.900Z
2,017
6
18
3
787
1
294
32
1
0
false
false
false
false
false
false
zero
44,080,686
How to serialize a view object in android
<p>I have a view object that needs to be serialized to store in a database, and then retrieved later</p> <pre><code>public class MachineView extends View implements Serializable { String name; int age; public MachineView(String name, int age, Context context) { super(context); this.name ...
I have a view object that needs to be serialized to store in a database, and then retrieved later [CODE] The only problem is that the methods I am using to serialize objects only work for simple objects( i.e. objects that can be condensed to key value pairs ) below are serialize and read object methods: [CODE] It seems...
java|android
1
2017-05-20T00:29:37.610Z
2,017
5
0
5
1,043
1
423
41
2
2
true
false
false
false
false
false
low
44,296,481
Android: Draw A "Mouse Cursor" on a canvas. onHoverListener
<p>I got on Hover listening to my usb mouse (using an android development board). I want to use the hover listener to create an artificial mouse cursor on the canvas, by drawing a shape (lets say a circle) and refreshing location of it while I hover my mouse on canvas. My problem is the old circle drawings remain on th...
I got on Hover listening to my usb mouse (using an android development board). I want to use the hover listener to create an artificial mouse cursor on the canvas, by drawing a shape (lets say a circle) and refreshing location of it while I hover my mouse on canvas. My problem is the old circle drawings remain on the c...
android|canvas|hover|cursor|draw
0
2017-06-01T00:06:54.010Z
2,017
6
0
3
1,043
1
668
59
5
1
true
false
false
false
false
false
zero
43,945,841
Hit the api when edittext is populated with date android
<p>i am working in a project in which i will be using a edittext which opens up a DatepickerDialog on clicking it.</p> <p>My requirement is i have hit the api once the date gets populated in the edittext. How to achieve this?</p> <p>The code i used</p> <pre><code>public bool_editTextToDate=false; editText_toDate.se...
i am working in a project in which i will be using a edittext which opens up a DatepickerDialog on clicking it. My requirement is i have hit the api once the date gets populated in the edittext. How to achieve this? The code i used [CODE] I have played like this.Can i have to use onFocusChangeListener to acheive this?
android
0
2017-05-12T20:16:46.307Z
2,017
5
20
4
20
1
319
56
1
1
true
false
false
false
false
false
zero
43,969,858
Does match_parent make it same as parent, or just fill remaining space?
<p>Just to clarify some misconception. </p> <p>But is Android's <code>match_parent</code> property making the target view just filling the rest of the parent's available space, </p> <p>or is it literally "matching parent" regardless of whether or not doing so will overflow the screen</p>
Just to clarify some misconception. But is Android's match_parent property making the target view just filling the rest of the parent's available space, or is it literally "matching parent" regardless of whether or not doing so will overflow the screen
android|android-layout
0
2017-05-14T23:47:39.460Z
2,017
5
23
6
20
1
252
71
2
0
false
false
false
false
false
false
zero
44,247,143
Which view object should I pass to a function with a View object as parameter from menu?
<p>This is my function to which I should call to </p> <pre><code>public void myLocation (View v){ MyMapSettings(MY_LOCATION); showMyAddressOnMap(); drawGeofencesAround(MY_LOCATION, false); } </code></pre> <p>I am calling the above function from here :</p> <pre><code>@Override public b...
This is my function to which I should call to [CODE] I am calling the above function from here : [CODE] I want to know what kind of view should I pass to the function I am calling ?
android|function|view|menu
1
2017-05-29T16:43:13.127Z
2,017
5
16
0
20
1
181
88
4
2
true
false
false
false
false
false
low
44,273,744
What is the best place for SQLite default entires?
<p>I am creating (in android studio) an app which has a couple basic tables. One will be a bunch of exercises (pull ups, push ups ect) and I would like to put a ton of common ones into the table by default. </p> <p>Where in my code would be the logical place to do that? I have made a databaseHelper class which extends...
I am creating (in android studio) an app which has a couple basic tables. One will be a bunch of exercises (pull ups, push ups ect) and I would like to put a ton of common ones into the table by default. Where in my code would be the logical place to do that? I have made a databaseHelper class which extends SQLiteOpenH...
android|sqlite|database-design
0
2017-05-31T00:06:32.790Z
2,017
5
0
2
20
1
465
50
3
0
false
false
false
false
false
false
zero
44,308,840
Unable to set Admob Banner in Bottom
<p>I am trying to set my admob banner on bottom of the screen but it's not showing. I have tried all possible way to set it as bottom but I am unable to set it...its going down side of expandable list view.</p> <p>My XML is like below...let me know if someone can help me to sort out issue.</p> <p><div class="snippet"...
I am trying to set my admob banner on bottom of the screen but it's not showing. I have tried all possible way to set it as bottom but I am unable to set it...its going down side of expandable list view. My XML is like below...let me know if someone can help me to sort out issue. [CODE] Let me know what is wrong in thi...
java|android|android-layout
-1
2017-06-01T13:26:43.697Z
2,017
6
13
3
20
1
332
36
3
1
true
false
false
false
false
true
negative
44,203,858
Run gifImageView on Android Studio project
<p>I recently downloaded a gif image to insert it into my new Android Studio project. After downloading I copied the .gif file into the drawable folder. I called it "image". In the section "Text" of the activity_main layout I wrote this :</p> <pre><code>&lt;ImageView android:id="@+id/imageView" android...
I recently downloaded a gif image to insert it into my new Android Studio project. After downloading I copied the .gif file into the drawable folder. I called it "image". In the section "Text" of the activity_main layout I wrote this : [CODE] In apparence there aren't problems... But when I start my app the gif doesn't...
android|android-studio|imageview|gif
1
2017-05-26T14:16:34.427Z
2,017
5
14
4
532
1
440
42
4
1
true
false
false
false
false
false
low
44,309,354
How to pick single and multiple images from gallery?
<p>I want to pick single and multiple images from gallery, I have tried below code</p> <pre><code>Intent intent = new Intent(); intent.setType("image/*"); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setAction(Intent.ACTION_GET_CONTENT); </code></pre> <p>but it allows only multi...
I want to pick single and multiple images from gallery, I have tried below code [CODE] but it allows only multiple images, I can't select single one. I want pick single as well as multiple images.
android|image|image-gallery
1
2017-06-01T13:47:54.080Z
2,017
6
13
3
532
1
196
52
3
1
true
false
false
false
false
false
low
43,955,446
Layout as selector item in Android
<p>I need to use text view as <code>CheckBox</code> background and set different color for each state. Some how I managed to get it with Java. But I don't think it is the proper way. Is there any other method to achieve this?</p>
I need to use text view as CheckBox background and set different color for each state. Some how I managed to get it with Java. But I don't think it is the proper way. Is there any other method to achieve this?
android|android-layout
0
2017-05-13T16:30:40.913Z
2,017
5
16
5
21
1
209
34
2
0
false
false
false
false
false
false
zero
44,180,487
Concerns about keystore's password used to sign app
<p>We are about to release our app to production but there is one problem. I have signed the apk for closed beta testing with a relatively easy to remember password and now I have to use the same password to production.</p> <p>I initially thought that when we release to production I have to sign the apk with another p...
We are about to release our app to production but there is one problem. I have signed the apk for closed beta testing with a relatively easy to remember password and now I have to use the same password to production. I initially thought that when we release to production I have to sign the apk with another password/key...
android|google-play
1
2017-05-25T12:22:20.153Z
2,017
5
12
3
21
1
566
51
2
0
false
false
false
false
false
false
low
44,197,437
"add widget" button starts app instead of updating widget
<p>I have a widget with configure activity.</p> <p>When app is not launched and i'm adding widget through widgets menu - "add widget" button works fine.</p> <p>When app is launched, but tabbed (can be found in launched apps in square button menu) add button calls MainActivity.</p> <p>Here is the code of add button c...
I have a widget with configure activity. When app is not launched and i'm adding widget through widgets menu - "add widget" button works fine. When app is launched, but tabbed (can be found in launched apps in square button menu) add button calls MainActivity. Here is the code of add button click: [CODE]
android|widget
0
2017-05-26T08:53:04.777Z
2,017
5
8
4
21
1
305
57
2
1
true
false
false
false
false
false
zero
44,229,202
Why is the subsequent result from my mysql table not creating a new object in my listview?
<p>I wanted to create a listview (simpleadapter) of each entry from my table in my database onto a new activity. But after compiling the code below, I was only able to get back the first entry.</p> <p>I tried to play around by changing <code>int i = 0</code> to see if I can get the 2nd entry (which I was able to), and...
I wanted to create a listview (simpleadapter) of each entry from my table in my database onto a new activity. But after compiling the code below, I was only able to get back the first entry. I tried to play around by changing int i = 0 to see if I can get the 2nd entry (which I was able to), and tried changing response...
php|android|mysql|listview|android-volley
0
2017-05-28T15:49:24.347Z
2,017
5
15
6
21
1
592
90
5
2
true
false
false
false
false
false
zero
44,295,817
How to display a gridview consisting of rows having varying number of items
<p>I want to display a grid view using recyclerview which displays items in the following format: First row contains one item. Second row contains two items. Third row contains one item. Fourth row contains two items. The format repeats afterwards. A solution will be highly appreciated. :)</p>
I want to display a grid view using recyclerview which displays items in the following format: First row contains one item. Second row contains two items. Third row contains one item. Fourth row contains two items. The format repeats afterwards. A solution will be highly appreciated. :)
android|xml
0
2017-05-31T22:44:56.230Z
2,017
5
22
2
21
1
287
75
2
0
false
false
false
false
false
false
zero
44,072,353
Where can I find AndroidViewClient documentation?
<p>Is there any documentation on AndroidViewClient covering public classes, methods, and syntax? </p>
Is there any documentation on AndroidViewClient covering public classes, methods, and syntax?
automated-tests|androidviewclient
0
2017-05-19T14:15:11.797Z
2,017
5
14
4
277
1
93
49
2
0
false
false
false
false
false
false
zero
44,137,129
Kotlin generic casting to a more specific subclass
<p>So I'm trying to mess with Kotlin and I have an old java MVP framework with sort of poor generics in java where we had to cast a generic interface to a more specific one, like <code>public &lt;P extends BaseContract.Presenter&gt; P getPresenter()</code></p> <p>Which we would cast in a subclass as</p> <pre><code>@...
So I'm trying to mess with Kotlin and I have an old java MVP framework with sort of poor generics in java where we had to cast a generic interface to a more specific one, like public <P extends BaseContract.Presenter> P getPresenter() Which we would cast in a subclass as [CODE] In Kotlin I'm going for this: [CODE] Is t...
java|android|generics|kotlin|mvp
1
2017-05-23T14:08:13.200Z
2,017
5
14
1
789
1
393
50
5
2
true
false
false
false
false
false
low
44,287,420
How to set android:networkSecurityConfig only to single flavor
<p>We deliver release apk build from a specific <code>flavor</code>(<code>QA</code>) to our QA team.</p> <p>I would like to add <code>networkSecurityConfig</code> only to that <code>flavor</code>. </p> <p>In order to do that I need to add next config to the manifest.</p> <pre><code> &lt;application android:networ...
We deliver release apk build from a specific flavor ( QA ) to our QA team. I would like to add networkSecurityConfig only to that flavor . In order to do that I need to add next config to the manifest. [CODE] Is that possible to add such config only to QA gradle flavor ? Preventing answers about <debug-overrides> it wi...
android|gradle|android-gradle-plugin
5
2017-05-31T14:25:36.810Z
2,017
5
14
2
2,069
1
374
62
3
1
true
false
false
false
false
false
low
43,941,759
Android: Locate cursor in multi-textbox from java code
<p>Image related to the Problem: <a href="https://i.stack.imgur.com/MSvsT.png" rel="nofollow noreferrer">Multi-Textboxes</a></p> <p>Situation:There are two textboxes. There is one 'Speak Now' imageButton. Whenever I touch 'Speak Now' button, I wish my text would be written to the textbox where cursor is blinking.</p> ...
Image related to the Problem: Multi-Textboxes Situation:There are two textboxes. There is one 'Speak Now' imageButton. Whenever I touch 'Speak Now' button, I wish my text would be written to the textbox where cursor is blinking. I did this easily for one textbox since I didn't have to locate the cursor blink: [CODE] Bu...
java|android
0
2017-05-12T15:47:12.380Z
2,017
5
15
4
22
1
513
54
2
2
true
false
false
false
false
false
zero
44,212,466
How to modify AndroidSlidingUpPanel.java in Android Studio
<p>I am experiencing an issue with AndroidSlidingUpPanel and RecyclerView. Scrolling through the recyclerview is very glitchy and only works if I move my finger slowly. I have found this tutorial online which addresses this issue:</p> <p><a href="http://blog.naman-dwivedi.in/slidinguppanel-recyclerview" rel="nofollow ...
I am experiencing an issue with AndroidSlidingUpPanel and RecyclerView. Scrolling through the recyclerview is very glitchy and only works if I move my finger slowly. I have found this tutorial online which addresses this issue: http://blog.naman-dwivedi.in/slidinguppanel-recyclerview One of the things that this tutoria...
java|android
0
2017-05-27T02:50:46.350Z
2,017
5
2
5
22
1
637
58
2
0
false
false
false
false
false
false
zero
44,270,569
How do I return something (ArrayList to be precise) from an AsynTask class in Android?
<p>So I have a Fragment <code>x.java</code> and an AsyncTask Class BackgroundDataExtractor (As two separate java files). The fragment class contains this piece of code:</p> <pre><code>BackgroundDataExtractor backgroundWorker = new BackgroundDataExtractor(getActivity(),items); backgroundWorker.execute(name); </code></p...
So I have a Fragment x.java and an AsyncTask Class BackgroundDataExtractor (As two separate java files). The fragment class contains this piece of code: [CODE] Where the variable items is a global ArrayList<CustomClass> defined in class x . I want the BackgroundDataExtractor class to add/update elements to items (which...
android|android-asynctask|global-variables
0
2017-05-30T19:37:15.707Z
2,017
5
19
1
22
1
482
86
3
2
true
false
false
false
false
false
zero
44,313,083
What to replace "this" in subclass methods with, when extracting them to an abstract superclass?
<p>I have two Android activities A and B, which have a lot of methods in common. These methods use <code>this</code> in their method implementations. I am now abstracting these activities into an abstract superclass which extends <code>Activity</code>. </p> <p>Should I leave the <code>this</code> as it is in the super...
I have two Android activities A and B, which have a lot of methods in common. These methods use this in their method implementations. I am now abstracting these activities into an abstract superclass which extends Activity . Should I leave the this as it is in the superclass's methods or do I need to change it to somet...
android|abstract-class|subclass|superclass
1
2017-06-01T16:47:10.307Z
2,017
6
16
3
22
1
485
96
4
0
false
false
false
false
false
false
low
44,076,171
Android Gradle multiple flavor dimensions and different sourceSets
<p>I have multiple flavor dimensions and depending on combination chosen there should be different library assembled inside APK. Is it possible to make this generic so that I don't have to create sections inside sourceSets for every flavor combination (like devLocalDebug is one of those sections)? In other words I woul...
I have multiple flavor dimensions and depending on combination chosen there should be different library assembled inside APK. Is it possible to make this generic so that I don't have to create sections inside sourceSets for every flavor combination (like devLocalDebug is one of those sections)? In other words I would l...
android|gradle
0
2017-05-19T17:51:06.287Z
2,017
5
17
4
534
1
383
66
2
1
true
false
false
false
false
false
zero
44,109,189
Android forgets/resets default launcher when default launcher crashes
<p>We are developing a kiosk application that will be hosting an Android WebView. This kiosk application is installed on a Android tablet as default launcher so when the tablet starts up the kiosk application immediately takes control and uses screen pinning to lock the user out of the "normal" android OS. However one ...
We are developing a kiosk application that will be hosting an Android WebView. This kiosk application is installed on a Android tablet as default launcher so when the tablet starts up the kiosk application immediately takes control and uses screen pinning to lock the user out of the "normal" android OS. However one of ...
java|android|android-launcher|kiosk-mode
0
2017-05-22T09:19:57.067Z
2,017
5
9
0
534
1
856
69
4
0
false
false
false
false
false
false
zero
44,270,971
Android Architecture component LiveData - how to bind broadcastReceivers to lifecycle
<p>Using Android <a href="https://developer.android.com/reference/android/arch/lifecycle/LiveData.html" rel="noreferrer">LiveData</a> I'd like to be able to unregister and register many <code>BroadcastReceiver</code>s in the <code>onInactive()</code> and <code>onActive()</code> call backs. So I want to do something lik...
Using Android LiveData I'd like to be able to unregister and register many BroadcastReceiver s in the onInactive() and onActive() call backs. So I want to do something like this: [CODE] I was thinking this could be a design pattern to be clean up of code instead of relaying on onDestroy . What are your thoughts on usin...
android|android-architecture-components|android-livedata
5
2017-05-30T20:05:00.450Z
2,017
5
20
1
3,606
1
377
85
3
1
true
false
true
false
false
false
low
44,077,317
Get reference to ~30 EditTexts/SeekBars and give them individual listeners
<p>I'm pretty new to android development and I currently have a simple swipe-tablayout with 5 fragments, each of the fragments has a vertical LinearLayout with about ~20-30 horizontal LinearLayouts with a TextView, (SeekBar) and EditText/Switch.</p> <p>Layoutsnippet:</p> <pre><code> &lt;LinearLayout android:or...
I'm pretty new to android development and I currently have a simple swipe-tablayout with 5 fragments, each of the fragments has a vertical LinearLayout with about ~20-30 horizontal LinearLayouts with a TextView, (SeekBar) and EditText/Switch. Layoutsnippet: [CODE] Is there any way thats less tedious than doing "findVie...
android
0
2017-05-19T19:04:30.860Z
2,017
5
19
4
23
1
666
74
1
2
true
false
false
false
false
false
zero
44,116,905
Android gather info from http link before opening browser
<p>I have an HTTP link in my layout: <code>&lt;string name="contact_us"&gt;Please &lt;a href="mailto:SERVICES@some.com"&gt;email services&lt;/a&gt; or call &lt;a href="tel:4399999999"&gt;(408) 888-5555&lt;/a&gt; for questions.&lt;/string&gt;</code></p> <p>And in my activity:</p> <pre><code>disclaimer = (TextView) vie...
I have an HTTP link in my layout: <string name="contact_us">Please <a href="mailto:SERVICES@some.com">email services</a> or call <a href="tel:4399999999">(408) 888-5555</a> for questions.</string> And in my activity: [CODE] This works by opening a browser or the dial. But now I want to track some statistics before open...
java|android|http|hyperlink|listener
1
2017-05-22T15:36:24.783Z
2,017
5
15
0
23
1
390
57
5
1
true
false
false
false
false
false
low
44,215,515
couple questions for a server
<p>I have a theoretical question I'm hoping you can help me with.</p> <p>Alright I have a home based server 300 down/30 up Internet (the best I can get where I am at). I have a static IP and Permission from my IP to host my said server.</p> <p>Alright everything's in place right? No, well maybe.</p> <p>Being my serv...
I have a theoretical question I'm hoping you can help me with. Alright I have a home based server 300 down/30 up Internet (the best I can get where I am at). I have a static IP and Permission from my IP to host my said server. Alright everything's in place right? No, well maybe. Being my server isn't top of the line I ...
php|android|mysql
-4
2017-05-27T10:05:31.583Z
2,017
5
10
5
23
1
2,906
29
3
0
false
false
false
false
false
true
negative
44,244,072
Create a bookmark in master/detail flow
<p>I made a simple master/detail app, populated my fragments with different data, created my layouts and everything works fine. What is the best way to add a "bookmark" button that will store whatever fragment you tapped the button on, to be recalled in, for example, another list view with only the bookmarked fragments...
I made a simple master/detail app, populated my fragments with different data, created my layouts and everything works fine. What is the best way to add a "bookmark" button that will store whatever fragment you tapped the button on, to be recalled in, for example, another list view with only the bookmarked fragments ac...
android|android-fragments
-1
2017-05-29T13:45:51.647Z
2,017
5
13
0
23
1
329
39
2
0
false
false
false
false
false
true
negative
44,255,487
Php script not processing data that it is receiving from android
<p>I'm trying to pass parameters to my php script. The data gets passed but always returns "success" as 0. I tested the php by echoing the query after passing values, it works fine and puts all the data. Even <code>var_dump($_POST)</code> indicates it receives data but it always returns "success" as 0. </p> <p><strong...
I'm trying to pass parameters to my php script. The data gets passed but always returns "success" as 0. I tested the php by echoing the query after passing values, it works fine and puts all the data. Even var_dump($_POST) indicates it receives data but it always returns "success" as 0. Adding parameters: [CODE] makeHt...
java|php|android|json
-1
2017-05-30T06:55:25.617Z
2,017
5
6
1
23
1
387
64
4
4
true
false
false
false
false
true
negative
44,318,801
error on imagemagick for TileView android
<p>So I'm working with <a href="https://github.com/moagrius/TileView" rel="nofollow noreferrer">TileView</a> and I'm with some troubles.</p> <p>When I follow this tutorial for <a href="https://github.com/moagrius/TileView/wiki/Creating-Tiles" rel="nofollow noreferrer">Creating Tiles</a> with this:</p> <pre><code> `...
So I'm working with TileView and I'm with some troubles. When I follow this tutorial for Creating Tiles with this: [CODE] And after this, its creating empty folders. I cant find anything on Google and I need help, please
android|image
0
2017-06-01T23:56:16.557Z
2,017
6
23
3
23
1
220
41
2
1
true
false
false
false
false
false
zero
44,351,428
By using listview see first string array item in List view and detail string array item in second activity
<p>I have two <code>string array</code> . one of string array have <code>listview</code> item and second array have detail description of <code>listview</code> item. When I clicked on <code>listitem</code> in <code>listview</code> then I want to show detail description of that <code>listitem</code> in second <code>acti...
I have two string array . one of string array have listview item and second array have detail description of listview item. When I clicked on listitem in listview then I want to show detail description of that listitem in second activity . [CODE] ListActivity code: [CODE] Description show activity code: [CODE]
java|android|listview|arraylist
-3
2017-06-04T06:39:03.850Z
2,017
6
6
6
23
1
311
106
4
3
true
false
false
false
false
true
negative
44,160,160
Extract Cell Information from In-Sight Explorer (Cognex) with Android
<p>I was wondering how i can do that, i have the c# sdk, i <em>believe</em> i can use this for Xamarin also and i know that with native commands i can communicate but im not very sure how i connect all the pieces together for xamarin.</p> <p><a href="https://www.scribd.com/document/349308773/Native-Mode-Commands" rel=...
I was wondering how i can do that, i have the c# sdk, i believe i can use this for Xamarin also and i know that with native commands i can communicate but im not very sure how i connect all the pieces together for xamarin. Here are the commands. Should i use telnet or serial communication? can someone give me a simple ...
c#|android|xamarin|xamarin.android
0
2017-05-24T13:42:27.360Z
2,017
5
13
2
279
1
524
69
4
0
false
false
false
false
false
false
zero
44,206,592
Table Row Child Count Based on Screen Size
<p>I have Cards that are 100dp width and 120dp height and when the app starts I add 3 cards to each table row (I create number of table rows based on total number of cards I want to add). On phone this looks fine however on tablets theres a lot of open space because the number of children per row (in this case 3) is no...
I have Cards that are 100dp width and 120dp height and when the app starts I add 3 cards to each table row (I create number of table rows based on total number of cards I want to add). On phone this looks fine however on tablets theres a lot of open space because the number of children per row (in this case 3) is not d...
android|size|row|children|android-tablelayout
0
2017-05-26T16:51:55.420Z
2,017
5
16
4
279
1
591
42
5
0
false
false
false
false
false
false
zero
44,320,190
Android support design spinner
<p>I used android support design for edit text. </p> <p>How can I use it for spinner (material design).</p> <p>Like this (Product Category).</p> <p><a href="https://i.stack.imgur.com/raIOw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/raIOw.png" alt="product cat"></a></p> <p>That spinner is wel...
I used android support design for edit text. How can I use it for spinner (material design). Like this (Product Category). That spinner is well aligned with the edit text. I need something like that.
android
0
2017-06-02T03:11:50.207Z
2,017
6
3
4
535
1
199
30
1
0
false
false
false
false
false
false
zero
44,060,900
Android Access is denied when building
<p>I've recently switched over my project to Kotlin and went through all the precompiled errors I found. I then went to build the project and I'm receiving this error. </p> <blockquote> <p>Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. java.io.FileNotFoundException: D:\Work\kn...
I've recently switched over my project to Kotlin and went through all the precompiled errors I found. I then went to build the project and I'm receiving this error. Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. java.io.FileNotFoundException: D:\Work\knew-tek\Knew_Tek\app\build\inter...
java|android|kotlin
0
2017-05-19T03:24:41.960Z
2,017
5
3
4
1,047
1
725
38
3
0
false
false
false
false
false
false
zero
44,250,373
Android Error:error: linker command failed with exit code 1 (use -v to see invocation) build error
<p>I am getting the following error when I compile the Android project, what could be the cause of this error?</p> <p>"Error:error: linker command failed with exit code 1 (use -v to see invocation) "</p> <p>My Gradle</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 25 build...
I am getting the following error when I compile the Android project, what could be the cause of this error? "Error:error: linker command failed with exit code 1 (use -v to see invocation) " My Gradle [CODE] Source code of the project Caffe2AICamera
android|android-studio|armv7
2
2017-05-29T21:14:36.007Z
2,017
5
21
0
2,071
1
248
98
3
1
true
false
false
false
false
false
low
44,058,972
"projections are not allowed for immediate arguments of a supertype" Kotlin Android Studio
<p>I am getting this error when I converted Java to Kotlin:</p> <p>Java</p> <pre><code>public class HeaderTab extends ExpandableGroup { private String header; public HeaderTab(String title, List items) { super(title, items); } } </code></pre> <p>Kotlin</p> <pre><code>class HeaderTab(title: Stri...
I am getting this error when I converted Java to Kotlin: Java [CODE] Kotlin [CODE] Android Studio says this: projections are not allowed for immediate arguments of a supertype What do I need to modify here?
java|android|android-studio|kotlin|kotlin-android-extensions
8
2017-05-18T22:51:12.307Z
2,017
5
22
3
5,399
1
206
90
5
2
true
false
true
false
false
false
medium
43,946,636
How do I add user configurable buttons with tap states?
<p>I'm trying to make a button in Android that has a border but with a different background tint when it is pressed, and the ability to change the color of the button background. I know <a href="https://stackoverflow.com/questions/7690416/android-border-for-button">adding a border</a> is assigning it a shape and that t...
I'm trying to make a button in Android that has a border but with a different background tint when it is pressed, and the ability to change the color of the button background. I know adding a border is assigning it a shape and that tap states are through a selector with different items, but the problem is that the butt...
java|android
0
2017-05-12T21:20:13.977Z
2,017
5
21
4
24
1
755
55
2
3
true
false
false
false
false
false
zero
44,032,927
GridView item looks not as expected - Android
<p>I try to use a <code>GridView</code> object in a specific fragment in my app. I created a layout file for the grid item and in the layout editor, the preview image looks good, as expected. </p> <p>The problem arises when I run the app in my emulator. The whole item layout gets shrinked and the image I put in the m...
I try to use a GridView object in a specific fragment in my app. I created a layout file for the grid item and in the layout editor, the preview image looks good, as expected. The problem arises when I run the app in my emulator. The whole item layout gets shrinked and the image I put in the middle suddenly jumps to th...
android|gridview
0
2017-05-17T19:04:48.230Z
2,017
5
19
2
24
1
635
45
2
3
true
false
false
false
false
false
zero
44,078,108
How are uid's assigned and generated in ios and android
<p>How is an UUID assigned and generated in android and Ios. I know that UUID and sell id are used together to track tapi ie events of the user.</p>
How is an UUID assigned and generated in android and Ios. I know that UUID and sell id are used together to track tapi ie events of the user.
android|ios
0
2017-05-19T19:56:15.157Z
2,017
5
19
4
24
1
141
55
2
0
false
false
false
false
false
false
zero
44,238,228
Set padding of toolbar on AppCompactActivity
<p>how to set padding of toolbar android like this?</p> <p>This is example of toolbar i want to costumize in my application</p> <p><a href="https://i.stack.imgur.com/MGn6C.png" rel="nofollow noreferrer">https://i.stack.imgur.com/MGn6C.png</a></p> <p>I have tried to set padding from style in values folder by adding i...
how to set padding of toolbar android like this? This is example of toolbar i want to costumize in my application https://i.stack.imgur.com/MGn6C.png I have tried to set padding from style in values folder by adding item android:padding but dosent work. Does anybody know the exact solution for my problem? Thank you, i ...
android-layout
0
2017-05-29T08:47:43.613Z
2,017
5
8
0
24
1
340
44
1
0
false
false
false
false
false
false
zero
44,243,290
parse site registration and push notification
<p>while am trying to sign up to parse site, i cant able to find the option for sign up.</p> <p>we have to implement parse push notification feature in xamarin mobile application development.</p> <p>Please guide if any one have idea about registering to parse and the steps to work with push notifications too.</p>
while am trying to sign up to parse site, i cant able to find the option for sign up. we have to implement parse push notification feature in xamarin mobile application development. Please guide if any one have idea about registering to parse and the steps to work with push notifications too.
xamarin|parse-platform|push-notification|xamarin.android
0
2017-05-29T13:07:49.187Z
2,017
5
13
0
24
1
293
45
4
0
false
false
false
false
false
false
zero
44,308,874
Fetching rows updated last hour
<p>Every hour,my android app launch a service to detect if a filed has been updated in my table, and if yes, a notification should be send. The table contains a filed called <code>status</code>, this field can be updated from <code>false</code> to <code>true</code>. My goal is to fetch and return all rows updated and ...
Every hour,my android app launch a service to detect if a filed has been updated in my table, and if yes, a notification should be send. The table contains a filed called status , this field can be updated from false to true . My goal is to fetch and return all rows updated and send their values in a ntification. I don...
android|mysql
0
2017-06-01T13:27:55.137Z
2,017
6
13
3
24
1
518
31
2
0
false
false
false
false
false
false
zero
44,367,574
The correct way to start animation as soon as fragment loads
<p>I got a fragment in which there's an animation of a count down clock. I want to start the animation as soon as the fragment loads without any intervention from the user.</p> <p>What I do now is calling the following method in <code>onCreateView</code>:</p> <pre><code>private void startCountDownAnimation() { fi...
I got a fragment in which there's an animation of a count down clock. I want to start the animation as soon as the fragment loads without any intervention from the user. What I do now is calling the following method in onCreateView : [CODE] This seems to work including when the app goes to the background. I just want t...
android|android-animation
0
2017-06-05T11:06:33.593Z
2,017
6
11
0
24
1
577
60
2
1
true
false
false
false
false
false
zero
44,368,863
How to reinitialize socket after few hours in android?
<p>The application is not receiving any messages from the server even if it is connected to a server after several ideal hours. How to reconnect them to a server?</p>
The application is not receiving any messages from the server even if it is connected to a server after several ideal hours. How to reconnect them to a server?
android|sockets
0
2017-06-05T12:22:41.397Z
2,017
6
12
0
24
1
159
54
2
0
false
false
false
false
false
false
zero
43,984,413
Android MaterialBetterSpinner change event
<p>Im wondering, if I can set the event listener for a MaterialBetterSpinner when the selected item changes?</p> <p>Something like that:</p> <pre><code>String [] TIPLIST = "Elektro","Oprema","Vodovod","Ogrevanje","Internet","Požarne naprave","Drugo"}; ArrayAdapter&lt;String&gt; arrayAdapterTip = new ArrayAdapter&lt;S...
Im wondering, if I can set the event listener for a MaterialBetterSpinner when the selected item changes? Something like that: [CODE] But it seems that MaterialBetterSpinner do not have setOnItemSelectedListener.
java|android
0
2017-05-15T16:21:21.097Z
2,017
5
16
0
280
1
212
42
2
1
true
false
false
false
false
false
zero
44,124,354
How do I bind to Android service that is started after boot completed?
<p>I have an Android app with a Service, and an Activity_A and an Activity_B. </p> <p>The service has to start after boot completed (which is does). When I launch the app, the service has to bind to Activity_A. When Activity_B is launched, it has to unbind from Activity_A and bind to Activity_B. The Service must never...
I have an Android app with a Service, and an Activity_A and an Activity_B. The service has to start after boot completed (which is does). When I launch the app, the service has to bind to Activity_A. When Activity_B is launched, it has to unbind from Activity_A and bind to Activity_B. The Service must never be destroye...
android|service
0
2017-05-23T01:23:24.940Z
2,017
5
1
1
280
1
726
70
2
2
true
false
false
false
false
false
zero
44,339,915
Android Bottom sheet logs elapse time when expanded
<p>I have a map and bottom sheet in my app. When bottom sheet is collapsed, everything is ok, but if i expand it, in my log pereodically appears message about elapse time.</p> <pre><code>06-03 10:17:51.391 25789-26054/com.example.pici.mapboxtest W/MALI: glDrawArrays:714: [MALI] glDrawArrays takes more than 5ms here. T...
I have a map and bottom sheet in my app. When bottom sheet is collapsed, everything is ok, but if i expand it, in my log pereodically appears message about elapse time. [CODE] What is the problem about my app?
android|mapbox|bottom-sheet
1
2017-06-03T03:22:31.843Z
2,017
6
3
5
280
1
209
51
3
1
true
false
false
false
false
false
low
44,050,011
Using front and rear camera on the same activity android
<p>I know this question has been asked many times but i have no other option than asking this question again. I am using camera2 api to display both front and rear cameras on the same screen. I have created two texture views each with two camera instances. Even then I'm getting an exception.</p> <p>This is my code for...
I know this question has been asked many times but i have no other option than asking this question again. I am using camera2 api to display both front and rear cameras on the same screen. I have created two texture views each with two camera instances. Even then I'm getting an exception. This is my code for the MainAc...
java|android|android-camera2
2
2017-05-18T14:04:25.820Z
2,017
5
14
3
536
1
455
56
3
4
true
false
false
false
false
false
low
44,151,306
Websocket bi-directional concept with Nao robot
<p>I’m developeing cool app for Nao but need that Nao control an external IOS, Android or Node.js (html5) application (samething like websocket that allows bi-directional communication). The clearest example would be the same as implemented in Pepper to communicate with the tablet.</p> <p>I would greatly appreciate it...
I’m developeing cool app for Nao but need that Nao control an external IOS, Android or Node.js (html5) application (samething like websocket that allows bi-directional communication). The clearest example would be the same as implemented in Pepper to communicate with the tablet. I would greatly appreciate it if somebod...
javascript|android|ios|websocket|nao-robot
0
2017-05-24T07:08:59.677Z
2,017
5
7
2
536
1
408
47
5
0
false
false
false
false
false
false
zero