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,668,601
opening buttons within the same main activity in android studio
<p>I want to be able to open 3 buttons within the same java class in Android studio , a map , button leading to text and pictures and the last one a video .. i used the following codes :</p> <pre><code> public void location(View view) { Button great = (Button) findViewById(R.id.location); great.setOnClick...
I want to be able to open 3 buttons within the same java class in Android studio , a map , button leading to text and pictures and the last one a video .. i used the following codes : [CODE] the same for the other 2 buttons . as for the .xml file [CODE] and the string is [CODE] the thing is how can i open all 3 buttons...
android|button|tags|char|info
0
2016-04-16T19:19:13.710Z
2,016
4
19
5
56
0
529
63
5
4
true
true
false
false
false
false
zero
36,668,647
How to read cycling and running data from Google Fit History API using readDailyTotal
<p>I'm trying to read daily data from Fitness History Api with method <code>readDailyTotal</code>. I want to read steps, cycling and running. I have implemented steps successfully but i can't get daily result for cycling and running.</p> <p>This is code which i'm using to get steps and it works:</p> <pre><code>Pendin...
I'm trying to read daily data from Fitness History Api with method readDailyTotal . I want to read steps, cycling and running. I have implemented steps successfully but i can't get daily result for cycling and running. This is code which i'm using to get steps and it works: [CODE] I tried to use same code but for cycli...
android|google-fit
1
2016-04-16T19:22:26.260Z
2,016
4
19
5
1,258
1
719
85
2
2
true
false
false
false
false
false
low
36,668,727
How to get two different results on startActivityforResult using click Listener from the same button?
<p>I'm making an android app and I'm using <code>startActivityforResult</code> on click listener. So it is opening the other activity and from there, result will get back to the first activity. Now it is working perfectly. I have Three different buttons on second Activity so I wanted to send different result on differe...
I'm making an android app and I'm using startActivityforResult on click listener. So it is opening the other activity and from there, result will get back to the first activity. Now it is working perfectly. I have Three different buttons on second Activity so I wanted to send different result on different button-click ...
android
0
2016-04-16T19:30:24.837Z
2,016
4
19
5
480
3
439
101
1
2
true
false
false
false
false
false
zero
36,668,766
Android - Retrofit 2 error: "HTTP method annotation is required"
<p>There are some questions about this but nothing seems to work. I am trying to get the content of a web page that is in the form of a Json Object.</p> <p>Added this to <strong>proguard-rules.pro</strong>:</p> <pre><code>&lt;pre&gt;&lt;code&gt;-keepattributes *Annotation* -keep class retrofit.** { *; } -keepclassesw...
There are some questions about this but nothing seems to work. I am trying to get the content of a web page that is in the form of a Json Object. Added this to proguard-rules.pro : [CODE] My build.gradle : [CODE] Interface: [CODE] This is the error: [CODE]
android
1
2016-04-16T19:34:48.173Z
2,016
4
19
5
1,290
1
256
64
1
4
true
false
false
false
false
false
low
36,668,774
achartengine Bar Chart from sqlite database
<p>Im trying to create an achartengine bar chart from data in my sqlite database, but when I attempt to populate the dataset for the bar chart I get the following error:</p> <pre><code>Caused by: java.lang.IllegalStateException: Couldn't read row 1, col 1 from CursorWindow. Make sure the Cursor is initialized correct...
Im trying to create an achartengine bar chart from data in my sqlite database, but when I attempt to populate the dataset for the bar chart I get the following error: [CODE] TestAdapter.java [CODE] BarChart.java [CODE] } I have tried adding an _id column as suggested in another question and also uninstalling the app an...
android|sqlite|achartengine
0
2016-04-16T19:35:06.610Z
2,016
4
19
5
881
2
403
43
3
4
true
false
false
false
false
false
zero
36,668,988
Failed to build apk via Gradle
<p>I'm trying to build apk from my Ionic project via gradle but it shows the following error:-</p> <p><a href="https://i.stack.imgur.com/SYGmv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SYGmv.png" alt="APK build Failed"></a></p> <p>Note: I've tried the following solutions which didn't work fo...
I'm trying to build apk from my Ionic project via gradle but it shows the following error:- Note: I've tried the following solutions which didn't work for me:- 1) Removed nodejs, clear all directories related to nodejs, cordova, ionic, gradle and do fresh installation. 2) Change distribution url in graddle-wrapper.prop...
android|cordova|gradle|ionic-framework
1
2016-04-16T19:54:49.673Z
2,016
4
19
5
178
0
886
30
4
0
false
true
false
false
false
false
low
36,669,048
Android Studio adding pictures with checkboxes
<p>I have 10 different checkboxes and 10 different images linked to the checkbox. 1 image(which is not used for the checkboxes) is visible and the rest is invisible. I want my app to add the corresponding picture to the app when the checkbox has been checked. However, I can't find information regarding images and che...
I have 10 different checkboxes and 10 different images linked to the checkbox. 1 image(which is not used for the checkboxes) is visible and the rest is invisible. I want my app to add the corresponding picture to the app when the checkbox has been checked. However, I can't find information regarding images and checkbox...
android|checkbox
0
2016-04-16T19:59:11.290Z
2,016
4
19
5
274
1
716
46
2
2
true
false
false
false
false
false
zero
36,669,064
Create on click focus on CameraSource - Android QR Code detection
<p>I'm developing an android app which allows user to check a QR Code content and execute something according read result.</p> <p>In order to improve the performance i'd like to implement 2 methods:</p> <ul> <li>onClickFocus (which allows user to focus the camera when screen is clicked)</li> <li>turnOn/OFF flash (whi...
I'm developing an android app which allows user to check a QR Code content and execute something according read result. In order to improve the performance i'd like to implement 2 methods: onClickFocus (which allows user to focus the camera when screen is clicked) turnOn/OFF flash (which allows user to turn on/off the ...
android|camera|android-camera|qr-code|android-vision
2
2016-04-16T20:00:19.273Z
2,016
4
20
5
7,447
3
1,362
65
5
2
true
false
true
false
false
false
low
36,669,113
menuInfo is null when creating context menu on recycler view
<p>I am trying to display a context menu on clicking item in a recycler view, and the choose to call the person whose name has been clicked. But I am unable to retrieve the phone number because the getMenuInfo() is not working bcoz I am getting a null in contextMenuInfo in onCreateContextMenu(). I have referenced many ...
I am trying to display a context menu on clicking item in a recycler view, and the choose to call the person whose name has been clicked. But I am unable to retrieve the phone number because the getMenuInfo() is not working bcoz I am getting a null in contextMenuInfo in onCreateContextMenu(). I have referenced many ans...
android|nullpointerexception|android-recyclerview|contextmenu
3
2016-04-16T20:03:58.027Z
2,016
4
20
5
1,129
1
575
60
4
4
true
false
false
false
false
false
low
36,669,139
Android AccountKit.getCurrentAccount returns "API calls from the server require an appsecret_proof argument"
<p>I am trying the Facebook AccountKit as shown here: <a href="https://developers.facebook.com/docs/accountkit/android/integrating" rel="nofollow">https://developers.facebook.com/docs/accountkit/android/integrating</a></p> <p>I started the AccountKitAcitivity with:</p> <pre><code>AccountKitConfiguration.AccountKitCon...
I am trying the Facebook AccountKit as shown here: https://developers.facebook.com/docs/accountkit/android/integrating I started the AccountKitAcitivity with: [CODE] After I finish the SMS login flow with "verified" at the end, when I call AccountKit.getCurrentAccount(...) in my activity, I am getting "API calls from t...
android|facebook|android-facebook
4
2016-04-16T20:07:19.547Z
2,016
4
20
5
761
1
505
108
3
1
true
false
false
false
false
false
low
36,669,188
Select * FROM WHERE 0 < 0
<p>I have 2 tables 1 for categories and the other for tasks.</p> <p>Every category has a priority.</p> <p>I'm trying to select the category with the highest priority that has tasks (ignoring categories that have no tasks)</p> <p>The problem is that if all categories have no tasks it returns 1 result with all field n...
I have 2 tables 1 for categories and the other for tasks. Every category has a priority. I'm trying to select the category with the highest priority that has tasks (ignoring categories that have no tasks) The problem is that if all categories have no tasks it returns 1 result with all field null Category table has the ...
android|sqlite
1
2016-04-16T20:11:57.007Z
2,016
4
20
5
327
1
591
25
2
4
true
false
false
false
false
false
low
36,669,218
Android OpenCV circle HSV color detection
<p>I am new to OpenCV and I am trying to do an android app for finding my circles and their colors.I am using Xamarin.Net.Android/C# and OpenCV SDK(Java Binded Library). I can find the circles but I couldt find the colors I have six color(orange,yellow,green,purple,red,blue) for my circles. I found a sample c code but ...
I am new to OpenCV and I am trying to do an android app for finding my circles and their colors.I am using Xamarin.Net.Android/C# and OpenCV SDK(Java Binded Library). I can find the circles but I couldt find the colors I have six color(orange,yellow,green,purple,red,blue) for my circles. I found a sample c code but I c...
java|android|opencv|xamarin|opencv4android
1
2016-04-16T20:14:26.487Z
2,016
4
20
5
1,191
1
517
41
5
2
true
false
false
false
false
false
low
36,669,392
Android service is stopping without calling ondestroy
<p>I'm calling a service every three minutes using the following function:</p> <pre><code> public void RunBackgroundService() { final Handler service_handler = new Handler(); Timer timer = new Timer(); TimerTask doAsynchronousTask = new TimerTask() { @Override public ...
I'm calling a service every three minutes using the following function: [CODE] And this is my service in which I'm launching a notification: [CODE] It's very important to me to remain the service running at all time, when the app crashes the service stops. How can I prevent the service from stopping ?
android
0
2016-04-16T20:32:18.547Z
2,016
4
20
5
163
3
302
53
1
2
true
false
false
false
false
false
zero
36,669,491
Costume jar library unable to resolve exception class
<p>I created a gradle java project in IntelliJ to handle writing and reading JSON objects from file. It contains also 2 costume exception classes. I need this for my libgdx game project for android currently working on.</p> <p>I encountered the following error when I get to the expected exception in code.</p> <pre><c...
I created a gradle java project in IntelliJ to handle writing and reading JSON objects from file. It contains also 2 costume exception classes. I need this for my libgdx game project for android currently working on. I encountered the following error when I get to the expected exception in code. [CODE] I looked over fe...
java|android|gradle|jar|libgdx
0
2016-04-16T20:41:57.920Z
2,016
4
20
5
103
1
1,248
53
5
4
true
false
false
false
false
false
zero
36,669,585
Receiving data from Bluetooth on Android
<p>I have write some code for receiving data from Bluetooth module (HC-05), I want to read string '#900~' from Arduino, but I get nothing in response. I have made a connection with module, but nothing more. I need only reading on Android. It is probably easy task but I cannot get across :/. What am I doing wrong? it Be...
I have write some code for receiving data from Bluetooth module (HC-05), I want to read string '#900~' from Arduino, but I get nothing in response. I have made a connection with module, but nothing more. I need only reading on Android. It is probably easy task but I cannot get across :/. What am I doing wrong? it Below...
java|android|bluetooth
1
2016-04-16T20:49:54Z
-1
-1
-1
-1
100
0
552
40
3
3
true
true
false
false
false
false
low
36,669,590
Cannot resolve constructor ArrayAdapter (saveourcar.soc.Insurance,int,int, java.lang.String[],java.lang.Integer[])
<p>I have made an application that has a list of insurance companies using a <code>listView</code>. The <code>listView</code> is populated using an array. I can currently search through this list using a filter. However beside each item in the <code>listView</code> I want an image, I can do this using <code>CustomListA...
I have made an application that has a list of insurance companies using a listView . The listView is populated using an array. I can currently search through this list using a filter. However beside each item in the listView I want an image, I can do this using CustomListAdapter adapter=new CustomListAdapter(this, item...
java|android|android-studio|android-arrayadapter|android-search
2
2016-04-16T20:50:14.597Z
2,016
4
20
5
651
1
1,038
114
5
4
true
false
false
false
false
false
low
36,669,627
Cordova (Ionic) : Splashscreen only works one time on Android
<p>I have created a Splashscreen using the Cordova plugin by adding the plugin to my Ionic app as:</p> <pre><code>cordova plugin add org.apache.cordova.splashscreen </code></pre> <p>When I install the app on my Android phone and run it for the first time, I see the splash screen working. But if I go out of the app by...
I have created a Splashscreen using the Cordova plugin by adding the plugin to my Ionic app as: [CODE] When I install the app on my Android phone and run it for the first time, I see the splash screen working. But if I go out of the app by pressing backbutton and then reopen the app, this time I do not see the splash s...
javascript|android|cordova|ionic-framework|splash-screen
2
2016-04-16T20:54:15.123Z
2,016
4
20
5
1,691
2
778
61
5
2
true
false
false
false
false
false
low
36,669,683
POST data sent from android app not being received by PHP file
<p>I am trying to send data (a student id#) from an Android app to a PHP file via the body of an HTTP POST request. Then the PHP file will send data (just a string for now) back to the app. However, my php doesn't seem to be able to read my POST data (student id#) from the request. </p> <p><strong>My .java file:</stro...
I am trying to send data (a student id#) from an Android app to a PHP file via the body of an HTTP POST request. Then the PHP file will send data (just a string for now) back to the app. However, my php doesn't seem to be able to read my POST data (student id#) from the request. My .java file: [CODE] MY .PHP FILE: [COD...
java|php|android|post
0
2016-04-16T20:59:19.340Z
2,016
4
20
5
464
1
539
62
4
2
true
false
false
false
false
false
zero
36,669,977
Android NetworkOnMainThreadException seems unsolvable
<p>Working on this app, which communicated with a webserver.</p> <p>I'am using okHttp for sending http requests and getting responses.</p> <p>And for some reason I'll get NetworkOnMainThreadException when the request is taking to long.</p> <p>All the solutions I found just wont work out.</p> <p>Here is the code whi...
Working on this app, which communicated with a webserver. I'am using okHttp for sending http requests and getting responses. And for some reason I'll get NetworkOnMainThreadException when the request is taking to long. All the solutions I found just wont work out. Here is the code which works until the receiving data i...
java|android
-1
2016-04-16T21:27:04.977Z
2,016
4
21
5
236
1
814
53
2
3
true
false
false
false
false
true
negative
36,669,986
Deep linking promotion codes for paid app in Google Play
<p>Since about a year it is possible to get from the Developer Console up to 500 promo codes per quarter that can be used to share a paid app for free during a defined promotion period. However, the question is how to bring theses codes efficiently to potential users and in which form.</p> <p>In principle the most ele...
Since about a year it is possible to get from the Developer Console up to 500 promo codes per quarter that can be used to share a paid app for free during a defined promotion period. However, the question is how to bring theses codes efficiently to potential users and in which form. In principle the most elegant way is...
android|deep-linking|promotion-code
3
2016-04-16T21:27:46.750Z
2,016
4
21
5
1,959
1
929
56
3
0
false
false
false
false
false
false
low
36,670,170
android Annotation Syntax
<p>I know this is stupid question But </p> <p>I have never used <code>android Annotation</code>, it just appeared with auto-complete in android studio and I thought its a good idea to use it, I'm I right?</p> <p>I did my research and I learned how to use it with <code>parameters</code> but I didn't find anything abou...
I know this is stupid question But I have never used android Annotation , it just appeared with auto-complete in android studio and I thought its a good idea to use it, I'm I right? I did my research and I learned how to use it with parameters but I didn't find anything about how to use it with pair and generic here is...
android|android-resources|android-annotations
0
2016-04-16T21:46:02.827Z
2,016
4
21
5
408
2
466
25
3
2
true
false
false
false
false
false
zero
36,670,212
Access Arraylist that was created in one activity in another using Index
<p>Is that even possible? Lets say I created a ListView with an arraylist thats poplated with objects in one activity. Now I clicked on an item off the list view and grabbed the index. Once I clicked on the item it takes me to another activity along with the index number.(Using Intent). Now my question is I want to vie...
Is that even possible? Lets say I created a ListView with an arraylist thats poplated with objects in one activity. Now I clicked on an item off the list view and grabbed the index. Once I clicked on the item it takes me to another activity along with the index number.(Using Intent). Now my question is I want to view t...
android|listview|android-activity|arraylist
1
2016-04-16T21:51:29.233Z
2,016
4
21
5
1,144
5
537
72
4
1
true
false
false
false
false
false
low
36,670,248
Understanding alpha mask in Android
<p>I am learning how to use Shaders and trying to understand an <a href="http://www.curious-creature.com/2012/12/13/android-recipe-2-fun-with-shaders/" rel="nofollow noreferrer">old post by Romain Guy</a> on BitmapShader. In the post, there is a demo video on what he is trying to achieve, with all the source code. He i...
I am learning how to use Shaders and trying to understand an old post by Romain Guy on BitmapShader. In the post, there is a demo video on what he is trying to achieve, with all the source code. He is using an blur image like this : Looking at the mask image, it seems it has alpha 1 at center and 0 as we move out. This...
android
1
2016-04-16T21:56:58.813Z
2,016
4
21
5
580
0
598
35
1
1
true
true
false
false
false
false
low
36,670,269
Xamarin.forms / Android Facebook get Friends
<p>Hi everyone I'm using Xamarin.Forms to create an application. I've been able to create a facebook login and retrieve user ID. I'm now trying to get the friendlist of the user. I understood that only user who have accepted the app can be shown, however I cant see the one who identified in my app ( I have a friend as ...
Hi everyone I'm using Xamarin.Forms to create an application. I've been able to create a facebook login and retrieve user ID. I'm now trying to get the friendlist of the user. I understood that only user who have accepted the app can be shown, however I cant see the one who identified in my app ( I have a friend as tes...
c#|facebook-graph-api|xamarin.android|xamarin.forms
0
2016-04-16T22:00:06.970Z
2,016
4
22
5
833
2
606
44
4
1
true
false
false
false
false
false
zero
36,670,279
How to save and restore NetworkImageView and Textview on configuration change
<p>I am fetching data from the web using volley and displaying the result in TextViews and an NetworkImageView.</p> <p>I have succeeded in saving and restoring the states of the textviews but I ran into a problem with the NetworkImageView.</p> <p><strong>FruitDetails</strong></p> <pre><code>public class FruitDetails...
I am fetching data from the web using volley and displaying the result in TextViews and an NetworkImageView. I have succeeded in saving and restoring the states of the textviews but I ran into a problem with the NetworkImageView. FruitDetails [CODE] While I couldn't restore that of the NetworkImageView at all, the frui...
android|android-volley|networkimageview|android-savedstate
0
2016-04-16T22:00:56.923Z
2,016
4
22
5
72
1
590
77
4
1
true
false
false
false
false
false
zero
36,670,393
CoordinatorLayout not working properly with 2 child layouts
<p>I have a CoordinatorLayout at root which has AppBarLayout that contains a LinearLayout that has 2 LinearLayouts as child. Let's call these child layouts A and B. I can't have contents of both A and B show at the same time. Contents of A show and B don't and when I delete contents of A only then contents of B show an...
I have a CoordinatorLayout at root which has AppBarLayout that contains a LinearLayout that has 2 LinearLayouts as child. Let's call these child layouts A and B. I can't have contents of both A and B show at the same time. Contents of A show and B don't and when I delete contents of A only then contents of B show and v...
android|scroll|android-coordinatorlayout
0
2016-04-16T22:14:15.310Z
2,016
4
22
5
1,158
1
696
59
3
1
true
false
false
false
false
false
zero
36,670,592
Cannot change android system directory to rw
<p>I am trying to remount the /system as a rw file system so I can push some files into /system/framework. It is an android emulator running Android 6.0 x86 image.</p> <pre><code>$ mount ... /dev/block/vda /system ext4 ro,seclabel,relatime,data=ordered 0 0 ... </code></pre> <p>Then I do</p> <pre><code>su mount -o rw...
I am trying to remount the /system as a rw file system so I can push some files into /system/framework. It is an android emulator running Android 6.0 x86 image. [CODE] Then I do [CODE] At this time I am thinking I am ok. Then I am doing on host: [CODE] However I see: [CODE] Then I go back to adb: [CODE] It goes back to...
android|mount
11
2016-04-16T22:37:09.457Z
2,016
4
22
5
12,788
3
522
44
2
6
true
false
true
true
true
false
medium
36,670,620
Android use WCF(webservice)
<p>I am a freshman in android development. Today I use KSOAP2 to use WCF which I have finished on the server. Firstly, I try to use the WCF in windows form. It runs OK and the data have been upload. Then I use WCF with KSOAP2. The string cannot send well and the error is : Method threw 'org.ksoap2.SoapFault' exception....
I am a freshman in android development. Today I use KSOAP2 to use WCF which I have finished on the server. Firstly, I try to use the WCF in windows form. It runs OK and the data have been upload. Then I use WCF with KSOAP2. The string cannot send well and the error is : Method threw 'org.ksoap2.SoapFault' exception. Th...
c#|android|.net|web-services|wcf
1
2016-04-16T22:39:47.297Z
2,016
4
22
5
124
1
724
27
5
1
true
false
false
false
false
false
low
36,670,697
Android: set fixed item on RecyclerView
<p>I have a RecyclerView, when I click in the first view it adds another view like in the image, what I want is to set the "add" view which ID is "1" to be fixed in the last position of the recycler instead in the first. <a href="https://i.stack.imgur.com/Lf3uJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/...
I have a RecyclerView, when I click in the first view it adds another view like in the image, what I want is to set the "add" view which ID is "1" to be fixed in the last position of the recycler instead in the first. My adapter: [CODE] In the activity: [CODE]
java|android|android-recyclerview
8
2016-04-16T22:50:51.577Z
2,016
4
22
5
11,511
2
260
39
3
2
true
false
true
false
false
false
medium
36,670,744
Confusion using the android camera in my app
<p>I've never tried to take pictures in one of my projects before, so I apologize for possibly asking a stupid question. Basically, I'm using the following code to try and take a picture and then save it in a temporary file. I wasn't getting any errors, but nothing is happening. I've found that the IOException in the l...
I've never tried to take pictures in one of my projects before, so I apologize for possibly asking a stupid question. Basically, I'm using the following code to try and take a picture and then save it in a temporary file. I wasn't getting any errors, but nothing is happening. I've found that the IOException in the last...
android|camera|android-camera
1
2016-04-16T22:56:35Z
-1
-1
-1
-1
45
1
471
44
3
2
true
false
false
false
false
false
low
36,670,963
BadParcelableException: ClassNotFoundException
<p>I'm getting this error when trying to pass a <code>Parcelable</code> through an <code>Intent</code>. Basically, I've implemented my class as <code>Parcelable</code>, but I can't pass the object to another activity because it crashes when reading it. I tried several answers for this problem, but none has helped me to...
I'm getting this error when trying to pass a Parcelable through an Intent . Basically, I've implemented my class as Parcelable , but I can't pass the object to another activity because it crashes when reading it. I tried several answers for this problem, but none has helped me to solve this issue. So far, this is my co...
java|android
1
2016-04-16T23:27:36.273Z
2,016
4
23
5
626
1
1,083
46
2
3
true
false
false
false
false
false
low
36,671,086
Refresh ListView after changing listItem
<p>I am new to programming/Android and I am trying to refresh a ListView after editing the listItem from a DialogFragment window. Here is where the ListView is defined:</p> <pre><code>public class AnswersList extends AppCompatActivity { private ListView mListAnswer; private AnswerAdapter mAnswerAdapter; private stati...
I am new to programming/Android and I am trying to refresh a ListView after editing the listItem from a DialogFragment window. Here is where the ListView is defined: [CODE] Here is the code for the dialog window: [CODE] I've been stuck on this for days. All help appreciated!
android|listview
1
2016-04-16T23:44:04.723Z
2,016
4
23
5
41
1
275
40
2
2
true
false
false
false
false
false
low
36,671,095
NetworkImageView caches resized image rather than original
<p>I’ve been dipping my feet into the world of Android development and I’ve been using Volley and LruCache to put together a basic news reader app. </p> <p>I have a recycler view where each cell contains a NetworkImageView from the Volley library. I can tap on that cell and it opens up another activity which is a kind...
I’ve been dipping my feet into the world of Android development and I’ve been using Volley and LruCache to put together a basic news reader app. I have a recycler view where each cell contains a NetworkImageView from the Volley library. I can tap on that cell and it opens up another activity which is a kind of a detail...
android|caching|android-volley|android-lru-cache|networkimageview
0
2016-04-16T23:45:06.680Z
2,016
4
23
5
235
1
1,000
58
5
0
false
false
false
false
false
false
zero
36,671,168
Is there a way to apply matrix to a separate object using Rect?
<p>I'm using a <code>canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)</code> in my game loop and I'm trying to add matrix to a subclass witch comes from a spriteSuperClass I created.</p> <p>An example of how I use my object in the game loop: </p> <p><code>canvas.drawBitmap(wheel.getBitmap(),wheel.get...
I'm using a canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) in my game loop and I'm trying to add matrix to a subclass witch comes from a spriteSuperClass I created. An example of how I use my object in the game loop: canvas.drawBitmap(wheel.getBitmap(),wheel.getDrawingRect()wheel.getPositonRect(), mp...
java|android|bitmap|android-canvas
1
2016-04-16T23:54:07.247Z
2,016
4
23
5
185
0
530
63
4
1
true
true
false
false
false
false
low
36,671,173
java/parse error. trying to send from android sdk to Parse
<p>set up this for another app few days ago and it worked fine, results successfully sent to MongoLab. tried to do it again for a new app using the same basic code below, but it fails everytime. </p> <p>Any ideas? Thanks!</p> <pre><code> @Override public void onCreate() { super.onCreate(); // Enable Local ...
set up this for another app few days ago and it worked fine, results successfully sent to MongoLab. tried to do it again for a new app using the same basic code below, but it fails everytime. Any ideas? Thanks! [CODE] ------the logs show this at the end--------- [CODE]
java|android|heroku|parse-platform|sdk
4
2016-04-16T23:54:38.160Z
2,016
4
23
5
1,048
1
269
58
5
2
true
false
false
false
false
false
low
36,671,226
How do I parse the XML tag <m:properties> for my Android application using Java?
<p>I need to display Quote Date, Rate Type and Rate. I am using Nodes, but I am not sure if it is an element or an attribute, it may be a namespace, not sure how to reference that.</p> <p>this is the XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt; &lt;feed xml:base="http://data.treas...
I need to display Quote Date, Rate Type and Rate. I am using Nodes, but I am not sure if it is an element or an attribute, it may be a namespace, not sure how to reference that. this is the XML: [CODE] this is my code so far: [CODE]
java|android|xml
1
2016-04-17T00:03:56.347Z
2,016
4
0
6
309
1
232
80
3
2
true
false
false
false
false
false
low
36,671,237
Restricting android app to phone only issue
<p>Going through other posts here and the android documentation, I added <code>&lt;compatible-screens&gt;</code> to my android manifest file to restrict my app only to phones. However whenever I try running it on the Nexus 7 tablet, the app shows up on tablet. Below is my android manifest file. Am I missing anything?</...
Going through other posts here and the android documentation, I added <compatible-screens> to my android manifest file to restrict my app only to phones. However whenever I try running it on the Nexus 7 tablet, the app shows up on tablet. Below is my android manifest file. Am I missing anything? [CODE]
android|android-manifest
2
2016-04-17T00:06:53.270Z
2,016
4
0
6
395
1
303
43
2
1
true
false
false
false
false
false
low
36,671,245
How to properly display <img> tags found in returned json object
<p>I am fetching json from the web using volley. One of the json objects ("content"), has &lt;img&gt; tags embedded in the string returned.</p> <p>With the code below, I have successfully parsed and displayed the objects but the images in "content" are not displaying. So I wanted the images to display in the positions...
I am fetching json from the web using volley. One of the json objects ("content"), has <img> tags embedded in the string returned. With the code below, I have successfully parsed and displayed the objects but the images in "content" are not displaying. So I wanted the images to display in the positions that they are fo...
android|json|android-volley
1
2016-04-17T00:08:06.263Z
2,016
4
0
6
699
2
547
64
3
2
true
false
false
false
false
false
low
36,671,303
How to get CSVWriter to add blob data into cell
<p>I have an application that allows the user to sign the tablet and an image will be produced. That part I have working with confirmation as I am able to view the images after they are created and saved.</p> <p>I am writing them to a .csv file with the following code.</p> <pre><code>//region - Create CSV file ...
I have an application that allows the user to sign the tablet and an image will be produced. That part I have working with confirmation as I am able to view the images after they are created and saved. I am writing them to a .csv file with the following code. [CODE] The file is getting written to successfully, but when...
android|sqlite|csv|blob|writer
1
2016-04-17T00:17:52.217Z
2,016
4
0
6
261
1
600
47
5
1
true
false
false
false
false
false
low
36,671,369
Android - Simple - xml duplicate annotation error
<p>There's <a href="http://www.themarker.com/cmlink/1.605664" rel="nofollow">this</a> RSS feed that I'm trying to decipher and implement it into my app. While Trying doing so I ran into the next Error:</p> <pre><code> java.lang.RuntimeException: org.simpleframework.xml.core.PersistenceException: Duplicate annotation o...
There's this RSS feed that I'm trying to decipher and implement it into my app. While Trying doing so I ran into the next Error: [CODE] If you would kindly check the xml RSS feed I'm trying to decipher you would find that both - "Channel" and "Item" has "Title" attribute with no prefix to differentiate between the two ...
android|xml|rss|retrofit2|simple-framework
2
2016-04-17T00:29:54.500Z
2,016
4
0
6
441
0
478
49
5
6
true
true
false
false
false
false
low
36,671,414
aligning columns in table layout Android
<p>I would like to align my table layout contents (textviews) with at least 3 columns straight with each other like this(i hope you can see it)</p> <p>item1a item1b item1c item2a item2b item2c</p> <p>and so on, and im populating these values from the database through a custom listview. this is what i ...
I would like to align my table layout contents (textviews) with at least 3 columns straight with each other like this(i hope you can see it) item1a item1b item1c item2a item2b item2c and so on, and im populating these values from the database through a custom listview. this is what i have done so far, may you help me [...
android|android-tablelayout
1
2016-04-17T00:38:58.477Z
2,016
4
0
6
38
0
325
40
2
1
true
true
false
false
false
false
low
36,671,425
cant compile apk using Game Maker Studio
<p>I just updated the build tools using android SDK manager.</p> <p>Now I cant compile apk using game maker studio.</p> <p>Here is the error output from the console.</p> <p>I dont think i have changed anything except windows update. I have windows 10, 64 bit </p> <pre><code>Stats : GMA : Elapsed=6821.0873 Stats : ...
I just updated the build tools using android SDK manager. Now I cant compile apk using game maker studio. Here is the error output from the console. I dont think i have changed anything except windows update. I have windows 10, 64 bit [CODE]
android|build|compilation
1
2016-04-17T00:41:03.807Z
2,016
4
0
6
1,268
1
241
40
3
1
true
false
false
false
false
false
low
36,671,509
(Android) How to set hyperlink to a textview inside ListView?
<p>I have a listview containing some news. Each news is a row which comtains a title, content, publisher and date. Now I want to set hyperlinks to every title TextView. How to implement that? The following is my code:</p> <pre><code>private void show_news() { ArrayList&lt;Map&lt;String, Object&gt;&gt; list = new A...
I have a listview containing some news. Each news is a row which comtains a title, content, publisher and date. Now I want to set hyperlinks to every title TextView. How to implement that? The following is my code: [CODE] This is my news_item.xml: [CODE] I am new to Android programming. Can anyone help me with this? Th...
android|listview
0
2016-04-17T00:56:01.560Z
2,016
4
0
6
290
2
331
61
2
2
true
false
false
false
false
false
zero
36,671,560
Android studio Gradle DSL method not found: compile() while adding slf4android dependency
<p>I'm trying to use slf4android dependency from <a href="https://github.com/bright/slf4android" rel="nofollow">https://github.com/bright/slf4android</a> but having problem with gradle sync.</p> <p><strong>Build.gardle (Project)</strong></p> <pre><code> buildscript { repositories { jcenter() maven...
I'm trying to use slf4android dependency from https://github.com/bright/slf4android but having problem with gradle sync. Build.gardle (Project) [CODE] Build.gardle (App) [CODE] } buildscript { repositories { maven { url " http://jitpack.io " } } dependencies { compile('com.gitghub.bright:slf4android:0.1.0'){ transitive...
android|gradle|android-gradle-plugin|android-studio-2.0|slf4android
3
2016-04-17T01:02:18.173Z
2,016
4
1
6
766
2
704
89
5
4
true
false
false
false
false
false
low
36,671,754
missing android packages - API22
<p>In my app, I am trying to implement a custom list adapter. The app works fine with a simple list adapter, but switching it to custom renders the screen blank. No Errors. </p> <p>While debugging, in the module ListView.java it shows me that some packages are missing</p> <ol> <li>com.google.android.collect.Lists;</l...
In my app, I am trying to implement a custom list adapter. The app works fine with a simple list adapter, but switching it to custom renders the screen blank. No Errors. While debugging, in the module ListView.java it shows me that some packages are missing com.google.android.collect.Lists; android.util.MathUtils andro...
android|package
2
2016-04-17T01:34:31.493Z
2,016
4
1
6
224
2
622
32
2
1
true
false
false
false
false
false
low
36,671,783
Get error and resubscribe
<p>Is it possible to resubscribe an Observable and get the error?</p> <p>The <a href="http://reactivex.io/RxJava/javadoc/rx/Observable.html#retry()" rel="nofollow"><code>Observable&lt;T&gt; retry()</code></a> method resubscribes the observable but it consumes the error.</p> <pre><code>final PublishSubject&lt;Integer&...
Is it possible to resubscribe an Observable and get the error? The Observable<T> retry() method resubscribes the observable but it consumes the error. [CODE] The onError part of observable is never called because .retry() consumes the error.
java|android|rx-java
0
2016-04-17T01:41:04.280Z
2,016
4
1
6
57
1
241
25
3
1
true
false
false
false
false
false
zero
36,671,788
Android: invert RecyclerView positions
<p>I'm setting a RecyclerView behaving like a list, I want a button in the bottom of the list that when clicked adds more views, I'm thinking the easier way to do it is to make the position 0 as the first one in the bottom, and increasing the position to the top, so I can add views when the the view in position 0 is cl...
I'm setting a RecyclerView behaving like a list, I want a button in the bottom of the list that when clicked adds more views, I'm thinking the easier way to do it is to make the position 0 as the first one in the bottom, and increasing the position to the top, so I can add views when the the view in position 0 is click...
java|android|android-recyclerview
3
2016-04-17T01:41:39Z
-1
-1
-1
-1
2,041
2
515
38
3
1
true
false
false
false
false
false
low
36,671,859
Seekbar thumb being enlarged on tablet
<p>I have a vertical seekbar and am using a custom drawable as the thumb. On a phone, everything works properly, but on a tablet, the seekbars thumb images are enlarged. Heres some screenshots:</p> <p>On phone: <a href="http://i.imgur.com/Ca4wcav.png" rel="nofollow">http://i.imgur.com/Ca4wcav.png</a></p> <p>tablet: <...
I have a vertical seekbar and am using a custom drawable as the thumb. On a phone, everything works properly, but on a tablet, the seekbars thumb images are enlarged. Heres some screenshots: On phone: http://i.imgur.com/Ca4wcav.png tablet: http://i.imgur.com/7a5LRb4.png Heres the code for the drawable: [CODE] drawable/...
android|android-layout|android-drawable|android-seekbar|xml-drawable
2
2016-04-17T01:53:01.110Z
2,016
4
1
6
123
1
540
38
5
2
true
false
false
false
false
false
low
36,671,984
JSON to Java conversion using GSON throws error
<p>In my spark code I have gson, that is stored in string RDD which I am converting into key and value. </p> <pre><code>JavaPairRDD&lt;String, ArrayList&lt;Guid&gt;&gt; docPairRDD = docRDD.mapToPair(SparkCustomFunctions.generateKeyValuePair()); /** * @return new Tuple with key is of type String and value is ...
In my spark code I have gson, that is stored in string RDD which I am converting into key and value. [CODE] Below are the classes descriptions used in above function (1). [CODE] (2). [CODE] But I am getting following error com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 2 at com...
java|apache-spark|gson|unmarshalling|android
1
2016-04-17T02:14:52.783Z
2,016
4
2
6
759
1
631
47
5
4
true
false
false
false
false
false
low
36,672,024
Captured image overwrites previous picture when i take picture after closing and reopening the app
<p>I have posted java code and the snapshot of the activity. The camera tab has a button and imagepreview widget. The camera is functioning properly. How to save the picture in a particular folder called pictures. And I'm not getting preview of the image.</p> <p>Here's my java code:</p> <pre><code>public class activi...
I have posted java code and the snapshot of the activity. The camera tab has a button and imagepreview widget. The camera is functioning properly. How to save the picture in a particular folder called pictures. And I'm not getting preview of the image. Here's my java code: [CODE] Here's my xml layout: [CODE] screenshot...
android-tabhost|android-xml
0
2016-04-17T02:22:43.713Z
2,016
4
2
6
61
0
321
98
2
2
true
true
false
false
false
false
zero
36,672,274
onBindViewHolder(VH, position) improperly calling the old and new ViewHolder copies when using notifyItemChanged()
<p><strong>EDIT2:</strong> I made it explicit in the condition when <code>holder.showTaskRecyclerView</code> is <code>false</code> to hide the view, so as to cover explicitly both <code>true</code> and <code>false</code> cases in <code>onBindViewHolder</code>. I still have the same problem.</p> <p><strong>EDIT1:</stro...
EDIT2: I made it explicit in the condition when holder.showTaskRecyclerView is false to hide the view, so as to cover explicitly both true and false cases in onBindViewHolder . I still have the same problem. EDIT1: I should add that the showing and hiding of tasksRecyclerView works well if I use notifyDataSetChanged() ...
android|android-layout|android-recyclerview|android-viewholder
1
2016-04-17T03:11:47.940Z
2,016
4
3
6
921
2
1,877
114
4
4
true
false
false
false
false
false
low
36,672,289
Using datepicker in BaseAdapter for a Fragment
<p>My code in BaseAdapter goes as follows</p> <pre><code> date.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ((Fragment)UserRequests.this.context).showDialog(999);//Error } }); </code></pre> <p>To show a date picker we need the belo...
My code in BaseAdapter goes as follows [CODE] To show a date picker we need the below code [CODE] I have two problems with this code. Firstly I want to show a datepicker in a fragment called UserRequests. Which I am not able to.I have tried it as below. [CODE] Second one is I am getting a warning that onCreateDialog me...
android|android-fragments|datepicker|baseadapter
1
2016-04-17T03:14:52.047Z
2,016
4
3
6
320
1
396
46
4
3
true
false
false
false
false
false
low
36,672,292
Error on setOnClickListerner
<p>I got an error from a simple code that I couldn't figure out. </p> <pre><code>public class HomePage extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home_page); Toolbar toolbar = (Toolbar) fin...
I got an error from a simple code that I couldn't figure out. [CODE] } Error: 04-16 22:10:24.290 22576-22576/com.example.cassieleong.drinksmart E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.cassieleong.drinksmart, PID: 22576 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.c...
android
1
2016-04-17T03:15:23.667Z
2,016
4
3
6
80
1
843
28
1
4
true
false
false
false
false
false
low
36,672,395
Load Multiple Images in ListView
<p>I was following a NewBoston Tutorial (<a href="https://www.youtube.com/watch?v=nOdSARCVYic&amp;list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&amp;index=48" rel="nofollow">https://www.youtube.com/watch?v=nOdSARCVYic&amp;list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&amp;index=48</a>)</p> <p>He showed how to put an image into a li...
I was following a NewBoston Tutorial ( https://www.youtube.com/watch?v=nOdSARCVYic&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&index=48 ) He showed how to put an image into a list but he never showed how to assign a different image to every piece of text. Here is my MainActivity . [CODE] During the video we made a custom V...
java|android|listview|android-studio-2.0
3
2016-04-17T03:35:21.510Z
2,016
4
3
6
542
2
563
32
4
2
true
false
false
false
false
false
low
36,672,469
How do I know the properties in applicationVariants of android gradle plugin?
<p>I'm using Android Studio with gradle plugin to develop applications. I learn some usage of android gradle plugin on <a href="http://google.github.io/android-gradle-dsl/" rel="noreferrer">DSL Reference</a>. But one thing I found is that the applicationVariants part on doc is hard to understand. It only gives such a d...
I'm using Android Studio with gradle plugin to develop applications. I learn some usage of android gradle plugin on DSL Reference . But one thing I found is that the applicationVariants part on doc is hard to understand. It only gives such a description: DomainObjectSet<ApplicationVariant> applicationVariants The list ...
android|gradle|android-gradle-plugin|gradle-plugin
28
2016-04-17T03:49:24.790Z
2,016
4
3
6
11,472
3
948
77
4
0
false
false
true
false
true
false
high
36,672,770
How do I add a Google Cloud Endpoints Module to my Android project in IntelliJ?
<p>I want to test out Google Cloud Endpoints with an Android project I have in IntelliJ. I use IntelliJ for a lot of stuff including:</p> <ul> <li>Web development.</li> <li>Writing Python scripts.</li> <li>Making Java command line programs.</li> <li>Playing with new languages I am considering learning like Rust.</li> ...
I want to test out Google Cloud Endpoints with an Android project I have in IntelliJ. I use IntelliJ for a lot of stuff including: Web development. Writing Python scripts. Making Java command line programs. Playing with new languages I am considering learning like Rust. I prefer to do this all in the same IDE because I...
google-app-engine|android-studio|intellij-idea|google-cloud-endpoints
0
2016-04-17T04:43:46.257Z
2,016
4
4
6
149
2
1,015
79
4
0
false
false
false
false
false
false
zero
36,672,796
OpenCV4Android Native Method Not Found
<p>For my very first Android app, I am trying to create an app that stitches images together. After getting the UI set up and doing a little research it seemed that OpenCV4Android was a good choice. Unfortunately for me, the image stitching portion of OpenCV4Android requires that I use Android NDK. I used <a href="h...
For my very first Android app, I am trying to create an app that stitches images together. After getting the UI set up and doing a little research it seemed that OpenCV4Android was a good choice. Unfortunately for me, the image stitching portion of OpenCV4Android requires that I use Android NDK. I used this youtube tut...
java|android|c++|opencv|android-ndk
0
2016-04-17T04:49:16.897Z
2,016
4
4
6
308
0
983
38
5
3
true
true
false
false
false
false
zero
36,672,811
Read ini file locate at the src level in Android Project
<p>I have an apiconfig.ini and inside the file I have </p> <pre><code># THE MOVIE DB API KEY api_key = API_KEY </code></pre> <p>I just want get API_KEY(value) and set on String.</p> <p>I create a class to read the Ini file:</p> <pre><code>public class ReadIniFile { //--- Get Key or Value from a .ini File ---// ...
I have an apiconfig.ini and inside the file I have [CODE] I just want get API_KEY(value) and set on String. I create a class to read the Ini file: [CODE] But when i run the code, they don't find the apiconfig.ini file How can i get the path to the file? remember the file are locate at src directory level, like this ima...
android
0
2016-04-17T04:53:09.703Z
2,016
4
4
6
423
1
386
56
1
2
true
false
false
false
false
false
zero
36,672,937
Simple EventBus - No subscribers Registered
<p>I'm trying to implement the absolute basic implementation of <a href="http://greenrobot.org/eventbus/" rel="noreferrer">EventBus</a> Library for Android.</p> <p>What I'm trying to simple input content by user in <code>activity 1</code> and then instead of intent extras I'm using eventbus to post the entire object t...
I'm trying to implement the absolute basic implementation of EventBus Library for Android. What I'm trying to simple input content by user in activity 1 and then instead of intent extras I'm using eventbus to post the entire object to the next activity - activity 2 . I'm exactly following the given guidelines: PART 1: ...
android|event-bus|greenrobot-eventbus-3.0
5
2016-04-17T05:15:47.217Z
2,016
4
5
6
16,838
6
517
43
3
4
true
false
true
true
false
false
low
36,673,004
Disable item of ListView - I get Exception in my code
<p>I have read several posts here about that, but I didn't understand what I'm wrong and why it doesn't work in my simple case.</p> <p>My target is to disable (and also I would like to see them in light gray) the 2 items when <code>myCondition</code> is false.</p> <pre><code>//__________________________ / final Cont...
I have read several posts here about that, but I didn't understand what I'm wrong and why it doesn't work in my simple case. My target is to disable (and also I would like to see them in light gray) the 2 items when myCondition is false. [CODE] I get an exception on the line if (myCondition==false) : [CODE] I already k...
android|listview
1
2016-04-17T05:27:04.827Z
2,016
4
5
6
248
1
461
53
2
2
true
false
false
false
false
false
low
36,673,130
AltBeacon setBluetoothAddress and setBluetoothName
<p>I'm attempting to transmit as a beacon an Android phone using the altbeacon library as described <a href="http://altbeacon.github.io/android-beacon-library/beacon-transmitter.html" rel="nofollow">here</a>. I am trying to set some parameters using the following methods:</p> <pre><code>setServiceUuid(0xfeaa) setBluet...
I'm attempting to transmit as a beacon an Android phone using the altbeacon library as described here . I am trying to set some parameters using the following methods: [CODE] When the beacon is interpreted on another Android device in the RangeNotifier listener method, didRangeBeaconsInRegion, the beacon doesn't have t...
android|altbeacon
0
2016-04-17T05:49:18.687Z
2,016
4
5
6
724
1
739
50
2
2
true
false
false
false
false
false
zero
36,673,195
Why does my WebView doesn't work?
<p>Well, I am totally a beginner, I was trying to do some exercise for webview. However, I can't find what problem it is. Can someone helps me? Thanks.</p> <p>Here is my java class:</p> <pre><code>public class MainActivity extends AppCompatActivity { private Button button; @Override protected void onCreate(Bundle sav...
Well, I am totally a beginner, I was trying to do some exercise for webview. However, I can't find what problem it is. Can someone helps me? Thanks. Here is my java class: [CODE] And here is my manifest file: [CODE] Here is my log: [CODE]
java|android|xml|webview
0
2016-04-17T05:59:34.967Z
2,016
4
5
6
215
2
238
33
4
3
true
false
false
false
false
false
zero
36,673,320
Android unwanted padding on top and bottom with TextView
<p>I am trying to put two text view within the circular progress bar as shown in the picture below. These two text should be aligned with center of the circular progress bar. <a href="https://i.stack.imgur.com/lw2W7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lw2W7.png" alt="enter image descripti...
I am trying to put two text view within the circular progress bar as shown in the picture below. These two text should be aligned with center of the circular progress bar. But the unwanted padding in text view which prevents me to align the text into the center of the circular progress bar. This is what i get. here is ...
android|android-layout|textview
1
2016-04-17T06:18:37.627Z
2,016
4
6
6
1,296
1
636
56
3
2
true
false
false
false
false
false
low
36,673,402
Upload multipart entitty ro android to ASP classic server
<p>there I try to make Android App that uploade foto to my server currently my server using old clasic ASP, im using Scrip from FreeASPUpload all foto is upladed to server but in corrupted format, the android code is work fine when uploaded to php server (i found it in adroidhive.net) i know something wrong about paylo...
there I try to make Android App that uploade foto to my server currently my server using old clasic ASP, im using Scrip from FreeASPUpload all foto is upladed to server but in corrupted format, the android code is work fine when uploaded to php server (i found it in adroidhive.net) i know something wrong about payload ...
android|asp-classic
0
2016-04-17T06:31:59.903Z
2,016
4
6
6
291
0
485
57
2
3
true
true
false
false
false
false
zero
36,673,407
Updating data in a recyclerview
<p>In my project a read data from a CMS I created through a JSON response. My problem is when I click the refresh button the data are read twice!. Here is my fragment's code.</p> <pre><code>public class FootballNews extends Fragment { public static final String TAG = "ManuApp"; private static final String IMAGE_URL =...
In my project a read data from a CMS I created through a JSON response. My problem is when I click the refresh button the data are read twice!. Here is my fragment's code. [CODE] Basically I am running the updateList method twice. Once in the onActivityCreated(...) method,and secondly inside the onOptionsItemSelected(....
android|android-recyclerview
0
2016-04-17T06:32:34.830Z
2,016
4
6
6
47
1
379
31
2
2
true
false
false
false
false
false
zero
36,673,577
How can I improve performance for unzip the zip file in Android
<p>I am developing diary Android application. It has a function about backing up and restoring the diary from zip file. I'm facing with improving the up zip behavior because it has image file (.png) If the size of images big, To upzip is very slow. Below is my unzip code! Is there any other work around to improve the p...
I am developing diary Android application. It has a function about backing up and restoring the diary from zip file. I'm facing with improving the up zip behavior because it has image file (.png) If the size of images big, To upzip is very slow. Below is my unzip code! Is there any other work around to improve the perf...
java|android|zip|unzip
0
2016-04-17T06:56:21.170Z
2,016
4
6
6
539
0
381
63
4
1
true
true
false
false
false
false
zero
36,673,677
Why do we check for overlapping fragments in OnCreate? (from the documentation)
<p>In the <a href="http://developer.android.com/training/basics/fragments/fragment-ui.html" rel="nofollow">documentation</a>, we have to check if we restore an activity, in order to avoid "overlapping fragments" : why? </p> <p>Either the activity is destroyed and the fragment is destroyed, so we have to recreate both ...
In the documentation , we have to check if we restore an activity, in order to avoid "overlapping fragments" : why? Either the activity is destroyed and the fragment is destroyed, so we have to recreate both of them. Or the fragment is retained so that it keeps some data. But in this code, we check if we restore the ac...
android|android-fragments
0
2016-04-17T07:09:23.487Z
2,016
4
7
6
99
1
406
79
2
1
true
false
false
false
false
false
zero
36,673,783
Global variable reset to 0
<p>I have a global variable inext set to a random value correctly before a call to setWordsQuestion(). As soon as I enter setWordsQuestion() the value is 0. Do you know how I can debug this?</p> <p><a href="https://i.stack.imgur.com/GoDj8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GoDj8.jpg" al...
I have a global variable inext set to a random value correctly before a call to setWordsQuestion(). As soon as I enter setWordsQuestion() the value is 0. Do you know how I can debug this? and reset to 0: Here is the java file: [CODE] }
java|android|debugging
2
2016-04-17T07:25:31.380Z
2,016
4
7
6
1,948
2
235
26
3
1
true
false
false
false
false
false
low
36,673,795
How to draw watchface 'ticks' on a square watch?
<p>I currently have this snippet generating the ticks around the outside of and android wear watchface</p> <pre><code>float innerMainTickRadius = mCenterX - 35; for(int tickIndex = 0; tickIndex &lt; 12; tickIndex++) { float tickRot = (float) (tickIndex * Math.PI * 2 / 12); f...
I currently have this snippet generating the ticks around the outside of and android wear watchface [CODE] Which generates the ticks well on a round watchface but on a square it turns out like this: but I'd like them to not be circular, but instead fit the shape a bit more suitably, e.g: Is there a standard way to do t...
android|wear-os|watch-face-api
4
2016-04-17T07:26:38.690Z
2,016
4
7
6
1,756
2
363
48
3
1
true
false
false
false
false
false
low
36,673,826
java.lang.RuntimeException: No dex files created at
<p>I've redone fresh installation of Android Studio 2.0 and made a new project that uses KitKat to start with an empty activity. As soon as I try to run my app, it throws this exception:</p> <blockquote> <p>Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformE...
I've redone fresh installation of Android Studio 2.0 and made a new project that uses KitKat to start with an empty activity. As soon as I try to run my app, it throws this exception: Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeE...
java|android|android-4.4-kitkat
1
2016-04-17T07:30:53.600Z
2,016
4
7
6
1,467
1
1,002
51
3
5
true
false
false
false
false
false
low
36,673,901
Android Activity's - How can I open another activity in android?
<p>Hey I am still new at Android and having problem with opening another activity from the main activity.</p> <p>Main Class:</p> <pre><code> import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View;...
Hey I am still new at Android and having problem with opening another activity from the main activity. Main Class: [CODE] SongsPage Class: [CODE] When I click on the song that in the main page it show an error on my phone that say "Unfortunately, [Project Name] has stopped" When I debugged,I found that the problem wher...
android|android-fragments
0
2016-04-17T07:39:29.377Z
2,016
4
7
6
75
1
390
64
2
2
true
false
false
false
false
false
zero
36,673,927
android: how to make sure my app doesnt get paused when running in the background
<p>Android app that I am working on reads from near by beacons(devices) using bluetooth. It works fine when the app is in the foreground (tested it for 20 minutes). However, few minutes after app goes to background it stops reading. </p> <p>I notice when app goes to background, onpause() method is executed; still my a...
Android app that I am working on reads from near by beacons(devices) using bluetooth. It works fine when the app is in the foreground (tested it for 20 minutes). However, few minutes after app goes to background it stops reading. I notice when app goes to background, onpause() method is executed; still my app reads for...
android|bluetooth|ibeacon-android
2
2016-04-17T07:43:15.487Z
2,016
4
7
6
1,638
1
1,342
81
3
0
false
false
false
false
false
false
low
36,674,017
How to pass data on image click from RecycleAdapter to Fragment interface, which I used in MainActivity to show data
<p>I am trying to archive a data from onClick method of RecycleAdapter class to Fragment Class and that fragement class have interface which I used in MainActivity to get that data. I create a method onButtonPressed() in Fragment class which I called in recycleadapter onclick method for get data. But when I click on an...
I am trying to archive a data from onClick method of RecycleAdapter class to Fragment Class and that fragement class have interface which I used in MainActivity to get that data. I create a method onButtonPressed() in Fragment class which I called in recycleadapter onclick method for get data. But when I click on any i...
android|android-fragments|nullpointerexception|android-fragmentactivity|android-recyclerview
0
2016-04-17T07:54:05.763Z
2,016
4
7
6
1,433
1
1,286
116
5
11
true
false
false
false
false
false
zero
36,674,029
Moving a sprite from point A to point B in a specific time
<p>In my app there is a feature where you can set which way a sprite will be going in following animation, this feature looks more or less like this:</p> <p><a href="https://i.stack.imgur.com/xcH9V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xcH9V.png" alt="enter image description here"></a></p>...
In my app there is a feature where you can set which way a sprite will be going in following animation, this feature looks more or less like this: In the final animation the sprite always moves first to point 1, than from 1 to 2, 2 to 3, etc. ...and you can also set the time in which the sprite will move from one point...
java|android|oop
1
2016-04-17T07:56:15.520Z
2,016
4
7
6
42
0
1,717
58
3
0
false
true
false
false
false
false
low
36,674,035
I create a RecyclerView in Fragment but while reloading data RecyclerView does not maintains state.
<p>//I have created RecycleView in Fragment as follows:</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_ne...
//I have created RecycleView in Fragment as follows: [CODE] //In validateToken method data is taken from the json and set to adapter as follows. [CODE] No in onResume method i called validate token as follows: [CODE] //Now when I call some activity from this fragment and come back with back pressed validate method is c...
java|android|android-recyclerview
0
2016-04-17T07:56:47.270Z
2,016
4
7
6
128
1
709
99
3
3
true
false
false
false
false
false
zero
36,674,140
Android loadDataWithBaseURL method not loads the given URL
<p>I have tried to display web page with custom style on my activity. So I have coded as following. </p> <pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener { private TextView txtLon; private TextView txtLt; private TextView txtProvider; @Override protec...
I have tried to display web page with custom style on my activity. So I have coded as following. [CODE] after I execute the app i see only red color background( applied style give it). But It could not load web page. Why is that? What is my mistake?
android|android-webview
1
2016-04-17T08:10:18.233Z
2,016
4
8
6
108
0
249
58
2
1
true
true
false
false
false
false
low
36,674,235
Android passing data between activities
<p>Hello this is my first question so please forgive me if its in bad format, I have my main activity with three buttons,Button 1 and 2 lead to numberpickers that allow user to pick from numbers to set a background image. My problem is once they pick the color (rgb) i need it sent back to the main activity but then i w...
Hello this is my first question so please forgive me if its in bad format, I have my main activity with three buttons,Button 1 and 2 lead to numberpickers that allow user to pick from numbers to set a background image. My problem is once they pick the color (rgb) i need it sent back to the main activity but then i want...
java|android|android-intent|bundle
0
2016-04-17T08:21:37.333Z
2,016
4
8
6
110
1
1,125
39
4
6
true
false
false
false
false
false
zero
36,674,271
Build Failed when i try to run the app
<p>I have the error like "Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.</p> <blockquote> <p>com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzpm$zza$zza.class"</p> </blockquote> <p>What should i do to ...
I have the error like "Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzpm$zza$zza.class" What should i do to remove this error gradle [CODE]
android|google-cloud-messaging
1
2016-04-17T08:25:27.147Z
2,016
4
8
6
1,291
3
302
38
2
1
true
false
false
false
false
false
low
36,674,297
How to download an image to android device from azure blob using c# and Xamarin
<p>I want to store an Image from Azure blob to android device. I am using Xamarin, C# to develop the android app. I am able to save the file in my local system when testing but when i deploy the code to mobile the file is not getting saved in device.</p> <pre><code> CloudStorageAccount storageAccount = CloudStorageA...
I want to store an Image from Azure blob to android device. I am using Xamarin, C# to develop the android app. I am able to save the file in my local system when testing but when i deploy the code to mobile the file is not getting saved in device. [CODE]
android|c#-4.0|xamarin.android|azure-mobile-services|azure-blob-storage
2
2016-04-17T08:27:41.457Z
2,016
4
8
6
837
1
254
79
5
1
true
false
false
false
false
false
low
36,674,453
How to give permission for changing screen brightness in Marshmallow
<p>I am using following code to increase brightness. It is properly working in devices which are below Marshmallow. It is crashing in Marshmallow, and I did not find anything to give dynamic permission for Write-settings. Anybody has idea please help me.</p> <pre><code>Settings.System.putInt(getContentResolver(), Sett...
I am using following code to increase brightness. It is properly working in devices which are below Marshmallow. It is crashing in Marshmallow, and I did not find anything to give dynamic permission for Write-settings. Anybody has idea please help me. [CODE] Error Log: [CODE]
android|screen-brightness
4
2016-04-17T08:47:06.110Z
2,016
4
8
6
2,998
1
276
68
2
2
true
false
true
false
false
false
low
36,674,569
Why are Android emulators much slower than a Windows virtual machine?
<p>I have a Parallels Desktop Windows 10 Pro virtual machine on my Macbook Air, and it runs much faster/smoother than most new low/mid-end PC laptops.</p> <p>I also have a Genymotion Android 6.0 emulator, as well as some different Android Studio (qemu) emulators (with HAXM enabled).</p> <p>What baffles me is that I c...
I have a Parallels Desktop Windows 10 Pro virtual machine on my Macbook Air, and it runs much faster/smoother than most new low/mid-end PC laptops. I also have a Genymotion Android 6.0 emulator, as well as some different Android Studio (qemu) emulators (with HAXM enabled). What baffles me is that I can run a full PC op...
android|android-emulator|virtual-machine|genymotion|haxm
3
2016-04-17T09:00:04.377Z
2,016
4
9
6
1,396
1
1,011
69
5
0
false
false
false
false
false
false
low
36,674,615
I can not load a xml file in xamarin android
<pre><code>&lt;?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?&gt; &lt;Collection&gt; &lt;Book Id='1' ISBN='1-100000ABC-200'&gt; &lt;Title&gt;Principle of Relativity&lt;/Title&gt; &lt;!-- Famous physicist --&gt; &lt;Author&gt;Albert Einstein&lt;/Author&gt; &lt;Genre&gt;Physics&lt;/Genre&gt; &lt;/Book&g...
[CODE] i place my xml file in Resources/drawable and build action in set to Android Resources when i start the application exception occur System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.i am not sure what this exception means please help [CODE]
android|xml|xamarin
0
2016-04-17T09:06:45.060Z
2,016
4
9
6
435
1
276
44
3
2
true
false
false
false
false
false
zero
36,674,641
android.database.sqlite.SQLiteException: near "s": syntax error (code 1): ,
<p>android.database.sqlite.SQLiteException: near "s": syntax error (code 1): , while compiling: INSERT OR REPLACE INTO movies(backdrop_path,id,original_language,orginal_title,overview,poster_path,title,popularity,adult,video,vote_avg,vote_count,release_date,favourite) VALUES ('/tbhdm8UJAb4ViCTsulYFL3lxMCd.jpg','76341',...
android.database.sqlite.SQLiteException: near "s": syntax error (code 1): , while compiling: INSERT OR REPLACE INTO movies(backdrop_path,id,original_language,orginal_title,overview,poster_path,title,popularity,adult,video,vote_avg,vote_count,release_date,favourite) VALUES ('/tbhdm8UJAb4ViCTsulYFL3lxMCd.jpg','76341','en...
android|android-sqlite
-3
2016-04-17T09:09:53.510Z
2,016
4
9
6
1,907
3
1,209
75
2
0
false
false
false
false
false
true
negative
36,674,648
Coordinating Layout: Design support library not working
<p>I was going through some udacity material design classes. I downloaded a project which implements coordinating layout which is working fine I am getting auto complete also for support library, but when I am trying to implement coordinating Layout in my app design support library isn't working as expected neither I a...
I was going through some udacity material design classes. I downloaded a project which implements coordinating layout which is working fine I am getting auto complete also for support library, but when I am trying to implement coordinating Layout in my app design support library isn't working as expected neither I am g...
android|material-design|android-coordinatorlayout
0
2016-04-17T09:10:31.547Z
2,016
4
9
6
823
1
623
55
3
2
true
false
false
false
false
false
zero
36,674,727
Permission denied on exec() from a binary running as root
<p>I have a C binary that I run using root user (su -c binary_path) in Android.</p> <p>Everything works fine until the binary tries to exec*() another binary. It actually works on most devices, however on some I get EACCES error.</p> <p>The C binary is actually started using this:</p> <pre><code>execlp("su","su","-c...
I have a C binary that I run using root user (su -c binary_path) in Android. Everything works fine until the binary tries to exec*() another binary. It actually works on most devices, however on some I get EACCES error. The C binary is actually started using this: [CODE] At some point, the binary will try to make those...
android|process|permissions|exec|root
3
2016-04-17T09:19:18.617Z
2,016
4
9
6
2,503
1
985
57
5
5
true
false
false
false
false
false
low
36,674,812
How to Get Name of Next Junction(Road) from My location using GeoCoding
<p>Right now I m getting all information Like Current Address, country name,postal code etc Using Geo Coding from my Location Through GPS, but I want to get the name of next Junction(Road) or next address from my GPS position using geo coding <code>String s = "Address Line: " + addresses...
Right now I m getting all information Like Current Address, country name,postal code etc Using Geo Coding from my Location Through GPS, but I want to get the name of next Junction(Road) or next address from my GPS position using geo coding String s = "Address Line: " + addresses.get(0).getAddressLine(0) + "\n" + addres...
android|google-maps|geocoding|reverse-geocoding
0
2016-04-17T09:27:51.113Z
2,016
4
9
6
170
1
1,031
71
4
0
false
false
false
false
false
false
zero
36,674,822
Error: more than one library with package name 'com.google.android.gms'. Nothing helpes
<p>First, I want to say that I googled this problem already but nothing helped. I have a project and a library. Project's dependenies look like this:</p> <pre><code>dependencies { compile fileTree(include: '*.jar', dir: 'libs') compile 'com.google.android.gms:play-services-identity:8.4.0' compile '...
First, I want to say that I googled this problem already but nothing helped. I have a project and a library. Project's dependenies look like this: [CODE] And library's dependencies (org.mycompany.mylib:gmapslib): [CODE] But still, when I'm trying to build the project I get this: [CODE] Here is the result of gradlew app...
android
1
2016-04-17T09:29:14.717Z
2,016
4
9
6
74
1
511
87
1
4
true
false
false
false
false
false
low
36,674,921
Android TextView showing color hex as default
<p>In Android Studio the preview view is showing the color hex code in the textview as if I have set it as the text attribute. <a href="http://i.stack.imgur.com/USsxA.png" rel="nofollow">Here is an image showing this</a></p> <p>It also is appearing like this when I install it to my phone. I'm not sure what I've done t...
In Android Studio the preview view is showing the color hex code in the textview as if I have set it as the text attribute. Here is an image showing this It also is appearing like this when I install it to my phone. I'm not sure what I've done to make this happen. I recently updated Android studio and the build tools e...
android|android-layout|android-studio|textview
0
2016-04-17T09:41:41.423Z
2,016
4
9
6
690
3
454
45
4
1
true
false
false
false
false
false
zero
36,674,954
Cannot configure the 'publishing' extension after it has been accessed
<p>I recently updated my Android Studio to altest stable release and also Gradle to 2.10 but since then I am getting this error while trying to sync Gradle.</p> <pre><code>Error:Cannot configure the 'publishing' extension after it has been accessed. </code></pre> <p>The <code>build logs</code> shows this:</p> <pre><co...
I recently updated my Android Studio to altest stable release and also Gradle to 2.10 but since then I am getting this error while trying to sync Gradle. [CODE] The build logs shows this: [CODE] and in the idea.log : [CODE] I also tried by excluding the volley dependency from the build dependency but error still remain...
android|android-studio|gradle|android-gradle-plugin|build.gradle
3
2016-04-17T09:46:10.070Z
2,016
4
9
6
819
0
490
70
5
3
true
true
false
false
false
false
low
36,674,956
Not showing a red rectangle box on Face
<pre><code> paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setColor(Color.RED); paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth(5); BitmapFactory.Options options = new BitmapFactory.Options(); options.inPreferredConfig = Bitmap.Config.RGB_565; bitmap = new BitmapFactory().decodeRes...
[CODE] I am doing a face detection project and detecting a face via Android Face Libraryyy.... this code of face detection is giving me a positive output of eye distance and things like that but not showing a rectangle box on a face Can anyone help regarding this?
java|android|face
-1
2016-04-17T09:46:17.737Z
2,016
4
9
6
53
1
264
39
3
1
true
false
false
false
false
true
negative
36,674,986
Change Password Class and SQLITE
<p>How can I make a function to change password for my user. I still havent create a XML for the button and field for the change password, give me an idea on how to do it and I will do my research.</p> <p>Heres my database</p> <p>LogInDataBase</p> <pre><code>package com.example.androidxxx; import android.content.C...
How can I make a function to change password for my user. I still havent create a XML for the button and field for the change password, give me an idea on how to do it and I will do my research. Heres my database LogInDataBase [CODE] my Main Activity [CODE]
android|sqlite
1
2016-04-17T09:49:27.187Z
2,016
4
9
6
200
0
257
32
2
2
true
true
false
false
false
false
low
36,674,993
Android: strange npe on MapView onDestroy inside an activity
<p>I'm using a mapview inside an activity, but I'm receiving a strange null pointer exception that I can't seem to pinpoint the cause of.</p> <p>xml:</p> <pre><code>&lt;com.google.android.gms.maps.MapView xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/myMa...
I'm using a mapview inside an activity, but I'm receiving a strange null pointer exception that I can't seem to pinpoint the cause of. xml: [CODE] Then inside the activity: [CODE] initialization in onCreate: [CODE] and overriding the methods: [CODE] And I'm continually receiving a crash on the mapview onDestroy method ...
android|google-maps|nullpointerexception|google-maps-android-api-2|android-mapview
1
2016-04-17T09:50:16.153Z
2,016
4
9
6
2,249
3
517
60
5
5
true
false
false
false
false
false
low
36,675,067
Cannot resolve symbol 'setAdapter' (Spinner)
<p>I am trying to implement MaterialBetterSpinner (<a href="https://github.com/Lesilva/BetterSpinner" rel="nofollow">https://github.com/Lesilva/BetterSpinner</a>) in my app but I am getting "Cannot resolve symbol 'setAdaptor'"error.</p> <p>Here is the block that handles material spinner:</p> <pre><code>ArrayAdapter&...
I am trying to implement MaterialBetterSpinner ( https://github.com/Lesilva/BetterSpinner ) in my app but I am getting "Cannot resolve symbol 'setAdaptor'"error. Here is the block that handles material spinner: [CODE] Here is my xml file [CODE]
android|android-studio|spinner|android-arrayadapter
0
2016-04-17T09:58:15.817Z
2,016
4
9
6
1,223
1
244
44
4
2
true
false
false
false
false
false
zero
36,675,130
onSingleTapConfirmed not giving accurate y coordinate
<p>MainActivity class Code which uses GestureDetector to get coordinate:</p> <pre><code>public class MainActivity extends AppCompatActivity implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener { DrawView drawView; private GestureDetectorCompat g1; @Override protected void...
MainActivity class Code which uses GestureDetector to get coordinate: [CODE] Code which uses this coordinate: [CODE] Clicking just above first horizontal line prints "X" below the first horizontal line and Clicking just above second horizontal line prints "X" below the second horizontal line. Logcat shows that clicking...
java|android|android-layout|android-studio|graphics
0
2016-04-17T10:03:51.830Z
2,016
4
10
6
96
1
507
53
5
2
true
false
false
false
false
false
zero
36,675,151
Getting "Failed to bounce to type"
<p>I am getting error while i build android chat app using <code>firebase</code>. When i send message then it's ok but after send the message i get error. Error look like as below.</p> <pre><code>04-17 15:21:54.242 12961-12961/learning.firebase.app.learningfirebase E/AndroidRuntime: FATAL EXCEPTION: main com.fire...
I am getting error while i build android chat app using firebase . When i send message then it's ok but after send the message i get error. Error look like as below. [CODE] My MainActivity.java [CODE] My Firebase screenshot Please help me about this. I follow firebase github chat project. After I just add one value, me...
android|firebase|firebase-realtime-database|firebaseui
-1
2016-04-17T10:06:08.567Z
2,016
4
10
6
534
1
352
34
4
2
true
false
false
false
false
true
negative
36,675,170
ViewPager Doesn't work in ScrollView
<p>This is my Layout where I add Tablayout and ViewPager inside the ScrollView .</p> <p>EveryThing is ok , but viewPager fragment doesn't show anything .</p> <p>This is My xml Layout :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/and...
This is my Layout where I add Tablayout and ViewPager inside the ScrollView . EveryThing is ok , but viewPager fragment doesn't show anything . This is My xml Layout : [CODE] And This is my ViewPager Adapter : [CODE] And This is Screen Shot from That :
android|android-layout|android-viewpager|material-design
0
2016-04-17T10:07:47.880Z
2,016
4
10
6
800
1
252
36
4
2
true
false
false
false
false
false
zero
36,675,190
Which Android intent to use to get the 'Save to device' behaviour in dropbox app?
<p>Currently I am able to implement store and retrieve file from Google Drive without issue but I want to add an additional functionality which is to save the file directly to local storage.</p> <p>In dropbox app, if you try to export a file and in the chooser select 'Save to device', it will show something like below...
Currently I am able to implement store and retrieve file from Google Drive without issue but I want to add an additional functionality which is to save the file directly to local storage. In dropbox app, if you try to export a file and in the chooser select 'Save to device', it will show something like below: At first ...
android|android-intent
7
2016-04-17T10:10:07.070Z
2,016
4
10
6
4,592
1
676
81
2
1
true
false
true
false
false
false
medium
36,675,195
While creating dynamic android fragments, through fragment manager I am unable to setText on view of that fragment
<p>I am new to android and is stuck in it for quite a while now. So far what I have detected through debugging is that my view is null and that's the reason that it cannot set value to my textView. </p> <p>It works , perfectly fine :</p> <pre><code>articleFragment = new ArticleFragment(); getFragmentManager().beginT...
I am new to android and is stuck in it for quite a while now. So far what I have detected through debugging is that my view is null and that's the reason that it cannot set value to my textView. It works , perfectly fine : [CODE] but as soon as I remove comment from last line, it displays an error. Following is the cla...
android|android-fragments|fragment|fragmentmanager
0
2016-04-17T10:10:30.680Z
2,016
4
10
6
601
4
782
114
4
6
true
false
false
false
false
false
zero
36,675,222
Retrofit returning empty arraylist but given valid POJO and Json to work with (tried other questions but the answers that worked on them don't on mne)
<p>Does anyone here know how to use retrofit with a Django Rest Framework project? I have done everything I need to on both ends as documented and it returned valid Json that I generated Pojos with on <a href="http://www.jsonschema2pojo.org/" rel="nofollow noreferrer">http://www.jsonschema2pojo.org/</a>, but for some o...
Does anyone here know how to use retrofit with a Django Rest Framework project? I have done everything I need to on both ends as documented and it returned valid Json that I generated Pojos with on http://www.jsonschema2pojo.org/ , but for some odd reason Retrofit keeps on returning an empty list from the Json results ...
android|json|retrofit2|gson
3
2016-04-17T10:13:57.657Z
2,016
4
10
6
3,572
1
1,092
150
4
4
true
false
true
false
false
false
low
36,675,251
How to properly implement linkedIn login ?
<p>I have an andorid app and i am trying to implement linkedIn login in it. LinkedIn SDK has been successfully integrated and i am getting user information as well along with the email address. </p> <p><strong>Here is how my application works for google login :</strong> </p> <p>1) get access token on mobile </p> <p...
I have an andorid app and i am trying to implement linkedIn login in it. LinkedIn SDK has been successfully integrated and i am getting user information as well along with the email address. Here is how my application works for google login : 1) get access token on mobile 2) send email address with access token to serv...
android|oauth|oauth-2.0|linkedin|linkedin-api
17
2016-04-17T10:16:29.273Z
2,016
4
10
6
1,870
2
1,573
42
5
0
false
false
false
false
true
false
medium