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,329,766
Android BLE Device Button press Alert in android
<p>I am working with BLE device.I perform the code using <a href="https://developer.android.com/guide/topics/connectivity/bluetooth-le.html#notification" rel="nofollow noreferrer">android GATT</a> and it scan device and also I send immediate alert in BLE device from mobile using writeCharacteristic and BLE device is be...
I am working with BLE device.I perform the code using android GATT and it scan device and also I send immediate alert in BLE device from mobile using writeCharacteristic and BLE device is beep.But now I want to Alert in android Mobile when I press BLE device button. That exactly I don't know how to do. Thank You.
android|bluetooth-lowenergy
0
2017-06-02T13:08:10.613Z
2,017
6
13
4
806
1
314
48
2
0
false
false
false
false
false
false
zero
44,112,153
Layout in ScrollView is updated incorrectly when soft keyboard shows/hides
<p>I have a simple layout which consists of Entry and the Button. The goal is to place Button at the bottom and the Entry in the center of the remaining space. Everything works at start. Here are layout and screenshot.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ContentPage xmlns="http://xamarin.co...
I have a simple layout which consists of Entry and the Button. The goal is to place Button at the bottom and the Entry in the center of the remaining space. Everything works at start. Here are layout and screenshot. [CODE] I am also setting WindowSoftInputMode to resize in Android project (in the code, taking into acco...
android|xamarin.forms|soft-keyboard
0
2017-05-22T11:51:05.577Z
2,017
5
11
0
1,062
1
1,109
74
3
2
true
false
false
false
false
false
zero
43,946,271
Can we change/add/remove beaconparser and region if scanning has already started
<p>Can we change/add/remove beaconparsers and regions after scanning started ?</p> <p>Because i want to add/remove regions dynamically according some conditions...</p> <p>There is some explanation in this post <a href="https://stackoverflow.com/questions/28595468/exception-when-trying-to-add-a-beaconparser-to-altbeac...
Can we change/add/remove beaconparsers and regions after scanning started ? Because i want to add/remove regions dynamically according some conditions... There is some explanation in this post Exception when trying to add a BeaconParser to AltBeacon lib that it is possible to change beaconparsers since version 2.6 but ...
ibeacon-android|altbeacon
0
2017-05-12T20:50:58.897Z
2,017
5
20
4
39
1
390
80
2
0
false
false
false
false
false
false
zero
43,957,596
Error while fetching the full path name of an image in Android
<p>In order to send an image to server, while getting the path of the image , the following code is used</p> <pre><code>private String getPath(Uri uri){ String path = null; Cursor cursor = null; try { Toast.makeText(this,"Beginning of getPath()", Toast.LENGTH_LONG).show(); ...
In order to send an image to server, while getting the path of the image , the following code is used [CODE] I have set two toast methods here to check the flow of control. I'm getting the first toast message at the beginning of the method but not getting the next one...which reflects the error in the that part of the ...
android|image-processing
0
2017-05-13T20:15:49.930Z
2,017
5
20
5
39
1
435
62
2
3
true
false
false
false
false
false
zero
44,010,643
My application style changes when i run it on emulator
<p>i'm kind of knew in application developting. I'm having trouble When i'm styling the application layout. it looks good. good as the way i want the appliaction to be. but when i'm trying to run it the all application messedup all jumps to the left top of the app, anyone knows why? <a href="https://i.stack.imgur.com/9...
i'm kind of knew in application developting. I'm having trouble When i'm styling the application layout. it looks good. good as the way i want the appliaction to be. but when i'm trying to run it the all application messedup all jumps to the left top of the app, anyone knows why? This is the layout xml code: [CODE]
java|android|xml|android-layout|android-studio
1
2017-05-16T20:04:58Z
-1
-1
-1
-1
39
1
316
54
5
1
true
false
false
false
false
false
low
44,078,794
ANDROID NDK Compilation CMAKE
<p>I have an Android Project with 2 modules "A" and "B". I am using NDK i.e., CPP code in the project. So i added all my CPP code to Module B. I create a CMakeList.txt file in Module B and configured it in gradle file. I added Module A and Module B to the "Settings.gradle". I observe that though code is being compiled...
I have an Android Project with 2 modules "A" and "B". I am using NDK i.e., CPP code in the project. So i added all my CPP code to Module B. I create a CMakeList.txt file in Module B and configured it in gradle file. I added Module A and Module B to the "Settings.gradle". I observe that though code is being compiled but...
android|android-studio|android-ndk|cmake|java-native-interface
1
2017-05-19T20:51:05.500Z
2,017
5
20
4
39
1
463
29
5
0
false
false
false
false
false
false
low
44,085,676
Visual studio(xamarin), unable to set project type to Android
<p>I have created a cross platform project that targets both IOs and Android with Xamarin using Visual Studio 2017(version 15.0). I have written some custom renderers that target android specifically on my work computer. What I am trying to accomplish is setting up debug breakpoints in any android related code, but the...
I have created a cross platform project that targets both IOs and Android with Xamarin using Visual Studio 2017(version 15.0). I have written some custom renderers that target android specifically on my work computer. What I am trying to accomplish is setting up debug breakpoints in any android related code, but the pr...
xamarin.android|visual-studio-2017
0
2017-05-20T12:08:02.807Z
2,017
5
12
5
39
1
696
61
2
0
false
false
false
false
false
false
zero
44,102,089
Request future keeps sending null paramaters
<p>I am trying to pass parameters to a php file via RequestFuture in an asynctask. The class i am executing it from is my main activity, but the problem is that when i execute the asynctask it has not been sending the paramater over. and most recently i have been getting a wierd error this is my main activity</p>...
I am trying to pass parameters to a php file via RequestFuture in an asynctask. The class i am executing it from is my main activity, but the problem is that when i execute the asynctask it has not been sending the paramater over. and most recently i have been getting a wierd error this is my main activity [CODE] as yo...
java|php|android|json|asynchronous
0
2017-05-21T21:43:10.180Z
2,017
5
21
6
39
1
470
44
5
4
true
false
false
false
false
false
zero
44,187,371
How do I use the device's GPS only whenever there is no internet available?
<p>Android is constantly changing. Currently, the <code>Fused Location API</code> is being used for location detection. But in my experience, without a Data connection, the GPS signal is not being found anymore.</p> <p>How do I use the device's GPS only whenever there is no internet available?</p>
Android is constantly changing. Currently, the Fused Location API is being used for location detection. But in my experience, without a Data connection, the GPS signal is not being found anymore. How do I use the device's GPS only whenever there is no internet available?
android|android-6.0-marshmallow|android-gps
0
2017-05-25T18:22:49.933Z
2,017
5
18
3
39
1
271
75
3
0
false
false
false
false
false
false
zero
44,247,033
Android resource pre-scaling instant
<p>According to <a href="https://developer.android.com/guide/practices/screens_support.html" rel="nofollow noreferrer">Android's practices guide on multiple screen support</a>, when you don't provide the image resources for the device's density, the system automatically scales the existing resources accordingly.</p> <...
According to Android's practices guide on multiple screen support , when you don't provide the image resources for the device's density, the system automatically scales the existing resources accordingly. The following application manifest flag makes the system scale the images in runtime and on-request: [CODE] My ques...
android|performance
0
2017-05-29T16:35:30.133Z
2,017
5
16
0
39
1
487
36
2
1
true
false
false
false
false
false
zero
43,977,550
How my Scrollrect in UNITY 3d become Responsive for all screen size for android mobile phones only
<p>How my Scrollrect in UNITY become Responsive for all screen size for android mobile phones only i already make my scrollrect, buy my problem is the responsive of it for all mobile phone screen size.</p>
How my Scrollrect in UNITY become Responsive for all screen size for android mobile phones only i already make my scrollrect, buy my problem is the responsive of it for all mobile phone screen size.
android|unity3d
0
2017-05-15T10:48:44.803Z
2,017
5
10
0
295
1
198
98
2
0
false
false
false
false
false
false
zero
44,266,525
InputMethodManager showSoftInput method
<p>What is the purpose of the method showSoftInput in class InputMethodManager? I am new to android, and well for me the <a href="https://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html#showSoftInput(android.view.View,%20int,%20android.os.ResultReceiver)" rel="nofollow noreferrer">docum...
What is the purpose of the method showSoftInput in class InputMethodManager? I am new to android, and well for me the documentation is not very clear : Explicitly request that the current input method's soft input area be shown to the user, if needed. Call this if the user interacts with your view in such a way that th...
android|inputmethodmanager
2
2017-05-30T15:40:32.443Z
2,017
5
15
1
551
1
548
39
2
0
false
false
false
false
false
false
low
44,223,764
How can I get @JsonProperty annotation values specified for Jackson for use in unit tests?
<p>I've specified <code>@JsonProperty</code> annotations values for deserializing JSON to Android POJOs using Jackson 2.0.</p> <p>How can I get back the <code>@JsonProperty</code> values for use during unit testing?</p>
I've specified @JsonProperty annotations values for deserializing JSON to Android POJOs using Jackson 2.0. How can I get back the @JsonProperty values for use during unit testing?
android|jackson
-1
2017-05-28T04:16:50.400Z
2,017
5
4
6
807
1
179
90
2
0
false
false
false
false
false
true
negative
44,283,418
Navigation bar shows up on PopupMenu on immersive mode
<p>I am creating a camera app with a popup menu for some camera settings. The problem is, when I click on the button that shows the popup menu, the bottom navigation bar appears. I've already searched through online for a solution, but non has worked for me thus far.</p> <pre><code>mChangeSettingsButton.setOnClickList...
I am creating a camera app with a popup menu for some camera settings. The problem is, when I click on the button that shows the popup menu, the bottom navigation bar appears. I've already searched through online for a solution, but non has worked for me thus far. [CODE] I also have this on my main activity: [CODE] [CO...
android
1
2017-05-31T11:20:46.817Z
2,017
5
11
2
807
1
469
54
1
3
true
false
false
false
false
false
low
44,311,340
RxBinding Documentation
<p>RxBinding does not have its own documentation. The commands may be easy for professional developers but not for beginners. Does anyone have a self-documented documentation or a link that has ample resources ?</p>
RxBinding does not have its own documentation. The commands may be easy for professional developers but not for beginners. Does anyone have a self-documented documentation or a link that has ample resources ?
rx-java|rx-android|rx-binding
5
2017-06-01T15:14:05.867Z
2,017
6
15
3
2,087
1
208
23
3
0
false
false
false
false
false
false
low
44,007,225
Going from one fragment to another fragment savedInstanceState not working
<p>Good day, I have a navigation drawer activity. Inside those are fragments. I tried using the onSavedInstanceState by changing the orientation. And yes it is working. But when i go from one fragment to another. It is not being called. Please help. The specific thing that i need to do is to save the recipients list wh...
Good day, I have a navigation drawer activity. Inside those are fragments. I tried using the onSavedInstanceState by changing the orientation. And yes it is working. But when i go from one fragment to another. It is not being called. Please help. The specific thing that i need to do is to save the recipients list when ...
android|android-fragments
0
2017-05-16T16:46:14.207Z
2,017
5
16
1
40
1
401
74
2
1
true
false
false
false
false
false
zero
44,087,227
Error when trying to Delete Line from TextFile from ListView Item Click - Android C#
<p>I am trying to delete a line from a Text File by clicking on the listed string item in a ListView, but i am getting an error.</p> <p>The method I am using is to Store the TextFile lines in a <code>Line&lt;string&gt; lines</code> variable and Overwrite the TextFile by making the file empty, the storing the <code>Lin...
I am trying to delete a line from a Text File by clicking on the listed string item in a ListView, but i am getting an error. The method I am using is to Store the TextFile lines in a Line<string> lines variable and Overwrite the TextFile by making the file empty, the storing the Line<string> lines back into the file. ...
c#|android|listview|text-files|streamwriter
0
2017-05-20T14:45:44.470Z
2,017
5
14
5
40
1
383
84
5
1
true
false
false
false
false
false
zero
44,192,624
Dealing with JSON fields that can come with values of different types, Android
<p>When I fetch a listing from reddit using this endpoint: <code>https://www.reddit.com/r/Android/new/.json</code>, I get a list of posts, which have a field <code>edited</code> that comes with <code>false</code> if the post hasn't been edited yet, or with a timestamp long if it has.</p> <p>How can I deserialize this ...
When I fetch a listing from reddit using this endpoint: https://www.reddit.com/r/Android/new/.json , I get a list of posts, which have a field edited that comes with false if the post hasn't been edited yet, or with a timestamp long if it has. How can I deserialize this listing properly using Retrofit and Gson in order...
json|retrofit2|android|gson
0
2017-05-26T02:22:28.270Z
2,017
5
2
4
40
1
363
78
4
0
false
false
false
false
false
false
zero
44,324,990
Initial notifications are colored then comes the whitebox notifications?
<p>Since android Lollipop notification icons should be white. To have colored notifications I have taken an overlay image &amp; setting background as green : </p> <p>Initial notifications are coming colored green as below :</p> <p><a href="https://i.stack.imgur.com/DG4jB.png" rel="nofollow noreferrer"><img src="https...
Since android Lollipop notification icons should be white. To have colored notifications I have taken an overlay image & setting background as green : Initial notifications are coming colored green as below : But after some time notifications come whitebox : Whats wrong here ? Code is as below : [CODE] The image I am u...
android|firebase|notifications|firebase-notifications
0
2017-06-02T09:08:23.650Z
2,017
6
9
4
40
1
338
72
4
1
true
false
false
false
false
false
zero
44,340,804
Has the firebase link been removed?
<p>Long time ago I did an app on eclipse that connected to my firebase account, it used this line of code to connect to it:</p> <pre><code> Firebase authnewuser = new Firebase("https://xxxxx-xxxxx-xxxxx.firebaseio.com"); </code></pre> <p>Now, following the tutorials in Android studio itself, I can't see such "connect...
Long time ago I did an app on eclipse that connected to my firebase account, it used this line of code to connect to it: [CODE] Now, following the tutorials in Android studio itself, I can't see such "connection string", it asked me to connect to it in the tutorials, which opened a new web browser and successfully logg...
android|android-studio|firebase
0
2017-06-03T05:51:42.320Z
2,017
6
5
5
40
1
517
35
3
1
true
false
false
false
false
false
zero
44,187,088
Wrong apk getting installed on devices from play store
<p>I have published 2 apps with same package, one for phone and other for tablet (versioncode of tablet is higher). I am differentiating them using following manifest entry</p> <p>Tablet manifest: &lt; supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlarg...
I have published 2 apps with same package, one for phone and other for tablet (versioncode of tablet is higher). I am differentiating them using following manifest entry Tablet manifest: < supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true...
android|google-play
0
2017-05-25T18:06:49.163Z
2,017
5
18
3
296
1
816
54
2
0
false
false
false
false
false
false
zero
44,094,467
Incompatible gradle plugin
<p>I'm developing a Gradle plugin for Android applications and I'm not sure what I changed but suddenly I'm getting this error in my Android project when trying to build my plugin: </p> <pre><code>Error:Unable to find method 'com.google.common.base.Objects.firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/O...
I'm developing a Gradle plugin for Android applications and I'm not sure what I changed but suddenly I'm getting this error in my Android project when trying to build my plugin: [CODE] Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network conn...
android|gradle|plugins|gradle-plugin
0
2017-05-21T07:54:34.533Z
2,017
5
7
6
552
1
1,279
26
4
2
true
false
false
false
false
false
zero
44,245,031
jQuery with Cordova?
<p>i want to create a android application using Cordova, jQuery and jQuery-mobile I wrote this code for include all the file : </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override">...
i want to create a android application using Cordova, jQuery and jQuery-mobile I wrote this code for include all the file : [CODE] jQuery-mobile work perfectly but jQuery don't work i try to put some code in index.js at the end (this is index.js) : [CODE] but it don't work and it don't work too if i write some code in ...
android|jquery|cordova|jquery-mobile
0
2017-05-29T14:35:03.740Z
2,017
5
14
0
2,088
1
394
20
4
2
true
false
false
false
false
false
zero
44,053,613
Server doesn't recive HTTP request
<p>I'm having trouble with fetching to the server.</p> <p>I'm working with react-native on android emulator, and the web api is on asp.net core. The two currently are local, react-native works on port 8081 and the server on port 8647.</p> <p>This is the url i tried on postman and works : '<a href="http://localhost:86...
I'm having trouble with fetching to the server. I'm working with react-native on android emulator, and the web api is on asp.net core. The two currently are local, react-native works on port 8081 and the server on port 8647. This is the url i tried on postman and works : ' http://localhost:8647/api/convention/b1538ce0-...
android|react-native|asp.net-core|android-emulator
0
2017-05-18T16:45:48.563Z
2,017
5
16
3
41
1
801
34
4
0
false
false
false
false
false
false
zero
44,076,238
I am making an app that makes calls, how to save multiple numbers and then give to the user choose one of them?
<p>I made an application that saves a number with shared preferences, and a button that executes a call with that number.</p> <p>I would like to save multiple inputs (numbers) and names, I know I need to do that with ArrayList. </p> <p>how can I save the inputs, the name, and the number and then show to the user some...
I made an application that saves a number with shared preferences, and a button that executes a call with that number. I would like to save multiple inputs (numbers) and names, I know I need to do that with ArrayList. how can I save the inputs, the name, and the number and then show to the user some spinner with the na...
java|android|arraylist|input|save
1
2017-05-19T17:55:03.570Z
2,017
5
17
4
41
1
427
111
5
1
true
false
false
false
false
false
low
44,083,925
Webservice, unable to set cast in program
<p>Unable to set cast from url in program. MainActivity to MoviesActivity and further my program goes as shown below. Can you tell me how to set images also. I am still learning.</p> <p><strong>Screenshot</strong><a href="https://i.stack.imgur.com/gC7GO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
Unable to set cast from url in program. MainActivity to MoviesActivity and further my program goes as shown below. Can you tell me how to set images also. I am still learning. Screenshot [CODE] [CODE] [CODE] XML [CODE]
android|android-layout|android-webservice
1
2017-05-20T09:00:52.510Z
2,017
5
9
5
41
1
218
41
3
4
true
false
false
false
false
false
low
44,104,215
Listview and php
<p>I want to view all the appointment in my listview in Android.</p> <p>I've created a function for it in PHP and call <code>getAppointment.php</code> as API.</p> <p>When i do enter the first data, it appeared at my list view but when i enter the second data there is no second data on my list view. </p> <p>Here my p...
I want to view all the appointment in my listview in Android. I've created a function for it in PHP and call getAppointment.php as API. When i do enter the first data, it appeared at my list view but when i enter the second data there is no second data on my list view. Here my php code is : getAppointment.php [CODE] I'...
php|android
-1
2017-05-22T03:28:53.703Z
2,017
5
3
0
41
1
534
16
2
1
true
false
false
false
false
true
negative
44,152,820
How to create gps toogle icon in android
<p>I am a newbie to Android. My task is to create a gps icon with toggle action.</p> <p>Fore example, when the icon is clicked, it should have toggle effect.</p> <p><a href="https://i.stack.imgur.com/aziHv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aziHv.png" alt="enter image description here"...
I am a newbie to Android. My task is to create a gps icon with toggle action. Fore example, when the icon is clicked, it should have toggle effect. When the image is clicked the center should fill with color.
android
1
2017-05-24T08:19:25.603Z
2,017
5
8
2
41
1
208
40
1
0
false
false
false
false
false
false
low
44,182,644
add a timer and carry forward its value to the next activity
<p>how to add a timer to an activity and carry forward its values to the next activity?</p> <p>I have a timer in my <code>ShuffleButtons.class</code> but when i move on to the next activity <code>ShuffleButtons1.class</code>, the timer value starts from zero. Can somebody tell me how to pass on the timer value to the ...
how to add a timer to an activity and carry forward its values to the next activity? I have a timer in my ShuffleButtons.class but when i move on to the next activity ShuffleButtons1.class , the timer value starts from zero. Can somebody tell me how to pass on the timer value to the next activity? Below is my code : [C...
android-activity|timer
0
2017-05-25T14:08:47.137Z
2,017
5
14
3
41
1
324
60
2
1
true
false
false
false
false
false
zero
44,209,975
How to calculate different prices
<p>I know that this is a small and stupid question but, although I am not completely beginner in Java, I am still in beginning on my learning path. I am making an app where the user can buy books. First, all prices books had the same prices and then my "customer" said that he would like to change some prices, and mess...
I know that this is a small and stupid question but, although I am not completely beginner in Java, I am still in beginning on my learning path. I am making an app where the user can buy books. First, all prices books had the same prices and then my "customer" said that he would like to change some prices, and messed m...
android
0
2017-05-26T20:54:43.497Z
2,017
5
20
4
41
1
997
33
1
2
true
false
false
false
false
false
zero
44,213,500
Why Linear Layout come every time with the Listview?
<p>I am creating an android app in android studio. I have a XML file songlist.xml. There is two Layout one is Relative and other Linear Layout both is inside the Constrain Layout. Here is code=></p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.constraint.ConstraintLayout xmlns:android...
I am creating an android app in android studio. I have a XML file songlist.xml. There is two Layout one is Relative and other Linear Layout both is inside the Constrain Layout. Here is code=> [CODE] Ok.. The TextView is appended dynamically by java to show the list of all the songs but the main problem is the ImageView...
java|android
1
2017-05-27T06:00:32.490Z
2,017
5
6
5
41
1
896
52
2
2
true
false
false
false
false
false
low
44,224,525
wear apk is not deploying when there are product flavors
<p>When I try to deploy with these <code>productFlavors</code>, wear debug apk won't built and it is not embedded into mobile release apk. But after I delete <code>productFlavors</code> from mobile and wear <code>build.gradle</code> file, it's working as it should.</p> <pre><code> productFlavors { lite { ...
When I try to deploy with these productFlavors , wear debug apk won't built and it is not embedded into mobile release apk. But after I delete productFlavors from mobile and wear build.gradle file, it's working as it should. [CODE]
android|wear-os|android-productflavors
1
2017-05-28T06:41:40.263Z
2,017
5
6
6
41
1
231
56
3
1
true
false
false
false
false
false
low
44,304,508
Make child of scrollview 1/3 size
<p>I have this: <a href="https://i.stack.imgur.com/sSRd2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sSRd2.png" alt="enter image description here"></a></p> <p>my problem is that i have a Linearlayout wrapper with a scrollview and a Linearlayout inside.. i want every item to be 1/3 of the scrollv...
I have this: my problem is that i have a Linearlayout wrapper with a scrollview and a Linearlayout inside.. i want every item to be 1/3 of the scrollviews height no matter how many items i put into it.. When i add items to the Linearlayout it is linearlayouts, if i add 3 'items' it is almost fine.. but if i add 8 items...
android|scrollview|android-linearlayout|android-layout-weight
0
2017-06-01T10:02:20.727Z
2,017
6
10
3
41
1
972
33
4
3
true
false
false
false
false
false
zero
44,336,641
Material Specs for Settings Layout
<p>This design doesn't have material specs (TextSize, margin, padding etc) on the Official Google's Material Design Website. Does anyone know where to follow the specs from?</p> <p><a href="https://i.stack.imgur.com/yVeDf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVeDf.png" alt="enter image de...
This design doesn't have material specs (TextSize, margin, padding etc) on the Official Google's Material Design Website. Does anyone know where to follow the specs from?
android
0
2017-06-02T20:05:01.943Z
2,017
6
20
4
41
1
170
34
1
0
false
false
false
false
false
false
zero
44,269,972
Android: How to send an ics File to apps on the Phone
<p>I am creating an .ics File in my Activity. I want to send the created .ics File to a calendar app on the phone, so the app can import the events.</p> <p>Here is my code for the Intent:</p> <pre><code>`Intent intent = new Intent(Intent.ACTION_SEND); intent.addCategory(Intent.CATEGORY_APP_CALENDAR); ...
I am creating an .ics File in my Activity. I want to send the created .ics File to a calendar app on the phone, so the app can import the events. Here is my code for the Intent: [CODE] Unfortunately no calender apps are shown in the chooser.
java|android|calendar|icalendar|android-implicit-intent
-1
2017-05-30T19:00:35.693Z
2,017
5
19
1
1,321
1
241
53
5
1
true
false
false
false
false
true
negative
44,358,985
Need to display user's name and details in TextView after login
<p>I have a navigation menu as you see in the image. I am able to get the user details from the database and am able to display them on other textviews in the app. But when I try to create the TextView object for the TextViews in the Navigation Menu, I see in the debug values that the reference it is getting is "null"....
I have a navigation menu as you see in the image. I am able to get the user details from the database and am able to display them on other textviews in the app. But when I try to create the TextView object for the TextViews in the Navigation Menu, I see in the debug values that the reference it is getting is "null". Na...
android|textview
0
2017-06-04T21:32:10.797Z
2,017
6
21
6
1,833
1
531
63
2
2
true
false
false
false
false
false
zero
44,039,238
Android Studio; What is the point of inflating and saving a view into convertView?
<pre><code>@Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null){ convertView = ContactViewActivity.this.getLayoutInflater().inflate(R.layout.contact_view_field_row, parent, false); } String value = (String)getItem(position); TextView fieldValue = (TextView...
[CODE] The above code is taken from a BaseAdapter class. So what is the point of setting the inflated view to convertView? The whole point of the getView is to make a view if there isn't one, give it attributes, then return it so it can be shown in the application in the ListView right? So why not just say findViewById...
android-studio|convertview
0
2017-05-18T05:26:05.457Z
2,017
5
5
3
42
1
643
82
2
1
true
false
false
false
false
false
zero
44,084,158
Getting images rotated when showing images from IPhone in slider layout
<p>Hello i am using slider library i.e com.daimajia.slider.library.SliderLayout to show images in slide. Now this works fine and everything looks great but when i show images from iphone it rotates them. I tried finding a solution but no luck so posting question here. This is my code.</p> <pre><code>private void setSl...
Hello i am using slider library i.e com.daimajia.slider.library.SliderLayout to show images in slide. Now this works fine and everything looks great but when i show images from iphone it rotates them. I tried finding a solution but no luck so posting question here. This is my code. [CODE] I am using DefaultSliderView b...
android|slider
0
2017-05-20T09:26:10.993Z
2,017
5
9
5
42
1
401
71
2
1
true
false
false
false
false
false
zero
44,086,615
Open a actvity when a if statement comes true
<p>Hi I want to open a activity when a if statement comes true. like "if gameStatus are equal to 12, then open scoreActivity". The Code:</p> <pre><code>import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; impor...
Hi I want to open a activity when a if statement comes true. like "if gameStatus are equal to 12, then open scoreActivity". The Code: [CODE] The activity that i want to open will show to the player his score. the activity is equal to all game modes, there will be some test to the app understant what path should go on. ...
android
0
2017-05-20T13:43:31.170Z
2,017
5
13
5
42
1
436
45
1
2
true
false
false
false
false
false
zero
44,096,510
Can I stay connected via NFC without any data transfer?
<p>I wish to connect two android devices on NFC without any data transfer and stay connected as long as the devices are separated. I have been investigating ways but I cannot think of any way to make this possible.</p> <p>Please give advice if you have an idea and a detailed explanation of how I can achieve this would...
I wish to connect two android devices on NFC without any data transfer and stay connected as long as the devices are separated. I have been investigating ways but I cannot think of any way to make this possible. Please give advice if you have an idea and a detailed explanation of how I can achieve this would be really ...
java|android|nfc|ndef
-1
2017-05-21T11:50:22.493Z
2,017
5
11
6
42
1
432
55
4
0
false
false
false
false
false
true
negative
44,229,696
MapView and ViewPager : cannot use BitmapDescriptorFactory
<p>So here is the deal : I'm using my MapView inside a ViewPager. Everything works fine with it, I've forwarded life cycle, etc... But I'm not able to register and create a <em>BitmapDescriptor</em> because of BitmapDescriptorFactory throwing this :</p> <pre><code>java.lang.IllegalAccessError: Method 'void com.google....
So here is the deal : I'm using my MapView inside a ViewPager. Everything works fine with it, I've forwarded life cycle, etc... But I'm not able to register and create a BitmapDescriptor because of BitmapDescriptorFactory throwing this : [CODE] This is my OnLongClick listener for my GoogleMap: [CODE] And my addLocation...
android|google-maps-api-2
0
2017-05-28T16:39:53.247Z
2,017
5
16
6
42
1
406
58
2
3
true
false
false
false
false
false
zero
44,369,637
Gradle com.android.support and com.google.android.gms library conflict
<p>I'm working on a Firebase chat app inside my main project and I added Firebase dependencies to my build.gradle, but then I got this message after sync:</p> <blockquote> <p>All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes.) Found versions ...
I'm working on a Firebase chat app inside my main project and I added Firebase dependencies to my build.gradle, but then I got this message after sync: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes.) Found versions 25.3.1, 25.0.0, 23.4.0. Ex...
android|gradle
0
2017-06-05T13:04:55.587Z
2,017
6
13
0
298
1
800
70
2
3
true
false
false
false
false
false
zero
43,990,848
GoogleApiClient identifier expected Android Studio error
<p>I'm using Android Studio and I want to use Google API as a login. If the login is succesful, it can change to another activity. Besides that, I want to show the account name and profile picture in another activity, but I got this error: </p> <blockquote> <p>error: identifier expected GoogleApiClient = new GoogleA...
I'm using Android Studio and I want to use Google API as a login. If the login is succesful, it can change to another activity. Besides that, I want to show the account name and profile picture in another activity, but I got this error: error: identifier expected GoogleApiClient = new GoogleApiClient.Builder(this).enab...
android|android-studio|google-api
0
2017-05-16T00:48:13.710Z
2,017
5
0
1
554
1
405
56
3
1
true
false
false
false
false
false
zero
44,171,449
E/RecyclerView: No adapter attached; skipping layout. using ASYNC TASK
<p>i've had a problem, when i've tried to view this below fragment showing "skipping layout". Can any one help me out how to solve this problem please. I'm getting this "No adapter attached; skipping layout." when i CLICK any imageview on ThirdFragment UI ayout, not when the images display in Thirdfragment UI layout.</...
i've had a problem, when i've tried to view this below fragment showing "skipping layout". Can any one help me out how to solve this problem please. I'm getting this "No adapter attached; skipping layout." when i CLICK any imageview on ThirdFragment UI ayout, not when the images display in Thirdfragment UI layout. Thir...
android|android-asynctask|android-recyclerview
0
2017-05-25T02:43:42.233Z
2,017
5
2
3
554
1
613
70
3
7
true
false
false
false
false
false
zero
44,308,042
Dismiss Android PopUpWindow object makes the status bar visible. How to stop this?
<p>I am having an Activity which is fullscreen. I am making the fullscreen activity using the below code (which I am calling in onResume method)</p> <p>int currentApiVersion = Build.VERSION.SDK_INT;</p> <pre><code> final int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NA...
I am having an Activity which is fullscreen. I am making the fullscreen activity using the below code (which I am calling in onResume method) int currentApiVersion = Build.VERSION.SDK_INT; [CODE] In this Activity, I am opening a PopUpWindow object. But after opening this, the status bar becomes visible. How to stop thi...
android|statusbar|popupwindow|android-popupwindow
0
2017-06-01T12:50:02.413Z
2,017
6
12
3
1,066
1
667
82
4
1
true
false
false
false
false
false
zero
44,042,337
Android, Firebase Auth, user session still exists when user deletes and reinstall app
<p>In my first launching activity there is lines of code that checks if user is logged in by Firebase:</p> <pre><code> if (mAuth.getCurrentUser() != null) { startActivity(new Intent(SplashActivity.this, MenuActivity.class)); finish(); } else { startActiv...
In my first launching activity there is lines of code that checks if user is logged in by Firebase: [CODE] If user is logged in I open MenuActivity if not then LoginActivity In my LoginActivity I authorize with signInWithCredential . I have found one interesting problem. When user deletes application then reinstalls it...
android|firebase|firebase-authentication
2
2017-05-18T08:22:57.553Z
2,017
5
8
3
1,322
1
557
85
3
1
true
false
false
false
false
false
low
44,054,774
My App Overlay gets visible when any app Edittext is active?Is it possible?
<p>Whenever the edittext of any application clicked, whether its of fb, whatsapp,Messenger. my app overlay gets visible?is it possible?</p>
Whenever the edittext of any application clicked, whether its of fb, whatsapp,Messenger. my app overlay gets visible?is it possible?
android
-1
2017-05-18T17:52:53.480Z
2,017
5
17
3
43
1
132
75
1
0
false
false
false
false
false
true
negative
44,070,982
ListView of a Fragment (of a ViewPager inside a Fragment) that implements LoaderCallbacks<Cursor> is empty when I return back to it
<p>The ListView inside of a Fragment that contains a ViewPager is empty when I return back to it. This ViewPager is inside of a Fragment because I'm using a Navigation Drawer Layout. I'll try to explain it in more details now:</p> <p>I am using a Navigation Drawer layout and, consequently, using Fragments. In the main...
The ListView inside of a Fragment that contains a ViewPager is empty when I return back to it. This ViewPager is inside of a Fragment because I'm using a Navigation Drawer Layout. I'll try to explain it in more details now: I am using a Navigation Drawer layout and, consequently, using Fragments. In the main activity, ...
java|android|listview|android-fragments|loader
0
2017-05-19T13:08:19.190Z
2,017
5
13
4
43
1
1,118
131
5
4
true
false
false
false
false
false
zero
44,094,964
Android OnTouch.ACTION_DOWN
<p>I am using the OnTouchListener MotionEvent to design a button</p> <pre><code>public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) { tx.setText("Hello World"); } if (event.getAction() == MotionEvent.ACTION_DOWN) { tx.setT...
I am using the OnTouchListener MotionEvent to design a button [CODE] TextView : "Hello World" (no press) > "WAIT" (pressing) > "OKOK..." (pressing > 2s) if press the button <2s and release it TextView : "Hello World" (no press) > "WAIT" (pressing) > "Hello World"(Action up) > "OKOKO..." How to cancel the changing, when...
android
0
2017-05-21T08:53:56.853Z
2,017
5
8
6
43
1
348
27
1
1
true
false
false
false
false
false
zero
44,097,642
Calling Asynchronous REST method in WebApi appears as method not found
<p>I have Web Api with the following method:</p> <pre><code> [HttpPost] public HttpResponseMessage Complete(__ServiceComplete ServiceCompleteInfo) { HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.BadRequest); // Send SMS to User for completion ...
I have Web Api with the following method: [CODE] The SendServiceCompleteSms function is Asynchronous. Now, I call this function from an android app, and I monitor everything using debugger. If I comment the line and not calling SendServiceCompleteSms I receive Http.OK response in my android app. If I uncomment SendServ...
android|rest|asp.net-web-api
0
2017-05-21T13:46:47.203Z
2,017
5
13
6
43
1
586
70
3
1
true
false
false
false
false
false
zero
44,127,239
Unexpected response code 500 for when calling C# web services
<p>**Here is the web service link: geting error 500 when calling the webservice...is there anything wrong with my codes? that i need to change?</p> <p>the web service is running fine in the browser</p> <p><a href="http://www.spgautopark.com.my/spgservices/parking_registration.asmx?op=Signup" rel="nofollow noreferrer...
**Here is the web service link: geting error 500 when calling the webservice...is there anything wrong with my codes? that i need to change? the web service is running fine in the browser http://www.spgautopark.com.my/spgservices/parking_registration.asmx?op=Signup ** Registration [CODE]
java|android
1
2017-05-23T06:24:21.147Z
2,017
5
6
1
43
1
288
61
2
1
true
false
false
false
false
false
low
44,208,415
Changlable body type in case of object type for collisions in Box2d?
<p>I'm developing a game that ten balls which are BodyType.DynamicBody. And there are some obstacles which are BodyType.KinematicBody. The balls hit the obstacles and the balls rebound. This is OK. But the balls can hit each other in this way. I want that the balls can not hit each other and pass through each other.</p...
I'm developing a game that ten balls which are BodyType.DynamicBody. And there are some obstacles which are BodyType.KinematicBody. The balls hit the obstacles and the balls rebound. This is OK. But the balls can hit each other in this way. I want that the balls can not hit each other and pass through each other. To su...
android|unity3d|box2d|game-engine|game-physics
0
2017-05-26T18:52:39.333Z
2,017
5
18
4
43
1
464
68
5
0
false
false
false
false
false
false
zero
44,250,234
Unable to send this number a text message
<p>We are using Digits for SMS autenthication, and have started receiving notes from some users that they get an error message "Unable to send this number a text message". (this despite the number being a valid cell phone number) The common denominator seems to be that they operate with the same telecom operator in Nor...
We are using Digits for SMS autenthication, and have started receiving notes from some users that they get an error message "Unable to send this number a text message". (this despite the number being a valid cell phone number) The common denominator seems to be that they operate with the same telecom operator in Norway...
android|ios|twitter-digits
-1
2017-05-29T21:00:39.133Z
2,017
5
21
0
43
1
461
41
3
0
false
false
false
false
false
true
negative
44,358,380
Android RadioGroup Radiobutton Java
<p>I have two radiogroups - RadioGroupSelect, questionRG. In RadioGroupSelect is radioButton1, radioButton2. In questionRG is radiobutton questionRB1. How to set any text in questionRB1 if i will select radioButton1 and set other text, if i will select radioButton2? </p>
I have two radiogroups - RadioGroupSelect, questionRG. In RadioGroupSelect is radioButton1, radioButton2. In questionRG is radiobutton questionRB1. How to set any text in questionRB1 if i will select radioButton1 and set other text, if i will select radioButton2?
java|android|radio-button
-2
2017-06-04T20:16:39.207Z
2,017
6
20
6
43
1
263
35
3
0
false
false
false
false
false
true
negative
44,030,573
Unable to launch default home screen from a list of all launchers
<p>I am trying to get the list of all available launchers on my phone. Clicking on particular launcher from the list should make it a default Home screen launcher. On clicking the default phone launchers (TouchWiz Home in Samsung), the app stops unfortunately (but returns to the home screen which was set earlier). I co...
I am trying to get the list of all available launchers on my phone. Clicking on particular launcher from the list should make it a default Home screen launcher. On clicking the default phone launchers (TouchWiz Home in Samsung), the app stops unfortunately (but returns to the home screen which was set earlier). I could...
android|launcher
0
2017-05-17T16:43:49.637Z
2,017
5
16
2
299
1
685
65
2
1
true
false
false
false
false
false
zero
44,194,734
Design to change label color of TextInputLayout when calling on focus?
<p>here is my code </p> <pre><code> emailEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (!hasFocus) { EditText txtUser = (EditText) v; String user...
here is my code [CODE] i want to apply hint color.here i am using set hint appearance.but its not working.thanks in advance.
android|android-studio|android-textinputlayout
0
2017-05-26T06:08:25.100Z
2,017
5
6
4
299
1
124
70
3
1
true
false
false
false
false
false
zero
44,224,667
Phone State Receiver Not working in Oppo
<p>I created a basic app to check whether broadcast is received when phone state is changed, but it is not working. I tried with making outgoing call and incoming calls too. I realized these are common issues with Vivo, Honor etc. Here is Manifest</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifes...
I created a basic app to check whether broadcast is received when phone state is changed, but it is not working. I tried with making outgoing call and incoming calls too. I realized these are common issues with Vivo, Honor etc. Here is Manifest [CODE] And here is code for receiver: [CODE] Can anyone help me.
java|android|android-broadcastreceiver
1
2017-05-28T07:02:57.257Z
2,017
5
7
6
555
1
309
40
3
2
true
false
false
false
false
false
low
44,072,556
Getting the time for each application spent in the foreground in Android
<p>I'm trying to get the time when the application is in the foreground and I want to use Service while doing this because it needs to run in the background all the time.</p> <p>This is my main activity</p> <pre><code>import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bu...
I'm trying to get the time when the application is in the foreground and I want to use Service while doing this because it needs to run in the background all the time. This is my main activity [CODE] And this is the service activity that I will use for this job. [CODE] My question is should I implement the code that wi...
android|usagestatsmanager
1
2017-05-19T14:25:27.243Z
2,017
5
14
4
811
1
423
72
2
2
true
false
false
false
false
false
low
43,962,666
Can i link the google assistant sdk with the google home app?
<p>I recently setup google assistant on my windows pc and my raspberry pi. But i noticed that it couldn't play music as it says please connect to the google home app to choose a default music player. So i was wondering if there is any possible way in which i can connect my assistant to the google home app.</p>
I recently setup google assistant on my windows pc and my raspberry pi. But i noticed that it couldn't play music as it says please connect to the google home app to choose a default music player. So i was wondering if there is any possible way in which i can connect my assistant to the google home app.
android|google-home|google-assistant-sdk
2
2017-05-14T10:04:47.843Z
2,017
5
10
6
1,835
1
304
61
3
0
false
false
false
false
false
false
low
43,951,064
Android: Setting the location
<p>I want the place picker from the google places API to basically start in a fixed location in the AVD. If I use google maps or place picker it tells me "unable to determine current location", both my wifi and gps are turned on. I know that in simulation you need to give a location.</p> <p>I accessed the extended con...
I want the place picker from the google places API to basically start in a fixed location in the AVD. If I use google maps or place picker it tells me "unable to determine current location", both my wifi and gps are turned on. I know that in simulation you need to give a location. I accessed the extended controls for t...
java|android|google-api|google-places-api
0
2017-05-13T08:42:56.633Z
2,017
5
8
5
44
1
733
29
4
0
false
false
false
false
false
false
zero
44,004,156
Is it really necessary to write Java code to display the Up Navigation Button in Android?
<p>When I want to provide Up Navigation in the ActionBar of an Android activity, I just write these lines of code in the AndroidManifest.xml:</p> <pre><code>&lt;activity android:name=".SettingsActivity" android:parentActivityName=".MainActivity"&gt; &lt;meta-data android:name="android.support.PARENT_AC...
When I want to provide Up Navigation in the ActionBar of an Android activity, I just write these lines of code in the AndroidManifest.xml: [CODE] However, now I've just saw these lines of code in the java file: [CODE] All my previous projects just worked without the these lines of Java. Are they really necessary? If th...
java|android
0
2017-05-16T14:22:37.917Z
2,017
5
14
1
44
1
427
89
2
2
true
false
false
false
false
false
zero
44,038,281
How to block installation of new apps both from Google Play and from anywhere else IONIC?
<p>Can anyone tell me how to <em><strong>block installation of new apps (both from Google Play and from anywhere) by programatically level.</strong></em></p> <p>For samsung, we can achieve this by using knox software.</p> <p>Is it possible to achieve the same in <em><strong>programatically using IONIC</strong></em>.</p...
Can anyone tell me how to block installation of new apps (both from Google Play and from anywhere) by programatically level. For samsung, we can achieve this by using knox software. Is it possible to achieve the same in programatically using IONIC . Anyone help will be appreciated!!!
android|angularjs|ionic-framework
-1
2017-05-18T03:50:44.913Z
2,017
5
3
3
44
1
284
89
3
0
false
false
false
false
false
true
negative
44,174,141
Compiling with prebuilt static library
<p>I want to use ffmpeg in my android application, considering the size of built library, I decided to write a piece of c code that accomplishes a simple video task.</p> <p>I have tested my code on my Mac and it compiles and works fine. Now for the NDK part, I can't get it compiled successfully, I have several questio...
I want to use ffmpeg in my android application, considering the size of built library, I decided to write a piece of c code that accomplishes a simple video task. I have tested my code on my Mac and it compiles and works fine. Now for the NDK part, I can't get it compiled successfully, I have several questions, and hop...
c|android-ndk|shared-libraries
0
2017-05-25T06:53:02.943Z
2,017
5
6
3
44
1
661
38
3
0
false
false
false
false
false
false
zero
44,232,780
A very basic Android app is incompatible on a lot of devices
<p>So I have an app with some very basic functionalities, including writing to external Download folder, saving files to the external cache, and having an Intent that opens an email app. Yet my app is only compatible on 372 devices. I was wondering what I'm doing that's causing my app to be incompatible?</p> <p>My And...
So I have an app with some very basic functionalities, including writing to external Download folder, saving files to the external cache, and having an Intent that opens an email app. Yet my app is only compatible on 372 devices. I was wondering what I'm doing that's causing my app to be incompatible? My AndroidManifes...
android|android-gradle-plugin|android-manifest|compatibility|incompatibility
0
2017-05-28T22:56:01.913Z
2,017
5
22
6
44
1
367
60
5
2
true
false
false
false
false
false
zero
44,275,743
Control MediaPlayer from personal app in background
<p>Have searched for solution but none has worked as i want.</p> <p>Am developing a app for personal usage and want to control MediaPlayer from it, while application is in background. Is it possible and if so, how to achieve that ? Targeting Android 6.0+ and to control Spotify</p> <p>Currently I'm only able to do tha...
Have searched for solution but none has worked as i want. Am developing a app for personal usage and want to control MediaPlayer from it, while application is in background. Is it possible and if so, how to achieve that ? Targeting Android 6.0+ and to control Spotify Currently I'm only able to do that in a Rooted phone...
android|android-mediaplayer
-2
2017-05-31T04:36:26.227Z
2,017
5
4
2
44
1
418
51
2
0
false
false
false
false
false
true
negative
44,280,660
want to animate view only once when the screen is open. and stop animation when user touch screen
<p>animate tram</p> <pre><code>if (tram != null &amp;&amp; pagePosition == 0 ){ final Animation animation1=new TranslateAnimation(-100f, 80.0f, 0.0f, 0.0f); animation1.setDuration(3000); animation1.setRepeatCount(0); tram.startAnimation(animation1); animation1.setFillAfter(true); animation1.s...
animate tram [CODE] when translate slide to next slide i want to stop animation. it repeat animation whenever translate slide
android|android-animation
-3
2017-05-31T09:20:01.973Z
2,017
5
9
2
44
1
125
97
2
1
true
false
false
false
false
true
negative
44,318,175
How can i create a parse query for android that will get every comment that a certain person has made?
<p>Hello i am making an app where barbers can submit their schedules(times) and then if a client clicks their name the client will be shown all of the times that that certain barber has submitted. Lets say that the barbers name is stored in the string "barberName" and that the barber names are stored in the "name" colu...
Hello i am making an app where barbers can submit their schedules(times) and then if a client clicks their name the client will be shown all of the times that that certain barber has submitted. Lets say that the barbers name is stored in the string "barberName" and that the barber names are stored in the "name" column ...
java|android|parse-platform
0
2017-06-01T22:39:43.047Z
2,017
6
22
3
44
1
728
102
3
1
true
false
false
false
false
false
zero
44,320,120
Find suitable density resource algorithm in Android
<p>If I have hdpi and xhdpi drawable resource in Android project, and if test device is mdpi, I saw that it use xhdpi. And I found the reason is better result when scaling. Is there any algorithm or table to find density resource in Android?</p>
If I have hdpi and xhdpi drawable resource in Android project, and if test device is mdpi, I saw that it use xhdpi. And I found the reason is better result when scaling. Is there any algorithm or table to find density resource in Android?
android|android-resources
0
2017-06-02T03:01:22.590Z
2,017
6
3
4
44
1
238
51
2
0
false
false
false
false
false
false
zero
44,152,526
writecharacteristic android not working with byte array
<p>I am working with byte arrays and strings.my BLE not wrtie value to the firmware.i am sending bytE Array to write value. there are show the my code as below :- </p> <pre><code> private boolean writeCharacteristic(String password,String title){ Log.w("writing log",title); if (mGatt == null) ...
I am working with byte arrays and strings.my BLE not wrtie value to the firmware.i am sending bytE Array to write value. there are show the my code as below :- [CODE]
android|bluetooth-lowenergy
0
2017-05-24T08:06:18.227Z
2,017
5
8
2
556
1
166
55
2
1
true
false
false
false
false
false
zero
44,086,412
java.lang.RuntimeException: Unable to start receiver
<p>I'm a beginner with Android. I am trying to show a notification at a specific date. When I try to run the method <code>showNotification()</code> I get the following error:</p> <blockquote> <p>java.lang.RuntimeException: Unable to start receiver com.example.azernax.dforget.ScheduleNotification: java.lang.NullP...
I'm a beginner with Android. I am trying to show a notification at a specific date. When I try to run the method showNotification() I get the following error: java.lang.RuntimeException: Unable to start receiver com.example.azernax.dforget.ScheduleNotification: java.lang.NullPointerException: Attempt to invoke virtual ...
android|android-fragments
1
2017-05-20T13:24:56.497Z
2,017
5
13
5
1,836
1
518
52
2
2
true
false
false
false
false
false
low
43,977,723
Two Fragments where only one has a Toolbar
<p>I have two <code>Fragments</code>, where A has a <code>toolbar</code> and B doesn't. In B's onCreateView I call this method:</p> <pre><code>((MainActivity) getActivity()).hideToolbar(); </code></pre> <p>Which is basically:</p> <pre><code>if (getSupportActionBar() != null) getSupportActionBar().hide(); </code>...
I have two Fragments , where A has a toolbar and B doesn't. In B's onCreateView I call this method: [CODE] Which is basically: [CODE] And when I switch from B to A I call: [CODE] It then shows the toolbar, the problem is that the toolbar shows before the FragmentTransaction is done. If I wait till the transaction is do...
java|android|android-fragments|android-toolbar
0
2017-05-15T10:57:57.453Z
2,017
5
10
0
45
1
594
42
4
3
true
false
false
false
false
false
zero
44,022,616
Using a variable to define a resource
<p>I want to display 5 random dice, of the 6 sided variety. <br/><br/> I have code that generates 5 random integers between 1 and 6, and I have 5 ImageViews of dice. They have ids set to: d6_image_view_1, d6_image_view_2, etc. In the drawable folder, I have d1.jpg, d2.jpg, etc. So if I want to change the second pict...
I want to display 5 random dice, of the 6 sided variety. I have code that generates 5 random integers between 1 and 6, and I have 5 ImageViews of dice. They have ids set to: d6_image_view_1, d6_image_view_2, etc. In the drawable folder, I have d1.jpg, d2.jpg, etc. So if I want to change the second picture to a 4, I wou...
java|android
-6
2017-05-17T10:43:24.037Z
2,017
5
10
2
45
1
579
37
2
2
true
false
false
false
false
true
negative
44,069,069
In-app Billing promotion for users who have bought something in another app
<p>We have two apps who has premium features that are unlocked by In-app purchase. One app is mostly used in winter and the other in summer. For billing we are using <a href="https://developer.android.com/google/play/billing/index.html" rel="nofollow noreferrer">Google Play Services In-app Billing</a>. We would like to...
We have two apps who has premium features that are unlocked by In-app purchase. One app is mostly used in winter and the other in summer. For billing we are using Google Play Services In-app Billing . We would like to give 50% off (by allowing to buy cheeper product) for premium features in one app for users that have ...
android|in-app-purchase|google-play-services|in-app-billing
0
2017-05-19T11:38:25.293Z
2,017
5
11
4
45
1
1,409
75
4
0
false
false
false
false
false
false
zero
44,110,389
How to touch EditTextPrefences from another activity or another thread
<p>i have a setting Activity that store name , by changing the name it must first send that to my server and if its store in server successfully then it should set in the summary of my <code>EditTextPreference</code> . </p> <p>everything works fine but at the end i cant touch the <code>EditTextPreference</code> to set...
i have a setting Activity that store name , by changing the name it must first send that to my server and if its store in server successfully then it should set in the summary of my EditTextPreference . everything works fine but at the end i cant touch the EditTextPreference to set name on it. this method is in setting...
android|android-asynctask|preferences|edittextpreference
3
2017-05-22T10:18:55.663Z
2,017
5
10
0
45
1
604
70
4
1
true
false
false
false
false
false
low
44,127,638
What are the decimal delimited letters in namespaces in stacktrace on Android involving threads
<p>I'm looking at deobfuscated stacktraces on firebase, and I'm wondering what these weird namespaces involving decimal delimited letters are:</p> <p><strong>.c.c</strong> </p> <p>and </p> <p><strong>.a.d.u$1.a</strong> </p> <p>in the below image. </p> <p>The dollars signs denote anonymous inner classes (kudos to ...
I'm looking at deobfuscated stacktraces on firebase, and I'm wondering what these weird namespaces involving decimal delimited letters are: .c.c and .a.d.u$1.a in the below image. The dollars signs denote anonymous inner classes (kudos to GhostCat), but what's the lettering? E.g.for the surface.view.c.c(boolean) method...
java|android|stack-trace
1
2017-05-23T06:48:40.223Z
2,017
5
6
1
45
1
539
95
3
0
false
false
false
false
false
false
low
44,212,323
Editext push down all content of layout
<p>Hi I'm trying to create <code>EditText</code> <strong>multiline</strong> but when I back to line all content of layout go down:</p> <p><img src="https://i.stack.imgur.com/9OjcO.png" alt="Scrennshot"></p> <p>manifest.xml</p> <pre><code>&lt;activity android:configChanges="keyboardHidden|orientation|screenSize" ...
Hi I'm trying to create EditText multiline but when I back to line all content of layout go down: manifest.xml [CODE] Activity_main.xml: [CODE]
android|android-edittext
-1
2017-05-27T02:21:37.697Z
2,017
5
2
5
45
1
143
39
2
2
true
false
false
false
false
true
negative
44,233,127
OpenCV4Android take still images
<p>I am using the code below to capture still images using OnTouch event but my app crashes as soon as I touch:</p> <pre><code>public boolean onTouch(View v, MotionEvent event) { Log.i(TAG,"onTouch event"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss"); String currentDateandTime = sdf....
I am using the code below to capture still images using OnTouch event but my app crashes as soon as I touch: [CODE] I am new to opencv. Thanks for help!
android|image|opencv|touch-event|ontouchlistener
0
2017-05-29T00:02:48.723Z
2,017
5
0
0
45
1
152
32
5
1
true
false
false
false
false
false
zero
44,240,729
how to load asyctask if new image is arrived in device ?
<p>i have designed custom gallery but problem is that every time when i open gallery asyctask is call and all image getting load again. i want to load asyctask if new images arrived into device otherwise directly gallery will be shown without load</p> <p>i have no more idea that how to do this kind of programming stuf...
i have designed custom gallery but problem is that every time when i open gallery asyctask is call and all image getting load again. i want to load asyctask if new images arrived into device otherwise directly gallery will be shown without load i have no more idea that how to do this kind of programming stuff so if the...
android
1
2017-05-29T10:53:26.003Z
2,017
5
10
0
45
1
422
56
1
1
true
false
false
false
false
false
low
44,241,943
Custom camera for all supported device
<p>I'm working on 1 project where it requires custom camera with flash,back/front camera,capture and save image. I want custom camera to be working on device (Build.VERSION.SDK_INT > 15) can anyone help regarding this? I tried some library as well but having issues in support version. Thanks for help in advance!</p>
I'm working on 1 project where it requires custom camera with flash,back/front camera,capture and save image. I want custom camera to be working on device (Build.VERSION.SDK_INT > 15) can anyone help regarding this? I tried some library as well but having issues in support version. Thanks for help in advance!
android|camera|android-camera
-2
2017-05-29T11:57:21.087Z
2,017
5
11
0
45
1
310
38
3
0
false
false
false
false
false
true
negative
44,325,452
Close android application when mobile sleep after timeout or when power button is pressed
<p>I am creating a locker application, in which I want to close my application when user presses power button to lock screen or when screen off after timeout. I have tried to do this using onResume(), onPause() function but nothings works perfect.</p>
I am creating a locker application, in which I want to close my application when user presses power button to lock screen or when screen off after timeout. I have tried to do this using onResume(), onPause() function but nothings works perfect.
android|android-layout|android-activity|android-application-class
0
2017-06-02T09:30:33.217Z
2,017
6
9
4
45
1
244
89
4
0
false
false
false
false
false
false
zero
44,328,521
Update just a part of the activity layout when edittext field is active
<p>I have an activity with 2 edittext fields. I want the activity's layout to change when the user taps on any of the edittext fields. The activity should revert to its original state when the edittext field is not active. Any suggestions?</p>
I have an activity with 2 edittext fields. I want the activity's layout to change when the user taps on any of the edittext fields. The activity should revert to its original state when the edittext field is not active. Any suggestions?
android|android-layout|android-fragments
-1
2017-06-02T12:05:20.520Z
2,017
6
12
4
45
1
236
71
3
0
false
false
false
false
false
true
negative
44,349,834
How to adjust the items in a recyclerview so that they fill exactly one page
<p>I have a RecyclerView with 3 different item types (I am required to use a RecyclerView, instead of different views because of the course exercise requirements). The result is a layout with an ExoplayerView (item_player.xml) at Top, the <code>item_step_description.xml</code> in the middle and after that an <code>item...
I have a RecyclerView with 3 different item types (I am required to use a RecyclerView, instead of different views because of the course exercise requirements). The result is a layout with an ExoplayerView (item_player.xml) at Top, the item_step_description.xml in the middle and after that an item_navigation.xml as cod...
android|android-layout|android-recyclerview
0
2017-06-04T00:51:04.367Z
2,017
6
0
6
45
1
843
76
3
4
true
false
false
false
false
false
zero
44,356,710
String parametern in URL on server side gets wrong decoding
<p>When I am trying to send URL to server, it's look like: <a href="http://192.168.0.80:8080/directory/getCertainServices/1/%D0%9A%D1%83%D0%B7%D0%BE%D0%B2%D0%BD%D1%8B%D0%B5" rel="nofollow noreferrer">http://192.168.0.80:8080/directory/getCertainServices/1/Кузовные</a> работы</p> <p>But on the server side "Кузовные ра...
When I am trying to send URL to server, it's look like: http://192.168.0.80:8080/directory/getCertainServices/1/Кузовные работы But on the server side "Кузовные работы" parameter looks like: [CODE] I am using RestTemplate from spring framework to send data from client: [CODE] Server side code: [CODE] Can anyone give an...
java|android|spring|resttemplate
0
2017-06-04T17:09:19.387Z
2,017
6
17
6
45
1
437
59
4
3
true
false
false
false
false
false
zero
44,085,899
How to make the human marker move on the map?
<p>I have a marker humanMarker on the map. How to make it move when the user is moving? </p> <pre><code>private Marker humanMarker; humanMarker = map.addMarker(new MarkerOptions() .position(new LatLng(mLocation.getLatitude(), mLocation.getLongitude())) .icon(BitmapDescriptorFactory....
I have a marker humanMarker on the map. How to make it move when the user is moving? [CODE]
java|android|google-maps|google-maps-android-api-2|marker
0
2017-05-20T12:30:09.533Z
2,017
5
12
5
301
1
91
45
5
1
true
false
false
false
false
false
zero
43,998,893
I want to sync data on Firebase (Android)
<p>The technique I'm using is delete all data related to current user and update its new data. But the problem I'm facing is it is first calling add data function then all data of current user is deleted including new data. My code is.</p> <pre><code>public class AutoSyncService extends IntentService { private st...
The technique I'm using is delete all data related to current user and update its new data. But the problem I'm facing is it is first calling add data function then all data of current user is deleted including new data. My code is. [CODE]
android|firebase|firebase-realtime-database|firebase-authentication
0
2017-05-16T10:26:56.470Z
2,017
5
10
1
557
1
239
41
4
1
true
false
false
false
false
false
zero
44,231,040
Youtube API: listener onVideoEnded() not working
<p>i'm trying to use the onVideoEnded() method, but by any reason it is not working.</p> <p>I've implemented PlayerStateChangeListener but it did not seems to be working. I've added toasts on every method of the implementation, they are not firing.</p> <p>when this activity starts, it automatically plays the video:</...
i'm trying to use the onVideoEnded() method, but by any reason it is not working. I've implemented PlayerStateChangeListener but it did not seems to be working. I've added toasts on every method of the implementation, they are not firing. when this activity starts, it automatically plays the video: [CODE] And this is t...
android|youtube-api
3
2017-05-28T19:09:46.723Z
2,017
5
19
6
557
1
387
48
2
2
true
false
false
false
false
false
low
44,079,858
Dealing with Android-Doze mode on my BLE monitoring app while user's sleeping
<p>I made the device which monitors person's health in sleep time and it connects to a smartphone via BLE.</p> <p>It's working great with the iOS app. But since Doze mode came on Android world. It's really hard to deal with it because my device is working in his sleep time.</p> <p>The main feature is that it detects...
I made the device which monitors person's health in sleep time and it connects to a smartphone via BLE. It's working great with the iOS app. But since Doze mode came on Android world. It's really hard to deal with it because my device is working in his sleep time. The main feature is that it detects particular danger a...
android|bluetooth|background|bluetooth-lowenergy|doze
2
2017-05-19T22:29:46.097Z
2,017
5
22
4
2,349
1
1,069
77
5
0
false
false
false
false
false
false
low
43,944,559
I can't unsertand if .equalTo() works in my framgent
<p>My query to see if the category is equal to a string is:</p> <pre><code>@Override public Query getQuery(DatabaseReference databaseReference) { // All my posts order by category Intent intent=getActivity().getIntent(); mPostKey = intent.getStringExtra(EXTRA_CATEGORYV); Query viewCategory = databas...
My query to see if the category is equal to a string is: [CODE] In debug, I have seen that mPostKey contains the right string, but this query shows me ALL the posts. This is my Firebase Database:
java|android|firebase|firebase-realtime-database
0
2017-05-12T18:42:01.323Z
2,017
5
18
4
46
1
195
52
4
1
true
false
false
false
false
false
zero
43,951,470
Dial up numbers which contains #
<p>I’m creating an app for Android, where I need to send in commands which contains phone numbers and commands.</p> <p>The code below works fine, when I’m passing in a normal phone number - It dials up the number as it should. But I need to pass in numbers like #200 with # as the first number, used for call forwardin...
I’m creating an app for Android, where I need to send in commands which contains phone numbers and commands. The code below works fine, when I’m passing in a normal phone number - It dials up the number as it should. But I need to pass in numbers like #200 with # as the first number, used for call forwarding commands. ...
c#|android|xamarin|xamarin.android
1
2017-05-13T09:27:53.997Z
2,017
5
9
5
46
1
433
32
4
1
true
false
false
false
false
false
low
43,966,301
How to do the below
<p>I have a java class called JobModel, it implements the interface IModel. This model contains one item.</p> <pre><code>public interface IModel&lt;T&gt; { T Instantiate(JSONObject o); } </code></pre> <p>The referenced function looks like this in the JobModel Class.</p> <pre><code>public IModel&lt;JobModel&gt; Inst...
I have a java class called JobModel, it implements the interface IModel. This model contains one item. [CODE] The referenced function looks like this in the JobModel Class. [CODE] I have a controller called BaseController which takes a Generic Type. This controller implements IOnAsyncResult and IController. Both of the...
java|android|json
-2
2017-05-14T16:28:27.573Z
2,017
5
16
6
46
1
1,424
19
3
7
true
false
false
false
false
true
negative
43,976,050
Android JAVA not getting exact latitude and longitude
<p>I am using below code to get latitude and longitude of the current location</p> <pre><code>address = coder.getFromLocationName(strAddress,5); if (address==null) { return null; } Address location=address.get(0); location.getLatitude(); location.getLongitude(); p1 = new GeoPoint((double) (location.getLatitude() ...
I am using below code to get latitude and longitude of the current location [CODE] The problem is : it is not giving exact location, instead it is providing 50 mts apart. upon starting GPS and wi-fi this code returns "null". I want some technique where i can ask user to keep marker at exact location and then i can take...
java|android|cordova|google-maps|jquery-mobile
-2
2017-05-15T09:37:30.250Z
2,017
5
9
0
46
1
340
53
5
1
true
false
false
false
false
true
negative
44,133,210
Back Stack in fragments not working
<p>I have a home activity in that I am replacing fragments as required.</p> <p>In home activity I have main fragment, then from main fragment I am replacing a Transport fragment, from Transport fragment I am replacing TransportList Fragment.</p> <p>Now as I press back from TransportList fragment I see the main fragme...
I have a home activity in that I am replacing fragments as required. In home activity I have main fragment, then from main fragment I am replacing a Transport fragment, from Transport fragment I am replacing TransportList Fragment. Now as I press back from TransportList fragment I see the main fragment instead of Trans...
java|android|android-fragments|fragment-backstack
0
2017-05-23T11:13:30.853Z
2,017
5
11
1
46
1
498
35
4
2
true
false
false
false
false
false
zero
44,153,213
Android SDK support
<p>I am new to android and i have a doubt that if we remove Android SDK from Android Studio and install Android NDK in it, than in this situation Android Studio will work or not. Or can we create apps in java in this situation.(I think we can't).</p>
I am new to android and i have a doubt that if we remove Android SDK from Android Studio and install Android NDK in it, than in this situation Android Studio will work or not. Or can we create apps in java in this situation.(I think we can't).
android|android-sdk-tools
0
2017-05-24T08:39:15.690Z
2,017
5
8
2
46
1
243
19
2
0
false
false
false
false
false
false
zero
44,199,295
Custom List view value fluctuated when new value added?
<p>I am trying do the chatting application. When send a message that should be in right side , received message should be in left side. I have done everything in good manner. when I add new value in list view , previous value has fluctuated. Please can any one solve my problem ? I have attached my source code.</p> <p>...
I am trying do the chatting application. When send a message that should be in right side , received message should be in left side. I have done everything in good manner. when I add new value in list view , previous value has fluctuated. Please can any one solve my problem ? I have attached my source code. Main Activi...
java|android|listview
0
2017-05-26T10:30:59.373Z
2,017
5
10
4
46
1
377
55
3
2
true
false
false
false
false
false
zero
44,213,799
How to sync with online json beucase offline sqlite get populated with duplicate entries?
<p>I was working on a notification system which grabs data using volley and save it in the offline db(sqlite) and shows it via listview so users can see the notification on offline the problem is that I was able to get last entered notification properly .</p> <pre><code>$query="SELECT * FROM ( SELECT * FROM tnews ORDE...
I was working on a notification system which grabs data using volley and save it in the offline db(sqlite) and shows it via listview so users can see the notification on offline the problem is that I was able to get last entered notification properly . [CODE] but when I try to insert it into offline db it gets populate...
android|json|sqlite
0
2017-05-27T06:37:03.660Z
2,017
5
6
5
46
1
669
89
3
2
true
false
false
false
false
false
zero
44,222,926
Web page layout on android
<p>hope this question won't get downvoted given that I've done the respective research.</p> <p>I'm trying to develop a responsive web for practice and it worked on pc, every time I changed the size it'd resize proportionally but when I tried to enter on my phone (Samsung Galaxy S3) it did not change. </p> <p>The tec...
hope this question won't get downvoted given that I've done the respective research. I'm trying to develop a responsive web for practice and it worked on pc, every time I changed the size it'd resize proportionally but when I tried to enter on my phone (Samsung Galaxy S3) it did not change. The technique used was to se...
android|html|css|web|responsive
2
2017-05-28T01:10:09.237Z
2,017
5
1
6
46
1
676
26
5
2
true
false
false
false
false
false
low
44,242,737
I Got some error msgs after "Build Successful" while installing React-native on my windows
<p>I've spent over 5 days on this (trying to install react-native on win 7). Finally achieved success only to see a few errors again after the "BUILD SUCCESSFUL":</p> <pre><code>BUILD SUCCESSFUL Total time: 3 mins 18.927 secs Running C:\Users\Romeo\AppData\Local\Android\sdk/platform-tools/adb -s emulator- 5554 rever...
I've spent over 5 days on this (trying to install react-native on win 7). Finally achieved success only to see a few errors again after the "BUILD SUCCESSFUL": [CODE] Pls, What could be the problem? Thanks!
android|react-native|installation|windows-7-x64
-1
2017-05-29T12:39:10.467Z
2,017
5
12
0
46
1
206
90
4
1
true
false
false
false
false
true
negative
44,303,129
Image Shrinking And Enlarging in Android app
<p>I am using ImageView With width="Match_Parent" &amp; Height="200dp" and ScaleType="Fitxy" in my xml file,Exactly what resolutions(In pixels) should in use for MDPI,HDPI,XHDPI,XXHDPI,XXXHDPI for this particular insistance.</p> <p>Thanks in advance!</p>
I am using ImageView With width="Match_Parent" & Height="200dp" and ScaleType="Fitxy" in my xml file,Exactly what resolutions(In pixels) should in use for MDPI,HDPI,XHDPI,XXHDPI,XXXHDPI for this particular insistance. Thanks in advance!
android|android-layout|photoshop|android-image|image-scaling
-2
2017-06-01T09:06:31.410Z
2,017
6
9
3
46
1
236
44
5
0
false
false
false
false
false
true
negative
44,350,150
Developing for Android vs developing for IOS
<p>I have been working some time with Android and now considering a new job on iOS, so I was wondering how many new concepts would have to learn. I know iOS is another planet but this is just to clear a bit more the whole picture.</p> <p>So, what are the similitudes and differences between developing an Android app an...
I have been working some time with Android and now considering a new job on iOS, so I was wondering how many new concepts would have to learn. I know iOS is another planet but this is just to clear a bit more the whole picture. So, what are the similitudes and differences between developing an Android app and an iOS ap...
android|ios|similarity|difference
-1
2017-06-04T02:06:47.023Z
2,017
6
2
6
46
1
322
44
4
0
false
false
false
false
false
true
negative
44,345,753
How to convert Address from user input into LatLng Xamarin.Android
<p>I am trying to convert a users input in Edit text to LatLng when the Search button is clicked. This will then update the camera and move tot hat position. Here is my code in the main:</p> <pre><code>using Android.App; using Android.Widget; using Android.OS; using Android.Gms.Maps; using Android.Views; using Android...
I am trying to convert a users input in Edit text to LatLng when the Search button is clicked. This will then update the camera and move tot hat position. Here is my code in the main: [CODE] When I use this right now, I get an exception error. Please HELP!!!
c#|google-maps|xamarin|xamarin.android|google-maps-android-api-2
1
2017-06-03T15:46:47.590Z
2,017
6
15
5
558
1
258
66
5
1
true
false
false
false
false
false
low