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
36,623,850
Expandable ListView Grouping Items by Year / Month
<p>I have a long list of Objects I am retrieving from an SQLite database. For simplification, let's say an <code>Event</code> object has the properties <code>Date</code>, <code>Name</code>, and <code>Location</code>.</p> <p>I can have a chronological <code>ListView</code> of <code>Event</code>s using the following lis...
I have a long list of Objects I am retrieving from an SQLite database. For simplification, let's say an Event object has the properties Date , Name , and Location . I can have a chronological ListView of Event s using the following list adapter and fetching Event s from the database sorted by Date . [CODE] So far, so g...
android|sqlite|listview|expandablelistview
1
2016-04-14T12:58:01.870Z
2,016
4
12
3
694
2
1,262
50
4
1
true
false
false
false
false
false
low
36,623,917
First launch take long time (ClassLoader referenced unknown path)
<p>After updating my <strong>Android studio</strong> to 2.0 and <strong>gradle</strong> to 2.0.0 and <strong>SDK-Platform</strong> to 23.0.3 When I want to launch application it take too much time (about 2-3 second) and following warning appears in Android Monitor :</p> <pre><code>W/System: ClassLoader referenced unkn...
After updating my Android studio to 2.0 and gradle to 2.0.0 and SDK-Platform to 23.0.3 When I want to launch application it take too much time (about 2-3 second) and following warning appears in Android Monitor : [CODE] But second time I launch application it's run as usual. Can any body knows what's the issue ?
android|android-studio|gradle
19
2016-04-14T13:00:26.690Z
2,016
4
13
3
10,791
5
313
65
3
1
true
false
true
false
true
false
medium
36,623,992
Floating action button anchor
<p>I need to anchor floating action button in android, but have the trouble: fab will be in navigationview Here is my activity_main layout. It includes navigation drawer.</p> <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schem...
I need to anchor floating action button in android, but have the trouble: fab will be in navigationview Here is my activity_main layout. It includes navigation drawer. [CODE] Navigation drawer layout: [CODE] And my anav_header for navigation view contains only the few text view. I need fab to be anchored to the botom o...
java|android|material-design
1
2016-04-14T13:03:51.970Z
2,016
4
13
3
1,695
1
842
29
3
3
true
false
false
false
false
false
low
36,624,009
Angularjs , display only products what relate with selected category
<p>I'm trying to display all products what under the selecte categoryId. Sample JSON file :</p> <pre><code>[{ "product_id":"1", "product_name":"Name of the book 1", "product_image":"image Url 1", "category_id":"1" }, { "product_id":"2", "product_name":"Name of the book 2", "product_image":"image Url 2", "category_id":...
I'm trying to display all products what under the selecte categoryId. Sample JSON file : [CODE] I have controller like below. I read data from json file. As you see in sample , i can display actual product name in console but i am not able to show in html page. [CODE] Html sample is like below : [CODE] Can Anyone help ...
angularjs|json|jstree|android-tabs
0
2016-04-14T13:04:24.023Z
2,016
4
13
3
1,348
1
327
68
4
3
true
false
false
false
false
false
zero
36,624,019
Android MediaPlayer seekTo() / getDuration() not working as expected
<p>I am using the android MediaPlayer library to play some MP3 files. I am not in charge of these files and am unable to change them in anyway, only play them.</p> <p>I currently update a progress bar as to how far through the file the user currently is, setting the maximum value of the progress bar to <code>mediaPlay...
I am using the android MediaPlayer library to play some MP3 files. I am not in charge of these files and am unable to change them in anyway, only play them. I currently update a progress bar as to how far through the file the user currently is, setting the maximum value of the progress bar to mediaPlayer.getDuration() ...
java|android|audio|mp3
0
2016-04-14T13:04:54.983Z
2,016
4
13
3
2,157
1
2,231
68
4
2
true
false
false
false
false
false
zero
36,624,135
Error while running app after gradle build
<p>I never touched my gradle code for the past one week and it was working fine till yesterday but suddenly from today morning am getting this error </p> <blockquote> <p>Error:Execution failed for task ':transformClassesWithDexForDebug'.</p> <blockquote> <p>com.android.build.api.transform.TransformExceptio...
I never touched my gradle code for the past one week and it was working fine till yesterday but suddenly from today morning am getting this error Error:Execution failed for task ':transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.g...
android|gradle|android-gradle-plugin
1
2016-04-14T13:09:25.490Z
2,016
4
13
3
289
1
551
42
3
1
true
false
false
false
false
false
low
36,624,185
How to move a view in only three directions
<p>I am using onTouch Listener to move the view in 2 directions left and right , Now I want to move my view in Upwards also , it should move only in a straight line like x positive axis and negative , and also y positive axis only . I am doing the following code to implement this functionality .</p> <p>I want my view ...
I am using onTouch Listener to move the view in 2 directions left and right , Now I want to move my view in Upwards also , it should move only in a straight line like x positive axis and negative , and also y positive axis only . I am doing the following code to implement this functionality . I want my view should move...
android|user-interface|android-view|ontouchlistener
1
2016-04-14T13:11:03.717Z
2,016
4
13
3
47
0
339
43
4
1
true
true
false
false
false
false
low
36,624,187
Create "values-en" folder dynamically in android
<p>First of all sorry for my weak english.</p> <p>I was searching for how to change language of my android application. I found in lots of link saying that creating <strong>values-fr</strong> (for french), <strong>values-en</strong> (for english) etc and copying <code>strings.xml</code> file into those folders. And re...
First of all sorry for my weak english. I was searching for how to change language of my android application. I found in lots of link saying that creating values-fr (for french), values-en (for english) etc and copying strings.xml file into those folders. And replace string names inside strings.xml according to languag...
java|android|xml|locale|setlocale
3
2016-04-14T13:11:05.657Z
2,016
4
13
3
910
1
848
48
5
1
true
false
false
false
false
false
low
36,624,204
Fit ImageView to LinearLayout inside HorizontalScrollView
<p>Hei, I have a hor scrollview which holds a LinearLayout (orientation: hor). </p> <pre><code> &lt;HorizontalScrollView android:id="@+id/adImageScroller" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;LinearLayout android:id="@+id/adI...
Hei, I have a hor scrollview which holds a LinearLayout (orientation: hor). [CODE] I am populating this LinearLayout dynamically with ImageViews (all images have random aspect ratios). This is the onCreateView method which populates the LinearLayout: [CODE] What I need but don't get is all images to be scaled to the he...
android|android-layout|image-scaling
0
2016-04-14T13:12:01.800Z
2,016
4
13
3
603
1
668
57
3
2
true
false
false
false
false
false
zero
36,624,227
android not receiving broadcast
<p>i my app i am sending an broadcast from the <code>onTaskRemoved()</code> method of a <code>service</code>. But i am not getting the <code>broadcast</code> in the <code>broadcastReciever</code>. This is my code </p> <pre><code> @Override public void onTaskRemoved(Intent rootIntent) { ...
i my app i am sending an broadcast from the onTaskRemoved() method of a service . But i am not getting the broadcast in the broadcastReciever . This is my code [CODE] i am receiving all the broadcast except APP_REMOVED_FROM_RECENTS.
android|service|broadcastreceiver
0
2016-04-14T13:12:51.633Z
2,016
4
13
3
277
1
232
31
3
1
true
false
false
false
false
false
zero
36,624,283
Android NumberPicker with strings
<p>I have customised the NumberPicker to show text. The output is this: <a href="https://i.stack.imgur.com/z4sat.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z4sat.png" alt="This"></a></p> <p>when I press OK I want to add the e.x mouse to my list "Article". What I'm getting instead is the index v...
I have customised the NumberPicker to show text. The output is this: when I press OK I want to add the e.x mouse to my list "Article". What I'm getting instead is the index value (int). Its populated by "array[]", it includes a list with the data shown. What's the workaround to get my item/string.? [CODE]
java|android|arraylist|numberpicker
1
2016-04-14T13:15:07.933Z
2,016
4
13
3
3,339
1
306
33
4
1
true
false
true
false
false
false
low
36,624,311
Android SQLite JOIN table and search query
<p>Hi I am new to Android Studio and this site and attempting to use SQLite as database. I am creating an ingredient-based search food menu. I've separated the menus into 3 types of cuisine, so there are 3 tables to separate each cuisine. and another 3 tables for spice, meat and veggie tables. so total I have created 6...
Hi I am new to Android Studio and this site and attempting to use SQLite as database. I am creating an ingredient-based search food menu. I've separated the menus into 3 types of cuisine, so there are 3 tables to separate each cuisine. and another 3 tables for spice, meat and veggie tables. so total I have created 6 ta...
android|database|sqlite
1
2016-04-14T13:15:51.037Z
2,016
4
13
3
97
0
594
42
3
1
true
true
false
false
false
false
low
36,624,390
Why do I get undefined for application.android.context in nativescript-angular app?
<p>I'm getting the following error while trying to use the nativescript-clipboard plugin within a nativescript-angular app. Because I'm new to nativescript I'm most likely doing something wrong.</p> <p>This is the complete error:</p> <blockquote> <p>Error in clipboard.setText: TypeError: Cannot read property 'get...
I'm getting the following error while trying to use the nativescript-clipboard plugin within a nativescript-angular app. Because I'm new to nativescript I'm most likely doing something wrong. This is the complete error: Error in clipboard.setText: TypeError: Cannot read property 'getSystemService' of undefined (/home/l...
android|angular|clipboard|nativescript
1
2016-04-14T13:19:28.150Z
2,016
4
13
3
900
1
544
83
4
1
true
false
false
false
false
false
low
36,624,545
Add a ringtone (from res/raw) to android system ringtones
<p>I have an app that runs on a custom android tablet. I want to add a ringtone that I would include in <code>res/raw</code> folder and the app should copy it to system ringtones folder. I have root access.</p> <p>I would like it to be over written in case if a ringtone with same name exists.</p> <p>I tried to google...
I have an app that runs on a custom android tablet. I want to add a ringtone that I would include in res/raw folder and the app should copy it to system ringtones folder. I have root access. I would like it to be over written in case if a ringtone with same name exists. I tried to google for it but couldn't get any hel...
android|root|ringtone
0
2016-04-14T13:25:36.023Z
2,016
4
13
3
239
0
645
57
3
1
true
true
false
false
false
false
zero
36,624,585
Parsing JSONArray using Gson + Volley not getting response
<p>So I am trying to parse an array of objects from json using Google's Gson library and Volley for HTTP requests. My issue is it's as if <strong>the code isn't 'hitting' the <code>OnResponse</code> call</strong>. I've tried adding a simple Log printout within the function just to see if it does anything. </p> <p>My <...
So I am trying to parse an array of objects from json using Google's Gson library and Volley for HTTP requests. My issue is it's as if the code isn't 'hitting' the OnResponse call . I've tried adding a simple Log printout within the function just to see if it does anything. My GsonRequest class comes straight from Goog...
java|android|json|gson|android-volley
0
2016-04-14T13:26:54.647Z
2,016
4
13
3
599
2
667
58
5
2
true
false
false
false
false
false
zero
36,624,791
TabLayout width bug
<p>I ancounter i bug, which makes different tab width on different android versions. On android 4.1.1 and android 5.1 tab width obeys mode 'fill' and tablayout width matches perent. While on android 4.4.4 width looks like <code>wrap_content</code>. Design library version 23.3.0. How to fix it?</p> <p><a href="https://...
I ancounter i bug, which makes different tab width on different android versions. On android 4.1.1 and android 5.1 tab width obeys mode 'fill' and tablayout width matches perent. While on android 4.4.4 width looks like wrap_content . Design library version 23.3.0. How to fix it? layout [CODE]
android|android-4.4-kitkat|android-design-library
1
2016-04-14T13:35:06.053Z
2,016
4
13
3
412
2
293
19
3
1
true
false
false
false
false
false
low
36,624,895
Android Service member variable goes null after running for some time
<p>I'm trying to create a foreground service to communicate with a bluetooth device and I've done so using this structure:</p> <p>Using a service, which also registers a BroadcastReceiver as a private member variable (to handle Gatt events), then the service is started using the startService command. Then, I bind to ...
I'm trying to create a foreground service to communicate with a bluetooth device and I've done so using this structure: Using a service, which also registers a BroadcastReceiver as a private member variable (to handle Gatt events), then the service is started using the startService command. Then, I bind to that service...
java|android|service|bluetooth|bluetooth-lowenergy
0
2016-04-14T13:39:10.260Z
2,016
4
13
3
779
1
749
69
5
1
true
false
false
false
false
false
zero
36,624,924
AndroidPlot real time plotting plot from left after it reaches the the right corner of screen
<p>I am plotting a real time line graph using AndroiPlot. I need to restart the plotting from left when it reaches the maximum window. I am able to reset the x axis value to 0 and start plotting from the left. But there is always a line as shown in the picture from right to left, which I dont need to be displayed in t...
I am plotting a real time line graph using AndroiPlot. I need to restart the plotting from left when it reaches the maximum window. I am able to reset the x axis value to 0 and start plotting from the left. But there is always a line as shown in the picture from right to left, which I dont need to be displayed in the p...
android|androidplot
0
2016-04-14T13:40:14.340Z
2,016
4
13
3
652
1
389
93
2
1
true
false
false
false
false
false
zero
36,624,954
Android 4.4 remove shadow from CardView
<p><strong>I tried to remove the shadow from the Cardview.<br> I used android support v7 Cardview on android v4.4.2</strong> </p> <p>My layout look: </p> <pre><code>&lt;android.support.v7.widget.CardView android:id="@+id/cardContainer" android:layout_width="match_parent" android:layout_height="wrap_cont...
I tried to remove the shadow from the Cardview. I used android support v7 Cardview on android v4.4.2 My layout look: [CODE] As you can see i used: [CODE] Tried so far: [CODE] But still you can see in the image i attached the top shadow that showed.
android|android-layout|layout|android-support-library
3
2016-04-14T13:41:06.893Z
2,016
4
13
3
7,828
3
248
39
4
3
true
false
true
false
false
false
low
36,625,009
How to update Volley cache?
<p>I asked a <a href="https://stackoverflow.com/questions/36598313/invalidate-volley-cached-data-in-application-openning">question</a> about how to update Volley cache in Android yesterday and no one answered it, and I can not find any documentation about updating cache in Volley. I'm wondering if maybe I misunderstood...
I asked a question about how to update Volley cache in Android yesterday and no one answered it, and I can not find any documentation about updating cache in Volley. I'm wondering if maybe I misunderstood the way cache could be updated or not. How can I update Volley cache? EDIT: just for clarification, i bring my code...
android|caching|android-volley
1
2016-04-14T13:43:29.533Z
2,016
4
13
3
965
0
696
27
3
3
true
true
false
false
false
false
low
36,625,013
To much noise when I do sine wave generating on Android with Java
<p>I researched Sine wave generating on Android for a long time and I got some sample code online. However, I still got in confusion when I code by myself. I use the code like following</p> <pre><code>double[] buf = new double[(int) sampleRate]; byte[] buffer = new byte[(int) sampleRate]; double sampleInterval = sampl...
I researched Sine wave generating on Android for a long time and I got some sample code online. However, I still got in confusion when I code by myself. I use the code like following [CODE] I there is too much noise when I play the sine wave buffer generated by the formula "Math.sin((2.0*Math.PI*i)/sampleInterval)". I ...
java|android|audio|pcm|audiotrack
0
2016-04-14T13:43:35.610Z
2,016
4
13
3
312
1
817
65
5
1
true
false
false
false
false
false
zero
36,625,103
Android Audiotrack clicks before and after sound
<p>I'm making synthesizer capable generate three basic types of sound and when I'm playing the sound, before and after it finishes playing click happen. And I can't figure it out why.</p> <p>Happens with every type of sound.. with sine it is loudest.</p> <p>Here is the code I use for generating sound</p> <pre><code>...
I'm making synthesizer capable generate three basic types of sound and when I'm playing the sound, before and after it finishes playing click happen. And I can't figure it out why. Happens with every type of sound.. with sine it is loudest. Here is the code I use for generating sound [CODE] Audio example: https://sound...
android|audio|signal-processing|audiotrack
0
2016-04-14T13:46:42.513Z
2,016
4
13
3
631
1
394
48
4
1
true
false
false
false
false
false
zero
36,625,147
Check json sent by retrofit
<p>I want to check the raw json that is sent by retrofit in my enqueue call. Here goes the code of my click event:</p> <pre><code> public void onClick(View v) { ArrayList&lt;Product&gt; products = ((MenuAdapter)rvMenuProducts.getAdapter()).getOrderItens(); ArrayList&lt;Item&g...
I want to check the raw json that is sent by retrofit in my enqueue call. Here goes the code of my click event: [CODE] That's it how i call my API, And I'm getting some exception on my api, that I don't know, because my return is a boolean, however when i sent the request using postman, it works! Here is the json sent ...
android|json|post|retrofit
0
2016-04-14T13:48:19.577Z
2,016
4
13
3
709
1
462
27
4
4
true
false
false
false
false
false
zero
36,625,178
OkHttp doesn't redirect POST requests when used with retrofit
<p>Using <code>retrofit</code> I want to make POST request to <code>http://milzinas.lt/oauthsilent/authorize</code>. This URL is special because it redirects you to <code>http://milzinas.e-bros.lt/oauthsilent/authorize</code>. My retrofit setup uses <code>OkHttpClient</code>. If I make request using OkHttpClient only t...
Using retrofit I want to make POST request to http://milzinas.lt/oauthsilent/authorize . This URL is special because it redirects you to http://milzinas.e-bros.lt/oauthsilent/authorize . My retrofit setup uses OkHttpClient . If I make request using OkHttpClient only then redirecting works fine, i.e. 401 status code is ...
android|retrofit|okhttp
6
2016-04-14T13:49:46.257Z
2,016
4
13
3
4,274
1
1,131
61
3
4
true
false
true
false
false
false
medium
36,625,213
Populate array of ImageView with Picasso
<p>I'm trying to populate an array of ImageViews with Picasso. I get return working URL's from my backend. But when I've applied the URL's to the array of url's used by Picasso to load into the array of ImageViews nothing happens. </p> <p>I can't find where I might've gone wrong?</p> <pre><code>public class MemoriesA...
I'm trying to populate an array of ImageViews with Picasso. I get return working URL's from my backend. But when I've applied the URL's to the array of url's used by Picasso to load into the array of ImageViews nothing happens. I can't find where I might've gone wrong? [CODE] }
android|arrays|image|picasso
0
2016-04-14T13:51:09.343Z
2,016
4
13
3
329
0
278
40
4
1
true
true
false
false
false
false
zero
36,625,376
Android app crashes when calling any explicit intent (like camera/gallery, call or share) on Samsung galaxy s3
<p>I have compileSdkVersion and targetSdkVersion 23 and testing on Samsung galaxy s3. But whenever i open any third party app (explicit intent) like camera/gallery app or share intent (gmail, email) or dialer app and comeback to my app by pressing back button or (in case of camera/gallery app by selecting picture). App...
I have compileSdkVersion and targetSdkVersion 23 and testing on Samsung galaxy s3. But whenever i open any third party app (explicit intent) like camera/gallery app or share intent (gmail, email) or dialer app and comeback to my app by pressing back button or (in case of camera/gallery app by selecting picture). App re...
android|android-intent|android-camera|explicit
1
2016-04-14T13:57:33.630Z
2,016
4
13
3
1,512
1
664
110
4
3
true
false
false
false
false
false
low
36,625,387
Why is the text of TextView not restored when setRetainInstance(true) has been called?
<p>I called setRetainInstance(true) for a fragment. I added an EditText and TextView on the fragment. When rotated, the text in the EditText survived, but the text in the TextView was gone.</p> <p>I think I can manually restore the text of the TextView, but I wonder why the system automatically restores the text for E...
I called setRetainInstance(true) for a fragment. I added an EditText and TextView on the fragment. When rotated, the text in the EditText survived, but the text in the TextView was gone. I think I can manually restore the text of the TextView, but I wonder why the system automatically restores the text for EditText, an...
android|android-fragments
2
2016-04-14T13:58:06.277Z
2,016
4
13
3
740
1
656
86
2
4
true
false
false
false
false
false
low
36,625,428
ERROR: Asset package include 'C:\Users\jody\apktool\framework\1.apk' not found
<p>I need apk tool for repacking my app.So I install it on windows and in command line type this instruction</p> <pre><code>apktool b decoded myapp.apk </code></pre> <p>but I recieve this error</p> <pre><code>enter code here I: Copying classes.dex file... I: Checking whether resources has changed... I: Building reso...
I need apk tool for repacking my app.So I install it on windows and in command line type this instruction [CODE] but I recieve this error [CODE] Now I want ask how i can fix this error?
android|command-line|apktool
0
2016-04-14T13:59:24.390Z
2,016
4
13
3
1,208
1
185
78
3
2
true
false
false
false
false
false
zero
36,625,445
Android ListView - Setting adapter in a background thread to improve performance?
<h1>Situation</h1> <p>I have 3 tabs and currently when I swipe between the tabs there's a lot of lag. Each tab contains a ListView that has an image of a user, and two TextViews with the user's name and a small description (kind of like WhatsApp). Earlier each ListView would also lag and not scroll smoothly, but I went...
Situation I have 3 tabs and currently when I swipe between the tabs there's a lot of lag. Each tab contains a ListView that has an image of a user, and two TextViews with the user's name and a small description (kind of like WhatsApp). Earlier each ListView would also lag and not scroll smoothly, but I went through thi...
android|listview|android-asynctask
1
2016-04-14T13:59:59.757Z
2,016
4
13
3
271
0
1,445
81
3
0
false
true
false
false
false
false
low
36,625,448
Java/Android scoop
<p>Why does <code>Log.d("Test", "" + ListOfAttractions3.size() + "");</code> Return 0 when <code>Log.d("Test2", "" + ListOfAttractions3.size() + "");</code> returns 2 even though<code>DatabseRequest();</code> is called first? Some how Log 2 is also printed last but I can't see why?</p> <p>Code:</p> <pre><code>public ...
Why does Log.d("Test", "" + ListOfAttractions3.size() + ""); Return 0 when Log.d("Test2", "" + ListOfAttractions3.size() + ""); returns 2 even though DatabseRequest(); is called first? Some how Log 2 is also printed last but I can't see why? Code: [CODE]
java|android|json
0
2016-04-14T14:00:11.887Z
2,016
4
14
3
66
0
254
18
3
1
true
true
false
false
false
false
zero
36,625,488
How to deserialize json with a string-url name-value pair
<p>I have json response in the form</p> <pre><code> { "total": 782, "category": { "id": 1120, "name": "Computers &amp; Programming" }, "experts": [ { "id": 385816, "name": "Master Z", "title": "Mr", "description": " Expert in C++", "profile": "http://...com/experts.svc...
I have json response in the form [CODE] I am able to parse everything else in the experts[] array except "profile" whose value " http://...com/experts.svc/1.0/385816/..../json ?.." has the following json response [CODE] The models used are as follows 1. main pojo: [CODE] Category pojo: public class Category { private S...
java|android|json|retrofit2
0
2016-04-14T14:01:26.983Z
2,016
4
14
3
488
0
612
57
4
5
true
true
false
false
false
false
zero
36,625,592
Dynamically adding view or inflating layout to RecyclerView's item
<p>I am working on a social network application in which I need to show feeds to subscribers.. for showing feeds in a list. I am using <code>RecyclerView</code>. No Problem till now... but the problem comes when I have to show some comments on the feed. I am trying to accomplish a layout similar to Instagram where they...
I am working on a social network application in which I need to show feeds to subscribers.. for showing feeds in a list. I am using RecyclerView . No Problem till now... but the problem comes when I have to show some comments on the feed. I am trying to accomplish a layout similar to Instagram where they show an image ...
java|android|android-recyclerview
0
2016-04-14T14:05:21.743Z
2,016
4
14
3
1,994
1
1,659
66
3
5
true
false
false
false
false
false
zero
36,625,611
Android sqlite UPDATE not works properly
<p>I referred the following pages but still my problem is not solved,</p> <p><a href="https://stackoverflow.com/questions/22051097/android-sqlite-update-table-always-return-0">Android sqlite update table always return 0</a> , <a href="https://stackoverflow.com/questions/9798473/sqlite-in-android-how-to-update-a-speci...
I referred the following pages but still my problem is not solved, Android sqlite update table always return 0 , SQLite in Android How to update a specific row , Android SQLite update row not working , Update Function in android SQLite is not working and SQLiteDatabase update not working? I have a sqlite database as QU...
android|sqlite
0
2016-04-14T14:06:06.590Z
2,016
4
14
3
254
2
550
40
2
2
true
false
false
false
false
false
zero
36,625,743
why my context on glide return error nullable in logcat?
<p>i'm new on using glide. i try to load image from external storage, but i got error in logcat : </p> <p><a href="https://i.stack.imgur.com/jfmKO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jfmKO.png" alt="enter image description here"></a></p> <p>there is my class of recycleview adapter which...
i'm new on using glide. i try to load image from external storage, but i got error in logcat : there is my class of recycleview adapter which use glide for load image : [CODE] and there is my fragment activity which call recycleview adapter and add variable context to it. [CODE] I dont know why my variable mContext ret...
android|android-glide
0
2016-04-14T14:10:56.993Z
2,016
4
14
3
415
1
359
56
2
2
true
false
false
false
false
false
zero
36,625,765
suddenly getting dalvik error like unable to resolve virtual method for
<p>after updating suddenly i am getting this type of error</p> <pre><code> unable to resolve virtual method 741: Landroid/content/ContextWrapper;.checkSelfPermission (Ljava/lang/String;) I/dalvikvm: Could not find method android.app.AppOpsManager.checkPackage, referenced from method com.google.android.gms.common.zze....
after updating suddenly i am getting this type of error [CODE] other errors are also present but most of the unable to resolve virtual method app is not crashing but why this type of error coming is this issue or its fine ? Edit error are RecyclerView related like RecyclerViewHolder.access$super [CODE]
android|android-studio|android-recyclerview|dalvik
1
2016-04-14T14:12:00.680Z
2,016
4
14
3
2,967
2
303
71
4
2
true
false
true
false
false
false
low
36,625,888
RecyclerView OnClick resulting in NullPointerException
<p>I am using a RecyclerView to display information in a Fragment as a list with ImageViews and TextViews. I gave the ImageViews an OnClickListener to get the position and with that the drawable id to display the image in a larger ImageView. This works fine for all the RecyclerView rows which are displayed at the start...
I am using a RecyclerView to display information in a Fragment as a list with ImageViews and TextViews. I gave the ImageViews an OnClickListener to get the position and with that the drawable id to display the image in a larger ImageView. This works fine for all the RecyclerView rows which are displayed at the start of...
java|android|nullpointerexception|onclick|android-recyclerview
0
2016-04-14T14:15:57.313Z
2,016
4
14
3
810
3
1,156
54
5
3
true
false
false
false
false
false
zero
36,625,900
NullPointerException at setAdapter of Custom ListView and syntax error at arraylist creation
<p>I am trying to show the list of contacts in my phone as a list. I am storing individual list items in a string buffer but I am not able to convert it into the type List. list is a class that I have made.</p> <p>list.java</p> <pre><code>public class list { public StringBuffer item; public list( StringBuffer...
I am trying to show the list of contacts in my phone as a list. I am storing individual list items in a string buffer but I am not able to convert it into the type List. list is a class that I have made. list.java [CODE] listAdapter.java [CODE] Fragment class [CODE]
java|android|listview|stringbuffer
0
2016-04-14T14:16:15.300Z
2,016
4
14
3
83
1
266
92
4
3
true
false
false
false
false
false
zero
36,625,967
LibGdx - Serious memory leaks when switching Screens
<p>I have an UI with 4 Screens, my app is pretty heavy atm and starts off at about 250MB Ram usage, after I switch back and forth between Screens a few time, it rises fast, up to 800MB Ram before it crashes. </p> <p>This is how I deal with disposal:</p> <p>Each Screen <code>extends</code> MainScreen, where I have thi...
I have an UI with 4 Screens, my app is pretty heavy atm and starts off at about 250MB Ram usage, after I switch back and forth between Screens a few time, it rises fast, up to 800MB Ram before it crashes. This is how I deal with disposal: Each Screen extends MainScreen, where I have this dispose method: [CODE] When set...
java|android|ios|memory-leaks|libgdx
0
2016-04-14T14:19:11.087Z
2,016
4
14
3
526
1
1,049
52
5
2
true
false
false
false
false
false
zero
36,626,079
Error:Gradle: Execution failed for task ':androidLib:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details
<p>I've been getting this error for two days now and nothing I've tried worked so far.</p> <p>I have cleaned it, rebuilt it, invalidated cache, updated Android Studio and its build tools, but absolutely nothing works. My JAVA_HOME is fine, the SDK is fine. I checked everything, but it just doesn't seem to work.</p> <...
I've been getting this error for two days now and nothing I've tried worked so far. I have cleaned it, rebuilt it, invalidated cache, updated Android Studio and its build tools, but absolutely nothing works. My JAVA_HOME is fine, the SDK is fine. I checked everything, but it just doesn't seem to work. androidLib is one...
android|android-studio|gradle|dependencies|android-gradle-plugin
1
2016-04-14T14:23:48.133Z
2,016
4
14
3
4,937
2
964
144
5
5
true
false
true
false
false
false
low
36,626,128
my thread in java is showing errors
<p>I am a beginner to android development. I have been trying to work this splashscreen with a audio file that kills itself after 3 secs. Then my Mainactivity is supposed to start. But my code is showing some error which i cannot figure out.the code n the java class is as follows:`</p> <pre><code>public class splash e...
I am a beginner to android development. I have been trying to work this splashscreen with a audio file that kills itself after 3 secs. Then my Mainactivity is supposed to start. But my code is showing some error which i cannot figure out.the code n the java class is as follows:` [CODE] } the manifest file is as follows...
java|android
-3
2016-04-14T14:25:50.100Z
2,016
4
14
3
77
3
328
35
2
2
true
false
false
false
false
true
negative
36,626,306
Call an operation in PHP SOAP web service from Android Phonegap
<p>In my PHP web service, I have a function:</p> <pre><code>function create_promo($codeBarre, $designation, $dateDebut, $dateFin, $prix, $TVA) { $db = new PDO('mysql:host=localhost;dbname=phone', 'root', ''); $req = $db-&gt;prepare("insert into promotion values ...
In my PHP web service, I have a function: [CODE] This function is under C:\Wamp\WWW. I create my Cordova project and I write this code : [CODE] The Cordova project is on the C: directory. The alert message is not displaying; how I can display the error?
php|android|cordova|soap
0
2016-04-14T14:32:51.330Z
2,016
4
14
3
56
1
253
63
4
2
true
false
false
false
false
false
zero
36,626,319
class not found exception in android app
<p>I have class ClipActivity but i dont know why i confront this error: i checked the manifest the path and class name is correct. what should I do? what else can cause this problem?</p> <p>the path of project: android.app.clip</p> <pre><code> 04-14 18:39:39.629: I/dalvikvm(29793): Turning on JNI app bug workarounds ...
I have class ClipActivity but i dont know why i confront this error: i checked the manifest the path and class name is correct. what should I do? what else can cause this problem? the path of project: android.app.clip [CODE] manifest: [CODE] class code [CODE]
android
3
2016-04-14T14:33:19.903Z
2,016
4
14
3
94
0
259
40
1
3
true
true
false
false
false
false
low
36,626,432
Saving image by url to internal storage
<p>Please, need help. I'm having this error java.io.FileNotFoundException: <a href="http://news.yandex.ru/quotes/1507.png" rel="nofollow">http://news.yandex.ru/quotes/1507.png</a> (can be seen by browser) while saving it to my internal storage. this is my method:</p> <p>void downloadGraph(String link){ ...
Please, need help. I'm having this error java.io.FileNotFoundException: http://news.yandex.ru/quotes/1507.png (can be seen by browser) while saving it to my internal storage. this is my method: void downloadGraph(String link){ try { [CODE] Can you write a method to download\save this specific image (shown above)? Any h...
java|android|image|save|fileoutputstream
-1
2016-04-14T14:38:36.653Z
2,016
4
14
3
6,637
2
548
39
5
1
true
false
true
false
false
true
negative
36,626,445
Creating own Listview Layout - "LinearLayout cannot be cast to android.widget.TextView"
<p>I am just watching some Android tutorial videos to get into it. Currently I am dealing with ListViews and I want to create my own ListView layout. Based on the tutorial my code (part of MainActivity) looks like that:</p> <pre><code>// ListAdapter listAdapter = new ArrayAdapter&lt;String&gt;(this, android.R...
I am just watching some Android tutorial videos to get into it. Currently I am dealing with ListViews and I want to create my own ListView layout. Based on the tutorial my code (part of MainActivity) looks like that: [CODE] When using the first out commented line (simple_list_item_1) it works, but with my own layout (2...
android|listview|layout
0
2016-04-14T14:39:03.853Z
2,016
4
14
3
608
2
551
87
3
3
true
false
false
false
false
false
zero
36,626,458
BroadcastReceiver does not work
<p>I'm trying to create some simple <code>BroadcastReceiver</code> according to manuals but I can't to make it work. I'm calling procedure setAlarm in <code>onCreate</code> function in MainActivity that looks like this:</p> <pre><code>private void setAlarm() { Intent intent = new Intent(MainActivity.this, AlarmReceive...
I'm trying to create some simple BroadcastReceiver according to manuals but I can't to make it work. I'm calling procedure setAlarm in onCreate function in MainActivity that looks like this: [CODE] It should activate AlarmReceiver that should do some action but doesn't do anything. It looks like this: [CODE] I suspect ...
java|android|broadcastreceiver
0
2016-04-14T14:39:48.473Z
2,016
4
14
3
126
1
984
31
3
6
true
false
false
false
false
false
zero
36,626,489
Direction of scroll RecyclerView
<p>Can I detect the direction of scroll when I add the on scroll listener to my recycler view?</p> <p>The code is as follows: </p> <pre><code>recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { ...
Can I detect the direction of scroll when I add the on scroll listener to my recycler view? The code is as follows: [CODE] I want this function to work only if I scroll down. Currently it'll work on both scroll up and down. What changes do I make? I do not want to implement the onScrolled() method since that will be ca...
java|android|scroll|android-recyclerview
1
2016-04-14T14:41:04.773Z
2,016
4
14
3
325
0
418
32
4
1
true
true
false
false
false
false
low
36,626,526
TextJustify quality issue
<p>I've two problems.</p> <ol> <li><p>If you have a look on the "amet" of the image you see a very strange formatting. Would it be possible to disable the space beetween characters and only add spaces between words?</p></li> <li><p>The text quality is very bad. The characters looks very thin and you can see the pixels...
I've two problems. If you have a look on the "amet" of the image you see a very strange formatting. Would it be possible to disable the space beetween characters and only add spaces between words? The text quality is very bad. The characters looks very thin and you can see the pixels. Changing the typeface wouldn't cha...
android|justify
0
2016-04-14T14:42:36.103Z
2,016
4
14
3
113
1
434
25
2
1
true
false
false
false
false
false
zero
36,626,632
Android studio 2.0 - Error while Launching activity
<p>Whenever I try to run my app this i get the following error:</p> <pre><code>Unexpected error while executing: am start -n "com.example.amran.myapplication/com.example.amran.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Error while Launching activity </code></pre> <p>...
Whenever I try to run my app this i get the following error: [CODE] This is the code of MainActivity: [CODE] And this is the Logcat output: [CODE]
android|android-studio
0
2016-04-14T14:46:53.420Z
2,016
4
14
3
84
0
146
51
2
3
true
true
false
false
false
false
zero
36,626,730
app crashed when trying to call BufferedReader.readLine()
<p>I am working on an android app that has to parse text from a file. </p> <p>I have the following method in my Parser.java class: </p> <pre><code>private String getText(String fileName) { BufferedReader buffer = null; File file = new File(fileName); try{ buffer = new BufferedReade...
I am working on an android app that has to parse text from a file. I have the following method in my Parser.java class: [CODE] I am getting an issue whenever there is a call to the buffer.readLine() method within the while loop. I pass in the following path info the File object is this: [CODE] Now I have looked at nume...
java|android|bufferedreader
0
2016-04-14T14:50:30.730Z
2,016
4
14
3
2,045
2
714
57
3
3
true
false
false
false
false
false
zero
36,626,808
Android FacebookActivity doesn't show Cannot call determinedVisibility()
<pre><code>FacebookSdk.sdkInitialize(getApplicationContext()); AppEventsLogger.activateApp(this); callbackManager = CallbackManager.Factory.create(); setContentView(R.layout.activity_register_rs1); //String username = getIntent().getExtras().getString("username"); //Log.w("usern...
[CODE] i use this code to Login with facebook and when i press to the facebook login button .. it's just stay loading and the FacebookActivity never show.. this is my logcat screen: W/BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 8328
android|android-studio|facebook-sdk-4.0
3
2016-04-14T14:54:10.850Z
2,016
4
14
3
432
1
277
72
3
1
true
false
false
false
false
false
low
36,626,825
Can't clone from GitHub in AndroidStudio 2.1 Beta
<p>Git is installed: <a href="https://i.stack.imgur.com/WTcFh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WTcFh.png" alt="enter image description here"></a></p> <p>Have access to GitHub with my account</p> <p><a href="https://i.stack.imgur.com/RJ550.png" rel="nofollow noreferrer"><img src="http...
Git is installed: Have access to GitHub with my account But can't clone a repository from the list: UPDATE: Today is available AndroidStudio 2.1 Beta 2 The issue is resolved , but it works only with http. SSH doesn't work THIS dialog shows 3 times. and then error: Failed with error: fatal: Could not read from remote re...
android|git|android-studio
6
2016-04-14T14:54:49.743Z
2,016
4
14
3
1,066
1
451
49
3
1
true
false
false
false
false
false
medium
36,626,869
layout_gravity not centering my view vertically
<p>I'm trying to center just one of my views in a relative layout. I'm using the following code:</p> <pre><code>&lt;RelativeLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.21" android:id="@+id/atm_map_legend_view"&gt; &lt;ImageButton android:...
I'm trying to center just one of my views in a relative layout. I'm using the following code: [CODE] This gets the following result: As you can see, the ImageButton is not centering vertically. Using android:gravity works, but then it messes with the ImageView when that pops up (it causes it to move down, overlapping w...
android
0
2016-04-14T14:56:52.807Z
2,016
4
14
3
23
1
400
47
1
1
true
false
false
false
false
false
zero
36,627,003
NullPointerException when trying to find layout by Id in android studio
<p>Whenever I run this code and go to change to my lesson fragment (code below), I get a fatal exception 'java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference'. This must be something to do with the fragment as if I run this ...
Whenever I run this code and go to change to my lesson fragment (code below), I get a fatal exception 'java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference'. This must be something to do with the fragment as if I run this cod...
java|android|android-fragments|android-studio
0
2016-04-14T15:03:01.607Z
2,016
4
15
3
43
0
578
71
4
2
true
true
false
false
false
false
zero
36,627,147
Android Confliction of com.android.support:support-v4:23.1.1 library (Top Level Exception ) exist value 0
<p>In my android project i am using two module ,but the module using same <code>lib.com.android.support:support-v4:23.1.1</code> so i am getting the conflict at run time in android studio .saying the error as </p> <blockquote> <p>Error:Execution failed for task ':app:transformClassesWithDexForDebug'. ...
In my android project i am using two module ,but the module using same lib.com.android.support:support-v4:23.1.1 so i am getting the conflict at run time in android studio .saying the error as Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com...
android|android-gradle-plugin
0
2016-04-14T15:08:40.780Z
2,016
4
15
3
112
0
582
105
2
3
true
true
false
false
false
false
zero
36,627,458
Espresso Perform Exception happening in CI only
<p>I am using Bitrise to run some Android espresso UI tests, but I cant seem to find a solution for this Perform Exception:</p> <pre><code>android.support.test.espresso.PerformException: Error performing 'single click' on view 'with id: com.selfcarecatalyst.healthstorylines.adda:id/male'. at android.support.test.e...
I am using Bitrise to run some Android espresso UI tests, but I cant seem to find a solution for this Perform Exception: [CODE] Im testing a sign up page that has a few fields. If i skip clicking one field, I get the same error on the next click on this form. The relevant code is: [CODE] setName is called first, and i ...
continuous-integration|android-espresso|bitrise
2
2016-04-14T15:22:07.937Z
2,016
4
15
3
599
1
547
47
3
2
true
false
false
false
false
false
low
36,627,462
ACRA not creating report
<p>I've implemented ACRA 4.8.5 in my app and it is initialized and enabled and all but when I face a bug, it doesn't create a report... The only two related ACRA logs I have are:</p> <pre><code>I/ACRA: ACRA is enabled for com.mydomain.myapp, initializing... </code></pre> <p>and</p> <pre><code>E/ACRA: ACRA caught a R...
I've implemented ACRA 4.8.5 in my app and it is initialized and enabled and all but when I face a bug, it doesn't create a report... The only two related ACRA logs I have are: [CODE] and [CODE] I have this in my application class [CODE] and [CODE] Here is my ACRASenderFactory class [CODE] and here is my ACRAReportSende...
android|report|acra
1
2016-04-14T15:22:15.757Z
2,016
4
15
3
596
2
486
24
3
6
true
false
false
false
false
false
low
36,627,581
Performance Issue When Loading Images From URLs
<p>I have a list view that displays data from a RSS feed. I get everything fine and it appears how I want it. The problem is performance when scrolling. It is very slow with a lot of lag most of the time and sometimes the app actually crashes because it gets so bad. If I take away the images everything is smooth and wo...
I have a list view that displays data from a RSS feed. I get everything fine and it appears how I want it. The problem is performance when scrolling. It is very slow with a lot of lag most of the time and sometimes the app actually crashes because it gets so bad. If I take away the images everything is smooth and works...
java|android|listview|picasso|image-loading
0
2016-04-14T15:27:51.067Z
2,016
4
15
3
70
1
406
47
5
2
true
false
false
false
false
false
zero
36,627,675
Can't extend ClipDrawable: Verifier rejected class on Android 5
<p>This is my extended <code>ClipDrawable</code> class:</p> <pre><code>package com.example.app; import android.graphics.drawable.ClipDrawable; import android.graphics.drawable.ColorDrawable; import android.view.Gravity; public class ProgressClipDrawable extends ClipDrawable { public ProgressClipDrawable(int col...
This is my extended ClipDrawable class: [CODE] When I try to instantiate this class I get the following errors: [CODE] And the exception: [CODE] What's interesting is that everything works fine on Android < 5. And I get this crash only on a device running on Android 5.1.1. There's a method being mentioned: [CODE] But I...
android
0
2016-04-14T15:32:18.387Z
2,016
4
15
3
228
1
393
63
1
4
true
false
false
false
false
false
zero
36,627,691
Android PDF generation
<p>I tried to learn how to generate PDF for my Android application.<br> I followed the official documentation but the code didn't work.<br> the compiler found me some compilation error but all I did was to copy/paste the code from the code.<br> please take a look at the code and tell me why (:</p> <pre><code> PrintAtt...
I tried to learn how to generate PDF for my Android application. I followed the official documentation but the code didn't work. the compiler found me some compilation error but all I did was to copy/paste the code from the code. please take a look at the code and tell me why (: [CODE]
java|android|pdf-generation
1
2016-04-14T15:32:49.963Z
2,016
4
15
3
550
1
286
22
3
1
true
false
false
false
false
false
low
36,627,867
Android Twilio How do I use these example classes?
<p>I am writing an android app that will be using Twilio, but obviously, I am new to android. I would just like to see if someone can explain how to use these example classes from <a href="https://www.twilio.com/docs/quickstart/java/connect" rel="nofollow">Twilio's site</a>?</p> <p>If I make a new Java Class called <...
I am writing an android app that will be using Twilio, but obviously, I am new to android. I would just like to see if someone can explain how to use these example classes from Twilio's site ? If I make a new Java Class called CallRetriever , how do I call it in my main activity while sending in the ACCOUNT_SID and AUT...
java|android|twilio
2
2016-04-14T15:40:44.067Z
2,016
4
15
3
71
1
432
50
3
2
true
false
false
false
false
false
low
36,628,070
Can't convert to dimension: type=0x12
<p>My alarm clock design layout <code>listView</code> looked as image below.</p> <p><a href="https://i.stack.imgur.com/vS4tN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vS4tN.png" alt="enter image description here"></a></p> <p><strong>custom_row_view</strong></p> <pre><code>&lt;?xml version="1...
My alarm clock design layout listView looked as image below. custom_row_view [CODE] My app crashed when this layout get called. [CODE]
android|xml|android-layout
2
2016-04-14T15:50:41.797Z
2,016
4
15
3
8,290
2
134
37
3
2
true
false
true
false
false
false
low
36,628,092
send array from php to android studio
<p>hey i have certain data on 000webhost which i want to send to my android studio app. I have checked the query by directly running on 000webhost , it is working.</p> <p>But it is not sending data to android studio.I tried printing the value it prints null.Basically data i m sending trying to send an array.My fuction...
hey i have certain data on 000webhost which i want to send to my android studio app. I have checked the query by directly running on 000webhost , it is working. But it is not sending data to android studio.I tried printing the value it prints null.Basically data i m sending trying to send an array.My fuction is perform...
java|php|android|arrays|json
1
2016-04-14T15:51:49.340Z
2,016
4
15
3
1,030
1
855
37
5
5
true
false
false
false
false
false
low
36,628,153
BLE trying to handle custom profile, getting Error receiving broadcast Intent
<p>So i have a BLE peripheral with a custom UUID, and i'm able to connect to it fine. I can read the custom characteristic using:</p> <pre><code> if (UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())) { int flag = characteristic.getProperties(); int format = -1; if ((flag &amp; 0x01)...
So i have a BLE peripheral with a custom UUID, and i'm able to connect to it fine. I can read the custom characteristic using: [CODE] But if i want to specify what to do with a specific characteristic: [CODE] I get Error receiving broadcast Intent .....Caused by: java.lang.NumberFormatException: Invalid int: "null" Can...
android|bluetooth|bluetooth-lowenergy
1
2016-04-14T15:54:33.577Z
2,016
4
15
3
103
1
364
77
3
2
true
false
false
false
false
false
low
36,628,284
Driving Style Detection using Smartphone Sensors
<p>I want to measure the acceleration (forward and lateral separately) using an android smartphone device in order to be able to analyse the driving behavior/style. </p> <p>My approach would be as follows:</p> <h2>1. Aligning coordinate systems</h2> <p><strong>Calibration (no motion / first motion):</strong> While t...
I want to measure the acceleration (forward and lateral separately) using an android smartphone device in order to be able to analyse the driving behavior/style. My approach would be as follows: 1. Aligning coordinate systems Calibration (no motion / first motion): While the car is stationary, I would calculate the mag...
java|android|android-sensors|inertial-navigation
11
2016-04-14T16:01:13.063Z
2,016
4
16
3
572
1
1,918
48
4
0
false
false
false
false
true
false
medium
36,628,353
use FAB in android - support libraries 23.2.1
<p>I can use FAB in support libraries 23.1.1 perfectly , when I put it in XML it appear without any problem . but when I use android - support libraries 23.2.1 or higher , and try to use FAB and put in XML , it doesn't appear as FAB , just a blank rectangle .please how can I use FAB in these libraries ? I tried t...
I can use FAB in support libraries 23.1.1 perfectly , when I put it in XML it appear without any problem . but when I use android - support libraries 23.2.1 or higher , and try to use FAB and put in XML , it doesn't appear as FAB , just a blank rectangle .please how can I use FAB in these libraries ? I tried to rebuild...
android|android-support-library|floating-action-button
0
2016-04-14T16:05:00.440Z
2,016
4
16
3
225
1
380
45
3
1
true
false
false
false
false
false
zero
36,628,379
Just updated to Android studio 2.1 Beta and freezez on build.gradle
<p>This is the version I updated (just appeared today 14 April)<a href="https://i.stack.imgur.com/5zUCK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5zUCK.jpg" alt="enter image description here"></a></p> <p>And now It remains stuck in gradle build. in my aps config the app just changed: From:</p>...
This is the version I updated (just appeared today 14 April) And now It remains stuck in gradle build. in my aps config the app just changed: From: [CODE] to: [CODE] Is there anything I can do to fix this? Using: ./gradlew assembleDebug I saw it gets stuck at: [CODE] with: [CODE] PS: after deleting cache.properties.loc...
android|android-studio|gradle|android-gradle-plugin|build.gradle
1
2016-04-14T16:06:34.110Z
2,016
4
16
3
429
1
413
67
5
5
true
false
false
false
false
false
low
36,628,399
Should I use retrofit with a singleton?
<p>I'm new to retrofit and want to know what's the best practice.</p> <p>Here is some abstracted code that I found online:</p> <pre><code>public class RestClient { private static final String BASE_URL = "your base url"; private ApiService apiService; public RestClient() { Gson gson = new Gso...
I'm new to retrofit and want to know what's the best practice. Here is some abstracted code that I found online: [CODE] and lets say I want to make a api request/call with this function [CODE] My question is should I make a new restClient object or this should be a singleton, or the ApiService should be a singleton. Wh...
android|retrofit
15
2016-04-14T16:07:15.837Z
2,016
4
16
3
9,757
2
500
39
2
2
true
false
true
false
true
false
medium
36,628,427
GSON fromJson with complex JSONObject not working
<p>I'm trying to use GSON fromJson() with a simple JSONObject, but it's not working for some reason. And it's not printing any stacktrace at all. Maybe i'm doing something really wrong in my code and someone can help:</p> <pre><code>JSONObject json = new JSONObject(); json.put("id", "1"); json.put("name", "Test 1"); ...
I'm trying to use GSON fromJson() with a simple JSONObject, but it's not working for some reason. And it's not printing any stacktrace at all. Maybe i'm doing something really wrong in my code and someone can help: [CODE] And my Test class: [CODE] I'm trying to parse this in Android, and it's not working or printing er...
android|json|gson
1
2016-04-14T16:08:31.653Z
2,016
4
16
3
1,988
2
458
49
3
2
true
false
false
false
false
false
low
36,628,521
Linear Layout of Linear Layouts not displaying correctly with weights
<p>i'm trying to create a vertical linear layout the contains multiple horizontal linear layouts of buttons and at the bottom a Banner ad. But what i'm doing is clearly not working. In the following screenshot it comes out basically how i want it in the preview but in the emulator it is not coming out like i want it le...
i'm trying to create a vertical linear layout the contains multiple horizontal linear layouts of buttons and at the bottom a Banner ad. But what i'm doing is clearly not working. In the following screenshot it comes out basically how i want it in the preview but in the emulator it is not coming out like i want it leavi...
android|xml|android-layout
0
2016-04-14T16:13:39.603Z
2,016
4
16
3
43
1
564
69
3
1
true
false
false
false
false
false
zero
36,628,551
Activity is frozen and doesn't go back to previous activity
<p>sorry if this is a dummy question, but I am quite new coding in Android and using the Google Drive API.</p> <p>In my app, I need to create a file within a folder I previously created. At the time that the folder is created, I can only retrieve the DriveID using DriveId.encodeToString. So, in order to get the Resour...
sorry if this is a dummy question, but I am quite new coding in Android and using the Google Drive API. In my app, I need to create a file within a folder I previously created. At the time that the folder is created, I can only retrieve the DriveID using DriveId.encodeToString. So, in order to get the ResourceID for th...
android|android-activity|google-drive-android-api
0
2016-04-14T16:15:04.817Z
2,016
4
16
3
126
0
729
59
3
2
true
true
false
false
false
false
zero
36,628,664
How to compare input text with string array in android studio?
<p>I am new to app development and I have a problem with coding in android studio. I want to compare an input text with a string in the string array. For some reason it won't work. When i try the java code in eclipse it works.</p> <p>I already run the debugger and the inputmessage is "Banana". The debugger also shows ...
I am new to app development and I have a problem with coding in android studio. I want to compare an input text with a string in the string array. For some reason it won't work. When i try the java code in eclipse it works. I already run the debugger and the inputmessage is "Banana". The debugger also shows that messag...
java|android|arrays|android-studio|android-edittext
-2
2016-04-14T16:20:35.413Z
2,016
4
16
3
3,943
2
498
62
5
1
true
false
true
false
false
true
negative
36,628,680
JSONArray post not working from Android app
<p>I tried using Postman, it works completely fine</p> <p><a href="https://i.stack.imgur.com/SvkK4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SvkK4.jpg" alt="Postman Screenshot"></a></p> <p>But when I post from the app, only the table and cost object gets posted.</p> <p>Here is my Android cod...
I tried using Postman, it works completely fine But when I post from the app, only the table and cost object gets posted. Here is my Android code [CODE] This is the output from Android App [CODE] From Postman, [CODE] This function used for posting [CODE] What mistake am I making in sending the JSONObject?
android|post|android-volley|json
0
2016-04-14T16:21:19.840Z
2,016
4
16
3
95
1
306
43
4
4
true
false
false
false
false
false
zero
36,628,776
Xamarin Android - Setting TextSize from Dimension file
<p>I have a Xamarin Android project where I am using dimension files to specify text sizes, paddings, margins etc for different screen sizes/resolutions.</p> <p>I have noticed that there is a pronounced difference between setting the value directly within the layout and within code.</p> <p>For example, if I add the f...
I have a Xamarin Android project where I am using dimension files to specify text sizes, paddings, margins etc for different screen sizes/resolutions. I have noticed that there is a pronounced difference between setting the value directly within the layout and within code. For example, if I add the following to a TextV...
android|xamarin.android
3
2016-04-14T16:25:47.123Z
2,016
4
16
3
3,719
1
752
54
2
0
false
false
true
false
false
false
low
36,628,831
Call an Activity method from Fragment
<p>I'm using <code>ToDoActiviy.cs</code> for user login, this class got this method:</p> <pre><code>[Java.Interop.Export()] </code></pre> <p><code>public async void LoginUser(View view) { if(await authenticate())..</code></p> <p>This method is called from .axml file from Button widget <code>android:onClick="L...
I'm using ToDoActiviy.cs for user login, this class got this method: [CODE] public async void LoginUser(View view) { if(await authenticate()).. This method is called from .axml file from Button widget android:onClick="LoginUser" I changed this for android:onClick="LoginUserClick" This last method create a dialog fragme...
c#|android|android-fragments|xamarin|fragment
2
2016-04-14T16:27:41.047Z
2,016
4
16
3
3,410
5
828
37
5
2
true
false
true
false
false
false
low
36,628,867
Chrome for Android - Notifications don't appear
<p>I have a problem with Chrome for Android both standard and dev (51). While notifications api works perfectly on other browsers (Chrome &amp; Firefox on desktop + Firefox on Android), it fails unfortunately on mobile chrome. The browser asks for a permission on notification event, but it doesn't display it. As mentio...
I have a problem with Chrome for Android both standard and dev (51). While notifications api works perfectly on other browsers (Chrome & Firefox on desktop + Firefox on Android), it fails unfortunately on mobile chrome. The browser asks for a permission on notification event, but it doesn't display it. As mentioned abo...
javascript|google-chrome|notifications|push-notification|android-notifications
3
2016-04-14T16:29:29.307Z
2,016
4
16
3
1,021
1
475
47
5
1
true
false
false
false
false
false
low
36,628,961
Broadcast intent callback is cancelled and causes device to be unregistered
<p>I have been trying to see why I haven't been receiving any push notifications and I have narrowed it down to this. My broadcast intent isn't being passed any information due to it being cancelled. This causes my device to be unregistered. I have looked through various questions here and none have seemed to work. I'm...
I have been trying to see why I haven't been receiving any push notifications and I have narrowed it down to this. My broadcast intent isn't being passed any information due to it being cancelled. This causes my device to be unregistered. I have looked through various questions here and none have seemed to work. I'm ho...
java|android|android-intent|google-cloud-messaging
0
2016-04-14T16:33:49.157Z
2,016
4
16
3
636
1
537
75
4
2
true
false
false
false
false
false
zero
36,629,023
Using ArrayAdapter crashes app every time. Android Studio 2.0
<p>I'm trying to dynamically set the values in a list. Originally this was taking place in the <code>onCreate</code> event itself. Thinking that perhaps the <code>ListView</code> object hadn't been initialized yet I moved this to a button click event. This simple example blows up nicely every time I tap the button with...
I'm trying to dynamically set the values in a list. Originally this was taking place in the onCreate event itself. Thinking that perhaps the ListView object hadn't been initialized yet I moved this to a button click event. This simple example blows up nicely every time I tap the button with the "Unfortunately, ListView...
android|listview|android-arrayadapter
-1
2016-04-14T16:36:54.643Z
2,016
4
16
3
751
1
687
61
3
2
true
false
false
false
false
true
negative
36,629,263
How can I stop my recyclerview from allowing left swipe and only allow right swipe?
<p>I'm using the example from <a href="https://github.com/iPaulPro/Android-ItemTouchHelper-Demo/" rel="nofollow">https://github.com/iPaulPro/Android-ItemTouchHelper-Demo/</a> to handle drag and swipe on a <code>RecyclerView</code>. It is working great except for I do not know how to stop it from allowing up/down/left s...
I'm using the example from https://github.com/iPaulPro/Android-ItemTouchHelper-Demo/ to handle drag and swipe on a RecyclerView . It is working great except for I do not know how to stop it from allowing up/down/left swipes. I can ignore the swipes but I don't even want them to happen. Is that possible? I even modified...
android|android-recyclerview|android-support-library
2
2016-04-14T16:50:35.133Z
2,016
4
16
3
1,652
2
435
83
3
1
true
false
false
false
false
false
low
36,629,346
Android SetText in OkHttp Async callback causing crash
<p>I have an android activity that executes an Asynchronous <strong>Okhttp</strong> call, when the activity is loaded ( called from the <code>onStart</code> method as getActiveRequests()).</p> <pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener { Button btLogout; UserLocalSt...
I have an android activity that executes an Asynchronous Okhttp call, when the activity is loaded ( called from the onStart method as getActiveRequests()). [CODE] What I want to do Is update the UI once the Http call has been made using the SetText methods. Here is my call, implemented in the GetActiveRequests() method...
java|android|android-asynctask|settext
2
2016-04-14T16:54:19.123Z
2,016
4
16
3
1,171
1
645
54
4
2
true
false
false
false
false
false
low
36,629,448
Force animateCamera to complete animation
<p>I'm trying to force the camera to animate to a zoom level and coordinate that describes as precisely as possible the area occupied by a list of <code>LatLng</code> coordinates.</p> <p>So far, I have the following:</p> <pre><code>private void focusListOfCoords(Collection&lt;LatLng&gt; coords) { LatLngBounds.Build...
I'm trying to force the camera to animate to a zoom level and coordinate that describes as precisely as possible the area occupied by a list of LatLng coordinates. So far, I have the following: [CODE] The code above, when zoomed all the way out on the whole world simply pans the view slightly to center on the center po...
android|google-maps
0
2016-04-14T16:59:09.297Z
2,016
4
16
3
389
1
1,092
41
2
1
true
false
false
false
false
false
zero
36,629,480
Android library (.aar) using the same gradle dependency as app - but different versions, causes a NoClassDefFoundError
<p>I have created a Android library which is packaged as an <strong>.aar</strong> file. </p> <p>My library uses v1.8.0 of Squares Retrofit library internally. </p> <p>An end user of my library is also using Retrofit, but they are using 2.0.1. </p> <p>A problem arises when they try and run their app, a <code>java.lan...
I have created a Android library which is packaged as an .aar file. My library uses v1.8.0 of Squares Retrofit library internally. An end user of my library is also using Retrofit, but they are using 2.0.1. A problem arises when they try and run their app, a java.lang.NoClassDefFoundError is thrown when it reaches a li...
java|android|android-gradle-plugin
0
2016-04-14T17:00:53.443Z
2,016
4
17
3
536
1
1,006
118
3
1
true
false
false
false
false
false
zero
36,629,790
How to store json values into array
<p>I used JSON to receive data from web perfectly but I want to use longitude and latitude which i stored in database then want to use in <code>MapActivty</code> so I want to store all the values in a simple array to play with it in MapActivity</p> <pre><code>ServiceHandler serviceClient = new ServiceHandler(); ...
I used JSON to receive data from web perfectly but I want to use longitude and latitude which i stored in database then want to use in MapActivty so I want to store all the values in a simple array to play with it in MapActivity [CODE]
android|google-maps
-1
2016-04-14T17:16:21.433Z
2,016
4
17
3
881
1
235
35
2
1
true
false
false
false
false
true
negative
36,629,818
Update RecyclerView adapter after SharedPrefereces changed
<p>I have <code>RecyclerView</code> with custom <code>RecyclerView</code> adapter.</p> <p>Each row of <code>RecyclerView</code> "opens"(when user clicked on it) using CardFlipAnimation(<code>AnimatorSet</code>).</p> <p>In each row there is a button that change int value in <code>SharedPreferences</code> , and <code>T...
I have RecyclerView with custom RecyclerView adapter. Each row of RecyclerView "opens"(when user clicked on it) using CardFlipAnimation( AnimatorSet ). In each row there is a button that change int value in SharedPreferences , and TextView that shows this value. If i have opened more than one row i need dynamically cha...
sharedpreferences|android-recyclerview|observers|android-sharedpreferences
1
2016-04-14T17:17:52.740Z
2,016
4
17
3
111
1
818
58
4
0
false
false
false
false
false
false
low
36,629,873
Android SocketTimeoutException reasons
<p>I would like to use a REST API in my application. It throw <code>SocketTimeoutException</code> for all my requests from this app.</p> <p><code>Logcat</code> output: (You can see this also with pretty formatting here: <a href="http://pastebin.com/FbZU6wRd" rel="nofollow">http://pastebin.com/FbZU6wRd</a>)</p> <block...
I would like to use a REST API in my application. It throw SocketTimeoutException for all my requests from this app. Logcat output: (You can see this also with pretty formatting here: http://pastebin.com/FbZU6wRd ) 04-14 18:58:46.769 22839-22839/kovacsdev.hu.facec W/AsyncHttpClient: Passed contentType will be ignored b...
android|rest|api-design
2
2016-04-14T17:21:10.137Z
2,016
4
17
3
2,358
1
3,520
38
3
2
true
false
false
false
false
false
low
36,629,990
Xamarin Forms DataTrigger causes NullReferenceException
<p>I am attempting to use a simple <code>DataTrigger</code> element within the XAML of a Xamarin Forms page:</p> <pre class="lang-xml prettyprint-override"><code>&lt;Frame BackgroundColor="Red" HorizontalOptions="Fill" VerticalOptions="FillAndExpand"&gt; &lt;Frame.Triggers&gt; &lt;DataTrigger TargetType="F...
I am attempting to use a simple DataTrigger element within the XAML of a Xamarin Forms page: [CODE] This configuration crashes the application with what is effectively a NullReferenceException : Java.Lang.NullPointerExceptionAttempt to invoke virtual method 'boolean android.graphics.Bitmap.isMutable()' on a null object...
xamarin|xamarin.android|xamarin.forms|datatrigger
2
2016-04-14T17:26:50.327Z
2,016
4
17
3
524
1
500
55
4
1
true
false
false
false
false
false
low
36,630,059
Android: Changing deployment target when instant run is enabled
<p>Is there no easy way to change my deployment target when instant run is enabled? For example, I have two emulators running at the same time on my mac, one is genymotion API 22 and one which is genymotion API 16.</p> <p>I have already unchecked this box as I would like to deploy my build to my api 16 emulator:</p> ...
Is there no easy way to change my deployment target when instant run is enabled? For example, I have two emulators running at the same time on my mac, one is genymotion API 22 and one which is genymotion API 16. I have already unchecked this box as I would like to deploy my build to my api 16 emulator: But the Play ico...
android|android-studio|instant-run
6
2016-04-14T17:29:53.480Z
2,016
4
17
3
1,188
2
662
63
3
0
false
false
false
false
false
false
medium
36,630,194
How to specify Local Date and Time in JavaScript
<p>I have an Android App and I wanted to display notification at a given date and time (all local). However if I use UTC format like this which I fetch from server thru json:</p> <pre><code>2016-04-14T11:30:00Z </code></pre> <p>the message gets displayed at the same time across the globe using this functions:</p> <p...
I have an Android App and I wanted to display notification at a given date and time (all local). However if I use UTC format like this which I fetch from server thru json: [CODE] the message gets displayed at the same time across the globe using this functions: [CODE] What I want is to display the message at 11:30 AM o...
javascript|android|datetime|locale|android-notifications
0
2016-04-14T17:37:02.447Z
2,016
4
17
3
673
2
1,505
48
5
3
true
false
false
false
false
false
zero
36,630,312
Change listitem background based on content/variable
<p>I have a list with a custom adapter and would like to set the background color based on content of the list item or a variable. The list consists of a textview with a date and some information. </p> <p>I need the background color to change when a new date is shown..</p> <p>item1: 2. march 2016 -> blue</p> <p>item...
I have a list with a custom adapter and would like to set the background color based on content of the list item or a variable. The list consists of a textview with a date and some information. I need the background color to change when a new date is shown.. item1: 2. march 2016 -> blue item2: 2. march 2016 -> blue ite...
android|listview
0
2016-04-14T17:43:01.710Z
2,016
4
17
3
44
1
477
52
2
1
true
false
false
false
false
false
zero
36,630,330
Unable to run multiple bluetooth connection
<p>this the main activity java file of my code </p> <pre><code>package com.ramimartin.sample.multibluetooth; import android.bluetooth.BluetoothDevice; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v4.app.FragmentTransaction; import android.widget.ArrayAdapter; import ...
this the main activity java file of my code [CODE] here is layout of the application stackoverflow does not allow me to ask question , i am beginner , very tough to ask question plz try to find out error ur response will be appreciated [CODE] log error error log
android|eclipse|bluetooth
1
2016-04-14T17:44:09.890Z
2,016
4
17
3
49
0
262
43
3
2
true
true
false
false
false
false
low
36,630,361
is there a way to rename a child node name in firebase?
<pre><code>{ "750bf295-1a99-4b0f-a072-cae87d25f53e" : { "email" : "aa@aa.aa", "hotel" : { "Vkci" : { "author" : "Jole", "comfort" : 2.5, "food" : 4.0, "latit" : 45.545908325164106, "longit" : 18.40588353574276, "name" : "Vkci", "rating" : 3.6666667...
[CODE] This is my firebase database JSON. I'm calling MapActivity from my adapter and I'm passing this data: [CODE] and in my MapActivity I have a dialog to edit some of the data or to delete the hotel: [CODE] When I click positive button to save changes, if I leave hotel name as it was in adapter, all other fields wou...
android|firebase|firebase-realtime-database
0
2016-04-14T17:45:22.160Z
2,016
4
17
3
891
0
678
55
3
3
true
true
false
false
false
false
zero
36,630,507
Android Renderscript, remove white/whiteish background from Bitmap
<p>I'm working on a picture based app and I'm blocked on an issue with Renderscript.</p> <p>My purpose is pretty simple in theory, I want to remove the white background from the images loaded by the user, to show them on another image i've set as background. More specifically what I want to to is to simulate the effec...
I'm working on a picture based app and I'm blocked on an issue with Renderscript. My purpose is pretty simple in theory, I want to remove the white background from the images loaded by the user, to show them on another image i've set as background. More specifically what I want to to is to simulate the effect of printi...
android|image|image-processing|bitmap|renderscript
1
2016-04-14T17:54:13.483Z
2,016
4
17
3
418
1
1,982
66
5
1
true
false
false
false
false
false
low
36,630,589
Appium - Perform Multitouch gesture
<p>I want to perform a multitouch gesture with Appium on an Android Device using the example app <code>MultiTouchTester</code>. I am using JUnit and therefore my test case is implemented in Java.</p> <p>I want to perform an long press (tap) by three fingers. Afterwards each finger has to move to a specific direction. ...
I want to perform a multitouch gesture with Appium on an Android Device using the example app MultiTouchTester . I am using JUnit and therefore my test case is implemented in Java. I want to perform an long press (tap) by three fingers. Afterwards each finger has to move to a specific direction. This is what I have so ...
android|appium|multi-touch
0
2016-04-14T17:58:23.537Z
2,016
4
17
3
663
0
690
35
3
1
true
true
false
false
false
false
zero
36,630,835
Implementing toolbar invoking null object reference
<p>I am having problems implementing the actionbar (which I think is now replaced by toolbar). What I want is a small drop down menu with the 3 dots where I can have a few options such as settings and credits. I have tried to set it up so that the menu appears on the homelistview.java page. I feel like I have been go...
I am having problems implementing the actionbar (which I think is now replaced by toolbar). What I want is a small drop down menu with the 3 dots where I can have a few options such as settings and credits. I have tried to set it up so that the menu appears on the homelistview.java page. I feel like I have been going i...
java|android|xml
2
2016-04-14T18:11:59.777Z
2,016
4
18
3
631
1
3,797
51
3
8
true
false
false
false
false
false
low
36,630,989
How to add String Iterator values to an ArrayAdapter?
<p>I am trying to add the values of a string iterator an ArrayAdapter and am not getting the right results. Here is my code:</p> <pre><code>Spinner copyFromCity = (Spinner) findViewById(R.id.spinner); // Create an ArrayAdapter using the string array and a default spinner layout ArrayAdapter&lt;CharSequ...
I am trying to add the values of a string iterator an ArrayAdapter and am not getting the right results. Here is my code: [CODE] The spinner only shows values from my pref file and not the extra String values coming from the method readCitiesFromPref(); I've already verified that the Iterator String returned has values...
android|iterator|android-arrayadapter|android-sharedpreferences
1
2016-04-14T18:20:34.963Z
2,016
4
18
3
461
1
633
53
4
2
true
false
false
false
false
false
low
36,631,038
JSON using android studio
<p>I'm trying to add some values to my database from my android application through JSON. </p> <p>I have used the below code previously with eclipse and worked perfectly, now im trying it using android studio and it isn't working I don't know why!</p> <p>code:</p> <pre><code> public class Main2Activity extends AppC...
I'm trying to add some values to my database from my android application through JSON. I have used the below code previously with eclipse and worked perfectly, now im trying it using android studio and it isn't working I don't know why! code: [CODE] I got this error: [CODE] I don't get what is the error? can someone he...
java|android|json|android-studio
0
2016-04-14T18:22:49.583Z
2,016
4
18
3
95
1
341
25
4
2
true
false
false
false
false
false
zero
36,631,078
Android Application - Get last fragment for each activity if already loaded
<p>I actually have an aplication with multiple activitys (on for each icon of my toolbar), also I would like to have the possibility to show the last fragment of these activitys from the stack if the user already open it before. As you can see in my BaseActivity class below (which I extend for all my activitys), I alr...
I actually have an aplication with multiple activitys (on for each icon of my toolbar), also I would like to have the possibility to show the last fragment of these activitys from the stack if the user already open it before. As you can see in my BaseActivity class below (which I extend for all my activitys), I already...
android|android-activity|stack
0
2016-04-14T18:24:33.403Z
2,016
4
18
3
362
1
413
75
3
1
true
false
false
false
false
false
zero
36,631,136
Issue with adding layout at bottom of LinearLayout with Coordinator layout
<p>I am working on chat screen, and using RecyclerView to show chat messages. I need to show a Note messages at top of recycler view that will scroll off the screen when chat list is scrolled. Here is layout that I am using. </p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xm...
I am working on chat screen, and using RecyclerView to show chat messages. I need to show a Note messages at top of recycler view that will scroll off the screen when chat list is scrolled. Here is layout that I am using. [CODE] My problem is last message from the chat is hidden behind the send message layout. I need t...
android-layout|android-recyclerview|android-coordinatorlayout|androiddesignsupport
0
2016-04-14T18:27:21.600Z
2,016
4
18
3
1,021
1
567
74
4
1
true
false
false
false
false
false
zero
36,631,207
AlarmManager - How to know if something is scheduled
<p>I'm building an application that uses <code>AlarmManager</code> to schedule, upon user request, wifi and bt switch off at a later time.</p> <p>That works. My next step is to allow the user to cancel.</p> <p>Naturally, the activity may get killed. Imagine that scenario:</p> <ol> <li>User sets the alarm for 30 minu...
I'm building an application that uses AlarmManager to schedule, upon user request, wifi and bt switch off at a later time. That works. My next step is to allow the user to cancel. Naturally, the activity may get killed. Imagine that scenario: User sets the alarm for 30 minutes later User puts phone to sleep, activity i...
android|widget|alarmmanager
2
2016-04-14T18:30:50.403Z
2,016
4
18
3
30
1
667
52
3
1
true
false
false
false
false
false
low
36,631,449
Android Studio SQLite Database Error
<p><strong>Getting an error when trying to read a database in android studio, the application crashes as soon as I try and launch my search activity. I want the search activity to read the database and put the data into a list view. can anyone help? First error below is;</strong></p> <pre><code>01-01 06:46:36.070 1649...
Getting an error when trying to read a database in android studio, the application crashes as soon as I try and launch my search activity. I want the search activity to read the database and put the data into a list view. can anyone help? First error below is; [CODE] Second error is; [CODE]
android|sqlite
0
2016-04-14T18:43:40.417Z
2,016
4
18
3
25
0
291
36
2
2
true
true
false
false
false
false
zero
36,631,525
Token response from server with volley to Django rest framework
<p>Server has Django Rest Framework. I have username,password,client_id and client_secret. Now I need to generate access token using these credential. How can I send request to server using (Android)volley so I can get response with token.</p> <p>(sample response)</p> <pre><code>{"access_token": "123", "token_type": ...
Server has Django Rest Framework. I have username,password,client_id and client_secret. Now I need to generate access token using these credential. How can I send request to server using (Android)volley so I can get response with token. (sample response) [CODE] Access token generation process is - [CODE] Here what I ha...
android|android-volley
2
2016-04-14T18:47:39.980Z
2,016
4
18
3
713
1
379
63
2
3
true
false
false
false
false
false
low