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,273,229
isAttachedToWindow() returns false
<p>Can anyone explain why <code>isAttachedToWindow()</code> is <code>false</code> instead of <code>true</code>? I seem to be having attachment issues.</p> <p>As I understood it, <code>setContentView(rl)</code> should attach the <code>RelativeLayout</code> to the window. What am I missing?</p> <pre><code>public class...
Can anyone explain why isAttachedToWindow() is false instead of true ? I seem to be having attachment issues. As I understood it, setContentView(rl) should attach the RelativeLayout to the window. What am I missing? [CODE]
android|android-view
4
2017-05-30T23:03:30.557Z
2,017
5
23
1
1,613
2
222
34
2
1
true
false
false
false
false
false
low
43,975,602
Cancel Fingerprint scanner
<p>I am working on a program that has a security function including a PIN and a fingerprint, but now I'm having a problem with entering the password (PIN or Fingerprint). Incorporating the correct fingerprints is fine, but when I enter the PIN code, after I exit the PIN and fingerprint activity, the machine continues t...
I am working on a program that has a security function including a PIN and a fingerprint, but now I'm having a problem with entering the password (PIN or Fingerprint). Incorporating the correct fingerprints is fine, but when I enter the PIN code, after I exit the PIN and fingerprint activity, the machine continues to l...
android|android-6.0-marshmallow|fingerprint
7
2017-05-15T09:16:51.343Z
2,017
5
9
0
5,965
2
489
26
3
0
false
false
true
false
false
false
medium
44,006,443
How to Apply Animations to Player in Unity
<p>Hey guys so Im making my first app. I know this is a pretty loaded question but Im having a hard time following examples because the script code is different. I am making a 2D platform runner. To start, I created the platforms, environment as well as a majority if not all of the physics. The player at this point is ...
Hey guys so Im making my first app. I know this is a pretty loaded question but Im having a hard time following examples because the script code is different. I am making a 2D platform runner. To start, I created the platforms, environment as well as a majority if not all of the physics. The player at this point is jus...
android|android-animation|unity3d
0
2017-05-16T16:06:27.250Z
2,017
5
16
1
334
2
1,456
42
3
1
true
false
false
false
false
false
zero
43,935,283
Optimal configuration for background scan - Android / AltBeacon
<p>My goal is to provide a new means of communication to merchants. These merchants will seize their ads on a platform and the beacons will take care of "spreading" them.</p> <p>The mobile application will therefore scan the beacons on the background (the most frequent case) and retrieve merchants' ads based on the id...
My goal is to provide a new means of communication to merchants. These merchants will seize their ads on a platform and the beacons will take care of "spreading" them. The mobile application will therefore scan the beacons on the background (the most frequent case) and retrieve merchants' ads based on the ids of the di...
android|ibeacon-android|altbeacon
0
2017-05-12T10:18:49.170Z
2,017
5
10
4
335
2
853
63
3
0
false
false
false
false
false
false
zero
44,097,614
Recycler View in Android not Clicking
<p>I am working on an Android app. I am facing some problem with opening a popup menu when I click on an Item in the Recycler View.</p> <p>Show.java (the Activity containing the Recycler View). mRecycler is the object associated with the RecyclerView.</p> <pre><code>mRecycler.addOnItemTouchListener(new RecyclerTouchL...
I am working on an Android app. I am facing some problem with opening a popup menu when I click on an Item in the Recycler View. Show.java (the Activity containing the Recycler View). mRecycler is the object associated with the RecyclerView. [CODE] Code snippet for xml of RecyclerView [CODE] RecyclerViewClickListener.j...
java|android|android-recyclerview
0
2017-05-21T13:44:09.850Z
2,017
5
13
6
591
2
583
37
3
4
true
false
false
false
false
false
zero
44,107,305
Xamarin forms, RecyclerView, cell rendering from xaml
<p>I want to create control in Xamarin.Forms that uses native android RecyclerView as renderer.</p> <p>My problem occurs when i try create cell that contains labels or other controls with HorizontalOptions different than: Default, Fill and FillAndExpand. That labels just don't render themselves (<a href="https://i.sta...
I want to create control in Xamarin.Forms that uses native android RecyclerView as renderer. My problem occurs when i try create cell that contains labels or other controls with HorizontalOptions different than: Default, Fill and FillAndExpand. That labels just don't render themselves ( Screenshot ). thisis my .xaml ce...
android|android-recyclerview|xamarin.forms|custom-renderer|cellrenderer
0
2017-05-22T07:43:10.073Z
2,017
5
7
0
1,103
2
733
53
5
2
true
false
false
false
false
false
zero
44,214,388
Intent to Whatsapp Chat for specific contact with extra message
<p>Is there any intent to open chat screen for a specific whatsapp user with extra_text to be filled in edit text so user can just tap send to send message. i tried this it open chat screen for a specific user but it does not fill extra_text in edittext.</p> <pre><code>Intent intent = new Intent(Intent.ACTION_SENDTO);...
Is there any intent to open chat screen for a specific whatsapp user with extra_text to be filled in edit text so user can just tap send to send message. i tried this it open chat screen for a specific user but it does not fill extra_text in edittext. [CODE]
android|whatsapp
1
2017-05-27T07:51:55.737Z
2,017
5
7
5
1,359
2
258
63
2
1
true
false
false
false
false
false
low
71,952,155
How to globally change language in Android app
<p>I have such code, and its work fine, but it change language only in context which was applied. I need to run this code in all activities. How can i change language in all app? I run this code in MainActivity.</p> <pre><code>Locale locale = new Locale(language); Locale.setDefault(locale); Resources re...
I have such code, and its work fine, but it change language only in context which was applied. I need to run this code in all activities. How can i change language in all app? I run this code in MainActivity. [CODE] I took this code from answer on question: Language not changing in app Android Studio
android
0
2022-04-21T09:34:54.893Z
2,022
4
9
3
257
2
301
46
1
1
true
false
false
false
false
false
zero
72,057,088
MainActivity.java - cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED)
<p>I've upgraded react-native to latest version (0.68) through react-native CLI, and now every time I'm trying to build for android I get this error: <code>error: cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED);</code></p> <p>I tried to clean the bundle, made sure my package name i...
I've upgraded react-native to latest version (0.68) through react-native CLI, and now every time I'm trying to build for android I get this error: error: cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); I tried to clean the bundle, made sure my package name is correct (like others ...
android|react-native|gradle|symbols|buildconfig
0
2022-04-29T11:16:31.890Z
2,022
4
11
4
1,537
2
358
105
5
0
false
false
false
false
false
false
zero
71,956,080
How to pass arraylist from recyclerview to Other Activity - kotlin?
<p>I'm trying to pass multiple value of arraylist, which are in recyclerview to Another Activity. But every time I get a null value or either memory location instead of values. Here is my adapter code</p> <pre><code> class ContactAdapter(private var contact:List&lt;ContactModel&gt;, private var context: Context, privat...
I'm trying to pass multiple value of arraylist, which are in recyclerview to Another Activity. But every time I get a null value or either memory location instead of values. Here is my adapter code [CODE] Value is passed after selecting multiple items and the button for next activity is in the menu bar. I'm using gette...
android|kotlin|android-recyclerview|adapter
0
2022-04-21T14:21:07.037Z
2,022
4
14
3
258
2
426
67
4
3
true
false
false
false
false
false
zero
72,126,619
How to create multiple notifications in Kotlin in foreground service
<p>I am working on a parental control app which notify parent multiple times but when I try to create notification with a background service it generates only one 1.</p> <p>Here is how I do it:</p> <pre><code> fun createNotification(parent_name: String, notificationText:String, id: Int){ val MchannelId = channel...
I am working on a parental control app which notify parent multiple times but when I try to create notification with a background service it generates only one 1. Here is how I do it: [CODE] My Full-Service Class: [CODE] Kinldy let me know how I can create multiple Notifications using this background service. Thank You...
android|kotlin|service|push-notification
0
2022-05-05T11:45:27.067Z
2,022
5
11
3
264
2
580
68
4
2
true
false
false
false
false
false
zero
72,079,868
Force app widget's light theme on OnePlus phone with Android 12
<p>I have a problem with forcing a light theme of home screen app widget on OnePlus 9 phone with Android 12 (using the OnePlus' launcher). My widget's theme inherits from <code>Theme.MaterialComponents.Light</code> and is light on Android 11 and below, even when the phone is in the dark mode.</p> <p>Problem is on Andro...
I have a problem with forcing a light theme of home screen app widget on OnePlus 9 phone with Android 12 (using the OnePlus' launcher). My widget's theme inherits from Theme.MaterialComponents.Light and is light on Android 11 and below, even when the phone is in the dark mode. Problem is on Android 12, where the widget...
android|android-appwidget|android-dark-theme
1
2022-05-01T19:37:42.480Z
2,022
5
19
6
266
2
803
63
3
0
false
false
false
false
false
false
low
71,988,351
When I press back button and reopen my app it goes back to login screen but user is still logged in
<p>When I press back button and reopen my app it goes back to login screen but user is still logged in. I am using navigator.pushandremoveuntill when user signs in and my app works fine until I reopen my app then I am taken back to login page which shouldn't happen as I used navigator.pushandremoveuntill and removed al...
When I press back button and reopen my app it goes back to login screen but user is still logged in. I am using navigator.pushandremoveuntill when user signs in and my app works fine until I reopen my app then I am taken back to login page which shouldn't happen as I used navigator.pushandremoveuntill and removed all t...
android|firebase|flutter|firebase-authentication|flutter-navigation
1
2022-04-24T12:22:27.533Z
2,022
4
12
6
267
2
422
99
5
2
true
false
false
false
false
false
low
71,808,221
warning: [deprecation] <TResult>call(Executor,Callable<TResult>) in Tasks has been deprecated
<p><strong>I'm getting this error while I was running my app (though my app is running fine) :</strong></p> <pre><code>C:\Users\dassa\Downloads\flutter_windows_2.2.3-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-10.2.11\android\src\main\java\io\flutter\plugins\firebase\storage\FlutterFirebaseStorag...
I'm getting this error while I was running my app (though my app is running fine) : [CODE] It would be great if anyone can help me to fix this. Thanks.
java|android|firebase|flutter|android-studio
3
2022-04-09T12:50:15.257Z
2,022
4
12
5
781
2
151
93
5
1
true
false
false
false
false
false
low
71,898,698
How to fix: "error: resource color not found" in android studio
<p>I am getting the following errors in android studios:</p> <pre><code>/Users/amaan/AndroidStudioProjects/UTATrivia2/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-night-v8/values-night-v8.xml:37: error: resource color/purple_700 (aka com.example.utatrivia:color/purple_700) not found. /Users...
I am getting the following errors in android studios: [CODE] This is my themes.xml file: [CODE] And this is my colors.xml file: [CODE] I would really appreciate any help.
android|android-studio
0
2022-04-17T01:38:07.907Z
2,022
4
1
6
1,293
2
170
63
2
3
true
false
false
false
false
false
zero
72,098,404
setSpeakerphoneOn from AudioManager is not changing speakerphone value on android 12, it always remains false. Why?
<pre><code>fun toggleSpeaker(context: Context) { isSpeakerPhoneSelected.value?.let { val audioManager: AudioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager audioManager.setSpeakerphoneOn = !it isSpeakerPhoneSelected.value = !it logDebug(c...
[CODE] The logger shows that the isSpeakerPhoneSelected value is toggling between true and false but isSpeakerphoneOn always returns false. This stopped working as of Android 12. These are the versions in our build.gradle: [CODE] What is causing the isSpeakerphoneOn value not to change and how to fix this? I've been be...
android|android-audiomanager
5
2022-05-03T10:57:24.623Z
2,022
5
10
1
527
2
421
115
2
2
true
false
false
false
false
false
low
72,034,676
How can I fix this? cant put setError to my editText
<p>I make my first android app with Android Studio, and now I want to make a setError on my editText, but I cant, I only can put a toast here is my code:</p> <pre class="lang-kotlin prettyprint-override"><code>class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding overrid...
I make my first android app with Android Studio, and now I want to make a setError on my editText, but I cant, I only can put a toast here is my code: [CODE]
android
-1
2022-04-27T20:05:19.097Z
2,022
4
20
2
17
2
157
52
1
1
true
false
false
false
false
true
negative
72,056,506
React Native Keyboard Shows But Doesn't Appear to Detect Input (Android)
<p>I am trying to set up some inputs in React Native as shown in the code below, however I have a weird bug where I can click the input box, the keyboard shows up, but if I click the keyboard it doesn't do anything, I can't even e.g. press shift or open numbers section. The issue is definitely not displaying the value ...
I am trying to set up some inputs in React Native as shown in the code below, however I have a weird bug where I can click the input box, the keyboard shows up, but if I click the keyboard it doesn't do anything, I can't even e.g. press shift or open numbers section. The issue is definitely not displaying the value as ...
javascript|android|reactjs|react-native|expo
0
2022-04-29T10:26:07.953Z
2,022
4
10
4
273
2
638
72
5
1
true
false
false
false
false
false
zero
71,899,680
How to activate suggestion lamp dialog box, when cursor is on it
<p>When Android studio is updated, android warning suggestions box not showing up when mouse cursor on it. <a href="https://i.stack.imgur.com/sjcLt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sjcLt.png" alt="enter image description here" /></a></p> <p>But when lamp is clicked box that i want to s...
When Android studio is updated, android warning suggestions box not showing up when mouse cursor on it. But when lamp is clicked box that i want to show appears. How to auto activate it when mouse cursor move.
android|kotlin|ide|warnings|preview
0
2022-04-17T06:02:58.210Z
2,022
4
6
6
19
2
209
64
5
0
false
false
false
false
false
false
zero
72,088,634
Official android.location.Location.getBearing() documentation out of sync with Android project source code
<p>The <a href="https://android.googlesource.com/platform/frameworks/base/+/03d7a23d36a0ba278c7aa6af310c72a20f87fa24/location/java/android/location/Location.java#765" rel="nofollow noreferrer">source code</a> for <code>getBearing()</code> method states:</p> <pre><code> /** * Get the bearing, in degrees. * ...
The source code for getBearing() method states: [CODE] But the official Android docs for that class have the range defined as: [CODE] which clearly differs in whether 0 or 360 is valid or invalid, i.e. the invalid bearing of 0.0 which indicates the Location does not have a bearing, is valid according to the developer p...
android|geolocation
0
2022-05-02T15:05:02.757Z
2,022
5
15
0
21
2
613
106
2
2
true
false
false
false
false
false
zero
72,069,148
Alternatives to UIAutomatorViewer to inspect an Android app while running it
<p>The developers I'm working with in my team need to make automated integration tests and in some of them need to make actions on particular elements within specific pages of their app.</p> <p>To do so, they're using UI Automator, but the &quot;uiautomatorviewer&quot; is causing some problems due to uncovered Java ver...
The developers I'm working with in my team need to make automated integration tests and in some of them need to make actions on particular elements within specific pages of their app. To do so, they're using UI Automator, but the &quot;uiautomatorviewer&quot; is causing some problems due to uncovered Java versions (tha...
android|android-uiautomator|uiautomatorviewer
0
2022-04-30T14:02:47.587Z
2,022
4
14
5
534
2
1,699
76
3
0
false
false
false
false
false
false
zero
71,979,680
I can't get my app to ask for BLUETOOTH_SCAN permission
<p>I am trying to add a &quot;Scan available bluetooth devices&quot; to my app. My app is running on devices with Android 7 or higher.</p> <p>Till now, what I've found is that I must use the function <code>startDiscovery()</code> which makes use of the permission <code>BLUETOOTH_SCAN</code>. But for some reason, I can'...
I am trying to add a &quot;Scan available bluetooth devices&quot; to my app. My app is running on devices with Android 7 or higher. Till now, what I've found is that I must use the function startDiscovery() which makes use of the permission BLUETOOTH_SCAN . But for some reason, I can't get the dialog to show up for tha...
android|permissions|bluetooth
0
2022-04-23T12:37:28.180Z
2,022
4
12
5
790
2
1,713
55
3
2
true
false
false
false
false
false
zero
72,015,434
Scale Imagebuttons to fit width
<p>I have a Scrollview with a ConstraintLayout and I want to add some Imagebuttons. They should be scaled to fit the half width so I can put 2 Buttons in a row. The whole thing must me scrollable because I want to add about 10 rows of buttons. I tried many options like seen here <a href="https://stackoverflow.com/quest...
I have a Scrollview with a ConstraintLayout and I want to add some Imagebuttons. They should be scaled to fit the half width so I can put 2 Buttons in a row. The whole thing must me scrollable because I want to add about 10 rows of buttons. I tried many options like seen here ConstraintLayout: how to have a view be hal...
android|android-constraintlayout
0
2022-04-26T14:09:32.620Z
2,022
4
14
1
24
2
382
31
2
1
true
false
false
false
false
false
zero
71,917,830
How can i use a variable from an Activity to another Activty?
<p>In my <code>MainActivity</code> i have a score variable, <code>int score = 0;</code></p> <p>however i have another activity which is the <code>DisplayScore</code> activity (which displays the score) <code>txtFinalScore.setText(&quot;Score: &quot; + score);</code></p> <p>how can i use that same variable form my <cod...
In my MainActivity i have a score variable, int score = 0; however i have another activity which is the DisplayScore activity (which displays the score) txtFinalScore.setText(&quot;Score: &quot; + score); how can i use that same variable form my MainActivity to my DisplayScore activity so that i can display the score?
java|android-studio|variables
0
2022-04-18T22:50:02.873Z
2,022
4
22
0
25
2
319
61
3
0
false
false
false
false
false
false
zero
71,932,903
How to make a mini fab in Jetpack Compose
<p>In XML we can make the floating action button in 2 sizes (regular and <a href="https://material.io/components/buttons-floating-action-button/android#mini-fabs" rel="nofollow noreferrer">mini</a>) like the following</p> <pre><code> &lt;com.google.android.material.floatingactionbutton.FloatingActionButton ... app...
In XML we can make the floating action button in 2 sizes (regular and mini ) like the following [CODE] My Question is how to make mini fab in Compose as the FloatingActionButton implementation as the follow (with no parameter for the size) [CODE]
android|android-jetpack-compose|floating-action-button
0
2022-04-20T00:48:29.940Z
2,022
4
0
2
537
2
246
41
3
2
true
false
false
false
false
false
zero
71,931,429
How is my recyclerview item meant to communicate with the database?
<p>I have recyclerview with each item holding some buttons and text.</p> <p>I am setting my onViewClickListener in the ViewHolder. I have a Room database initialized in the MainActivity.</p> <p>In terms of good app architecture, how should I change the data in my database once my OnClickListener triggers?</p> <p>Do I p...
I have recyclerview with each item holding some buttons and text. I am setting my onViewClickListener in the ViewHolder. I have a Room database initialized in the MainActivity. In terms of good app architecture, how should I change the data in my database once my OnClickListener triggers? Do I pass the database as a pa...
java|android|oop
0
2022-04-19T21:11:46.457Z
2,022
4
21
1
26
2
565
67
3
0
false
false
false
false
false
false
zero
71,932,068
How to do calculation using widget
<pre><code>import 'package:flutter/material.dart'; class Screen2 extends StatefulWidget { late final String name; late final String email; late final String quantity; late final String movie; // late final String price; String? price; // late final String total; // String? movie; // late final int t...
[CODE] So basically I wanted to make a calculation at the &quot;Total Price: &quot; but I'm not sure how to do it using the widget. what I think was that when widget.price * widget.quantity means that price * quantity but the result shows for example price = 20 and quantity = 2 , the result will be 2020 , please help
android|flutter|android-studio
0
2022-04-19T22:35:50.283Z
2,022
4
22
1
26
2
318
34
3
1
true
false
false
false
false
false
zero
72,003,429
Send header to server
<p>To send the header to the server in Kathleen language with Retrofit library, I use the following form</p> <p>But the header is not sent</p> <pre><code>@POST(&quot;testPost.php&quot;) fun postNews(@Query(&quot;txt&quot;) txt:String) : Single&lt;List&lt;News&gt;&gt; </code></pre>
To send the header to the server in Kathleen language with Retrofit library, I use the following form But the header is not sent [CODE]
android|android-studio|kotlin|mvvm
0
2022-04-25T17:26:20.010Z
2,022
4
17
0
28
2
135
21
4
1
true
false
false
false
false
false
zero
72,053,336
Android Gradle Plugin: Plugin [id: 'com.android.application', version: '7.1.3', apply: false] was not found in any of the following sources
<p>This is my first time using Android Studio, and I'm trying to run my first Hello World app, But when I open Android Studio, and it's trying to build the Gradle, the following error is displayed in Build View:</p> <blockquote> <p>Plugin [id: 'com.android.application', version: '7.1.3', apply: false] was not found in ...
This is my first time using Android Studio, and I'm trying to run my first Hello World app, But when I open Android Studio, and it's trying to build the Gradle, the following error is displayed in Build View: Plugin [id: 'com.android.application', version: '7.1.3', apply: false] was not found in any of the following so...
android-studio|gradle|android-gradle-plugin
1
2022-04-29T05:45:14.710Z
2,022
4
5
4
540
2
1,163
139
3
2
true
false
false
false
false
false
low
71,944,474
How to know when the Recyler view in android is done inflating items?
<p>The requirement is that I want to highlight the first item of recycler view on my screen. I am using recyclerView.getChildAt(0) to get the first item but how do I figure out whether the first item of recycler view is available or not? I can't directly call getChildAt() because in some cases the network response migh...
The requirement is that I want to highlight the first item of recycler view on my screen. I am using recyclerView.getChildAt(0) to get the first item but how do I figure out whether the first item of recycler view is available or not? I can't directly call getChildAt() because in some cases the network response might b...
java|android|kotlin|android-recyclerview|pagination
0
2022-04-20T18:23:40.927Z
2,022
4
18
2
31
2
410
69
5
0
false
false
false
false
false
false
zero
72,082,629
How to navigate errors showing after I run React Native app on Mac with command 'react-native run-android'?
<p>I run the app with the command &quot;react-native run-android&quot; and it worked. But after logging in the app with user login info, it shows black error screens and following is the error message.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snipp...
I run the app with the command &quot;react-native run-android&quot; and it worked. But after logging in the app with user login info, it shows black error screens and following is the error message. [CODE] As seen in the error message, error is located at many places but I assume it's not like that. What I am wondering...
javascript|android|reactjs|react-native
0
2022-05-02T05:26:36.357Z
2,022
5
5
0
287
2
594
107
4
2
true
false
false
false
false
false
zero
71,816,472
place ImageView on ImageButton
<p>so i want to crate a pause button for a game and i want to use the drawable button and the pause icon but it gives me this error</p> <blockquote> <p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crazyromteam.musicworldrecreation/com.crazyromteam.musicworldrecreation.GameActivity}: android.vi...
so i want to crate a pause button for a game and i want to use the drawable button and the pause icon but it gives me this error java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crazyromteam.musicworldrecreation/com.crazyromteam.musicworldrecreation.GameActivity}: android.view.InflateException: Bi...
android|imageview|android-framelayout
0
2022-04-10T12:10:55.093Z
2,022
4
12
6
33
2
517
30
3
1
true
false
false
false
false
false
zero
71,800,813
How do you access a UI element from an adapter view holder class inside a fragment?
<p>I am developing an E-commerce app which displays the users products they have added to their carts, inside a recycleview. I would like for the user to be able to increase the quantity for an item when they click a button by 1, which I have successfully implemented, but the problem that I am having is that the widg...
I am developing an E-commerce app which displays the users products they have added to their carts, inside a recycleview. I would like for the user to be able to increase the quantity for an item when they click a button by 1, which I have successfully implemented, but the problem that I am having is that the widget is...
java|android
0
2022-04-08T17:02:47.690Z
2,022
4
17
4
34
2
632
83
2
1
true
false
false
false
false
false
zero
71,863,378
Resulution of graphics for mobile games
<p>Does it matter, how high the resultion of my graphics are (the picture of my player is 1500 x 2000 px) or are there any problems, that the game couldn't work very well or smooth or something like that? (Unity, 2D Game)</p>
Does it matter, how high the resultion of my graphics are (the picture of my player is 1500 x 2000 px) or are there any problems, that the game couldn't work very well or smooth or something like that? (Unity, 2D Game)
android|unity3d|mobile|graphics
-2
2022-04-13T20:14:12.480Z
2,022
4
20
2
34
2
218
39
4
0
false
false
false
false
false
true
negative
72,117,434
How to add add TextView below ListView in a DrawerLayout so that it fills width and height properly?
<p>I am tasked with adding a TextView below ListView in a DrawerLayout. The TextView must stay at the bottom. I've achieved this partially (see &quot;Request Removal&quot; item in pic), but there are some aspects that I cannot get right. The Drawer has worked fine for a while btw. I'm just trying to modify what's the...
I am tasked with adding a TextView below ListView in a DrawerLayout. The TextView must stay at the bottom. I've achieved this partially (see &quot;Request Removal&quot; item in pic), but there are some aspects that I cannot get right. The Drawer has worked fine for a while btw. I'm just trying to modify what's there wi...
android|android-layout|listview|textview|android-linearlayout
0
2022-05-04T17:52:58.393Z
2,022
5
17
2
34
2
1,015
100
5
1
true
false
false
false
false
false
zero
71,883,467
Launching activity from the background, doesn't run the function in onResume()
<p>In my application, when the app stops recording audio it launches another activity and runs the function automaticSync() in the onResume(), but when the device is locked it does not run the function from the background, is there a way to run a function in the second activity from the background when launched.</p> <p...
In my application, when the app stops recording audio it launches another activity and runs the function automaticSync() in the onResume(), but when the device is locked it does not run the function from the background, is there a way to run a function in the second activity from the background when launched. Recording...
java|android|android-studio|android-activity
0
2022-04-15T11:27:49.390Z
2,022
4
11
4
35
2
389
78
4
2
true
false
false
false
false
false
zero
71,914,912
How to specify in a lambda "accepts generic sub-type of a generic type"?
<p>This question is a derivative of a recent one I made <a href="https://stackoverflow.com/questions/71913498">here</a></p> <p>While that one was resolved, I immediately faced a new one of a similar nature, but I am also not able to find a solution for it.</p> <p>Sample example:</p> <pre class="lang-kotlin prettyprint-...
This question is a derivative of a recent one I made here While that one was resolved, I immediately faced a new one of a similar nature, but I am also not able to find a solution for it. Sample example: [CODE] Usage example would be Some sealed class [CODE] And the function call [CODE] I tried doing the following, but...
android|kotlin|generics
2
2022-04-18T17:15:22.797Z
2,022
4
17
0
35
2
600
72
3
4
true
false
false
false
false
false
low
71,837,912
how do i add a pop up buble on a fragment?
<p>hello i have a issue i can't put a pop up on a fragment in android studio</p> <p>here's the code i try to use , the thing i try is to add a pop up to my fragment that when i click on a button a pop up show and show some text in it tho i tried to add a working code in the fargemnt it just dont work</p> <pre><code>pub...
hello i have a issue i can't put a pop up on a fragment in android studio here's the code i try to use , the thing i try is to add a pop up to my fragment that when i click on a button a pop up show and show some text in it tho i tried to add a working code in the fargemnt it just dont work [CODE]
java|android|android-fragments
1
2022-04-12T06:17:36.080Z
2,022
4
6
1
36
2
298
42
3
1
true
false
false
false
false
false
low
37,784,000
OnMapReadyCallback not triggered when using Fragment
<p>The <strong>onMapReady</strong> function is never called. It needs to be triggered for proper initializating of my GoogleMap.</p> <pre><code>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
The onMapReady function is never called. It needs to be triggered for proper initializating of my GoogleMap. [CODE] Should I inherit MapFragment instead of Fragment ? Because I get another Error when I do: it returns a NullPointerException in MainActivity [CODE] main_activity.xml [CODE] activity_maps.xml [CODE] Many th...
android|android-fragments
0
2016-06-13T07:29:41.260Z
2,016
6
7
0
3,077
3
492
52
2
5
true
false
true
false
false
false
zero
37,655,712
Scrolling issue with BottomSheet - Android
<p>I need the <code>BottomSheet</code> to stop at two positions. I have the following code for <code>BottomSheet</code>.</p> <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quo...
I need the BottomSheet to stop at two positions. I have the following code for BottomSheet . [CODE] and [CODE] This code works fine except one thing. The very first time I have to scroll up the BottomSheet and then I can down scroll it. I cannot directly down scroll the sheet. Any help will be appreciated.
java|android|bottom-sheet
8
2016-06-06T11:00:33.537Z
2,016
6
11
0
12,294
3
307
42
3
2
true
false
true
true
false
false
medium
37,650,908
Permission granted in app by user Android M
<p>I want to in my app. if <code>permission</code> already granted not show <code>dialog</code> in android this is my code</p> <pre><code>@Override public void onClick(View v) { switch (v.getId()){ case R.id.button: requestContactsPermissions(); break; case R.id.button...
I want to in my app. if permission already granted not show dialog in android this is my code [CODE] @Override public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { [CODE]
android|android-6.0-marshmallow
2
2016-06-06T06:34:44.543Z
2,016
6
6
0
5,383
3
217
43
2
2
true
false
true
false
false
false
low
37,859,682
Custom xml converter with Retrofit 2.0.2 is never called
<p>I have to use retrofit 2.0.2 with xml api response. But my custom xml converter is never called.</p> <p>Playing around with this I found out:</p> <ul> <li>if I use Volley to parse the same response, the same custom xml converter IS called;</li> <li>if I apply GsonConverterFactory to my RestClient and parse json re...
I have to use retrofit 2.0.2 with xml api response. But my custom xml converter is never called. Playing around with this I found out: if I use Volley to parse the same response, the same custom xml converter IS called; if I apply GsonConverterFactory to my RestClient and parse json response, my custom JsonAdapter (@Js...
android|retrofit
2
2016-06-16T12:46:33.400Z
2,016
6
12
3
2,315
3
633
56
2
3
true
false
false
false
false
false
low
37,992,365
How to set the elevation of an AppBarLayout programmatically in the Android Support Library v24.0.0?
<p>When upgrading from the Android Support Library v23.4.0 to v24.0.0, setting the elevation to 0 programmatically to an AppBarLayout stopped working:</p> <pre><code>appBayLayout.setElevation(0); </code></pre> <p>It does work when setting the elevation in the XML.</p>
When upgrading from the Android Support Library v23.4.0 to v24.0.0, setting the elevation to 0 programmatically to an AppBarLayout stopped working: [CODE] It does work when setting the elevation in the XML.
android|android-support-library|android-support-design
19
2016-06-23T12:58:44.257Z
2,016
6
12
3
6,671
3
206
100
3
1
true
false
true
false
true
false
medium
37,850,139
Cannot Zoom Android Map fragment to the current location
<p>This is not the first question im posting regarding this matter in Stack Overflow. I really need help to zoom my map fragment to the current location. Please don't think I'm not trying anything. I tried a lot. </p> <p>I need to zoom my map to the current location and <strong>no matter how hard I tried map zoom to a...
This is not the first question im posting regarding this matter in Stack Overflow. I really need help to zoom my map fragment to the current location. Please don't think I'm not trying anything. I tried a lot. I need to zoom my map to the current location and no matter how hard I tried map zoom to another location not ...
android|google-maps|android-fragments
2
2016-06-16T04:53:37.757Z
2,016
6
4
3
2,064
3
814
56
3
4
true
false
false
false
false
false
low
37,676,961
Error on adding firebase dependency in android
<p>I am trying to add firebase dependency in my project. I already gsm play services dependencies added, as soon as I insert firebase dependency, gsm dependency shows error.</p> <pre><code>buildscript { repositories { maven { url 'https://maven.fabric.io/public' } jcenter() } dependencies { classpath 'io....
I am trying to add firebase dependency in my project. I already gsm play services dependencies added, as soon as I insert firebase dependency, gsm dependency shows error. [CODE] It points error in gms play services library
android|firebase|android-gradle-plugin
2
2016-06-07T10:33:54.433Z
2,016
6
10
1
2,576
3
222
46
3
1
true
false
false
false
false
false
low
37,873,934
how to fetch record by pagination using Fetch query and CRMSDK2015 from MS CRM to Android?
<p>by using sdk and fetch query i got 5000 records in one request and it takes too much time for fetch.</p> <p>please give me suggestion how to get records in page by page using Fetch query and sdk in Android. </p>
by using sdk and fetch query i got 5000 records in one request and it takes too much time for fetch. please give me suggestion how to get records in page by page using Fetch query and sdk in Android.
android|dynamics-crm-2011|crm|dynamics-crm-2013
0
2016-06-17T05:41:56.180Z
2,016
6
5
4
785
3
199
90
4
0
false
false
false
false
false
false
zero
37,854,419
Why can Android AlertDialog's width and height = -1
<p>I have three questions to AlertDialog. First of all, I will post my code Then ask my question.</p> <pre><code>&lt;LinearLayout android:id="@+id/l2" android:layout_width="200dp" android:layout_height="200dp" android:background="@android:color/holo_orange_light" xmlns:android="http://schemas.android.com/apk/res/andro...
I have three questions to AlertDialog. First of all, I will post my code Then ask my question. [CODE] This is the view to display in the AlertDialog, In the activity_main.xml, I have set a button to open the AlertDialog,The following is the code of listener. [CODE] The logcat information screenshot in the following: Lo...
android|android-alertdialog
0
2016-06-16T08:56:42.633Z
2,016
6
8
3
530
3
673
51
2
2
true
false
false
false
false
false
zero
37,653,391
Cannot launch AVD in emulator Android Studio
<p>Problem with emulator in android studio 2...</p> <p>Cannot launch AVD in emulator</p> <pre><code>Output: libGL error: failed to load driver: nouveau libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed reques...
Problem with emulator in android studio 2... Cannot launch AVD in emulator [CODE] and this is in Console: and when running command for that answer it gives me bash: cd: /android-sdk-linux_x86/tools/lib64/libstdc++: No such file or directory please guys help....
android|android-studio|android-emulator
17
2016-06-06T09:03:16.600Z
2,016
6
9
0
18,707
3
261
44
3
1
true
false
true
true
true
false
medium
38,015,913
Fade in and out an image constantly in Android app
<p>I'm trying to make an image fade in and out constantly, but it just fade in and out one time. How can I make it repeat constantly? Here's the code:</p> <pre><code>Animation fadeIn = new AlphaAnimation(0, 1); fadeIn.setDuration(1000); Animation fadeOut = new AlphaAnimation(1, 0); fadeOut.setStartOffset(...
I'm trying to make an image fade in and out constantly, but it just fade in and out one time. How can I make it repeat constantly? Here's the code: [CODE]
android|animation|fadein|fadeout
0
2016-06-24T14:33:09.387Z
2,016
6
14
4
532
3
154
50
4
1
true
false
false
false
false
false
zero
37,774,660
How to open the built in Equalizer programmatically in Android?
<p>I have seen many apps opening systems in built Equalizer (google play music, Spotify, Samsung stock music player). Directly, without having to write their own from scratch. How do these apps do that? I couldn't find a solution.</p> <pre><code>} else if (id == R.id.action_fx) { Intent intent = new Intent(); ...
I have seen many apps opening systems in built Equalizer (google play music, Spotify, Samsung stock music player). Directly, without having to write their own from scratch. How do these apps do that? I couldn't find a solution. [CODE]
android|equalizer
9
2016-06-12T13:12:55.793Z
2,016
6
13
6
7,444
3
234
63
2
1
true
false
true
false
false
false
medium
37,711,195
Android ListView doesn't show content when fragment is initiated for the first time
<p>I have a listview in a fragment with a customadapter loading a list of products from my mysql database. When I navigate to the fragment from my navigation drawer activity for the 1st time, it doesn't show any items but the same get printed in the log. But when the same fragment is initiated 2nd time, all items are v...
I have a listview in a fragment with a customadapter loading a list of products from my mysql database. When I navigate to the fragment from my navigation drawer activity for the 1st time, it doesn't show any items but the same get printed in the log. But when the same fragment is initiated 2nd time, all items are visi...
android|listview|sharedpreferences|json
2
2016-06-08T19:24:37.113Z
2,016
6
19
2
533
3
4,469
83
4
1
true
false
false
false
false
false
low
38,022,413
Firebase notification on child added/modified
<p>Is it possible to generate a push notification (if the app is not in the foreground) on firebase db changes? I started coding an android app.</p>
Is it possible to generate a push notification (if the app is not in the foreground) on firebase db changes? I started coding an android app.
android|firebase|firebase-realtime-database|firebase-cloud-messaging
16
2016-06-24T21:32:35.120Z
2,016
6
21
4
22,293
3
141
45
4
0
false
false
true
true
true
false
medium
37,804,878
Android Unit Tests aren't getting updated
<p>I have a few unit tests. Some are passing and some are failing. From yesterday, whatever changes I'm making to production code or these test codes, when I run the tests, it's reporting me the old results. I event changed one of my passing tests to this:</p> <pre><code>Assert.assertEquals(1, 2); </code></pre> <p>It...
I have a few unit tests. Some are passing and some are failing. From yesterday, whatever changes I'm making to production code or these test codes, when I run the tests, it's reporting me the old results. I event changed one of my passing tests to this: [CODE] It's still passing! I tried restarting Android studio, Inva...
android|unit-testing|android-studio|android-testing
1
2016-06-14T06:51:23.123Z
2,016
6
6
1
790
3
955
41
4
3
true
false
false
false
false
false
low
37,679,587
How to compile Boost 1.61 for Android NDK 11
<p>I want to install compile Boost 1.61 with clang 3.6 for android with the NDK 11 but this software : <a href="https://github.com/moritz-wundke/Boost-for-Android" rel="noreferrer">https://github.com/moritz-wundke/Boost-for-Android</a> isn't updated and doesn't support this versions.</p> <p>I want to know if anyone ha...
I want to install compile Boost 1.61 with clang 3.6 for android with the NDK 11 but this software : https://github.com/moritz-wundke/Boost-for-Android isn't updated and doesn't support this versions. I want to know if anyone has managed to this ! Thank you !
android|c++|boost
6
2016-06-07T12:36:30.397Z
2,016
6
12
1
7,190
3
258
44
3
0
false
false
true
false
false
false
medium
38,014,073
Twilio android sdk increased app size 36 MB can it be reduced?
<p>My app size was 26MB before integrating below list of dependency and jar files in my project. But after adding these it is now 62MB. can it be reduced in any possible way?</p> <p>Build.gradle file:</p> <pre><code>compile 'com.twilio:client-android:1.2.14' compile 'com.twilio:conversations-android:0.12.1' </code></...
My app size was 26MB before integrating below list of dependency and jar files in my project. But after adding these it is now 62MB. can it be reduced in any possible way? Build.gradle file: [CODE] libs folder: [CODE] Please help your reply world be appreciated.
android|twilio
2
2016-06-24T13:00:36.103Z
2,016
6
13
4
1,048
3
262
62
2
2
true
false
false
false
false
false
low
37,815,343
textView border radius from right more than left
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item &gt; &lt;shape&gt; &lt;solid android:color="@color/red"/&gt; &lt;stroke android:width="1dip" android:color="@color/grey"/&gt; &lt;corners android:bot...
[CODE] I am use this code for make border radius its make the textView border radius I increase the [CODE] But it still same like I make androd:radius:5dp my xml [CODE]
android|android-layout|textview
0
2016-06-14T14:48:14.560Z
2,016
6
14
1
281
3
168
48
3
3
true
false
false
false
false
false
zero
37,957,060
Dynamic resizing linear layout depending on location in android studio
<p>Im using android studio to develop an app, I want to have a table with a list of options that changes depending on location, for example if I am in NYC I want to display 3 options but if I'm in San Diego I want 5. My idea was to have a Linear Layout that has wrap_content as height with other linear layouts inside of...
Im using android studio to develop an app, I want to have a table with a list of options that changes depending on location, for example if I am in NYC I want to display 3 options but if I'm in San Diego I want 5. My idea was to have a Linear Layout that has wrap_content as height with other linear layouts inside of it...
java|android|android-layout|android-studio
0
2016-06-22T01:21:28.243Z
2,016
6
1
2
283
3
574
70
4
0
false
false
false
false
false
false
zero
38,017,847
Android: Do something when app is resumed
<p>I am writing an android app with multiple activities. The app needs to check-in with a server when the app is 'resumed' (be it fresh start, from locked screen or switching from a different app etc.). In other words, same stuff needs to go into onResume() of all activities.</p> <p>The check-in involves launch of an ...
I am writing an android app with multiple activities. The app needs to check-in with a server when the app is 'resumed' (be it fresh start, from locked screen or switching from a different app etc.). In other words, same stuff needs to go into onResume() of all activities. The check-in involves launch of an AsyncTask a...
android|android-lifecycle
1
2016-06-24T16:15:17.337Z
2,016
6
16
4
539
3
567
41
2
0
false
false
false
false
false
false
low
37,848,110
No audio in WebRTC over WebView in Android app
<p>I developed a simple Android app that wrap a WebView to connect to apprtc.appspot.com. The WebRTC session is establish successfully, video streams are shown in both the app and the peer (a Chrome browser on a Mac,) the audio can be heard on the app, but the Mac does not receive any audio. chrome://webrtc-internals o...
I developed a simple Android app that wrap a WebView to connect to apprtc.appspot.com. The WebRTC session is establish successfully, video streams are shown in both the app and the peer (a Chrome browser on a Mac,) the audio can be heard on the app, but the Mac does not receive any audio. chrome://webrtc-internals on t...
android|audio|webview|audio-streaming
5
2016-06-16T00:47:38.883Z
2,016
6
0
3
7,707
3
665
46
4
2
true
false
true
false
false
false
low
38,034,966
How is TabItem used when placed in the layout XML?
<p>The <a href="https://developer.android.com/reference/android/support/design/widget/TabLayout.html" rel="noreferrer"><code>TabLayout</code> documentation</a> gives an example of nesting <code>TabItem</code> directly inside <code>TabLayout</code> like so:</p> <pre><code>&lt;android.support.design.widget.TabLayout ...
The TabLayout documentation gives an example of nesting TabItem directly inside TabLayout like so: [CODE] But it gives no example of how this could be used in practice, and the documentation for TabItem says: This view is not actually added to TabLayout, it is just a dummy which allows setting of a tab items's text, ic...
android|android-layout|android-tabs|android-tablayout
35
2016-06-26T03:29:37.550Z
2,016
6
3
6
37,917
3
554
50
4
1
true
false
true
true
true
false
high
37,744,341
android app is not visible in the play store after I pushed it to Open Beta
<p>I have pushed my app from alpha to Open Beta but I cannot see it on the playstore. I want to make the app visible on playstore but disable reviews and ratings. How can I get it to work ? The link here says that the app is visible to everyone <a href="https://support.google.com/googleplay/android-developer/answer/313...
I have pushed my app from alpha to Open Beta but I cannot see it on the playstore. I want to make the app visible on playstore but disable reviews and ratings. How can I get it to work ? The link here says that the app is visible to everyone https://support.google.com/googleplay/android-developer/answer/3131213 ..
android
1
2016-06-10T09:12:19.837Z
2,016
6
9
4
542
3
315
75
1
0
false
false
false
false
false
false
low
38,000,302
How do I update recyclerView inside onBindViewHolder of its adapter?
<p>I've made a list of cards inside recyclerView. When card is held for sometime, its corresponding entry in database is deleted so after that, the card must be removed. It can be done by calling setting new updated adapter. But I'm unable to use setAdapter function inside onBindViewHolder because I don't know how to g...
I've made a list of cards inside recyclerView. When card is held for sometime, its corresponding entry in database is deleted so after that, the card must be removed. It can be done by calling setting new updated adapter. But I'm unable to use setAdapter function inside onBindViewHolder because I don't know how to get ...
android|android-recyclerview
6
2016-06-23T19:33:13.737Z
2,016
6
19
3
12,318
3
366
68
2
1
true
false
true
true
false
false
medium
37,990,914
Android how to setup selection of options and viewing screen
<p>I'm new to android and i'm trying to create an app which helps users with their workout. I understand that this question is quite big and maybe a little vague so I'll do my best to explain it in the hopes that I get an answer I can use.</p> <p>The problem is that I have been struggling with how to set up the differ...
I'm new to android and i'm trying to create an app which helps users with their workout. I understand that this question is quite big and maybe a little vague so I'll do my best to explain it in the hopes that I get an answer I can use. The problem is that I have been struggling with how to set up the different activit...
android
0
2016-06-23T11:55:12.577Z
2,016
6
11
3
32
3
875
60
1
2
true
false
false
false
false
false
zero
37,900,809
How to get String array from String instance variable in ArrayList of object?
<p>I have the following class <code>Employee</code>:</p> <pre><code>Class Employee { private String firstname; private String lastname; private int Salary; /* getters and setters */ } </code></pre> <p>I built an <code>ArrayList</code> for this class and add some <code>Employee</code>s to it, as follow...
I have the following class Employee : [CODE] I built an ArrayList for this class and add some Employee s to it, as following: [CODE] How do I get all the Employee s firstnames as a String array from the Employee ArrayList dynamically? What I am asking is something like: [CODE] Can I get this as a String array? or do I ...
java|android|arrays|arraylist|collections
-3
2016-06-18T19:22:19.890Z
2,016
6
19
5
288
3
533
77
5
3
true
false
false
false
false
true
negative
37,856,200
RecyclerView for messenger application
<p>I have converted the chat layout from listView to RecyclerView.</p> <p>Now m facing some problem, When new messages arrive then it not showing automatically, I have to manually scroll to that messages.</p> <p>Earlier in ListView it working.</p> <p>I have used set setStackFormEnd in recylerView.</p> <p>I want fea...
I have converted the chat layout from listView to RecyclerView. Now m facing some problem, When new messages arrive then it not showing automatically, I have to manually scroll to that messages. Earlier in ListView it working. I have used set setStackFormEnd in recylerView. I want feature like whatsapp has like if new ...
android|android-recyclerview|messenger
0
2016-06-16T10:12:03.350Z
2,016
6
10
3
1,059
3
517
38
3
2
true
false
false
false
false
false
zero
37,770,842
How to set Onclicklistener for actions in snackbar android?
<p>I am trying to set actions in a snackbar. I have the following code:</p> <pre><code>Snackbar.make(cb,lvMain.getChildCount()+" hotspots selected.",Snackbar.LENGTH_INDEFINITE).setAction("COPY TO",mOnClickListener).setActionTextColor(Color.RED).show(); </code></pre> <p>How do I declare the listener "mOnClickListener"...
I am trying to set actions in a snackbar. I have the following code: [CODE] How do I declare the listener "mOnClickListener" for the action ?
android|listener|snackbar
3
2016-06-12T04:52:55.437Z
2,016
6
4
6
5,667
3
141
59
3
1
true
false
true
false
false
false
low
37,932,350
Access user information across activities Firebase Android
<p>In one activity, I am signing in the user, and it moves on to another activity where the user is greeted. I am using the built-in Firebase methods for signing in a user using email/password. I have the UID in Firebase Database and this is linked with a name. I am just manually inputting users in Firebase and will im...
In one activity, I am signing in the user, and it moves on to another activity where the user is greeted. I am using the built-in Firebase methods for signing in a user using email/password. I have the UID in Firebase Database and this is linked with a name. I am just manually inputting users in Firebase and will imple...
android|firebase|firebase-realtime-database|firebase-authentication
3
2016-06-20T21:49:57.047Z
2,016
6
21
0
7,715
3
410
58
4
0
false
false
true
false
false
false
low
38,010,646
Except no App Theme , All other Themes are showing rendering problems
<p><a href="https://i.stack.imgur.com/RbWh6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RbWh6.jpg" alt="enter image description here"></a></p> <p>While using Android Studio 2.1.2 I tried using themes from app theme bar.But except no App theme ,All others are showing rendering problems? So,What i...
While using Android Studio 2.1.2 I tried using themes from app theme bar.But except no App theme ,All others are showing rendering problems? So,What is to be done exactly to sort it out? Thanks in Advance.
android|android-studio
0
2016-06-24T09:58:41.813Z
2,016
6
9
4
36
3
205
69
2
0
false
false
false
false
false
false
zero
37,631,425
How can I Block a Site in WebView
<p>I have to make a webbrowser for android, so I want to try to block a site. </p> <p>How can I do that? </p>
I have to make a webbrowser for android, so I want to try to block a site. How can I do that?
android|android-webview
0
2016-06-04T14:35:49.130Z
2,016
6
14
5
1,828
3
93
33
2
0
false
false
false
false
false
false
zero
37,927,290
Register Broadcastreceiver in manifest
<p>I have the following manifest.xml:</p> <p> </p> <pre><code>&lt;application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"&gt; &lt;receiver android:name=".PhoneStateBroadcastReceiv...
I have the following manifest.xml: [CODE] The listener receives data while the main activity is running. However when the main activity is killed, the receiver stops to output information. The receiver is an example class: [CODE] As far as I understood the android principles, when a receiver is registered in manifest t...
java|android|manifest|telephonymanager
1
2016-06-20T16:17:43.030Z
2,016
6
16
0
4,900
3
403
38
4
2
true
false
true
false
false
false
low
37,759,727
Search in Firebase based on distance
<p>I'm migrating an application that was using Mysql to firebase, and I managed to migrate it almost all, just missing the part of search, I did not quite understand how it works. I'm trying to do this query below in firebase.</p> <pre><code>SELECT *, (6371 * acos( cos(radians(?)) * cos(radians(latitude)) * cos(radian...
I'm migrating an application that was using Mysql to firebase, and I managed to migrate it almost all, just missing the part of search, I did not quite understand how it works. I'm trying to do this query below in firebase. [CODE] What I'm trying to do is pass the latitude and longitude of my User to firebase and he re...
android|firebase|firebase-realtime-database
2
2016-06-11T03:50:18.637Z
2,016
6
3
5
3,110
3
591
36
3
1
true
false
true
false
false
false
low
37,646,480
How to implement live tracking?
<p>I would like implement a live tracking in Android using Google maps. I want to show the user's movement as they move from one location to another by changing the position of the marker on the map.</p>
I would like implement a live tracking in Android using Google maps. I want to show the user's movement as they move from one location to another by changing the position of the marker on the map.
java|android|google-maps|google-maps-markers
1
2016-06-05T20:33:17.040Z
2,016
6
20
6
2,343
3
196
31
4
0
false
false
false
false
false
false
low
37,793,087
Volley ImageLoader reloading loaded images on scroll
<p>I am using the following code to load images from server in a RecyclerView:</p> <pre><code> imageLoader = CustomVolleyRequest.getInstance(context).getImageLoader(); imageLoader.get(image_url, ImageLoader.getImageListener(holder.title_img, R.drawable.reads, android.R.drawable.ic_dialog_alert)); holder.tit...
I am using the following code to load images from server in a RecyclerView: [CODE] The problem is that when i scroll up again, the loaded images are reloaded.. How to avoid this...
android|android-recyclerview|image-loading
0
2016-06-13T15:00:23.907Z
2,016
6
15
0
1,064
3
180
52
3
1
true
false
false
false
false
false
zero
37,996,601
Change the system display size programmatically Android N
<p><strong>Background</strong>: Android N comes with a feature to change system <code>Display Size</code> from settings, in addition to the previously present feature of changing <code>Font Size</code>. </p> <p><em>Change Display Size</em>:</p> <p><a href="https://i.stack.imgur.com/vGvSp.jpg" rel="noreferrer"><img sr...
Background : Android N comes with a feature to change system Display Size from settings, in addition to the previously present feature of changing Font Size . Change Display Size : Image Source: pcmag.com Question : If an app has android.permission.WRITE_SETTINGS permission to change the settings, there are ways to cha...
android|android-settings|android-7.0-nougat
14
2016-06-23T16:01:49.193Z
2,016
6
16
3
9,512
3
869
57
3
0
false
false
true
false
true
false
medium
37,845,802
Trouble with Android permissions request running code before user input
<p>I've got the following helper methods to check permissions:</p> <pre><code>private boolean canAccessLocation() { return(hasPermission(Manifest.permission.ACCESS_FINE_LOCATION)); } private boolean hasPermission(String perm) { return(PackageManager.PERMISSION_GRANTED==checkCallingOrSelfPermission(...
I've got the following helper methods to check permissions: [CODE] and I have a request method to prompt the user for access to their location [CODE] and where I need the location permissions, I write [CODE] The problem I'm having is that before the user is even shown the dialogue to allow or deny the permissions, the ...
android|android-permissions
2
2016-06-15T21:08:31.710Z
2,016
6
21
2
1,065
3
827
71
2
3
true
false
false
false
false
false
low
37,832,643
Edittext cursor not visible in android
<p>I am using custom Edittext like this</p> <pre><code>public class DosisEdittextFont extends TextView { public DosisEdittextFont(Context context) { super(context); init(context); } public DosisEdittextFont(Context context, AttributeSet attrs) { super(context, attrs); ...
I am using custom Edittext like this [CODE] But because of that cursor is not showing in EditText . how to set cursor in custom EditText ?
android
0
2016-06-15T10:21:33.173Z
2,016
6
10
2
298
3
138
38
1
1
true
false
false
false
false
false
zero
37,953,701
savedInstanceState in Fragment doesn't work
<p>something wrong with my savedInstanceState into my Fragment. </p> <p>The Save Instance doesn't work. When I switch back to "HomeMenu", all fields disappear.</p> <p>On my Activity:</p> <pre><code> private void selectItemFromDrawer(int position) { FragmentManager fragmentManager = getFragmentManager(); Fra...
something wrong with my savedInstanceState into my Fragment. The Save Instance doesn't work. When I switch back to "HomeMenu", all fields disappear. On my Activity: [CODE] Thats works.. The Fragment change properly.. The TOAST works only if the Fragment is ACTIVE.. but not if I switch back to him. example: Home => Home...
android|android-fragments
0
2016-06-21T20:09:23.287Z
2,016
6
20
1
554
3
423
43
2
2
true
false
false
false
false
false
zero
37,656,352
error: method does not override or implement a method from a supertype onCreateView
<p>I have this error : method does not override or implement a method from a supertype</p> <p>My code :</p> <p>public class MainActivity extends Fragment {</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflat...
I have this error : method does not override or implement a method from a supertype My code : public class MainActivity extends Fragment { [CODE] } Logcat : 06-06 12:04:42.579 3924-3924/net.lelandaislaposte.steven.contact E/AndroidRuntime: FATAL EXCEPTION: main Process: net.lelandaislaposte.steven.contact, PID: 3924 ja...
javascript|android
-1
2016-06-06T11:33:51.850Z
2,016
6
11
0
811
3
2,192
83
2
1
true
false
false
false
false
true
negative
37,924,936
I want to create a login Activity as facebook have
<p>I want to create a login Activity as facebook have, so how can I do this and how to communicate with server to verify these details ?</p>
I want to create a login Activity as facebook have, so how can I do this and how to communicate with server to verify these details ?
android
0
2016-06-20T14:21:49.763Z
2,016
6
14
0
45
3
133
50
1
0
false
false
false
false
false
false
zero
37,719,732
how to centralize linearlayout with items for all devices
<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_...
[CODE] Basically my point is that how can i centralize this layout? what is the accepted approach. basically what i have done is this (can this approach break down in other screens?) [CODE] but i have to adjust it. how can it automatically get in the center of the screen across all devices big or small?
java|android|android-studio|android-linearlayout
0
2016-06-09T07:41:13.863Z
2,016
6
7
3
47
3
304
57
4
2
true
false
false
false
false
false
zero
37,940,402
Android numberpicker getting stuck
<p>I have a numberpicker dialog to select hours and minutes (15 minutes interval). It works fine on large screens but on small screens and older devices it gets stuck if I try to scroll using touch. </p> <p><a href="https://i.stack.imgur.com/vzlWQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vzl...
I have a numberpicker dialog to select hours and minutes (15 minutes interval). It works fine on large screens but on small screens and older devices it gets stuck if I try to scroll using touch. I am extending the android.widget.NumberPicker and reducing the font size which helps on some devices. [CODE] What makes it ...
java|android|numberpicker
3
2016-06-21T09:21:44.270Z
2,016
6
9
1
1,071
3
537
34
3
1
true
false
false
false
false
false
low
37,980,213
Error in gradle when adding android support library
<p>I'm trying to make an app using the android support library, so if I start a new project with a basic activity, then add the android support library using the dependencies menu, I get this error:</p> <pre><code>This support library should not use a different version (24) than the `compileSdkVersion` (23) </code></p...
I'm trying to make an app using the android support library, so if I start a new project with a basic activity, then add the android support library using the dependencies menu, I get this error: [CODE] This is what my gradle file looks like: [CODE] I've not touched any other settings apart from creating the project an...
android|gradle|android-gradle-plugin|gradle-dependencies
0
2016-06-23T00:09:19.820Z
2,016
6
0
3
3,887
3
401
51
4
2
true
false
true
false
false
false
zero
37,796,125
How to change ImageView arranged uneven to even in nested ViewGroup?
<p>I am working on nested ViewGroup in Android and I have used only LinearLayout and RelativeLayout, And I need to design an Activity like this shown in image below</p> <p><a href="https://i.stack.imgur.com/tzhLv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tzhLv.png" alt="enter image description...
I am working on nested ViewGroup in Android and I have used only LinearLayout and RelativeLayout, And I need to design an Activity like this shown in image below And so I created this xml code shown below with nested ViewGroup [CODE] But My output is not as expected, it is like the image shown below with uneven arrange...
android|user-interface|viewgroup
0
2016-06-13T17:49:15.283Z
2,016
6
17
0
49
3
553
68
3
1
true
false
false
false
false
false
zero
38,003,381
Android Animation ObjectAnimator Pivot from center
<p>Another simple question that I can't seem to wrap my head around. I want an animation using ObjectAnimator to scale upwards from the center. However, I'm not sure how to set the PivotX/Y properties as any value I apply doesn't seem to affect the view. When I was using a scaleanimation, it worked fine but I must use ...
Another simple question that I can't seem to wrap my head around. I want an animation using ObjectAnimator to scale upwards from the center. However, I'm not sure how to set the PivotX/Y properties as any value I apply doesn't seem to affect the view. When I was using a scaleanimation, it worked fine but I must use an ...
android|animation|objectanimator
7
2016-06-23T23:19:57.040Z
2,016
6
23
3
6,194
3
737
50
3
2
true
false
true
false
false
false
medium
37,955,418
Retrieve image and .txt file from parse.com and display in an activity
<p>I have a listview with a list of appetizers. Once I click on a row item, a single activity will display the name of the recipe, the cook time, the image and a text file converted to string into a textview. I am able to display the name and cook time through an intent, but unable to display the image and text from t...
I have a listview with a list of appetizers. Once I click on a row item, a single activity will display the name of the recipe, the cook time, the image and a text file converted to string into a textview. I am able to display the name and cook time through an intent, but unable to display the image and text from the t...
android|android-activity|parse-platform
0
2016-06-21T22:10:44.033Z
2,016
6
22
1
52
3
550
70
3
1
true
false
false
false
false
false
zero
38,033,928
Android "()" not treated as string
<p>I have a problem with one line of code, which goes like this:</p> <pre><code>string = string.replaceAll("sin()", ""); </code></pre> <p>As you can see, in a string, all "sin()" need to be replaced with "". But the problem is that () is not treated as string and so this line of code replaces "sin()" with "()". Moreo...
I have a problem with one line of code, which goes like this: [CODE] As you can see, in a string, all "sin()" need to be replaced with "". But the problem is that () is not treated as string and so this line of code replaces "sin()" with "()". Moreover, Android studio reports warning on the () saying empty group. I tri...
android
0
2016-06-25T23:42:53.880Z
2,016
6
23
5
52
3
429
34
1
2
true
false
false
false
false
false
zero
37,691,695
Remove all item in Arraylist that corresponds to object in Remove method
<p>I'm currently facing a problem in which it doesn't remove the items which I provider in <code>remove</code> method.</p> <pre><code>ArrayList&lt;Person&gt; persons = new ArrayList&lt;&gt;(); persons.add(new Person(1,"john","london")); persons.add(new Person(1,"john","london")); persons.add(new Person(1,"john","lond...
I'm currently facing a problem in which it doesn't remove the items which I provider in remove method. [CODE] The size of the Arraylist remains the same even I already removed an item. How can I remove all items corresponding to the object I put inside remove method?
android|arraylist
0
2016-06-08T00:56:32.337Z
2,016
6
0
2
53
3
267
72
2
1
true
false
false
false
false
false
zero
37,640,349
Best way to distribute Android builds through a private channel
<p>My app is now in the alpha status and I would like to distribute it to a few people (QA, alpha testers...) without making the app public. I know, that google play offers a private channel to distribute apps in alpha/beta state to some people, but according to the website it takes a few hours until the application is...
My app is now in the alpha status and I would like to distribute it to a few people (QA, alpha testers...) without making the app public. I know, that google play offers a private channel to distribute apps in alpha/beta state to some people, but according to the website it takes a few hours until the application is av...
android|testing|build|server|repository
1
2016-06-05T09:24:39.487Z
2,016
6
9
6
309
3
1,226
63
5
0
false
false
false
false
false
false
low
37,905,811
Turn gps automatically when I open my maps activity
<pre><code>Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE"); intent.putExtra("enabled", true); sendBroadcast(intent); </code></pre> <p>I used the above code in my main java class but it did not work. Is there any other way? </p>
[CODE] I used the above code in my main java class but it did not work. Is there any other way?
java|android|google-maps
1
2016-06-19T09:35:22.777Z
2,016
6
9
6
565
3
95
51
3
1
true
false
false
false
false
false
low
37,909,408
NativeAdsExpress forces RecyclerView to Scroll to have the NativeAd fully visible when first loaded
<p>I have a weird "problem" or may be it's a "feature" and I just don't know, whenever a NativeAdExpress is loaded in my RecyclerView if only part of the NativeAd is visible, it forces the RecyclerView to scroll until the Native ad becomes fully visible, this behavior causes the list to keep jumping as I scroll.</p> <...
I have a weird "problem" or may be it's a "feature" and I just don't know, whenever a NativeAdExpress is loaded in my RecyclerView if only part of the NativeAd is visible, it forces the RecyclerView to scroll until the Native ad becomes fully visible, this behavior causes the list to keep jumping as I scroll. My Layout...
android|admob|android-recyclerview|native-ads
7
2016-06-19T16:28:18.483Z
2,016
6
16
6
1,589
3
1,091
99
4
4
true
false
false
false
false
false
medium
37,713,735
How to check if a button is clicked after 2 secs?
<p>I have an android app which sends likes to the server.</p> <p>What i want to do is not to send a like to server immediately but send after 2 secs if user still likes the post.</p> <p>My like void;</p> <pre><code>public void rotationAnimation(ImageView button, int source1, int source2){ if(isLikeClicked){ ...
I have an android app which sends likes to the server. What i want to do is not to send a like to server immediately but send after 2 secs if user still likes the post. My like void; [CODE]
android|server|delay|android-view
-1
2016-06-08T22:04:03.410Z
2,016
6
22
2
55
3
189
49
4
1
true
false
false
false
false
true
negative
37,717,231
Action bar search suggestion with blank data
<p>The Below code is for the suggestion in the action bar. the data is displayed as the blank. but the data is available on selection. i am not able to figure out what is wrong. can somebody help me.</p> <p><a href="https://i.stack.imgur.com/5saIu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5saI...
The Below code is for the suggestion in the action bar. the data is displayed as the blank. but the data is available on selection. i am not able to figure out what is wrong. can somebody help me. ****//search suggestion in the menu**** [CODE] //menu [CODE] //the load text view [CODE]
android
0
2016-06-09T05:05:25.787Z
2,016
6
5
3
55
3
285
44
1
3
true
false
false
false
false
false
zero
38,032,926
How can I 'group' custom classes together?
<p>I have some custom classes, which contain information about different viewtypes in a <code>RecyclerView</code>, like title, description, etc (there are different variables for each class though). I want to add these classes to an <code>ArrayList</code>, but I don't want it to be a generic (Object?) <code>ArrayList</...
I have some custom classes, which contain information about different viewtypes in a RecyclerView , like title, description, etc (there are different variables for each class though). I want to add these classes to an ArrayList , but I don't want it to be a generic (Object?) ArrayList , I want to make sure only my cust...
java|android|class
1
2016-06-25T21:00:17.557Z
2,016
6
21
5
55
3
639
42
3
1
true
false
false
false
false
false
low
37,607,106
React Native error: undefined is not an object (evaluating '_this2.props.navigator.push')
<p>So Basically I am getting error in the title which is related to the navigator. The error pops up when I press on the Icon.</p> <p>What I basically want to do is make a Tab bar at the top that switches between three different views: feed, wiki, and message board</p> <p>Here is my index.android.js: (imports Nav)</p...
So Basically I am getting error in the title which is related to the navigator. The error pops up when I press on the Icon. What I basically want to do is make a Tab bar at the top that switches between three different views: feed, wiki, and message board Here is my index.android.js: (imports Nav) [CODE] Here is my Nav...
javascript|android|reactjs|react-native
1
2016-06-03T06:12:59.617Z
2,016
6
6
4
2,872
3
331
89
4
2
true
false
true
false
false
false
low
37,636,074
How to resize images to fit a fixed size inside a CardView in Android?
<p>I have several CardViews with an ImageView to the left of each one.</p> <p>Each ImageView has a layout_weight to make it fit the same width for every CardView and a fixed height (in this case, 80dp).</p> <p>When the images are horizontal they look OK, like <strong>1</strong>, <strong>2</strong> and <strong>5</stro...
I have several CardViews with an ImageView to the left of each one. Each ImageView has a layout_weight to make it fit the same width for every CardView and a fixed height (in this case, 80dp). When the images are horizontal they look OK, like 1 , 2 and 5 . But when those are vertical they don't fit the same like 3 and ...
android|android-layout|imageview|android-linearlayout|android-cardview
0
2016-06-04T23:43:38.240Z
2,016
6
23
5
3,384
3
680
70
5
1
true
false
true
false
false
false
zero
37,720,097
Unit Test Cases with JUnit +(Robolectric or Mockito or both in Android)
<p>This is first time I have to write unit test cases in Android.</p> <p>So I have searched lots of things.</p> <ol> <li><strong>Robolectric framewordk</strong> - Runs on JVM</li> <li><strong>Mockito Framwork</strong> - Mocking objects</li> </ol> <p>So I have some doubts in Robolectric &amp; Mokito.</p> <ol> <li>Sh...
This is first time I have to write unit test cases in Android. So I have searched lots of things. Robolectric framewordk - Runs on JVM Mockito Framwork - Mocking objects So I have some doubts in Robolectric & Mokito. Should I have to use Robolectric only with JUnit in Android app? Should I have to use Mockito only with...
android|mockito|junit4|robolectric
43
2016-06-09T08:01:38.443Z
2,016
6
8
3
11,320
3
553
71
4
0
false
false
true
false
true
false
high
37,966,171
Retrofit - Append text to the end of end point after queries inserted
<p>I want to produce the end point like <code>/api/method?page=1.json</code> but the problem is queries will be inserted at the end just like <code>/api/method.json?page=1</code>.</p> <pre><code>// from my service @GET("method.json") Call&lt;Void&gt; method(@Query("page") int page); // building retrofit new Retrofit....
I want to produce the end point like /api/method?page=1.json but the problem is queries will be inserted at the end just like /api/method.json?page=1 . [CODE] Update/ Following works but I @Blackbelt answer is the best one. [CODE]
android|retrofit|retrofit2
2
2016-06-22T11:05:38.747Z
2,016
6
11
2
1,081
3
230
69
3
2
true
false
false
false
false
false
low
37,766,425
Unable to fetch facebook profile picture, to insert in ImageView
<p>I am unable to fetch the facebook profile picture, in order to display it in my fragment. Name, Birthday and link is fetched successfully, however the application stops working when I try to fetch the profile picture. How to get rid of this situation?</p> <pre><code>private FacebookCallback&lt;LoginResult&gt; callb...
I am unable to fetch the facebook profile picture, in order to display it in my fragment. Name, Birthday and link is fetched successfully, however the application stops working when I try to fetch the profile picture. How to get rid of this situation? [CODE]
android
-1
2016-06-11T17:08:55.673Z
2,016
6
17
5
59
3
258
64
1
1
true
false
false
false
false
true
negative
37,974,739
SetHint updates TextEdit only after OnClickListener (after clicking on button)
<p>SetHint updates TextEdit only after OnClickListener (after clicking on button) In my case, when user type some text in TextEdit, and activates toggle, Hint will change only after he/she submit button was pressed. If I for example will press on Toggle, hint will be the same as original.</p> <p>I want to make SetHint...
SetHint updates TextEdit only after OnClickListener (after clicking on button) In my case, when user type some text in TextEdit, and activates toggle, Hint will change only after he/she submit button was pressed. If I for example will press on Toggle, hint will be the same as original. I want to make SetHint work just ...
android
1
2016-06-22T17:32:26.907Z
2,016
6
17
2
59
3
564
78
1
1
true
false
false
false
false
false
low
37,786,570
DJI - Flight controller emulation
<p>I am trying to create an android application that can receive commands for drones from a server.</p> <p>I have bug and I can not really debug it due to the fact that I need to keep my android phone connected to the DJI Flight Controller why I use the simulator, thus I can't see the variable values and log messages....
I am trying to create an android application that can receive commands for drones from a server. I have bug and I can not really debug it due to the fact that I need to keep my android phone connected to the DJI Flight Controller why I use the simulator, thus I can't see the variable values and log messages. How can I ...
android|emulation|dji-sdk
0
2016-06-13T09:48:35.560Z
2,016
6
9
0
827
3
397
33
3
0
false
false
false
false
false
false
zero