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,048,460 | Android MediaStore query MediaStore.MediaColumns.TITLE column is null for some files | <p>I'm making a query on the Android's MediaStore Files Database -<code>MediaStore.Files.getContentUri("external")</code> - and, for some specific folders, both the <code>MediaStore.MediaColumns.TITLE</code>, and <code>MediaStore.MediaColumns.DISPLAY_NAME</code> are null while for other folders this value exists.
I cou... | I'm making a query on the Android's MediaStore Files Database - MediaStore.Files.getContentUri("external") - and, for some specific folders, both the MediaStore.MediaColumns.TITLE , and MediaStore.MediaColumns.DISPLAY_NAME are null while for other folders this value exists. I couldn't find any documentation about Media... | android|sql-order-by|android-cursor|mediastore | 12 | 2016-05-05T10:41:42.250Z | 2,016 | 5 | 10 | 3 | 783 | 1 | 815 | 84 | 4 | 2 | true | false | false | false | true | false | medium |
37,048,549 | Making changes to fragment in Asynctask's onPostExecute() method | <p>I am trying to hide progress bar and set an error message on an edit text in a fragment from an <code>onPostExecute()</code> but my app keeps crashing. I need some help on how to correctly do this. I will be doing a lot of updates to my fragments for this project so I need to know the right way TO UPDATE A FRAGMENT... | I am trying to hide progress bar and set an error message on an edit text in a fragment from an onPostExecute() but my app keeps crashing. I need some help on how to correctly do this. I will be doing a lot of updates to my fragments for this project so I need to know the right way TO UPDATE A FRAGMENT FROM OnPostExecu... | java|android|android-fragments|android-asynctask|android-progressbar | 3 | 2016-05-05T10:45:55.573Z | 2,016 | 5 | 10 | 3 | 520 | 2 | 520 | 64 | 5 | 1 | true | false | false | false | false | false | low |
37,048,666 | how to add a request to a request queue in fragment | <p>I am making an app that has four tabs in the tabs I am using a json request to get the data of events from a url.When I run the code its displays a null pointer exception error.</p>
<p>Here is my code</p>
<pre><code>package com.alex.jay.turnapp;
import android.app.ProgressDialog;
import android.content.Context;
i... | I am making an app that has four tabs in the tabs I am using a json request to get the data of events from a url.When I run the code its displays a null pointer exception error. Here is my code [CODE] Here is the AppController code [CODE] Here is the error [CODE] Please help | java|android|nullpointerexception | 0 | 2016-05-05T10:51:19.790Z | 2,016 | 5 | 10 | 3 | 1,204 | 1 | 275 | 51 | 3 | 3 | true | false | false | false | false | false | zero |
37,048,697 | Android Button not working in activity dialog | <p>I created an activity with an EditText widget and Button and made it to show as a dialog box. Its showing pretty good when its open but whenever i set the onClickListener on the button inside that activity (the dialog one), the activity wont open at all and and the app crushes with the error below:</p>
<pre><code>0... | I created an activity with an EditText widget and Button and made it to show as a dialog box. Its showing pretty good when its open but whenever i set the onClickListener on the button inside that activity (the dialog one), the activity wont open at all and and the app crushes with the error below: [CODE] Please help. ... | android|button|android-activity|dialog|android-edittext | 0 | 2016-05-05T10:52:57.377Z | 2,016 | 5 | 10 | 3 | 182 | 1 | 423 | 45 | 5 | 3 | true | false | false | false | false | false | zero |
37,048,836 | error when i am trying to run android app | <pre><code><?xml version="1.0" encoding="utf-8"?><<manifest >
<xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.mahdi.lebtaxi"
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<a... | [CODE] | android-manifest | 0 | 2016-05-05T10:58:36.323Z | 2,016 | 5 | 10 | 3 | 19 | 1 | 6 | 41 | 1 | 1 | true | false | false | false | false | false | zero |
37,048,985 | Android Image gridview using date header | <p>I am trying to do a image gallery which is going to show images ordered by date
i have found custom gallery code and the code is working well </p>
<p>can anybody help me sort the images by date </p>
<pre><code>Date---
Img1 Img2 Img3
Date---
Img1 Img2 Img3
public class MyGalleryActivity extends Activity {
pri... | I am trying to do a image gallery which is going to show images ordered by date i have found custom gallery code and the code is working well can anybody help me sort the images by date [CODE] Kindly kelp me to find a better solution | android|gridview|image-gallery | 0 | 2016-05-05T11:05:41.407Z | 2,016 | 5 | 11 | 3 | 212 | 0 | 233 | 40 | 3 | 1 | true | true | false | false | false | false | zero |
37,048,999 | Android Studio cannot find com.android.tools.build:grade:2.10 | <p>Having resolved an error thanks to tihs <a href="https://stackoverflow.com/questions/34814368/gradle-version-2-10-is-required-error">'Gradle Version 2.10 is required'</a> post. I'm not getting a new error.</p>
<p>I've been trying to follow answers <a href="https://stackoverflow.com/questions/34157716/android-studio... | Having resolved an error thanks to tihs 'Gradle Version 2.10 is required' post. I'm not getting a new error. I've been trying to follow answers like this one but nothing I try seems to work. I wonder if this is because I'm on a later version of gradle and Android Studio. I'm still getting this error in Android Studio [... | android|android-studio|gradle|ionic-framework | 2 | 2016-05-05T11:06:10.157Z | 2,016 | 5 | 11 | 3 | 3,578 | 3 | 613 | 61 | 4 | 3 | true | false | true | false | false | false | low |
37,049,075 | display master page over navigation bar in xamarin forms droid project | <p>For those of you used to code in Java for Android, I believe you'll immediatly understand this concept, while others might not, but it's ok, I'll do my best to try and explain what I mean.</p>
<p>I have this project, company one, to deliver at work, in which I have to develop an App that, among other things, contai... | For those of you used to code in Java for Android, I believe you'll immediatly understand this concept, while others might not, but it's ok, I'll do my best to try and explain what I mean. I have this project, company one, to deliver at work, in which I have to develop an App that, among other things, contains the Navi... | android|material-design|xamarin.forms|master-detail|navigationbar | 1 | 2016-05-05T11:09:50.407Z | 2,016 | 5 | 11 | 3 | 5,209 | 1 | 1,870 | 70 | 5 | 4 | true | false | true | false | false | false | low |
37,049,092 | Publishing an .apk into IBM Application Center from MobileFirst Studio | <p>I'm trying to publish a HelloWorld android app into an IBM Application Center Server but I get this error when I try it from my MobileFirst Studio:</p>
<blockquote>
<p>An error occurred while attempting to publish an application to the IBM Application Center server. Verify that the URL (protocol, host, port numbe... | I'm trying to publish a HelloWorld android app into an IBM Application Center Server but I get this error when I try it from my MobileFirst Studio: An error occurred while attempting to publish an application to the IBM Application Center server. Verify that the URL (protocol, host, port number and context) is correct ... | android|apk|ibm-mobilefirst|mobilefirst-appcenter | 0 | 2016-05-05T11:10:33.727Z | 2,016 | 5 | 11 | 3 | 223 | 1 | 774 | 70 | 4 | 1 | true | false | false | false | false | false | zero |
37,049,346 | Upload file in Retrofit 2 | <p><a href="https://i.stack.imgur.com/ZDYkj.png*" rel="noreferrer"><img src="https://i.stack.imgur.com/ZDYkj.png*" alt="enter image description here"></a></p>
<p>I tried the following but on response i am getting 500 error (Internal Server Error) -- help me design the interface for the request in the above screenshot.... | I tried the following but on response i am getting 500 error (Internal Server Error) -- help me design the interface for the request in the above screenshot...thanks [CODE] | android|android-studio|retrofit2 | 11 | 2016-05-05T11:23:12.037Z | 2,016 | 5 | 11 | 3 | 29,148 | 4 | 172 | 25 | 3 | 1 | true | false | true | true | true | false | medium |
37,049,393 | Butter Knife view holder pattern in custom adapter | <p>I'm trying to use Butter Knife in a custom adapter like the documentation advertises: <a href="http://jakewharton.github.io/butterknife/" rel="nofollow">http://jakewharton.github.io/butterknife/</a>
I pasted the example code and inserted the layout with my <code>RelativeLayout</code> file:</p>
<pre><code> @Overri... | I'm trying to use Butter Knife in a custom adapter like the documentation advertises: http://jakewharton.github.io/butterknife/ I pasted the example code and inserted the layout with my RelativeLayout file: [CODE] This is the code of the ViewHolder (inline class of PeopleAdapter ): [CODE] Unfortunately, holder.name.set... | android|android-viewholder|butterknife | 5 | 2016-05-05T11:25:56.663Z | 2,016 | 5 | 11 | 3 | 5,561 | 1 | 705 | 50 | 3 | 6 | true | false | true | false | false | false | low |
37,049,526 | Change second fragment based on choice in first fragment | <p>I have three fragments in my activity. How can I change the content of the second fragment (chapter) based on what book I select?</p>
<p><img src="https://i.stack.imgur.com/93SMw.png" alt="my app"></p>
<pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
... | I have three fragments in my activity. How can I change the content of the second fragment (chapter) based on what book I select? [CODE] | android | 0 | 2016-05-05T11:33:15.820Z | 2,016 | 5 | 11 | 3 | 146 | 1 | 136 | 56 | 1 | 1 | true | false | false | false | false | false | zero |
37,049,661 | How to display a particular text view text as a toast message in custom list view? | <p>I have a custom list view.And in each row, there is 3 text view
This is my custom list view adapter.
How to display a particular text view text as a toast message in custom list view and also to sent that text in another activity ?</p>
<p>Detail is my getter and setter class</p>
<pre><code>public class CustomList... | I have a custom list view.And in each row, there is 3 text view This is my custom list view adapter. How to display a particular text view text as a toast message in custom list view and also to sent that text in another activity ? Detail is my getter and setter class [CODE] | android|listview | 1 | 2016-05-05T11:39:25.240Z | 2,016 | 5 | 11 | 3 | 204 | 2 | 275 | 82 | 2 | 1 | true | false | false | false | false | false | low |
37,049,736 | How do I process broadcasts that were sent while my activity was stopped? | <p>My activity starts a service which runs a CountDownTimer. The timer sends broadcasts back to the activity as it counts down. The activity processes the broadcasts in the onReceive method of a BroadcastReceiver. All of this works fine. </p>
<p>My problem comes when the following events happen in this order:</p>
<ol... | My activity starts a service which runs a CountDownTimer. The timer sends broadcasts back to the activity as it counts down. The activity processes the broadcasts in the onReceive method of a BroadcastReceiver. All of this works fine. My problem comes when the following events happen in this order: App is stopped (via ... | java|android | 3 | 2016-05-05T11:43:51.733Z | 2,016 | 5 | 11 | 3 | 109 | 4 | 1,058 | 73 | 2 | 2 | true | false | false | false | false | false | low |
37,049,954 | creating delay in execution of program | <p>I want to create a delay in my code in such a way that one portion should be executed after 5 seconds and other portion after 10 seconds. I have tried TRY CAtcH threading but don't know where is the issue.. here Is my code kindly have a look at it.. Thanks in adavnce....</p>
<pre><code> // This portion to be execut... | I want to create a delay in my code in such a way that one portion should be executed after 5 seconds and other portion after 10 seconds. I have tried TRY CAtcH threading but don't know where is the issue.. here Is my code kindly have a look at it.. Thanks in adavnce.... [CODE] // This portion to be executed after 10 s... | java|android|android-studio | 0 | 2016-05-05T11:55:26.663Z | 2,016 | 5 | 11 | 3 | 62 | 3 | 333 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
37,050,106 | How to parse Json object containing an array in Android? | <p>I am very new to this, so I have no idea how to do it and I'm still in the process of learning how to parse JSON files. I am trying to parse <a href="http://api.androidhive.info/contacts/" rel="nofollow">this</a> JSON Object using Volley, but I am missing the logic on what to do next. Thank you!
Here's my code:</p>
... | I am very new to this, so I have no idea how to do it and I'm still in the process of learning how to parse JSON files. I am trying to parse this JSON Object using Volley, but I am missing the logic on what to do next. Thank you! Here's my code: [CODE] | android|json | 0 | 2016-05-05T12:02:42.303Z | 2,016 | 5 | 12 | 3 | 941 | 4 | 252 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
37,050,212 | How do I send a text message in Android? | <p>How do I send a text message? It seems simple but it doesn't work for me.</p>
<p>I have the permission in the manifest:</p>
<pre><code><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.healthapp.healthapp">
<uses-permission android:name="android.permission.SEND_SMS"/>
... | How do I send a text message? It seems simple but it doesn't work for me. I have the permission in the manifest: [CODE] I then have this code in my onClick: [CODE] But when I run this I get "Unfortunately App has stopped." And the error message of: [CODE] | java|android|sms|smsmanager | 1 | 2016-05-05T12:07:07.213Z | 2,016 | 5 | 12 | 3 | 3,092 | 2 | 255 | 40 | 4 | 3 | true | false | true | false | false | false | low |
37,050,219 | How to add click event on expandablelistview group which has no child | <p>In my expandablelistview some have children and some doesn't. GroupView's which have no children contain a Textview and a Button. On clicking the button, i need to pass the textview's data to next activity through intent. Now my problem is, i can't able to set the onclick event on groupview's button which has no chi... | In my expandablelistview some have children and some doesn't. GroupView's which have no children contain a Textview and a Button. On clicking the button, i need to pass the textview's data to next activity through intent. Now my problem is, i can't able to set the onclick event on groupview's button which has no child ... | android|expandablelistview | 3 | 2016-05-05T12:07:26.387Z | 2,016 | 5 | 12 | 3 | 5,024 | 2 | 612 | 69 | 2 | 2 | true | false | true | false | false | false | low |
37,050,241 | Https connection Android with Http authentication | <p>I want to make a HTTPS connection with a webservice in Android Studio but it doesn't work with the code that I have written. I get a FileNotFound Exception.</p>
<p>My URL is working in the browser.</p>
<p>And response code is 400.</p>
<p>This is my code:</p>
<pre><code> protected Void doInBackground(String... pa... | I want to make a HTTPS connection with a webservice in Android Studio but it doesn't work with the code that I have written. I get a FileNotFound Exception. My URL is working in the browser. And response code is 400. This is my code: [CODE] Someone who can help me out? | java|android|android-studio|https|http-authentication | 2 | 2016-05-05T12:08:17.640Z | 2,016 | 5 | 12 | 3 | 275 | 0 | 269 | 49 | 5 | 1 | true | true | false | false | false | false | low |
37,050,255 | How to refresh a ListView when I delete all SQLite table data in Android | <p>I have a listview with elements coming from a SQLite table, when I delete the contents of the table and try to refresh the listview I get a null exception </p>
<p>I do the following</p>
<pre><code>mHelper.clearDatabase("TableName");
Adapter.clear();
Adapter.notifyDataSetChanged();
public void clearDatabase(String... | I have a listview with elements coming from a SQLite table, when I delete the contents of the table and try to refresh the listview I get a null exception I do the following [CODE] How I am going to refresh my listview from a table which contains nothing? The message from LogCat [CODE] | android|sqlite|listview | 0 | 2016-05-05T12:09:06.510Z | 2,016 | 5 | 12 | 3 | 161 | 1 | 286 | 72 | 3 | 2 | true | false | false | false | false | false | zero |
37,050,302 | Java Sockets Android - can read only on second access | <p>i'm happy to ask my first android question now; I've got a slight problem while accessing a member variable of the following inner class named tcpIpClient. First, template gets instantiated in my MainActivity, which launches an instance of my connection class and the connection gets set. In The putMsg method in the ... | i'm happy to ask my first android question now; I've got a slight problem while accessing a member variable of the following inner class named tcpIpClient. First, template gets instantiated in my MainActivity, which launches an instance of my connection class and the connection gets set. In The putMsg method in the tem... | java|android|sockets | 3 | 2016-05-05T12:11:20.570Z | 2,016 | 5 | 12 | 3 | 72 | 0 | 1,557 | 53 | 3 | 2 | true | true | false | false | false | false | low |
37,050,322 | Deleting an image not reflecing in the gallery | <p>I have a base navigation drawer activity, which will load a fragment. The fragment has a <code>RecyclerView</code> in its layout. The RecyclerView has an adapter which uses <code>Glide</code> to load images from my local folder. I have a detailView activity to show the full-screen image. In the full-screen view, I h... | I have a base navigation drawer activity, which will load a fragment. The fragment has a RecyclerView in its layout. The RecyclerView has an adapter which uses Glide to load images from my local folder. I have a detailView activity to show the full-screen image. In the full-screen view, I have a menu option to delete t... | android|android-fragments|imageview|android-imageview|android-glide | 3 | 2016-05-05T12:12:09.240Z | 2,016 | 5 | 12 | 3 | 94 | 1 | 623 | 46 | 5 | 5 | true | false | false | false | false | false | low |
37,050,335 | ImageView setImageBitmap after Crop not working | <p>This is my code:</p>
<pre><code>File cropImage = new File(Environment.getExternalStorageDirectory(), "o_crop_image.jpg");
try {
if (cropImage.exists()) {
cropImage.delete();
}
cropImage.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
cropUri = Uri.fromFile(cropImage);
Inte... | This is my code: [CODE] And onActivityResult : [CODE] The code photo.setImageBitmap(bitmap) should work, but the ImageView didn't show any picture. the bitmap I get is ok which I can find in the SD. Even other bitmaps can't be set in the ImageView, but the method setImageResource is ok. I there anyone can help ? | android|bitmap|imageview | 0 | 2016-05-05T12:12:45.330Z | 2,016 | 5 | 12 | 3 | 254 | 1 | 313 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
37,050,350 | android: my WakefulBroadcastReceiver class doesn't work after adding Static fields to my class | <p>I'm writing an Android application which has to be booted on start up. I extended a class called "WakeFulBootCompletedIntentReceiver" from "WakefulBroadcastReceiver" to catch the boot completed event. the class works fine just only before adding static fields/methods.
I mean the below code:</p>
<pre><code>public cl... | I'm writing an Android application which has to be booted on start up. I extended a class called "WakeFulBootCompletedIntentReceiver" from "WakefulBroadcastReceiver" to catch the boot completed event. the class works fine just only before adding static fields/methods. I mean the below code: [CODE] } works fine. But by ... | android-studio | 1 | 2016-05-05T12:13:27.970Z | 2,016 | 5 | 12 | 3 | 124 | 0 | 422 | 94 | 1 | 2 | true | true | false | false | false | false | low |
37,050,362 | ListView in Fragment - onItemClickListener not working | <p>I have this Fragment: <a href="http://pastebin.com/zj5DLpwX" rel="nofollow">http://pastebin.com/zj5DLpwX</a>
But my onItemClickListener is not working, it doesnt open the DetailActivity...
I just added the xml layouts, do you need some code?
Any ideas?</p>
<p>fragment_v: </p>
<pre><code><?xml version="1.0" enco... | I have this Fragment: http://pastebin.com/zj5DLpwX But my onItemClickListener is not working, it doesnt open the DetailActivity... I just added the xml layouts, do you need some code? Any ideas? fragment_v: [CODE] list_item: [CODE] This is the Fragment Code [CODE] | android|listview|fragment|onitemclicklistener | 0 | 2016-05-05T12:14:04.503Z | 2,016 | 5 | 12 | 3 | 949 | 3 | 264 | 54 | 4 | 3 | true | false | false | false | false | false | zero |
37,050,388 | TextView set DrawableRight/Left... alignment | <p>I have few TextViews with drawable icons on left side.
layout:</p>
<pre><code> <android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:l... | I have few TextViews with drawable icons on left side. layout: [CODE] Screenshot: If the text is too big, icon stand in the center of textview. I want to set icon aligned top of textview. Is it possible? | android|textview | 2 | 2016-05-05T12:15:24.857Z | 2,016 | 5 | 12 | 3 | 867 | 4 | 203 | 44 | 2 | 1 | true | false | false | false | false | false | low |
37,050,390 | Use Picasso in listview | <p>I need help with connecting picasso to listview, do not know how to do this, picasso connected and it works, but the fact that one was already in another problem.
The list must be of a picture, and then all that has been done (checkbox and text). Due to the fact that I'm a novice, I do not know what to do for it. I ... | I need help with connecting picasso to listview, do not know how to do this, picasso connected and it works, but the fact that one was already in another problem. The list must be of a picture, and then all that has been done (checkbox and text). Due to the fact that I'm a novice, I do not know what to do for it. I wil... | java|android|listview|picasso | 1 | 2016-05-05T12:15:32.137Z | 2,016 | 5 | 12 | 3 | 371 | 3 | 404 | 23 | 4 | 1 | true | false | false | false | false | false | low |
37,050,400 | How to display Bitmap image in Dialog by copying it to another Bitmap Object? | <p>I am trying to "inflate" or "enlarge" an image that I loaded from a URL into an ImageView. I want to then take the Bitmap that was loaded and store it into a Bitmap Object so that I can call an AlertDialog with another ImageView and set its ImageBitmap to the one I stored. </p>
<p>I used this AsyncTask class to do ... | I am trying to "inflate" or "enlarge" an image that I loaded from a URL into an ImageView. I want to then take the Bitmap that was loaded and store it into a Bitmap Object so that I can call an AlertDialog with another ImageView and set its ImageBitmap to the one I stored. I used this AsyncTask class to do this: [CODE]... | android|bitmap|android-asynctask|dialog|imageview | 0 | 2016-05-05T12:16:05.873Z | 2,016 | 5 | 12 | 3 | 1,615 | 2 | 676 | 77 | 5 | 2 | true | false | false | false | false | false | zero |
37,050,449 | How to add API KEY in HTTP Header for URL authentication token in android studio volley? | <p>I have looked into so many sample and codes but still i am getting the response Auth Failed in volley JsonArrayRequest. Can anyone tell what wrong am i doing here.</p>
<p>Below is my code:</p>
<pre><code>RequestQueue queue = Volley.newRequestQueue(act);
if (isOnline()) {
pDialog.show();
JsonArr... | I have looked into so many sample and codes but still i am getting the response Auth Failed in volley JsonArrayRequest. Can anyone tell what wrong am i doing here. Below is my code: [CODE] i am stuck this for one day. | android|android-studio|http-headers|android-volley | 1 | 2016-05-05T12:18:59.157Z | 2,016 | 5 | 12 | 3 | 1,388 | 1 | 217 | 88 | 4 | 1 | true | false | false | false | false | false | low |
37,050,495 | Constructing Class Diagram for Android applications | <p>I have about 30 classes resides in 7 packages in my android application: </p>
<p><a href="https://i.stack.imgur.com/MZUC8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MZUC8.png" alt="enter image description here"></a></p>
<p>I want to make a class diagram and CRC ( class responsibility collab... | I have about 30 classes resides in 7 packages in my android application: I want to make a class diagram and CRC ( class responsibility collaboration) cards for it. But I get confused because the class diagram will be a large and complicated diagram. According to this Answer form a previous question. I had to make a cla... | android|class|uml|diagram|modeling | 0 | 2016-05-05T12:21:05.523Z | 2,016 | 5 | 12 | 3 | 2,799 | 2 | 631 | 51 | 5 | 0 | false | false | true | false | false | false | zero |
37,050,536 | Not allow me to run the emulator on android studio for lack of driver in the operating system Ubuntu 16.04 | <p>i'm using android studio 2.0 in ubuntu 16.04 and don let me run the emulator avd because apparently it lacks a driver. How i could solve this problem?</p>
<p>this is the exception that throws after i run the emulator</p>
<pre><code>Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: ra... | i'm using android studio 2.0 in ubuntu 16.04 and don let me run the emulator avd because apparently it lacks a driver. How i could solve this problem? this is the exception that throws after i run the emulator [CODE] Would appreciate any response! | android-studio|android-emulator|avd|ubuntu-16.04 | 8 | 2016-05-05T12:23:09.580Z | 2,016 | 5 | 12 | 3 | 4,556 | 3 | 247 | 106 | 4 | 1 | true | false | true | false | false | false | medium |
37,050,542 | Facebook login not logging in after log out Android | <p>I am building an android application that uses the Facebook SDK. I am currently using the LoginManager to handle the login flow.
I have already initialised the Facebook sdk in the Applications onCreate method.</p>
<pre><code>public class DummyApplication extends Application {
@Override
public void onCreat... | I am building an android application that uses the Facebook SDK. I am currently using the LoginManager to handle the login flow. I have already initialised the Facebook sdk in the Applications onCreate method. [CODE] I have also setup my LoginActivity as such: [CODE] The flow is that once the login button is pressed, i... | android|facebook|sdk|facebook-login|logout | 2 | 2016-05-05T12:23:23.863Z | 2,016 | 5 | 12 | 3 | 930 | 1 | 1,006 | 51 | 5 | 2 | true | false | false | false | false | false | low |
37,050,574 | Android Cursor initialization | <p>I have designed a database. Here is my code: </p>
<pre><code> Cursor cursor =database.query(ColumnID.AGENT_TABLE,null,null,null,null,null,null);
while (cursor.moveToNext()) {
County county = new County();
county.setId(cursor.getString(cursor
.getColumnIndex(... | I have designed a database. Here is my code: [CODE] Unfortunately, I'm getting this error: [CODE] Reference: Android Cursor initialization | android|sqlite | 0 | 2016-05-05T12:25:20.833Z | 2,016 | 5 | 12 | 3 | 4,507 | 2 | 138 | 29 | 2 | 2 | true | false | true | false | false | false | zero |
37,050,607 | Play audio Stream with AudioTrack in Marshmallow | <p>When I try to execute this part of code in android Lollipop version. Everything is ok. But in Marshmallow version is not working : </p>
<pre><code>public static void play() {
InputStream generetedStream = ...;
int minBufferSize = AudioTrack.getMinBufferSize(16000, AudioFormat.CHANNEL_CONFIGURATION_MONO, ... | When I try to execute this part of code in android Lollipop version. Everything is ok. But in Marshmallow version is not working : [CODE] Added permissions : [CODE] is there any changing AudioTrack in Marshmallow version ??? | android|android-6.0-marshmallow|android-5.1.1-lollipop | 1 | 2016-05-05T12:27:19.313Z | 2,016 | 5 | 12 | 3 | 1,051 | 1 | 224 | 48 | 3 | 2 | true | false | false | false | false | false | low |
37,050,758 | The system cannot find the file specified in android studio? | <p>I am trying to create a new sample app in Android Studio 2.0. When I try to Run or debug it shows a compile time error like,</p>
<p>Execution failed for task ':app:compileDebugJavaWithJavac'.</p>
<blockquote>
<p>java.io.FileNotFoundException: D:\Android Studio\newapp\app\libs\core.jar (The system cannot find the... | I am trying to create a new sample app in Android Studio 2.0. When I try to Run or debug it shows a compile time error like, Execution failed for task ':app:compileDebugJavaWithJavac'. java.io.FileNotFoundException: D:\Android Studio\newapp\app\libs\core.jar (The system cannot find the file specified) I had tried by gi... | android | 3 | 2016-05-05T12:34:29.550Z | 2,016 | 5 | 12 | 3 | 6,977 | 1 | 608 | 60 | 1 | 1 | true | false | true | false | false | false | low |
37,050,799 | Xamarin.Forms Search Widget is not showing | <p>I tried to use Search Widget in my Xamarin.Forms project as people doing it in Xamarin.Android but it is not working. I want the same result as you see on image below.<a href="http://i.stack.imgur.com/BM2Ku.jpg" rel="nofollow">enter image description here</a>
Here is my code:</p>
<pre><code>**Main Activity :**
usin... | I tried to use Search Widget in my Xamarin.Forms project as people doing it in Xamarin.Android but it is not working. I want the same result as you see on image below. enter image description here Here is my code: [CODE] | c#|android|xamarin.forms | 0 | 2016-05-05T12:36:42.227Z | 2,016 | 5 | 12 | 3 | 813 | 1 | 220 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
37,050,880 | LibGDX fps drop by just moving one object | <p>I am moving a single object in libgdx but animation is not smooth. I tested on my LG device and also on genymotion but fps is less than 60. I don't know what i am doing wrong. Please tell me why fps is dropping. Here is my fps log and code</p>
<p><a href="http://i.stack.imgur.com/kHOAk.png" rel="nofollow">FPS LOG</... | I am moving a single object in libgdx but animation is not smooth. I tested on my LG device and also on genymotion but fps is less than 60. I don't know what i am doing wrong. Please tell me why fps is dropping. Here is my fps log and code FPS LOG [CODE] | android|libgdx|frame-rate | 0 | 2016-05-05T12:41:27.667Z | 2,016 | 5 | 12 | 3 | 124 | 0 | 254 | 41 | 3 | 1 | true | true | false | false | false | false | zero |
37,051,324 | GridView item fades to become invisible when scrolling down | <p>The GridView item becomes invisible when I scroll it down. This does not happen all the time but generally happens on the MOTOROLA NEXUS SIX.</p>
<p>I haven't used VIEW.GONE or VIEW.INVISIBLE in my adapter code. </p>
<p>Can you please help me on this?</p>
<p>Below is the adapter code -</p>
<pre><code>public Like... | The GridView item becomes invisible when I scroll it down. This does not happen all the time but generally happens on the MOTOROLA NEXUS SIX. I haven't used VIEW.GONE or VIEW.INVISIBLE in my adapter code. Can you please help me on this? Below is the adapter code - [CODE] | android|android-studio|gridview|android-adapter|baseadapter | 1 | 2016-05-05T13:01:14.840Z | 2,016 | 5 | 13 | 3 | 137 | 0 | 271 | 59 | 5 | 1 | true | true | false | false | false | false | low |
37,051,358 | OpenGL ES 2.0 Specular light generates black border | <p>I've been working on light mechanics for an app and got the diffuse light (ambient and directional) working just fine, but the specular light creates some weird effects. As if it nullifies the diffuse light in a strip around it.</p>
<p>Here is the specular light calculation.</p>
<pre><code>vec3 directionToEye = no... | I've been working on light mechanics for an app and got the diffuse light (ambient and directional) working just fine, but the specular light creates some weird effects. As if it nullifies the diffuse light in a strip around it. Here is the specular light calculation. [CODE] And then the overall light calculation funct... | java|android|opengl-es|glsl|specular | 1 | 2016-05-05T13:02:52.643Z | 2,016 | 5 | 13 | 3 | 371 | 1 | 730 | 51 | 5 | 4 | true | false | false | false | false | false | low |
37,051,360 | Android CountDownTimer is not getting cancel | <p>I have created a countdown timer for 5 mins but if user complete the task in 2 mins i want to stop the timer.</p>
<p>I am using a boolean flag to check weather user complete the task or not.</p>
<p>If user completed the task before total time then i am calling <code>cancel()</code></p>
<p><strong>My Code</strong>... | I have created a countdown timer for 5 mins but if user complete the task in 2 mins i want to stop the timer. I am using a boolean flag to check weather user complete the task or not. If user completed the task before total time then i am calling cancel() My Code [CODE] cancel() is countdown timmer methods mentioned he... | android|countdowntimer | 0 | 2016-05-05T13:02:56.503Z | 2,016 | 5 | 13 | 3 | 123 | 1 | 422 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
37,051,525 | How to calling TabLayout into FrameLayout with Fragment | <p>I want to make an application like on the following photo. I have a Tab Layout and Navigation Drawer in the my Main Activity.</p>
<p>I want to make as Frame Layout the field with red border. I mean my Tab Layout will be in Fragment's xml and i will get it into Frame Layout.</p>
<p><img src="https://i.stack.imgur.c... | I want to make an application like on the following photo. I have a Tab Layout and Navigation Drawer in the my Main Activity. I want to make as Frame Layout the field with red border. I mean my Tab Layout will be in Fragment's xml and i will get it into Frame Layout. Here is my activity_main.xml. activity_main.xml [COD... | toolbar|android-tablayout|android-coordinatorlayout|android-appbarlayout | 0 | 2016-05-05T13:10:35.950Z | 2,016 | 5 | 13 | 3 | 2,415 | 1 | 433 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
37,051,621 | Display data from Json String inside Android ListView | <p>I have a JSON string that looks like this:</p>
<pre><code>{"orders":[{"orderid":"561","order_date":"2016-05-04 09:23:18"},{"orderid":"560","order_date":"2016-05-04 08:56:33"}],"success":1}
</code></pre>
<p>And I want to display it inside a ListView in a Fragment Activity. Here's the code to this fragment:</p>
<pr... | I have a JSON string that looks like this: [CODE] And I want to display it inside a ListView in a Fragment Activity. Here's the code to this fragment: [CODE] I'm having errors in this following lines: [CODE] It say that SimpleAdapter cannot be applied to this class that I'm using. This is the error that I am getting: | android|json|listview|android-fragments | 1 | 2016-05-05T13:15:04.847Z | 2,016 | 5 | 13 | 3 | 119 | 1 | 318 | 53 | 4 | 3 | true | false | false | false | false | false | low |
37,051,714 | java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String | <p>Hi I have searched through Stackoverflow and Google and I believe my error is I am not initiating the variable email. But I can't figure where my error is in my code. Any help would be appreciated. Thanks.</p>
<p>The error I am getting is.</p>
<blockquote>
<p>FATAL EXCEPTION: main Process: com.xxx.loginandregis... | Hi I have searched through Stackoverflow and Google and I believe my error is I am not initiating the variable email. But I can't figure where my error is in my code. Any help would be appreciated. Thanks. The error I am getting is. FATAL EXCEPTION: main Process: com.xxx.loginandregistration, PID: 5821 java.lang.NullPo... | java|android | -1 | 2016-05-05T13:19:34.760Z | 2,016 | 5 | 13 | 3 | 3,681 | 1 | 760 | 82 | 2 | 2 | true | false | true | false | false | true | negative |
37,051,725 | java.io.EOFException and connection.getInputStream() | <p>how can i fix this probleme i can't get my InputStream
<code>InputStream inputStream = connection.getInputStream();</code></p>
<p>Function:</p>
<pre><code>StringBuffer result = new StringBuffer("");
try {
URL url = new URL(urlString);
HttpURLConnection connection = (HttpURLConnection) url.open... | how can i fix this probleme i can't get my InputStream InputStream inputStream = connection.getInputStream(); Function: [CODE] logcat: [CODE] | android|android-asynctask | 1 | 2016-05-05T13:19:59.180Z | 2,016 | 5 | 13 | 3 | 544 | 1 | 141 | 52 | 2 | 2 | true | false | false | false | false | false | low |
37,051,814 | How to get two different imageview in Recyclerview row | <p>how do i get two different imageview and textviews in each row of recyclerview
and i want to make each imageview clickable .... i have done this in list view but don't know how to do it in recycler view .... so help me to acheive this ... thanks in advance </p>
<p>here is my layout file recyclerview row</p>
<pre>... | how do i get two different imageview and textviews in each row of recyclerview and i want to make each imageview clickable .... i have done this in list view but don't know how to do it in recycler view .... so help me to acheive this ... thanks in advance here is my layout file recyclerview row [CODE] here is my adapt... | android|android-recyclerview | 2 | 2016-05-05T13:23:30.213Z | 2,016 | 5 | 13 | 3 | 2,350 | 4 | 363 | 54 | 2 | 3 | true | false | false | false | false | false | low |
37,051,823 | Make ZBAR scanner compatible with Android 6.0 (API 23) | <p>I am self-taught in Android, using Studio 2.1 and trying to get the app working on API version 23.</p>
<p>I am using ZBAR barcode scanner, to scan the barcodes of books and then do a lookup of the ISBN code.</p>
<p>This all works nicely in lower API versions. When I get to 23 there is a documented change to how A... | I am self-taught in Android, using Studio 2.1 and trying to get the app working on API version 23. I am using ZBAR barcode scanner, to scan the barcodes of books and then do a lookup of the ISBN code. This all works nicely in lower API versions. When I get to 23 there is a documented change to how Android works with a ... | android|zbar | 0 | 2016-05-05T13:23:55.537Z | 2,016 | 5 | 13 | 3 | 978 | 0 | 889 | 54 | 2 | 3 | true | true | false | false | false | false | zero |
37,051,882 | DrawerLayout not functioning and blocks not related widgets | <p>I havd an <code>Activity</code> which has a <code>TextView</code> and i wanted to add a navigation drawer to that <code>Activity</code>. So I changed my <code>XML</code> and implemented <code>DrawerLayout</code>.</p>
<p>After implementing the <code>DrawerLayout</code> it simply does not functioning(meaning it don't... | I havd an Activity which has a TextView and i wanted to add a navigation drawer to that Activity . So I changed my XML and implemented DrawerLayout . After implementing the DrawerLayout it simply does not functioning(meaning it don't open) and the FrameLayout implemented within the DrawerLayout blocks the not related t... | android|android-layout|textview|android-framelayout|drawerlayout | 0 | 2016-05-05T13:26:32.643Z | 2,016 | 5 | 13 | 3 | 83 | 1 | 1,010 | 59 | 5 | 2 | true | false | false | false | false | false | zero |
37,051,982 | RxJava Break Chain on Conditional | <p>I am creating an observable sequence and I am basically looking for a nice way to break the chain if a condition is not met. Ideally we could through an error in this scenario. This is basically to remove an if/else statement in a flatmap operator. This is something like I have now</p>
<pre><code>flatMap(new Func1&... | I am creating an observable sequence and I am basically looking for a nice way to break the chain if a condition is not met. Ideally we could through an error in this scenario. This is basically to remove an if/else statement in a flatmap operator. This is something like I have now [CODE] I've seen operators such as fi... | java|android|conditional|rx-java|rx-android | 10 | 2016-05-05T13:30:40.923Z | 2,016 | 5 | 13 | 3 | 5,282 | 1 | 490 | 33 | 5 | 1 | true | false | true | false | true | false | medium |
37,052,035 | High score is not saved in Libgdx | <p>So I have two Bitmap fonts that display scores, one for current score and one for high score. Text for current score works fine, but the one for high score isn't incrementing or saving value. </p>
<p>Here's my code of it:</p>
<pre><code> if (manager.score > highScore){
highScore = manager.score;
... | So I have two Bitmap fonts that display scores, one for current score and one for high score. Text for current score works fine, but the one for high score isn't incrementing or saving value. Here's my code of it: [CODE] What am I doing wrong? GameManager class [CODE] PREFERENCE [CODE] Note that preferences is initiali... | java|android|libgdx | 1 | 2016-05-05T13:32:53.857Z | 2,016 | 5 | 13 | 3 | 412 | 1 | 331 | 33 | 3 | 3 | true | false | false | false | false | false | low |
37,052,066 | PayPal mpl Android, initialization issue with ENV_SANDBOX | <p>I am implementing an Adaptive Payment using delayed chained payment.
To do that, I simply run the following steps:</p>
<p>1) From server side I use <a href="https://svcs.sandbox.paypal.com/AdaptivePayments/Preapproval" rel="nofollow">https://svcs.sandbox.paypal.com/AdaptivePayments/Preapproval</a> the get a preappr... | I am implementing an Adaptive Payment using delayed chained payment. To do that, I simply run the following steps: 1) From server side I use https://svcs.sandbox.paypal.com/AdaptivePayments/Preapproval the get a preapproval key 2) From client side I use mpl for Android to let the user approve the key 3) From server sid... | android|paypal|paypal-sandbox|paypal-adaptive-payments | 0 | 2016-05-05T13:34:43.103Z | 2,016 | 5 | 13 | 3 | 224 | 1 | 1,207 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
37,052,081 | Building shared FFTW library for Android | <p>I am trying to build a shared library of FFTW by means of the following script:</p>
<pre><code>INSTALL_DIR="`pwd`/jni/fftw3"
SRC_DIR="`pwd`/../fftw-3.3.4"
cd $SRC_DIR
NDK_ROOT=/path_to_android/Sdk/ndk-bundle
export PATH="$NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/:$PATH"
export SYS_... | I am trying to build a shared library of FFTW by means of the following script: [CODE] However, after executing the script I always only receive a static FFTW library even though I am using the enable-shared parameter. Is there any other way to generate the shared library file? I really need a shared library since Andr... | android-ndk|java-native-interface|shared-libraries|fftw | 0 | 2016-05-05T13:35:18.260Z | 2,016 | 5 | 13 | 3 | 1,625 | 1 | 1,843 | 40 | 4 | 3 | true | false | false | false | false | false | zero |
37,052,091 | React Native Duplicate module name | <p>Our webapp depends on React 15. To maintain parity between the Android/iOS devices, <code>import React from "react";</code> should yield React 15 even on the devices. However, after installing react@15.0.2 via npm and attempting to start the Android app in dev mode, I'm a receiving this error:</p>
<blockquote>
<p... | Our webapp depends on React 15. To maintain parity between the Android/iOS devices, import React from "react"; should yield React 15 even on the devices. However, after installing react@15.0.2 via npm and attempting to start the Android app in dev mode, I'm a receiving this error: Failed to build DependencyGraph: @prov... | android|react-native | 7 | 2016-05-05T13:35:40.520Z | 2,016 | 5 | 13 | 3 | 4,381 | 1 | 1,412 | 34 | 2 | 0 | false | false | true | false | false | false | medium |
37,052,188 | Getting data with phonegap | <p>I am trying to build Android app using phonegap.</p>
<p>I am facing the problem, When i am getting the data from database all the data is not retrieved only few number of words are displayed and rest data is not showing. I want to get the 800 words data but it is showing only 80 number of words. I dont know what is... | I am trying to build Android app using phonegap. I am facing the problem, When i am getting the data from database all the data is not retrieved only few number of words are displayed and rest data is not showing. I want to get the 800 words data but it is showing only 80 number of words. I dont know what is the proble... | php|android|cordova|phonegap-build|phonegap-desktop-app | 0 | 2016-05-05T13:40:01.180Z | 2,016 | 5 | 13 | 3 | 42 | 0 | 400 | 26 | 5 | 2 | true | true | false | false | false | false | zero |
37,052,280 | How to set the library in android studio | <p>I am trying to set a waveInApp library <a href="http://www.materialup.com/posts/waveinapp" rel="nofollow">http://www.materialup.com/posts/waveinapp</a>
I have declared all the required thing .The app
working but the background wave is not working .I am not able to set the wave function as a beginner in android de... | I am trying to set a waveInApp library http://www.materialup.com/posts/waveinapp I have declared all the required thing .The app working but the background wave is not working .I am not able to set the wave function as a beginner in android development . I am able to set the all the basic things including the media pla... | android|android-studio|android-mediaplayer|handler|android-support-library | 2 | 2016-05-05T13:44:38.593Z | 2,016 | 5 | 13 | 3 | 736 | 3 | 892 | 40 | 5 | 3 | true | false | false | false | false | false | low |
37,052,302 | What is the correct callback to get mute events from the Chromecast Receiver? | <p>I'm running into an issue where, when two devices are connected to the same cast session and when <code>BaseCastManager.setDeviceMute()</code> is called from device 1, device 2 does not receive a <code>MediaCallback.onRouteVolumeChanged()</code></p>
<p>What's the proper way to do this? Is there perhaps a different ... | I'm running into an issue where, when two devices are connected to the same cast session and when BaseCastManager.setDeviceMute() is called from device 1, device 2 does not receive a MediaCallback.onRouteVolumeChanged() What's the proper way to do this? Is there perhaps a different callback? Here's what eventually gets... | android|chromecast|google-cast | 0 | 2016-05-05T13:46:10.770Z | 2,016 | 5 | 13 | 3 | 372 | 2 | 362 | 77 | 3 | 2 | true | false | false | false | false | false | zero |
37,052,340 | Add event in calendar not working | <p>I have tried to add event in calendar using below code. Its working fine with all devices except Nexus 6 (OS 6.0.1). Its showing Log like <code>added event: content://com.android.calendar/events/1598</code> in Logcat. But that event is not showing up in my calendar.</p>
<p>Code:</p>
<pre><code>private void addEven... | I have tried to add event in calendar using below code. Its working fine with all devices except Nexus 6 (OS 6.0.1). Its showing Log like added event: content://com.android.calendar/events/1598 in Logcat. But that event is not showing up in my calendar. Code: [CODE] | android|calendar | 5 | 2016-05-05T13:48:06.157Z | 2,016 | 5 | 13 | 3 | 350 | 0 | 266 | 33 | 2 | 1 | true | true | false | false | false | false | low |
37,052,345 | Read from text file using array - Android Studio | <p>I need help as I am trying to read a number of contacts from a textfile. I have seen some tutorials but data is hardcoded not saved in a text file. My text file name is "mytextfile.txt". This is were all my data is being saved. Now I would like to display it in the list view. So far this is where I ended up. Can any... | I need help as I am trying to read a number of contacts from a textfile. I have seen some tutorials but data is hardcoded not saved in a text file. My text file name is "mytextfile.txt". This is were all my data is being saved. Now I would like to display it in the list view. So far this is where I ended up. Can anyone... | java|android|arrays|list|listview | -1 | 2016-05-05T13:48:12.560Z | 2,016 | 5 | 13 | 3 | 695 | 2 | 374 | 48 | 5 | 1 | true | false | false | false | false | true | negative |
37,052,412 | How to put result from "AsyncTask doInBackground from different class" to "TextView in MainActivity" | <p>I am new to android. This question is a phase from my steps in experimenting with android apps and web service. I have asked a question before, which is in here: <a href="https://stackoverflow.com/questions/36985939/fail-to-connect-android-to-web-service">Fail to connect android to web service</a>.
Below is my Updat... | I am new to android. This question is a phase from my steps in experimenting with android apps and web service. I have asked a question before, which is in here: Fail to connect android to web service . Below is my Updated code, my code in MainActivity: [CODE] my code in Mytask: [CODE] I got the result right in the "on... | android|web-services|callback|textview | 2 | 2016-05-05T13:51:11.480Z | 2,016 | 5 | 13 | 3 | 276 | 1 | 404 | 100 | 4 | 2 | true | false | false | false | false | false | low |
37,052,427 | Unable to resume activity - Failure delivering result | <p>My analytics are reporting the following error: </p>
<blockquote>
<p>java.lang.RuntimeException Msg: (Unable to resume activity
{com.NSouth.myapp/com.NSouth.myapp.Activity_Main}:
java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=211, result=0, data=null} to activity</p>
</bl... | My analytics are reporting the following error: java.lang.RuntimeException Msg: (Unable to resume activity {com.NSouth.myapp/com.NSouth.myapp.Activity_Main}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=211, result=0, data=null} to activity 211 is a request code I use for an in-app... | android|android-intent|android-activity | 0 | 2016-05-05T13:51:56.487Z | 2,016 | 5 | 13 | 3 | 837 | 0 | 444 | 53 | 3 | 1 | true | true | false | false | false | false | zero |
37,052,518 | Android: GoogleCloudMessaging token id not returned | <p>I want get token id by GCM</p>
<blockquote>
<p>My code :</p>
</blockquote>
<pre><code>InstanceID instanceID = InstanceID.getInstance(this);
String token = instanceID.getToken("xxxx", GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
Log.i("error", "GCM Registration Token: " + token);
</code></pre>
<blockquote>
<... | I want get token id by GCM My code : [CODE] Error Log : [CODE] How can fixed it ? | android|notifications|google-cloud-messaging | 0 | 2016-05-05T13:55:49.250Z | 2,016 | 5 | 13 | 3 | 51 | 0 | 81 | 51 | 3 | 2 | true | true | false | false | false | false | zero |
37,052,610 | setVisibility(View.Gone) work but the view still own the space | <p>I make a CustomAdapter extends BaseAdapter.In it's getView() method , I use ViewHolder. And I set a clickListener with a TextView to set a view (call it <code>A</code>)gone and another view (call it <code>B</code>)visible , but when I click the TextView , the <code>A</code> GONE but it leave a space ,so the <code>B<... | I make a CustomAdapter extends BaseAdapter.In it's getView() method , I use ViewHolder. And I set a clickListener with a TextView to set a view (call it A )gone and another view (call it B )visible , but when I click the TextView , the A GONE but it leave a space ,so the B cannot match the parent. My code like [CODE] t... | android|listview|visibility|invisible | 0 | 2016-05-05T13:59:51.723Z | 2,016 | 5 | 13 | 3 | 2,230 | 1 | 750 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
37,052,616 | Retrieving recent songs from the MediaStore | <p>After some research, I still haven't quite figured out how I would query for songs within the last 7 days. Currently, this is how I have tried to retrieve the songs, but it always seems to return empty.</p>
<pre><code>public void displayRecentSongs() {
//retrieve song info
ContentResolver musicResolver = g... | After some research, I still haven't quite figured out how I would query for songs within the last 7 days. Currently, this is how I have tried to retrieve the songs, but it always seems to return empty. [CODE] Note: I have tested it to double check if it would query for songs I have downloaded within the last week, but... | java|android|mediastore | 0 | 2016-05-05T14:00:11.553Z | 2,016 | 5 | 14 | 3 | 237 | 1 | 333 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
37,052,630 | Broadcast receiver and pending intent : Show a toast | <p>The following is the code for an alarm that has to hit the <code>BroadCast Receiver</code> : </p>
<pre><code>Intent intentWithData = new Intent(context, TokenActivity.class);
intentWithData.putExtra(Constants.ID,id);
intentWithData.putExtra(Constants.POSITION, finalI);
PendingIntent pendingIntent = PendingIntent.g... | The following is the code for an alarm that has to hit the BroadCast Receiver : [CODE] The code for the Broadcast receiver is [CODE] The manifest is : [CODE] The toast is not showing up. Where am I going wrong with this code? | android|android-intent|broadcastreceiver|alarmmanager | 9 | 2016-05-05T14:00:43.803Z | 2,016 | 5 | 14 | 3 | 16,838 | 2 | 225 | 52 | 4 | 3 | true | false | true | true | false | false | medium |
37,052,645 | Android volley get request does not work on first time | <p>I would like to send a new <code>JsonObjectRequest</code> request (GET)</p>
<p>Here is my code below:</p>
<pre><code> final VolleyApplication volleyApplication = VolleyApplication.getInstance();
volleyApplication.init(getApplicationContext());
JsonArrayRequest req = new JsonArrayRequest("http:/... | I would like to send a new JsonObjectRequest request (GET) Here is my code below: [CODE] this works on onCreate and list some object but it does not. As i see in debug mode,process works two times for this method. In first time when it is at RequestQueue requestQueue = volleyApplication.getRequestQueue(); requestQueue.... | android|android-volley|getjson | 0 | 2016-05-05T14:01:17.147Z | 2,016 | 5 | 14 | 3 | 1,211 | 1 | 496 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
37,052,817 | CoordinatorLayout - snap not working if I scroll header | <p>I have <code>CoordinatorLayout</code>, <code>AppBarLayout</code> with <code>CollapsingToolbarLayout</code> and <code>NestedScrollView</code>.
Here layout structure <em>(unimportant attributes skipped)</em>:</p>
<pre><code><android.support.design.widget.CoordinatorLayout>
<android.support.design.widget... | I have CoordinatorLayout , AppBarLayout with CollapsingToolbarLayout and NestedScrollView . Here layout structure (unimportant attributes skipped) : [CODE] If I scroll this page by touching NestedScrollView it's ok - snap flag works correctly. But if I scroll by touching header (AppBarLayout) snap not working - header ... | android|android-appcompat|android-design-library|android-coordinatorlayout | 1 | 2016-05-05T14:08:42.983Z | 2,016 | 5 | 14 | 3 | 669 | 0 | 427 | 55 | 4 | 1 | true | true | false | false | false | false | low |
37,052,841 | Not able to receive crash reports in Acralyzer from ACRA | <p>Below I have given all the crash logs printed in Logcat. I am crashing the app with the below code on a button's onclicklistener. The server is running and the device and server are in same wifi network.</p>
<pre><code>throw new RuntimeException("This is a crash");
</code></pre>
<p>I went throught the inst... | Below I have given all the crash logs printed in Logcat. I am crashing the app with the below code on a button's onclicklistener. The server is running and the device and server are in same wifi network. [CODE] I went throught the installation twice for Acralyzer and couldn't find my mistake. And I am hosting the serve... | android|couchdb|acra|couchdb-futon|acralyzer | 0 | 2016-05-05T14:09:36.590Z | 2,016 | 5 | 14 | 3 | 523 | 2 | 518 | 56 | 5 | 2 | true | false | false | false | false | false | zero |
37,052,853 | Maven Repo That Generates .so File, use as dependency in Maven Project | <p>Hell All,</p>
<p>First of all I am working with Android and I have some questions about the maven build process when it comes to automating the use of native libraries in my Android project. I say automating since currently I can take the native project (repo) and build the .so file that I need (through maven build... | Hell All, First of all I am working with Android and I have some questions about the maven build process when it comes to automating the use of native libraries in my Android project. I say automating since currently I can take the native project (repo) and build the .so file that I need (through maven build process) t... | java|android|maven|android-ndk|.so | 1 | 2016-05-05T14:10:13.903Z | 2,016 | 5 | 14 | 3 | 522 | 1 | 852 | 70 | 5 | 1 | true | false | false | false | false | false | low |
37,052,872 | ng click not calling the function --very new to angular and ionic | <p>trying to insert data to the sqlite db and the data is static that i am passing it through the function but ng click is not working. as i am new to this so please answer in details...thanks in advance.</p>
<pre><code> //this is my module
var db=null;
var myApp=angular.module('starter', ['ionic','ngC... | trying to insert data to the sqlite db and the data is static that i am passing it through the function but ng click is not working. as i am new to this so please answer in details...thanks in advance. [CODE] | android|angularjs|ionic-framework|ngcordova | 1 | 2016-05-05T14:11:06.577Z | 2,016 | 5 | 14 | 3 | 664 | 2 | 208 | 65 | 4 | 1 | true | false | false | false | false | false | low |
37,052,887 | JSON url Redirection fails | <p>I've JSON parsing Asynchronous task, When I use URL <a href="http://example.com/json/note.json" rel="nofollow">http://example.com/json/note.json</a> it is working (Using free JSON hosting service, I can't edit after saving). But my file is not placed permanently on one link. So I've Redirecting new JSON URL using U... | I've JSON parsing Asynchronous task, When I use URL http://example.com/json/note.json it is working (Using free JSON hosting service, I can't edit after saving). But my file is not placed permanently on one link. So I've Redirecting new JSON URL using URL redirection service. When I use my URL redirection service, my U... | android|json|redirect|android-asynctask|url-redirection | 0 | 2016-05-05T14:12:02.730Z | 2,016 | 5 | 14 | 3 | 114 | 1 | 521 | 26 | 5 | 2 | true | false | false | false | false | false | zero |
37,052,973 | how to enable select/copy texts in android? | <p>this is my app strategy:</p>
<ul>
<li>there is a text view that contains texts.</li>
<li>for editing them, i define Action mode items(e.g. EDIT- this will
texts of text view into edit text)although there are some default
actions like select all/copy/.. as selecting text, so i don not want
to define them.</li>
</ul>... | this is my app strategy: there is a text view that contains texts. for editing them, i define Action mode items(e.g. EDIT- this will texts of text view into edit text)although there are some default actions like select all/copy/.. as selecting text, so i don not want to define them. i use this code for enabling the def... | android|select|button|text|copy | 0 | 2016-05-05T14:15:59.887Z | 2,016 | 5 | 14 | 3 | 967 | 2 | 698 | 43 | 5 | 3 | true | false | false | false | false | false | zero |
37,053,016 | Airwatch Android implementation | <p>My question might seem really stupid, to those who have worked on android Airwatch implementation. But their documentation is not very well written, and I have a few doubts.</p>
<p>So I have setup my user, and added my device using airwatch console. </p>
<p>I have added the App restrictions code in my existing and... | My question might seem really stupid, to those who have worked on android Airwatch implementation. But their documentation is not very well written, and I have a few doubts. So I have setup my user, and added my device using airwatch console. I have added the App restrictions code in my existing android application. I ... | android|mdm|airwatch|android-for-work | 6 | 2016-05-05T14:18:12.117Z | 2,016 | 5 | 14 | 3 | 2,367 | 3 | 979 | 31 | 4 | 1 | true | false | false | false | false | false | medium |
37,053,147 | Why Android gives issues with tel attribute href="tel:8665487349"? | <p>I am trying to use this <code>href="tel:8665487349"</code> in a Web application which is responsive, when the page is on mobile, iOS works properly but on Android I am getting an issue, the pop-up is not present. It goes directly to dial the number.</p>
<p>This is the whole component</p>
<pre><code> <a h... | I am trying to use this href="tel:8665487349" in a Web application which is responsive, when the page is on mobile, iOS works properly but on Android I am getting an issue, the pop-up is not present. It goes directly to dial the number. This is the whole component [CODE] By pop-up I mean: pop-up is the one when you cli... | javascript|android|html | 1 | 2016-05-05T14:23:30.747Z | 2,016 | 5 | 14 | 3 | 100 | 0 | 635 | 66 | 3 | 1 | true | true | false | false | false | false | low |
37,053,197 | Fingerprint scanner using camera of android device | <p>I m trying to implement, capture finger image and then scan that image and get the biometric fingerprints from that image and then finaly sending that image to server.
Basically i dont have idea to work on image processing of these. so i tried Onyx SDK and the problem solved. but its a trail version. Now i need to k... | I m trying to implement, capture finger image and then scan that image and get the biometric fingerprints from that image and then finaly sending that image to server. Basically i dont have idea to work on image processing of these. so i tried Onyx SDK and the problem solved. but its a trail version. Now i need to know... | android|image-processing|sdk | 6 | 2016-05-05T14:26:31.270Z | 2,016 | 5 | 14 | 3 | 6,210 | 1 | 713 | 50 | 3 | 0 | false | false | true | false | false | false | medium |
37,053,277 | AsyncTask Android Unable To Update Progress Ring | <p>I wrote a asynctask to process json,The json result is very long (need 40 - 70 seconds to process on 2G).The asynctask publishProgress(""); function execute only after fetching and processing the json ( just before postexecute() ). How can i update each second.</p>
<pre><code> class LoadAllProducts extends Async... | I wrote a asynctask to process json,The json result is very long (need 40 - 70 seconds to process on 2G).The asynctask publishProgress(""); function execute only after fetching and processing the json ( just before postexecute() ). How can i update each second. [CODE] I refered : Android, java - Unable to update variab... | android | 0 | 2016-05-05T14:30:05.600Z | 2,016 | 5 | 14 | 3 | 87 | 2 | 466 | 48 | 1 | 1 | true | false | false | false | false | false | zero |
37,053,305 | Uncaught translation SimException: dx.rop.cst.CstInterfaceMethodRef cannot be cast to com.android.dx.rop.cst.CstMethodRef (Proguard) | <p>my team and I have been trying to solve this exception we are getting when trying to Proguard our android app before going to beta. </p>
<p>The exception we are getting is:</p>
<pre><code>Error:Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstInterfaceMethodRef cannot be c... | my team and I have been trying to solve this exception we are getting when trying to Proguard our android app before going to beta. The exception we are getting is: [CODE] We are trying to track down where this error is occurring during Proguarding but not being extremely familiar with Proguard to know how to find wher... | android|proguard | 6 | 2016-05-05T14:31:45.987Z | 2,016 | 5 | 14 | 3 | 2,511 | 2 | 926 | 132 | 2 | 2 | true | false | false | false | false | false | medium |
37,053,538 | Navigation Drawer: Multiple active elements | <p>I use menu elements inside a navigation drawer to toggle map layers, but right now only one can be highlighted, as soon as I tap on another, the previous one looses it's highlight. This is the code I have so far:</p>
<pre><code><group android:checkableBehavior="all">
<item
android:id="@... | I use menu elements inside a navigation drawer to toggle map layers, but right now only one can be highlighted, as soon as I tap on another, the previous one looses it's highlight. This is the code I have so far: [CODE] How can I achieve something like Google Maps layer multiselect navigation drawer list? Google Maps t... | java|android|navigation|drawer | 1 | 2016-05-05T14:43:52.453Z | 2,016 | 5 | 14 | 3 | 126 | 1 | 382 | 43 | 4 | 1 | true | false | false | false | false | false | low |
37,053,749 | Branch IO not Redirecting in some Browsers in Android | <p>I am using branch io SDK in Android. However, I am facing issues in redirection. The link gets redirected to my app whenever it is clicked from Facebook. However, it is not redirected to my app whenever it is clicked from a browser. This occurs randomly. In some devices, it redirects to the app from the default brow... | I am using branch io SDK in Android. However, I am facing issues in redirection. The link gets redirected to my app whenever it is clicked from Facebook. However, it is not redirected to my app whenever it is clicked from a browser. This occurs randomly. In some devices, it redirects to the app from the default browser... | android|branch.io | 0 | 2016-05-05T14:53:24.227Z | 2,016 | 5 | 14 | 3 | 379 | 0 | 606 | 53 | 2 | 2 | true | true | false | false | false | false | zero |
37,054,106 | FATAL EXCEPTION: Retrofit-Idle in Retrofit 1.9.0 before call `failure` callback in @FormUrlEncoded api method | <p>I have a method in retrofit api interface like this.</p>
<pre><code>@FormUrlEncoded
@POST("/token")
void generateToken( @Field("username") String user, @Field("password") String password,
@Field("grant_type") String grantType, Callback<JsonObject> callback);
</code></pre>
<p>I call it in ... | I have a method in retrofit api interface like this. [CODE] I call it in my login Activity by api.generateToken(userName, userPassword, GRANT_TYPE, getLoginCallback(button)); The method getLoginCallback() returns and callback. Check below: [CODE] When I get a ok result, everything works as it suppose to. But when it ge... | android|retrofit | 2 | 2016-05-05T15:09:05.470Z | 2,016 | 5 | 15 | 3 | 558 | 0 | 1,659 | 109 | 2 | 7 | true | true | false | false | false | false | low |
37,054,116 | How to get geolocated Tweets near location using twitter4j | <p>This is my first question here. I need to get tweets from any user near a location, and then put these tweets in a map as markers.
I have written this code to do the search:</p>
<pre><code>private AsyncTwitter twitter;
twitter = new TwitterHelper(this).getAsyncTwitter(); //Twitter helper is a helper class to conn... | This is my first question here. I need to get tweets from any user near a location, and then put these tweets in a map as markers. I have written this code to do the search: [CODE] I get a lot of tweets but none of them have GeoLocation data and I can't add to the map. I have been searching this forum and reading twitt... | java|android|twitter | 1 | 2016-05-05T15:09:44.107Z | 2,016 | 5 | 15 | 3 | 196 | 0 | 528 | 58 | 3 | 1 | true | true | false | false | false | false | low |
37,054,216 | Android TableLayout and horizontal gravity | <p>I have a TableLayout that contains only one row and one cell.
I would like the content of my cell to be horizontally centered.
I tried two approaches : </p>
<p>First method, I set the attribute <strong>android:gravity="center_horizontal"</strong> on the TableRow element and it works as expected :</p>
<pre><code> ... | I have a TableLayout that contains only one row and one cell. I would like the content of my cell to be horizontally centered. I tried two approaches : First method, I set the attribute android:gravity="center_horizontal" on the TableRow element and it works as expected : [CODE] Second method, I set the attribute andro... | android|layout|tablelayout|gravity | 0 | 2016-05-05T15:14:49.583Z | 2,016 | 5 | 15 | 3 | 1,726 | 1 | 527 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
37,054,222 | Android - Removing inflated layout xml from a Linear Layout | <p>I inflated internetnotconnected.xml to a linear layout. I want to remove View which is inflated layout when user clicks to button. But my way didn't work.</p>
<pre><code>if (!EZInternetConnection.isNetworkConnected(context)) {
LinearLayout LLPureCard = (LinearLayout) ((Activity) context).findViewById(R.... | I inflated internetnotconnected.xml to a linear layout. I want to remove View which is inflated layout when user clicks to button. But my way didn't work. [CODE] | android|xml|android-layout|android-studio | 1 | 2016-05-05T15:15:10.460Z | 2,016 | 5 | 15 | 3 | 3,445 | 2 | 161 | 59 | 4 | 1 | true | false | true | false | false | false | low |
37,054,244 | How to correctly use pre populated Realm database in Android? | <p>I'm on Realm 0.90.0 and I'm having problems with loading a pre populated Realm db: once I load the file from the source, <code>isEmpty</code> on the returned collection gives true, when it obviously isn't (I created it by importing a csv in Realm Browser and everything seems fine when opening the db in there).</p>
... | I'm on Realm 0.90.0 and I'm having problems with loading a pre populated Realm db: once I load the file from the source, isEmpty on the returned collection gives true, when it obviously isn't (I created it by importing a csv in Realm Browser and everything seems fine when opening the db in there). This is what I did so... | android|realm | 3 | 2016-05-05T15:16:43.217Z | 2,016 | 5 | 15 | 3 | 1,096 | 1 | 699 | 61 | 2 | 3 | true | false | false | false | false | false | low |
37,054,439 | How to add onClick event for individual cardview elements NOT in recyclerview in android? | <p>I'm working an app that has a list of cardviews and I want each cardview to open a certain activity when tapped. I am not using any recyclerviews or adapters, I have just created a multiple cardview xml files and included them into my main xml in coordinatorlayout and collapsingtoolbarlayout. I have tried to create ... | I'm working an app that has a list of cardviews and I want each cardview to open a certain activity when tapped. I am not using any recyclerviews or adapters, I have just created a multiple cardview xml files and included them into my main xml in coordinatorlayout and collapsingtoolbarlayout. I have tried to create onC... | java|android|xml | -1 | 2016-05-05T15:27:42.510Z | 2,016 | 5 | 15 | 3 | 1,081 | 1 | 584 | 89 | 3 | 3 | true | false | false | false | false | true | negative |
37,054,447 | how to increase time of NotificationCompat showing | <p>I am using NotificationCompat to show incoming call but issue is that the time limit is less, I want to show NotificationCompat for 40seconds, is there any way to increase time for showing notification, because the current time for showing notification is less than 40 seconds </p>
<pre><code> Intent dismissInten... | I am using NotificationCompat to show incoming call but issue is that the time limit is less, I want to show NotificationCompat for 40seconds, is there any way to increase time for showing notification, because the current time for showing notification is less than 40 seconds [CODE] Thanks | android|notifications | 1 | 2016-05-05T15:28:03.450Z | 2,016 | 5 | 15 | 3 | 316 | 1 | 290 | 50 | 2 | 1 | true | false | false | false | false | false | low |
37,054,537 | The LinkAssemblies Task Failed Unexpectedly - Android.Support.V7.Internal.View.Menu.MenuBuilder | <p>I've upgraded my app to the very latest Xamarin/Xamarin Android i have hit an issue when building with Sdk Assemblies Only in my Linker properties. This was not an issue with the previous version of Xamarin (3.11.1594. / 5.1.7.12) i was using.</p>
<p>I have also changed my app to use Android 6.0 (23) as the compile... | I've upgraded my app to the very latest Xamarin/Xamarin Android i have hit an issue when building with Sdk Assemblies Only in my Linker properties. This was not an issue with the previous version of Xamarin (3.11.1594. / 5.1.7.12) i was using. I have also changed my app to use Android 6.0 (23) as the compile and Target... | xamarin|xamarin.android | 1 | 2016-05-05T15:33:09.730Z | 2,016 | 5 | 15 | 3 | 600 | 1 | 381 | 95 | 2 | 1 | true | false | false | false | false | false | low |
37,054,544 | Counter Occurrences of Different Numbers in Different Columns | <p>First of all, sorry if it is a duplicated question...</p>
<p>I have an Android App (SQLITE) which check Lotery games. Basically, this lottery draws 5 numbers among 40 and I save them as follows:</p>
<pre><code>|---------------------------------------------------------------------------|
| ... | First of all, sorry if it is a duplicated question... I have an Android App (SQLITE) which check Lotery games. Basically, this lottery draws 5 numbers among 40 and I save them as follows: [CODE] Now, I would like to consult how frequent a number is selected. Example: Number 01 was drawn 1 time (in game_number==3) Numbe... | android|sql|sqlite | 1 | 2016-05-05T15:33:35.167Z | 2,016 | 5 | 15 | 3 | 60 | 1 | 1,264 | 61 | 3 | 3 | true | false | false | false | false | false | low |
37,054,550 | React Native Android GeoLocation | <p>I am trying to get the User's location in an Android React Native application. I've started by following the <a href="https://facebook.github.io/react-native/docs/geolocation.html" rel="nofollow">React Native Geolocation Tutorial</a> but am not having any luck. </p>
<p>I have added the appropriate permissions to th... | I am trying to get the User's location in an Android React Native application. I've started by following the React Native Geolocation Tutorial but am not having any luck. I have added the appropriate permissions to the Android project and inserted this code in the react native app: [CODE] I also have the initialPositio... | android|geolocation|react-native | 0 | 2016-05-05T15:33:57.180Z | 2,016 | 5 | 15 | 3 | 2,988 | 2 | 745 | 32 | 3 | 1 | true | false | true | false | false | false | zero |
37,054,574 | How do I stop my AutoCompleteTextView dropdown from scrolling over my AutoCompleteTextView? | <p>I have a <code>AppCompatAutoCompleteTextView</code> with an anchor which is further down than the <code>AppCompatAutoCompleteTextView</code>. This is by design and can not be changed. When I scroll on the dropdown, the dropdown moves up and on top of the <code>AppCompatAutoCompleteTextView</code>.</p>
<p><a href="h... | I have a AppCompatAutoCompleteTextView with an anchor which is further down than the AppCompatAutoCompleteTextView . This is by design and can not be changed. When I scroll on the dropdown, the dropdown moves up and on top of the AppCompatAutoCompleteTextView . Is that the way it should work? This is my code: Main acti... | android|android-layout|android-support-library|android-design-library | 5 | 2016-05-05T15:35:11.243Z | 2,016 | 5 | 15 | 3 | 1,852 | 3 | 422 | 91 | 4 | 2 | true | false | false | false | false | false | low |
37,054,639 | NullPointerException setOnClickListner | <p>I'm beginner of android.
This is the code I copy from a book. But when I download and run on my smartphone the NullPointerException occurs.</p>
<p>The information of the exception as below:</p>
<p>java.lang.NullPointerExcption:Attempt to invoke virtual method'void android.widget.Button.setOnClickListner on a null ... | I'm beginner of android. This is the code I copy from a book. But when I download and run on my smartphone the NullPointerException occurs. The information of the exception as below: java.lang.NullPointerExcption:Attempt to invoke virtual method'void android.widget.Button.setOnClickListner on a null object reference at... | java|android | 0 | 2016-05-05T15:38:39.770Z | 2,016 | 5 | 15 | 3 | 50 | 3 | 390 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
37,054,663 | Android ArrayAdapter performFilter clean all values | <p>I have an arrayAdapter which is filtered with a SearchView. The filtering is working, but my problem is that it also clean another entity which shouldn't be edited:</p>
<pre><code>public class LvSecurityAdapter extends ArrayAdapter<Security> implements Filterable{
private ArrayList<Security> allSec... | I have an arrayAdapter which is filtered with a SearchView. The filtering is working, but my problem is that it also clean another entity which shouldn't be edited: [CODE] As you can see I have two entities on my constructor: securities and allSecurities . securities is the entity which fills the adapter and the one wh... | android|listview|filter|android-arrayadapter | 0 | 2016-05-05T15:39:58.730Z | 2,016 | 5 | 15 | 3 | 41 | 1 | 767 | 51 | 4 | 1 | true | false | false | false | false | false | zero |
37,054,988 | Set a delay in libGDX | <p>I have now tried to set up a delay in libGDX in three different ways.</p>
<p>First I tried to use a <code>Timer</code>, but if I restart the activity, the timer won't start again. This is a known issue when using <code>GestureDetector</code>: <a href="https://github.com/libgdx/libgdx/issues/2274" rel="nofollow nore... | I have now tried to set up a delay in libGDX in three different ways. First I tried to use a Timer , but if I restart the activity, the timer won't start again. This is a known issue when using GestureDetector : https://github.com/libgdx/libgdx/issues/2274 Then I tried setting up a timer using Gdx.graphics.getDeltaTime... | java|android|libgdx | 5 | 2016-05-05T15:55:34.603Z | 2,016 | 5 | 15 | 3 | 3,527 | 3 | 948 | 21 | 3 | 0 | false | false | true | false | false | false | low |
37,055,107 | QR Login via Database using async task in android | <p>I'm developing an android app for QR authentication of an employee,the code below works but it takes time to open the next activity,so i want to put my code in an async task, i don't understand how async task works(tried a lot but didn't understand),it would be really helpful if someone can put my code in the async... | I'm developing an android app for QR authentication of an employee,the code below works but it takes time to open the next activity,so i want to put my code in an async task, i don't understand how async task works(tried a lot but didn't understand),it would be really helpful if someone can put my code in the async tas... | android | 0 | 2016-05-05T16:01:06.990Z | 2,016 | 5 | 16 | 3 | 68 | 0 | 349 | 49 | 1 | 1 | true | true | false | false | false | false | zero |
37,055,111 | Geofencing in Android not working | <p>I am trying to do Geofencing in Android. But Somehow it doesn't seem to be working.
Can anyone find the bug in my code.</p>
<p>Here is the MainActivity.</p>
<pre><code>import android.app.PendingIntent;
import android.content.Intent;
import android.location.Location;
import android.location.LocationManager;
import ... | I am trying to do Geofencing in Android. But Somehow it doesn't seem to be working. Can anyone find the bug in my code. Here is the MainActivity. [CODE] Here is the Service Declaration Service Declaration in Manifest. [CODE] | android|geofencing | 0 | 2016-05-05T16:01:12.597Z | 2,016 | 5 | 16 | 3 | 292 | 0 | 224 | 33 | 2 | 2 | true | true | false | false | false | false | zero |
37,055,164 | Unable to get any responses from a php page using android studio | <p>If I run my code I get this JSONExeption error: </p>
<blockquote>
<p>"of type java.lang.String cannot be converted to JSONObject"</p>
</blockquote>
<p>I can see my php working in a browser but am unable to get anything from the app itself. I am trying to send a username and password and retrieve the username if ... | If I run my code I get this JSONExeption error: "of type java.lang.String cannot be converted to JSONObject" I can see my php working in a browser but am unable to get anything from the app itself. I am trying to send a username and password and retrieve the username if the user exists. This is my php Code: [CODE] This... | java|php|android|json|mysqli | 0 | 2016-05-05T16:04:08.600Z | 2,016 | 5 | 16 | 3 | 107 | 1 | 351 | 64 | 5 | 2 | true | false | false | false | false | false | zero |
37,055,166 | Activity Operations in Android | <p>I am working on <code>android activity life-cycle</code>. But i have a problem with connections.</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
speedValue = (TextView) findViewById(R.id.speed_valu... | I am working on android activity life-cycle . But i have a problem with connections. [CODE] In this code im tying to get information from other activity. have to go that class and do some operations then come to our main class to be success. Our bundle comes from other activity as you see. There problem occurs right he... | java|android | 0 | 2016-05-05T16:04:11.127Z | 2,016 | 5 | 16 | 3 | 53 | 1 | 492 | 30 | 2 | 2 | true | false | false | false | false | false | zero |
37,055,228 | Creating observables that do IO work | <p>I have several resources in my app I need to load and dump into my database on first launch. I want to do this parallely.</p>
<p>So i created an observable wrapper around reading a file.</p>
<pre><code>@Override
public Observable<List<T>> loadDataFromFile() {
return Observable.create(new Observabl... | I have several resources in my app I need to load and dump into my database on first launch. I want to do this parallely. So i created an observable wrapper around reading a file. [CODE] However its not asynchronous, There are two approaches to making this asynchronous that i see: 1) Do the asynchrony inside the observ... | java|android|rx-java | 2 | 2016-05-05T16:06:52.260Z | 2,016 | 5 | 16 | 3 | 170 | 2 | 891 | 36 | 3 | 1 | true | false | false | false | false | false | low |
37,055,296 | facebook screenshot-tests-for-android thow NullPointer on make screenshot | <p>In my test</p>
<pre><code>@LargeTest
@RunWith(AndroidJUnit4.class)
public class SimpleActicityTest {
@Rule
public ActivityTestRule<MainActivity> activityActivityTestRule =
new ActivityTestRule<>(MainActivity.class);
@Test
public void testActivity() throws Exception {
Activity a = activity... | In my test [CODE] I have [CODE] source of faceebook's lib getInstance(): [CODE] It creates Registry and take public field instrumentation, but there are not instrumentation initializations in Registry constructor. How it can work? | android|gradle|screenshot | 7 | 2016-05-05T16:10:10.143Z | 2,016 | 5 | 16 | 3 | 1,261 | 1 | 230 | 73 | 3 | 3 | true | false | false | false | false | false | medium |
37,055,313 | Google Drive file upload in hybrid apps | <p>We have a hybrid app where most of the code is handled in Javascript (including logging in via Google Sign In and some uploading to Google Drive). On iOS, we have other Google Drive uploading code, but I can't figure out how to accomplish the same thing in Android. I'm trying avoid having the user log into the web p... | We have a hybrid app where most of the code is handled in Javascript (including logging in via Google Sign In and some uploading to Google Drive). On iOS, we have other Google Drive uploading code, but I can't figure out how to accomplish the same thing in Android. I'm trying avoid having the user log into the web port... | android|ios|google-drive-api | 1 | 2016-05-05T16:10:51.020Z | 2,016 | 5 | 16 | 3 | 163 | 1 | 1,078 | 39 | 3 | 2 | true | false | false | false | false | false | low |
37,055,337 | media recorder crashes when start | <p>i have a problem with media recorder. it cant be start and comes to activity thread. i cant find the problem. all permissions set.
thank you for help me:) </p>
<pre><code>private void startCaptureVideo()
{
camera = getCameraInstance();
//cameraPreview = new cameraPreview(this,camera);
tr... | i have a problem with media recorder. it cant be start and comes to activity thread. i cant find the problem. all permissions set. thank you for help me:) [CODE] | android|mediarecorder | 1 | 2016-05-05T16:12:34.493Z | 2,016 | 5 | 16 | 3 | 124 | 0 | 161 | 33 | 2 | 1 | true | true | false | false | false | false | low |
37,055,366 | if the button is selected to change the text size | <p>Such must be fair, that when selecting a button to change the text size?
I tried to add in a onCreate if but not work correctly, is cheek only one time to start the application. The function not remains active for next time.
Thank you</p>
<p>button</p>
<pre><code> <Button
android:layout_width="ma... | Such must be fair, that when selecting a button to change the text size? I tried to add in a onCreate if but not work correctly, is cheek only one time to start the application. The function not remains active for next time. Thank you button [CODE] Activity: [CODE] | java|android|android-tv | 0 | 2016-05-05T16:14:21.863Z | 2,016 | 5 | 16 | 3 | 52 | 1 | 265 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.