id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
53,518,350
How to access Firebase project
<p>I am new to firebase and android development, therefore, I have not totally understood how it works. I want to know if after adding project to firebase, does it mean the app is launched and will be accessible by anyone who have android or how do I tell someone to try the app when it has not been uploaded to playstor...
I am new to firebase and android development, therefore, I have not totally understood how it works. I want to know if after adding project to firebase, does it mean the app is launched and will be accessible by anyone who have android or how do I tell someone to try the app when it has not been uploaded to playstore?
android|firebase
0
2018-11-28T11:25:01.677Z
2,018
11
11
2
58
2
319
30
2
0
false
false
false
false
false
false
zero
53,378,428
Swipe to refresh layout problem when used with custom behavior
<p>I have a <code>CoordinatorLayout</code> which contains a view with a custom <code>CoordinatorLayout.Behavior</code> (item_search_button) and a <code>SwipeRefreshLayout</code> containing a <code>NestedScrollView</code>. The custom view is a button which should scroll out of the screen with the normal scrolling but sh...
I have a CoordinatorLayout which contains a view with a custom CoordinatorLayout.Behavior (item_search_button) and a SwipeRefreshLayout containing a NestedScrollView . The custom view is a button which should scroll out of the screen with the normal scrolling but should appear (scroll from top) as soon as the user scro...
android|android-coordinatorlayout|swiperefreshlayout
1
2018-11-19T16:00:10.393Z
2,018
11
16
0
1,082
2
569
62
3
2
true
false
false
false
false
false
low
53,378,427
I'm not getting data from another activity
<p>I am getting a problem with my project in Android Studio. What I am trying to do is when I click a button (what opens another activity) and in that activity I write data from a person. Then I save this data and the app get back to the main. The next button what does is create a Toast that shows data from the person...
I am getting a problem with my project in Android Studio. What I am trying to do is when I click a button (what opens another activity) and in that activity I write data from a person. Then I save this data and the app get back to the main. The next button what does is create a Toast that shows data from the person, bu...
android|android-studio|android-intent|toast|android-toast
-1
2018-11-19T16:00:05.883Z
2,018
11
16
0
315
2
440
42
5
2
true
false
false
false
false
true
negative
53,519,856
view in android studio
<p>In android studio while creating a button , I am using a function name in onclick attribute to invoke a code execution </p> <p>example : onClick : myButton</p> <p>public void myButton (View a)</p> <p>1) what is meant by view in the above command ? 2) why they are specifing view in the function that is related to ...
In android studio while creating a button , I am using a function name in onclick attribute to invoke a code execution example : onClick : myButton public void myButton (View a) 1) what is meant by view in the above command ? 2) why they are specifing view in the function that is related to Button?
android|android-studio|android-layout
-2
2018-11-28T12:47:45.973Z
2,018
11
12
2
60
2
299
22
3
0
false
false
false
false
false
true
negative
53,541,663
Android iOS deep linking, one domain, several apps
<p>I'm working on several android and ios apps and I'd prefer deep links like this:<br></p> <pre><code>https://my-domain.com/app1/link1 https://my-domain.com/app1/link2 https://my-domain.com/app2/link1 https://my-domain.com/app2/link2 </code></pre> <p>instead of:<br></p> <pre><code>https://app1.com/link1 https://app...
I'm working on several android and ios apps and I'd prefer deep links like this: [CODE] instead of: [CODE] Is the first approach doable on both platforms? Or should/need I pick the second one and register separate domains for each app?
android|ios|deep-linking
0
2018-11-29T14:50:11.103Z
2,018
11
14
3
60
2
235
50
3
2
true
false
false
false
false
false
zero
53,380,416
Store email that are used to log in and show as suggestion on the email input during next Login - Android Application
<p>I am trying to find a way to keep all the email used for login into the application in a device and show them as suggestion or autocomplete when ever a user tries to login in to the application.</p> <p>I tried using shared preferences and store them into an ArrayList during the login. However each time I login, the...
I am trying to find a way to keep all the email used for login into the application in a device and show them as suggestion or autocomplete when ever a user tries to login in to the application. I tried using shared preferences and store them into an ArrayList during the login. However each time I login, the email gets...
android|arraylist|authentication|sharedpreferences
0
2018-11-19T18:12:03.310Z
2,018
11
18
0
61
2
1,496
117
4
2
true
false
false
false
false
false
zero
53,473,935
Automatically generating items for a listview
<p>I have a listview which displays arrays from the arrays.xml in a list. The problem is, instead of reading it from xml, I want it to automatically create items from an int. For example if the int is 10, then it should create 10 list items- chapter 1, chapter 2, ... chapter 10.</p> <pre><code> list1 = (ListView) find...
I have a listview which displays arrays from the arrays.xml in a list. The problem is, instead of reading it from xml, I want it to automatically create items from an int. For example if the int is 10, then it should create 10 list items- chapter 1, chapter 2, ... chapter 10. [CODE]
android|listview
-3
2018-11-26T02:09:59.153Z
2,018
11
2
0
61
2
283
45
2
1
true
false
false
false
false
true
negative
53,644,326
java.lang.RuntimeException: Unable to instantiate application .ApplicationDetails:
<p>Only Mi pad having that issue when run the app. For fix that issues i have try 1. Uninstall the app and retry to connect that but get same error 2. Instant run is disable in my android studio 3. User Multi desk in build gradle</p> <p>Other project is working from same android studio in same tab </p> <p>Any one...
Only Mi pad having that issue when run the app. For fix that issues i have try 1. Uninstall the app and retry to connect that but get same error 2. Instant run is disable in my android studio 3. User Multi desk in build gradle Other project is working from same android studio in same tab Any one Have idea how to fix th...
java|android|android-studio
0
2018-12-06T03:43:23.127Z
2,018
12
3
3
317
2
376
82
3
3
true
false
false
false
false
false
zero
53,529,088
How to get item checked on app startup in Navigation Drawer?
<p>I have my navigation drawer with my fragments perfectly working and items get checked when I select them. But when I open my app it shows the first item of the Navigation Drawer but when I open the drawer item is not checked until I touch it.</p> <p><strong><em>Navigation Drawer xml:</em></strong></p> <pre><code> ...
I have my navigation drawer with my fragments perfectly working and items get checked when I select them. But when I open my app it shows the first item of the Navigation Drawer but when I open the drawer item is not checked until I touch it. Navigation Drawer xml: [CODE] .MainActivity (onNavigationItemSelected): [CODE...
android|fragment|navigation-drawer|menuitem|checked
0
2018-11-28T22:32:10.883Z
2,018
11
22
2
62
2
321
60
5
2
true
false
false
false
false
false
zero
53,455,506
android.view.InflateException: Binary XML file line #13: Error inflating class co.devcenter.androiduilibrary.ChatView
<p>I'm having this log (of course with the crash of my activity) when trying to go Chat Activity. I am following the tutorial of smack xmpp chat application It happens only when i try to open chat activity : Any suggestion at what i can do to the line 2??? Greetings log : </p> <pre><code>Unable to start activity Compo...
I'm having this log (of course with the crash of my activity) when trying to go Chat Activity. I am following the tutorial of smack xmpp chat application It happens only when i try to open chat activity : Any suggestion at what i can do to the line 2??? Greetings log : [CODE] my layout : [CODE] gradle file that has to ...
android
0
2018-11-24T05:43:17.210Z
2,018
11
5
5
318
2
350
117
1
3
true
false
false
false
false
false
zero
53,503,575
Kripton database library limit select query
<p>I try to use <a href="https://github.com/xcesco/kripton" rel="nofollow noreferrer">Kripton database library</a>. Everything is fine if I use select query with no limitation</p> <pre><code>@BindSqlSelect(orderBy="timestamp desc") List&lt;History_&gt; selectAll(); </code></pre> <p>But I have no idea how to limit sel...
I try to use Kripton database library . Everything is fine if I use select query with no limitation [CODE] But I have no idea how to limit select statement. How can I bind or add limit value?
android|database|android-kripton
1
2018-11-27T16:01:49.607Z
2,018
11
16
1
63
2
191
43
3
1
true
false
false
false
false
false
low
53,518,139
Cannot restore Scroll position
<p>Im stuck here 2 days. I am trying to restore scroll position after device rotation.</p> <p>Im saving an arraylist in the onSaveInstance, adding the movies i have to it and trying to set the adapter. </p> <p>If i switch shorting criteria and rotate the device, it scrolls up to the top and not retaining its position...
Im stuck here 2 days. I am trying to restore scroll position after device rotation. Im saving an arraylist in the onSaveInstance, adding the movies i have to it and trying to set the adapter. If i switch shorting criteria and rotate the device, it scrolls up to the top and not retaining its position. Here's my code [CO...
java|android|scroll|position|restore
0
2018-11-28T11:13:42.753Z
2,018
11
11
2
63
2
325
30
5
1
true
false
false
false
false
false
zero
53,585,792
Android - What is best way of handling http call in OnCreate which doesn't get called on screen rotation?
<p>I am learning android. Get stuck with a basic scenario of loading the data in oncreate of an activity. So I am trying to load the data as soon as i open my activity but when i change the screen orientation it gets called again. I understand that android restore the state of activity during screen orientation. so onc...
I am learning android. Get stuck with a basic scenario of loading the data in oncreate of an activity. So I am trying to load the data as soon as i open my activity but when i change the screen orientation it gets called again. I understand that android restore the state of activity during screen orientation. so oncrea...
android|android-orientation
0
2018-12-02T23:53:58.603Z
2,018
12
23
6
63
2
597
105
2
0
false
false
false
false
false
false
zero
53,790,051
How to find "no" internet data while user has internet access in android
<p>how to find whether user(ANDROID) has both internet connection AND internet data. I knew that bellow code will check internet connectivity alone, but in my case internet access is there but the user had ran out of internet data....!</p> <pre><code>ConnectivityManager conMan = (ConnectivityManager) context.getSystem...
how to find whether user(ANDROID) has both internet connection AND internet data. I knew that bellow code will check internet connectivity alone, but in my case internet access is there but the user had ran out of internet data....! [CODE] how to identify whether the user has internet data balance or not...?
java|android|android-studio|internet-connection
0
2018-12-15T06:16:46.873Z
2,018
12
6
5
63
2
309
72
4
1
true
false
false
false
false
false
zero
53,704,890
Viewing Multiple columns in Android Studio
<p>Is it possible to code in two or more columns in ANDROID STUDIO at the same time? For example: In Sublime Text 3, I can go to View>Layout>columns:2 to be able to see two open files at the same time and edit both of them.<a href="https://i.stack.imgur.com/0MHMb.png" rel="nofollow noreferrer"> This is a Screen Shot of...
Is it possible to code in two or more columns in ANDROID STUDIO at the same time? For example: In Sublime Text 3, I can go to View>Layout>columns:2 to be able to see two open files at the same time and edit both of them. This is a Screen Shot of two columns opened in sublime text
android-studio
2
2018-12-10T11:38:25.473Z
2,018
12
11
0
831
2
280
42
1
0
false
false
false
false
false
false
low
53,668,431
Google Drive REST Api download file by its fileId
<p>Hello guys I run into a problem. In my application I am storing fileId's of files which user selected before in GoogleDrive file picker. Also I am storing a local copy of that files in device. After each start I want to refresh local files, so I want to download them from drive. But it is not cleare for me, how sh...
Hello guys I run into a problem. In my application I am storing fileId's of files which user selected before in GoogleDrive file picker. Also I am storing a local copy of that files in device. After each start I want to refresh local files, so I want to download them from drive. But it is not cleare for me, how should ...
java|android|kotlin|google-api|google-drive-api
2
2018-12-07T11:15:38.933Z
2,018
12
11
4
1,343
2
587
49
5
1
true
false
false
false
false
false
low
53,612,826
Media player not playing mp3 on Android API 28
<p>I am trying to build a dictionary app . and dictionary api provide me the url for the mp3 file. I am using this code to play the mp3 .</p> <p>This works in all the versions of android except the API 28. </p> <p>What happens in API 28 is - It lake more than 2 minute to hit the setOnPreparedListener (not every time...
I am trying to build a dictionary app . and dictionary api provide me the url for the mp3 file. I am using this code to play the mp3 . This works in all the versions of android except the API 28. What happens in API 28 is - It lake more than 2 minute to hit the setOnPreparedListener (not every time) - then goes to setO...
android|kotlin|android-mediaplayer
2
2018-12-04T12:19:11.170Z
2,018
12
12
1
2,112
2
475
46
3
2
true
false
false
false
false
false
low
53,769,818
Spinner not working in custom Dialog - why?
<p>I am trying to use a android Spinner in a Custom dialog, but when I tap on the Spinner the list with items opens and you can tap on them and the view closes, but none of the items gets selected. When I use the exact same code in a normal Fragment it works fine.</p> <p>And since I found nothing helpful anywhere, is ...
I am trying to use a android Spinner in a Custom dialog, but when I tap on the Spinner the list with items opens and you can tap on them and the view closes, but none of the items gets selected. When I use the exact same code in a normal Fragment it works fine. And since I found nothing helpful anywhere, is there somet...
android|dialog|spinner|custom-adapter|customdialog
0
2018-12-13T20:47:04.690Z
2,018
12
20
3
833
2
1,208
43
5
4
true
false
false
false
false
false
zero
53,587,638
How to manage notification manager null?
<p>When I sent notification that time notification manager show is null, how i handle this? </p> <pre><code>private void sendNotification(String title, String message, String msgTitle) { if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.O) { CharSequence name = getString(R.string.channel_name); ...
When I sent notification that time notification manager show is null, how i handle this? [CODE] Here notification manager get null. [CODE]
android|json|push-notification
1
2018-12-03T04:49:14.470Z
2,018
12
4
0
1,089
2
138
40
3
2
true
false
false
false
false
false
low
53,667,090
Google Maps API v2: How to make marker tooltip clickable?
<p>When I click a marker on the map activity it will appear a tooltip that contains the title and the snippet of the marker. Can I add an onClick actions to this tooltip programmatically?</p> <pre><code>mMap.addMarker(new MarkerOptions() .position(new LatLng(latitude, longitude)) .title("Title") ...
When I click a marker on the map activity it will appear a tooltip that contains the title and the snippet of the marker. Can I add an onClick actions to this tooltip programmatically? [CODE]
android|google-maps-android-api-2
0
2018-12-07T09:54:40.660Z
2,018
12
9
4
1,089
2
191
57
2
1
true
false
false
false
false
false
zero
53,398,235
How to create new activity in android studio
<p>I am completely new to Android Studio and I was wondering when I create a new class, it doesn't contain the method <code>public void onCreate</code>. For example in my <code>main_activity</code> you have the <code>super.onCreate(savedInstanceState)</code> that would let you connect to your <code>layout</code> and th...
I am completely new to Android Studio and I was wondering when I create a new class, it doesn't contain the method public void onCreate . For example in my main_activity you have the super.onCreate(savedInstanceState) that would let you connect to your layout and then do things with fields or buttons . My question is h...
java|android|android-studio
1
2018-11-20T17:18:49.230Z
2,018
11
17
1
1,857
2
535
44
3
0
false
false
false
false
false
false
low
53,610,285
MPAndroidChart Set month value on X axis and draw line under graph
<p>I am trying to set a value on X axis as month but the y value are not corresponding to x value that I am trying to set. </p> <pre><code>private void CreateGraph() { float[] yDataL = {30, 60, 500,231}; String[] xDataL = {"Jan", "Feb" , "Mac" , "Apr"}; LineChart lineChart = (LineChart) findViewById(R.id....
I am trying to set a value on X axis as month but the y value are not corresponding to x value that I am trying to set. [CODE] this is the result that i got result image i think i got it wrong on xAxis.setValueFormatter part i also want to archive a line below the graph like this one image of line below graph
java|android|mpandroidchart
0
2018-12-04T10:01:24.553Z
2,018
12
10
1
1,857
2
310
66
3
1
true
false
false
false
false
false
zero
53,711,220
Android BLE discovery issue
<p>I'm developing and Android app with Bluetooth but sometimes I have problems with LE devices discovering: usually the discovery callback return me the the devices found but sometimes, stops working and does not return me the devices.</p> <p>I tested the code (in debug mode) in different devices (Samsung, LG) and wit...
I'm developing and Android app with Bluetooth but sometimes I have problems with LE devices discovering: usually the discovery callback return me the the devices found but sometimes, stops working and does not return me the devices. I tested the code (in debug mode) in different devices (Samsung, LG) and with different...
java|android|bluetooth|bluetooth-lowenergy
0
2018-12-10T18:03:10.100Z
2,018
12
18
0
1,602
2
801
27
4
2
true
false
false
false
false
false
zero
53,457,798
Android app: read data then send to database : check if data matches
<p>I would like to ask You general question: i have android app[RFID ..]. Step 1: Read Step 2: need to send Read[red] data to Database if data matches, Matched! message. Please give some advice which java classes to use: i have already experienced: Insert[post], Read, Delete, Update. But to check matching Read[red] dat...
I would like to ask You general question: i have android app[RFID ..]. Step 1: Read Step 2: need to send Read[red] data to Database if data matches, Matched! message. Please give some advice which java classes to use: i have already experienced: Insert[post], Read, Delete, Update. But to check matching Read[red] data, ...
java|android|mysql|database
0
2018-11-24T11:46:53.937Z
2,018
11
11
5
67
2
405
68
4
0
false
false
false
false
false
false
zero
53,530,195
Segment Bar loaded event gets called on activityResumedEvent
<p>In my NativeScript app on android, I am using one segment bar and I have noticed that (loaded) event gets called every time user minimise the app and resumes it again.</p> <pre><code>&lt;SegmentedBar width="100%" height="100%" selectedIndex="{{segmentedIndex}}" (selectedIndexChange)="onSelectedIndexChange($event)" ...
In my NativeScript app on android, I am using one segment bar and I have noticed that (loaded) event gets called every time user minimise the app and resumes it again. [CODE] is this the expected behaviour or is it a bug? P.S. I am making an API call on bar loaded and every time activity resume, app makes API call agai...
android|nativescript
0
2018-11-29T00:39:20.853Z
2,018
11
0
3
67
2
398
60
2
2
true
false
false
false
false
false
zero
53,733,781
How do I use lldb to debug C++ code on Android on command line
<p>I am trying to figure out to debug my Android ndk project in c++, using the lldb debugger.</p> <p>I am trying achieve this by using the command line only.</p> <p>I can not seem to find any articles or documentation on how to use lldb along with adb to debug an app from the command line.</p>
I am trying to figure out to debug my Android ndk project in c++, using the lldb debugger. I am trying achieve this by using the command line only. I can not seem to find any articles or documentation on how to use lldb along with adb to debug an app from the command line.
android|debugging|android-ndk|adb|lldb
4
2018-12-11T23:15:06.510Z
2,018
12
23
1
5,187
2
273
62
5
0
false
false
true
false
false
false
low
53,760,738
How to retrieve username from Amazon cognito user pool in android
<p>I am finding a way to get user name for Amazon Cognito users pool. I am using AWS Android Mobile SDK with AWS Mobile Hub. Created the user and logged in from my app. After logging in, how can i get the username with which i have logged in? </p>
I am finding a way to get user name for Amazon Cognito users pool. I am using AWS Android Mobile SDK with AWS Mobile Hub. Created the user and logged in from my app. After logging in, how can i get the username with which i have logged in?
android|amazon-web-services|aws-sdk|aws-mobilehub
0
2018-12-13T11:21:50.160Z
2,018
12
11
3
836
2
239
65
4
0
false
false
false
false
false
false
zero
53,691,457
React-Native Android - Could not find com.android.tools:common
<p>It seems that somehow the <code>android/tools/common</code> library has been deleted (<a href="https://jcenter.bintray.com/com/android/tools/common/25.2.3/common-25.2.3.pom" rel="nofollow noreferrer">pom</a>, <a href="https://jcenter.bintray.com/com/android/tools/common/25.2.3/common-25.2.3.jar" rel="nofollow noref...
It seems that somehow the android/tools/common library has been deleted ( pom , jar ). This caused many react native libraries that are using an old gradle version in their classpath (e.g com.android.tools.build:gradle:2.2.3 ) to not being able to sync How can i fix it?
android|android-studio|react-native|android-gradle-plugin|jcenter
16
2018-12-09T10:41:59.010Z
2,018
12
10
6
3,140
2
270
62
5
0
false
false
true
false
true
false
medium
53,465,478
How to append new Array in JSON file stored in android
<p>I have one JSON file in my app's data folder.</p> <pre><code> { "user": [ { "identifier": "1", "name": "xyz", "contact": [ { "contact": "123" }, { "contact": "456" } ] } ] } </code></pre> <p>Now I want to add a new user at runt...
I have one JSON file in my app's data folder. [CODE] Now I want to add a new user at runtime like this. [CODE] For that, I have this code but it simply overrides the existing user. [CODE] writeJsonFile is a method for writing in the file. Any help will be appreciated.
android|json|android-studio
0
2018-11-25T07:22:03.407Z
2,018
11
7
6
69
2
268
54
3
3
true
false
false
false
false
false
zero
53,485,517
compile 'com.firebaseui:firebase-ui-storage:4.0.0' error
<p>When adding This repository in in my Gradle get an error. i try to build to cloud and got this error</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.mkurbanov.future" ...
When adding This repository in in my Gradle get an error. i try to build to cloud and got this error [CODE] The error: [CODE] Build script: [CODE]
android|gradle
-1
2018-11-26T16:41:38.517Z
2,018
11
16
0
69
2
146
56
2
3
true
false
false
false
false
true
negative
53,798,977
Drawable as source in Circular Image View
<p>So I am using <a href="https://github.com/lopspower/CircularImageView" rel="nofollow noreferrer">lopspower/CircularImageView</a> Library to create a Circular Image View like this</p> <pre><code>&lt;com.mikhaellopez.circularimageview.CircularImageView android:id="@+id/nav_header_profile_pic" android:layout_w...
So I am using lopspower/CircularImageView Library to create a Circular Image View like this [CODE] and I have the drawable resources like this square_shape.xml [CODE] and foreground_add_image.xml [CODE] the foreground image is being displayed but the android:src="@drawable/square_shape" is not being displayed.
android|xml|android-layout
0
2018-12-16T02:34:02.987Z
2,018
12
2
6
69
2
311
41
3
3
true
false
false
false
false
false
zero
53,430,866
Retrofit2: how to save cookies from response
<p>I need to add some authorization information from cookie in response to next requests.</p> <p>It works in postman - I make authorization request, then second request, which works fine. But if I delete cookies - second request returns error and I have to do authorization request again.</p> <p>But in my application ...
I need to add some authorization information from cookie in response to next requests. It works in postman - I make authorization request, then second request, which works fine. But if I delete cookies - second request returns error and I have to do authorization request again. But in my application this second request...
android|cookies|kotlin|retrofit2|okhttp
3
2018-11-22T12:18:46.790Z
2,018
11
12
3
3,653
2
473
44
5
1
true
false
true
false
false
false
low
53,678,401
Pass data between fragments with Bundle
<p>I read a lot of discussion about that, and someone suggests to use Bundle to pass data between two fragments in the same activity...I tried some come, but it didn't worked. I have 2 fragments in my <code>GroupDetailActivity</code>. The paymentFragment, which download data from a database and show them in a listView,...
I read a lot of discussion about that, and someone suggests to use Bundle to pass data between two fragments in the same activity...I tried some come, but it didn't worked. I have 2 fragments in my GroupDetailActivity . The paymentFragment, which download data from a database and show them in a listView, and the fragme...
java|android|android-fragments
0
2018-12-08T00:27:41.817Z
2,018
12
0
5
70
2
727
39
3
2
true
false
false
false
false
false
zero
53,518,830
view.getText().toString() returning nothing from DialogFragment?
<p>I have a Custom DialogFragment class. The user types their password twice in 2 editText views. When I Log the action I get an empty text from both editTexts even though I typed some text in them both:</p> <blockquote> <p>D/CreateNewWalletDialogFragment: password: password repeat: </p> </blockquote> <pre><code>...
I have a Custom DialogFragment class. The user types their password twice in 2 editText views. When I Log the action I get an empty text from both editTexts even though I typed some text in them both: D/CreateNewWalletDialogFragment: password: password repeat: [CODE] As suggested by someone, binding views in onStart() ...
android
0
2018-11-28T11:51:04.860Z
2,018
11
11
2
71
2
367
64
1
1
true
false
false
false
false
false
zero
53,464,048
How can make the RecyclerView fill out the free space when I use ConstraintLayout?
<p>I'm a beginner of ConstraintLayout of Android Studio 3.2.1, it seems that ConstraintLayout is hard to operate.</p> <p>I hope that the four button located the bottom of screen, and RecyclerView control fill out all free space of the screen, but the following code doesn't do it as my expectation, you can see the foll...
I'm a beginner of ConstraintLayout of Android Studio 3.2.1, it seems that ConstraintLayout is hard to operate. I hope that the four button located the bottom of screen, and RecyclerView control fill out all free space of the screen, but the following code doesn't do it as my expectation, you can see the following Image...
android|android-layout
1
2018-11-25T01:59:48.570Z
2,018
11
1
6
327
2
429
82
2
2
true
false
false
false
false
false
low
53,367,819
Why text attribute in SVG file does not appear in Android Studio vector asset XML on asset import
<p>I imported an <code>.svg</code> file with the following xml in it</p> <pre><code>&lt;text class="cls-4" transform="translate(3.08 8.71)"&gt;My Text&lt;/text&gt; &lt;text class="cls-4" transform="translate(66.04 94.97) rotate(180)"&gt;My Text&lt;/text&gt; </code></pre> <p>into Android Studio as an image asset via</...
I imported an .svg file with the following xml in it [CODE] into Android Studio as an image asset via [CODE] and in the xml of the new vector asset I do ctrl+f but find no string My Text and infact the text does not render becuase it does not exist in the svg file.
android|android-studio|svg
0
2018-11-19T03:13:56.433Z
2,018
11
3
0
1,607
2
265
97
3
2
true
false
false
false
false
false
zero
53,476,030
Java android ROOM get object with detais
<p>I have this :</p> <pre><code> @Entity(tableName = "director"/*, indices = {@Index(value = "full_name", unique = true)}*/) public class Director { @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "did") public int id; @ColumnInfo(name = "full_name") @NonN...
I have this : [CODE] Amd when I get all movies I get director id . What I should to do to generate this : [CODE] I can get a user and later get directerByID but I don not now if this is a the best way to do this
java|android|android-room
1
2018-11-26T06:54:09.883Z
2,018
11
6
0
72
2
211
40
3
2
true
false
false
false
false
false
low
53,488,615
Selection Args as integers not string
<p>I have this method that takes an integer input and returns the row, it should take the employee id and returns its name, title, phone, email. Meanwhile rawquery selection args use strings and doesn't work with integers, how can i fix that?</p> <pre><code> public Cursor getEmpData(Integer ID) { E...
I have this method that takes an integer input and returns the row, it should take the employee id and returns its name, title, phone, email. Meanwhile rawquery selection args use strings and doesn't work with integers, how can i fix that? [CODE]
android|database|sqlite
0
2018-11-26T20:32:39.440Z
2,018
11
20
0
72
2
246
37
3
1
true
false
false
false
false
false
zero
53,473,347
How can i set current date, as a database table name in sqlite?
<p>I'm trying to create a table that name is the current date.</p> <p><strong>Here is my table name that i try</strong></p> <pre><code> static String date = new SimpleDateFormat("dmmmyy", Locale.getDefault()).format(new Date()); public static String table_name=date; </code></pre> <p><strong>but it has shown this e...
I'm trying to create a table that name is the current date. Here is my table name that i try [CODE] but it has shown this error [CODE] My aim is to set a table name using the current date. thanks.
android|sql|sqlite|android-studio
0
2018-11-26T00:19:33.757Z
2,018
11
0
0
328
2
196
63
4
2
true
false
false
false
false
false
zero
53,470,480
Firebase getChildrenCount() returns always '1'
<p>In my app I try to fetch all users that are available. For that every user has a parameter that is either "true" or "false". I want to return the amount of the users where that parameter is "true".</p> <p>In that case the data looks like this: <img src="https://i.stack.imgur.com/lFKEH.png" alt="data structure"></p>...
In my app I try to fetch all users that are available. For that every user has a parameter that is either "true" or "false". I want to return the amount of the users where that parameter is "true". In that case the data looks like this: I tried to do it like this, the code is cut to the necessary part: [CODE] However I...
java|android|firebase|firebase-realtime-database
1
2018-11-25T18:18:16.857Z
2,018
11
18
6
840
2
474
46
4
1
true
false
false
false
false
false
low
53,446,562
How to check phone number on dialer through Espresso - Dialer fired through autoLink
<p>I'm trying to check whether the phone dialer opens with the correct phone number through Espresso but not really able to do it so far. I've tried:</p> <pre><code> Intents.init(); Intent stubIntent = new Intent(); Instrumentation.ActivityResult stubResult = new Instrumentation.ActivityResult(Activity.RE...
I'm trying to check whether the phone dialer opens with the correct phone number through Espresso but not really able to do it so far. I've tried: [CODE] And also [CODE] The dialer is being triggered through an autoLink on the TextView on my XML if that helps in any way? [CODE] and that's the dialer opened by Espresso ...
android|android-intent|android-espresso
2
2018-11-23T12:15:42.533Z
2,018
11
12
4
1,352
2
337
84
3
3
true
false
false
false
false
false
low
53,767,788
Receiving Push Notification in Android Webview
<p>I have implemented a HTML5 app that uses <a href="https://firebase.google.com/docs/cloud-messaging/js/client" rel="nofollow noreferrer">FCM Web</a> to receive push notifications. App works fine in all major browsers on desktop and mobile devices.</p> <p>Now, I need to run this HTML5 app inside Android Webview. But,...
I have implemented a HTML5 app that uses FCM Web to receive push notifications. App works fine in all major browsers on desktop and mobile devices. Now, I need to run this HTML5 app inside Android Webview. But, webview is not prompting for receiving push notification permission. And that can be the reason that app neve...
android|firebase|webview|firebase-cloud-messaging
1
2018-12-13T18:09:23.583Z
2,018
12
18
3
4,168
2
424
46
4
0
false
false
true
false
false
false
low
53,466,593
How can I disable the action of pressed key by onKeyEvent on accessibility service?
<p>I'm developing an android app which modifies actions of pressed keys (VOLUME_UP , VOLUME_DOWN, KEYENTER)</p> <p>I have a selfie stick controller which has three buttons. I can detect which button pressed and I can something what I want to do <strong>without disable original key event of pressed key</strong></p> <p...
I'm developing an android app which modifies actions of pressed keys (VOLUME_UP , VOLUME_DOWN, KEYENTER) I have a selfie stick controller which has three buttons. I can detect which button pressed and I can something what I want to do without disable original key event of pressed key I need to disable original key even...
android|accessibilityservice
0
2018-11-25T10:28:49.977Z
2,018
11
10
6
1,097
2
615
83
2
3
true
false
false
false
false
false
zero
53,687,611
Android fail to build - Could not find com.android.tools:common:25.5.0-alpha-preview-02
<p>I am using ionic 4 and trying to run on an android device after adding FCM(<a href="https://beta.ionicframework.com/docs/native/fcm" rel="nofollow noreferrer">https://beta.ionicframework.com/docs/native/fcm</a>) to the app to support push notification. However, I am not able to get a successful build as soon as I ad...
I am using ionic 4 and trying to run on an android device after adding FCM( https://beta.ionicframework.com/docs/native/fcm ) to the app to support push notification. However, I am not able to get a successful build as soon as I added the FCM native plugin to the app. it gave me the following error. Could not find com....
cordova|ionic-framework|build.gradle|android-build|ionic4
2
2018-12-08T22:27:06.847Z
2,018
12
22
5
1,097
2
3,427
87
5
0
false
false
false
false
false
false
low
53,572,851
Can`t Pass a Model Class to my BaseAdapter
<p><strong>Error Shown:</strong> </p> <blockquote> <p>Attempt to invoke virtual method 'void android.widget.GridView.setAdapter(android.widget.ListAdapter)' on a null object reference.</p> </blockquote> <p>The error surface at the <code>gridView.setAdapter(adapter);</code> but am able to print response from API o...
Error Shown: Attempt to invoke virtual method 'void android.widget.GridView.setAdapter(android.widget.ListAdapter)' on a null object reference. The error surface at the gridView.setAdapter(adapter); but am able to print response from API only to pass it to the adapter for layout to handle the display. Am suggesting con...
java|android|android-fragments
0
2018-12-01T16:32:21.563Z
2,018
12
16
5
74
2
636
42
3
5
true
false
false
false
false
false
zero
53,794,044
Miminum play services version required for FusedLocation API
<p>For using <code>FusedLocationApi</code> what is the minimum version of the play services installed on the device?</p> <p>Also as LocationManager does not need play services, is there any minimum requirement for using <code>LocationManager</code>.</p> <p>I want to get the Location of users using any API that covers...
For using FusedLocationApi what is the minimum version of the play services installed on the device? Also as LocationManager does not need play services, is there any minimum requirement for using LocationManager . I want to get the Location of users using any API that covers as much devices as possible, that why I am ...
android|locationmanager|fusedlocationproviderapi|android-fusedlocation
-1
2018-12-15T14:18:25.353Z
2,018
12
14
5
74
2
385
60
4
0
false
false
false
false
false
true
negative
53,586,622
Unable to load ads
<p><a href="https://i.stack.imgur.com/VYGhA.png" rel="nofollow noreferrer">my logcat image</a><br> Am getting below errors for my applications not able to see ads on the application but the test ads are displaying could you please help </p> <blockquote> <p>W/Ads: App does not have the required permissions to get loc...
my logcat image Am getting below errors for my applications not able to see ads on the application but the test ads are displaying could you please help W/Ads: App does not have the required permissions to get location I/Ads: SDK version: afma-sdk-a-v14574020.10084000.1 I/Ads: Ad failed to load : 3
java|android|android-studio|admob
0
2018-12-03T02:20:44.913Z
2,018
12
2
0
1,098
2
299
18
4
0
false
false
false
false
false
false
zero
53,461,836
HEX data from BLE characteristic to Byte Array, how to convert to String
<p>My BLE android app can currently connect to my BLE hardware and connect to the GATT server. I can also enable notifications and read the characteristic. However the characteristic advertised is of HEX format. On my Service I tried receiving the data on String or Byte Array format, tried a couple of conversion proced...
My BLE android app can currently connect to my BLE hardware and connect to the GATT server. I can also enable notifications and read the characteristic. However the characteristic advertised is of HEX format. On my Service I tried receiving the data on String or Byte Array format, tried a couple of conversion procedure...
android|hex|bluetooth-lowenergy|bluetooth-gatt
2
2018-11-24T19:53:32.837Z
2,018
11
19
5
1,099
2
520
72
4
2
true
false
false
false
false
false
low
53,607,402
Hiding specific tabs on react navigation bottomTabBarNavigation
<p>Imagine I have this structure for my tab bar:</p> <pre><code>const TabBarRoute = { Home: HomeStack, Orders: OrdersStack, Trending: TrendingStack, TopSelling: TopSellingStack } </code></pre> <p>I want to show only three tabs (Orders, Trending, TopSelling) in my bottom tab navigator, How can I achiev...
Imagine I have this structure for my tab bar: [CODE] I want to show only three tabs (Orders, Trending, TopSelling) in my bottom tab navigator, How can I achieve it by react-navigation version 3.x ? One idea that come to my mind is that I create a top stackNavigator and nest HomeStack along with my bottomTabNavigator in...
reactjs|react-native|react-navigation|react-android|react-navigation-stack
4
2018-12-04T07:04:02.463Z
2,018
12
7
1
2,635
2
464
63
5
1
true
false
true
false
false
false
low
44,253,049
How do I update the android target version on an emulator via the command line?
<p>I'm aware that I can do it via the UI (Android Studio), but I'm looking for a way to do it via either the command line or by editing the config files. </p>
I'm aware that I can do it via the UI (Android Studio), but I'm looking for a way to do it via either the command line or by editing the config files.
android|command-line|android-emulator|avd
0
2017-05-30T03:41:17.800Z
2,017
5
3
1
256
2
150
79
4
0
false
false
false
false
false
false
zero
43,945,226
How does Firebase.setAndroidContext(this) work and what does it do?
<p>Could someone please explain how the following code snippet works?</p> <pre><code>public class FireBaseApp extends Application { @Override public void onCreate() { super.onCreate(); Firebase.setAndroidContext(this); } } </code></pre>
Could someone please explain how the following code snippet works? [CODE]
android|firebase
0
2017-05-12T19:33:18.547Z
2,017
5
19
4
512
2
73
67
2
1
true
false
false
false
false
false
zero
43,958,934
Dismiss loading in Ionic 2
<p>So in my app I have a button that when clicked opens WhatsApp and sends a sound. On this button, I have attached a method that when the button is clicked it creates an Ionic loading component. The problem I am having is on the "loading.dismiss()". I wanted to make it so that when the WhatsApp is launched the loader ...
So in my app I have a button that when clicked opens WhatsApp and sends a sound. On this button, I have attached a method that when the button is clicked it creates an Ionic loading component. The problem I am having is on the "loading.dismiss()". I wanted to make it so that when the WhatsApp is launched the loader is ...
android|angular|typescript|ionic2
0
2017-05-13T23:28:06.640Z
2,017
5
23
5
1,024
2
529
26
4
2
true
false
false
false
false
false
zero
44,100,852
How do i show the progress bar while recyclerview is loading and hide it when done?
<p>i have a recyclerview which displays data requested by volley. I'm using the handler().postDelayed to show the progress bar for 4 seconds but it's not consistent with my the recyclerview because sometimes it takes more than 4 seconds to get data from api and display it in the recyclerview and sometimes it takes less...
i have a recyclerview which displays data requested by volley. I'm using the handler().postDelayed to show the progress bar for 4 seconds but it's not consistent with my the recyclerview because sometimes it takes more than 4 seconds to get data from api and display it in the recyclerview and sometimes it takes less th...
android|android-layout|android-recyclerview|android-progressbar
0
2017-05-21T19:18:23.003Z
2,017
5
19
6
2,560
2
433
83
4
1
true
false
false
false
false
false
zero
43,992,260
How to scale/resize a view and its content proportionally?
<p>sorry if the title isn't good. I'd like to scale/resize a view and its following child.</p> <p>I tried using <code>setScaleX</code> and <code>setScaleY</code>, which is the easiest one, but the view bounds remain unchanged and leaves a blank margin. I tried to resize it manually by changing the height and width, in...
sorry if the title isn't good. I'd like to scale/resize a view and its following child. I tried using setScaleX and setScaleY , which is the easiest one, but the view bounds remain unchanged and leaves a blank margin. I tried to resize it manually by changing the height and width, including it childs, but it's kinda di...
java|android
1
2017-05-16T04:00:17.067Z
2,017
5
4
1
257
2
441
58
2
0
false
false
false
false
false
false
low
44,044,623
Android: Nougat (Huawei Honor 6x) : Urdu text not displaying correctly
<p>Urdu/Arabic Text is scrambled every where in the operating system ever since I have updated my Huawei Honor 6x from Marshmallow to Nougat. Screenshot is attached. Even when i type the urdu text, incorrect text is typed.</p> <p>There is no option in the OS to add Arabic language.</p> <p>What can be the possible sol...
Urdu/Arabic Text is scrambled every where in the operating system ever since I have updated my Huawei Honor 6x from Marshmallow to Nougat. Screenshot is attached. Even when i type the urdu text, incorrect text is typed. There is no option in the OS to add Arabic language. What can be the possible solution except downgr...
android|text|urdu
0
2017-05-18T10:01:09.937Z
2,017
5
10
3
769
2
326
70
3
0
false
false
false
false
false
false
zero
44,213,771
android retrofit embedded query parameters
<p>Android How to pass embedded query parameters using Retrofit... This is my GET METHOD Url:</p> <pre><code>localhost:5000/at_invitations?embedded={"invitee":1} </code></pre> <p>My Question is how to pass the embedded value<code>{"invitee":1}</code> as query parameter using Retrofit..</p> <p>This is My Service Call...
Android How to pass embedded query parameters using Retrofit... This is my GET METHOD Url: [CODE] My Question is how to pass the embedded value {"invitee":1} as query parameter using Retrofit.. This is My Service Call declaration Code : [CODE] This My Service Call Code : [CODE] This is error Line :(How to declare this ...
java|android|rest|retrofit|retrofit2
0
2017-05-27T06:33:04.650Z
2,017
5
6
5
1,025
2
378
42
5
4
true
false
false
false
false
false
zero
44,235,051
Android scheduling repeating alarms with broadcast receiver
<p>I have to send 3 different notification(different content) at different time in a day. Following the official documentation, <a href="https://developer.android.com/training/scheduling/alarms.html#type" rel="nofollow noreferrer">https://developer.android.com/training/scheduling/alarms.html#type</a>, I was able to se...
I have to send 3 different notification(different content) at different time in a day. Following the official documentation, https://developer.android.com/training/scheduling/alarms.html#type , I was able to send notification at specified times, but having some trouble with changing the content of each notification. Fo...
android|notifications|broadcastreceiver|alarmmanager
0
2017-05-29T05:18:59.447Z
2,017
5
5
0
1,281
2
1,371
59
4
3
true
false
false
false
false
false
zero
44,095,828
React Native - Share Method Cancel Event
<p>i am using React Native Share Method (<a href="https://facebook.github.io/react-native/docs/share.html" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/share.html</a>) to share content on <strong>Android</strong>.</p> <p>As per documentation, we can use it in following ways:</p> <pre><code>S...
i am using React Native Share Method ( https://facebook.github.io/react-native/docs/share.html ) to share content on Android . As per documentation, we can use it in following ways: [CODE] So when we call Share method, we will get result in then and popup window is appeared which contains apps list with which we can sh...
android|react-native|react-router|react-redux
7
2017-05-21T10:36:03.710Z
2,017
5
10
6
2,306
2
628
40
4
1
true
false
false
false
false
false
medium
44,019,206
How to add image to tab layout programactically?
<p>I have a tab layout in my apps,I want to add a image to one of the tab when some condition happen.But I have no idea how to do it </p> <p><strong>Here is the tab layout look like before any changes</strong> </p> <p><a href="https://i.stack.imgur.com/s0ub0.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
I have a tab layout in my apps,I want to add a image to one of the tab when some condition happen.But I have no idea how to do it Here is the tab layout look like before any changes Here is the condition I want to acheive I want the red image and a text view on the red circle. Currently my code for tab layout is look l...
android|android-layout|tabs
1
2017-05-17T08:16:40.757Z
2,017
5
8
2
2,564
2
502
48
3
1
true
false
false
false
false
false
low
43,959,857
Not able to get the array values from firebase database
<p>I'm trying to check whether the <strong>signed in</strong> user is an authorized user from the JSON array in Firebase Database. How do I get the value of email field from Firebase. ? </p> <p>This is the <strong>model</strong> <code>User</code> class:</p> <pre><code>public class User { ArrayList&lt;User&gt; em...
I'm trying to check whether the signed in user is an authorized user from the JSON array in Firebase Database. How do I get the value of email field from Firebase. ? This is the model User class: [CODE] For getting the email from userslist , I used this logic. [CODE] But when I try to get the emails from the the databa...
android|android-studio|firebase|arraylist|firebase-realtime-database
1
2017-05-14T02:37:14.733Z
2,017
5
2
6
1,029
2
560
55
5
5
true
false
false
false
false
false
low
44,290,407
How to show GPS and network alert dialog in whole application if network or GPS disable
<p>I want to show alert dialog in my android application if Network or GPS is disable, How it possible .please help me i am new for android </p>
I want to show alert dialog in my android application if Network or GPS is disable, How it possible .please help me i am new for android
android|android-gps
0
2017-05-31T16:43:59.357Z
2,017
5
16
2
262
2
136
87
2
0
false
false
false
false
false
false
zero
44,364,971
Why I get error when I upload zip file to phonegap service?
<p>I try to create apk file using phonegap service.</p> <p>Here is my config.xml file in my project:</p> <pre><code>&lt;?xml version='1.1' encoding='utf-8'?&gt; &lt;widget id="il.co.geomind.gilgalplay" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"&gt; &lt;name&gt;site...
I try to create apk file using phonegap service. Here is my config.xml file in my project: [CODE] I make zip file from the project and make upload to the phonegap service I get this error: [CODE] Any idea why I get error above and how to fix it?
android|cordova|phonegap-plugins|phonegap-build|phonegap-pushplugin
1
2017-06-05T08:40:09.077Z
2,017
6
8
0
262
2
245
59
5
2
true
false
false
false
false
false
low
44,112,397
Socket - asynchronous image loading in ListView
<p>Help please solve my problem. I use the code for asynchronous image downloading from this site <a href="http://www.technotalkative.com/android-asynchronous-image-loading-in-listview/" rel="nofollow noreferrer">http://www.technotalkative.com/android-asynchronous-image-loading-in-listview/</a>. With HTTP it works as i...
Help please solve my problem. I use the code for asynchronous image downloading from this site http://www.technotalkative.com/android-asynchronous-image-loading-in-listview/ . With HTTP it works as it should, but if I change the piece when with [CODE] On this one [CODE] Then if the connection is slow, if you scroll the...
android|image|sockets|listview|asynchronous
0
2017-05-22T12:03:20.963Z
2,017
5
12
0
263
2
442
47
5
2
true
false
false
false
false
false
zero
44,288,245
google signin not working when distributed through playstore firebase oauth2
<p>So, i created a signed apk with my key store, all the credentials/sha1 key on firebase and google api console matches to my release keystore. and the google signin is working when i externally install the generated apk. </p> <p>but when i try to distribute it through playstore i am not able to sign in. </p> <p>i u...
So, i created a signed apk with my key store, all the credentials/sha1 key on firebase and google api console matches to my release keystore. and the google signin is working when i externally install the generated apk. but when i try to distribute it through playstore i am not able to sign in. i updated the google ser...
android|firebase|oauth-2.0|firebase-authentication|google-signin
3
2017-05-31T15:01:46.160Z
2,017
5
15
2
263
2
511
76
5
0
false
false
false
false
false
false
low
44,148,478
Xamarin.Forms release error bundles/armeabi-v7a/temp.c:1:39: fatal error: mono/metadata/mono-config.h: No such file or directory
<p>I have error when release Xamarin.Forms with Visual Studio for Mac. Here is error </p> <p>/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2112,3): error XA5103: NDK C compiler resulted in an error. Exit code 0 </p> <blockquote> <pre><code>[cc stderr] obj/Release/...
I have error when release Xamarin.Forms with Visual Studio for Mac. Here is error /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2112,3): error XA5103: NDK C compiler resulted in an error. Exit code 0 [CODE] And here is version of VS for mac Visual Studio Professional ...
xamarin|xamarin.android|xamarin.forms
2
2017-05-24T03:32:11.797Z
2,017
5
3
2
264
2
911
128
3
1
true
false
false
false
false
false
low
43,926,887
Store android sign certificate in version control
<p>I've been playing for a while with android. Now that I have my application and been able to generate my signed release (testing purposes) I came with the question that I bring to you: <strong>Should I save this certificate in my repo?</strong></p> <p>Usually I prefer not to include any sensitive information in them...
I've been playing for a while with android. Now that I have my application and been able to generate my signed release (testing purposes) I came with the question that I bring to you: Should I save this certificate in my repo? Usually I prefer not to include any sensitive information in them, but when I was about to co...
android|git|version-control|certificate
0
2017-05-11T23:01:01.733Z
2,017
5
23
3
266
2
524
49
4
0
false
false
false
false
false
false
zero
44,370,398
zxing barcode scanning fragment
<p>I am very new to mobile development and I trying to make an android app using Xamarin(visual studio). I am trying to integrate zxing barcode scanner into my app and I have found many examples of it's integration into app but they are all using Activity. I want to use fragments instead of Activity. I tried to make my...
I am very new to mobile development and I trying to make an android app using Xamarin(visual studio). I am trying to integrate zxing barcode scanner into my app and I have found many examples of it's integration into app but they are all using Activity. I want to use fragments instead of Activity. I tried to make my fr...
c#|android|xamarin|xamarin.android
2
2017-06-05T13:44:42.120Z
2,017
6
13
0
1,034
2
502
31
4
1
true
false
false
false
false
false
low
44,071,153
coordinatorlayout not scrolling with swipeRefreshlayout
<p>I have added coordinatorlayout+viewpager+TabLayout and have added three tabs with viewpager but scrolling only works with first tab(recent)</p> <p>not working with two tabs 1. contact,2.setting</p> <p>see all codes only xml code posted here as only needed</p> <p><strong>homeactivity xml(where three fragment get a...
I have added coordinatorlayout+viewpager+TabLayout and have added three tabs with viewpager but scrolling only works with first tab(recent) not working with two tabs 1. contact,2.setting see all codes only xml code posted here as only needed homeactivity xml(where three fragment get attached) [CODE] contact_fragment.xm...
android|xml|android-coordinatorlayout|swiperefreshlayout
0
2017-05-19T13:16:44.067Z
2,017
5
13
4
1,035
2
406
55
4
4
true
false
false
false
false
false
zero
44,265,494
how a String Set can be retrieve in Android from SharedPreferences
<p>I have a problem to getting retrieve values from sharedPreferences that stored as a String Set.</p> <pre><code>Set&lt;String&gt; set = new HashSet&lt;String&gt;(); set.add("Price: " + String.valueOf(item.getItemPrice())); set.add("Quantity: " + String.valueOf(QuantityofItem)); ...
I have a problem to getting retrieve values from sharedPreferences that stored as a String Set. [CODE] my StringSet contains these 5 values and i want to retrieve that stored data and retrieve as a list view . any method how it can be perform?
android|xml|sharedpreferences|store|datastore
0
2017-05-30T14:50:08.857Z
2,017
5
14
1
1,035
2
243
66
5
1
true
false
false
false
false
false
zero
44,129,471
How to get the data of the ListView cell being tapped
<p>our itemSource is from a json data and we deserialize it so we can put it in the Xaml listview and I cannot get the value of the cell being tapped.</p> <p>This is my .cs</p> <pre><code>List&lt;Debtor&gt; ro = JsonConvert.DeserializeObject&lt;List&lt;Debtor&gt;&gt;(filteredResult2); //UPDATE LISTVIEW CustListView.I...
our itemSource is from a json data and we deserialize it so we can put it in the Xaml listview and I cannot get the value of the cell being tapped. This is my .cs [CODE] This is my .xaml [CODE]
android|xaml|xamarin|xamarin.forms|portable-class-library
0
2017-05-23T08:21:26.133Z
2,017
5
8
1
525
2
193
53
5
2
true
false
false
false
false
false
zero
44,082,151
Multiple Images select from gallery
<p>In my application I want to select multiple images from gallery and need to upload those images on server.I my code now only single image is selected below is my code please give me solution :-</p> <pre><code>fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(V...
In my application I want to select multiple images from gallery and need to upload those images on server.I my code now only single image is selected below is my code please give me solution :- [CODE]
android|android-gallery
0
2017-05-20T05:09:23.117Z
2,017
5
5
5
1,293
2
200
35
2
1
true
false
false
false
false
false
zero
43,975,018
Android Studio Gradle build script not working
<p>This is the build script used by an Android client built on top of the MifosX platform for the mifos user community. </p> <pre><code>/* * This project is licensed under the open source MPL V2. * See https://github.com/openMF/android-client/blob/master/LICENSE.md */ buildscript { repositories { maven...
This is the build script used by an Android client built on top of the MifosX platform for the mifos user community. [CODE] However whenever I build this script I get this error: [CODE] I am using Android Studio 2.1.1. Please help me.
android|gradle|mifos
1
2017-05-15T08:48:38.337Z
2,017
5
8
0
3,341
2
234
46
3
2
true
false
true
false
false
false
low
44,168,337
LatLngBounds with CameraUpdate not zooming in
<p>I have a GoogleMap (Lite Mode) object that has been properly initialized. It works properly with a single Marker and focuses on the proper area using CameraUpdate with newLatLngZoom.</p> <p>However, when it comes to adding two markers, and have the map keep both in view using LatLngBounds, everything goes bonkers. ...
I have a GoogleMap (Lite Mode) object that has been properly initialized. It works properly with a single Marker and focuses on the proper area using CameraUpdate with newLatLngZoom. However, when it comes to adding two markers, and have the map keep both in view using LatLngBounds, everything goes bonkers. The map is ...
android|google-maps-markers|google-maps-android-api-2
1
2017-05-24T20:58:04.853Z
2,017
5
20
2
1,294
2
538
45
3
1
true
false
false
false
false
false
low
44,323,064
BLE gattserver with iOS
<p>I am developing one app which uses bluetooth low energy for communication between device and App. My device is peripheral and App is central.While developing Android app, I have added some custom ble services by creating gattserver on android app side and it is working ok. Now i want to achieve same thing with iOS....
I am developing one app which uses bluetooth low energy for communication between device and App. My device is peripheral and App is central.While developing Android app, I have added some custom ble services by creating gattserver on android app side and it is working ok. Now i want to achieve same thing with iOS. My ...
android|ios|bluetooth|bluetooth-lowenergy
0
2017-06-02T07:20:21.037Z
2,017
6
7
4
1,806
2
419
23
4
0
false
false
false
false
false
false
zero
44,291,609
Add share action to android WebView fragment
<p>I know this question has been asked many times before, and i have tried many of those answers, but nothings works for me, So here is my question. I have android app which uses WebView, earlier I was using WebView in activity in which adding share action which shares current URL link of the page was easy, but in rece...
I know this question has been asked many times before, and i have tried many of those answers, but nothings works for me, So here is my question. I have android app which uses WebView, earlier I was using WebView in activity in which adding share action which shares current URL link of the page was easy, but in recent ...
android|android-fragments|android-webview|share|shareactionprovider
0
2017-05-31T17:53:21.797Z
2,017
5
17
2
2,062
2
651
44
5
3
true
false
false
false
false
false
zero
43,935,620
Customize firebase notification
<p>I have an Chat app in which a user is subscribed to an topic and each group is a topic. Whenever an message is sent in the group. An notification is sent to that topic. </p> <p>There are two problems that I am facing. </p> <ol> <li><p>When the sender sends the message in the group, a notification message is sent t...
I have an Chat app in which a user is subscribed to an topic and each group is a topic. Whenever an message is sent in the group. An notification is sent to that topic. There are two problems that I am facing. When the sender sends the message in the group, a notification message is sent to the topic. But before the us...
android|firebase|android-notifications
0
2017-05-12T10:34:13.903Z
2,017
5
10
4
5,646
2
913
31
3
0
false
false
true
false
false
false
zero
44,174,443
How to ensure file upload works with video using loopj AndroidAsyncHttp?
<p>I am trying to upload a video file to my server from my android app using loopj AndroidAsyncHttp library. Uploading an image gives a "Success: 200" response whereas attempting to upload a video give either a 500 or 302 error response. This is my upload method: </p> <pre><code> private void uploadVideoTwo(String ...
I am trying to upload a video file to my server from my android app using loopj AndroidAsyncHttp library. Uploading an image gives a "Success: 200" response whereas attempting to upload a video give either a 500 or 302 error response. This is my upload method: [CODE] My PHP code looks like this: [CODE] Android Studio l...
php|android|video|android-async-http|loopj
2
2017-05-25T07:11:05.977Z
2,017
5
7
3
527
2
627
72
5
2
true
false
false
false
false
false
low
44,346,043
Scrolling of multiple recycler view in an activity. (how to make it smooth)
<p>I have 2 recyclerviews in my activity 1st one is horizontally scrollable and the 2nd one is vertically scrollable. (XML code given below) But the scrolling is not smooth.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ll1" android:layout_width="...
I have 2 recyclerviews in my activity 1st one is horizontally scrollable and the 2nd one is vertically scrollable. (XML code given below) But the scrolling is not smooth. [CODE] i use [CODE] for both recycler view. Any ideas to implement this with a smooth scrolling?
java|android|android-recyclerview|scrollview
0
2017-06-03T16:19:11.927Z
2,017
6
16
5
783
2
267
75
4
2
true
false
false
false
false
false
zero
44,144,440
SearchView TextSize
<p>I have the following <code>SearchView</code> implementation in the <code>xml</code>, the text entry has been cut from the top as shown in the below image. No matter what <code>textSize</code> I am putting, nothing changes.</p> <pre><code> &lt;SearchView android:id="@+id/search_view" android:layout_width="ma...
I have the following SearchView implementation in the xml , the text entry has been cut from the top as shown in the below image. No matter what textSize I am putting, nothing changes. [CODE]
android
1
2017-05-23T20:29:57.723Z
2,017
5
20
1
1,807
2
191
19
1
1
true
false
false
false
false
false
low
44,130,362
Android - Center image on Toolbar with menu inflated
<p>I'm trying to center the text on Toolbar taking in consideration the menu that is being inflated on Activity. I find many solutions on SO, but didn't find anything that covers the case where a menu is also inflated.</p> <p>If I only inflate an <code>ImageView</code> without inflating the <code>menu</code>, everythi...
I'm trying to center the text on Toolbar taking in consideration the menu that is being inflated on Activity. I find many solutions on SO, but didn't find anything that covers the case where a menu is also inflated. If I only inflate an ImageView without inflating the menu , everything is ok. If I inflate the ImageView...
android|android-layout|menu|android-toolbar
4
2017-05-23T09:04:52.587Z
2,017
5
9
1
2,831
2
749
52
4
2
true
false
true
false
false
false
low
44,320,088
how to click second time on recycle view and firsr time data is show in android i use a flag but this not work any one can help me
<pre><code>@Override public void onBindViewHolder(final MyViewHolder holder, final int position) { final MyportfolioRecycleview_Record record = dataList.get(position); for(int i=0;i&lt; dataList.size();i++) { holder.issuerNameInBoldLetters.setText(record.getIssuerNameInBoldLetters()...
[CODE]
java|android
-1
2017-06-02T02:57:30.040Z
2,017
6
2
4
16
2
6
130
2
1
true
false
false
false
false
true
negative
43,989,819
Android Bluetooth Application
<p>Hi I'm sort of new to developing on android and have recently started working with the bluetooth API. I've been able to connect my phone to HC-06 hooked up to my Arduino NANO. However I cannot seem to transfer data correctly. My goal is to grab the current value from the device and save it to a variable on the app...
Hi I'm sort of new to developing on android and have recently started working with the bluetooth API. I've been able to connect my phone to HC-06 hooked up to my Arduino NANO. However I cannot seem to transfer data correctly. My goal is to grab the current value from the device and save it to a variable on the app whil...
android|bluetooth|arduino
3
2017-05-15T22:33:49.870Z
2,017
5
22
0
272
2
428
29
3
2
true
false
false
false
false
false
low
44,132,814
Passing observable's data to another, is nesting necessary?
<p>I have example of code:</p> <pre><code>private Observable&lt;String&gt; rxFetch() { return Observable.fromCallable(() -&gt; fetchWebsiteHtml())//fetch source of html .observeOn(AndroidSchedulers.mainThread()) .subscribeOn(Schedulers.io()) .doOnError(throwable ...
I have example of code: [CODE] This observable rxFetch does: download html source in separate thread when error - shows error msg when success -> onNext -> fetch html and obtain some html tags in separate thread when error - show error msg when success - pass data to listview and shows result in adapter My question is:...
android|rx-java
0
2017-05-23T10:54:44.803Z
2,017
5
10
1
272
2
562
59
2
1
true
false
false
false
false
false
zero
44,107,746
Parallel Executing of an AsyncTask
<p>In parallel executing of an asynctask, I find out 2 ways:</p> <p>First one using <code>THREAD_POOL_EXECUTOR</code>:</p> <pre><code>myTask.executeOnExecutor ( AsyncTask.THREAD_POOL_EXECUTOR ); </code></pre> <p>Second one using <code>AsyncTaskCompat.executeParallel</code>: </p> <pre><code>AsyncTask asyncTaskTest =...
In parallel executing of an asynctask, I find out 2 ways: First one using THREAD_POOL_EXECUTOR : [CODE] Second one using AsyncTaskCompat.executeParallel : [CODE] Is there any difference between them?
java|android|android-asynctask
0
2017-05-22T08:07:23.940Z
2,017
5
8
0
1,040
2
199
34
3
2
true
false
false
false
false
false
zero
44,072,522
Delphi: Android Exception closes my app
<p>I am have a problem in the applications, I am using Delphi XE7 and running applications on Android 6.0 or higher, but when it presents an error it closes the application instead of handling and displaying the error message. I'm already aware that I should upgrade my delphi so that my applications work on versions of...
I am have a problem in the applications, I am using Delphi XE7 and running applications on Android 6.0 or higher, but when it presents an error it closes the application instead of handling and displaying the error message. I'm already aware that I should upgrade my delphi so that my applications work on versions of an...
android|delphi
-1
2017-05-19T14:23:53.110Z
2,017
5
14
4
1,296
2
569
39
2
0
false
false
false
false
false
true
negative
43,925,634
Picasso unable to rapidly load images
<p>I am facing an issue where Picasso is unable to rapidly load images.</p> <p>There are 3 <code>ImageViews</code> which display left, middle and the right images. On fast forward/backward, for a given time point, the left, middle and the right are chosen and displayed in the three box.</p> <p>Here is the initializat...
I am facing an issue where Picasso is unable to rapidly load images. There are 3 ImageViews which display left, middle and the right images. On fast forward/backward, for a given time point, the left, middle and the right are chosen and displayed in the three box. Here is the initialization. OkHttp cache is 100MB along...
android|image|performance|picasso|largenumber
0
2017-05-11T21:12:55.360Z
2,017
5
21
3
1,041
2
1,462
37
5
3
true
false
false
false
false
false
zero
43,939,249
Visual Studio/Xamarin.Auth- java.lang.illegalArgumentException: already added
<p>Working with Xamarin.Auth and Visual Studio on an Android Xamarin project... I'm getting the error: <code>java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;</code></p> <p>I just recently updated the Xamarin.Auth nuget and that seems to trigge...
Working with Xamarin.Auth and Visual Studio on an Android Xamarin project... I'm getting the error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; I just recently updated the Xamarin.Auth nuget and that seems to trigger this error, because it...
c#|android|visual-studio|xamarin
0
2017-05-12T13:41:45.223Z
2,017
5
13
4
1,553
2
471
77
4
0
false
false
false
false
false
false
zero
43,947,535
image viewpager onclicklistener issue
<p>Used <code>ViewPager</code> for images sliding, when clicking on each image must do an action, its different action from image to another,</p> <p>I'm new to android development </p> <p>so I try to add <code>onClick</code> listener to <code>ViewPager</code>, but I can't achieve it, </p> <p>please any suggestion ho...
Used ViewPager for images sliding, when clicking on each image must do an action, its different action from image to another, I'm new to android development so I try to add onClick listener to ViewPager , but I can't achieve it, please any suggestion how to implement OnClickListener so when I click the first image will...
java|android|android-viewpager|onclicklistener
0
2017-05-12T23:01:26.510Z
2,017
5
23
4
530
2
504
37
4
2
true
false
false
false
false
false
zero
44,173,583
prevent showing chooser dialog each time get user account
<p>I need to check user account in my app and I need to check it more than once in app , I used <a href="https://stackoverflow.com/a/34653406/2758345">this answer</a> and works fine , but the problem is each time I want to get account the chooser dialog appears for " choose an account " and its not good at all , I ap...
I need to check user account in my app and I need to check it more than once in app , I used this answer and works fine , but the problem is each time I want to get account the chooser dialog appears for " choose an account " and its not good at all , I appreciate any solution for stopping that !
android|user-accounts|android-intent-chooser
0
2017-05-25T06:17:45.917Z
2,017
5
6
3
275
2
297
57
3
0
false
false
false
false
false
false
zero
44,124,191
After splash screen, display white screen long time
<p>I am working on ionic 2. When the app is running and after splash page I am facing the white screen which takes more than 10 seconds then my home page will be displayed. Is there any way we can avoid that?</p> <p>config.xml:</p> <pre><code> &lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;widget id="com.ionicfram...
I am working on ionic 2. When the app is running and after splash page I am facing the white screen which takes more than 10 seconds then my home page will be displayed. Is there any way we can avoid that? config.xml: [CODE] Package.json: [CODE]
android|ionic-framework|ionic2
1
2017-05-23T01:00:20.340Z
2,017
5
1
1
787
2
245
51
3
2
true
false
false
false
false
false
low
44,136,669
Camera Using custom Camera Preview Renderer is not clear
<p>I am using the following link to display the camera preview using Custom renderers <a href="https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/view/" rel="nofollow noreferrer">https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/view/</a...
I am using the following link to display the camera preview using Custom renderers https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/view/ I was able to bring up the camera preview. But the preview is not at all clear. There is no Auto focus as well. Screenshot for reference Ho...
xamarin.android|android-camera
2
2017-05-23T13:46:42.843Z
2,017
5
13
1
1,812
2
417
56
2
0
false
false
false
false
false
false
low
44,175,501
Using tensorflow on Android NDK side directly (Not using JAVA api)
<p>I am trying to run a neural network on Android in C++. The examples (<a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android" rel="noreferrer">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android</a> <a href="https://github.com/tensorflow/tensorflow/tree/...
I am trying to run a neural network on Android in C++. The examples ( https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/android ) show how to use tensorflow using JAVA apis which call C++ using JNI functions. Has anyo...
android|c++|tensorflow|android-ndk
10
2017-05-25T08:09:46.957Z
2,017
5
8
3
3,348
2
567
66
4
0
false
false
true
false
true
false
medium
43,931,332
How to set Id's for list of EditText within the dynamically created TableLayout in android
<p>I am programmatically creating a dynamic TableLayout with a mixture of TextView and EditText. This TextViews are fetched from the sqlite database of application. The last column of the TableLayout consists of the EditText whose state is set to <strong>Invisible</strong>. I want to set the state of the EditText of th...
I am programmatically creating a dynamic TableLayout with a mixture of TextView and EditText. This TextViews are fetched from the sqlite database of application. The last column of the TableLayout consists of the EditText whose state is set to Invisible . I want to set the state of the EditText of the particular row of...
android|android-edittext|android-tablelayout
2
2017-05-12T07:02:26.677Z
2,017
5
7
4
1,046
2
851
90
3
1
true
false
false
false
false
false
low
44,247,635
Embedding Android Screenshot Library
<p>Currently I'm working on an app which is supposed to take screenshots from the device screen.</p> <p>I read about <a href="https://code.google.com/archive/p/android-screenshot-library/" rel="nofollow noreferrer">Android Screenshot Library</a> and it sounds very promising.</p> <p>I want to start using it in my app....
Currently I'm working on an app which is supposed to take screenshots from the device screen. I read about Android Screenshot Library and it sounds very promising. I want to start using it in my app. The problem is I'm having hard times embed it into my project. I tried to import the project folder(asl-1.2) into my lib...
android|screenshot
0
2017-05-29T17:18:24.213Z
2,017
5
17
0
2,070
2
731
36
2
0
false
false
false
false
false
false
zero
44,013,466
WearableCalendarContract returns some null fields
<p>I have made an Android Wear watch face which has a function that retrieves calendar events using WearableCalendarContract. Starting a few days ago it now returns null data in fields concerning start/stop minutes and start/stop days and I cannot make it work again.</p> <p>The code looks like this:</p> <pre><code>p...
I have made an Android Wear watch face which has a function that retrieves calendar events using WearableCalendarContract. Starting a few days ago it now returns null data in fields concerning start/stop minutes and start/stop days and I cannot make it work again. The code looks like this: [CODE] Result for first event...
android|wear-os|android-calendar
1
2017-05-17T00:04:19.167Z
2,017
5
0
2
279
2
894
49
3
2
true
false
false
false
false
false
low
44,087,780
Checkbox with ListView and Custom Adapter withouth using Array
<p>The question is simple, as it has already been discussed here - extensively! -, about Listview with checkboxes loosing state after scrooling or unable to maintain it's state. <strong>In my case, when a scroll out of the view, the checked boxs become unckecked.</strong> In this post: <a href="https://stackoverflow.co...
The question is simple, as it has already been discussed here - extensively! -, about Listview with checkboxes loosing state after scrooling or unable to maintain it's state. In my case, when a scroll out of the view, the checked boxs become unckecked. In this post: Listview, custom adapter and checkboxes , I almost ac...
android|listview|checkbox
0
2017-05-20T15:38:30.977Z
2,017
5
15
5
279
2
1,347
62
3
5
true
false
false
false
false
false
zero
44,145,949
How to display progressbar before activity with GoogleMap is fully loaded
<p>I have a Mapview in one of my activity. Whenever a button is clicked and the activity which contains the Mapview is to be opened, it freezes the current activity UI until the activity with the MapView is fully loaded. I have the following code in my onCreate() method:</p> <pre><code>mMapView = (MapView) findViewByI...
I have a Mapview in one of my activity. Whenever a button is clicked and the activity which contains the Mapview is to be opened, it freezes the current activity UI until the activity with the MapView is fully loaded. I have the following code in my onCreate() method: [CODE] and the activity itself implements OnMapRead...
android|google-maps|android-asynctask|android-progressbar
0
2017-05-23T22:18:33.790Z
2,017
5
22
1
535
2
559
73
4
2
true
false
false
false
false
false
zero
43,945,205
Gradle is not updating versionCode and VersionName to manifest.xml file
<p>Based on the google documentation values which we use in gradle file like versionCode and versionName should be updated in manifest file. So in our case, We are trying to append a date and time to the versionCode in build.gradle file. But it seems like gradle is not updating the version code to manifest file. Is thi...
Based on the google documentation values which we use in gradle file like versionCode and versionName should be updated in manifest file. So in our case, We are trying to append a date and time to the versionCode in build.gradle file. But it seems like gradle is not updating the version code to manifest file. Is this t...
android|android-studio|gradle|android-gradle-plugin|build.gradle
-2
2017-05-12T19:32:21.230Z
2,017
5
19
4
791
2
409
71
5
2
true
false
false
false
false
true
negative
43,937,839
Receiving broadcast intents with cordova-broadcaster
<p>I am trying to use the <a href="https://github.com/bsorrentino/cordova-broadcaster" rel="nofollow noreferrer">cordova-broadcaster</a> plugin to receive android broadcast intents. I register for the broadcast event</p> <pre><code> window.broadcaster.addEventListener("com.android.action.SEND_SCAN_RESULT", function...
I am trying to use the cordova-broadcaster plugin to receive android broadcast intents. I register for the broadcast event [CODE] but if the intent gets fired [CODE] the callback does not get triggered. The only log message is com.android.action.SEND_SCAN_RESULT registered
android|cordova|android-intent|cordova-plugins
2
2017-05-12T12:30:08.590Z
2,017
5
12
4
2,327
2
273
52
4
2
true
false
false
false
false
false
low
44,121,630
Android Realm Arraylist and simple POJO
<p>guys i retrieve from outside database (using retrofit) many (6600 rows) of object which looks and works with my POJO class. After that i try to put it into Realm object but its very slow. I suspect that this slow action is because i begin i commit transaction row by row. Maybe anybody know how to put full arraylist ...
guys i retrieve from outside database (using retrofit) many (6600 rows) of object which looks and works with my POJO class. After that i try to put it into Realm object but its very slow. I suspect that this slow action is because i begin i commit transaction row by row. Maybe anybody know how to put full arraylist to ...
java|android|arraylist|realm
1
2017-05-22T20:29:28.183Z
2,017
5
20
0
792
2
380
39
4
2
true
false
false
false
false
false
low