id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,819,415 | Google Play games services requires a metadata tag | <p>I have setup everything right, I don't know whats the problem is and I googled it a hundred time. </p>
<p>The error :</p>
<pre><code>04-24 04:40:52.266 770-1829/com.google.android.gms E/PopupManager: No content view usable to display popups. Popups will not be displayed in response to this client's calls. Use setV... | I have setup everything right, I don't know whats the problem is and I googled it a hundred time. The error : [CODE] The Activity as you can see here nothing wrong with it unless i miss something: [CODE] The Layout: [CODE] AndroidManifists: [CODE] Build.Gradle: [CODE] | android|android-studio|google-play-services | 0 | 2016-04-24T04:54:16.367Z | 2,016 | 4 | 4 | 6 | 707 | 1 | 268 | 50 | 3 | 5 | true | false | false | false | false | false | zero |
36,819,431 | When i try to open my app first time it's not showing any value fetched from my sqlite database | <p>I am facing a problem. When I open my app first time it's not showing any value fetched from my sqlite database. When I try again to open the app from my mobile it shows all values. And when I try twice it show all the value twice along with previous values... sorry for my bad English.</p>
<pre><code>import androi... | I am facing a problem. When I open my app first time it's not showing any value fetched from my sqlite database. When I try again to open the app from my mobile it shows all values. And when I try twice it show all the value twice along with previous values... sorry for my bad English. [CODE] | android|sqlite | 0 | 2016-04-24T04:56:57.143Z | 2,016 | 4 | 4 | 6 | 35 | 0 | 293 | 95 | 2 | 1 | true | true | false | false | false | false | zero |
36,819,453 | Google Cardboard SDK's sample app issues on Android 6.0.1 | <p>I'm implementing the new Google cardboard sdk's VR View to play 360 degree videos. </p>
<p>The <a href="https://github.com/googlesamples/cardboard-java" rel="nofollow">Sample project</a> provided runs fine on all devices except Samsung phones with Android 6.0.1.</p>
<p>To confirm, I tested the project on Nexus 5 r... | I'm implementing the new Google cardboard sdk's VR View to play 360 degree videos. The Sample project provided runs fine on all devices except Samsung phones with Android 6.0.1. To confirm, I tested the project on Nexus 5 running 6.0.1 and Galaxy S running on 5.1 and on both cases it worked fine. I was wondering if any... | android|google-cardboard|360-virtual-reality | 2 | 2016-04-24T04:59:57.273Z | 2,016 | 4 | 4 | 6 | 822 | 0 | 467 | 57 | 3 | 1 | true | true | false | false | false | false | low |
36,819,455 | Android: Error:(20) undefined reference to `clGetPlatformIDs' | <p>I am working with OpenCl and Android. However, it seems like I am having some linking issues.
I have the OpenCl libraries all under the jni folder of the application.
My Android.mk is the following:</p>
<pre><code>LOCAL_PATH := $(call my-dir)
LOCAL_PATH_EXT := $(call my-dir)/../external/
include $(CLEAR_VARS)
LOC... | I am working with OpenCl and Android. However, it seems like I am having some linking issues. I have the OpenCl libraries all under the jni folder of the application. My Android.mk is the following: [CODE] I am getting the following error while building the project from the C file that I have written: [CODE] This is ju... | android|opencl|gpu | 0 | 2016-04-24T05:00:19.353Z | 2,016 | 4 | 5 | 6 | 872 | 0 | 490 | 61 | 3 | 3 | true | true | false | false | false | false | zero |
36,819,493 | What's wrong with my table (SQLite)? | <p>My program was working fine, however, for this project, the variable names are very specific for the database and I have the bad habit of using my own variables names.</p>
<p>Now, it is showing me that there is a problem when I try to create the table (Select * values</p>
<p>After making the changes, the program c... | My program was working fine, however, for this project, the variable names are very specific for the database and I have the bad habit of using my own variables names. Now, it is showing me that there is a problem when I try to create the table (Select * values After making the changes, the program compiles but crashes... | java|android|sqlite | 0 | 2016-04-24T05:08:24.203Z | 2,016 | 4 | 5 | 6 | 48 | 1 | 914 | 36 | 3 | 4 | true | false | false | false | false | false | zero |
36,819,541 | AndroidStudio libgdx ChangeListener not working | <p>Android Studio-libgdx making a 2d game.
I have a Main which creates the MenuState, in the render method I made this</p>
<pre><code> @Override
public void render(float delta) {
Gdx.gl.glClearColor(0, 0, 0.2f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
camera.update();
myGame.batch.setProje... | Android Studio-libgdx making a 2d game. I have a Main which creates the MenuState, in the render method I made this [CODE] I checked some tutorials on how to make a menu and that's pretty much what I'm testing in here. But when I run the app the button appears and nothing happens if I click it. I've tried testing with ... | java|android|android-studio|libgdx | 0 | 2016-04-24T05:15:46.400Z | 2,016 | 4 | 5 | 6 | 588 | 1 | 470 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
36,819,565 | ClusterManager performance - Prevent unclustering of out of bounds clusters | <p>I have a HUGE list of markers to display on my map fragment. I implemented a ClusterManager to increase performance and it works well other than a certain situation: When the user zooms in, the clusters on screen uncluster to reveal the markers (with no performance issues), but when the user zooms out (due to the de... | I have a HUGE list of markers to display on my map fragment. I implemented a ClusterManager to increase performance and it works well other than a certain situation: When the user zooms in, the clusters on screen uncluster to reveal the markers (with no performance issues), but when the user zooms out (due to the densi... | android|performance|google-maps|google-maps-api-3|google-maps-markers | 1 | 2016-04-24T05:20:41.370Z | 2,016 | 4 | 5 | 6 | 317 | 0 | 780 | 75 | 5 | 1 | true | true | false | false | false | false | low |
36,819,575 | React Native Android Debug Keystore | <p>Question about generating API Keys for Android in React Native.</p>
<p>I'm referencing these:</p>
<p><a href="https://developers.google.com/maps/documentation/android-api/signup#release-cert" rel="noreferrer">https://developers.google.com/maps/documentation/android-api/signup#release-cert</a></p>
<p><a href="http... | Question about generating API Keys for Android in React Native. I'm referencing these: https://developers.google.com/maps/documentation/android-api/signup#release-cert https://facebook.github.io/react-native/docs/signed-apk-android.html https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation... | android|react-native|api-key | 11 | 2016-04-24T05:21:52.610Z | 2,016 | 4 | 5 | 6 | 22,879 | 2 | 820 | 35 | 3 | 1 | true | false | true | true | true | false | medium |
36,819,694 | Android fragment update issue | <p>I have three fragments using tablayout. Problem is that i save data in fragment one and wants to show data in second fragment but second fragment not update when click or swipe to second fragment because fragment not create again due to default offsetlimit 1. When i restart app again the data is showed. Any solution... | I have three fragments using tablayout. Problem is that i save data in fragment one and wants to show data in second fragment but second fragment not update when click or swipe to second fragment because fragment not create again due to default offsetlimit 1. When i restart app again the data is showed. Any solution hi... | android|android-fragments | 0 | 2016-04-24T05:39:51.720Z | 2,016 | 4 | 5 | 6 | 100 | 1 | 452 | 29 | 2 | 3 | true | false | false | false | false | false | zero |
36,819,711 | CursorAdapter not inflating ListView: Android | <p>Hi I am trying to create an activity wherein I have added a search facility to search contacts in the phonebook and list the selected contacts in a ListView. However, when I am trying to run the application, CursorAdapter is not inflating any view.</p>
<p>Here is my code:</p>
<pre><code>public class FamilyAndFrien... | Hi I am trying to create an activity wherein I have added a search facility to search contacts in the phonebook and list the selected contacts in a ListView. However, when I am trying to run the application, CursorAdapter is not inflating any view. Here is my code: [CODE] Any helps???? | java|android | 2 | 2016-04-24T05:41:28.730Z | 2,016 | 4 | 5 | 6 | 68 | 0 | 286 | 45 | 2 | 1 | true | true | false | false | false | false | low |
36,819,719 | Gradle sync failed: Expected configuration ':backend:appengineSdk' to contain exactly one file, however, it contains no files | <p>I followed the tutorial <a href="https://cloud.google.com/solutions/mobile/firebase-app-engine-android-studio" rel="nofollow">here</a> to setup my Android app with Firebase and Google App Engine. Everything worked fine until I added the Google App Engine module, and then the following error occurred during gradle bu... | I followed the tutorial here to setup my Android app with Firebase and Google App Engine. Everything worked fine until I added the Google App Engine module, and then the following error occurred during gradle build: [CODE] Anyone have any ideas? There are no reference for this type of error and I am lost! My project gr... | android|google-app-engine|gradle|firebase | 2 | 2016-04-24T05:43:16.190Z | 2,016 | 4 | 5 | 6 | 1,905 | 1 | 380 | 125 | 4 | 4 | true | false | false | false | false | false | low |
36,819,770 | DPAD Navigation glitchy with ListView | <p>I'm trying to make an app for TV. The app has two listViews, and then some textViews below. The listViews are populate with around 5 items each. When the app starts the user should be able to switch between the listViews using the LEFT and RIGHT directional buttons, and navigate between items on the listViews using ... | I'm trying to make an app for TV. The app has two listViews, and then some textViews below. The listViews are populate with around 5 items each. When the app starts the user should be able to switch between the listViews using the LEFT and RIGHT directional buttons, and navigate between items on the listViews using the... | android|listview | 0 | 2016-04-24T05:53:03.500Z | 2,016 | 4 | 5 | 6 | 145 | 1 | 1,119 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
36,819,771 | How to parse grid view item id to SQLite WHERE claus? | <p>When a user click on an item I need to get the item id and send it to list view activity. But the list view is populated from a pre-populated SQLite db and items should retrive based on item id of grid view. </p>
<p>Example : If user click item 1 (Bank icon) on first activity , list view should retrieve data of ban... | When a user click on an item I need to get the item id and send it to list view activity. But the list view is populated from a pre-populated SQLite db and items should retrive based on item id of grid view. Example : If user click item 1 (Bank icon) on first activity , list view should retrieve data of bank names. Thi... | android|sqlite | 1 | 2016-04-24T05:53:07.377Z | 2,016 | 4 | 5 | 6 | 92 | 1 | 533 | 53 | 2 | 4 | true | false | false | false | false | false | low |
36,819,837 | Xamarin progress dialog not showing as expected | <p>On clicking on menu item, I need to update multiple EditText views. Code goes like this. During this process I want to show a progress dialog. </p>
<pre><code> public override bool OnOptionsItemSelected(IMenuItem item)
{
switch (item.ItemId)
{
case Res... | On clicking on menu item, I need to update multiple EditText views. Code goes like this. During this process I want to show a progress dialog. [CODE] Sometimes the progress dialog appears and sometimes not. Mostly first time it's appearing and it's not appearing followed by. It's hung up second time. If at all dialog a... | c#|android|xamarin|progressdialog | 3 | 2016-04-24T06:01:53.260Z | 2,016 | 4 | 6 | 6 | 6,239 | 1 | 607 | 47 | 4 | 1 | true | false | true | false | false | false | low |
36,819,951 | What is wrong with my Syntax here? (SQLite) | <p>Well I make some changes in my Table and now is showing me this error. I am try to Debug but with no luck. Any idea?</p>
<p>"android.database.sqlite.SQLiteException: no such table: tablename (code 1): , while compiling: select * from tablename"</p>
<pre><code> import java.util.ArrayList;
import java.... | Well I make some changes in my Table and now is showing me this error. I am try to Debug but with no luck. Any idea? "android.database.sqlite.SQLiteException: no such table: tablename (code 1): , while compiling: select * from tablename" [CODE] | java|android|sqlite | -3 | 2016-04-24T06:19:50.117Z | 2,016 | 4 | 6 | 6 | 76 | 1 | 244 | 43 | 3 | 1 | true | false | false | false | false | true | negative |
36,820,058 | Volley String Response of XML data and parse xml data | <p>Following is my approach:</p>
<pre><code>private void liveScores(){
StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
}
}, new Response.ErrorListener... | Following is my approach: [CODE] What I want is that i'm getting this response in string and this is xml data. I'm not able to use xmlpullparse in this. Can any one tell me how to make it async means these are live scores data and how to keep it refreshing after a while and also how to get objects of this response diff... | java|android|xml|parsing | 1 | 2016-04-24T06:35:47.253Z | 2,016 | 4 | 6 | 6 | 524 | 0 | 452 | 53 | 4 | 1 | true | true | false | false | false | false | low |
36,820,095 | RecyclerView adapter taking wrong values during scrolling | <p>I have read several questions on stackoverflow addressing this problem but I could not solve my problem. The recyclerview shows webviews. My issue is that the adapter, initially, load the right values (below image):</p>
<p><img src="https://i.imgur.com/kJUH7fr.png?1" alt="right behavior"></p>
<p>but when I scroll ... | I have read several questions on stackoverflow addressing this problem but I could not solve my problem. The recyclerview shows webviews. My issue is that the adapter, initially, load the right values (below image): but when I scroll down, and scroll up to first position again, wrong values are displayed in webview (be... | android|webview|android-recyclerview|android-adapter|android-viewholder | 3 | 2016-04-24T06:41:05.643Z | 2,016 | 4 | 6 | 6 | 4,155 | 2 | 997 | 57 | 5 | 2 | true | false | true | false | false | false | low |
36,820,133 | Android- How can I choose an app for a future intent, without executing that intent? | <p>I would like to be able to have the ability for users to be able to set up a predefined email, which is stored and then sent later based upon some trigger. The stumbling block here is that I want the user to be able to choose what app they use for this. Simply calling Intent.createChooser does nothing on its own, th... | I would like to be able to have the ability for users to be able to set up a predefined email, which is stored and then sent later based upon some trigger. The stumbling block here is that I want the user to be able to choose what app they use for this. Simply calling Intent.createChooser does nothing on its own, the a... | android|android-intent | 0 | 2016-04-24T06:46:28.837Z | 2,016 | 4 | 6 | 6 | 109 | 1 | 994 | 84 | 2 | 0 | false | false | false | false | false | false | zero |
36,820,170 | ActivityManager: Exception thrown when launching activities java.lang.IllegalArgumentException: val.length > 91 | <p>When launching MainActivity of Application, it's crashing instantly. When I looked up the adb logs, I was able to find only this, </p>
<pre><code>Exception thrown when launching activities in ProcessRecord
java.lang.IllegalArgumentException: val.length > 91
at SystemProperties.set
</code></pre>
<p>When I ... | When launching MainActivity of Application, it's crashing instantly. When I looked up the adb logs, I was able to find only this, [CODE] When I looked up the source code of android, I found that this could be the root of the problem Android Source Code Of SystemProperties.java . It contains a max value limit of 91. [CO... | java|android|android-activity | 27 | 2016-04-24T06:51:28.917Z | 2,016 | 4 | 6 | 6 | 2,334 | 5 | 1,645 | 111 | 3 | 3 | true | false | false | false | true | false | high |
36,820,175 | Not getting location from map | <p>I am making location based reminder app...but when i click on specific location then marker add to this location but when i click on submit it not show the selected location..it is getting only my current longitude and latitude...here is my code....</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) ... | I am making location based reminder app...but when i click on specific location then marker add to this location but when i click on submit it not show the selected location..it is getting only my current longitude and latitude...here is my code.... [CODE] } | java|android|google-maps | 1 | 2016-04-24T06:52:10.320Z | 2,016 | 4 | 6 | 6 | 40 | 0 | 258 | 29 | 3 | 1 | true | true | false | false | false | false | low |
36,820,228 | How to set the left right padding for a tab | <p>I am trying to make a tab when swiped gives a padding between two fragment like this<a href="https://i.stack.imgur.com/gJbYg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gJbYg.png" alt="enter image description here"></a></p>
<p>I am making this with a support lib
compile 'com.astuetz:pagersli... | I am trying to make a tab when swiped gives a padding between two fragment like this I am making this with a support lib compile 'com.astuetz:pagerslidingtabstrip:1.0.1' My java code [CODE] I tried to set the padding in viewpager but it is not working then I tried to set pstsTabPaddingLeftRight but it is also not worki... | android|tabs|android-viewpager | 1 | 2016-04-24T07:00:26.787Z | 2,016 | 4 | 7 | 6 | 782 | 1 | 404 | 43 | 3 | 2 | true | false | false | false | false | false | low |
36,820,277 | ViewPager Fragments And CircleIndicator Re-Create Itself | <p>Good day, I'm having a problem regarding with <code>viewPager</code> and <code>CircleIndicator</code>.
Every time I switch to another Activity or press the
TAB hardware keyboard panel (the switching tab between apps), and go back
to <code>WelcomeActivity.java</code> it re-create itself - circleDots and the items i... | Good day, I'm having a problem regarding with viewPager and CircleIndicator . Every time I switch to another Activity or press the TAB hardware keyboard panel (the switching tab between apps), and go back to WelcomeActivity.java it re-create itself - circleDots and the items in the fragments (re-create fragments). And ... | android|android-fragments|android-viewpager | 2 | 2016-04-24T07:06:35.233Z | 2,016 | 4 | 7 | 6 | 128 | 0 | 872 | 56 | 3 | 2 | true | true | false | false | false | false | low |
36,820,344 | How to use the same button(one button) to add items in fragment | <p><a href="https://i.stack.imgur.com/XRTb1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XRTb1.png" alt="Layout Image"></a></p>
<p>I created a fragment layout. Now, i want to add data into a database and display into each fragments. I use a pop up menu which is to be share for each fragment. My p... | I created a fragment layout. Now, i want to add data into a database and display into each fragments. I use a pop up menu which is to be share for each fragment. My problem is that how will a single button will add item into a database for the different fragment. Please help! Here my database operation [CODE] Here's th... | java|android|android-fragments | 1 | 2016-04-24T07:16:44.197Z | 2,016 | 4 | 7 | 6 | 81 | 0 | 873 | 63 | 3 | 3 | true | true | false | false | false | false | low |
36,820,378 | why alertdialog not showing for me | <pre><code> remove_comment.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.currentActivity);
alert.setTitle("are you sure?");... | [CODE] This is my code for removing one comment with alert, but The alert does not show. Just when I click on back button show all alert. Any ideas? It is currentActivity on MainActivity that was created onResume [CODE] | android | 1 | 2016-04-24T07:22:14.210Z | 2,016 | 4 | 7 | 6 | 1,523 | 2 | 219 | 34 | 1 | 2 | true | false | false | false | false | false | low |
36,820,557 | how to play different audio on button click android java | <p>I want to play music when a button is clicked, but I want to play different music with different button then the first music stopped and the second music would play.</p>
<p><strong>code:</strong></p>
<pre><code>charge = MediaPlayer.create(this, R.raw.charge);
santai1 = MediaPlayer.create(this, R.raw.santai1);
... | I want to play music when a button is clicked, but I want to play different music with different button then the first music stopped and the second music would play. code: [CODE] Say, I clicked charge button and then played the charge.mp3. Then I want to play santai1.mp3 but when I clicked the santai1 button the charge... | java|android | 0 | 2016-04-24T07:46:09.237Z | 2,016 | 4 | 7 | 6 | 1,028 | 3 | 725 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
36,820,599 | How to reject mobile calls for a time duration in android | <p>How can I block mobile calls for a time duration of 1 hour which I will set, I have tried the following code, I am not aware how to schedule the broadcast receiver for a time duration.</p>
<pre><code>public class RejectCall extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
... | How can I block mobile calls for a time duration of 1 hour which I will set, I have tried the following code, I am not aware how to schedule the broadcast receiver for a time duration. [CODE] | android|phone-call|telephonymanager | 1 | 2016-04-24T07:52:09.363Z | 2,016 | 4 | 7 | 6 | 47 | 0 | 191 | 57 | 3 | 1 | true | true | false | false | false | false | low |
36,820,614 | Listview not working for Android Studio | <p>I'm trying to create a listView for lecturers in my faculty. There's something wrong, the app don't work, and the preview shows the default listView.</p>
<p>my xml code is:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmln... | I'm trying to create a listView for lecturers in my faculty. There's something wrong, the app don't work, and the preview shows the default listView. my xml code is: [CODE] And my java code is: [CODE] | android|listview|android-studio | 0 | 2016-04-24T07:53:40.247Z | 2,016 | 4 | 7 | 6 | 902 | 1 | 200 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
36,820,626 | How can I use getter and setter using class library in Android | <p>I have show a list of records using RecyclerView.</p>
<p>List records are 1 to 100 numbers. Now I want to show Names list from contacts class.</p>
<p>So I want to create a Contact class where a variable Name (String) and has getter and setter methods.</p>
<p>Now how can I set names in class and how to get Names from... | I have show a list of records using RecyclerView. List records are 1 to 100 numbers. Now I want to show Names list from contacts class. So I want to create a Contact class where a variable Name (String) and has getter and setter methods. Now how can I set names in class and how to get Names from Contacts class? I have ... | java|android|adapter|android-recyclerview | 1 | 2016-04-24T07:54:54.420Z | 2,016 | 4 | 7 | 6 | 871 | 1 | 635 | 62 | 4 | 4 | true | false | false | false | false | false | low |
36,820,630 | In need of a way to mass configure Android kiosk apps during install | <p>I have recently written a kiosk application for Android and I now need to deploy on a large number of tablets.</p>
<p>I have already started writing a ShellScripts in Linux to push the required directories and content to the sdcard as well as install the apk.</p>
<p>However due to the nature of this app there are ... | I have recently written a kiosk application for Android and I now need to deploy on a large number of tablets. I have already started writing a ShellScripts in Linux to push the required directories and content to the sdcard as well as install the apk. However due to the nature of this app there are a lot of preference... | android|shell|adb | 0 | 2016-04-24T07:55:29.780Z | 2,016 | 4 | 7 | 6 | 291 | 1 | 1,447 | 68 | 3 | 0 | false | false | false | false | false | false | zero |
36,820,638 | Use Gson parse json in Android | <p>Testing process ,a few mobile phones occurs classcastException for class TecomPPAccount,but most work well.Please help me see the code where are not correct?</p>
<p><strong>The LogCat ouput:</strong></p>
<p>message = {"1000.11.1220.244.407":{"alias":"","username":"108","password":"108","secondIP":"192.168.0.102","... | Testing process ,a few mobile phones occurs classcastException for class TecomPPAccount,but most work well.Please help me see the code where are not correct? The LogCat ouput: message = {"1000.11.1220.244.407":{"alias":"","username":"108","password":"108","secondIP":"192.168.0.102","isRegister":true}} 04-14 15:56:50.97... | java|android|json|gson | 0 | 2016-04-24T07:56:29.987Z | 2,016 | 4 | 7 | 6 | 201 | 0 | 1,184 | 30 | 4 | 2 | true | true | false | false | false | false | zero |
36,820,668 | Request permission on PACKAGE_USAGE_STATS | <p>I want to check wheter the user have granted permission for my application to use <strong>PACKAGE_USAGE_STATS</strong>. What I am currently doing is this:</p>
<pre><code>// Control that the required permissions is instantiated!
if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=... | I want to check wheter the user have granted permission for my application to use PACKAGE_USAGE_STATS . What I am currently doing is this: [CODE] I have implemented the requestPermissions as described in the Android Developer section and it is working just fine for ACCESS_FINE_LOCATION . But when my application request... | java|android|android-permissions | 7 | 2016-04-24T08:00:45.997Z | 2,016 | 4 | 8 | 6 | 9,656 | 1 | 549 | 41 | 3 | 1 | true | false | true | false | false | false | medium |
36,820,715 | How to Connect Laravel 5 to Android? | <p>Im a bit curious on how to connect Laravel as a Web Service to Android. Im currently Connecting Native php to android. and It is a success in the connection.
but sadly i made my laravel codes but keeps failing. i think i need an answer on how to make laravel web services for android </p>
<p>Here are my Android Cod... | Im a bit curious on how to connect Laravel as a Web Service to Android. Im currently Connecting Native php to android. and It is a success in the connection. but sadly i made my laravel codes but keeps failing. i think i need an answer on how to make laravel web services for android Here are my Android Code: [CODE] Wel... | php|android|laravel | 1 | 2016-04-24T08:07:06.100Z | 2,016 | 4 | 8 | 6 | 583 | 0 | 488 | 36 | 3 | 2 | true | true | false | false | false | false | low |
36,820,828 | Getting error while running an activity with custom navigation drawer | <p>Im getting error when i try to run the below activity.
The activity has a custom navigation drawer.
I'm new to android ....
The error is occuring at places where actionbar is involved.</p>
<p>Im getting error when i try to run the below activity.
The activity has a custom navigation drawer.
I'm new to android ....
... | Im getting error when i try to run the below activity. The activity has a custom navigation drawer. I'm new to android .... The error is occuring at places where actionbar is involved. Im getting error when i try to run the below activity. The activity has a custom navigation drawer. I'm new to android .... The error i... | android|navigation-drawer | 1 | 2016-04-24T08:21:18.840Z | 2,016 | 4 | 8 | 6 | 224 | 1 | 610 | 69 | 2 | 4 | true | false | false | false | false | false | low |
36,821,003 | Could not execute method of the activity httpdata | <p>What do you think is wrong with this code ?
I am using this class: <a href="https://github.com/btouchard/HttpData/blob/master/README.md" rel="nofollow">https://github.com/btouchard/HttpData/blob/master/README.md</a></p>
<p>Error: </p>
<pre><code>java.lang.IllegalStateException: Could not execute method of the act... | What do you think is wrong with this code ? I am using this class: https://github.com/btouchard/HttpData/blob/master/README.md Error: [CODE] Thanks for the assistance. I guess it is a basic solution, but I can't find it. [CODE] | android | 0 | 2016-04-24T08:44:13.147Z | 2,016 | 4 | 8 | 6 | 18 | 1 | 227 | 49 | 1 | 2 | true | false | false | false | false | false | zero |
36,821,100 | Views shrink when using keyboard with PercentageLayout | <p>i have 2 different XML files. One is <em>signup.xml</em> the other <em>chat.xml</em>, both constructed with the PercentageLayout library.</p>
<p>the <em>signup.xml</em> works great - opening keyboard doesnt change any view.
However, in <em>chat.xml</em> whenever i pop the keyboard the view shrinks or out of screen... | i have 2 different XML files. One is signup.xml the other chat.xml , both constructed with the PercentageLayout library. the signup.xml works great - opening keyboard doesnt change any view. However, in chat.xml whenever i pop the keyboard the view shrinks or out of screen, and i dont know why since i constructed them ... | java|android|xml|user-interface | 2 | 2016-04-24T08:56:48.597Z | 2,016 | 4 | 8 | 6 | 122 | 1 | 496 | 54 | 4 | 2 | true | false | false | false | false | false | low |
36,821,118 | Java Android Studio: Convert image from camera to Binary | <p>I'm new at java android studio. Currently im doing a project which is to convert image from camera to binary. I followed all the step from this link (<a href="https://stackoverflow.com/questions/20299264/android-convert-grayscale-to-binary-image">Android: Convert Grayscale to Binary Image</a>). Then, The problem whe... | I'm new at java android studio. Currently im doing a project which is to convert image from camera to binary. I followed all the step from this link ( Android: Convert Grayscale to Binary Image ). Then, The problem when running was same as this link ( Android : Converting imageview to bitmap, to grayscale, bitmap to im... | java|android|image-processing|bitmap|android-drawable | 1 | 2016-04-24T08:59:16.210Z | 2,016 | 4 | 8 | 6 | 1,031 | 1 | 523 | 56 | 5 | 2 | true | false | false | false | false | false | low |
36,821,133 | Android: reading file selected in Google Drive file picker | <p>In my app I need to read a settings file, and that settings file can either be on local storage or on the user's Google Drive storage (with Google Drive app installed).</p>
<p>The following opens up a file chooser, first asking the user which file picker to use, including the option of using the Google Drive file p... | In my app I need to read a settings file, and that settings file can either be on local storage or on the user's Google Drive storage (with Google Drive app installed). The following opens up a file chooser, first asking the user which file picker to use, including the option of using the Google Drive file picker: [COD... | android|google-drive-api | 4 | 2016-04-24T09:01:17.280Z | 2,016 | 4 | 9 | 6 | 2,069 | 1 | 1,095 | 58 | 2 | 2 | true | false | false | false | false | false | low |
36,821,142 | Delete previous circle before drawing new ones on the map | <p>I have this method:</p>
<pre><code> public void crowdArea(){
for (int n=0; n<place.length; n++) {
Location locationFromDB2 = new Location("");
locationFromDB2.setLatitude(latt2[n]);
locationFromDB2.setLongitude(longg2[n]);
total = 0;
double c [][]=new double[100][2];... | I have this method: [CODE] which draws a circle on my map. this method is called every 15 secs, but it draws a circle on the previous circle and so on. what I want is to remove previous circles before adding the new one. how to do this? | android|google-maps|android-studio|geometry | 2 | 2016-04-24T09:02:30.483Z | 2,016 | 4 | 9 | 6 | 689 | 2 | 236 | 57 | 4 | 1 | true | false | false | false | false | false | low |
36,821,148 | Login code crashes? | <p>Currently, I have a login code, which will post data to a PHP script and read the data output by the script (JSON encoded) to determine if the login credentials are correct.</p>
<p>The following is part of my <code>LoginActivity.java</code>, called when the login button is clicked:</p>
<pre><code>public void login... | Currently, I have a login code, which will post data to a PHP script and read the data output by the script (JSON encoded) to determine if the login credentials are correct. The following is part of my LoginActivity.java , called when the login button is clicked: [CODE] However, when I click the login button, the app c... | java|android|authentication | 0 | 2016-04-24T09:03:22.630Z | 2,016 | 4 | 9 | 6 | 89 | 2 | 426 | 19 | 3 | 2 | true | false | false | false | false | false | zero |
36,821,162 | How get correct Location at first time of Service? | <p>I have a service get current location of android phone as:</p>
<pre><code>LocationManager locationManager;
private static int LOCATION_INTERVAL = 0;
private static float LOCATION_DISTANCE = 0;
Location mLastLocation;
Location preLocal;
@Override
public void onLocationChanged(Location location) {
// TODO Auto-g... | I have a service get current location of android phone as: [CODE] I only change phone in 1m But Service return 1 new Location distance previous location is 66m. How get correct Location at first time of Service? | android | 0 | 2016-04-24T09:05:00.900Z | 2,016 | 4 | 9 | 6 | 123 | 1 | 211 | 50 | 1 | 1 | true | false | false | false | false | false | zero |
36,821,165 | GCM push notification not working in Android App | <p>Push notification not working in my app.</p>
<p>When I send push notification it show message as below:</p>
<pre><code>GCM HTTP status: 200
GCM response body: {"multicast_id":5052582973644051315,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"NotRegistered"}]}
</code></pre>
<p>My menifest code is a... | Push notification not working in my app. When I send push notification it show message as below: [CODE] My menifest code is as below: [CODE] | android|push-notification|google-cloud-messaging | 0 | 2016-04-24T09:05:10.930Z | 2,016 | 4 | 9 | 6 | 219 | 1 | 140 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
36,821,210 | how to code search interface in android | <p>I am making an android app to store the images along with text to server and than fetch them to view images as well as their description. Now for user simplicity i put a search bar in activity where i display these images.I successfully put a search bar at activity bar but the problem is that i don't know how to mak... | I am making an android app to store the images along with text to server and than fetch them to view images as well as their description. Now for user simplicity i put a search bar in activity where i display these images.I successfully put a search bar at activity bar but the problem is that i don't know how to make a... | android | 0 | 2016-04-24T09:11:16.207Z | 2,016 | 4 | 9 | 6 | 132 | 0 | 453 | 39 | 1 | 2 | true | true | false | false | false | false | zero |
36,821,250 | Android is not updating button background color on UI Thread | <p>I am working on an app and trying to update Button background color using on click. What I want to do is,</p>
<p>1) Wait for 0.5 seconds to check answer is right or not. If answer is right, change button color to Green else change it to Red.</p>
<p>2) After button's color change wait for another .5 seconds and tha... | I am working on an app and trying to update Button background color using on click. What I want to do is, 1) Wait for 0.5 seconds to check answer is right or not. If answer is right, change button color to Green else change it to Red. 2) After button's color change wait for another .5 seconds and than call a function t... | android|multithreading|button|android-runonuithread | 0 | 2016-04-24T09:16:20.380Z | 2,016 | 4 | 9 | 6 | 592 | 2 | 532 | 60 | 4 | 1 | true | false | false | false | false | false | zero |
36,821,285 | Android Video Encryption and playback | <p>I am building a app form where users can download a video but can not play using inbuild video player.
Only from within the app user can play it.</p>
<p>I tried the following:</p>
<ol>
<li>Downloaded the video using android downloadManager to download folder.</li>
<li>then I am encrypting the video using android ... | I am building a app form where users can download a video but can not play using inbuild video player. Only from within the app user can play it. I tried the following: Downloaded the video using android downloadManager to download folder. then I am encrypting the video using android cipher and algo AES. then I am dele... | android|video|encryption|playback | 2 | 2016-04-24T09:19:59.467Z | 2,016 | 4 | 9 | 6 | 1,029 | 0 | 850 | 37 | 4 | 2 | true | true | false | false | false | false | low |
36,821,286 | Android - Load string array values to custom list view adapter | <p>I have created a custom list view adapter and items for the list view is stored at String.xml. When I run the app I only shows a blank activity.</p>
<p>Please help me to fix this issue. </p>
<p>This is my custom adapter java class.</p>
<pre><code>public class UserAdapter extends ArrayAdapter<User> {
public ... | I have created a custom list view adapter and items for the list view is stored at String.xml. When I run the app I only shows a blank activity. Please help me to fix this issue. This is my custom adapter java class. [CODE] List View model class. [CODE] Main Activity class where I attach adapter to the view. [CODE] | java|android|listview|custom-adapter | 1 | 2016-04-24T09:20:00.117Z | 2,016 | 4 | 9 | 6 | 2,872 | 1 | 316 | 62 | 4 | 3 | true | false | true | false | false | false | low |
36,821,307 | NoClassDefFoundError: android.support.v4.app.NotificationCompatKitKat$Builder when the app is killed but runs absolutely fine when app is running | <p>I am trying to implement GCM push Notifications, I am able to achieve the GCM notifications when my app is running or in background. But when app is killed by swiping the app through the running app list I am getting below exception in the service class which is handling the GCM notifications and triggers a notifica... | I am trying to implement GCM push Notifications, I am able to achieve the GCM notifications when my app is running or in background. But when app is killed by swiping the app through the running app list I am getting below exception in the service class which is handling the GCM notifications and triggers a notificatio... | android|google-cloud-messaging | 0 | 2016-04-24T09:21:52.507Z | 2,016 | 4 | 9 | 6 | 153 | 1 | 785 | 145 | 2 | 4 | true | false | false | false | false | false | zero |
36,821,344 | Map Activity with real time location update | <p>I am trying to create a map activity that displays the user current location that can be zoomed to street level but my app is not working properly, what do you think are the codes that I need to add?</p>
<pre><code>public class Map_Activity extends FragmentActivity implements GooglePlayServicesClient.ConnectionCall... | I am trying to create a map activity that displays the user current location that can be zoomed to street level but my app is not working properly, what do you think are the codes that I need to add? [CODE] the app is running but the map is not showing and it is not showing me my current location :( i hope somebody cou... | android|google-maps-api-2 | 1 | 2016-04-24T09:25:38.500Z | 2,016 | 4 | 9 | 6 | 1,086 | 1 | 330 | 43 | 2 | 1 | true | false | false | false | false | false | low |
36,821,356 | How to disable Toolbar in android activity? | <p>I'm trying disable the toolbar in my Login Activity. I have tried all the methods i could find so far. </p>
<pre><code><application
android:name="app.AppController"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
an... | I'm trying disable the toolbar in my Login Activity. I have tried all the methods i could find so far. [CODE] here is my styles xml file [CODE] I have even tried to remove it programatically with [CODE] also removed these lines of codes. [CODE] still no luck. I dont see the toolbar in my design preview in android studi... | android|android-actionbar|toolbar | 1 | 2016-04-24T09:27:00.447Z | 2,016 | 4 | 9 | 6 | 1,792 | 1 | 525 | 43 | 3 | 4 | true | false | false | false | false | false | low |
36,821,357 | "You already own this item" Google play inapp error | <p>I've implemented API version 3 of GooglePlay Inapp purchase.</p>
<p>I'm logged in with the same Google account on two devices.</p>
<p>On <code>device #1</code>, I've just purchased an item using this: <a href="https://developer.android.com/google/play/billing/billing_integrate.html#Purchase" rel="nofollow noreferr... | I've implemented API version 3 of GooglePlay Inapp purchase. I'm logged in with the same Google account on two devices. On device #1 , I've just purchased an item using this: https://developer.android.com/google/play/billing/billing_integrate.html#Purchase When I immediately query the purchased items (on device #1 ) wi... | android|in-app-purchase|in-app-billing | 4 | 2016-04-24T09:27:06.010Z | 2,016 | 4 | 9 | 6 | 12,217 | 2 | 886 | 51 | 3 | 0 | false | false | true | true | false | false | low |
36,821,372 | Toast not showing for Custom List View | <p>I am writing application that will fetch json array from website. That json array includes Title, Description and image. I write code and custom list view adapter. List is showing but now I need to show toast in order to get which list item is clicked. I tried alot and searched but did not get solution. </p>
<p>Ple... | I am writing application that will fetch json array from website. That json array includes Title, Description and image. I write code and custom list view adapter. List is showing but now I need to show toast in order to get which list item is clicked. I tried alot and searched but did not get solution. Please help. Vi... | android|listview|toast | 0 | 2016-04-24T09:28:16.947Z | 2,016 | 4 | 9 | 6 | 217 | 1 | 518 | 38 | 3 | 4 | true | false | false | false | false | false | zero |
36,821,381 | FloatingAction default behavior doesn't work | <p>I'm creating an app with a navigation drawer. And over all my fragments there needs to be a Floating Action button. But when I create a Snackbar the floatingactionbutton goes up, but never goes back down.</p>
<p>I don't know what I have done wrong.</p>
<p>My CODE:</p>
<pre><code><?xml version="1.0" encoding="u... | I'm creating an app with a navigation drawer. And over all my fragments there needs to be a Floating Action button. But when I create a Snackbar the floatingactionbutton goes up, but never goes back down. I don't know what I have done wrong. My CODE: [CODE] | android|navigation-drawer|android-coordinatorlayout|floating-action-button|android-snackbar | 0 | 2016-04-24T09:29:11.353Z | 2,016 | 4 | 9 | 6 | 149 | 0 | 257 | 44 | 5 | 1 | true | true | false | false | false | false | zero |
36,821,415 | Confused on how to parse HTML with Jsoup after making volley StringRequest | <p>I am new to Jsoup parsing. I was able to make a volley <code>StringRequest</code> to fetch the website but I am having problem navigating through the complicated tags and parsing it.</p>
<p><strong>Remote HTML</strong></p>
<pre><code>//Skipped the meta and header because I don't need it.
...
<body class="sin"&g... | I am new to Jsoup parsing. I was able to make a volley StringRequest to fetch the website but I am having problem navigating through the complicated tags and parsing it. Remote HTML [CODE] I am using this code to fetch and try to parse it. PostDetails [CODE] I needed to parse the text in <h1 class="post-title" itemprop... | android|jsoup | 0 | 2016-04-24T09:32:19.673Z | 2,016 | 4 | 9 | 6 | 457 | 1 | 423 | 74 | 2 | 2 | true | false | false | false | false | false | zero |
36,821,518 | Try to add library to gradle | <p>I wrote a library and trying to set up a gradle dependency in the project. Made on a lesson from this site:<a href="http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en" rel="nofollow noreferrer">http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-c... | I wrote a library and trying to set up a gradle dependency in the project. Made on a lesson from this site: http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en Everything went well, registered on the site, create a repository, created and saved keys. But when he moved to t... | android|git|maven|android-gradle-plugin | 2 | 2016-04-24T09:42:18.210Z | 2,016 | 4 | 9 | 6 | 959 | 1 | 675 | 28 | 4 | 3 | true | false | false | false | false | false | low |
36,821,579 | How to make grid view full responsive | <p>I'm developing an Android application I need to install this app on different devices, for this reason i need that the layout is full responsive.</p>
<p>One of my activity it consist in a grid view with two columns, each column it consist in a "square" (a image).</p>
<p>The problem is that i can't adapt the play f... | I'm developing an Android application I need to install this app on different devices, for this reason i need that the layout is full responsive. One of my activity it consist in a grid view with two columns, each column it consist in a "square" (a image). The problem is that i can't adapt the play for all devices (sma... | android|android-layout|gridview | 0 | 2016-04-24T09:49:24.763Z | 2,016 | 4 | 9 | 6 | 3,058 | 1 | 682 | 37 | 3 | 2 | true | false | true | false | false | false | zero |
36,821,677 | saving using onSaveInstanceState in Fragment | <p>There is a Fragment in my android project in which it gets data dynamically from another class.I save that data(one string and Int) into bundle and And I want that bundle to be restored when screen rotates. So I have used onSaveInstanceState method. </p>
<p>In this fragment, "respond" method get data(one string and... | There is a Fragment in my android project in which it gets data dynamically from another class.I save that data(one string and Int) into bundle and And I want that bundle to be restored when screen rotates. So I have used onSaveInstanceState method. In this fragment, "respond" method get data(one string and Int) from a... | android|android-fragments|screen-rotation | 0 | 2016-04-24T09:58:40.747Z | 2,016 | 4 | 9 | 6 | 2,550 | 1 | 750 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
36,821,679 | My string does not match my regex even though it is correct on regex101 | <p>I am having this weird problem in Android Studio wherein my program cannot parse the String I am matching through regex.</p>
<pre><code>private Pattern myPattern = Pattern.compile("([Request ID:]+)(\\d+)([, BY:]+)(\\d+)([ ])([A-Z\\d ]+)([ ])([amount:]+)(\\d+(\\.\\d{1,2}))");
msg = "Request ID:22, BY:123414045... | I am having this weird problem in Android Studio wherein my program cannot parse the String I am matching through regex. [CODE] My regex matches "Request ID:2, BY:123414032110 DEALER MAKER5 amount:500.00" but doesnt match the other entries. I have already checked this on regex101.com and all of my entries matches there... | java|android|regex | 1 | 2016-04-24T09:58:55.450Z | 2,016 | 4 | 9 | 6 | 102 | 1 | 369 | 71 | 3 | 1 | true | false | false | false | false | false | low |
36,821,714 | How to use circular progress drawable to add array colors | <p><a href="https://github.com/rey5137/Material/wiki/Progress#circularprogressdrawable" rel="nofollow">CircularProgressDrawable</a></p>
<p>This is the library i'm using in my project.
MY APPROACH IS : </p>
<pre><code><com.rey.material.widget.ProgressView
android:layout_width="48dp"
android:layout_... | CircularProgressDrawable This is the library i'm using in my project. MY APPROACH IS : [CODE] and Code is : [CODE] functions are : [CODE] all of this is working fine but as there in documentation we can see CircularProgressDrawable with 2 different forms i'm not able to get 1st one in which colors are changing . How to... | android|xml | 1 | 2016-04-24T10:02:35.850Z | 2,016 | 4 | 10 | 6 | 2,713 | 1 | 379 | 57 | 2 | 3 | true | false | true | false | false | false | low |
36,821,795 | InputStream.read() hangs on reading a file | <p>In my app, i'm sending a file from a client, using sockets. On the other side, another client receive the file using InputStream and then bufferedOutputStream save the file in the system.</p>
<p>I don´t know why, the file isn´t utterly transmited. I think this is because of network overload, anyway, i don´t know ho... | In my app, i'm sending a file from a client, using sockets. On the other side, another client receive the file using InputStream and then bufferedOutputStream save the file in the system. I don´t know why, the file isn´t utterly transmited. I think this is because of network overload, anyway, i don´t know how to solve ... | android|sockets|inputstream|fileinputstream | 1 | 2016-04-24T10:11:28.497Z | 2,016 | 4 | 10 | 6 | 1,682 | 1 | 365 | 42 | 4 | 2 | true | false | false | false | false | false | low |
36,821,911 | Execution failed for task ':app:dexDebug' non-zero exit value 2 | <p>Error:Gradle: Execution failed for task ':app:dexDebug'.</p>
<blockquote>
<p>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/java/jdk1.8.0_73/bin/java'' finished with non-zero exit value 2
<br><b>
This Error comes in all my projects</b><... | Error:Gradle: Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/java/jdk1.8.0_73/bin/java'' finished with non-zero exit value 2 This Error comes in all my projects build.gradle file [CODE] | android|android-gradle-plugin | 1 | 2016-04-24T10:25:36.307Z | 2,016 | 4 | 10 | 6 | 73 | 1 | 302 | 63 | 2 | 1 | true | false | false | false | false | false | low |
36,821,931 | Comodo SSL: ERR_CERT_AUTHORITY_INVALID on Chrome mobile and Opera mobile (Android) | <p>On some mobile browsers, like Chrome mobile for Android, I get a ERR_CERT_AUTHORITY_INVALID error when I am connecting to my https website.
I do not have this problem on every mobile browsers (like Firefox) and there is no problem on PC.</p>
<p>My certificate is a Comodo Extended Validation certificate.
I am contra... | On some mobile browsers, like Chrome mobile for Android, I get a ERR_CERT_AUTHORITY_INVALID error when I am connecting to my https website. I do not have this problem on every mobile browsers (like Firefox) and there is no problem on PC. My certificate is a Comodo Extended Validation certificate. I am contracting with ... | android|google-chrome|ssl|https|ssl-certificate | 18 | 2016-04-24T10:28:21.203Z | 2,016 | 4 | 10 | 6 | 16,185 | 4 | 926 | 82 | 5 | 0 | false | false | true | true | true | false | medium |
36,822,047 | How to get TextView text in a cutom ListView and a custom BaseAdapter onClick(View) method | <p>I have a custom <code>ListView</code> with 3 <code>TextView</code>s and a custom <code>BaseAdapter</code> which implements <code>View.OnClickListener</code>.</p>
<p>I tried some ways of getting the text from the specific <code>TextView</code> that has been clicked in the <code>onClick(View)</code> method but came o... | I have a custom ListView with 3 TextView s and a custom BaseAdapter which implements View.OnClickListener . I tried some ways of getting the text from the specific TextView that has been clicked in the onClick(View) method but came out short. If the View i get as the parameter of the onClick(View) method is the specifi... | android|listview|textview|baseadapter | -1 | 2016-04-24T10:41:33.027Z | 2,016 | 4 | 10 | 6 | 989 | 2 | 793 | 90 | 4 | 2 | true | false | false | false | false | true | negative |
36,822,191 | Android - NullPOinterException on my activity | <p>I am following <a href="http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/" rel="nofollow">this tutorial</a></p>
<p>I have one activity called <code>LogInActivity</code> which is the <code>MainActivity</code></p>
<pre><code> protected void onCreate(Bundle savedInstanceSt... | I am following this tutorial I have one activity called LogInActivity which is the MainActivity [CODE] Removed Listener functions for simplicity. My ReQueue class is as follows [CODE] If I execute the code I get NullPointeRException . I found the position where it occurs. It occurs at this line ReqQueue.getInstance().g... | android | -1 | 2016-04-24T10:56:40.843Z | 2,016 | 4 | 10 | 6 | 117 | 2 | 3,108 | 45 | 1 | 2 | true | false | false | false | false | true | negative |
36,822,212 | Android Custom loader issue | <p>I launch an IntentService in my activity and I want to show a "custom loader" during the treatment of this IntentService.</p>
<p>This "custom loader" is an imageview, that I want to show and hide every 100 MS. </p>
<p>I wrote this, but it doesn't work, the UI Thread is blocked :</p>
<pre><code> new Thread(... | I launch an IntentService in my activity and I want to show a "custom loader" during the treatment of this IntentService. This "custom loader" is an imageview, that I want to show and hide every 100 MS. I wrote this, but it doesn't work, the UI Thread is blocked : [CODE] I call this code in the "onResume" method. The v... | android|ui-thread | 0 | 2016-04-24T10:58:46.937Z | 2,016 | 4 | 10 | 6 | 52 | 0 | 569 | 27 | 2 | 1 | true | true | false | false | false | false | zero |
36,822,220 | Refresh data in an Activity on OnClick method? | <p>Want to load currently updated data from sever , Using valley api(json response).</p>
<p>onCreate is loading only data for the first time only.after that no new data is adding to the list.</p>
<p>Loading data, on listview(Contains image,text).</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
... | Want to load currently updated data from sever , Using valley api(json response). onCreate is loading only data for the first time only.after that no new data is adding to the list. Loading data, on listview(Contains image,text). [CODE] | android|android-layout|listview | 0 | 2016-04-24T10:59:07.427Z | 2,016 | 4 | 10 | 6 | 1,849 | 1 | 236 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
36,822,252 | Updated data on Parse Cloud is not Loading | <p>I have created a comment class where the users can comment their opinions. But when I send write the new comment is does not refresh the comment I have to restart the activity for the comments to load. I don't understand how can that be achieved. Tried referring to a lot of tutorials online but I couldn't find a sol... | I have created a comment class where the users can comment their opinions. But when I send write the new comment is does not refresh the comment I have to restart the activity for the comments to load. I don't understand how can that be achieved. Tried referring to a lot of tutorials online but I couldn't find a soluti... | android|parse-platform | 0 | 2016-04-24T11:02:35.873Z | 2,016 | 4 | 11 | 6 | 21 | 0 | 431 | 42 | 2 | 2 | true | true | false | false | false | false | zero |
36,822,391 | React Native: TouchableOpacity onPress problems inside a ScrollView | <p>I am running react native 0.24.1 and I am experiencing an issue with the <code><TouchableOpacity></code> component when it is placed inside an <code><ScrollView></code>.</p>
<p>Its <strong>onPress</strong> events fire fine but there is a special case when they do not.
If along with the <code><Touchab... | I am running react native 0.24.1 and I am experiencing an issue with the <TouchableOpacity> component when it is placed inside an <ScrollView> . Its onPress events fire fine but there is a special case when they do not. If along with the <TouchableOpacity> component you have a <TextInput> , and the current focus is on ... | android|scrollview|react-native | 17 | 2016-04-24T11:18:04.270Z | 2,016 | 4 | 11 | 6 | 14,707 | 3 | 1,156 | 67 | 3 | 1 | true | false | true | true | true | false | medium |
36,822,447 | Custom Gridview Widgets error loading content | <p>WidgetProvider Class</p>
<pre><code>public class WidgetProvider extends AppWidgetProvider {
@Override
public void onReceive(Context context, Intent intent) {
super.onReceive(context, intent);
}
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
for (in... | WidgetProvider Class [CODE] WidgetService class [CODE] WidgetDataProvider class [CODE] Widget_provider xml I am getting an error loading content and custom row in which I am using text and image. | android|gridview | 0 | 2016-04-24T11:22:49.400Z | 2,016 | 4 | 11 | 6 | 31 | 0 | 195 | 45 | 2 | 3 | true | true | false | false | false | false | zero |
36,822,448 | Data sent by Android code is received as null by C# webservice | <p>I'm using volley to send JSON object from android code to C# webservice. Below is the Android code:</p>
<hr>
<pre><code> List<JSONObject > items = new ArrayList<JSONObject>();
JSONObject field = new JSONObject();
String base64String = Base64.encodeToString(image_in_byte, Base64.DEFAULT);
... | I'm using volley to send JSON object from android code to C# webservice. Below is the Android code: [CODE] Below is the C# webservice [CODE] In the UploadData routine, I'm getting F_Data.Input1 as null. I'm able to get rest of the fields of Data class but Input1 is null. I'm not sure if I'm sending Input1 correctly fro... | c#|android|json|web-services | 0 | 2016-04-24T11:23:00.133Z | 2,016 | 4 | 11 | 6 | 131 | 0 | 375 | 62 | 4 | 2 | true | true | false | false | false | false | zero |
36,822,555 | set language android to php-mysqli | <p>I have an android application, that makes a connection to a PHP-script, which then fetches data from a database and returns the result. It all works fine and dandy, except for language-settings. I have set the language to dainsh and UTF-8, all the places I can think of, and when I send it to the database it is in da... | I have an android application, that makes a connection to a PHP-script, which then fetches data from a database and returns the result. It all works fine and dandy, except for language-settings. I have set the language to dainsh and UTF-8, all the places I can think of, and when I send it to the database it is in danis... | php|android|mysqli | 0 | 2016-04-24T11:32:53.883Z | 2,016 | 4 | 11 | 6 | 119 | 2 | 836 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
36,822,557 | What will be the Context for DBManagement class | <p>I am making CountDownTimer for which on time reach i can delete all my database. but when i make object of DBManagment class the context problem ahead. Kindly tell me what will be the context? In log the error showing "null". </p>
<p>the context needs for this line <strong>dbManagement = new DBManagement();</strong... | I am making CountDownTimer for which on time reach i can delete all my database. but when i make object of DBManagment class the context problem ahead. Kindly tell me what will be the context? In log the error showing "null". the context needs for this line dbManagement = new DBManagement(); the Timer class is non acti... | android|sqlite | -1 | 2016-04-24T11:32:59.440Z | 2,016 | 4 | 11 | 6 | 31 | 1 | 452 | 47 | 2 | 3 | true | false | false | false | false | true | negative |
36,822,634 | JSON response body not being received from OkHttp Callback | <p>I am trying to query an API to get the JSON response and store the response in an ArrayList.</p>
<p>This ArrayList will be later used for setting up a RecyclerView.</p>
<p>I am getting the response if I Log in the <strong>OnResponse()</strong> method from OkHttp. But when I am receiving the response in my Fragment... | I am trying to query an API to get the JSON response and store the response in an ArrayList. This ArrayList will be later used for setting up a RecyclerView. I am getting the response if I Log in the OnResponse() method from OkHttp. But when I am receiving the response in my Fragment as a String via the return in the O... | java|android|android-recyclerview|okhttp | -1 | 2016-04-24T11:42:16.930Z | 2,016 | 4 | 11 | 6 | 1,686 | 2 | 634 | 58 | 4 | 3 | true | false | false | false | false | true | negative |
36,822,679 | Android Studio Project - SMSManager not Sending SMS message | <p>I've been trying to send SMS through my app without opening the deafult sms app.
But I've failed.
Here's my main code</p>
<pre><code> Snackbar snackbar = Snackbar
.make(recyclerView, "This will send a SMS!!!", Snackbar.LENGTH_INDEFINITE).setAction("Confirm", new View.OnClickListener() {
... | I've been trying to send SMS through my app without opening the deafult sms app. But I've failed. Here's my main code [CODE] I've added [CODE] and added the permission [CODE] I've tried all versions in which mobile number is of the format 9876543210 ,+919876543210 ,09876543210 (Indian Number) It always gives Genric Fai... | android|android-studio|sms | 1 | 2016-04-24T11:47:33.707Z | 2,016 | 4 | 11 | 6 | 2,847 | 2 | 395 | 59 | 3 | 3 | true | false | true | false | false | false | low |
36,822,711 | Android - Retrofit2 - Google app engine - Send image | <p>I can able to save data from mobile to GAE using retrofit2. I am trying to send image which is captured from camera, How to save image in google app engine using retrofit2. Is there any step by step process to make it work. </p>
<p>This is the code used to send data:</p>
<pre><code>@OnClick(R.id.disease_submit_but... | I can able to save data from mobile to GAE using retrofit2. I am trying to send image which is captured from camera, How to save image in google app engine using retrofit2. Is there any step by step process to make it work. This is the code used to send data: [CODE] | android|google-app-engine|retrofit2 | 1 | 2016-04-24T11:49:58.380Z | 2,016 | 4 | 11 | 6 | 55 | 0 | 266 | 52 | 3 | 1 | true | true | false | false | false | false | low |
36,822,876 | Not hide layout when load data in RecyclerView on Android | <p>I want develop application for one website and i want load site posts into <code>RecyclerView</code>. I want show load layout for first entry in application and when load posts data into <code>RecyclerView</code>, <strong>hide</strong> this layout and <strong>show</strong> <code>RecyclerView</code>!<br>
I write this... | I want develop application for one website and i want load site posts into RecyclerView . I want show load layout for first entry in application and when load posts data into RecyclerView , hide this layout and show RecyclerView ! I write this codes, but it's not work me and always show emptyLayout . Main Activity XML ... | java|android | 0 | 2016-04-24T12:06:27.557Z | 2,016 | 4 | 12 | 6 | 211 | 1 | 589 | 57 | 2 | 3 | true | false | false | false | false | false | zero |
36,822,885 | How to open permanent phones gallery through code on a folder | <p>My app is creating a bunch of pictures and I want to open the folder with the user's gallery app so the user can watch, print, share them, or do whatever he likes.</p>
<p><strong>The standard solution:</strong></p>
<pre><code>Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(folder);
inten... | My app is creating a bunch of pictures and I want to open the folder with the user's gallery app so the user can watch, print, share them, or do whatever he likes. The standard solution: [CODE] Opens the folder in the phone's gallery, but if I click on an image, the galery closes instead of displaying the picture and s... | android | 1 | 2016-04-24T12:07:07.137Z | 2,016 | 4 | 12 | 6 | 432 | 1 | 691 | 61 | 1 | 2 | true | false | false | false | false | false | low |
36,822,982 | Call scene in Unity from Android plugin | <p>I have Unity application that is called from another Android application via app links. So, I've created Android Plugin for Unity to handle params sent to app via url. Depending on data from url I want to load one of three scenes defined in my Unity application. I was trying to call gameobject from scene no2 but I'v... | I have Unity application that is called from another Android application via app links. So, I've created Android Plugin for Unity to handle params sent to app via url. Depending on data from url I want to load one of three scenes defined in my Unity application. I was trying to call gameobject from scene no2 but I've g... | java|android|vuforia|unity3d | 2 | 2016-04-24T12:17:17.630Z | 2,016 | 4 | 12 | 6 | 1,390 | 1 | 926 | 39 | 4 | 3 | true | false | false | false | false | false | low |
36,823,104 | Share function doesn't work | <p>I wrote this code for a share action.</p>
<p>I want it to share text+bitmap.</p>
<p>It doesn't give me an error - it just doesn't do anything.</p>
<pre><code>case R.id.share:
int myinfoPos = info.position;
Movie myMovie= myMovies.get(myinfoPos);
int myMovieID=myMovie.id;
... | I wrote this code for a share action. I want it to share text+bitmap. It doesn't give me an error - it just doesn't do anything. [CODE] Thank you in advance. | android|android-studio|share | 0 | 2016-04-24T12:29:15.057Z | 2,016 | 4 | 12 | 6 | 67 | 1 | 157 | 27 | 3 | 1 | true | false | false | false | false | false | zero |
36,823,122 | How to do spacing to print like a table? | <p>I am trying to print data in a table format where the columns name and position are fixed and it is defined in xml file.
</p>
<pre><code> <TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"... | I am trying to print data in a table format where the columns name and position are fixed and it is defined in xml file. [CODE] and the java code for print data is: [CODE] Output: The printing of data is not proper as it will vary according to data present in table.So is there any way to print systematically in table f... | android|android-layout|textview|android-tablayout | 0 | 2016-04-24T12:31:07.483Z | 2,016 | 4 | 12 | 6 | 46 | 2 | 326 | 40 | 4 | 2 | true | false | false | false | false | false | zero |
36,823,154 | Null pointer exception in setText() method of TextView | <p>I have a gridView which i want to populate with my strings. But the problem arose when locating the TextView in which a particular string is to be printed. </p>
<p>I assigned the tags in XML using <code>android:tag</code> and now using the tag to find the corresponding TextView. But when i <code>setText()</code>, t... | I have a gridView which i want to populate with my strings. But the problem arose when locating the TextView in which a particular string is to be printed. I assigned the tags in XML using android:tag and now using the tag to find the corresponding TextView. But when i setText() , the app crashes giving NullPointerExce... | android | 0 | 2016-04-24T12:33:23.547Z | 2,016 | 4 | 12 | 6 | 766 | 2 | 395 | 54 | 1 | 3 | true | false | false | false | false | false | zero |
36,823,168 | android:layout_alignParentBottom not working in runtime | <p>I am using <code>android:layout_alignParentBottom</code> for the arrow down <code>ImageView</code> inside <code>RelativeLayout</code> for each item of <code>RecyleView</code>.<br>
But it only work perfect in <code>Preview</code> mode, when I run app it doesn't work. I don't know why this happened.<br>
I have explain... | I am using android:layout_alignParentBottom for the arrow down ImageView inside RelativeLayout for each item of RecyleView . But it only work perfect in Preview mode, when I run app it doesn't work. I don't know why this happened. I have explained more about my problem in the screenshot In Preview In runtime [CODE] UPD... | android|android-recyclerview|android-relativelayout | 1 | 2016-04-24T12:34:58.053Z | 2,016 | 4 | 12 | 6 | 1,440 | 1 | 582 | 55 | 3 | 3 | true | false | false | false | false | false | low |
36,823,170 | How to display <img> tags in html element parsed with Jsoup | <p>I have this remote Html that I am successfully parsing with Jsoup. The particular element I am parsing has <img> tags in it and I would want to display the images in the positions where the tags appear. </p>
<p>I have already written a Volley class that I am using to fetch Images in another activity and it's ... | I have this remote Html that I am successfully parsing with Jsoup. The particular element I am parsing has <img> tags in it and I would want to display the images in the positions where the tags appear. I have already written a Volley class that I am using to fetch Images in another activity and it's working in that ac... | android|html|jsoup|android-volley | 0 | 2016-04-24T12:35:04.930Z | 2,016 | 4 | 12 | 6 | 169 | 0 | 889 | 59 | 4 | 3 | true | true | false | false | false | false | zero |
36,823,189 | Error in Android Studio[null] | <p>This is my error:</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
</code></pre>
<p>This is part of my code:</p>
<pre><code>public static final String PLACEHOLDER_LIST_FILE = "placeholder_fil... | This is my error: [CODE] This is part of my code: [CODE] What I want to fix: When I press the button in the second activity to continue to the 'input'activity. Without getting a crash and the nullpointer error. What have I done to try and fix it: Look at people who also had the problem, but their fixes don't apply to m... | android|null | 0 | 2016-04-24T12:36:44.657Z | 2,016 | 4 | 12 | 6 | 17 | 0 | 467 | 29 | 2 | 2 | true | true | false | false | false | false | zero |
36,823,231 | Why isn't ArrayAdapter not working on Android Studio 2.0? | <p>I'm working on Android Studio 2.0, and my Samsung Galaxy J5.
I took the Udacity's course "Developing Android Apps" for begginers (great course!), and got stuck when I had to initialize an ArrayAdapter on MainActivityFragment: Android Studio (or Java) says "Cannot solve symbol 'ArrayAdapter'".
I post my code:</p>
<p... | I'm working on Android Studio 2.0, and my Samsung Galaxy J5. I took the Udacity's course "Developing Android Apps" for begginers (great course!), and got stuck when I had to initialize an ArrayAdapter on MainActivityFragment: Android Studio (or Java) says "Cannot solve symbol 'ArrayAdapter'". I post my code: MainActivi... | android | 0 | 2016-04-24T12:41:01.417Z | 2,016 | 4 | 12 | 6 | 127 | 1 | 367 | 57 | 1 | 2 | true | false | false | false | false | false | zero |
36,823,368 | Creating a general method to setResult from a fragment | <p>I have two activities. Activity 1 starts Activity 2 which has a fragment which needs to call <code>setResult</code> in order to pass values back to Activity 1.</p>
<p>Currently I am doing this in the fragment code:</p>
<pre><code>// FragmentClass.java
private final String EXTRA_VALUE_1_ID = "value_1";
private voi... | I have two activities. Activity 1 starts Activity 2 which has a fragment which needs to call setResult in order to pass values back to Activity 1. Currently I am doing this in the fragment code: [CODE] However, now to retrieve the value in Activity 1, I have to either expose the extra key defined above or add another s... | java|android|android-fragments | 1 | 2016-04-24T12:53:38.620Z | 2,016 | 4 | 12 | 6 | 680 | 1 | 912 | 54 | 3 | 4 | true | false | false | false | false | false | low |
36,823,400 | Gradle Build Run error (DebugUtils.class) in Android Studio 1.5 | <p>I'm getting the following error</p>
<p>Error:Execution failed for task </p>
<blockquote>
<p>:app:transformClassesWithJarMergingForDebug.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/util/DebugUtils.class</p>
</blockquote>
<p>I searched the... | I'm getting the following error Error:Execution failed for task :app:transformClassesWithJarMergingForDebug. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/util/DebugUtils.class I searched the entire day but couldn't found a proper answer which will s... | android|gradle|build.gradle|android-support-library | 0 | 2016-04-24T12:57:17.810Z | 2,016 | 4 | 12 | 6 | 57 | 2 | 480 | 63 | 4 | 2 | true | false | false | false | false | false | zero |
36,823,449 | How can i implement onItemSelected on MaterialBetterSpinner library | <p>I have implemented the following library spinner in my app i.e from xml </p>
<pre><code><com.weiwangcn.betterspinner.library.material.MaterialBetterSpinner
android:id="@+id/insurer_code"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string... | I have implemented the following library spinner in my app i.e from xml [CODE] and java code [CODE] but the onItemSelected doesn't fire up when an item is selected from the menu. Any guidance on how to successfully implement the above library will be appreciated. | android|spinner | 1 | 2016-04-24T13:02:38.900Z | 2,016 | 4 | 13 | 6 | 4,950 | 4 | 263 | 67 | 2 | 2 | true | false | true | false | false | false | low |
36,823,450 | android, gson cannot parse json string to java object | <p>i am getting this error.
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 44.</p>
<p>i know there are similar questions on this issue, they just didn't help me.
my json string is in correct format because i can view it in any json editor.</p>
<p>it worked for me before with di... | i am getting this error. java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 44. i know there are similar questions on this issue, they just didn't help me. my json string is in correct format because i can view it in any json editor. it worked for me before with different json string... | android|json|gson | 2 | 2016-04-24T13:03:08.593Z | 2,016 | 4 | 13 | 6 | 721 | 2 | 499 | 53 | 3 | 3 | true | false | false | false | false | false | low |
36,823,545 | Function "on_complete" called before "completed" on kivy app with plyer | <p>It's me again!
Well, that's really strange.
I'using kivy for make an App for Android.
I can use the camera, but or the app resets or do something strange.
Here is the problem:
<pre></p>
<code>def chamar_camera(nome,pc,objeto,label_passa,instance):
agora = datetime.now()
nome_arquivo = '%s_%s_%.4i_%.2i_... | It's me again! Well, that's really strange. I'using kivy for make an App for Android. I can use the camera, but or the app resets or do something strange. Here is the problem: [CODE] On option 3, I write a text (nome_arquivo) on a label widget (label_passa), but what happens is that the text is wrote before the camera ... | android|python|kivy | 0 | 2016-04-24T13:10:55.227Z | 2,016 | 4 | 13 | 6 | 98 | 1 | 660 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
36,823,670 | Android app stop working after screen rotation | <p>Currently I am using Google Mobile Vision API to do face detection. Supposingly, after the screen rotated, the activity will be restart and all the variables will be reinitialised. However, I dun know why the app stop working and show NullPointerException. Here is my codes.</p>
<pre><code>public class MainActivity ... | Currently I am using Google Mobile Vision API to do face detection. Supposingly, after the screen rotated, the activity will be restart and all the variables will be reinitialised. However, I dun know why the app stop working and show NullPointerException. Here is my codes. [CODE] Here are my errors. 04-24 12:59:50.231... | android|google-vision | 0 | 2016-04-24T13:21:18.320Z | 2,016 | 4 | 13 | 6 | 594 | 2 | 3,235 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
36,823,671 | How to place the item to the right side of the screen instead of center? | <p><a href="https://i.stack.imgur.com/VixRy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VixRy.png" alt="enter image description here"></a>I've been using android studio and xml to design my application. I've wanted to make my "Hi,user", logout button, receipt button and cart move to the right of ... | I've been using android studio and xml to design my application. I've wanted to make my "Hi,user", logout button, receipt button and cart move to the right of the screen. How should i change my xml to make it like this? [CODE] | android|xml | -1 | 2016-04-24T13:21:25.087Z | 2,016 | 4 | 13 | 6 | 44 | 1 | 226 | 72 | 2 | 1 | true | false | false | false | false | true | negative |
36,823,672 | retrieve data from a nested container in kml file | <p>I am reading google android map api -Access KML containers</p>
<p><a href="https://developers.google.com/maps/documentation/android-api/utility/kml#clear" rel="nofollow">https://developers.google.com/maps/documentation/android-api/utility/kml#clear</a></p>
<p>To access containers which are nested in a KmlLayer or ... | I am reading google android map api -Access KML containers https://developers.google.com/maps/documentation/android-api/utility/kml#clear To access containers which are nested in a KmlLayer or KmlContainer: [CODE] } } Where should I put this method in the program? In the demo progrma, i found these, but i still don't k... | android|google-maps|kml | 1 | 2016-04-24T13:21:29.050Z | 2,016 | 4 | 13 | 6 | 709 | 1 | 372 | 49 | 3 | 3 | true | false | false | false | false | false | low |
36,823,702 | com.android.volley.VolleyError:java.lang.NullPointerException:Attempt to invoke virtual method 'in java.lang.String.length()' on object reference | <p><strong>Getting the error in Listener whenever the fb_flag is 1, m just beginner; learning volley</strong></p>
<p>NullPointerException :::
Have tried to solve the error; but couldn't solve it</p>
<p><strong>LoginCall.java</strong></p>
<pre><code>public class Login_Call {
Context con;
String email ="", pas... | Getting the error in Listener whenever the fb_flag is 1, m just beginner; learning volley NullPointerException ::: Have tried to solve the error; but couldn't solve it LoginCall.java [CODE] Constructor for setting the data items; [CODE] Getting error in this method ; Method is for mapping the string data with url; [COD... | java|android|string|android-volley | 2 | 2016-04-24T13:23:24.383Z | 2,016 | 4 | 13 | 6 | 2,949 | 1 | 343 | 145 | 4 | 3 | true | false | true | false | false | false | low |
36,823,855 | how to customize Dialog header in android studio? | <p>I'm using a custom dialog that I've created in a separate xml file in my project, and I'm coloring the main window a blueish tint,
but the main header still remains the default white color. </p>
<p>Is there no way to change the font color, size, background for the header?</p>
<p>Is the only thing I can change in ... | I'm using a custom dialog that I've created in a separate xml file in my project, and I'm coloring the main window a blueish tint, but the main header still remains the default white color. Is there no way to change the font color, size, background for the header? Is the only thing I can change in the header the text? ... | android|android-studio|dialog | 0 | 2016-04-24T13:36:09.207Z | 2,016 | 4 | 13 | 6 | 718 | 3 | 346 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
36,823,874 | Android App stopped when custom list view calls | <p>I tried to create a simple custom list view using a base adapter. When I run the app it stopped.When I check the error with getView method. I tried many times to fix but didn't work. Please help me to find a solution for this problem.</p>
<p>My custom adapter class.</p>
<pre><code>public class activity_one extends... | I tried to create a simple custom list view using a base adapter. When I run the app it stopped.When I check the error with getView method. I tried many times to fix but didn't work. Please help me to find a solution for this problem. My custom adapter class. [CODE] Custom list view xml [CODE] Logcat [CODE] | java|android | 0 | 2016-04-24T13:38:17.127Z | 2,016 | 4 | 13 | 6 | 38 | 1 | 308 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
36,824,009 | Not hide EmptyLayout when Load RecyclerView | <p>I want develop application for one website and i want load site posts into <code>RecyclerView</code>. I want show load layout for first entry in application and when load posts data into <code>RecyclerView</code>, <strong>hide</strong> this layout and <strong>show</strong> <code>RecyclerView</code>!<br>
I write this... | I want develop application for one website and i want load site posts into RecyclerView . I want show load layout for first entry in application and when load posts data into RecyclerView , hide this layout and show RecyclerView ! I write this codes, but it's not work me and always show emptyLayout . Main Activity XML ... | android | 0 | 2016-04-24T13:51:49.110Z | 2,016 | 4 | 13 | 6 | 28 | 1 | 589 | 43 | 1 | 3 | true | false | false | false | false | false | zero |
36,824,121 | Items of RecyclerView are not showing correctly | <p>In my <code>onBindViewHolder</code> of my <code>RecyclerView.Adapter<SearchAdapter.ViewHolder></code> when user clicks on <code>cardview</code> a button becomes visible. But when I'm scrolling recyclerview some other items buttons are shown as visible too. Why is this happening?</p>
<p>this is my code:</p>
<... | In my onBindViewHolder of my RecyclerView.Adapter<SearchAdapter.ViewHolder> when user clicks on cardview a button becomes visible. But when I'm scrolling recyclerview some other items buttons are shown as visible too. Why is this happening? this is my code: [CODE] | java|android|android-recyclerview | 12 | 2016-04-24T14:03:16.437Z | 2,016 | 4 | 14 | 6 | 1,552 | 4 | 264 | 47 | 3 | 1 | true | false | false | false | true | false | medium |
36,824,182 | Opening http connection : android.os.NetworkOnMainThreadException | <p>I have trouble opening an http connection in an Android app.</p>
<p>Here is my Android Studio code :</p>
<pre><code> try {
String address = "http://example.com/test.php";
URL url = new URL(address);
HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
... | I have trouble opening an http connection in an Android app. Here is my Android Studio code : [CODE] My crash: 04-24 16:48:24.848 13860-13860/com.example.benas.testingpurposes E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.benas.testingpurposes, PID: 13860 java.lang.RuntimeException: Unable to start activ... | java|android | 0 | 2016-04-24T14:10:05Z | -1 | -1 | -1 | -1 | 473 | 1 | 3,056 | 65 | 2 | 1 | true | false | false | false | false | false | zero |
36,824,215 | Android. Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference | <p>I am trying to integrate my application with social network (facebook), and need a little help here. I am trying to get my feed. When I run the application I get a Fatal Exception error.</p>
<pre><code>FATAL EXCEPTION: main
Process: com.example.vladzakharo.facebookapp, PID: 2428
java.lang.NullPointerException: Atte... | I am trying to integrate my application with social network (facebook), and need a little help here. I am trying to get my feed. When I run the application I get a Fatal Exception error. [CODE] So, this is my class [CODE] } | android|facebook-graph-api | 1 | 2016-04-24T14:13:20.793Z | 2,016 | 4 | 14 | 6 | 4,561 | 1 | 223 | 100 | 2 | 2 | true | false | true | false | false | false | low |
36,824,226 | Android RecyclerView move item to end of View | <p>I am displaying Items on a Android <code>RecyclerView</code>, and I would like to be able to select any item, and place it at then very end of the list. I know how to Add or Remove items, but I am looking for the cleanest way to achieve this.</p>
<p>If possible, I am also looking for an animation that would show th... | I am displaying Items on a Android RecyclerView , and I would like to be able to select any item, and place it at then very end of the list. I know how to Add or Remove items, but I am looking for the cleanest way to achieve this. If possible, I am also looking for an animation that would show this item flying over the... | android|animation|android-recyclerview|adapter | 1 | 2016-04-24T14:14:07.373Z | 2,016 | 4 | 14 | 6 | 4,507 | 2 | 373 | 45 | 4 | 1 | true | false | true | false | false | false | low |
36,824,230 | Fragments overlap after transaction | <p>I made the LauncherActivity of the app a NavigationDrawer Activity. Then i made two test Fragments : "VibBearFragment" and "FragmentTwo"
I used this code in onNavigationItemSelected() to switch between Fragments. And i included the "VibBearFragment" in the contents of the drawer so that it is there when the app star... | I made the LauncherActivity of the app a NavigationDrawer Activity. Then i made two test Fragments : "VibBearFragment" and "FragmentTwo" I used this code in onNavigationItemSelected() to switch between Fragments. And i included the "VibBearFragment" in the contents of the drawer so that it is there when the app starts.... | android|android-fragments|fragmenttransaction | 0 | 2016-04-24T14:14:29.430Z | 2,016 | 4 | 14 | 6 | 223 | 1 | 842 | 35 | 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.