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
37,900,009
Accessing a list item's view and data at the same time
<p>I am working on a messaging application and would like to set the chat bubble as coming from the left or the right depending on who the owner of the message is.</p> <pre><code>public class Message { public String messageText; public boolean mine; // ...Constructor } </code></pre> <p>Inside <code>Messa...
I am working on a messaging application and would like to set the chat bubble as coming from the left or the right depending on who the owner of the message is. [CODE] Inside MessageAdapter I have: [CODE] I have been following tutorials to migrate from ListView to RecyclerView and am now unclear as to how to access bot...
android|android-layout|android-recyclerview|android-view|android-viewholder
0
2016-06-18T17:54:42.713Z
2,016
6
17
5
41
1
663
54
5
3
true
false
false
false
false
false
zero
37,916,839
Parse Xml returns only 1 item
<p>I want to get the <code>File</code> nodes of this xml document, can anyone help me with archive this issue?</p> <p>I have this xml document:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Replies&gt; &lt;FileList&gt; &lt;File&gt;cip13_test.rts&lt;/File&gt; &lt;File&gt;databar_lmt.rts&lt;/Fi...
I want to get the File nodes of this xml document, can anyone help me with archive this issue? I have this xml document: [CODE] and I need to get all File -items from this. I have this code but I get only cip13_test.rtx . [CODE]
java|android|xml|loops|parsing
0
2016-06-20T07:33:04.333Z
2,016
6
7
0
41
1
228
29
5
2
true
false
false
false
false
false
zero
37,937,120
Facing issue Appium to start
<p>Facing issue, app is opens and closes</p> <p>[debug] [Instruments] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) : Failed to launch process with bundle identifier 'in.fybr'</p> <p>[debug] [Instruments] Instruments exited ...
Facing issue, app is opens and closes [debug] [Instruments] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) : Failed to launch process with bundle identifier 'in.fybr' [debug] [Instruments] Instruments exited with code 253 [Inst...
android|ios
0
2016-06-21T06:36:13.610Z
2,016
6
6
1
41
1
602
28
2
0
false
false
false
false
false
false
zero
37,973,788
How can I implement different travel types with google directions api for an android app?
<p>I already implemented the basic route between 2 points, but I want to be able to choose if I want to display a driving route or a bicycle route. Can someone help me, please? </p>
I already implemented the basic route between 2 points, but I want to be able to choose if I want to display a driving route or a bicycle route. Can someone help me, please?
android|api|routes|maps|distance
-1
2016-06-22T16:36:18.677Z
2,016
6
16
2
41
1
173
89
5
0
false
false
false
false
false
true
negative
37,763,839
Volley Request Mechanism
<p>I was reading about Volley Library using this <a href="http://code.tutsplus.com/tutorials/an-introduction-to-volley--cms-23800" rel="nofollow">link</a> </p> <p>It says "First, Volley checks if the request can be serviced from cache. If it can, the cached response is read, parsed, and delivered. Otherwise it is pass...
I was reading about Volley Library using this link It says "First, Volley checks if the request can be serviced from cache. If it can, the cached response is read, parsed, and delivered. Otherwise it is passed to the network thread." So my question here is suppose volley hits some url and network gets down in middle th...
android|android-volley
0
2016-06-11T12:40:13.590Z
2,016
6
12
5
553
1
461
24
2
0
false
false
false
false
false
false
zero
38,039,495
(Non-remote) Chome Dev Tools ("Inspect element") equivalent on Android?
<p>Is there any way to have the Chrome Developer Tools or Firebug or something similar on Android <strong>without using another computer</strong>?</p> <p>I'd like to use my Android Tablet + Bluetooth keyboard as a notebook replacement, and inspecting and debugging HTML/CSS/JavaScript is the only major feature I'm miss...
Is there any way to have the Chrome Developer Tools or Firebug or something similar on Android without using another computer ? I'd like to use my Android Tablet + Bluetooth keyboard as a notebook replacement, and inspecting and debugging HTML/CSS/JavaScript is the only major feature I'm missing. Thanks in advance!
javascript|android|html|web-inspector
1
2016-06-26T14:27:54.810Z
2,016
6
14
6
553
1
316
71
4
0
false
false
false
false
false
false
low
37,951,686
How to send byte[] to BLE device without a custom UUID
<p>I am trying to send a byte array from a 6.0.1 android device to a RN4020 bluetooth module. So far I have been able to discover, bond with, and connect to the module. I am trying to send the byte array using the built in 16 bit UUID for writing without response. When I use my code I don't get any errors, the byte arr...
I am trying to send a byte array from a 6.0.1 android device to a RN4020 bluetooth module. So far I have been able to discover, bond with, and connect to the module. I am trying to send the byte array using the built in 16 bit UUID for writing without response. When I use my code I don't get any errors, the byte array ...
android|bluetooth|xamarin-studio
0
2016-06-21T18:14:11.250Z
2,016
6
18
1
809
1
389
54
3
1
true
false
false
false
false
false
zero
37,679,476
GoogleApiClient not connecting while using google fit
<p>I am trying to get the data for number of steps walked using google fit. I am implementing the code from this <a href="http://code.tutsplus.com/tutorials/google-fit-for-android-sensors-api--cms-25723" rel="nofollow">tutorial</a>. I am being asked for the account from which I want to connect google fit. After I selec...
I am trying to get the data for number of steps walked using google fit. I am implementing the code from this tutorial . I am being asked for the account from which I want to connect google fit. After I select the account, it is not connecting. After I select the account, onActivityResult is called but mApiClient.isCon...
android|google-fit|google-fit-sdk
2
2016-06-07T12:31:24.873Z
2,016
6
12
1
1,321
1
695
53
3
1
true
false
false
false
false
false
low
37,632,536
Show a fragment in an android widget
<p>I want to show a widget, which loads an already working fragment in the widget space. I can't seem to find any documentation that handles loading fragments into a widget though? Can anyone help me out?</p> <p><em>widget_current.xml</em></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout x...
I want to show a widget, which loads an already working fragment in the widget space. I can't seem to find any documentation that handles loading fragments into a widget though? Can anyone help me out? widget_current.xml [CODE] widget_provider.xml [CODE] UpcomingEventWidgets.kt [CODE] How do I go about loading the frag...
android|android-fragments|widget|fragment|kotlin
3
2016-06-04T16:28:49.617Z
2,016
6
16
5
2,089
1
345
36
5
3
true
false
false
false
false
false
low
37,683,416
dlsym: undefined symbol, Android N
<p>I would like to read value from the Android runtime shared library in my application. Since Android 5, when the new runtime was introduced and <code>libart.so</code> has first appeared, I am doing it successfully with this code:</p> <pre><code> std::unique_ptr&lt;void, int(*)(void*)&gt; handle { dlopen("libar...
I would like to read value from the Android runtime shared library in my application. Since Android 5, when the new runtime was introduced and libart.so has first appeared, I am doing it successfully with this code: [CODE] I'm testing this code on Android N simulator, and it fails! dlsym returns: [CODE] I think "OK, th...
android|c++|linux|shared-libraries|elf
4
2016-06-07T15:24:54.947Z
2,016
6
15
1
2,089
1
1,181
34
5
7
true
false
false
false
false
false
low
37,640,735
How to increase size of images means its height and width of images in android gallery strip
<p>I have changed the height &amp; width of the Gallery tag in my code, but nothing has happened. Please guide me to right path.</p> <p>Here is a screenshot of my gallery images</p> <p><a href="https://i.stack.imgur.com/gYicU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gYicU.png" alt="enter ima...
I have changed the height & width of the Gallery tag in my code, but nothing has happened. Please guide me to right path. Here is a screenshot of my gallery images And here is my XML code [CODE]
android|xml|android-layout|android-studio|android-activity
0
2016-06-05T10:14:39.377Z
2,016
6
10
6
42
1
194
92
5
1
true
false
false
false
false
false
zero
37,763,578
Why compiled APK does not respect minSdkVersion?
<p>I have created a sample project from an Android Studio with <code>minSDKVersion=17</code>. I opened compiled APK from <code>app\build\outputs\apk\</code> as a zip file and went to <code>res</code> directory. It contains a lot of directories for legacy stuff of versions older than minSDK. Why? It holds bogus 43 KB th...
I have created a sample project from an Android Studio with minSDKVersion=17 . I opened compiled APK from app\build\outputs\apk\ as a zip file and went to res directory. It contains a lot of directories for legacy stuff of versions older than minSDK. Why? It holds bogus 43 KB that will be never used. [CODE] APK: res\co...
android
1
2016-06-11T12:12:41.307Z
2,016
6
12
5
42
1
390
48
1
1
true
false
false
false
false
false
low
37,848,799
How can I obfuscate only com.foo.* but excluding com.foo.bar.*? (Proguard)
<p>I tried:</p> <pre><code>-keep class !com.foo.** { *; } -keep class com.foo.bar.** { *; } </code></pre> <p>but it obfuscates classes other than com.foo.* (which I don't want)</p> <p>I also tried:</p> <pre><code>-keep class !com.foo.**, com.foo.bar.** { *; } </code></pre> <p>and it fails to parse.</p>
I tried: [CODE] but it obfuscates classes other than com.foo.* (which I don't want) I also tried: [CODE] and it fails to parse.
java|android|proguard
0
2016-06-16T02:14:54.910Z
2,016
6
2
3
42
1
127
74
3
2
true
false
false
false
false
false
zero
37,957,069
Corona SDK is adding too much to the score
<p>In my game the user scores a point when a balloon touches the top of the screen. It also loses a point when a balloon touches a bomb. The problem is when a balloon touches a bomb they disappear like they should but it takes way too much off the score anywhere from 5 to 30. This is my first game in Corona SDK so I'm ...
In my game the user scores a point when a balloon touches the top of the screen. It also loses a point when a balloon touches a bomb. The problem is when a balloon touches a bomb they disappear like they should but it takes way too much off the score anywhere from 5 to 30. This is my first game in Corona SDK so I'm sti...
android|lua|coronasdk|collision
0
2016-06-22T01:22:39.120Z
2,016
6
1
2
42
1
409
42
4
1
true
false
false
false
false
false
zero
38,029,029
Load two depending datasets
<p>I load two datasets in the onCreate function of my activity:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { .... mDatabase.child("users").child(userId).addListenerForSingleValueEvent( new ValueEventListener() { @Override public void onDataChange(DataSnap...
I load two datasets in the onCreate function of my activity: [CODE] So I need some data of the users dataset in the events dataset. Most of the time this works, but since they are called async, they are sometimes loaded in the wrong order. So events is loaded before users is loaded. How can I fix this?
android|firebase|firebase-realtime-database
2
2016-06-25T13:28:57.403Z
2,016
6
13
5
42
1
303
27
3
1
true
false
false
false
false
false
low
38,041,443
Is there any way to rotate only a few elements on screen rotation (instead of whole screen)?
<p>Currently i'm trying to show image/video properly (<a href="https://stackoverflow.com/questions/38039186/how-can-i-rotate-image-and-video-if-it-was-captured-in-landscape-mode">How can i rotate image and video if it was captured in landscape mode?</a>) and as 1 of solution i see this one (overriding screen rotation m...
Currently i'm trying to show image/video properly ( How can i rotate image and video if it was captured in landscape mode? ) and as 1 of solution i see this one (overriding screen rotation method and prevent it for some elements). Is it possible to do? May be i can call rotation for elements whenever i want somehow?
android|rotation|screen-orientation|screen-rotation
0
2016-06-26T17:52:33.223Z
2,016
6
17
6
42
1
317
92
4
0
false
false
false
false
false
false
zero
37,757,288
Why is my Android navigation drawer opening too wide?
<p>I had a rather basic navigation drawer working pretty well -- a simple ListView. But I need a title above the selectable items, so (see below) modified the XML for the drawer to be a RelativeLayout containing a TextView for a title and then the ListView for the items.</p> <p>What resulted is quite strange. Even t...
I had a rather basic navigation drawer working pretty well -- a simple ListView. But I need a title above the selectable items, so (see below) modified the XML for the drawer to be a RelativeLayout containing a TextView for a title and then the ListView for the items. What resulted is quite strange. Even though I have ...
android|android-layout|navigation-drawer|background-color
0
2016-06-10T21:16:20.057Z
2,016
6
21
4
298
1
744
53
4
1
true
false
false
false
false
false
zero
37,896,896
Handling a complex JSON response with ArrayList inside another ArrayList
<p>Ok! I have a really complex JSON which I parsed using Retrofit library, via an Asynchronous Process. </p> <p>Actually I am parsing the Wordpress JSON, using the JSON API. And I am displaying all the posts title and content in a recyclerview adapter.</p> <p>Getting new posts title and content was very easy though. ...
Ok! I have a really complex JSON which I parsed using Retrofit library, via an Asynchronous Process. Actually I am parsing the Wordpress JSON, using the JSON API. And I am displaying all the posts title and content in a recyclerview adapter. Getting new posts title and content was very easy though. I am facing problem ...
java|android|json|wordpress|arraylist
0
2016-06-18T12:23:30.183Z
2,016
6
12
5
298
1
932
72
5
3
true
false
false
false
false
false
zero
37,969,264
How to parse JSON and pass Value to another activity?
<p>I am new to Android, so the name of the question might not be correct. Basically, I get a price as a JSONObject response (this is happening in fragment).</p> <pre><code> public void onResponse(JSONObject response) { try { int price = response.getInt("price"); } catch (JSONException ex...
I am new to Android, so the name of the question might not be correct. Basically, I get a price as a JSONObject response (this is happening in fragment). [CODE] Now, how can I pass the value of the price to another activity and set it as setText in a TextView in that particular activity?
android|json|jsonobjectrequest
-1
2016-06-22T13:17:51.657Z
2,016
6
13
2
298
1
288
53
3
1
true
false
false
false
false
true
negative
37,676,127
How to check value in edit text while entering text in android?
<p>I have a edit text field named as mobile and password and Scenario is that when app launch it appears with error text ,what I want when enter a text in respective field and after completing editing text check with value if correct then move else show error in that field.</p> <p><strong>code:-</strong></p> <pre><co...
I have a edit text field named as mobile and password and Scenario is that when app launch it appears with error text ,what I want when enter a text in respective field and after completing editing text check with value if correct then move else show error in that field. code:- [CODE]
android|android-edittext
-3
2016-06-07T09:56:39.427Z
2,016
6
9
1
554
1
285
63
2
1
true
false
false
false
false
true
negative
37,747,455
Android GridView is shows all images that are existing in a particular folder
<p>I'm using a library from github <a href="https://github.com/jaydeepw/poly-picker" rel="nofollow">https://github.com/jaydeepw/poly-picker</a>. This library displays images in LinearLayout dynamically. I wanted to display the images in gridView. On running the app the gridView shows nothing.</p> <p>The code i used is...
I'm using a library from github https://github.com/jaydeepw/poly-picker . This library displays images in LinearLayout dynamically. I wanted to display the images in gridView. On running the app the gridView shows nothing. The code i used is as follows. All declarations [CODE] Adapter code [CODE] The RetriveCapturedIma...
android|gridview
0
2016-06-10T11:44:49.847Z
2,016
6
11
4
554
1
510
77
2
2
true
false
false
false
false
false
zero
37,820,067
How do I correctly stop a Media Player in a CountDown Timer when the activity is Paused?
<p>I can successfully cancel the Countdown Timer before it finishes when the activity is paused. However, the media player implemented in the OnTick method of the canceled timer doesn't stop for 5-8 seconds. What would be the correct way to disable the sound of the media player in the CountDown Timer when the activity...
I can successfully cancel the Countdown Timer before it finishes when the activity is paused. However, the media player implemented in the OnTick method of the canceled timer doesn't stop for 5-8 seconds. What would be the correct way to disable the sound of the media player in the CountDown Timer when the activity is ...
java|android|android-studio|timer
0
2016-06-14T18:59:12.950Z
2,016
6
18
1
554
1
559
88
4
1
true
false
false
false
false
false
zero
38,005,695
Change Button Image drawableLeft programmatically can not work in android
<p>first I am telling you about the <code>Layout</code> for my Page. My <code>Button</code> is inside the <code>LinearLayout</code>. and I am using <code>weightSum</code> so that my <code>Button</code> <code>layout_height = "0dp"</code>. </p> <p>Now this is my <code>Button</code> property.</p> <pre><code>&lt;Button ...
first I am telling you about the Layout for my Page. My Button is inside the LinearLayout . and I am using weightSum so that my Button layout_height = "0dp" . Now this is my Button property. [CODE] In that I have set Image to the Button which name is round .Now I want to set OnclickListener and Change it's BackGroundCo...
android|android-layout|button|android-drawable|android-resources
2
2016-06-24T04:37:14.980Z
2,016
6
4
4
554
1
938
73
5
6
true
false
false
false
false
false
low
37,612,795
Layout displaying prolems when using back stack
<p>Im having an issue when using the android back stack. So im in my fragment 1 then go to fragment 2, adding to fragment 1 to back stack. All is fine at this point.</p> <p>Then when i press the back button whilst in fragment 2 and call popBackStack, fragment 1 then displays again, again all is fine at this point.</p>...
Im having an issue when using the android back stack. So im in my fragment 1 then go to fragment 2, adding to fragment 1 to back stack. All is fine at this point. Then when i press the back button whilst in fragment 2 and call popBackStack, fragment 1 then displays again, again all is fine at this point. Then when i tr...
android|android-fragments|back-stack
0
2016-06-03T11:08:30.287Z
2,016
6
11
4
43
1
745
47
3
4
true
false
false
false
false
false
zero
37,643,524
Android - Encode info in image pixels
<p>I have an image processing app, and I have to remember which photos have already been processed. In order to do so, I store an EXIF metadata in the image file, but if the user decides to send the image over WhatsApp, etc, the metadata is lost, so I can't rely on this.</p> <p>So I though a solution would be to use s...
I have an image processing app, and I have to remember which photos have already been processed. In order to do so, I store an EXIF metadata in the image file, but if the user decides to send the image over WhatsApp, etc, the metadata is lost, so I can't rely on this. So I though a solution would be to use some pixels ...
android|image-processing
0
2016-06-05T15:24:23.340Z
2,016
6
15
6
43
1
604
37
2
0
false
false
false
false
false
false
zero
37,688,768
Header in android application with navigation menu
<p>I am new to Android and I want to know how to best develop my app.</p> <p>My app is going to be only on tablets and I have a navigation menu on the header (not side menu like a NavDrawer but a navigation menu on header like in websites).</p> <p>The question is if it's better to make a header.xml file that contains...
I am new to Android and I want to know how to best develop my app. My app is going to be only on tablets and I have a navigation menu on the header (not side menu like a NavDrawer but a navigation menu on header like in websites). The question is if it's better to make a header.xml file that contains all the navigation...
android
0
2016-06-07T20:31:12.017Z
2,016
6
20
1
43
1
588
50
1
0
false
false
false
false
false
false
zero
37,724,504
Displaying the same tiles when zoomed in instead of getting them from server
<p>I want to display tiles on a map but when I zoom in too much the tiles disappear because the server doesn't have those tiles. I want to display the previously loaded tiles even if the user zooms in a lot.</p> <p>Following is the code</p> <pre><code> url_tile_provider = new UrlTileProvider( PathF...
I want to display tiles on a map but when I zoom in too much the tiles disappear because the server doesn't have those tiles. I want to display the previously loaded tiles even if the user zooms in a lot. Following is the code [CODE]
android|google-maps
1
2016-06-09T11:19:03.410Z
2,016
6
11
3
43
1
233
76
2
1
true
false
false
false
false
false
low
37,740,174
Don't need google sign in to do android endpoint auth?
<p>So i was playing with the google sign in and endpoint auth. Got everything figured out and can do the auth just find using</p> <pre><code>credential = GoogleAccountCredential.usingAudience(context, "server:client_id:fakewhateverstring.apps.googleusercontent.com"); credential.setSelectedAccountName("whatever@gma...
So i was playing with the google sign in and endpoint auth. Got everything figured out and can do the auth just find using [CODE] The thing I noticed is that I don't need google sign in at all. I tried commenting out all the google sign in code and put in whatever my email was for account i use on emulator. And it work...
android|google-cloud-endpoints
0
2016-06-10T04:55:06.813Z
2,016
6
4
4
43
1
480
54
2
1
true
false
false
false
false
false
zero
37,777,347
Stop .setText from overwriting ? From database cursor result
<p>I am using a method with a cursor to return all values that has the same id, like for example:</p> <p>ID_Owner | ID_Car </p> <p>1 -------- 1</p> <p>1 -------- 2</p> <p>The owner with the id, has the car 1 and 2..</p> <hr> <p>With my method im returning those values:</p> <pre><code>// Seleciona o Registo com o...
I am using a method with a cursor to return all values that has the same id, like for example: ID_Owner | ID_Car 1 -------- 1 1 -------- 2 The owner with the id, has the car 1 and 2.. With my method im returning those values: [CODE] And then, i want to show them in the same textview, but only the last one is displayed,...
java|android|android-database
-1
2016-06-12T17:52:01.590Z
2,016
6
17
6
43
1
506
60
3
2
true
false
false
false
false
true
negative
37,857,168
Android SupportLib SwitchCompat View showing patches(Bounds)
<p>here is the cropped screenshot of my app.(Just focus the switchCompat Buttons). It was working properly till today when i tried to use <strong>Android version 24</strong> and <strong>support lib version 24</strong> , it all messed up. even when i revert back to <strong>API 23</strong>, its showing the same.</p> <p>...
here is the cropped screenshot of my app.(Just focus the switchCompat Buttons). It was working properly till today when i tried to use Android version 24 and support lib version 24 , it all messed up. even when i revert back to API 23 , its showing the same. I tried invalidate cache and restart Android Studio . Android...
android|android-studio
0
2016-06-16T10:56:29.083Z
2,016
6
10
3
43
1
388
60
2
0
false
false
false
false
false
false
zero
37,912,276
How to split this activity into 2 ListViews
<p>I have this listview with drinks (bebidas) but i wanted to add a new listview in the same activity for hamburguers. My code is not working because it keeps repeating the same names.</p> <pre><code>public class Cardapios extends AppCompatActivity { DbController db; ListView listview_cardapios, listview_ha...
I have this listview with drinks (bebidas) but i wanted to add a new listview in the same activity for hamburguers. My code is not working because it keeps repeating the same names. [CODE] Layout has the 4 textviews that i replace with data from database. I want to split the 2 from the botton into a new listview. [CODE...
java|android|android-layout|listview
0
2016-06-19T22:01:40.193Z
2,016
6
22
6
43
1
448
43
4
3
true
false
false
false
false
false
zero
37,966,277
running a method asychronously
<p>I want to discover my local network and I need to ping all of clients! that it takes time! so I want to run pinging process in several threads to do this faster; and this is my try:</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentVi...
I want to discover my local network and I need to ping all of clients! that it takes time! so I want to run pinging process in several threads to do this faster; and this is my try: [CODE] I expect that 254 thread have been made and do their work asynchronously! But, unfortunately for 's loop commands takes ~254 * 3 se...
android|loops|ping|asynchronous
1
2016-06-22T11:09:19.010Z
2,016
6
11
2
43
1
351
30
4
1
true
false
false
false
false
false
low
38,052,106
Can't fit ImageView on screen
<p>How to fit image fully on screen? I need to have <code>WRAP_CONTENT</code>, not <code>MATCH_PARENT</code></p> <pre><code>im.setImageResource(resource); im.setAdjustViewBounds(true); im.setScaleType(ImageView.ScaleType.CENTER_CROP); im.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_...
How to fit image fully on screen? I need to have WRAP_CONTENT , not MATCH_PARENT [CODE] This codes places the image on upper part so bottom is grey.
android
0
2016-06-27T10:53:31.403Z
2,016
6
10
0
43
1
148
29
1
1
true
false
false
false
false
false
zero
38,001,016
Check if Google Nearby is already allowed
<p>Is there some way to verify if the Google Nearby API is already authorized or not?<br/>The method <code>enableAutoManage()</code> do everything atomatically, so, it doesn't help, I want to use the <code>publish()</code> and <code>subscribe()</code> only if I already have the permission, otherwise, do nothing. Any id...
Is there some way to verify if the Google Nearby API is already authorized or not? The method enableAutoManage() do everything atomatically, so, it doesn't help, I want to use the publish() and subscribe() only if I already have the permission, otherwise, do nothing. Any ideas?
android|google-nearby
2
2016-06-23T20:16:22.473Z
2,016
6
20
3
299
1
278
41
2
0
false
false
false
false
false
false
low
37,630,299
Ads view in recyclerview replace items
<p>I used this code to put ads within recyclerview. My issue is that the ads items replace the items of my regular layout. For example if I have a list of 10 items, I'll get the item 5 and the item 9 replaced from adview.</p> <pre><code>@Override public int getItemViewType(int position) { if (position % 5...
I used this code to put ads within recyclerview. My issue is that the ads items replace the items of my regular layout. For example if I have a list of 10 items, I'll get the item 5 and the item 9 replaced from adview. [CODE]
android|layout|android-recyclerview|ads
1
2016-06-04T12:35:12.513Z
2,016
6
12
5
555
1
225
38
4
1
true
false
false
false
false
false
low
37,766,240
Do some work on the data on firebase database
<p>I there any way of doing some work on the data in Firebase? i.e: I want to send a number from the clients and have the DB calculate an average of it and and store the result new number.</p> <p>Right now it seems like the clients need to do the calculation but it's not good and not accurate because of the simultaneo...
I there any way of doing some work on the data in Firebase? i.e: I want to send a number from the clients and have the DB calculate an average of it and and store the result new number. Right now it seems like the clients need to do the calculation but it's not good and not accurate because of the simultaneous requests...
android|firebase|firebase-realtime-database
0
2016-06-11T16:49:04.640Z
2,016
6
16
5
555
1
321
45
3
0
false
false
false
false
false
false
zero
37,897,929
Setting Alarm to repeat weekdays at different times
<p>So I'm creating an Alarm app for android but I am having some trouble setting the alarm. If Today is Saturday and I set an alarm to ring at 17:15 today and tomorrow, it should ring two times, but it doesn't ring at all. Also If no day is selected, the alarm should ring the next time the clock matches it, then turn o...
So I'm creating an Alarm app for android but I am having some trouble setting the alarm. If Today is Saturday and I set an alarm to ring at 17:15 today and tomorrow, it should ring two times, but it doesn't ring at all. Also If no day is selected, the alarm should ring the next time the clock matches it, then turn off....
java|android|calendar|alarmmanager
1
2016-06-18T14:14:46.073Z
2,016
6
14
5
555
1
930
51
4
3
true
false
false
false
false
false
low
38,051,634
Admob Native Express Ads
<p>I am trying to Integrate Native Express in one of my quote application. I have followed Google guide for same but still facing issue for integrate <strong>Admob</strong> Native Express banner in my application. Its getting crashed. I have attached LogCat as well my java and <strong>xml</strong> code for same. Please...
I am trying to Integrate Native Express in one of my quote application. I have followed Google guide for same but still facing issue for integrate Admob Native Express banner in my application. Its getting crashed. I have attached LogCat as well my java and xml code for same. Please check and let me know that what is I...
java|android|admob
1
2016-06-27T10:29:39.200Z
2,016
6
10
0
555
1
415
24
3
3
true
false
false
false
false
false
low
37,630,579
Parse and Onesignal push notifications not working together - Android
<p>Usually Parse notifications are received and it works well on my test android app.</p> <p>when i added <a href="https://onesignal.com/" rel="nofollow">Onesignal</a> to my project, Parse notification are not received anymore ?</p> <p>What can be a possible conflict ?</p>
Usually Parse notifications are received and it works well on my test android app. when i added Onesignal to my project, Parse notification are not received anymore ? What can be a possible conflict ?
parse-platform|onesignal|parse-android-sdk
1
2016-06-04T13:05:06.940Z
2,016
6
13
5
811
1
200
69
3
0
false
false
false
false
false
false
low
37,945,526
Update fragment from Activity from different thread
<p>I'm very new to Androind, trying to figure how fragment and activity should be work together. I have a very ugly layout. 1 activity and 1 "root" fragment. When user click on left menu fragment are replaced by fragment manager.</p> <pre><code>expandableList.setOnGroupClickListener(new ExpandableListView.OnGroupClick...
I'm very new to Androind, trying to figure how fragment and activity should be work together. I have a very ugly layout. 1 activity and 1 "root" fragment. When user click on left menu fragment are replaced by fragment manager. [CODE] I assume code above is supposed to replace current fragment with new one. Fragments ar...
android|android-fragments
0
2016-06-21T13:15:15.447Z
2,016
6
13
1
811
1
1,047
51
2
2
true
false
false
false
false
false
zero
37,723,002
How to implement onActivityResult within RecyclerView Fragment
<p>I am trying to have a button within a Tab which is part of an activity for uploading images, when clicking the button inside one of the 2 Tabs presented in the activity ( Tab 1 pics, Tab 2 Vid ) the user could choose an image from the device.</p> <p>My problem is implemneting the onClick Listener and onActivityResu...
I am trying to have a button within a Tab which is part of an activity for uploading images, when clicking the button inside one of the 2 Tabs presented in the activity ( Tab 1 pics, Tab 2 Vid ) the user could choose an image from the device. My problem is implemneting the onClick Listener and onActivityResult which is...
android-studio|onclick|material-design|onactivityresult
0
2016-06-09T10:11:08.287Z
2,016
6
10
3
1,067
1
788
62
4
2
true
false
false
false
false
false
zero
38,019,996
Is there a way to set a Quick Settings Tile's default state?
<p>I'm messing around with the Quick Settings API in Android N / API 24, and while I think it's pretty well thought out, I can't seem to find a way to set a Tile's default state to Tile.STATE_ACTIVE...</p> <p>I've tried setting the state in my service's onCreate method, but the getQsTile() method seems to return null ...
I'm messing around with the Quick Settings API in Android N / API 24, and while I think it's pretty well thought out, I can't seem to find a way to set a Tile's default state to Tile.STATE_ACTIVE... I've tried setting the state in my service's onCreate method, but the getQsTile() method seems to return null at times. C...
android|android-7.0-nougat
3
2016-06-24T18:34:13.490Z
2,016
6
18
4
1,323
1
533
60
2
0
false
false
false
false
false
false
low
37,851,878
PublisherAdView loadAd performance issue on Android
<p>I had some performance issues with an application (UI rendering would freeze for moments), did some digging and found that PublisherAdView.loadAd() method takes about 500-700ms to execute on Nexus 5 on cold app start and 100-200ms on subsequent runs. I expected 10-15ms at worst.</p> <p>To verify this, I downloaded ...
I had some performance issues with an application (UI rendering would freeze for moments), did some digging and found that PublisherAdView.loadAd() method takes about 500-700ms to execute on Nexus 5 on cold app start and 100-200ms on subsequent runs. I expected 10-15ms at worst. To verify this, I downloaded Banner Exam...
android|performance|google-dfp
4
2016-06-16T06:54:42.787Z
2,016
6
6
3
1,835
1
890
51
3
1
true
false
false
false
false
false
low
37,795,337
Android: multiple intentservices or one intentservice with multiple intents?
<p>I'm a little confused about intentService. The docs say that if you send an intentService multiple tasks (intents) then it will execute them one after the other on one separate thread. My question is - is it possible to have multiple intentService threads at the same time or not? How do you differentiate in the code...
I'm a little confused about intentService. The docs say that if you send an intentService multiple tasks (intents) then it will execute them one after the other on one separate thread. My question is - is it possible to have multiple intentService threads at the same time or not? How do you differentiate in the code be...
android|multithreading|android-service|android-intentservice|worker-thread
13
2016-06-13T17:00:37.347Z
2,016
6
17
0
7,723
1
653
76
5
1
true
false
true
false
true
false
medium
37,611,262
Adding images to the gridview dynamically gives out of memory error
<p>I am trying to add images to a grid view. The grid view looks like:</p> <pre><code>import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.drawable.Drawable; import android.net.Uri; im...
I am trying to add images to a grid view. The grid view looks like: [CODE] Now, I am getting images from my device using this method: [CODE] And setting adapter using: [CODE] The issue with above code is that on runtime, adding a lot of images to the images gives run time out of memory error. [CODE] So, to avoid above ...
android|gridview
1
2016-06-03T09:55:14.823Z
2,016
6
9
4
44
1
430
67
2
4
true
false
false
false
false
false
low
37,702,776
Android setting multiple long date alarms
<p>I'm trying to create a function in my App, which notifies the user at the expiration day of his rented books. I'll work with checkboxes in a listview, as below:</p> <p><a href="https://i.stack.imgur.com/nlQgl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nlQgl.png" alt="No description"></a></p>...
I'm trying to create a function in my App, which notifies the user at the expiration day of his rented books. I'll work with checkboxes in a listview, as below: (Dates are for show purposes only) Now i'm wondering how can i do it the best way. I'm having experiences with AlarmManager and BroadcastReceivers, but I didn'...
android|scheduled-tasks|alarmmanager|android-alarms
0
2016-06-08T12:39:29.263Z
2,016
6
12
2
44
1
831
41
4
0
false
false
false
false
false
false
zero
37,754,640
Android application close after click button
<p>I have application to add new id to database using php. If I click button <kbd>create id</kbd> in my program it always closes everything but the data inserted in database. </p> <p>I don't know how to fix it. In my <code>logcat</code> there is no information about any error.</p> <p>This is my code:</p> <pre><code>...
I have application to add new id to database using php. If I click button create id in my program it always closes everything but the data inserted in database. I don't know how to fix it. In my logcat there is no information about any error. This is my code: [CODE] Can someone help me solve this?
php|android
0
2016-06-10T18:05:40.653Z
2,016
6
18
4
44
1
298
44
2
1
true
false
false
false
false
false
zero
37,783,528
Why is my app failing to install to my device after upgrading to Lollipop?
<p>After I upgraded the OS of my Samsung GALAXY tab to Lollypop I unable to build my app and received the following error:</p> <pre><code>Android: Unable to instantiate activity / ClassNotFoundException </code></pre> <p>What has happened? </p>
After I upgraded the OS of my Samsung GALAXY tab to Lollypop I unable to build my app and received the following error: [CODE] What has happened?
android|android-gradle-plugin|android-5.0-lollipop
-3
2016-06-13T06:58:59.357Z
2,016
6
6
0
44
1
145
74
3
1
true
false
false
false
false
true
negative
37,831,167
LocationManager won't start after re-opening app
<p>I'm working on a project which determines periodically the phone's coordinates and uploads them on a Database. The code I'm using is:</p> <pre><code>public class Activity2 extends AppCompatActivity { private LocationManager locm; private LocationListener locl; private Geocoder geocoder; public TextView text, posit...
I'm working on a project which determines periodically the phone's coordinates and uploads them on a Database. The code I'm using is: [CODE] From a clean start (no cache/data about the app saved before) it runs good and works as expected: Starts the first activity which is a simple login (if usertext=user $$ passtext=t...
android|gps|locationmanager|locationlistener
0
2016-06-15T09:17:11.040Z
2,016
6
9
2
44
1
850
48
4
1
true
false
false
false
false
false
zero
38,001,017
Errors with Custom ListView in Fragment
<p>I tried to build custom ListView in Fragment but I have some Error</p> <p>when my app run it crash and give me this line error:</p> <blockquote> <p>java.lang.NullPointerException:</p> </blockquote> <p>and it's take me to this line in adapter code:</p> <pre><code>convertView = mInflater.inflate(R.layout.list_ad...
I tried to build custom ListView in Fragment but I have some Error when my app run it crash and give me this line error: java.lang.NullPointerException: and it's take me to this line in adapter code: [CODE] What am I doing wrong? This is my Fragment: [CODE] This is my Adapter [CODE] This is my cources [CODE] This is my...
android|android-fragments|android-activity
0
2016-06-23T20:16:24.653Z
2,016
6
20
3
44
1
352
39
3
5
true
false
false
false
false
false
zero
38,028,788
Is it possible to set a shuttercallback for the default camera app
<p>i know i can call the default camera app by doing</p> <pre><code> Intent callCameraApplicationIntent = new Intent(); callCameraApplicationIntent.setAction(MediaStore.ACTION_IMAGE_CAPTURE); File photoFile = null; try { photoFile = createImageFile(); } catch (IOException e) { e.pr...
i know i can call the default camera app by doing [CODE] but i want to perform an action when the user takes an image... is that possible or do i need to implement a camera preview on my own app?
android
0
2016-06-25T13:00:20.640Z
2,016
6
13
5
44
1
195
66
1
1
true
false
false
false
false
false
zero
38,034,181
Multiple Preferences for single app using AppCompatPreferenceActivity?
<p>I'm making an app that will have a list with multiple devices (let's say that each device is just an IP address string) that the user saved. For each device I need to save some preferences, such as device name that the user sets, if the device is enabled by the user, etc.</p> <p>I was able to create a <code>Setting...
I'm making an app that will have a list with multiple devices (let's say that each device is just an IP address string) that the user saved. For each device I need to save some preferences, such as device name that the user sets, if the device is enabled by the user, etc. I was able to create a SettingsActivity and And...
java|android|sharedpreferences|android-preferences
0
2016-06-26T00:31:15.707Z
2,016
6
0
6
44
1
654
70
4
0
false
false
false
false
false
false
zero
38,037,207
What exactly should I change in this snip of code to have ability set a path to a save file?
<p>Help me please</p> <p>I really can't understand how to change this snip of code to have ability set a path to save file. </p> <p>I need unzip a file. I want give the method 2 arguments: the first is the path to the zip file and the second is the path where you want to store the unzipped file. That's it... But it's...
Help me please I really can't understand how to change this snip of code to have ability set a path to save file. I need unzip a file. I want give the method 2 arguments: the first is the path to the zip file and the second is the path where you want to store the unzipped file. That's it... But it's driving me crazy)) ...
java|android|path|zip|unzip
0
2016-06-26T09:50:14.623Z
2,016
6
9
6
44
1
976
92
5
7
true
false
false
false
false
false
zero
37,802,788
BLE Scanning: callback gets invoked only once on "Huawei Ascend Mate2 Phone"
<p>I have a working BLE scanning app that has been working fine for last few months on Nexus 5 (on various API versions from 4.4 to 6.0 ). Today we ran the app on different device "Huawei Ascend Mate2" that has API 22 and found what I thought was an interesting or peculiar behavior: callback gets fired continuously (ab...
I have a working BLE scanning app that has been working fine for last few months on Nexus 5 (on various API versions from 4.4 to 6.0 ). Today we ran the app on different device "Huawei Ascend Mate2" that has API 22 and found what I thought was an interesting or peculiar behavior: callback gets fired continuously (about...
android|ibeacon|bluetooth-lowenergy|ibeacon-android
0
2016-06-14T04:06:15.843Z
2,016
6
4
1
556
1
1,700
76
4
0
false
false
false
false
false
false
zero
37,854,939
Align dynamically in xamarin
<p>I'm trying to align my controls using Xamarin Android.</p> <p>I made a foreach loop with a GridView:</p> <pre><code>var layout = new GridLayout(this); SetContentView(layout); foreach(JObject s in theArray) { string Text = s.GetValue("Name").ToString(); var...
I'm trying to align my controls using Xamarin Android. I made a foreach loop with a GridView: [CODE] But I want the TextView and Button to be underneath each other. How it looks now: How I want it to look: Can someone help me with aligning this properly? If possible also centered in the form. Thanks!
c#|android|xamarin|xamarin.android
1
2016-06-16T09:19:21.540Z
2,016
6
9
3
556
1
301
28
4
1
true
false
false
false
false
false
low
37,935,997
How to parse nested JSON from android?
<p>I have the sample json data below. How can I parse it?</p> <pre><code>"posts": [12] 0: { "id": 6429 "type": "post" "slug": "pyo-puth-remix-lyrics-dj-frenzy" "url": "http://song.com/2016/06/remix-lyrics.html" "status": "publish" "title": " Remix Lyrics – DJ Frenzy" "title_plain": " Remix Lyrics " "content": "&lt;p&...
I have the sample json data below. How can I parse it? [CODE]
android
1
2016-06-21T05:07:50.833Z
2,016
6
5
1
812
1
61
38
1
1
true
false
false
false
false
false
low
37,886,146
Custom Hindi Keyboard
<p>I am working on an <code>Android</code> project.Project is to develop a <code>Hindi</code> android keyboard. I have seen many tutorials and articles regarding development of Custom Soft Keyboards. I have also made a keyboard(English) using <a href="http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-andro...
I am working on an Android project.Project is to develop a Hindi android keyboard. I have seen many tutorials and articles regarding development of Custom Soft Keyboards. I have also made a keyboard(English) using this tutorial and it is working just fine. Now I thought that for Hindi (or any other language for that ma...
android|xml|keyboard|android-input-method
1
2016-06-17T16:19:43.513Z
2,016
6
16
4
1,068
1
652
21
4
2
true
false
false
false
false
false
low
37,643,798
Is there a standard icon/logo to 'Choose Language' in Android?
<p>We have a requirement where the user is allowed to change the language of the app as per their convenience. To achieve this, they will have to click an image button which opens up a pop up with a list of languages. They can then set the language.</p> <p>Is there a standard Android logo/icon that the user can instan...
We have a requirement where the user is allowed to change the language of the app as per their convenience. To achieve this, they will have to click an image button which opens up a pop up with a list of languages. They can then set the language. Is there a standard Android logo/icon that the user can instantly recogni...
android|icons|standards
1
2016-06-05T15:49:18.040Z
2,016
6
15
6
1,580
1
541
62
3
0
false
false
false
false
false
false
low
37,752,337
Cursor in android studio select rectangle area
<p>My cursor have some issue when i select area. It not select from right to left, from bottom to top, it seem to be select rectangle area. my problem is showed in below picture.</p> <p><a href="https://i.stack.imgur.com/31RE6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/31RE6.png" alt="enter image descri...
My cursor have some issue when i select area. It not select from right to left, from bottom to top, it seem to be select rectangle area. my problem is showed in below picture. I don't know whether i have set something. Please help me to fix it? Thank you so much.
android
7
2016-06-10T15:48:24.307Z
2,016
6
15
4
2,604
1
263
46
1
0
false
false
true
false
false
false
medium
37,854,647
Get the path of a file from other app
<p>In my app I handle sharing of images/videos from other apps.</p> <p>The problem is that if I want to handle the images from gallery it works great with following:</p> <pre><code> Uri fileUri = (Uri) data.getParcelableExtra(Intent.EXTRA_STREAM); String[] projection = {MediaStore.MediaColumns.DATA}; Cur...
In my app I handle sharing of images/videos from other apps. The problem is that if I want to handle the images from gallery it works great with following: [CODE] I am getting the desired file which I want. The problem is that is the image is shared via other app (Whatsapp/Fb Messenger) I am getting: [CODE] Example of ...
android|android-cursor
0
2016-06-16T09:06:18.500Z
2,016
6
9
3
2,604
1
405
37
2
3
true
false
true
false
false
false
zero
37,884,769
UnsatisfiedLinkError: dalvik.system.PathClassLoader
<p>I'm making an application for AndroidTV and get the error </p> <pre><code>java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/mytv.mytv-2/base.apk" </code></pre> <p>on a NexusPlayer with Android 6.0.1. Curious that it works on a smart TV with Android 5.1.1. </p> <p>Th...
I'm making an application for AndroidTV and get the error [CODE] on a NexusPlayer with Android 6.0.1. Curious that it works on a smart TV with Android 5.1.1. The whole text error is: [CODE] if helps. (jniLabs is fine with 2 folders armeabi and armeabi-v7a and each one has libnmpsdk.so) The error line that log is showin...
android|android-tv|nexus-player
12
2016-06-17T15:00:15.517Z
2,016
6
15
4
18,476
1
477
51
3
3
true
false
true
true
true
false
medium
37,640,000
Alarmmanager when i reboot how can i remaining time
<p>My code <code>am.set(AlarmManager.ELAPSED_REALTIME,7*AlarmManager.INTERVAL_DAY, pi);</code> when I reboot AlarmManager will be cancel. How can I do in reboot broadcastreceiver, I want to count remaining time.</p>
My code am.set(AlarmManager.ELAPSED_REALTIME,7*AlarmManager.INTERVAL_DAY, pi); when I reboot AlarmManager will be cancel. How can I do in reboot broadcastreceiver, I want to count remaining time.
android
0
2016-06-05T08:42:17.473Z
2,016
6
8
6
45
1
195
51
1
0
false
false
false
false
false
false
zero
37,845,686
Start service only on weekdays
<p>I have the following code which starts a service every day at the specified time. Anyone know how to start it only from Monday to Friday?</p> <pre><code> Calendar startTime = Calendar.GetInstance(Locale.Default); startTime.Set(CalendarField.HourOfDay, 10); startTime.Set(CalendarField.Minute, 00); sta...
I have the following code which starts a service every day at the specified time. Anyone know how to start it only from Monday to Friday? [CODE]
android|service|xamarin|alarmmanager
1
2016-06-15T21:00:22.480Z
2,016
6
21
2
45
1
144
30
4
1
true
false
false
false
false
false
low
37,909,895
How to send any kind of data(eg., images, text) to app via servers?
<p>I'm creating an app consists 7 fragments using <code>recycler view</code>. Now i want something that can help me to change the data inside the fragments weekly or monthly or yearly through servers. I googled this kind of topic even found some like <code>GCM</code>, <code>JSON</code>, <code>SQLite</code> but these a...
I'm creating an app consists 7 fragments using recycler view . Now i want something that can help me to change the data inside the fragments weekly or monthly or yearly through servers. I googled this kind of topic even found some like GCM , JSON , SQLite but these are for pushing the notifications, snack bars and toas...
android|google-cloud-messaging
1
2016-06-19T17:25:01.270Z
2,016
6
17
6
45
1
446
67
2
0
false
false
false
false
false
false
low
37,978,926
How to wait asynchronus method on android
<p>I have this class to connect with twitter</p> <pre><code>public class TwitterConnect { TwitterApiClient twitterApiClient; StatusesService statusesService; Long [] ids; public TwitterConnect(){ twitterApiClient = TwitterCore.getInstance().getApiClient(); statusesService = twitterApiC...
I have this class to connect with twitter [CODE] And I use this clas on an activity [CODE] But the this.ids is always null,on succces method its asynchronous ,how I can wait for it? In edbug mode ,the data is correctly retrieved but the activity uses the ids array before the asynchronous method finished.
android|twitter-fabric
1
2016-06-22T21:54:31.430Z
2,016
6
21
2
45
1
305
41
2
2
true
false
false
false
false
false
low
37,829,882
Android white below activity on swipe to close by SwipeBackLayout library
<p>i'm trying to use <a href="https://github.com/liuguangqiang/SwipeBack" rel="nofollow noreferrer">SwipeBackLayout</a> library to close and back to last activity, after install that and create simple activity like with the library, my below activity is white during swipe to close:</p> <p><a href="https://i.stack.imgu...
i'm trying to use SwipeBackLayout library to close and back to last activity, after install that and create simple activity like with the library, my below activity is white during swipe to close: but i want to have that like with : My sample activity: [CODE] sample activity layout: [CODE] i dont find other setting or ...
android
1
2016-06-15T08:22:35.430Z
2,016
6
8
2
301
1
366
73
1
2
true
false
false
false
false
false
low
37,857,214
Android Application Not Responding java.lang.RuntimeException: Unable to resume activity
<p>I'm having this error when this activity is opening I do believe is the problem is most on bluetooth connection I really don't know how to understand this error</p> <p><strong>Error Log</strong></p> <pre><code>06-16 19:13:31.385 3970-3970/com.example.jaypeetan.mftis E/AndroidRuntime: FATAL EXCEPTION: main ...
I'm having this error when this activity is opening I do believe is the problem is most on bluetooth connection I really don't know how to understand this error Error Log [CODE] this is my main menu main_menu.java [CODE] I really appreciate your answer please help me to finish this program thanks in advance
java|android|android-studio|bluetooth
-2
2016-06-16T10:58:24.010Z
2,016
6
10
3
301
1
308
88
4
2
true
false
false
false
false
true
negative
37,857,898
SugarORM : While instrumentation testing, No such table Exception
<p>This is my <code>ApplicationTest.java</code> </p> <pre><code>package com.example.testing; import android.app.Application; import android.test.ApplicationTestCase; import com.example.agent.database.MyGroupsTable; import com.orm.SugarContext; import java.util.List; /** * &lt;a href="http://d.android.com/tools/...
This is my ApplicationTest.java [CODE] I am using SugarORM. Which is working fine when running the app as debug or release but when i tries to execute Instrumentation test it blows up with Exception This is the Stack Trace Testing started at 4:36 PM ... [CODE] Tests ran to completion. The code is working fine on pre-Lo...
android|testing|sugarorm
0
2016-06-16T11:30:14.397Z
2,016
6
11
3
301
1
465
65
3
2
true
false
false
false
false
false
zero
37,953,947
Know which Table changed in global realmChangeListener
<p>I am using Realm as database for my app. </p> <p>I have few tables in my database say- Table1, Table2, Table3, Table4 and Table5. <br> I have same number of Activities as tables, each of which displays the data from one of the tables. <br><br>For eg. <br> Activity1 would display data from Table1 <br> Activity2 w...
I am using Realm as database for my app. I have few tables in my database say- Table1, Table2, Table3, Table4 and Table5. I have same number of Activities as tables, each of which displays the data from one of the tables. For eg. Activity1 would display data from Table1 Activity2 would display data from Table2 Activity...
java|android|realm
0
2016-06-21T20:25:39.697Z
2,016
6
20
1
557
1
1,966
54
3
2
true
false
false
false
false
false
zero
37,629,636
Define a new keyword in pocket sphinx
<p>I am very new to this.<br> What I want to do is: </p> <ul> <li>Get a user defined KEYWORD from the Speech To Text engine </li> <li>as it recognized, my app does something</li> </ul> <p>I read PocketSphinix and can't find mine, also I find it's difficult, therefore I prefer to change it and use the default one....
I am very new to this. What I want to do is: Get a user defined KEYWORD from the Speech To Text engine as it recognized, my app does something I read PocketSphinix and can't find mine, also I find it's difficult, therefore I prefer to change it and use the default one. Now my problem is: how can I define a new keyword ...
android|keyword|pocketsphinx
0
2016-06-04T11:25:28.250Z
2,016
6
11
5
813
1
436
37
3
1
true
false
false
false
false
false
zero
37,724,815
react native could not connect to development server on android
<p>I have started learning react native. I have followed instruction on <a href="https://facebook.github.io/react-native/docs/getting-started.html#content" rel="nofollow">https://facebook.github.io/react-native/docs/getting-started.html#content</a> but when i try to run the app with command </p> <pre><code>react-nativ...
I have started learning react native. I have followed instruction on https://facebook.github.io/react-native/docs/getting-started.html#content but when i try to run the app with command [CODE] it gives me error [CODE] now, all the points displayed by app red screen to fix this issue I have followed : *package server is...
android|react-native
0
2016-06-09T11:33:32.713Z
2,016
6
11
3
2,349
1
723
63
2
2
true
false
false
false
false
false
zero
37,689,696
Changing the height of a Xamarin Forms NavigationPage Toolbar
<p>I am trying to change the height of a Xamarin Forms Toolbar that is being rendered on Android with AppCompat. There is no height property from Forms to set this so I've attempted setting the <code>layout_height</code> in the <code>toolbar.axml</code> as follows </p> <pre><code>&lt;android.support.v7.widget.Toolbar ...
I am trying to change the height of a Xamarin Forms Toolbar that is being rendered on Android with AppCompat. There is no height property from Forms to set this so I've attempted setting the layout_height in the toolbar.axml as follows [CODE] This doesn't change the height. I've also tried setting android:minHeight and...
xamarin|xamarin.android|xamarin.forms
4
2016-06-07T21:28:48.350Z
2,016
6
21
1
3,373
1
534
61
3
1
true
false
true
false
false
false
low
37,630,765
Changing the icon of selected tab
<p>Im setting the tablayout as follows,</p> <pre><code> private void setupTabIcons() { TextView tabOne = (TextView) LayoutInflater.from(this).inflate(R.layout.custom_tab, null); tabOne.setText("Status"); tabOne.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.status, 0, 0); tabLay...
Im setting the tablayout as follows, [CODE] How can I be able to change the icon of selected tab? im using tablayout.
android|android-tablayout
1
2016-06-04T13:25:59.817Z
2,016
6
13
5
4,653
1
117
33
2
1
true
false
true
false
false
false
low
37,825,896
How to select a listview in espresso?
<p>I'm testing with espresso and I have multiple AdapterViews in one page, for example, with id: R.id.list1, R.id.list2, when I use </p> <p><strong>onData(withMainValue("xx")).check(matches(isDisplayed()))</strong></p> <pre><code>public static Matcher&lt;Object&gt; withMainValue(final String value) { return new B...
I'm testing with espresso and I have multiple AdapterViews in one page, for example, with id: R.id.list1, R.id.list2, when I use onData(withMainValue("xx")).check(matches(isDisplayed())) [CODE] the Espresso reports: [CODE] How to select the specific listview and try onData on it ?
android|listview|testing|android-espresso
4
2016-06-15T04:01:27.730Z
2,016
6
4
2
6,189
1
281
37
4
2
true
false
true
false
false
false
low
37,611,731
Will FCM Token change periodically like GCM registration ID?
<p>I have published apps in playstore that use GCM and I have a plan to migrate using FCM. everything information i needed have found, but i have one question that not find answer yet. my question is when token have been created, are token will be change periodically like GCM does?</p> <p>thanks</p>
I have published apps in playstore that use GCM and I have a plan to migrate using FCM. everything information i needed have found, but i have one question that not find answer yet. my question is when token have been created, are token will be change periodically like GCM does? thanks
android|firebase|google-cloud-messaging|firebase-cloud-messaging
16
2016-06-03T10:17:34.073Z
2,016
6
10
4
17,197
1
286
60
4
0
false
false
true
true
true
false
medium
37,708,665
Beginner, Maintaining Fragment State When switching using Navigation Drawer
<p>I'm a beginner with java and android development but managed to create a navigation drawer activity which switches between five fragment with ListViews using AsycTask. The AsycTask starts again when ever I switch between the fragments. I have gone through many of the post here but none seems to work. Any help.</p> ...
I'm a beginner with java and android development but managed to create a navigation drawer activity which switches between five fragment with ListViews using AsycTask. The AsycTask starts again when ever I switch between the fragments. I have gone through many of the post here but none seems to work. Any help. Here is ...
java|android|android-fragments
0
2016-06-08T17:01:31.887Z
2,016
6
17
2
46
1
430
75
3
3
true
false
false
false
false
false
zero
37,756,595
Image not change in android
<p>I have application for read database. The code work perfecly but when I use <code>if .. then ... else</code> for ImageView it's not work. May be I'm work with my code. Anyone can help me to fix my code?</p> <p>My Screen Shoot Application <a href="http://prntscr.com/beuid8" rel="nofollow">http://prntscr.com/beuid8</...
I have application for read database. The code work perfecly but when I use if .. then ... else for ImageView it's not work. May be I'm work with my code. Anyone can help me to fix my code? My Screen Shoot Application http://prntscr.com/beuid8 My code like this [CODE] Anyone can help me to make my ImageView work? Thank...
android|image
-1
2016-06-10T20:20:48.013Z
2,016
6
20
4
46
1
328
27
2
1
true
false
false
false
false
true
negative
37,825,734
Run Android Service with GPS/Data turn on/off by it self
<p>We have to provide application that track our field workers locations by gps logging that can track workers real time. These devices provided by company that runs lollipop. GPS Logger Service is running well until workers turn off GPS and Data.</p> <p>Problem is. Is there any way to prevent on/off GPS and Data by u...
We have to provide application that track our field workers locations by gps logging that can track workers real time. These devices provided by company that runs lollipop. GPS Logger Service is running well until workers turn off GPS and Data. Problem is. Is there any way to prevent on/off GPS and Data by user?. How w...
android|service|gps|root
-2
2016-06-15T03:45:27.030Z
2,016
6
3
2
46
1
489
56
4
0
false
false
false
false
false
true
negative
37,851,492
Random music player when win in the game
<p>I make small game and there is music when you finish. Now I have one sound and would like to have 3 or 4 which play randomly, so you hear different music each time you finish. I have SoundManager.java where </p> <pre><code>public static final int SOUND_WINNER = 4; public static final int SOUND_LOSER = 5; public st...
I make small game and there is music when you finish. Now I have one sound and would like to have 3 or 4 which play randomly, so you hear different music each time you finish. I have SoundManager.java where [CODE] and also [CODE] In game activity I put [CODE] Thanks in advance for any advice. I was trying to do somethi...
android|audio|random|soundmanager2
0
2016-06-16T06:31:57.167Z
2,016
6
6
3
46
1
359
40
4
4
true
false
false
false
false
false
zero
38,023,275
How to grab the left-most viewable page index from a multi-page android view pager?
<p>Currently building a custom Toggle widget (aka Segmented control aka tab layout those type of things), by layering a viewpager with x visible pages on top of a linear layout.</p> <p>Like this <br> <code>........|......android screen...|</code><br> <code>|..not..|visible|visible|visible|..not..|</code></p> <p>The i...
Currently building a custom Toggle widget (aka Segmented control aka tab layout those type of things), by layering a viewpager with x visible pages on top of a linear layout. Like this ........|......android screen...| |..not..|visible|visible|visible|..not..| The issue is that pager.getCurrentItem() doesn't consistent...
android|android-viewpager|toggle|android-custom-view
0
2016-06-24T23:04:34.543Z
2,016
6
23
4
46
1
528
83
4
0
false
false
false
false
false
false
zero
38,034,541
Playstore Server
<p>So like, I want the highscores to be saved online but I am guessing that I'll need a server for that. If I did upload a game on Play store, will they provide us servers to save scores online for the other users to see others' highscore? Maybe I still have to do something else?</p>
So like, I want the highscores to be saved online but I am guessing that I'll need a server for that. If I did upload a game on Play store, will they provide us servers to save scores online for the other users to see others' highscore? Maybe I still have to do something else?
android|server|save|google-play
0
2016-06-26T01:49:31.487Z
2,016
6
1
6
46
1
277
16
4
0
false
false
false
false
false
false
zero
37,954,589
Intent for Chat applications
<p>I want to send text from my app, have copied text to clipboard using clipboard manager . Now what I want to do is to create an Intent chooser which only display chat apps like Hike, WhatsApp, sms or any other similar app.</p> <p>How to do it?</p>
I want to send text from my app, have copied text to clipboard using clipboard manager . Now what I want to do is to create an Intent chooser which only display chat apps like Hike, WhatsApp, sms or any other similar app. How to do it?
android
1
2016-06-21T21:07:37.443Z
2,016
6
21
1
302
1
235
28
1
0
false
false
false
false
false
false
low
37,936,785
How to pause and resume timer and progressbar in android?
<p>I have an activity and have timer with progressbar intially starts and there is a broadcast receiver in that activity which detects network state change if network disabled. I want to stop timer and progressbar, and when Network is enabled again, I want to resume from where timer and progressbar stopped.How could I ...
I have an activity and have timer with progressbar intially starts and there is a broadcast receiver in that activity which detects network state change if network disabled. I want to stop timer and progressbar, and when Network is enabled again, I want to resume from where timer and progressbar stopped.How could I do ...
android
0
2016-06-21T06:13:00.120Z
2,016
6
6
1
558
1
351
57
1
1
true
false
false
false
false
false
zero
37,945,899
Is it possible to collect data from Firebase Analytics Console programmatically?
<p>I would like to know if there is any way to collect data from Firebase Analytics Console programmatically in Android or Web?</p> <p>I mean these data as you can see at pictures:</p> <p><a href="https://i.stack.imgur.com/BDWnZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BDWnZ.jpg" alt="Image1...
I would like to know if there is any way to collect data from Firebase Analytics Console programmatically in Android or Web? I mean these data as you can see at pictures: , I am planning to do my own app to run my own analytics using these data.
android|firebase|firebase-analytics
1
2016-06-21T13:31:19.590Z
2,016
6
13
1
814
1
245
80
3
0
false
false
false
false
false
false
low
37,917,488
Picasso Target has been garbage collected
<p>Good day.I have an google map with cluster manager.Simple one,where i use the cluster to draw markers grouped or not.Anyway i got an method callback from cluster manager which is the Cluster item render one.Inside that callback i am applying custom image to the marker:The user image inside marker.I found Picasso to ...
Good day.I have an google map with cluster manager.Simple one,where i use the cluster to draw markers grouped or not.Anyway i got an method callback from cluster manager which is the Cluster item render one.Inside that callback i am applying custom image to the marker:The user image inside marker.I found Picasso to be ...
android|image|loading
1
2016-06-20T08:12:49.280Z
2,016
6
8
0
1,070
1
1,765
41
3
2
true
false
false
false
false
false
low
37,676,245
Difference between openfire users and roster Users
<p>I have gone through many documentation but still I am not able to clarify the difference between user created in openfire and that in roster. I simply need to get all user list from openfire in my android application so that I can do one to one chat with other users. Also please explain difference between Roster use...
I have gone through many documentation but still I am not able to clarify the difference between user created in openfire and that in roster. I simply need to get all user list from openfire in my android application so that I can do one to one chat with other users. Also please explain difference between Roster user a...
android|xmpp|openfire
1
2016-06-07T10:02:04.483Z
2,016
6
10
1
1,326
1
365
50
3
0
false
false
false
false
false
false
low
37,782,895
Is it possible to create Firebase topic messaging using C#/.net
<p>For now i create topic using</p> <p><a href="https://developers.google.com/instance-id/reference/server#create_relationship_maps_for_app_instances" rel="nofollow">Create Topic</a></p> <p>in thats require one token</p> <p><a href="https://iid.googleapis.com/iid/v1/" rel="nofollow">https://iid.googleapis.com/iid/v1...
For now i create topic using Create Topic in thats require one token https://iid.googleapis.com/iid/v1/ IID_TOKEN /rel/topics/TOPIC_NAME right now i create thats token at android and ios. Now as i need to create Topic with rest call at server side in c# so anythings in that i am able to create that token at c# side and...
c#|android|ios|firebase
1
2016-06-13T06:15:00.553Z
2,016
6
6
0
1,582
1
350
63
4
0
false
false
false
false
false
false
low
37,901,564
Is there a way to check to see which achievements have been unlocked in unity?
<p>So i'm updating my android and ios application using the unity game engine. I want to add unlockables based on which achievements the user has unlocked. I have about 20 or so achievements. I can't find anywhere a method to check to see if a particular achievement has been unlocked or not. Im using Gamecenter for ios...
So i'm updating my android and ios application using the unity game engine. I want to add unlockables based on which achievements the user has unlocked. I have about 20 or so achievements. I can't find anywhere a method to check to see if a particular achievement has been unlocked or not. Im using Gamecenter for ios an...
android|ios|unity3d|google-play-services|game-center
1
2016-06-18T20:58:48.837Z
2,016
6
20
5
1,838
1
352
78
5
0
false
false
false
false
false
false
low
38,037,119
(Android studio 2.1) "SDK does not contain any platforms. error"
<p>I'm getting the "SDK does not contain any platforms. error" after installing <em>Android Studio 2.1</em>. How to fix it?</p> <p><img src="https://i.stack.imgur.com/uOsTF.jpg" alt="enter image description here"></p> <p>I have JAVA_HOME 1.7.0_80 and error download and install SDK</p> <p><img src="https://i.stack.im...
I'm getting the "SDK does not contain any platforms. error" after installing Android Studio 2.1 . How to fix it? I have JAVA_HOME 1.7.0_80 and error download and install SDK
android-studio
3
2016-06-26T09:39:42.967Z
2,016
6
9
6
18,222
1
173
64
1
0
false
false
true
true
false
false
low
37,629,275
Spinner in Custom Function for Android with java
<p>I am confused about calling the spinner widget through a custom function. I am create an app in which I use spinner 20-35 times a spinner widget in single layout or activity. So for this i want to avoid the spinner code repetition again and again. i am creating a method for this i add the items to the spinner but i...
I am confused about calling the spinner widget through a custom function. I am create an app in which I use spinner 20-35 times a spinner widget in single layout or activity. So for this i want to avoid the spinner code repetition again and again. i am creating a method for this i add the items to the spinner but i wan...
java|android
-1
2016-06-04T10:48:32.760Z
2,016
6
10
5
47
1
491
48
2
2
true
false
false
false
false
true
negative
37,763,366
Small panel on the side for format editing has vanished?
<p>I realize that I can edit everything in the .xml files, but I much prefer the layout to the side of the screen when editing details to do with things such as buttons.</p> <p>My current screen:</p> <p><a href="https://i.stack.imgur.com/euW2J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/euW2J.p...
I realize that I can edit everything in the .xml files, but I much prefer the layout to the side of the screen when editing details to do with things such as buttons. My current screen: What it should be like: Notice that the second photo has what I'm lacking I tried doing so, but the Designer button was greyed out, as...
android|android-studio|button
0
2016-06-11T11:49:38.170Z
2,016
6
11
5
47
1
366
56
3
0
false
false
false
false
false
false
zero
37,764,542
ArrayAdapter not shown
<p>My array adapter does not work.</p> <p>MainActivityListFragment</p> <pre><code> public class MainActivityListFragment extends ListFragment { public void OnActivityCreated(Bundle savedInstanceState){ super.onActivityCreated(savedInstanceState); String[] values = new String[]{"hello","hi","nihao","h...
My array adapter does not work. MainActivityListFragment [CODE] content_main.xml [CODE] It does not display the string instead it shows a loading button How do i get it to show? others have used this code too but theirs can work
android
-1
2016-06-11T13:54:07.697Z
2,016
6
13
5
47
1
228
22
1
2
true
false
false
false
false
true
negative
37,804,488
how to keep track of image which should not goes out of the container
<p>Issue: when image is drag or move is goes out of the view that i don't want i want view contain that image after move image can not drag or move image should be present in the layout</p> <p>i follow this link : <a href="https://github.com/siddhpuraamitr/MultitouchWithDynamicAddandRemove" rel="nofollow no...
Issue: when image is drag or move is goes out of the view that i don't want i want view contain that image after move image can not drag or move image should be present in the layout i follow this link : https://github.com/siddhpuraamitr/MultitouchWithDynamicAddandRemove here one image is contain LinearLayout and that ...
android
0
2016-06-14T06:29:00.173Z
2,016
6
6
1
47
1
386
69
1
0
false
false
false
false
false
false
zero
37,817,827
I'm trying to populate an ExpandableListView, why am I getting an error trying to set my custom adapter?
<p>I have been attempting to create an ExpandableListView and give it groups and children using a HashMap I created in the MyDataProvider class. I'm almost successful, but I can't figure out why I am getting this error on setting an adapter. </p> <p>Here is my Class that will show the list:</p> <pre><code>package co...
I have been attempting to create an ExpandableListView and give it groups and children using a HashMap I created in the MyDataProvider class. I'm almost successful, but I can't figure out why I am getting this error on setting an adapter. Here is my Class that will show the list: [CODE] Here is my Adapter: [CODE] Here ...
java|android|listview
1
2016-06-14T16:47:06.573Z
2,016
6
16
1
47
1
645
104
3
4
true
false
false
false
false
false
low
37,911,557
Create a custom gridview design
<p>I need to do like this image, I tried gridview but it's not working,it gives me more than 3 images in the same line. <a href="http://i.stack.imgur.com/g2rlP.png" rel="nofollow">image</a></p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an...
I need to do like this image, I tried gridview but it's not working,it gives me more than 3 images in the same line. image [CODE] and this is my gridview : [CODE]
java|android|layout
0
2016-06-19T20:32:31.003Z
2,016
6
20
6
47
1
162
31
3
2
true
false
false
false
false
false
zero
37,993,185
how to support latout file in multiple screen size
<pre><code> Issue: **how to create layout support all screen size** values values-sw320dp (... to 4'') values-sw480dp (5'' to 5,5'') values-sw600dp (7'' to 10'') values-sw720dp (10'' to ...) what should be the correct ratio above folder i have to use </code></pre> <p><a href="https://develop...
[CODE] https://developer.android.com/guide/practices/screens_support.html
android|layout
0
2016-06-23T13:33:33.710Z
2,016
6
13
3
47
1
73
50
2
1
true
false
false
false
false
false
zero
37,994,766
ProductFlavors - some classes does not compile
<p>I've a technical question about productFlavors, that is, when I have more than one type of a same app some especific classes (of just one flavor for example) depending on of BuildVariant choosen don't compile. Ok I get it. But then how I can reference them of a common class? Because unless that I choose the especifi...
I've a technical question about productFlavors, that is, when I have more than one type of a same app some especific classes (of just one flavor for example) depending on of BuildVariant choosen don't compile. Ok I get it. But then how I can reference them of a common class? Because unless that I choose the especific f...
android|android-productflavors
1
2016-06-23T14:37:59.830Z
2,016
6
14
3
47
1
948
46
2
3
true
false
false
false
false
false
low
38,005,954
How to upload all images stored in a file of internal memory
<p>I need to send all images stored in a file. Now am sending one image on button click by specifying its name. But how to send all images on button click saved in some folder</p> <pre><code>public class UploadImagesToServer { public static void postImage(String ImageLink){ RequestParams params = new RequestPar...
I need to send all images stored in a file. Now am sending one image on button click by specifying its name. But how to send all images on button click saved in some folder [CODE] } the above code is for sending an image [CODE] this is for calling postImage method
android
2
2016-06-24T05:07:20.693Z
2,016
6
5
4
47
1
264
60
1
2
true
false
false
false
false
false
low
38,054,010
Send multiple images form sdcard in android using Environment.getExternalStoragePublicDirectory functon
<p>below find the java file i dont no where it gone wrong but my app is unfortunately stopping ple can some one help me where and in which line i am going wrong..... below is my logcat ... details</p> <blockquote> <p>FATAL EXCEPTION: main ...
below find the java file i dont no where it gone wrong but my app is unfortunately stopping ple can some one help me where and in which line i am going wrong..... below is my logcat ... details FATAL EXCEPTION: main Process: com.example.ankita.implicitintent, PID: 16822 java.lang.NullPointerException at com.example.ank...
android
0
2016-06-27T12:27:57.587Z
2,016
6
12
0
47
1
1,123
103
1
1
true
false
false
false
false
false
zero
37,700,355
Listen to event in library module in android
<p>Hello everyone my Question is I have some module and I imported it in other project is there a way to listen for events in that module e.g clicking ,entering data ...etc I need any generic way cause I will use that module in other projectS too.</p>
Hello everyone my Question is I have some module and I imported it in other project is there a way to listen for events in that module e.g clicking ,entering data ...etc I need any generic way cause I will use that module in other projectS too.
android
0
2016-06-08T10:47:45.513Z
2,016
6
10
2
303
1
244
44
1
0
false
false
false
false
false
false
zero