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,127,567 | How do I use Android data binding to populate a list? | <p>I can get POJOs out of my ORM (Cupboard), but I can't figure out how to write the xml to bind to such a list. All the examples are singular except for <a href="https://developer.android.com/tools/data-binding/guide.html#binding_data" rel="nofollow">a very brief mention of using them inside a ListView or RecyclerView... | I can get POJOs out of my ORM (Cupboard), but I can't figure out how to write the xml to bind to such a list. All the examples are singular except for a very brief mention of using them inside a ListView or RecyclerView . So I've tried having a singular binding in an xml file that I "inflate" again for each item. That ... | java|android|mvvm|android-xml|android-databinding | 5 | 2016-05-10T00:44:59.803Z | 2,016 | 5 | 0 | 1 | 1,237 | 0 | 992 | 53 | 5 | 2 | true | true | false | false | false | false | low |
37,127,572 | How to add reusable logic to classes already extending another? | <p>I have multiple views extending Android framework classes :</p>
<pre><code>class A extends ImageView // ImageView extends android.View
class B extends TextView //TextView extends android.View
class C extends LinearLayout //LinearLayout extends android.ViewGroup which extends android.View
</code></pre... | I have multiple views extending Android framework classes : [CODE] I have an operation which can be applied to android.view [CODE] The method above is an over-simplified version of one of such methods. The important part is : All views should have a notifyError() method The code in notifyError is the exactly same for a... | java|android|design-patterns | 1 | 2016-05-10T00:45:41.470Z | 2,016 | 5 | 0 | 1 | 202 | 2 | 1,334 | 63 | 3 | 3 | true | false | false | false | false | false | low |
37,127,594 | Why framentTransaction.commit doesn't work? | <p>I'm trying to change the content of my content_navegacao.xml using fragments, but the commit appears to be not functional.</p>
<p>I created a project with a empty activity layout, after i created a navigation drawer activity and i'm trying to change the content of my fragment inside the navigation drawer layout. My... | I'm trying to change the content of my content_navegacao.xml using fragments, but the commit appears to be not functional. I created a project with a empty activity layout, after i created a navigation drawer activity and i'm trying to change the content of my fragment inside the navigation drawer layout. My transactio... | android|android-fragments | 0 | 2016-05-10T00:48:52.070Z | 2,016 | 5 | 0 | 1 | 61 | 1 | 838 | 43 | 2 | 4 | true | false | false | false | false | false | zero |
37,127,660 | Cordova Wrapper App Where Internal Links Load In App, External Links Load In Browser | <p>I have a simple <a href="https://cordova.apache.org/" rel="nofollow noreferrer">Cordova</a> wrapper app which points to an external webpage, without defining any of its own views.</p>
<p>I would like <em>all internal links from that domain to be loaded inside the app</em>, but <em>all external links (<a href="http:... | I have a simple Cordova wrapper app which points to an external webpage, without defining any of its own views. I would like all internal links from that domain to be loaded inside the app , but all external links ( http://twitter.com , etc) to be loaded in the system browser , so the pages have Back / Forward function... | javascript|android|ios|cordova|ionic-framework | 12 | 2016-05-10T00:58:43.427Z | 2,016 | 5 | 0 | 1 | 1,915 | 1 | 1,291 | 84 | 5 | 2 | true | false | false | false | true | false | medium |
37,128,093 | get error when Capture image and take from library to graysclae | <p>I want to make the input image to grayscale . there is some error . can you help me?</p>
<pre><code>public class signindua extends AppCompatActivity {
int REQUEST_CAMERA = 0, SELECT_FILE = 1;
Button btnSelect;
ImageView imageView;
Bitmap bmNormal, bmGrayScale, bm, bitmap_Source;
// ImageView ivImage;
//layout dar... | I want to make the input image to grayscale . there is some error . can you help me? [CODE] | java|android|image-processing|capture|grayscale | 1 | 2016-05-10T01:57:31.933Z | 2,016 | 5 | 1 | 1 | 34 | 0 | 91 | 63 | 5 | 1 | true | true | false | false | false | false | low |
37,128,151 | Hashmap Object Parsing String into long or int | <p>I am trying to populate a ListView with an Object. I am getting an error</p>
<p>"java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long"</p>
<p>The data that I am pulling out of my web database is a String and its trying to place it into a long. I understand why I get the error and where I... | I am trying to populate a ListView with an Object. I am getting an error "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long" The data that I am pulling out of my web database is a String and its trying to place it into a long. I understand why I get the error and where I'm getting the erro... | android|android-studio|hashmap | 0 | 2016-05-10T02:04:22.203Z | 2,016 | 5 | 2 | 1 | 1,183 | 2 | 981 | 46 | 3 | 3 | true | false | false | false | false | false | zero |
37,128,175 | java.util.zip.ZipException with spongycastle LICENSE.class | <p>I am trying to include two different 3rd party libs that both seem to include different versions of Spongy castle. Both are included via compile statements in my build.gradle and one is included as an AAR (<code>@aar</code>) while the other is included as normal.</p>
<p>When I try to compile the debug buildType wit... | I am trying to include two different 3rd party libs that both seem to include different versions of Spongy castle. Both are included via compile statements in my build.gradle and one is included as an AAR ( @aar ) while the other is included as normal. When I try to compile the debug buildType with these 2 libs (sync d... | android|android-studio|android-gradle-plugin|build.gradle | 5 | 2016-05-10T02:08:17.940Z | 2,016 | 5 | 2 | 1 | 811 | 1 | 840 | 58 | 4 | 1 | true | false | false | false | false | false | low |
37,128,243 | NullPointerException come out into onPostExecute Method | <pre><code>public class MainFragment extends Fragment {
//private poster_adapter movieInfos;
private ArrayAdapter<MovieInfo> movieInfos;
private String LOG_TAG = MainFragment.class.getSimpleName();
public MainFragment() {
}
@Override
public void onStart() {
super.onStart();
FetchMovieInfo update = ne... | [CODE] } Here is code. When i was debugging,NullPointerException will come out as soon as i step into onPostExecute method. I want to put some path string into my movie info adapter. And when i was debugging,it will stop at some other libraries instead of code i wrote. | java|android | 0 | 2016-05-10T02:17:06.593Z | 2,016 | 5 | 2 | 1 | 52 | 2 | 269 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
37,128,244 | Why aren't my foreign keys working? | <p>My create table statement:</p>
<pre><code>CREATE TABLE main_table (
_ID INTEGER PRIMARY KEY AUTOINCREMENT,
account_id INTEGER NOT NULL,
employee_id INTEGER NOT NULL,
rating REAL NOT NULL,
timestamp LONG NOT NULL,
FOREIGN KEY(account_id) REFERENCES ACCOUNTS(_ID),
FOREIGN KEY(employee... | My create table statement: [CODE] However now if I do something like [CODE] Which is basically DELETE FROM ACCOUNTS WHERE _ID = some_id but it isn't cascading through the other tables (employees or main_table) and deleting any records there that link up through the foreign keys. I do have this code as well: [CODE] Am I... | java|android|sqlite|foreign-keys | 0 | 2016-05-10T02:17:14.633Z | 2,016 | 5 | 2 | 1 | 51 | 1 | 415 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
37,128,246 | Upload file with Retrofit 2 | <p>I trying to do that a few days, and I really did everything..
Here is how request looks in Postman:
<a href="https://i.stack.imgur.com/6bEWf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6bEWf.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.com/lNxSh.png" rel=... | I trying to do that a few days, and I really did everything.. Here is how request looks in Postman: I am sure, that all GET parameters were writing correctly. The problem in how I sending a file to upload, I suppose. [CODE] Interface: [CODE] Could anyone help me ? | android|file-upload|retrofit|retrofit2 | 2 | 2016-05-10T02:17:42.690Z | 2,016 | 5 | 2 | 1 | 2,622 | 2 | 264 | 27 | 4 | 2 | true | false | true | false | false | false | low |
37,128,255 | Creating id for Android Views | <p>This question is quite basic. Let me go with an example.
I have two activities</p>
<blockquote>
<ul>
<li><p>activity_a.xml</p>
</li>
<li><p>ActivityA.java</p>
</li>
<li><p>activity_b.xml</p>
</li>
<li><p>ActivityB.java</p>
</li>
</ul>
</blockquote>
<p>Both the XML files contain only a TextView to display a simple te... | This question is quite basic. Let me go with an example. I have two activities activity_a.xml ActivityA.java activity_b.xml ActivityB.java Both the XML files contain only a TextView to display a simple text. As usual, the TextViews are going to be referenced in the corresponding .java files using their View id My quest... | android | -5 | 2016-05-10T02:19:26.970Z | 2,016 | 5 | 2 | 1 | 76 | 4 | 904 | 29 | 1 | 1 | true | false | false | false | false | true | negative |
37,128,374 | Autocomplete TextView in Fragment with PageAdapter | <p>I'm trying to autocomplete the text of a TextView Autocomplete from a SQLite database but when income telTrans.setAdapter (adapter) tabs are blank.
The FragmentPageAdapter code is</p>
<pre><code>public class SectionsPagerAdapter extends FragmentPagerAdapter {
final int NUM_ITEMS = 4;
public SectionsPagerA... | I'm trying to autocomplete the text of a TextView Autocomplete from a SQLite database but when income telTrans.setAdapter (adapter) tabs are blank. The FragmentPageAdapter code is [CODE] And the Fragment code is [CODE] The access to the database has no problem. When I comment telTrans.setAdapter(adapter), the tabs work... | android|sqlite|android-fragments|android-sqlite|autocompletetextview | 1 | 2016-05-10T02:34:04.153Z | 2,016 | 5 | 2 | 1 | 349 | 0 | 366 | 50 | 5 | 3 | true | true | false | false | false | false | low |
37,128,489 | My color in XML not reflecting in actual layout | <p>My XML Looks like this,</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:back... | My XML Looks like this, [CODE] And my screen was supposed to look like this . But my actual screen in device looks like this , so can anyone suggest what is going wrong with my program? P.S. the colors were working perfectly fine earlier. | android|xml|colors|android-cardview | 0 | 2016-05-10T02:50:31.173Z | 2,016 | 5 | 2 | 1 | 86 | 3 | 238 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
37,128,564 | LinearLayout was covered by AppBarLayout | <p>My <code>haha.xml</code> layout was covered by <code>android.support.design.widget.AppBarLayout</code>, how can i make the button on the <code>haha.xml</code> just appear under the AppBarLayout?
<a href="https://i.stack.imgur.com/49wDz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/49wDz.png" al... | My haha.xml layout was covered by android.support.design.widget.AppBarLayout , how can i make the button on the haha.xml just appear under the AppBarLayout? only haha.xml layout PS: activity_main.xml [CODE] haha.xml [CODE] | android | 1 | 2016-05-10T03:01:40.983Z | 2,016 | 5 | 3 | 1 | 1,207 | 2 | 222 | 40 | 1 | 2 | true | false | false | false | false | false | low |
37,128,747 | val$context error in implement class | <p>Here is my code</p>
<pre><code>import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.a... | Here is my code [CODE] I want to show Dialog then when click ok button I want to run a new class InstallFont . But that show error at val$context. How should I do or fix this error.Please help me. here is my Picture | java|android | 1 | 2016-05-10T03:26:54.077Z | 2,016 | 5 | 3 | 1 | 89 | 0 | 215 | 36 | 2 | 1 | true | true | false | false | false | false | low |
37,128,819 | How android span act on input characters in EditText | <p>I want to implement a effect that control input characters in edittext whether use span.</p>
<p>For example, in EditText can use</p>
<pre><code>getEditableText().setSpan(new StyleSpan(Typeface.NORMAL), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
</code></pre>
<p>make selected characters be <strong>BOLD</strong>.Is T... | I want to implement a effect that control input characters in edittext whether use span. For example, in EditText can use [CODE] make selected characters be BOLD .Is There have solutions that when user enable Bold setting, every character input since then will be bold, and once user disable Bold setting, characters inp... | android|html|spannablestring|richedit|spannable | 2 | 2016-05-10T03:33:22.157Z | 2,016 | 5 | 3 | 1 | 1,537 | 2 | 932 | 52 | 5 | 2 | true | false | false | false | false | false | low |
37,128,907 | professor's research student gave JSON data which is not structured correctly as a JSON array of users | <pre><code>Exception in thread "main" java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1431)
at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
at DataParse.parseFeed(DataParse.java:61)
at intellidealsbackend.main(intellibackend.java:25)
</code></pre>
<p>Here is how the JS... | [CODE] Here is how the JSONObject looks which I am trying to parse: [CODE] This is my implementation of the parser: [CODE] } I have been trying to debug it. When the iterator hits a null or a value not present in visited node it throws NoSuchElementException even though I have checking condition in place the code still... | java|android|json|getjson | -1 | 2016-05-10T03:42:23.187Z | 2,016 | 5 | 3 | 1 | 224 | 3 | 542 | 102 | 4 | 3 | true | false | false | false | false | true | negative |
37,129,171 | private broadcast sender and receiver permissions | <p>I recently did a code scan on my Android source code using HPFortify service. They reported security vulnerability regarding one of the broadcast receivers and sender. The broadcast sender and receiver are internal to the app and the intent is not sent outside the application. These are mainly used for internal comm... | I recently did a code scan on my Android source code using HPFortify service. They reported security vulnerability regarding one of the broadcast receivers and sender. The broadcast sender and receiver are internal to the app and the intent is not sent outside the application. These are mainly used for internal communi... | android|android-permissions|android-broadcast|android-broadcastreceiver | 2 | 2016-05-10T04:16:24.703Z | 2,016 | 5 | 4 | 1 | 2,029 | 2 | 1,229 | 49 | 4 | 4 | true | false | false | false | false | false | low |
37,129,183 | startActivityForResult in fragment | <p>I have two problem: </p>
<p>First: i wonder know the diffirent in 2 method cuz when i use method 1 my app run ok, but i change method 2 it cant run..
Method 1(Take photo simple) :</p>
<pre><code> private void takePhoto() {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
Log.d(TAG... | I have two problem: First: i wonder know the diffirent in 2 method cuz when i use method 1 my app run ok, but i change method 2 it cant run.. Method 1(Take photo simple) : [CODE] And Method 2: [CODE] ---onActivityResult of camera fragment: [CODE] Main problem :Now i have MainFragment extend FragmentActivity ( have frag... | android|fragment|onactivityresult|startactivityforresult | 3 | 2016-05-10T04:17:44.113Z | 2,016 | 5 | 4 | 1 | 1,672 | 1 | 555 | 34 | 4 | 5 | true | false | false | false | false | false | low |
37,129,200 | How to make text visible and gone on Button click event | <p>This is my Xml code where i ve 2 buttons up arrow and down arrow i want to display below content when down arrow is clicked gone otherwise i tried </p>
<pre><code>lin1.setVisibility(View.VISIBLE);
</code></pre>
<p>in my code bt it doesnt work ..Can someone help me with this...?</p>
<p>Thanks in advance</p>
<pre>... | This is my Xml code where i ve 2 buttons up arrow and down arrow i want to display below content when down arrow is clicked gone otherwise i tried [CODE] in my code bt it doesnt work ..Can someone help me with this...? Thanks in advance [CODE] PersonalDetails.java [CODE] | android|visibility | -3 | 2016-05-10T04:19:50.810Z | 2,016 | 5 | 4 | 1 | 935 | 4 | 271 | 55 | 2 | 3 | true | false | false | false | false | true | negative |
37,129,224 | Retrieving SharedPreferences Values not working. Any ideas what I'm doing wrong? | <p>Here's where I store values into SharedPreferences in one activity:</p>
<pre><code> sharedPref = context.getSharedPreferences("sharedPref", Context.MODE_PRIVATE);
String firstPlace = new String("1");
String secondPlace = new String("2");
String thirdPlace = new String("3");
e... | Here's where I store values into SharedPreferences in one activity: [CODE] And try to retrieve them in another activity. However, the retrieve doesn't seem to be getting the values I put in and is just using the defaults (so "1st Place: " "2nd Place: " and "3rd Place: " end up with a 'no' next to them). [CODE] | android|sharedpreferences | 0 | 2016-05-10T04:22:19.990Z | 2,016 | 5 | 4 | 1 | 89 | 3 | 311 | 80 | 2 | 2 | true | false | false | false | false | false | zero |
37,129,237 | Unable to get current location Google Map Android | <p>I know this question is similar to other question but i am unable to understand the procedure of getting my location in google map. I have tried lots of tutorials but i think i am missing something.</p>
<p><strong>I am using the following code in my main class :</strong></p>
<pre><code> LocationManager locationMan... | I know this question is similar to other question but i am unable to understand the procedure of getting my location in google map. I have tried lots of tutorials but i think i am missing something. I am using the following code in my main class : [CODE] | android|google-maps | 0 | 2016-05-10T04:23:27.237Z | 2,016 | 5 | 4 | 1 | 215 | 2 | 254 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
37,129,254 | Calling MediaRecorder crashes app in AndroidStudio | <p>I am trying to create a class that sets and starts audio recording but as soon as I click the button the app crashes. Iv isolated the problem to where I set the parameters for the MediRecorder. </p>
<pre><code>private void startRec() throws IOException {
if (mrecorder!=null)
mrecorder.release();
mr... | I am trying to create a class that sets and starts audio recording but as soon as I click the button the app crashes. Iv isolated the problem to where I set the parameters for the MediRecorder. [CODE] It crashes when the line with the arrow above the start of the notes is executed. I added the following permission to t... | java|android|android-studio|sdk | 4 | 2016-05-10T04:24:47.633Z | 2,016 | 5 | 4 | 1 | 1,596 | 1 | 2,503 | 50 | 4 | 2 | true | false | false | false | false | false | low |
37,129,426 | wrap_content leaving extra white space at bottom of screen for ViewPager | <p><a href="http://i.stack.imgur.com/jK3BZ.png" rel="nofollow">enter image description here</a> </p>
<p><code>Wrap_content</code> inside 2nd <code>linearlayout</code> leaving the extra white space at bottom of screen but if give hardcoded value it's working fine. any issue with <code>wrap_content</code> ? Here ... | enter image description here Wrap_content inside 2nd linearlayout leaving the extra white space at bottom of screen but if give hardcoded value it's working fine. any issue with wrap_content ? Here I am using this .xml on viewPager anyone have idea about this issue. [CODE] | android|android-layout|android-viewpager | 0 | 2016-05-10T04:43:58.537Z | 2,016 | 5 | 4 | 1 | 1,522 | 3 | 273 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
37,129,757 | Glide with okhttp3 integration java.lang.NoClassDefFoundError | <p>I am using okhttp3 with glide so I have added the integration part as well.</p>
<pre><code>compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.github.bumptech.glide:okhttp-integration:1.4.0@aar'
</code></pre>
<p>I have even enabled multidex support using </p>
<... | I am using okhttp3 with glide so I have added the integration part as well. [CODE] I have even enabled multidex support using [CODE] and adding this to application class [CODE] Here is full stack trace - [CODE] this is config for build [CODE] I could not figure out what's wrong with dex process. EDIT Everything works g... | android|android-glide|okhttp | 7 | 2016-05-10T05:12:47.240Z | 2,016 | 5 | 5 | 1 | 5,771 | 1 | 393 | 61 | 3 | 6 | true | false | true | false | false | false | medium |
37,129,894 | How do I create this XML programatically from my Activity? | <p>So I know how to create each or all of these elements programatically but I am not sure how to place these LinearLayouts with weights etc, can someone perhaps help me a bit with generating the following XML programatically?</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
... | So I know how to create each or all of these elements programatically but I am not sure how to place these LinearLayouts with weights etc, can someone perhaps help me a bit with generating the following XML programatically? [CODE] Thanks, Wihan | android|xml | 0 | 2016-05-10T05:25:10.830Z | 2,016 | 5 | 5 | 1 | 65 | 4 | 244 | 58 | 2 | 1 | true | false | false | false | false | false | zero |
37,129,956 | Radio OK Button Click | <p>How to get value from selected RadioButton when I click OK button? I want to work RadioButton function when I click OK button. NOT isChecked() function. This is my Custom RadioButton Dialog Code.</p>
<pre><code>txt_language.setOnClickListener(new View.OnClickListener() {
@Override
public voi... | How to get value from selected RadioButton when I click OK button? I want to work RadioButton function when I click OK button. NOT isChecked() function. This is my Custom RadioButton Dialog Code. [CODE] | android|dialog | -2 | 2016-05-10T05:30:27.077Z | 2,016 | 5 | 5 | 1 | 128 | 1 | 202 | 21 | 2 | 1 | true | false | false | false | false | true | negative |
37,130,037 | application stops when using timer | <p>I am trying to randomly draw two rectangles on screen using onDraw method, and I want to clear the screen and make two new rectangles every 2 seconds. So I wrapped invalidate() within a Timer. However, when I run this code, it shows me two rectangles at first, and stopped running after 2 seconds. I am guessing there... | I am trying to randomly draw two rectangles on screen using onDraw method, and I want to clear the screen and make two new rectangles every 2 seconds. So I wrapped invalidate() within a Timer. However, when I run this code, it shows me two rectangles at first, and stopped running after 2 seconds. I am guessing there is... | java|android|android-studio|timer | 0 | 2016-05-10T05:37:09.627Z | 2,016 | 5 | 5 | 1 | 28 | 0 | 557 | 34 | 4 | 1 | true | true | false | false | false | false | zero |
37,130,065 | How to remove the fields for password Authentication prompt on Firebase UI Android? | <p>I am trying to remove the textfields for email and password authentication at the login prompt provided with the firebase UI library at </p>
<p><a href="https://github.com/firebase/FirebaseUI-Android" rel="nofollow noreferrer">https://github.com/firebase/FirebaseUI-Android</a></p>
<p><a href="https://i.stack.imgu... | I am trying to remove the textfields for email and password authentication at the login prompt provided with the firebase UI library at https://github.com/firebase/FirebaseUI-Android This prompt is triggered by the following code mLoginButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick... | android|firebase|firebase-authentication|firebaseui | 0 | 2016-05-10T05:39:14.773Z | 2,016 | 5 | 5 | 1 | 977 | 0 | 793 | 83 | 4 | 0 | false | true | false | false | false | false | zero |
37,130,093 | Connect android application to MYSQL database | <p>When i try to connect android application to MYSQL database server the following errors occurs.i am using android studio in linux mint:</p>
<blockquote>
<p>05-10 10:46:58.555 29599-29599/com.example.pc.hms_treva D/Atlas:
Validating map... 05-10 10:46:58.660
29599-29619/com.example.pc.hms_treva I/OpenGLRende... | When i try to connect android application to MYSQL database server the following errors occurs.i am using android studio in linux mint: 05-10 10:46:58.555 29599-29599/com.example.pc.hms_treva D/Atlas: Validating map... 05-10 10:46:58.660 29599-29619/com.example.pc.hms_treva I/OpenGLRenderer: Initialized EGL, version 1.... | android|mysql | 1 | 2016-05-10T05:41:41.903Z | 2,016 | 5 | 5 | 1 | 2,503 | 1 | 691 | 45 | 2 | 1 | true | false | false | false | false | false | low |
37,130,096 | Share Image Intent with custom Save To Gallery option | <p>I am using Android's default share intent to share an image to other apps. But I would like to add an option like <code>Save to Gallery</code> which saves that Image directly to Gallery in media or images or my app's folder. </p>
<p>Currently I am using the simple code to share image:</p>
<pre><code>Intent shareIn... | I am using Android's default share intent to share an image to other apps. But I would like to add an option like Save to Gallery which saves that Image directly to Gallery in media or images or my app's folder. Currently I am using the simple code to share image: [CODE] When I tried WhatsApp's share button from profil... | android|image|android-intent | 4 | 2016-05-10T05:42:02.207Z | 2,016 | 5 | 5 | 1 | 4,246 | 1 | 1,195 | 53 | 3 | 1 | true | false | true | false | false | false | low |
37,130,141 | getCount() is being called before BaseAdapter constructor method finishes executing | <p>I am new to android. I am trying to create a GridView
consisting of ImageView. The images are from flickr and I am using flickr API to search flickr and receive JSON response. I parse the JSON data to get image URL. The API call and parsing JSON data is done inside FlickrAdapter which extends BaseAdapter. But the p... | I am new to android. I am trying to create a GridView consisting of ImageView. The images are from flickr and I am using flickr API to search flickr and receive JSON response. I parse the JSON data to get image URL. The API call and parsing JSON data is done inside FlickrAdapter which extends BaseAdapter. But the probl... | android|json|android-gridview|baseadapter | 0 | 2016-05-10T05:45:12.777Z | 2,016 | 5 | 5 | 1 | 513 | 1 | 1,067 | 83 | 4 | 5 | true | false | false | false | false | false | zero |
37,130,152 | How to get updated user data from second time when when open my android app second time after sign up with Facebook? | <p>I tried to get updated data from Graph API using accessToken but it always showing Logout button screen.</p>
<pre><code>accessTokenTracker = new AccessTokenTracker() {
@Override
protected void onCurrentAccessTokenChanged(AccessToken oldAccessToken, AccessToken newAccessToken) {
... | I tried to get updated data from Graph API using accessToken but it always showing Logout button screen. [CODE] How to get latest profile data second time on wards in Facebook SDK 4.0 | android|facebook|facebook-graph-api|facebook-android-sdk | 0 | 2016-05-10T05:45:46.037Z | 2,016 | 5 | 5 | 1 | 121 | 2 | 183 | 116 | 4 | 1 | true | false | false | false | false | false | zero |
37,130,155 | How to implement spannable more than once in the following code? | <p>##As spannable can't access data from outside of onclick listener, the whole code is written inside on click listener##</p>
<p>rd.setOnClickListener(new View.OnClickListener() {</p>
<pre><code> @Override
public void onClick(View view) {
int clicked=0;
clicked++; //< cli... | ##As spannable can't access data from outside of onclick listener, the whole code is written inside on click listener## rd.setOnClickListener(new View.OnClickListener() { [CODE] <> [CODE] | android|recursion|settext|spannable | -1 | 2016-05-10T05:45:57.803Z | 2,016 | 5 | 5 | 1 | 334 | 1 | 187 | 64 | 4 | 2 | true | false | false | false | false | true | negative |
37,130,219 | Activity vs Fragment in my case. I need practical example to fully understand this | <p>In first I apologize for question that was answered here many times but I can't fully understand concept of activity vs fragment, and I need clarification on real example.</p>
<p>I'm in the middle of writing application that:</p>
<ul>
<li><p>Has hamburger menu and three activites there, I navigate between them
lik... | In first I apologize for question that was answered here many times but I can't fully understand concept of activity vs fragment, and I need clarification on real example. I'm in the middle of writing application that: Has hamburger menu and three activites there, I navigate between them like that: [CODE] First activit... | android|android-fragments | -1 | 2016-05-10T05:51:28.483Z | 2,016 | 5 | 5 | 1 | 43 | 1 | 942 | 82 | 2 | 1 | true | false | false | false | false | true | negative |
37,130,269 | Not able to save LinearLayout values to xml file | <p>Developing an android app here I am dynamically generating <code>EditText</code> and button like <code>Call</code> and <code>Remove</code> from row.xml file. adding these control to <code>LinearLayout</code> I implemented as I want but my problem is that I want to save the <code>EditText</code> values into xml file.... | Developing an android app here I am dynamically generating EditText and button like Call and Remove from row.xml file. adding these control to LinearLayout I implemented as I want but my problem is that I want to save the EditText values into xml file. so that next time I open this app the particular values gets popula... | android|c#-4.0|xamarin.android | 0 | 2016-05-10T05:54:15.850Z | 2,016 | 5 | 5 | 1 | 98 | 2 | 630 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
37,130,342 | How to convert Javascript return value to String in Android | <p>I am working in Android and I am new to this dev.</p>
<p>I learned and started to develop my app using Eclipse IDE.</p>
<p>I am showing a webView with a URL then I tried to call a JS function. This function returns a string value.</p>
<p>I am able to show it in alert, but I want to get it as string value. How can... | I am working in Android and I am new to this dev. I learned and started to develop my app using Eclipse IDE. I am showing a webView with a URL then I tried to call a JS function. This function returns a string value. I am able to show it in alert, but I want to get it as string value. How can we do this? I am getting t... | javascript|java|android | 1 | 2016-05-10T05:59:04.810Z | 2,016 | 5 | 5 | 1 | 706 | 2 | 434 | 59 | 3 | 2 | true | false | false | false | false | false | low |
37,130,344 | camera and gallery intent to get image and copy in another folder in android | <p>I am trying to upload photo from camera, gallery and google photos.
without camera code gallery and google photos is working properly but when I am adding the code for camera Intent is not returning the result as -1 and gallery and google photos is also not working properly :: it is copying the image to another fold... | I am trying to upload photo from camera, gallery and google photos. without camera code gallery and google photos is working properly but when I am adding the code for camera Intent is not returning the result as -1 and gallery and google photos is also not working properly :: it is copying the image to another folder ... | android|image|camera | 2 | 2016-05-10T05:59:26.463Z | 2,016 | 5 | 5 | 1 | 2,241 | 1 | 536 | 76 | 3 | 3 | true | false | false | false | false | false | low |
37,130,462 | Null pointer exception in the Runnable Interface for Videoview Seekbar | <p>I have used the custom <code>SeekBar</code> in the <code>VideoView</code>in the <code>RecyclerView</code> list. When i press back button and again start the activity, it throws the <code>Null pointer exception</code>. The NPE is in the Runnable interface and app crashes. </p>
<pre><code>E/AndroidRuntime: FATAL EXCE... | I have used the custom SeekBar in the VideoView in the RecyclerView list. When i press back button and again start the activity, it throws the Null pointer exception . The NPE is in the Runnable interface and app crashes. [CODE] - [CODE] | android|nullpointerexception|android-recyclerview|android-videoview | 1 | 2016-05-10T06:07:37.687Z | 2,016 | 5 | 6 | 1 | 139 | 0 | 237 | 70 | 4 | 2 | true | true | false | false | false | false | low |
37,130,568 | Annihilate Periodicity of a former activity [ANDROID] | <p>I have been searching for a while a solution to my problem : I have two activities. The first one disappears to let the second one appears after 4 seconds.The problem is every 4 seconds the second activity is relaunched and so my application on my Smart phone is not stable at all (every 4 seconds the second activiti... | I have been searching for a while a solution to my problem : I have two activities. The first one disappears to let the second one appears after 4 seconds.The problem is every 4 seconds the second activity is relaunched and so my application on my Smart phone is not stable at all (every 4 seconds the second activities ... | android | 0 | 2016-05-10T06:14:33.597Z | 2,016 | 5 | 6 | 1 | 30 | 2 | 707 | 53 | 1 | 2 | true | false | false | false | false | false | zero |
37,130,690 | Android SupportMapFragment does not load map on kitkat devices | <p>I am integrating the google maps into my app and it does not work in kitkat devices but works fine with lollipop versions. My code is : </p>
<pre><code>public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
private GoogleMap mMap;
@Override
protected void onCreate(Bundle savedInstanceS... | I am integrating the google maps into my app and it does not work in kitkat devices but works fine with lollipop versions. My code is : [CODE] } and i am getting the following error message for kitkat devices. [CODE] Any idea why this is happening? | android|google-maps | 0 | 2016-05-10T06:23:05.170Z | 2,016 | 5 | 6 | 1 | 456 | 2 | 248 | 62 | 2 | 2 | true | false | false | false | false | false | zero |
37,130,844 | using multiple Viewpager ,How to set View pager match_parent | <blockquote>
<p>I am Using two Viewpagers and I got an error when I run the project, the second Viewpager doesn't show but when I set the height value(Eg:312dp) then it will show, I want to show that viewpager with height match_parent. what I have to do please help me</p>
<p>main.xml</p>
</blockquote>
<pre><cod... | I am Using two Viewpagers and I got an error when I run the project, the second Viewpager doesn't show but when I set the height value(Eg:312dp) then it will show, I want to show that viewpager with height match_parent. what I have to do please help me main.xml [CODE] | android|android-fragments|tabs|android-viewpager | 1 | 2016-05-10T06:31:41.063Z | 2,016 | 5 | 6 | 1 | 847 | 2 | 268 | 60 | 4 | 1 | true | false | false | false | false | false | low |
37,130,950 | Android Softkeyboard shift key Press throws Exception dispatching input event | <p>I have created a custom softkeyboard. All other keys are working perfectly except shift key. When I press the shift key I'm getting the following error.</p>
<pre><code>01-01 02:17:06.543 23608-23608/? E/InputEventReceiver﹕ Exception dispatching input event.
01-01 02:17:06.544 23608-23608/? E/MessageQueue-JNI﹕ Exc... | I have created a custom softkeyboard. All other keys are working perfectly except shift key. When I press the shift key I'm getting the following error. [CODE] | android | 3 | 2016-05-10T06:37:54.763Z | 2,016 | 5 | 6 | 1 | 191 | 0 | 159 | 77 | 1 | 1 | true | true | false | false | false | false | low |
37,131,051 | android activities vertical transition animation | <p>I don't know what is wrong here. Trying to make a vertical animation between two activities. Activity 1 should slide from being visible to bottom. Activity 2 should slide from top to bottom (become visible).</p>
<p>This is what I want
<a href="https://i.stack.imgur.com/P3JiT.jpg" rel="nofollow noreferrer"><img src=... | I don't know what is wrong here. Trying to make a vertical animation between two activities. Activity 1 should slide from being visible to bottom. Activity 2 should slide from top to bottom (become visible). This is what I want my code [CODE] top_to_visible.xml [CODE] visible_to_bottom.xml [CODE] what's wrong here ? | android|android-activity|android-animation|transition | 0 | 2016-05-10T06:43:42.963Z | 2,016 | 5 | 6 | 1 | 810 | 3 | 317 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
37,131,204 | include ListView layout in activity_main.xml but how Activity class was called | <p>I want to include serval layout files in <strong>activity_main.xml</strong></p>
<pre><code>...
<include layout="@layout/table_layout" />
<include layout="@layout/relative_layout"/>
<include layout="@layout/listview_layout"/>
...
</code></pre>
<p>The first two works good, but for <stro... | I want to include serval layout files in activity_main.xml [CODE] The first two works good, but for listview_layout.xml shows nothing when run the application. Seem the reason is ListViewActivity class never be called( ListViewActivity onCreate wasn't called ). So can't get datasource for listView. Question : How shoul... | android|listview | 0 | 2016-05-10T06:51:16.180Z | 2,016 | 5 | 6 | 1 | 1,190 | 3 | 677 | 78 | 2 | 5 | true | false | false | false | false | false | zero |
37,131,212 | Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details build gradle issues | <p>currently I am using Android Studio 2.1 when I run my App it shows me some error in Message Gradle Build saying the following</p>
<pre><code> Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateDebugAndroidTestSources, :app:as... | currently I am using Android Studio 2.1 when I run my App it shows me some error in Message Gradle Build saying the following [CODE] I tried cleaning and rebuilding it but it didn't work. The answer for this question didn't work also. Any help would be appreciated, thanks. Updated: Here is the log output [CODE] | java|android|android-gradle-plugin|build.gradle | 17 | 2016-05-10T06:51:33.617Z | 2,016 | 5 | 6 | 1 | 71,039 | 16 | 312 | 130 | 4 | 2 | true | false | true | true | true | false | medium |
37,131,299 | Notification is Lost when when I minimized it | <p>I have an issue that when I get a notification in my device I open it and when I minimize the notification it is disappeared from the minimized app's list so i am no longer able to see my notification back.</p>
<p>Here is the code of messege handler Service</p>
<pre><code> @TargetApi(Build.VERSION_CODES.JELLY_BEAN... | I have an issue that when I get a notification in my device I open it and when I minimize the notification it is disappeared from the minimized app's list so i am no longer able to see my notification back. Here is the code of messege handler Service [CODE] This is the activity which will pass the data to appropriate a... | android|push-notification|minimize | 0 | 2016-05-10T06:55:52.347Z | 2,016 | 5 | 6 | 1 | 63 | 1 | 430 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
37,131,310 | Checkbox is unchecked whenever listview is scrolled, android? | <p>I have a custom listview with BASEADAPTER
I created a boolean for maintaining the state of the checkboxes. But everytime I scroll the listview the checkbox gets unchecked.</p>
<pre><code>public class DialogListSearchAdapter extends BaseAdapter {
private ArrayList<POJOInventoryStore> withList;
private boolean[... | I have a custom listview with BASEADAPTER I created a boolean for maintaining the state of the checkboxes. But everytime I scroll the listview the checkbox gets unchecked. [CODE] What is wrong here? Am I missing something out? | android|listview|checkbox | -5 | 2016-05-10T06:56:17.240Z | 2,016 | 5 | 6 | 1 | 93 | 1 | 226 | 61 | 3 | 1 | true | false | false | false | false | true | negative |
37,131,339 | Chain 2 calls with retry using RxAndroid | <p>My use case is: I have an Android app, I need to call one api, when that data becomes available call the second api.
For this I was planning to use RxAndroid, with retries.</p>
<p>I was able to do 1 api call with retries, but I need to chain the 2, and be able to show 2 different errors, one for call 1 not availabl... | My use case is: I have an Android app, I need to call one api, when that data becomes available call the second api. For this I was planning to use RxAndroid, with retries. I was able to do 1 api call with retries, but I need to chain the 2, and be able to show 2 different errors, one for call 1 not available, and one ... | java|android|rx-java|rx-android | 1 | 2016-05-10T06:57:41.227Z | 2,016 | 5 | 6 | 1 | 453 | 1 | 605 | 40 | 4 | 1 | true | false | false | false | false | false | low |
37,131,358 | Bamboo Agent: failed to find Build Tools revision 23.0.3 | <p>I use a pool of Linux agents to build my app. Every now and then an agent causes a build failure with the error:</p>
<pre><code>FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':ComponentThatReqBuildToolsRev23.0.3:preBuild'.
> failed to find Build Tools revision 23.0.3
</code>... | I use a pool of Linux agents to build my app. Every now and then an agent causes a build failure with the error: [CODE] Because my build agents are remote (android is pre-installed /opt/android-sdk-linux/tools/android), I cannot preinstall the platform tools, build tools etc so have have a makefile included with my pro... | android|makefile|bamboo|android-build|android-sdk-manager | 6 | 2016-05-10T06:58:40.453Z | 2,016 | 5 | 6 | 1 | 475 | 0 | 1,020 | 56 | 5 | 8 | true | true | false | false | false | false | medium |
37,131,409 | Fitness data: merging multiple sources data | <p><strong>Given:</strong></p>
<p>The App is collecting steps/distance data from proprietary fitness tracker. This data is split into hourly sessions - e.g. "Session 4:00 - 5:00, <em>XX</em> steps, <em>YY</em> km".</p>
<p>I want to achieve data transfer: App -> Fitness API (<strong>Google Fit</strong>, <strong>Health... | Given: The App is collecting steps/distance data from proprietary fitness tracker. This data is split into hourly sessions - e.g. "Session 4:00 - 5:00, XX steps, YY km". I want to achieve data transfer: App -> Fitness API ( Google Fit , Health Kit ) in a consistent manner - that is: if Fitness API already has a session... | android|ios|healthkit|google-fit|hkhealthstore | 1 | 2016-05-10T07:00:32.557Z | 2,016 | 5 | 7 | 1 | 1,153 | 1 | 1,368 | 43 | 5 | 0 | false | false | false | false | false | false | low |
37,131,451 | change textSize of each row on runtime while scrolling listview | <p>I have used a custom base adapter. I am trying to achieve telescopic view in list. I have an infinite listview.</p>
<pre><code> ArrayList<String> months=new ArrayList<>();
months.add("January");
months.add("February");
months.add("March");
months.add("April");
months.add("May");
... | I have used a custom base adapter. I am trying to achieve telescopic view in list. I have an infinite listview. [CODE] above is my main code below is my adapter [CODE] I am not sure about the onScrollListener() too, whether it will help me or not. | android|listview|uiscrollview | 1 | 2016-05-10T07:03:11.700Z | 2,016 | 5 | 7 | 1 | 42 | 0 | 247 | 63 | 3 | 2 | true | true | false | false | false | false | low |
37,131,503 | Android SQLiteOpenHelper Error - Call to super must be the first statement in contructor | <p>Let me start by saying that before asking this question, I have already read many similar questions, but I couldn't find any possible solution for my situation.</p>
<p>I am trying to extend <code>SQLiteOpenHelper</code> class, but with 2 significant differences -</p>
<ol>
<li>I am using SQLCipher (using it doesn't... | Let me start by saying that before asking this question, I have already read many similar questions, but I couldn't find any possible solution for my situation. I am trying to extend SQLiteOpenHelper class, but with 2 significant differences - I am using SQLCipher (using it doesn't bother, if I use super on the top in ... | android|constructor|android-sqlite|super|sqliteopenhelper | 1 | 2016-05-10T07:06:13.350Z | 2,016 | 5 | 7 | 1 | 300 | 2 | 1,348 | 88 | 5 | 2 | true | false | false | false | false | false | low |
37,131,597 | Undo inside canvas for Image sketch | <p>I am using above code for undo but canvas can not update by calling this method.
I have created DrawingView class for sketch feature i just need do Undo for every functionality like, 1. Smoothline 2.Rectangle 3.Circle 4.Straight line etc.</p>
<pre><code>public class DrawingView extends View {
protected Path m... | I am using above code for undo but canvas can not update by calling this method. I have created DrawingView class for sketch feature i just need do Undo for every functionality like, 1. Smoothline 2.Rectangle 3.Circle 4.Straight line etc. [CODE] | android|android-studio|view|android-canvas|undo-redo | 2 | 2016-05-10T07:11:15.047Z | 2,016 | 5 | 7 | 1 | 110 | 2 | 245 | 35 | 5 | 1 | true | false | false | false | false | false | low |
37,131,601 | Track referral when app is already installed | <p>I have a play-store link generated by <a href="https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-url-builder" rel="nofollow">url builder</a>. To track the referrer who referred my app, I have implemented campaign measurement as described in <a href="https://developers.goog... | I have a play-store link generated by url builder . To track the referrer who referred my app, I have implemented campaign measurement as described in official docs . But if the app is already installed, I am not sure how to parse the url. According to official example: [CODE] I am not sure how to read the url data int... | android|google-analytics|install-referrer | 1 | 2016-05-10T07:11:26.400Z | 2,016 | 5 | 7 | 1 | 447 | 1 | 384 | 44 | 3 | 1 | true | false | false | false | false | false | low |
37,131,642 | Android VectorDrawable as Compound Drawables | <p>As of stated by <a href="http://android-developers.blogspot.com/2016/02/android-support-library-232.html" rel="nofollow noreferrer">this android developer blog post</a>, we can now use <code>VectorDrawables</code> on Android API 7+ using the <code>AppCompat 23.2.0</code> and later versions.</p>
<p>Everything seems ... | As of stated by this android developer blog post , we can now use VectorDrawables on Android API 7+ using the AppCompat 23.2.0 and later versions. Everything seems to work fine for me, except when it comes to use drawables as a compound to a TextView. Normally, one would do something like: [CODE] Unfortunately this is ... | android|android-support-library|android-vectordrawable | 4 | 2016-05-10T07:13:56.810Z | 2,016 | 5 | 7 | 1 | 3,718 | 3 | 752 | 44 | 3 | 2 | true | false | true | false | false | false | low |
37,131,840 | Send push notification to all user phonegap | <p>i'm trying to send a notification to all my users with phone. I'm using a GCM and phonegap push plugin. I save a registrationId in database and then I write this 2 function and I work with soap web service. The notification are not send.
This is my code. The function:</p>
<pre><code>function sendPush($registrationI... | i'm trying to send a notification to all my users with phone. I'm using a GCM and phonegap push plugin. I save a registrationId in database and then I write this 2 function and I work with soap web service. The notification are not send. This is my code. The function: [CODE] The call is: [CODE] | php|android|cordova|push-notification | -1 | 2016-05-10T07:24:53.023Z | 2,016 | 5 | 7 | 1 | 749 | 1 | 295 | 43 | 4 | 2 | true | false | false | false | false | true | negative |
37,131,897 | Using an hyperlink in textview as a word | <p>I have a textview with a lot of text, and at the end I have 2 suggestions that I want to make clickable. Something like this:</p>
<p>You can make your own appointment, blablablablabla......
You can also look here for more information:</p>
<ul>
<li><strong>this is where you can see more</strong></li>
<li><strong>An... | I have a textview with a lot of text, and at the end I have 2 suggestions that I want to make clickable. Something like this: You can make your own appointment, blablablablabla...... You can also look here for more information: this is where you can see more And this is where you can see more That text in bold is what ... | android|eclipse|textview | -5 | 2016-05-10T07:27:21.537Z | 2,016 | 5 | 7 | 1 | 61 | 1 | 497 | 40 | 3 | 1 | true | false | false | false | false | true | negative |
37,132,037 | Can a post be lost while rotating screen? | <p>Is that possible that when I click the button and then after waiting some time (~5sec) rotate the screen the post may be missed, because the activity didn't manage to re-register in time?
I believe that I've managed to produce that. But it was like 1 from 50 tries:)</p>
<pre><code>import android.os.Bundle;
import a... | Is that possible that when I click the button and then after waiting some time (~5sec) rotate the screen the post may be missed, because the activity didn't manage to re-register in time? I believe that I've managed to produce that. But it was like 1 from 50 tries:) [CODE] | android|greenrobot-eventbus | 0 | 2016-05-10T07:34:59.933Z | 2,016 | 5 | 7 | 1 | 222 | 4 | 273 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
37,132,084 | BaasBox: How do I get a document that is stored in my Baasbox dashboard and set them in a ListView in my app | <p>I am a new user baasbox, and now, I have some problems that how I get one document that is stored in my dashboard and set them in a ListView in my app, I have already read the Documentation of BaasBox, but there don't have one full code to I base my app, I already got create and save a document from my app to my Ba... | I am a new user baasbox, and now, I have some problems that how I get one document that is stored in my dashboard and set them in a ListView in my app, I have already read the Documentation of BaasBox, but there don't have one full code to I base my app, I already got create and save a document from my app to my BaasBo... | java|android|listview|backend|baasbox | 1 | 2016-05-10T07:37:22.100Z | 2,016 | 5 | 7 | 1 | 87 | 0 | 635 | 108 | 5 | 2 | true | true | false | false | false | false | low |
37,132,096 | How to remove extra space in Card View above | <p>There is an extra space in CardView ....I have tried to remove the linear layout above it but tht is distorting the content in it n fitsSystemWindows attributte also doesn't work.</p>
<p>n it is there for both Pre and Post lollipop versions </p>
<p><a href="https://i.stack.imgur.com/bp1ja.png" rel="nofollow noref... | There is an extra space in CardView ....I have tried to remove the linear layout above it but tht is distorting the content in it n fitsSystemWindows attributte also doesn't work. n it is there for both Pre and Post lollipop versions [CODE] | android|android-layout|listview|android-linearlayout|android-cardview | 1 | 2016-05-10T07:37:48.740Z | 2,016 | 5 | 7 | 1 | 1,063 | 3 | 240 | 44 | 5 | 1 | true | false | false | false | false | false | low |
37,132,362 | How to implement sin. cos. other trignometric values in android | <p></p>
<blockquote>
<p>How could I write the following code in android using onclick method in MainActivity. Being novice to calculations in android format. I want someone to explain in detail.</p>
</blockquote>
<pre><code>public class Test{
public static void main(String args[]){
double degrees = 45.0;
double... | How could I write the following code in android using onclick method in MainActivity. Being novice to calculations in android format. I want someone to explain in detail. [CODE] I tried to write it in android format. but it didn't worked. Any help will be appreciated. The code I tried to write. [CODE] logcat [CODE] | android | 0 | 2016-05-10T07:52:14.907Z | 2,016 | 5 | 7 | 1 | 698 | 2 | 316 | 63 | 1 | 3 | true | false | false | false | false | false | zero |
37,132,383 | menuInflater to create a menu in the onCreateOptionsMenu not working | <p>I have used a menuInflater to create a menu in the onCreateOptionsMenu method of your activity. I have used this to display arrows on the toolbar for a calendar so that the user can go to previous or next month. But for some reason the arrows are not getting displayed
Pls can someone help.</p>
<p>MonthGridActivity... | I have used a menuInflater to create a menu in the onCreateOptionsMenu method of your activity. I have used this to display arrows on the toolbar for a calendar so that the user can go to previous or next month. But for some reason the arrows are not getting displayed Pls can someone help. MonthGridActivity: [CODE] men... | android|android-menu | 1 | 2016-05-10T07:53:13.290Z | 2,016 | 5 | 7 | 1 | 739 | 1 | 444 | 68 | 2 | 5 | true | false | false | false | false | false | low |
37,132,481 | Android: Async Task | Do in background freezes up UI? | <p>I am having an issue and have looked all over the place (youtube, dev sites) for a solution and am unable to find one.</p>
<p>The UI in my application is hanging when the volley connection is started, I added it to an AsyncTask overriding DoInBackground method but it still hangs.</p>
<p>The code I have handling th... | I am having an issue and have looked all over the place (youtube, dev sites) for a solution and am unable to find one. The UI in my application is hanging when the volley connection is started, I added it to an AsyncTask overriding DoInBackground method but it still hangs. The code I have handling the connection throug... | android|multithreading|android-asynctask | 0 | 2016-05-10T07:58:43.787Z | 2,016 | 5 | 7 | 1 | 683 | 2 | 339 | 53 | 3 | 1 | true | false | false | false | false | false | zero |
37,132,490 | Why artifact has no classes? | <p>This is my module (Library) build.gradle file and I uploaded my library then when I'm trying to test it using this line
compile 'com.abanoub.androidlib:walkthrough:1.0.0:release@aar'
the artifact has no classes ..
Help please :)</p>
<pre><code>apply plugin: 'com.android.library'
ext {
bintrayRepo = 'maven'
... | This is my module (Library) build.gradle file and I uploaded my library then when I'm trying to test it using this line compile 'com.abanoub.androidlib:walkthrough:1.0.0:release@aar' the artifact has no classes .. Help please :) [CODE] | android|maven|gradle|libraries|jcenter | 0 | 2016-05-10T07:59:10.297Z | 2,016 | 5 | 7 | 1 | 130 | 0 | 235 | 28 | 5 | 1 | true | true | false | false | false | false | zero |
37,132,504 | why is EventBus significantly faster while it compare with otto | <p>Both <a href="https://github.com/greenrobot/EventBus" rel="nofollow">EventBus</a> and <a href="https://github.com/square/otto" rel="nofollow">Otto</a> are event bus, and I found <a href="https://github.com/greenrobot/EventBus" rel="nofollow">EventBus</a> has this conclusion:</p>
<blockquote>
<p>Benchmark results ... | Both EventBus and Otto are event bus, and I found EventBus has this conclusion: Benchmark results indicate that EventBus is significantly faster in almost every scenario: here is origin page My question is why EventBus is more faster than Otto . I has read the two source code, and don't found obvious difference. Here i... | android|performance|event-bus|otto|greenrobot-eventbus | 3 | 2016-05-10T07:59:54.800Z | 2,016 | 5 | 7 | 1 | 249 | 0 | 675 | 63 | 5 | 0 | false | true | false | false | false | false | low |
37,132,505 | Google Maps v2 change language | <p>The problem is that the google maps retain the language it has when it was first open. For example, I have 2 activities (Activity A and Activity B). The Activity A consist of settings page where I change the language to that activity. Note that it's not the system language, but using the <code>Locale.setDefault()</c... | The problem is that the google maps retain the language it has when it was first open. For example, I have 2 activities (Activity A and Activity B). The Activity A consist of settings page where I change the language to that activity. Note that it's not the system language, but using the Locale.setDefault() . This succ... | android|google-maps|google-maps-android-api-2 | 6 | 2016-05-10T07:59:56.020Z | 2,016 | 5 | 7 | 1 | 3,464 | 2 | 1,433 | 30 | 3 | 0 | false | false | true | false | false | false | medium |
37,132,511 | How to stop a START_STICKY Service in onResume() when user returns to activty | <p>I am currently working on an app that uploads a file to my server. My app is designed to been started, used till task is done, and at the end the file upload will be initiated by pressing a button and the app has been used what it is there for. So a very linear approach: start, use till the end, file upload, done.</... | I am currently working on an app that uploads a file to my server. My app is designed to been started, used till task is done, and at the end the file upload will be initiated by pressing a button and the app has been used what it is there for. So a very linear approach: start, use till the end, file upload, done. Now ... | android|service|upload | 1 | 2016-05-10T08:00:12.187Z | 2,016 | 5 | 8 | 1 | 905 | 1 | 1,541 | 77 | 3 | 2 | true | false | false | false | false | false | low |
37,132,546 | FFmpeg output seeking result to Android LruCache | <p>Dear fellow StackOverflower,</p>
<p>In my Android application, I'm trying to quickly retrieve a frame from a video using <a href="http://writingminds.github.io/ffmpeg-android-java/" rel="nofollow">ffmpeg-android-java</a> to display in an <code>ImageView</code>. The problem is using a typical <code>ffmpeg</code>'s <... | Dear fellow StackOverflower, In my Android application, I'm trying to quickly retrieve a frame from a video using ffmpeg-android-java to display in an ImageView . The problem is using a typical ffmpeg 's -ss seeking command will require to write the output into the memory which I suppose is the big hit on performance: ... | android|ffmpeg|android-lru-cache | 3 | 2016-05-10T08:01:58.093Z | 2,016 | 5 | 8 | 1 | 312 | 1 | 773 | 48 | 3 | 1 | true | false | false | false | false | false | low |
37,132,573 | is it possible to make a layout that blur everything behind it | <p>I want to make a blurry transparent service application that make everything behind my application looks blurry, the problem is, I need to take a screenshot of entire device screen that is almost impossible</p>
<p>is there a trick to make my background looks blurry? or maybe is there any trick to make a view with s... | I want to make a blurry transparent service application that make everything behind my application looks blurry, the problem is, I need to take a screenshot of entire device screen that is almost impossible is there a trick to make my background looks blurry? or maybe is there any trick to make a view with some alpha t... | android|button|blur|blurry | 0 | 2016-05-10T08:03:42.410Z | 2,016 | 5 | 8 | 1 | 1,045 | 1 | 1,276 | 62 | 4 | 0 | false | false | false | false | false | false | zero |
37,132,658 | How to save checkbox value with shared preferences? | <p>I don't know why my code not save <code>checkbox</code> checked value; if I check <code>checkbox</code> and after I click on another tab and comeback to previous tab, <code>checkbox</code> is not selected...I hope that you find the error in my code!</p>
<p>IDE says to me: <code>FATAL EXCEPTION: main java.lang.NullP... | I don't know why my code not save checkbox checked value; if I check checkbox and after I click on another tab and comeback to previous tab, checkbox is not selected...I hope that you find the error in my code! IDE says to me: FATAL EXCEPTION: main java.lang.NullPointerException at line ".onCreateView(holder.chkBox.set... | android|android-fragments|checkbox|sharedpreferences | 0 | 2016-05-10T08:07:34.973Z | 2,016 | 5 | 8 | 1 | 4,309 | 3 | 379 | 51 | 4 | 2 | true | false | true | false | false | false | zero |
37,132,664 | Android - Handling Spotify Async Image Download | <p>I am developing an app in android which do multiple async connections to spotify and to my own server. My problem is that when I load the tracks I have to wait for the images to show in a ImageView. This is the app flow:</p>
<ol>
<li>On the App run I download a general Playlist to begin the player with the first tr... | I am developing an app in android which do multiple async connections to spotify and to my own server. My problem is that when I load the tracks I have to wait for the images to show in a ImageView. This is the app flow: On the App run I download a general Playlist to begin the player with the first track. (First async... | android|asynchronous|spotify | 0 | 2016-05-10T08:07:54.607Z | 2,016 | 5 | 8 | 1 | 147 | 1 | 1,541 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
37,132,717 | Unable to mock static methods using Mockito for instrumentation tests in Android | <p>I am using <code>Mockito</code> framework for mocking objects for writing instrumentation tests. But I am not able to mock static methods using <code>Mockito</code>. I know this is not possible using <code>Mockito</code> alone and the recommended solution is to use <code>PowerMock</code> on top of <code>Mockito</cod... | I am using Mockito framework for mocking objects for writing instrumentation tests. But I am not able to mock static methods using Mockito . I know this is not possible using Mockito alone and the recommended solution is to use PowerMock on top of Mockito . But when I use PowerMock , it throws the following exception. ... | android|unit-testing|mockito|powermock | 1 | 2016-05-10T08:10:33.060Z | 2,016 | 5 | 8 | 1 | 617 | 0 | 739 | 80 | 4 | 3 | true | true | false | false | false | false | low |
37,132,840 | How to ignore some transform in rxjava | <p>As the following example code, if something true in the flapMap, could I ignore some transformings and running the subscribe() immediately.</p>
<pre><code> Observable.just("10+20", "123", "10x20", "10")
.flatMap(new Func1<String, Observable<String>>() {
@Override
... | As the following example code, if something true in the flapMap, could I ignore some transformings and running the subscribe() immediately. [CODE] Is it possible to do so? | rx-java|rx-android | 0 | 2016-05-10T08:17:37.970Z | 2,016 | 5 | 8 | 1 | 42 | 1 | 171 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
37,132,906 | Android: Could not find or load main class org.gradle.wrapper.GradleWrapperMain | <p>I am trying to build my project on GitLab CI but unfortunately for me I keep getting this error inside the runner:</p>
<p><code>Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain</code></p>
<p>Now I know there is something wrong with my environment but I just cant get my mind wrapped aro... | I am trying to build my project on GitLab CI but unfortunately for me I keep getting this error inside the runner: Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Now I know there is something wrong with my environment but I just cant get my mind wrapped around the problem. I searched on t... | android|gradle|gitlab|gradlew|gitlab-ci | 9 | 2016-05-10T08:21:00.737Z | 2,016 | 5 | 8 | 1 | 13,738 | 3 | 610 | 79 | 5 | 4 | true | false | true | true | false | false | medium |
37,133,025 | Android 6, set global settings WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN | <p>With Android 6, I would like to set the global setting <code>WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN</code> and this is what I've done:</p>
<pre><code>mDevicePolicyManager = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
deviceAdminComponentName = new ComponentName(this, MyDeviceAdminReceiver.cla... | With Android 6, I would like to set the global setting WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN and this is what I've done: [CODE] where MyDeviceAdminReceiver is a class that extends DeviceAdminReceiver. [CODE] Unfortunately, when running the previous code I always get a Security exception when executing mDevicePolicyManager... | android | 0 | 2016-05-10T08:26:28.140Z | 2,016 | 5 | 8 | 1 | 1,682 | 1 | 355 | 65 | 1 | 3 | true | false | false | false | false | false | zero |
37,133,055 | Xamarin forms splash screen issue | <p>A black screen with app title is showing when minimizing the app while loading splash screen , also the first screen will display after some time. Here is my splash activity and main activity classes.</p>
<pre class="lang-cs prettyprint-override"><code>[Activity(Theme = "@style/Theme.Splash", Icon = "@drawable/icon... | A black screen with app title is showing when minimizing the app while loading splash screen , also the first screen will display after some time. Here is my splash activity and main activity classes. [CODE] | xamarin|xamarin.forms|xamarin.android|splash-screen | 2 | 2016-05-10T08:28:22.880Z | 2,016 | 5 | 8 | 1 | 1,180 | 2 | 207 | 33 | 4 | 1 | true | false | false | false | false | false | low |
37,133,093 | Practice in managing session in modern mobile application | <p>I am a web developer and I have learnt from college how to make use of SESSION (more precisely COOKIES) in managing user session. However, when it comes to mobile application, I am confused about how I should implement the system to ensure a secure system while following with the normal practice of an application.</... | I am a web developer and I have learnt from college how to make use of SESSION (more precisely COOKIES) in managing user session. However, when it comes to mobile application, I am confused about how I should implement the system to ensure a secure system while following with the normal practice of an application. The ... | android|ios|cordova|session|cookies | 3 | 2016-05-10T08:30:28.243Z | 2,016 | 5 | 8 | 1 | 665 | 1 | 2,565 | 57 | 5 | 0 | false | false | false | false | false | false | low |
37,133,124 | Using ShareActionProvider on a CardView in a Recyclerview | <p>I am trying to provide a share feature on the cards displayed in my android application. I have learn't about the ShareactionProvider. This actionProvider is suppose to be present on every cardview. I have placed the code for the ShareActionprovider on my onBindViewHolder in the Adapter. When the app starts, all the... | I am trying to provide a share feature on the cards displayed in my android application. I have learn't about the ShareactionProvider. This actionProvider is suppose to be present on every cardview. I have placed the code for the ShareActionprovider on my onBindViewHolder in the Adapter. When the app starts, all the ca... | android|android-intent|shareactionprovider | 0 | 2016-05-10T08:32:02.090Z | 2,016 | 5 | 8 | 1 | 464 | 1 | 725 | 57 | 3 | 2 | true | false | false | false | false | false | zero |
37,133,146 | Json.NET public Activity properties not serialized | <p>I was working on an enhancement in my Xamarin Android app to make working with Android's saved state easier. One part of the implementation for this needs to Json serialize the properties of current <code>Activity</code> class that have the custom <code>[SaveState]</code> attribute. All other properties are ignored.... | I was working on an enhancement in my Xamarin Android app to make working with Android's saved state easier. One part of the implementation for this needs to Json serialize the properties of current Activity class that have the custom [SaveState] attribute. All other properties are ignored. I've got this mechanism work... | c#|serialization|json.net|xamarin.android | 0 | 2016-05-10T08:32:53.147Z | 2,016 | 5 | 8 | 1 | 172 | 0 | 2,170 | 50 | 4 | 1 | true | true | false | false | false | false | zero |
37,133,177 | how to align text of text view to right side and also text should be in center of text view | <p>I want to align my text in text view to right side and also it should be centered in the text view.</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="60dp"
android:gra... | I want to align my text in text view to right side and also it should be centered in the text view. [CODE] | android-layout | -1 | 2016-05-10T08:34:28.513Z | 2,016 | 5 | 8 | 1 | 922 | 1 | 106 | 91 | 1 | 1 | true | false | false | false | false | true | negative |
37,133,232 | Make a Texture Clickable | <p>I've added multiple textures on 3D Model, I just want to get notified when any Texture is tapped or clicked with it's texture id, in my activity class.
Any help or suggestion are welcomed...</p>
<pre><code>public static int loadTexture(final InputStream is) {
Log.v("GLUtil", "Loading texture '" + is + "... | I've added multiple textures on 3D Model, I just want to get notified when any Texture is tapped or clicked with it's texture id, in my activity class. Any help or suggestion are welcomed... [CODE] | android|opengl-es|3d-modelling | 1 | 2016-05-10T08:36:54.253Z | 2,016 | 5 | 8 | 1 | 68 | 0 | 197 | 24 | 3 | 1 | true | true | false | false | false | false | low |
37,133,247 | Android BLE Call Back Function not Call | <p>I'm develop a app on <strong>Bluetooth Low Energy</strong>. I've reading the documentation and run the official Android sample for <strong>BLE</strong> .But When I run this sample,</p>
<pre><code>private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback();
</code></pre>
<p>does... | I'm develop a app on Bluetooth Low Energy . I've reading the documentation and run the official Android sample for BLE .But When I run this sample, [CODE] does not call. After many try i read that if my phone is reboot show scan device list. in one case it show one device but after this it,s not show any device list. a... | android|bluetooth|bluetooth-lowenergy | 0 | 2016-05-10T08:38:01.820Z | 2,016 | 5 | 8 | 1 | 539 | 0 | 478 | 39 | 3 | 2 | true | true | false | false | false | false | zero |
37,133,582 | Add remove fragment dynamically in FragmentPagerAdapter causes null exception | <p>I have an application where I have several fragments, some of these need to be added or removed dynamically. So I start with 2 fragments. After login, I remove 1 fragment and add 2 or 3 more. And depending on other actions then this can vary during the life of the app. </p>
<p>Each fragment appears in a tab wit... | I have an application where I have several fragments, some of these need to be added or removed dynamically. So I start with 2 fragments. After login, I remove 1 fragment and add 2 or 3 more. And depending on other actions then this can vary during the life of the app. Each fragment appears in a tab with a title. My ma... | java|android|android-fragments|fragment|android-tablayout | 0 | 2016-05-10T08:53:58.763Z | 2,016 | 5 | 8 | 1 | 2,166 | 3 | 1,005 | 77 | 5 | 4 | true | false | false | false | false | false | zero |
37,133,642 | remove account in "old" sdk | <p>I try to write my account own AccountAuthenticator for my app using Android's <code>AccountManager</code> class. I have a "Log out" button which should delete an existing account and open <code>LoginActivity</code> again.</p>
<p>For this I use remove method of <code>AccountManager</code>:</p>
<pre><code> accountMa... | I try to write my account own AccountAuthenticator for my app using Android's AccountManager class. I have a "Log out" button which should delete an existing account and open LoginActivity again. For this I use remove method of AccountManager : [CODE] But I get an error message which tells me that this method can funct... | android|authentication|accountmanager | 0 | 2016-05-10T08:56:51.120Z | 2,016 | 5 | 8 | 1 | 693 | 1 | 527 | 27 | 3 | 1 | true | false | false | false | false | false | zero |
37,133,648 | How to set default theme to custom dialog box? | <p>I'm trying to set a default theme to a custom dialog box but unable to do it. I have set the default "THEME_DEVICE_DEFAULT_LIGHT" to my alertDialogs and I want to use the same theme to my custom dialog box.</p>
<p>I am able to set other themes using the below code but I am unable to use DEVICE_DEFAULT_LIGHT.</p>
<... | I'm trying to set a default theme to a custom dialog box but unable to do it. I have set the default "THEME_DEVICE_DEFAULT_LIGHT" to my alertDialogs and I want to use the same theme to my custom dialog box. I am able to set other themes using the below code but I am unable to use DEVICE_DEFAULT_LIGHT. new ContextThemeW... | android|dialog|themes | 0 | 2016-05-10T08:56:58.727Z | 2,016 | 5 | 8 | 1 | 995 | 1 | 360 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
37,133,837 | fetch all photos from gallery and show it in grid view | <p>i want to fetch all photos from gallery and display it in grid view ..all photos i get but the problem is it will not working smoothly like as gallery too mach mobile hang please give me solution if any one have my code is below.</p>
<pre><code> public class getImageFromGallery extends AsyncTask<String,Void,A... | i want to fetch all photos from gallery and display it in grid view ..all photos i get but the problem is it will not working smoothly like as gallery too mach mobile hang please give me solution if any one have my code is below. [CODE] | android | 0 | 2016-05-10T09:04:28.930Z | 2,016 | 5 | 9 | 1 | 81 | 1 | 236 | 54 | 1 | 1 | true | false | false | false | false | false | zero |
37,133,889 | Populating JSON to android Listview | <p><strong>I got this error while the running the app:</strong> </p>
<p>05-10 01:44:39.243 11047-11047/com.efe.efeAlumni E/AndroidRuntime: FATAL EXCEPTION: main Process: com.efe.efeAlumni, PID: 11047 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.efe.efeAlumni/com.efe.efeAlumni.ui.MainActivity}... | I got this error while the running the app: 05-10 01:44:39.243 11047-11047/com.efe.efeAlumni E/AndroidRuntime: FATAL EXCEPTION: main Process: com.efe.efeAlumni, PID: 11047 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.efe.efeAlumni/com.efe.efeAlumni.ui.MainActivity}: java.lang.NullPointerExcept... | android|json|listview | 1 | 2016-05-10T09:06:37.367Z | 2,016 | 5 | 9 | 1 | 58 | 0 | 2,312 | 35 | 3 | 3 | true | true | false | false | false | false | low |
37,133,929 | push notification repearting for every second | <p>Hi guys i am trying to create the push notification using the alarm manager where push notification must come at morning 8AM everything is good but notification is also coming but after 8AM notification is completed the notification coming when ever i open the App or clear from recents or for every one hour notifica... | Hi guys i am trying to create the push notification using the alarm manager where push notification must come at morning 8AM everything is good but notification is also coming but after 8AM notification is completed the notification coming when ever i open the App or clear from recents or for every one hour notificatio... | android|push-notification|android-service|android-broadcastreceiver | 0 | 2016-05-10T09:08:08.620Z | 2,016 | 5 | 9 | 1 | 168 | 1 | 489 | 45 | 4 | 3 | true | false | false | false | false | false | zero |
37,133,960 | a strange Error parsing data org.json.JSONException: End of input at character 0 of | <p>I know it's an habitual question; but mine is really strange. I've done in another context exactly the same code where it works, but not on th</p>
<pre><code> String result = "";
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://192.168.1.145/test/getActivities.php... | I know it's an habitual question; but mine is really strange. I've done in another context exactly the same code where it works, but not on th [CODE] So this is the PHP file [CODE] Can anyone see the problem? I tried to print the $OUTPUT and this is the kind of result [CODE] | php|android|mysql | 1 | 2016-05-10T09:09:35.387Z | 2,016 | 5 | 9 | 1 | 127 | 2 | 275 | 83 | 3 | 3 | true | false | false | false | false | false | low |
37,134,138 | Json Parsing Error | <ul>
<li>I am getting reponse, but while trying to set response in list, it throws error :</li>
<li><p>Can anyone help me with this, error log, class , paring, method is shown below</p></li>
<li><p>I know parsing, but i dont know what i need to change so to get desire output</p></li>
</ul>
<p>Error Log cat </p>
<pre>... | I am getting reponse, but while trying to set response in list, it throws error : Can anyone help me with this, error log, class , paring, method is shown below I know parsing, but i dont know what i need to change so to get desire output Error Log cat [CODE] Response : [CODE] method : [CODE] parsing : [CODE] | android|json|parsing | -1 | 2016-05-10T09:16:37.297Z | 2,016 | 5 | 9 | 1 | 55 | 1 | 310 | 18 | 3 | 4 | true | false | false | false | false | true | negative |
37,134,154 | Load Images from net to Grid without third Party libraries | <p>I have a list of url of images at remote server. I need to load them into Grid View asynchronously <strong>without using any third party libraries</strong>. I have built the following task: </p>
<pre><code>class BitmapWorkerTask extends AsyncTask<String, Void, Bitmap> {
private final WeakReference<... | I have a list of url of images at remote server. I need to load them into Grid View asynchronously without using any third party libraries . I have built the following task: [CODE] And I'm invoking it onBindViewHolder as following: [CODE] I'm facing several problems that I can't find the way to deal with: 1) On scroll ... | android|gridview|android-asynctask|android-recyclerview | 1 | 2016-05-10T09:17:03.623Z | 2,016 | 5 | 9 | 1 | 2,060 | 1 | 532 | 58 | 4 | 2 | true | false | false | false | false | false | low |
37,134,216 | Why this function does not work on iOS cordova platform while its fully working on android platform? | <p>I'm using cordova for my application. All functions are working fine on both platforms android/iOS, all but ONE. It works on android but not iOS. When I call my function, I'm getting no errors just like android but its doesn't work.</p>
<p>The function that doesn't work, is the loadPicture(), for changing profile p... | I'm using cordova for my application. All functions are working fine on both platforms android/iOS, all but ONE. It works on android but not iOS. When I call my function, I'm getting no errors just like android but its doesn't work. The function that doesn't work, is the loadPicture(), for changing profile picture, its... | javascript|android|ios|cordova|cordova-plugins | 0 | 2016-05-10T09:20:22.267Z | 2,016 | 5 | 9 | 1 | 119 | 0 | 816 | 100 | 5 | 1 | true | true | false | false | false | false | zero |
37,134,251 | Can I add the same marker in different ArrayLists? | <p>I would like to know how can I add for example the same marker into different array lists. I have let's say 5 array lists and 7 markers. I am adding the markers to the map, adding each marker to it's corresponding list and filter to display or hide the markers according to the list selected by the user. Everything w... | I would like to know how can I add for example the same marker into different array lists. I have let's say 5 array lists and 7 markers. I am adding the markers to the map, adding each marker to it's corresponding list and filter to display or hide the markers according to the list selected by the user. Everything work... | android|list|google-maps|marker | -2 | 2016-05-10T09:21:44.410Z | 2,016 | 5 | 9 | 1 | 56 | 1 | 1,414 | 50 | 4 | 3 | true | false | false | false | false | true | negative |
37,134,291 | Google Maps Android API Authorization failure, despite SHA1 keys registered | <ul>
<li>Developing an Android app locally using Android Studio 1.3</li>
<li>Small closed beta on Google Play Store One API key registered against this one app with two SHA1 keys - one local, and one for the release-signed APK using our organisation's Android keystore</li>
<li>Google Maps works locally while connected ... | Developing an Android app locally using Android Studio 1.3 Small closed beta on Google Play Store One API key registered against this one app with two SHA1 keys - one local, and one for the release-signed APK using our organisation's Android keystore Google Maps works locally while connected to the PC via Android Studi... | android|google-maps|google-maps-android-api-2|sha1 | 0 | 2016-05-10T09:23:26.243Z | 2,016 | 5 | 9 | 1 | 775 | 1 | 674 | 75 | 4 | 1 | true | false | false | false | false | false | zero |
37,134,300 | Android Studio will not recognize Google Glass, however ADB will | <p>I have a problem with my google glass'.</p>
<p>It will not register in android studio as a device, but when I run "adb devices" in terminal it finds the device and list it as "device". </p>
<p>Android studio says "please configure Android SDK". I have everything installed, API 19 Glass Development kit, API 19 in g... | I have a problem with my google glass'. It will not register in android studio as a device, but when I run "adb devices" in terminal it finds the device and list it as "device". Android studio says "please configure Android SDK". I have everything installed, API 19 Glass Development kit, API 19 in general, Google usb d... | android|adb|google-glass | 2 | 2016-05-10T09:23:58.990Z | 2,016 | 5 | 9 | 1 | 531 | 1 | 774 | 64 | 3 | 1 | true | false | false | false | false | false | low |
37,134,333 | Creating a Network Thread as a Method | <p>I'm very new at programming for Android - please bear with me.</p>
<p>I'm building an app that requires network access, using OKHttp. Since I will be making many similarly structured requests from my server, I created a class that handles all network-related tasks, as I like to keep things compartmentalized.</p>
<... | I'm very new at programming for Android - please bear with me. I'm building an app that requires network access, using OKHttp. Since I will be making many similarly structured requests from my server, I created a class that handles all network-related tasks, as I like to keep things compartmentalized. One method I'm wo... | java|android|casting|okhttp | 0 | 2016-05-10T09:25:21.833Z | 2,016 | 5 | 9 | 1 | 98 | 3 | 1,444 | 37 | 4 | 4 | true | false | false | false | false | false | zero |
37,134,443 | Android - TableRow column alignment programmatically | <p>I have been stuck on this issue for hours and I have no idea how to get passed it.</p>
<p>I have programatically created a table (no problem), but this is the issue I am having. When I create the row, I would then like to create two separate columns. As you'll see in my example, I have two different TextViews on th... | I have been stuck on this issue for hours and I have no idea how to get passed it. I have programatically created a table (no problem), but this is the issue I am having. When I create the row, I would then like to create two separate columns. As you'll see in my example, I have two different TextViews on the same line... | java|android|android-tablelayout|tablerow | 0 | 2016-05-10T09:30:22.283Z | 2,016 | 5 | 9 | 1 | 1,090 | 1 | 573 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
37,134,521 | My TAB fragment does not refresh until i restart my application or switch to my 3rd TAB | <p>My application consists of 3 tabs,and from the first tab I am using a button to go to a new activity. On my new activity I am saving data to SQLite DATABASE. and when I return back to the Tab it does not get refreshed automatically. To bring the data on Tab I have to either restart the app or when I move to 3rd tab ... | My application consists of 3 tabs,and from the first tab I am using a button to go to a new activity. On my new activity I am saving data to SQLite DATABASE. and when I return back to the Tab it does not get refreshed automatically. To bring the data on Tab I have to either restart the app or when I move to 3rd tab by ... | android|android-tablayout | 2 | 2016-05-10T09:33:33.837Z | 2,016 | 5 | 9 | 1 | 2,686 | 1 | 622 | 87 | 2 | 2 | true | false | true | false | false | false | low |
37,134,559 | Text on an ActionBar Icon is not updating on new count | <p>am inflating menu item inside fragments <code>onCreateOptionsMenu()</code>.</p>
<p>Point 1 :
But here <code>onCreateOptionsMenu</code> is calling multiple time, am no where calling <code>invalidateOptionMenu()</code> inside fragment and am not getting why it is like this.</p>
<p>Point 2:
I am updating cart count ... | am inflating menu item inside fragments onCreateOptionsMenu() . Point 1 : But here onCreateOptionsMenu is calling multiple time, am no where calling invalidateOptionMenu() inside fragment and am not getting why it is like this. Point 2: I am updating cart count (badge count) please look my code below, mCartCountTextVie... | android|toolbar | 1 | 2016-05-10T09:35:05.390Z | 2,016 | 5 | 9 | 1 | 106 | 0 | 672 | 54 | 2 | 2 | true | true | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.