id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
37,120,006
How to open Fragment OnClickListener
<p>I'm trying to open a new fragment but getting the error:</p> <blockquote> <p>cannot resolve getFragmentManager</p> </blockquote> <p>I tried some solutions but am still getting the error. How do I solve it?</p> <p>Here is my adapter code where I set the <code>OnClickListener</code>:</p> <pre><code>public class ...
I'm trying to open a new fragment but getting the error: cannot resolve getFragmentManager I tried some solutions but am still getting the error. How do I solve it? Here is my adapter code where I set the OnClickListener : [CODE]
android|android-recyclerview
1
2016-05-09T15:44:26.057Z
2,016
5
15
0
445
3
229
36
2
1
true
false
false
false
false
false
low
37,120,058
Android ListView inside a ScrollView
<p>I'm trying to show a listView. I want also, that my app users wil be able to scroll down the listView if it is needed. So I made this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-...
I'm trying to show a listView. I want also, that my app users wil be able to scroll down the listView if it is needed. So I made this: [CODE] The problem that I am exeperiencing, is that android is excluding the listView from the scrollView as the scrollView already has a scroll-able function. I want the listView to be...
android|listview|scrollview
1
2016-05-09T15:47:07.137Z
2,016
5
15
0
4,061
1
538
36
3
2
true
false
true
false
false
false
low
37,120,116
Make adapter more efficient
<p>I tried to make a custom Adapter and I made it functionall maybe not the best way and may be not the intelligentes Way so I ask here what I can do to make this a little more efficient</p> <pre><code>public class MovieDataAdapter extends BaseAdapter implements FetchImage.AsyncResponse { private Context mContext;...
I tried to make a custom Adapter and I made it functionall maybe not the best way and may be not the intelligentes Way so I ask here what I can do to make this a little more efficient [CODE] Would be happy about every help I can get even if it's a complet new Way because at the moment the grid view does not work fluent...
android|gridview|baseadapter
-1
2016-05-09T15:49:45.557Z
2,016
5
15
0
38
1
322
27
3
1
true
false
false
false
false
true
negative
37,120,329
how to add a variable in Array class in Android5.1
<p>I'm doing some work in art based on Android5.1, and I want to add a variable in Array class in Array.h(art/runtime/mirror/Array.h). </p> <p>But when I add a "uint32_t tag" in the class, the system in emulator can not start up. So how can I add some variable in Array.h in Android5.1?</p> <p>The crash log is like:</...
I'm doing some work in art based on Android5.1, and I want to add a variable in Array class in Array.h(art/runtime/mirror/Array.h). But when I add a "uint32_t tag" in the class, the system in emulator can not start up. So how can I add some variable in Array.h in Android5.1? The crash log is like: [CODE]
android|c++|operating-system|android-source|art-runtime
0
2016-05-09T15:59:58.057Z
2,016
5
15
0
94
1
305
50
5
1
true
false
false
false
false
false
zero
37,120,351
Monogame: Java.IO.FileNotFoundException
<p>I'm following this tutorial: <a href="https://developer.xamarin.com/guides/cross-platform/game_development/monogame/introduction/part2/" rel="nofollow">https://developer.xamarin.com/guides/cross-platform/game_development/monogame/introduction/part2/</a></p> <p>When I try to run the code I get the following log:</p>...
I'm following this tutorial: https://developer.xamarin.com/guides/cross-platform/game_development/monogame/introduction/part2/ When I try to run the code I get the following log: [CODE] soccerball.png is there with that name, both on the Content folder and in the Content.mgcb thing. Build Action for soccerball.png is C...
c#|xamarin|xamarin.android
1
2016-05-09T16:00:57.980Z
2,016
5
16
0
406
1
365
39
3
2
true
false
false
false
false
false
low
37,120,361
Uploading image to mysql database through android
<p>Hello before someone says that i shouldnt store in database as blob, well i need it i have my reasons. Last time i asked this only response i got was like dont store in database or something. Well here is my code thatone part works the other part doesnt works, the part that works is taking photo and displaying it in...
Hello before someone says that i shouldnt store in database as blob, well i need it i have my reasons. Last time i asked this only response i got was like dont store in database or something. Well here is my code thatone part works the other part doesnt works, the part that works is taking photo and displaying it in im...
java|php|android
1
2016-05-09T16:01:30.840Z
2,016
5
16
0
70
1
525
49
3
3
true
false
false
false
false
false
low
37,120,364
Put the button on the bottom center of the screen with the RecyclerView
<p>I have RecyclerView and Button. Button is coming under the recyclerView. I want to put the button to the bottom center of the screen in my screen. That should not change in any device. Because in some devices button get disappear.</p> <p>My Xml.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Linea...
I have RecyclerView and Button. Button is coming under the recyclerView. I want to put the button to the bottom center of the screen in my screen. That should not change in any device. Because in some devices button get disappear. My Xml. [CODE]
android|xml|button|android-recyclerview
1
2016-05-09T16:01:37.463Z
2,016
5
16
0
2,388
2
245
71
4
1
true
false
false
false
false
false
low
37,120,373
how to define different or add new layout in include in app bar XML with Coordinator Layout with XML in android studio?
<p><em>hi,how to define different or add new layout in include in app bar XML with Coordinator Layout with XML in android studio?</em></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app...
hi,how to define different or add new layout in include in app bar XML with Coordinator Layout with XML in android studio? [CODE]
android|android-layout|android-studio
0
2016-05-09T16:02:04.163Z
2,016
5
16
0
176
2
129
119
3
1
true
false
false
false
false
false
zero
37,120,390
ActiveAndroid schema migration add column that is an object
<p>I am fairly new to SQLite and ActiveAndroid.</p> <p>I am working to roll out an update for an app and need to migrate my database. Some of the tables have had columns added or removed, etc. In ActiveAndroid, schema migrations are performed by writing a migration script. It's easy for me to understand how to do this...
I am fairly new to SQLite and ActiveAndroid. I am working to roll out an update for an app and need to migrate my database. Some of the tables have had columns added or removed, etc. In ActiveAndroid, schema migrations are performed by writing a migration script. It's easy for me to understand how to do this when deali...
android|sqlite|orm|activeandroid
0
2016-05-09T16:02:44.637Z
2,016
5
16
0
470
1
614
59
4
2
true
false
false
false
false
false
zero
37,120,480
Using LocationServices.FusedLocationApi.requestLocationUpdates in an Android background service...onLocationChanged never called
<p>I've searched for days and days and somehow the answer to why onLocationChanged isn't being called has eluded me. I've read the documentation extensively and I MUST be missing something crucial. I simply want a service that runs in the background, when location has changed, I want to log the location.</p> <p>Here's...
I've searched for days and days and somehow the answer to why onLocationChanged isn't being called has eluded me. I've read the documentation extensively and I MUST be missing something crucial. I simply want a service that runs in the background, when location has changed, I want to log the location. Here's my service...
android|service|background|android-fusedlocation
0
2016-05-09T16:07:14.037Z
2,016
5
16
0
1,279
1
441
128
4
3
true
false
false
false
false
false
zero
37,120,507
How To Make A Method Return A Non-Zero Value Where Expected
<p>So I am currently working on an android project and I got stuck at some point; here is the code: </p> <pre><code>public class Readiness { private Double examAverageReadiness; private Integer courseReadiness; private Integer courseScore; public Integer courseCount; //Set the number of courses offered private void s...
So I am currently working on an android project and I got stuck at some point; here is the code: [CODE] I then used it here: [CODE] This was okay to me until I debugged it and found out that the Readiness.java class's method - "getCourseReadiness(integer a, integer b)" always returned a 0 (zero) value. This is kinda an...
java|android
0
2016-05-09T16:08:52.370Z
2,016
5
16
0
66
0
505
59
2
2
true
true
false
false
false
false
zero
37,120,590
Android: Call MyGCMListenerService not work
<p>I use GCM for notification</p> <p>Register token work full but receiver not work</p> <blockquote> <p>MyGCMListenerService.java</p> </blockquote> <pre><code>public class MyGCMListenerService extends GcmListenerService { private static final String TAG = "MyGcmListenerService"; @Override public voi...
I use GCM for notification Register token work full but receiver not work MyGCMListenerService.java [CODE] For start receiver use intent in mainactivity MainActivity.java [CODE] Error Log : [CODE] Can you help me for this problem ? Manifest.xml [CODE]
android|notifications|google-cloud-messaging
0
2016-05-09T16:13:27.613Z
2,016
5
16
0
253
0
251
43
3
4
true
true
false
false
false
false
zero
37,120,673
Changing Locale but keep left-to-right and other phone orientations
<p>I have an app that is available in two languages - English and Hebrew.</p> <p>I added Hebrew strings using the <a href="https://phraseapp.com/blog/posts/android-how-to-translate-apps-in-android-studio/" rel="nofollow noreferrer">Translation Editor</a> and I am changing the Locale according to the user selection.</p...
I have an app that is available in two languages - English and Hebrew. I added Hebrew strings using the Translation Editor and I am changing the Locale according to the user selection. When changing the Locale, it sets the strings to Hebrew like I wanted, but its also changes the toolbar orientation to right-to-left fo...
android|localization|locale|translation
7
2016-05-09T16:17:53.910Z
2,016
5
16
0
9,450
3
704
67
4
0
false
false
true
false
false
false
medium
37,120,723
Unable to program detection behavior on Webview and xml Textview
<p>I am trying to change the visibility of my textview inside onCreate method, but I cant seem to get a handle for it. Or, perhaps something else is wrong. Also, the getUrl() from the WebView class is not behaving as it should. It seems that it detects the url i am looking for after i leave the page with the url i am t...
I am trying to change the visibility of my textview inside onCreate method, but I cant seem to get a handle for it. Or, perhaps something else is wrong. Also, the getUrl() from the WebView class is not behaving as it should. It seems that it detects the url i am looking for after i leave the page with the url i am tryi...
android|xml|layout|webview|textview
0
2016-05-09T16:20:52.530Z
2,016
5
16
0
28
0
1,131
64
5
1
true
true
false
false
false
false
zero
37,120,780
ContactPicker not setting in edittext
<p>I am implementing contactPicker in android </p> <p>i have created a imagebutton and onClick of that button i start activityforresult to get the single contact phonenumber in edit text </p> <p>but the problem is data is always null .</p> <p>here is my code </p> <pre><code>public static final int PICK_CONTACT = 1;...
I am implementing contactPicker in android i have created a imagebutton and onClick of that button i start activityforresult to get the single contact phonenumber in edit text but the problem is data is always null . here is my code [CODE] here is activityforresult [CODE] all i want to do is select a contact and load i...
android|android-edittext|android-contacts|onactivityresult|startactivityforresult
0
2016-05-09T16:23:49.897Z
2,016
5
16
0
86
1
443
37
5
2
true
false
false
false
false
false
zero
37,120,896
Add delete button in custom Listview
<p>First of all, pardon the broken english.</p> <p>I want to know how to delete an item when the data is from other class using a delete button inside the listview.</p> <p>I use a button in MainActivity that will insert some data to array called nicknames. </p> <p>This is my CustomAdapter class.</p> <pre><code>publ...
First of all, pardon the broken english. I want to know how to delete an item when the data is from other class using a delete button inside the listview. I use a button in MainActivity that will insert some data to array called nicknames. This is my CustomAdapter class. [CODE] And this is my onClick in MainActivity cl...
android|listview
0
2016-05-09T16:29:59.127Z
2,016
5
16
0
2,719
2
698
36
2
2
true
false
true
false
false
false
zero
37,121,028
Coordinator layout TextInput below FloatingActionButton
<p>Halloo guys I have problem here with coordinator layout. <strong>I have TextInputLayout and inside it I have editText.</strong> What I want is to show it on click on FAB on the left side and hide on click on FAB. </p> <p>But I have always problem with edit text going below FAB: <img src="https://i.stack.imgur.com/D...
Halloo guys I have problem here with coordinator layout. I have TextInputLayout and inside it I have editText. What I want is to show it on click on FAB on the left side and hide on click on FAB. But I have always problem with edit text going below FAB: Only way I was able to somehow do it is with using marginRight , s...
android|xml|android-layout|android-coordinatorlayout
0
2016-05-09T16:38:23.463Z
2,016
5
16
0
572
2
417
55
4
1
true
false
false
false
false
false
zero
37,121,070
Can't restart activity after clicking on notification
<p>When app receives message from GCM, it shows notification.</p> <pre><code> Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent, PendingIntent.FLAG...
When app receives message from GCM, it shows notification. [CODE] When I click on notification, app opens activity but not restarting. What is the problem? How to solve it?
android|notifications|android-pendingintent
1
2016-05-09T16:40:33.473Z
2,016
5
16
0
1,148
2
172
53
3
1
true
false
false
false
false
false
low
37,121,084
Realm objects overriden equals method
<p>My model for <code>ObjectA</code> looks like this:</p> <pre><code>public class ObjectA extends RealmObject { @Override public boolean equals(Object objectA) { } } </code></pre> <p>In one of my fragments I have an edit form to change attributes of an instance of <code>ObjectA</code>, and I want to pre...
My model for ObjectA looks like this: [CODE] In one of my fragments I have an edit form to change attributes of an instance of ObjectA , and I want to present a discard changes dialogs when user backpressed out of this fragment. In this fragment I have a reference to a simple POJO of the objectA I'm editing. It looks l...
android|realm
1
2016-05-09T16:41:17.557Z
2,016
5
16
0
1,650
1
639
37
2
4
true
false
false
false
false
false
low
37,121,091
Passing data From Activity to Fragment using interface
<p>I want to pass data from an activity to a fragment, using an interface. Please have a look at the code snippets below:</p> <p>Interface:</p> <pre><code>public interface FragmentCommunicator { public void passData(String name); } </code></pre> <p>MainActivity:</p> <pre><code>public class MainActivity extends AppC...
I want to pass data from an activity to a fragment, using an interface. Please have a look at the code snippets below: Interface: [CODE] MainActivity: [CODE] Fragment: [CODE] I just want to pass some string when I click on button, (or some other event) to launch a fragment, and when the fragment is launched, it should ...
android|android-fragments|interface
5
2016-05-09T16:41:41.297Z
2,016
5
16
0
26,054
3
401
54
3
3
true
false
true
true
false
false
low
37,121,096
React Native ScrollView With growing child
<p>I am implementing a compose screen : A growing input text with ability to attach an image. When the input Text grow in height(it take the half of the screen for example) the scrollView is not scrolling even if its contentSize is bigger than it's frame. how can i make it scroll ?</p> <pre><code>import React, { Compo...
I am implementing a compose screen : A growing input text with ability to attach an image. When the input Text grow in height(it take the half of the screen for example) the scrollView is not scrolling even if its contentSize is bigger than it's frame. how can i make it scroll ? [CODE]
android|ios|react-native|scrollview
0
2016-05-09T16:41:49.873Z
2,016
5
16
0
1,263
1
286
42
4
1
true
false
false
false
false
false
zero
37,121,111
Set space/blank/ null value to default value
<p>I'm new in developing Android application and currently I'm developing a android software that require user to input quite amount of data and save it on <code>sharedPreferences</code> as database. Here is my coding:</p> <pre><code>public static final String DEFAULT= "NONE"; </code></pre> <p>When saving the data i...
I'm new in developing Android application and currently I'm developing a android software that require user to input quite amount of data and save it on sharedPreferences as database. Here is my coding: [CODE] When saving the data input by the user, a portion of coding are as shown at the following: [CODE] For loading ...
android|sharedpreferences
0
2016-05-09T16:42:45.130Z
2,016
5
16
0
1,128
1
1,038
44
2
4
true
false
false
false
false
false
zero
37,121,198
Change String to Decimal in TextView Android
<pre><code>public void addDataListViewShowAllNotes(){ Bundle extras = getIntent().getExtras(); String idUser = extras.getString("IdUser"); Cursor cursor = db.getDataTableNote(Integer.parseInt(idUser)); String form[] = new String []{db.KEY_CONTENT_NOTE, db.KEY_TYPE_NOTE, db.KEY_DATE_CREATE_NOTE, db.KEY_M...
[CODE] Here is my method which I use to add data to my ListView. [CODE] Here is method which i use to change my text to number like money. Example "1000000" -> " 1,000,000. But when i set method textOutput on [CODE] The text i get is "money". It's name of column in database. So how can i get my data in this column to u...
android
0
2016-05-09T16:46:54.783Z
2,016
5
16
0
57
1
341
44
1
3
true
false
false
false
false
false
zero
37,121,226
Testing real network responses with retrofit
<p>Before I get the obligatory <em>"you shouldn't be testing real network responses for XYZ reasons!"</em>, it should be noted that I am not asking whether or not I should. </p> <p>I am asking specifically how I would go about doing so, if I wanted to. </p> <p>After a few hours of struggle I've successfully managed a...
Before I get the obligatory "you shouldn't be testing real network responses for XYZ reasons!" , it should be noted that I am not asking whether or not I should. I am asking specifically how I would go about doing so, if I wanted to. After a few hours of struggle I've successfully managed a proper response from Volley ...
android|junit|retrofit
4
2016-05-09T16:48:06.500Z
2,016
5
16
0
1,211
1
1,172
44
3
3
true
false
false
false
false
false
low
37,121,345
Can't load image in ImageViewAsync
<p>I can't get an image to load into an ImageViewAsync. There's just a blank where the image should be. I've tried both synchronous and asychronous approaches. I have the image placeholderProfileImage.png in the mipmap folders. I walked the debugger through the binding code and all appears to be in order. Note that I r...
I can't get an image to load into an ImageViewAsync. There's just a blank where the image should be. I've tried both synchronous and asychronous approaches. I have the image placeholderProfileImage.png in the mipmap folders. I walked the debugger through the binding code and all appears to be in order. Note that I remo...
c#|xamarin|xamarin.android
2
2016-05-09T16:53:44.987Z
2,016
5
16
0
778
1
575
34
3
3
true
false
false
false
false
false
low
37,121,351
Google Analytics & Product Flavors
<p>I used the answer provided here: <a href="https://stackoverflow.com/questions/30772201/google-services-json-for-different-productflavors">google-services.json for different productFlavors</a> to add a google-services.json files to my app/src/dev flavor folder and one to my app/src/production flavor folder. My dev d...
I used the answer provided here: google-services.json for different productFlavors to add a google-services.json files to my app/src/dev flavor folder and one to my app/src/production flavor folder. My dev debug variant will generate Events in my dashboard but my production release variant does not. The tracking_id is ...
google-analytics|android-productflavors
1
2016-05-09T16:54:00.790Z
2,016
5
16
0
312
0
638
34
2
1
true
true
false
false
false
false
low
37,121,403
Not able to use RealmAdapter - java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
<p>I am trying to use Realm Adapter in one of my projects. However I am not able to use it.</p> <p>When ever I add <code>compile 'io.realm:android-adapters:1.0.1'</code> into gradle file. Project gets compiled successfully, but the app crashes on <code>tabLayout.setupWithViewPager(viewPager);</code> -- the line where ...
I am trying to use Realm Adapter in one of my projects. However I am not able to use it. When ever I add compile 'io.realm:android-adapters:1.0.1' into gradle file. Project gets compiled successfully, but the app crashes on tabLayout.setupWithViewPager(viewPager); -- the line where I am adding viewpager to tabLayout. A...
android|orm|realm
0
2016-05-09T16:56:58.123Z
2,016
5
16
0
1,394
2
606
124
3
2
true
false
false
false
false
false
zero
37,121,653
Designing a chat bubble for RTL and LTR locales in android
<p>I am trying to use "Actor" Open Source Messenger application for android, but it has a bug in displaying the chat bubbles for RTL languages. The bubbles displayed for English text and RTL language text are provided <a href="http://i.stack.imgur.com/NNSs8.png" rel="nofollow">here</a>.</p> <p>I want it to be like <a ...
I am trying to use "Actor" Open Source Messenger application for android, but it has a bug in displaying the chat bubbles for RTL languages. The bubbles displayed for English text and RTL language text are provided here . I want it to be like this , as it is in messengers like "Whatsapp". This is the xml file for the b...
android|xml|textview|right-to-left
0
2016-05-09T17:12:05.943Z
2,016
5
17
0
232
2
477
58
4
1
true
false
false
false
false
false
zero
37,121,907
Handshake error sporadically occuring -using tyrus client android
<p>The following issue occurs sporadically.. I have seen some posts like <a href="https://stackoverflow.com/questions/28011581/websocket-ssl-handshake-failure">Websocket SSL handshake failure</a> Please dont mark this question as duplicate unless there is concrete answer.I couldnt get a work around what exactly needs ...
The following issue occurs sporadically.. I have seen some posts like Websocket SSL handshake failure Please dont mark this question as duplicate unless there is concrete answer.I couldnt get a work around what exactly needs to be done for tyrus client Or which library supports the usage of SSL on android... Following ...
android|ssl|websocket|grizzly|tyrus
0
2016-05-09T17:28:44.513Z
2,016
5
17
0
723
0
344
65
5
1
true
true
false
false
false
false
zero
37,121,964
dynamic button created in fragment disappears after re-entering the fragment
<p>I have two classes. One extends FragmentActivity (MainActivity.java) and the other extends Fragment (HomeFragment.java). <strong>What I want is to create an image button in MainActivity and put it in home_fragment.xml and then update HomeFragment.java so that my imagebutton is permanently in the layout.</strong> Rig...
I have two classes. One extends FragmentActivity (MainActivity.java) and the other extends Fragment (HomeFragment.java). What I want is to create an image button in MainActivity and put it in home_fragment.xml and then update HomeFragment.java so that my imagebutton is permanently in the layout. Right now, I have a but...
java|android|android-fragments|button|otto
0
2016-05-09T17:32:33.043Z
2,016
5
17
0
221
0
1,423
76
5
2
true
true
false
false
false
false
zero
37,122,030
Tracking Service won't work after uprading program's Android API
<p>My professor has a program that I am trying to help hime upgrade, unfortunately I am extremely new to Android. It a program that is supposed to grab your Android's location and periodically send it to a server (about every 5 seconds). But after upgrading it to use API 21 (it was on 10-14), it will only return my l...
My professor has a program that I am trying to help hime upgrade, unfortunately I am extremely new to Android. It a program that is supposed to grab your Android's location and periodically send it to a server (about every 5 seconds). But after upgrading it to use API 21 (it was on 10-14), it will only return my locati...
android|gps|locationmanager
1
2016-05-09T17:36:19.187Z
2,016
5
17
0
32
0
526
64
3
2
true
true
false
false
false
false
low
37,122,079
Android Studio / Gradle can't find imported component
<p>A project I'm developing at work has the following component imports going on. Names changed to protect proprietary info.</p> <h3><code>~/.gradle/gradle.properties</code></h3> <pre><code>lib_includedLibrary=/home/myuser/includedLibrary/lib_includedLibrary </code></pre> <h3>Project's <code>settings.gradle</code></...
A project I'm developing at work has the following component imports going on. Names changed to protect proprietary info. ~/.gradle/gradle.properties [CODE] Project's settings.gradle [CODE] In the module's build.gradle [CODE] Problem Android Studio doesn't seem to be finding my gradle.properties file. No matter what I ...
android|gradle
0
2016-05-09T17:39:02.303Z
2,016
5
17
0
899
2
1,036
53
2
5
true
false
false
false
false
false
zero
37,122,098
recycled recyclerview item keeps the old background color
<p>I have a recycler view and inside the <code>onClick(View view)</code> i'm changing the background color to almost transparent red <code>view.setBackgroundColor(Color.argb(64, 183, 28, 28));</code> but something weird is happening which is when I scroll down I see the color has changed for items that have not been cl...
I have a recycler view and inside the onClick(View view) i'm changing the background color to almost transparent red view.setBackgroundColor(Color.argb(64, 183, 28, 28)); but something weird is happening which is when I scroll down I see the color has changed for items that have not been clicked yet, my guess is when t...
android|background|android-recyclerview
1
2016-05-09T17:39:57.973Z
2,016
5
17
0
486
3
563
57
3
1
true
false
false
false
false
false
low
37,122,126
What's the exact significance of Android NDK platform version compared to API level?
<p>I have an Android app with <code>minSdkVersion.apiLevel</code> set to 18 <code>targetSdkVersion.apiLevel</code> set to 23. Accordingly I set the NDK <code>platformVersion</code> to 18.</p> <p>Unfortunately after adding OpenSSL to the mix, the JNI library now fails to link:</p> <pre><code>/Users/pol/Downloads/Cross...
I have an Android app with minSdkVersion.apiLevel set to 18 targetSdkVersion.apiLevel set to 23. Accordingly I set the NDK platformVersion to 18. Unfortunately after adding OpenSSL to the mix, the JNI library now fails to link: [CODE] The problem goes away if setting platformVersion to 21 (it doesn't work either at 19)...
android|android-ndk|openssl
7
2016-05-09T17:41:49.763Z
2,016
5
17
0
4,446
1
561
84
3
1
true
false
true
false
false
false
medium
37,122,171
Dagger not generating Component classes
<p>I have tried a great deal debugging this issue but unable to find the cause. Dagger simply doesn't create the DaggerComponent classes. I've checked SO for duplicates but none of the solutions provided worked.</p> <p><strong>project's build.gradle</strong></p> <pre><code>buildscript { repositories { jce...
I have tried a great deal debugging this issue but unable to find the cause. Dagger simply doesn't create the DaggerComponent classes. I've checked SO for duplicates but none of the solutions provided worked. project's build.gradle [CODE] app's build.gradle [CODE] HttpModule.java [CODE] HttpComponent.java [CODE] Applic...
java|android|dependency-injection|dagger-2
0
2016-05-09T17:44:52.787Z
2,016
5
17
0
2,992
2
513
39
4
6
true
false
true
false
false
false
zero
37,122,187
set edittext width in tablerow
<p>I have a tableview with tablerows and the output is this (Background = shape)</p> <p>the two edittext have the same size - but i would like that the first edittext fills the rest of the line from ':' on and the second stays shorter maybe for 7 letters.</p> <p>Any help?</p> <p><a href="https://i.stack.imgur.com/cD...
I have a tableview with tablerows and the output is this (Background = shape) the two edittext have the same size - but i would like that the first edittext fills the rest of the line from ':' on and the second stays shorter maybe for 7 letters. Any help? [CODE]
android|android-edittext|width
0
2016-05-09T17:45:55.233Z
2,016
5
17
0
739
2
262
30
3
1
true
false
false
false
false
false
zero
37,122,232
Android studio - FATAL EXCEPTION
<p>I am trying to switch between 2 activities in android studio, the problem is whenever I press the button the program crash and stop working, here is the error :</p> <pre><code>&gt; FATAL EXCEPTION: main Process: com.example.talal.fur...
I am trying to switch between 2 activities in android studio, the problem is whenever I press the button the program crash and stop working, here is the error : [CODE] my XML code for activity 1: [CODE] my Java code for activity 1: [CODE] my XML code for activity2 : [CODE] my java code for activity2: [CODE]
android|fatal-error
0
2016-05-09T17:48:27.963Z
2,016
5
17
0
1,000
4
308
32
2
5
true
false
false
false
false
false
zero
37,122,366
How to do a SQLIte query to search words in a dictionary
<p>I created a table with 4 columns: _id(Auto increment), Vocab(text), Meaning(text) and favorites(Numeric). Now i created a search query like the following:</p> <pre><code> public class StudentRepo { private DBHelper dbHelper; public StudentRepo(Context context) { dbHelper = new DBHelper(context); ...
I created a table with 4 columns: _id(Auto increment), Vocab(text), Meaning(text) and favorites(Numeric). Now i created a search query like the following: [CODE] Please find the searchbar code: [CODE] DBHelper code: [CODE] Whenever i run the app and click on search bar to start searching word, my app stops working. Ple...
android|android-sqlite
0
2016-05-09T17:56:29.280Z
2,016
5
17
0
919
1
678
56
2
6
true
false
false
false
false
false
zero
37,122,416
How to change width of rectangle shape without changing height
<p>I'm trying to make a dynamic bar chart with 5 columns that changes based on user input. I defined a rectangle xml drawable shape like so:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt; &lt;corners ...
I'm trying to make a dynamic bar chart with 5 columns that changes based on user input. I defined a rectangle xml drawable shape like so: [CODE] I've embedded the bar shape 5 times in my xml layout file like this: [CODE] I want to be able to change the width of the bar based on user input, but when I adjust the "width"...
java|android|xml|drawable|shapes
0
2016-05-09T17:59:35.403Z
2,016
5
17
0
1,471
1
480
62
5
2
true
false
false
false
false
false
zero
37,122,467
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]!
<p>So I am doing a little something in Android and this error comes up: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]</p> <p>I cant install the app please help! My AndroidManifest is follow: Please have a look and help me!</p> <pre><code>&lt;uses-sdk android:minSdkVersion="15" android:targetSdkVersion="22...
So I am doing a little something in Android and this error comes up: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] I cant install the app please help! My AndroidManifest is follow: Please have a look and help me! [CODE]
android-studio
0
2016-05-09T18:02:21.240Z
2,016
5
18
0
154
1
223
50
1
1
true
false
false
false
false
false
zero
37,122,601
Skipped frames even after offloading work to new thread
<p>I'm making an app that automatically takes a picture once the user unlocks their phone. I have a service running that supports a broadcast receiver which responds to successful phone entry. I'm having problems with the actual picture taking and saving onto external storage. It's skipping frames and either storing ...
I'm making an app that automatically takes a picture once the user unlocks their phone. I have a service running that supports a broadcast receiver which responds to successful phone entry. I'm having problems with the actual picture taking and saving onto external storage. It's skipping frames and either storing the i...
android|multithreading|runnable
0
2016-05-09T18:10:14.560Z
2,016
5
18
0
70
0
495
55
3
1
true
true
false
false
false
false
zero
37,122,678
ERROR: Android Runtime : FATAL EXCEPTION java.lang.RuntimeException
<p>I am getting this Error:</p> <pre><code>05-09 23:34:04.251 21214-21214/com.example.averm.phonecontact E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.averm.phonecontact, PID: 21214 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.averm.phonecontact/com.example.averm.phonec...
I am getting this Error: [CODE] My Code is: MainActivity.java Class : [CODE] DatabaseHandler.java Class: [CODE]
android|nullpointerexception
-1
2016-05-09T18:14:33.473Z
2,016
5
18
0
2,721
2
111
67
2
3
true
false
true
false
false
true
negative
37,122,753
Fixed navigation header in navigation drawer while scrolling through items
<p><strong>CURRENT STATE</strong>: NavigationDrawer with a NavigationHeader and NavigationMenu items. The items are large in number so scrolling is required in order to access the items towards the bottom.</p> <p><strong>REQUIREMENT</strong>: When scrolling down to the bottom, the NavigationHeader should stay fixed</p...
CURRENT STATE : NavigationDrawer with a NavigationHeader and NavigationMenu items. The items are large in number so scrolling is required in order to access the items towards the bottom. REQUIREMENT : When scrolling down to the bottom, the NavigationHeader should stay fixed Here's my activity_main layout file [CODE] He...
android|navigation-drawer|android-navigationview
4
2016-05-09T18:18:06.300Z
2,016
5
18
0
7,436
6
440
74
3
2
true
false
true
false
false
false
low
37,122,782
Android to MS Sql query
<p>my application was working fine but then i changed something and its not inserting records in the database. when ever i press the submit button it show me toast "Record not inserted" here is the code</p> <pre><code>connect=connn.ConnHelper(username, password, db, ipaddress); if (connect == null){ Toast.makeTe...
my application was working fine but then i changed something and its not inserting records in the database. when ever i press the submit button it show me toast "Record not inserted" here is the code [CODE] here its returning zero to k. mydatabase entities are. database entities
android|sql-server
-1
2016-05-09T18:19:11.137Z
2,016
5
18
0
368
1
279
23
2
1
true
false
false
false
false
true
negative
37,122,805
youtube audio is always playing in Android webview when I press back button
<p>I have a <code>WebView</code> in a <code>Fragment</code> with a youtube video. When I press back button the youtube audio continues playing:</p> <pre><code>View view = inflater.inflate( R.layout.fragment, container, false ); configView( view ); view.setFocusableInTouchMode(true); view.requestFocus(); view.setOnKe...
I have a WebView in a Fragment with a youtube video. When I press back button the youtube audio continues playing: [CODE] On the other hand, when I put the app on background the onPause() event works correctly: [CODE] Why doesn't it work when I press back button? Any solution?
android|audio|webview|youtube
2
2016-05-09T18:20:44.017Z
2,016
5
18
0
511
2
277
75
4
2
true
false
false
false
false
false
low
37,123,001
Accessing Arraylist Items
<p>I want to access the items from <code>bookList</code> in the <code>onItemClickListener</code>. I want to access specific books and get specific items from them how to do this?</p> <p>The code is :</p> <pre><code>// Creating volley request obj final JsonArrayRequest bookrequest = new JsonArrayRequest(url, n...
I want to access the items from bookList in the onItemClickListener . I want to access specific books and get specific items from them how to do this? The code is : [CODE] I tried many methods and most of them end with an Out of bound exception and index out of bounds.
java|android|arraylist
0
2016-05-09T18:33:28.787Z
2,016
5
18
0
33
1
269
25
3
1
true
false
false
false
false
false
zero
37,123,025
Android Pay errorCode = 8 when generating MaskedWalletRequest
<p>I'm building a <code>MaskedWalletRequest</code>:</p> <pre><code>return MaskedWalletRequest.newBuilder() // required fields .setCurrencyCode(CURRENCY_CODE) .setEstimatedTotalPrice(String.valueOf(order.getTotal())) // optional fields .setShippingAddressRequired(false) .setMerchantName(MERCHA...
I'm building a MaskedWalletRequest : [CODE] I then start SupportWalletFragment: [CODE] When I click on generated Android Pay button, my onActivityResult gets correct request code, result code = 1, and data Intent has error value of 8. I don't see this error code in the WalletConstants class ( link ). What am I missing?
android-pay
0
2016-05-09T18:34:50.383Z
2,016
5
18
0
666
2
320
61
1
2
true
false
false
false
false
false
zero
37,123,084
ParseUser Android indicates user is signed in but no information can be retrieved from object
<p>I am having a Parse Starter Application on Android Studio (downloaded from the github of Parse) and I am using Heroku yo have Parse Server.</p> <p>I can add collections with no problem but with the users I am having difficulties...</p> <p>[JavaCode]</p> <pre><code>if(ParseUser.getCurrentUser() == null){ Pars...
I am having a Parse Starter Application on Android Studio (downloaded from the github of Parse) and I am using Heroku yo have Parse Server. I can add collections with no problem but with the users I am having difficulties... [JavaCode] [CODE] and in my StarterApplication file I have: [CODE] When running, my debugger pr...
java|android|heroku|parse-platform
0
2016-05-09T18:38:35.540Z
2,016
5
18
0
703
1
619
93
4
2
true
false
false
false
false
false
zero
37,123,266
ParseQueryAdapter Error
<p>I've been looking for awhile on how to fix this error but I haven't had any luck. I have an app that uses a nav drawer and pulling in a fragment with a custom list view. I'm having a error with the ParseQueryAdapter call in the Upcoming Events Fragment as well as the EventsAdapter call.</p> <p>UpcomingEvents.java</...
I've been looking for awhile on how to fix this error but I haven't had any luck. I have an app that uses a nav drawer and pulling in a fragment with a custom list view. I'm having a error with the ParseQueryAdapter call in the Upcoming Events Fragment as well as the EventsAdapter call. UpcomingEvents.java [CODE] Event...
android|android-fragments|parse-platform|parse-android-sdk
0
2016-05-09T18:50:14.040Z
2,016
5
18
0
23
0
358
23
4
3
true
true
false
false
false
false
zero
37,123,348
Ion.with() sometimes work on Android
<p>I want to get data from a server by Ion. I have this problem: just when run the project I can get data, but for other times I can not get any response. My code is:</p> <pre><code>public void GetData(final Context context, final String user_id){ Ion.with(context) .load(Url+ "/user?") .setLogging("...
I want to get data from a server by Ion. I have this problem: just when run the project I can get data, but for other times I can not get any response. My code is: [CODE] When I debug it, it does not entry onCompleted() and comes out from Getdata. On LogCat there is this: [CODE]
java|android|web-services|android-ion
0
2016-05-09T18:54:45.760Z
2,016
5
18
0
118
0
279
36
4
2
true
true
false
false
false
false
zero
37,123,455
Text not appearing in TextView boxes after inflate()
<p>I am attempting to create a dashboard that contains a textview for each message in a users queue upon login. Since the view for this will have to be dynamically built, I am inflating a layout for each number of messages in the queue; The layout has only a linearlayout with three textview elements that will change d...
I am attempting to create a dashboard that contains a textview for each message in a users queue upon login. Since the view for this will have to be dynamically built, I am inflating a layout for each number of messages in the queue; The layout has only a linearlayout with three textview elements that will change depen...
java|android|android-layout
1
2016-05-09T18:59:46.970Z
2,016
5
18
0
233
1
942
52
3
4
true
false
false
false
false
false
low
37,123,531
Date Picker reopens in wrong Edittext
<p>I've got several EditTexts in one of my Android app activities. The one for picking a date works perfectly fine, the date picker dialog shows up, you choose a date, the date is then set in that EditText, no problem. </p> <p>The problem is that when I <em>later</em> open another EditText, one in which you're just su...
I've got several EditTexts in one of my Android app activities. The one for picking a date works perfectly fine, the date picker dialog shows up, you choose a date, the date is then set in that EditText, no problem. The problem is that when I later open another EditText, one in which you're just suppose to provide some...
android|datepicker|android-edittext
0
2016-05-09T19:05:58.917Z
2,016
5
19
0
181
2
459
37
3
1
true
false
false
false
false
false
zero
37,123,564
Android App wants Access to "/Data" Folder
<p>I want to stream AAC encoded audio Data from my Raspberry to my Android Phone. The part of receiving the data works well but there are some problems with decoding it. </p> <p>I use Media Extractor and Media Codec to decode the audio data. Here is the important part of the code:</p> <pre><code>MediaExtractor extra...
I want to stream AAC encoded audio Data from my Raspberry to my Android Phone. The part of receiving the data works well but there are some problems with decoding it. I use Media Extractor and Media Codec to decode the audio data. Here is the important part of the code: [CODE] These are the error messages I receive in ...
android|android-permissions|android-mediacodec|decoder|android-debug
9
2016-05-09T19:08:08.523Z
2,016
5
19
0
1,986
0
635
42
5
2
true
true
false
false
false
false
medium
37,123,656
How I can set the correct orientation in the imageView from src
<p>in my project I try to set an image in a ScrollView. I copy the image that is portrait from my pc and paste in Android Studio but when i set the image it appears rotated 90 degrees. How can I set the image as I want? </p> <p>The image is a photo and the photo is rotated.</p> <pre><code>&lt;ScrollView android:l...
in my project I try to set an image in a ScrollView. I copy the image that is portrait from my pc and paste in Android Studio but when i set the image it appears rotated 90 degrees. How can I set the image as I want? The image is a photo and the photo is rotated. [CODE]
java|android|imageview
2
2016-05-09T19:12:54.653Z
2,016
5
19
0
74
1
270
63
3
1
true
false
false
false
false
false
low
37,123,694
Add lines to a summary notification Android
<p>I'm new to Android Development so I don't really know how do/search some things, if there is a place where my question already got answered please tell me, or if I'm trying to do something that I shouldn't, thanks.</p> <p>So my problem is that I want to create different notifications with my app and I read/want to ...
I'm new to Android Development so I don't really know how do/search some things, if there is a place where my question already got answered please tell me, or if I'm trying to do something that I shouldn't, thanks. So my problem is that I want to create different notifications with my app and I read/want to create a si...
android|push-notification|notifications
0
2016-05-09T19:15:07.533Z
2,016
5
19
0
1,424
1
1,107
43
3
1
true
false
false
false
false
false
zero
37,123,715
get current logged in users id through SELECT query
<p>Trying to run query to get <code>user_id</code> based on logged in <code>username</code>. users.php....</p> <pre><code>&lt;?php session_start(); include_once 'error.php'; class User{ private $db; private $db_table = "users"; public function __construct() { $this-&gt;db = new DbConnect(); } public function...
Trying to run query to get user_id based on logged in username . users.php.... [CODE] index.php [CODE] topics.php [CODE] created_topic.php [CODE] Android create_topic page [CODE] Everything ran fine until i added the query to get user_id from users where username = '$username'; Now in my android log i only get-- Result...
php|android|session|mysqli
-1
2016-05-09T19:16:15.233Z
2,016
5
19
0
1,876
1
405
51
4
5
true
false
false
false
false
true
negative
37,123,738
Inconsistency between Android and JavaScript Parse API
<p>I'm using <strong>Parse Server</strong> as a back end (the open source version). I have an Android application that saves an object to the server's DB. The object is simply a key-value pair. When the Android application creates an object, it creates it as JSON object. </p> <p>Now I want to retrieve the same object ...
I'm using Parse Server as a back end (the open source version). I have an Android application that saves an object to the server's DB. The object is simply a key-value pair. When the Android application creates an object, it creates it as JSON object. Now I want to retrieve the same object from an Ionic 2 app. In Ionic...
javascript|android|json|ionic2|parse-server
1
2016-05-09T19:17:34.540Z
2,016
5
19
0
43
1
1,170
54
5
0
false
false
false
false
false
false
low
37,123,973
Dynamically created TextView in FrameLayout has no width
<p>I'm trying to add a TextView in code to a framelayout. This sits above an imageview in the z order of the framelayout. The ultimate aim is to allow the creation of a screenshot from the framelayout that shows the image and the text that has been overlayed on to it. I have this working when using a textview create...
I'm trying to add a TextView in code to a framelayout. This sits above an imageview in the z order of the framelayout. The ultimate aim is to allow the creation of a screenshot from the framelayout that shows the image and the text that has been overlayed on to it. I have this working when using a textview created in x...
java|android|android-layout|layout|width
0
2016-05-09T19:31:55.860Z
2,016
5
19
0
603
2
1,170
56
5
2
true
false
false
false
false
false
zero
37,124,051
Writing ArrayList of objects to external storage
<p>I'm trying to save arraylist of objects to external storage, but I get this message:</p> <blockquote> <p>java.io.FileNotFoundException: /storage/1917-121E/Documents/chem/bazaChem.dat: open failed: ENOENT (No such file or directory).</p> </blockquote> <p>I do have permission in manifest file. Here is my code:</p>...
I'm trying to save arraylist of objects to external storage, but I get this message: java.io.FileNotFoundException: /storage/1917-121E/Documents/chem/bazaChem.dat: open failed: ENOENT (No such file or directory). I do have permission in manifest file. Here is my code: [CODE] Any idea what is the problem?
android
0
2016-05-09T19:36:18.360Z
2,016
5
19
0
483
1
305
48
1
1
true
false
false
false
false
false
zero
37,124,078
Reload Image using picasso
<p>I'm using picasso to load url image to my image view.The image will change within the same url so added a refresh button to reload the new image. any help?</p> <pre><code> protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); } @...
I'm using picasso to load url image to my image view.The image will change within the same url so added a refresh button to reload the new image. any help? [CODE] }
java|android|picasso
1
2016-05-09T19:38:33.597Z
2,016
5
19
0
1,415
1
164
26
3
1
true
false
false
false
false
false
low
37,124,103
Dynamic button creation in a relativelayout for phone and tablet
<p>I am dynamically creating buttons based on a users interaction with my app. Each time the user does some action with my app, my app received an image, it then uses the image to create an ImageButton. The button is then created and added to a relative layout "home_fragment". </p> <p><strong>Each time a button is cre...
I am dynamically creating buttons based on a users interaction with my app. Each time the user does some action with my app, my app received an image, it then uses the image to create an ImageButton. The button is then created and added to a relative layout "home_fragment". Each time a button is created I want the layo...
java|android|android-layout|button|dynamic
0
2016-05-09T19:39:50.303Z
2,016
5
19
0
46
0
1,064
64
5
1
true
true
false
false
false
false
zero
37,124,244
how get date,time for calendar from sharedpreferences
<p>this store data in sharedPreferences</p> <pre><code> SharedPreferences prefsDate = getSharedPreferences("Date", MODE_PRIVATE); SharedPreferences.Editor editor = prefsDate.edit(); editor.putString("Date", textDate.getText().toString()); editor.commit(); Shar...
this store data in sharedPreferences [CODE] here I put calendar but How I can get value for this (replace 0)? [CODE]
android-studio
1
2016-05-09T19:47:50.257Z
2,016
5
19
0
533
2
116
53
1
2
true
false
false
false
false
false
low
37,124,314
How can I call all entries in an arraylist to be displayed on a graph in MPAndroidChart?
<p>I apologize if I worded this poorly but for the sake of clarity I will explain as best I can. I'm using MPAndroidChart to draw a line graph and I followed this tutorial to get it up and running <a href="https://www.numetriclabz.com/android-line-chart-using-mpandroidchart-tutorial/#Defining_X-axis_labels" rel="nofoll...
I apologize if I worded this poorly but for the sake of clarity I will explain as best I can. I'm using MPAndroidChart to draw a line graph and I followed this tutorial to get it up and running https://www.numetriclabz.com/android-line-chart-using-mpandroidchart-tutorial/#Defining_X-axis_labels . I've made some adjustm...
java|android|arraylist|mpandroidchart
0
2016-05-09T19:52:06.897Z
2,016
5
19
0
291
0
1,364
88
4
1
true
true
false
false
false
false
zero
37,124,323
I have two methods which are nearly the same, how to refactor them?
<p>I am having two <code>DatePickerFragment</code>s because I need to pick up a start and end time.</p> <pre><code>private void showDatePickerTimePeriodStart() { final DatePickerFragment date = new DatePickerFragment(); // Sets up the current date in Dialog. final Calendar calender = Calendar.getInstance()...
I am having two DatePickerFragment s because I need to pick up a start and end time. [CODE] The Fragment(s): [CODE] And there is one more Fragment, which is the same. So it appears to me, if I set up the first Date, I need to do setCallBack , but I have two separate buttons, so to my understanding, I need another metho...
java|android|android-fragments|dry
1
2016-05-09T19:52:35.503Z
2,016
5
19
0
77
2
429
67
4
2
true
false
false
false
false
false
low
37,124,547
I was trying to add a balance system in my JAVA program, but i failed
<p>As a new programmer, I don't know how methods are really works. But when I used <code>Object</code>, can they give me any int, float or double value? And can it be used as integer, float, double!? Please help me. Thanks.</p> <pre><code>import java.util.Scanner; public class ProjectBookShop { static Scanner scan= ...
As a new programmer, I don't know how methods are really works. But when I used Object , can they give me any int, float or double value? And can it be used as integer, float, double!? Please help me. Thanks. [CODE]
java|android
-2
2016-05-09T20:06:57.653Z
2,016
5
20
0
42
2
215
69
2
1
true
false
false
false
false
true
negative
37,124,616
Android: Saving Bitmap to External Memory
<p>I'm currently working on a project of capturing an image, cropping the image, processing the image then saving the processed image. My problem lies in saving the processed image. I can't save the processed image. For every image that is captured, the captured image is being shown in the gallery instead of the proces...
I'm currently working on a project of capturing an image, cropping the image, processing the image then saving the processed image. My problem lies in saving the processed image. I can't save the processed image. For every image that is captured, the captured image is being shown in the gallery instead of the processed...
android|image|memory|save|external
0
2016-05-09T20:11:03.063Z
2,016
5
20
0
1,418
2
1,151
41
5
2
true
false
false
false
false
false
zero
37,124,634
Controlling time to restart crashed service in Android
<p>I'm trying to make a sticky service, which restarts itself after a short time after dying (for example, because Android has killed it to free the memory). (Un)fortunately I'm on Android 5.0.1 which has a beautiful bug of memory leak and makes real testing easy.</p> <p>Looking at <code>logcat</code> I see:</p> <pre...
I'm trying to make a sticky service, which restarts itself after a short time after dying (for example, because Android has killed it to free the memory). (Un)fortunately I'm on Android 5.0.1 which has a beautiful bug of memory leak and makes real testing easy. Looking at logcat I see: [CODE] later the time is rising t...
android|service
1
2016-05-09T20:12:18.340Z
2,016
5
20
0
2,207
1
1,627
54
2
3
true
false
false
false
false
false
low
37,124,686
Login doesn't work using LoginManager
<p>The facebook login is showing, I logged into facebook, confirmed the information, but when I go back to my app the AccessToken did not work. When I tested:</p> <pre><code>FacebookSdk.sdkInitialize(getApplicationContext(), new FacebookSdk.InitializeCallback() { @Override public void onInitialized() {...
The facebook login is showing, I logged into facebook, confirmed the information, but when I go back to my app the AccessToken did not work. When I tested: [CODE] the result is not logged in yet This is the code login: [CODE] But the callbackManager doesn't work, I don't have publish or cancel or error println.
android|facebook
0
2016-05-09T20:15:54.670Z
2,016
5
20
0
377
1
312
37
2
2
true
false
false
false
false
false
zero
37,124,732
Using an Android aar library in a Gluon JavaFXPorts project
<p>my question is simple enough. I am using Gluon's plugin for Eclipse and developing an application in JavaFX to run on Android. However, I need to use an Android library (.aar format) and after a while of trying, cannot. Does anybody know how I can do this? I have already tried just using the classes.jar inside the ....
my question is simple enough. I am using Gluon's plugin for Eclipse and developing an application in JavaFX to run on Android. However, I need to use an Android library (.aar format) and after a while of trying, cannot. Does anybody know how I can do this? I have already tried just using the classes.jar inside the .aar...
android|javafx|javafxports|gluon-mobile|cloudrail
2
2016-05-09T20:19:07.267Z
2,016
5
20
0
437
1
961
59
5
0
false
false
false
false
false
false
low
37,124,856
SetImageBitMap isnt working in api 23 android java
<p>im trying to upload a photo from the gallery to my app with bitmap, in my emulator(api 22) it works, but for some reason in my phone(api 23) it doesn't work the picture wont show just an empty page. here is my code if it matters:</p> <pre><code>public class Photoactivity extends Activity { private static final int...
im trying to upload a photo from the gallery to my app with bitmap, in my emulator(api 22) it works, but for some reason in my phone(api 23) it doesn't work the picture wont show just an empty page. here is my code if it matters: [CODE] }
java|android|image|upload
0
2016-05-09T20:26:59.560Z
2,016
5
20
0
610
3
238
50
4
1
true
false
false
false
false
false
zero
37,125,018
getLayoutInflater() and Fragment
<p>I am getting the error, that getLayountInflator (Bundle) cannot be used inside fragment.</p> <p>I have this JSONAdapter.java</p> <pre><code>public class JSONAdapter extends BaseAdapter{ Context mContext; LayoutInflater mInflater; JSONArray mJsonArray; public JSONAdapter(Context context, LayoutInf...
I am getting the error, that getLayountInflator (Bundle) cannot be used inside fragment. I have this JSONAdapter.java [CODE] and this layout adapter SlidingTabsBasicFragment.java [CODE] the line that is getting me the error is: [CODE] on JSONAdapter.java how can I fix it, what do I need to do
android|json|android-fragments
0
2016-05-09T20:37:28.443Z
2,016
5
20
0
1,782
1
293
32
3
3
true
false
false
false
false
false
zero
37,125,038
How to add car models in brand
<p>Here is my problem :</p> <p>I want to add some car related to his brand like :</p> <p>CADILLAC : CTS, SRX, ESCALADE.</p> <p>CHEVROLET : CAMARA, CORVETTE, VOLT.</p> <p>I want to select a brand of vehicule and access to model name into Textview like :</p> <pre><code> CADILLAC ...
Here is my problem : I want to add some car related to his brand like : CADILLAC : CTS, SRX, ESCALADE. CHEVROLET : CAMARA, CORVETTE, VOLT. I want to select a brand of vehicule and access to model name into Textview like : [CODE] What should i use ? Array ? Thanks for response EDIT : here is my actual code, it' snot for...
android
0
2016-05-09T20:39:23.950Z
2,016
5
20
0
86
2
446
30
1
3
true
false
false
false
false
false
zero
37,125,115
WebView Crashes when calling @JavascriptInterface method on Android 5.1.1
<p>I'm having an issue with Android Webview specifically on Android 5.1.1 when I try to call a @JavascriptInterface method. This only happens under these conditions:</p> <ul> <li>Android 5.1.1</li> <li>Release Build</li> </ul> <p>Because this is only happening on the release builds I tried removing Proguard completel...
I'm having an issue with Android Webview specifically on Android 5.1.1 when I try to call a @JavascriptInterface method. This only happens under these conditions: Android 5.1.1 Release Build Because this is only happening on the release builds I tried removing Proguard completely but I'm still seeing the issue. What el...
android|webview|android-webview|chromium
1
2016-05-09T20:43:46.587Z
2,016
5
20
0
376
0
474
73
4
1
true
true
false
false
false
false
low
37,125,167
Get Valid (Non-Null) Context For Android Instrumentation Test
<p>I've looked at a lot of posts and read the documentation on Android Instrumentation Tests but cannot get my code to work.</p> <p>My scenario is that I can't use a mock context object, I need a valid one.</p> <p>I have tried using:</p> <pre><code>@Before public void setUp() throws Exception { super.setUp(); ...
I've looked at a lot of posts and read the documentation on Android Instrumentation Tests but cannot get my code to work. My scenario is that I can't use a mock context object, I need a valid one. I have tried using: [CODE] But I get java.lang.RuntimeException: Could not launch activity I tried having my test extend In...
java|android|junit|mockito|android-context
0
2016-05-09T20:47:18.337Z
2,016
5
20
0
729
1
797
61
5
2
true
false
false
false
false
false
zero
37,125,355
How to Get Image URI from Image selected From gallery. Android 5.0.2?
<p>I aam new to android. Kindly provide me some help. I need the Image URI, before this i tried data.getData(); and pass it to getContentResolver().query() but data.getData(); always returned null Error is at thes lines:</p> <p>Uri SelectedImageURI = getImageUri(getApplicationContext(), SelectedImage); return ...
I aam new to android. Kindly provide me some help. I need the Image URI, before this i tried data.getData(); and pass it to getContentResolver().query() but data.getData(); always returned null Error is at thes lines: Uri SelectedImageURI = getImageUri(getApplicationContext(), SelectedImage); return Uri.parse(path); My...
java|android
-2
2016-05-09T20:59:20.070Z
2,016
5
20
0
1,447
1
359
69
2
2
true
false
false
false
false
true
negative
37,125,378
Using appcompat-v7 in a bazel build
<p>I'm trying to get started with Bazel for compiling for Android, and I'm having some problems with my app UI - specifically, if I try to have a UI, Bazel chokes.</p> <p>The main activity looks like this:</p> <pre><code>package org.mamizou.example.test import android.app.Activity; import android.support.v7.app.AppCo...
I'm trying to get started with Bazel for compiling for Android, and I'm having some problems with my app UI - specifically, if I try to have a UI, Bazel chokes. The main activity looks like this: [CODE] So according to android.developer.com , the right thing to do if I want to use appcompat-v7 is just in my android_lib...
android|android-support-library|bazel
1
2016-05-09T21:01:01.267Z
2,016
5
21
0
616
2
1,517
35
3
4
true
false
false
false
false
false
low
37,125,397
How to used datepicker dialogdragment different edittext
<p>I have DatepickerFragment which extends from DialogFragment. In my main fragment there are two edittext.The first one is for starting date and the second is for finising date. These are for some user operations.User clicks first edittext choose date and the other one is same way But i confused about how to handle ed...
I have DatepickerFragment which extends from DialogFragment. In my main fragment there are two edittext.The first one is for starting date and the second is for finising date. These are for some user operations.User clicks first edittext choose date and the other one is same way But i confused about how to handle editt...
java|android
1
2016-05-09T21:02:26Z
-1
-1
-1
-1
122
2
410
56
2
2
true
false
false
false
false
false
low
37,125,731
FragmentManager: moveToState: Fragment state for GridFragment{...} not updated inline; expected state 1 found 0
<p>I have a simple Activity and Retained Fragment, just as <a href="http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html" rel="noreferrer">Alex Lockwood blog post example</a>. </p> <p>My activity goes like this inside <code>onCreate()</code>:</p> <pre><code>FragmentManager fm = ge...
I have a simple Activity and Retained Fragment, just as Alex Lockwood blog post example . My activity goes like this inside onCreate() : [CODE] And my Fragments ' onAttach() is : [CODE] Now, on every screen rotation I've got very strange output: I/System.out: here W/FragmentManager: moveToState: Fragment state for Grid...
android|android-fragments
5
2016-05-09T21:24:17.847Z
2,016
5
21
0
9,911
2
521
111
2
2
true
false
true
false
false
false
low
37,126,226
Maintain an object reference when writing to parcel in Android
<p>I have a class that extends ResultReceiver. When I start my main activity, on the onCreate method, I call an IntentService to fetch some data from the internet.</p> <p>Since I need the service to pass Movie objects to the main activity, I need to instantiate the ResultReceiver in the activity and pass it to the ser...
I have a class that extends ResultReceiver. When I start my main activity, on the onCreate method, I call an IntentService to fetch some data from the internet. Since I need the service to pass Movie objects to the main activity, I need to instantiate the ResultReceiver in the activity and pass it to the service. [CODE...
android|android-intent|parcelable|intentservice|parcel
1
2016-05-09T22:08:12.483Z
2,016
5
22
0
631
1
604
62
5
1
true
false
false
false
false
false
low
37,126,306
activityButton.setOnClickListener in android studio
<p>I really really hate to post this because I have seen sooooo many similar post but I have sincerely gone through post after post...google search after google search and nothing really seems to answer my question. Please excuse my ignorance.</p> <p>I'm going through a Sams Teach yourself android application developm...
I really really hate to post this because I have seen sooooo many similar post but I have sincerely gone through post after post...google search after google search and nothing really seems to answer my question. Please excuse my ignorance. I'm going through a Sams Teach yourself android application development book an...
android
0
2016-05-09T22:15:49.850Z
2,016
5
22
0
2,507
1
916
51
1
1
true
false
false
false
false
false
zero
37,126,386
Xamarin support libraries version confusion
<p>I'm trying to build a project using Navigation View that relies on Support v4 and v7 and Design, I already installed v23.0.1 and I also installed Android Support Repository v30 from SDK Manager which seems to have plenty of older version named folders, everything works perfectly in Android Studio, I use Navigation D...
I'm trying to build a project using Navigation View that relies on Support v4 and v7 and Design, I already installed v23.0.1 and I also installed Android Support Repository v30 from SDK Manager which seems to have plenty of older version named folders, everything works perfectly in Android Studio, I use Navigation Draw...
android|xamarin|xamarin.android
0
2016-05-09T22:22:46.847Z
2,016
5
22
0
137
4
955
43
3
0
false
false
false
false
false
false
zero
37,126,443
Fragment not replacing parent activity's container layout
<p>I have an activity in my android app, in which i have placed a RecyclerView Widget inside a Frame Layout. The Frame Layout is acting as the Parent Container.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_wid...
I have an activity in my android app, in which i have placed a RecyclerView Widget inside a Frame Layout. The Frame Layout is acting as the Parent Container. [CODE] This is my code for instantiating the RecyclerView in my activity. [CODE] This activity contains a navigation drawer, from which i load different fragments...
java|android|android-layout|android-fragments
0
2016-05-09T22:28:36.377Z
2,016
5
22
0
1,429
1
855
57
4
4
true
false
false
false
false
false
zero
37,126,625
Action bar missing when using TabLayout
<p>I've implemented TabLayout from the support library, but it overwrites the ActionBar that i need.</p> <p><img src="https://i.sli.mg/1xf9ya.png" alt="Layout"></p> <p>This is the activity that sets it up and inflates the tabs and loads the fragment for the tab.</p> <pre><code> public class TabsActivity extends andr...
I've implemented TabLayout from the support library, but it overwrites the ActionBar that i need. This is the activity that sets it up and inflates the tabs and loads the fragment for the tab. [CODE] and the xml is just the view pager and tab layout [CODE] and an example of fragments code which is more or less the same...
java|android|xml
0
2016-05-09T22:46:28.880Z
2,016
5
22
0
399
1
352
39
3
3
true
false
false
false
false
false
zero
37,126,886
Connecting android studio project to Parse without Parse SDK file
<p><a href="https://www.parse.com/apps/quickstart#parse_data/mobile/android/native/new" rel="nofollow">https://www.parse.com/apps/quickstart#parse_data/mobile/android/native/new</a></p> <p>I am able to connect an application to parse by following the instructions on the parse website. But when I download the sdk and o...
https://www.parse.com/apps/quickstart#parse_data/mobile/android/native/new I am able to connect an application to parse by following the instructions on the parse website. But when I download the sdk and open it, the apps MainActivity is an "Empty Activity". I want my app to have a different activity for the MainActivi...
java|android|android-studio|parse-platform
0
2016-05-09T23:15:10.343Z
2,016
5
23
0
291
1
1,025
65
4
0
false
false
false
false
false
false
zero
37,126,912
Why does my App start incredibly slow (10s+) at first run, showing only white screen on android 5.0?
<p>I have a freshly created app (built in android studio 2.0), having a few activities.</p> <p>When I test it on my Android 4.3 (note 2) device it starts nicely and fast after a clean install, in turn the same app on my samsung galaxy S4 with android 5.0, hangs for about 10-15 seconds while showing a white screen only...
I have a freshly created app (built in android studio 2.0), having a few activities. When I test it on my Android 4.3 (note 2) device it starts nicely and fast after a clean install, in turn the same app on my samsung galaxy S4 with android 5.0, hangs for about 10-15 seconds while showing a white screen only. To be sur...
android|performance|android-studio|android-gradle-plugin|android-5.0-lollipop
11
2016-05-09T23:18:45.237Z
2,016
5
23
0
11,001
2
700
100
5
3
true
false
true
false
true
false
medium
37,127,015
How to specify sourceCompatibility compile options when using the Android Gradle Experimental plugin
<p>I'm currently using the Android Gradle Experimental plugin in one of my apps and I would like to be able to use the <a href="https://github.com/evant/gradle-retrolambda" rel="noreferrer">retrolambda</a> library. One of the requirements is to specify some compileOptions. In the normal android build plugin, this wor...
I'm currently using the Android Gradle Experimental plugin in one of my apps and I would like to be able to use the retrolambda library. One of the requirements is to specify some compileOptions. In the normal android build plugin, this works: [CODE] For the new Experimental plugin, I added this under model.android: [C...
android|android-gradle-plugin|gradle-experimental|retrolambda
7
2016-05-09T23:29:50.843Z
2,016
5
23
0
10,819
1
498
100
4
3
true
false
true
false
false
false
medium
37,127,057
JSON org.json.JSONException: No value for "NAME"
<p>I am getting an error while trying to get information from a JSON file. I am trying to get the data from the 'post', such as 'NAME', 'YEAR' etc and print it to the log. It keeps telling me <code>org.json.JSONException: No value for NAME</code>. Can someone point me in the right direction?</p> <p>JSON Example:</p> ...
I am getting an error while trying to get information from a JSON file. I am trying to get the data from the 'post', such as 'NAME', 'YEAR' etc and print it to the log. It keeps telling me org.json.JSONException: No value for NAME . Can someone point me in the right direction? JSON Example: [CODE] Here is my Java: [COD...
android|arrays|json
0
2016-05-09T23:34:31.140Z
2,016
5
23
0
529
1
359
48
3
3
true
false
false
false
false
false
zero
37,127,114
Android Layout with buttons and check boxes
<p>Have a minor formatting problem. Any help appreciated! Currently I am displaying this:</p> <p><a href="https://i.stack.imgur.com/jte8b.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jte8b.jpg" alt="enter image description here"></a></p> <p>But I want this:</p> <p><a href="https://i.stack.imgur...
Have a minor formatting problem. Any help appreciated! Currently I am displaying this: But I want this: (Sorry for the small images, something is messing up when I try to add them) I'm guessing I need to do another linear or relative layout but had no success in trying... The XML: [CODE]
android|layout
0
2016-05-09T23:41:04.433Z
2,016
5
23
0
32
2
288
43
2
1
true
false
false
false
false
false
zero
37,127,120
Android studio shuts down after opening XML file
<p>I have a problem with adroid studio:</p> <ul> <li><p>It shuts down everytime I open tab with .xml file (both when I open<br> it in text or design mode)</p></li> <li><p>It works perfectly when i'm working on .java tabs</p></li> <li><p>I noticed it today, I've not been working on xml for 2 days, and 2 days ago everyt...
I have a problem with adroid studio: It shuts down everytime I open tab with .xml file (both when I open it in text or design mode) It works perfectly when i'm working on .java tabs I noticed it today, I've not been working on xml for 2 days, and 2 days ago everything was just fine. Also didn't make any updates since t...
android-studio
1
2016-05-09T23:41:32.890Z
2,016
5
23
0
363
1
843
48
1
0
false
false
false
false
false
false
low
37,127,215
Android: ListView column sizing to first item
<p>I have a ListView inside of a HorizontalScrollView which I'm using as a small panel overlaying a fragment. It all would work as expected if the longest item were the top item. When the shortest is, the ListView's width takes on the width of that item and then there's no horizontal scrolling. The rest of the items...
I have a ListView inside of a HorizontalScrollView which I'm using as a small panel overlaying a fragment. It all would work as expected if the longest item were the top item. When the shortest is, the ListView's width takes on the width of that item and then there's no horizontal scrolling. The rest of the items are j...
android|css|listview
1
2016-05-09T23:55:10.820Z
2,016
5
23
0
26
0
647
45
3
1
true
true
false
false
false
false
low
37,127,310
android calculator buttons doesnt work
<p>I'm trying to make a basic android calculator. when i press button numbers show at edittext but nothing's happining. Thanks for any help.</p> <p>here is my MainActivity.java` public class MainActivity extends AppCompatActivity {</p> <pre><code>private EditText Scr; private float NumerBf; private String Operation; ...
I'm trying to make a basic android calculator. when i press button numbers show at edittext but nothing's happining. Thanks for any help. here is my MainActivity.java` public class MainActivity extends AppCompatActivity { [CODE] ` and here is my content_main.xml` [CODE] `
java|android|calculator
1
2016-05-10T00:07:28.683Z
2,016
5
0
1
144
1
272
38
3
2
true
false
false
false
false
false
low
37,127,318
ndk - Experimental Gradle - How to add local LDLibs?
<p>My project has some prebuilt libraries and jni sources. Building them with the following Android.mk works fine.</p> <pre><code>LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := arcade LOCAL_C_INCLUDES += $(LOCAL_PATH)/include LOCAL_SRC_FILES := torchdemo.cpp torchandroid.cpp android_fopen.c LO...
My project has some prebuilt libraries and jni sources. Building them with the following Android.mk works fine. [CODE] This is my build.gradle [CODE] Building with gradle results in linker errors with undefined references as gradle is not adding the prebuilt libraries.How to add the ldlibs flag to local prebuilt librar...
android|gradle|android-ndk|gradle-plugin
2
2016-05-10T00:08:29.697Z
2,016
5
0
1
933
0
335
52
4
2
true
true
false
false
false
false
low
37,127,341
Do I have to make a new activity to use a settings fragment?
<p>I'm following the preference fragment solution in this page <a href="https://developer.android.com/guide/topics/ui/settings.html" rel="nofollow">https://developer.android.com/guide/topics/ui/settings.html</a> </p> <p>Here is the code used:</p> <pre><code>public static class SettingsFragment extends PreferenceFragm...
I'm following the preference fragment solution in this page https://developer.android.com/guide/topics/ui/settings.html Here is the code used: [CODE] This solution works but before I did this I tried something different. At first, I tried opening the Settings without using SettingsActivity. I wanted to switch the my ma...
android|android-fragments
2
2016-05-10T00:10:37.413Z
2,016
5
0
1
1,117
1
773
60
2
3
true
false
false
false
false
false
low
37,127,346
why my texture is not smooth?
<p>I want to show some object over the video preview. Let say it is a glass. The png picture of this item is qualitative image 1024x1024. I am using a mask to achive the result. (Where mask is a binary image of an object)</p> <p>I load texture in this way:</p> <pre><code>public static int loadTexture(final Context co...
I want to show some object over the video preview. Let say it is a glass. The png picture of this item is qualitative image 1024x1024. I am using a mask to achive the result. (Where mask is a binary image of an object) I load texture in this way: [CODE] Here is my fragment shader [CODE] Image 1 (Nice looking smooth gla...
android|shader|opengl-es-2.0|texture2d
2
2016-05-10T00:11:39.237Z
2,016
5
0
1
242
0
394
29
4
2
true
true
false
false
false
false
low
37,127,363
Should SQLiteOpenHelper methods accept objects or IDs?
<p>This might be more of a style / standards / practices question, but which of the following is the better way and why:</p> <pre><code>public long insertSomething(MyAccount account, Employee employee, double rating) { ContentValues values = new ContentValues(); values.put(ACCOUNT_ID, account.getId()); val...
This might be more of a style / standards / practices question, but which of the following is the better way and why: [CODE] This is basically accepting objects and then using their IDs inside the method to perform the query. Or: [CODE] Is there a reason to do one or the other? I am unsure which approach I should be go...
java|android|sqlite|standards
1
2016-05-10T00:14:21.170Z
2,016
5
0
1
29
2
329
54
4
2
true
false
false
false
false
false
low
37,127,429
Play Video Using External Media Player in Android
<p>Well, I've used <code>VideoView</code> to play my Video. It only support .mp4 format(Correct me if I'm wrong), I need to play .flv video. I've MX Player/VLC player installed on my Android phone. How do I load the list of available Media Players when I click <code>Play Video</code> Button in my Activity.</p> <p>Bel...
Well, I've used VideoView to play my Video. It only support .mp4 format(Correct me if I'm wrong), I need to play .flv video. I've MX Player/VLC player installed on my Android phone. How do I load the list of available Media Players when I click Play Video Button in my Activity. Below is the code I've written using Vide...
java|android|video|media-player
3
2016-05-10T00:22:50.507Z
2,016
5
0
1
3,791
1
346
49
4
1
true
false
true
false
false
false
low
37,127,446
Project Tango Raw Data (IMU and RGBD)
<p>I'm a beginner in android and with the Tango (I just wanted to say it to prevent possible mistakes) and I'm using the Project Tango Tablet (Yellowstone). I want to do slam with it, that's why I want to get the raw data.</p> <p>Currently I know how to get poseData and cloud of point. I read that it was not possible ...
I'm a beginner in android and with the Tango (I just wanted to say it to prevent possible mistakes) and I'm using the Project Tango Tablet (Yellowstone). I want to do slam with it, that's why I want to get the raw data. Currently I know how to get poseData and cloud of point. I read that it was not possible to get IMU ...
android|rgb|google-project-tango|raw-data|tango
0
2016-05-10T00:25:27.710Z
2,016
5
0
1
1,093
2
1,102
37
5
0
false
false
false
false
false
false
zero
37,127,450
Test code not being compiled and treated as non-test
<p>I have some Android instrumentation tests with a custom test runner that all seemed to work fine until at some point after I upgraded to Android Studio 2.1, bumped up some library versions, and did some other things over time. Now, my tests don't run anymore with the dreaded <code>Unable to find instrumentation info...
I have some Android instrumentation tests with a custom test runner that all seemed to work fine until at some point after I upgraded to Android Studio 2.1, bumped up some library versions, and did some other things over time. Now, my tests don't run anymore with the dreaded Unable to find instrumentation info for: Com...
android|android-studio|android-testing
4
2016-05-10T00:26:33.103Z
2,016
5
0
1
526
1
1,648
52
3
2
true
false
false
false
false
false
low
37,127,464
Realm RealmResults<E> no longer sorts my data in-place
<p>I have a <code>RealmResults&lt;Post&gt; mPosts</code> object that holds a user's feed in a social media app. Whenever that user used to create new posts, the post would automatically get added to the beginning of the list -- because its date would be the latest and the results were ordered in DESC order. Now, when a...
I have a RealmResults<Post> mPosts object that holds a user's feed in a social media app. Whenever that user used to create new posts, the post would automatically get added to the beginning of the list -- because its date would be the latest and the results were ordered in DESC order. Now, when a user creates a new po...
java|android|realm
3
2016-05-10T00:28:04.963Z
2,016
5
0
1
532
1
1,417
54
3
0
false
false
false
false
false
false
low
37,127,499
AlertDialog showing multiple Dialogs on top of each other?
<p>I have this method in my GPSTracker:</p> <pre><code>public void showSettingsAlert() { final AlertDialog.Builder alertDialog = new AlertDialog.Builder(myContext); // Setting Dialog Title alertDialog.setTitle("GPS Settings"); // Setting Dialog Message alertDialog.setMessage("GPS is not enabled. ...
I have this method in my GPSTracker: [CODE] When I am running it, I keep getting like 10 dialogs at once on top of each other, so basically I can then press 10times cancel or something like that, how do I fix it? I read about [CODE] But that didnt work for me, I am still getting multiple dialogs over each other... Can ...
android|dialog|gps|android-alertdialog
3
2016-05-10T00:33:12.713Z
2,016
5
0
1
1,471
2
438
58
4
3
true
false
false
false
false
false
low