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,685,890 | Schedule notification using alarm manager in xamarin forms for android | <ul>
<li><p>I have created a dependencie to show the notifications</p></li>
<li><p>In My DeviceDetails_Droid.cs I've set set alarm for 30 seconds</p></li>
<li><p>The functionality for local notification works perfectly when app is
active but when I killed the app (close app) the alarm receiver
not getting called... | I have created a dependencie to show the notifications In My DeviceDetails_Droid.cs I've set set alarm for 30 seconds The functionality for local notification works perfectly when app is active but when I killed the app (close app) the alarm receiver not getting called. [CODE] In Androids MainActivity [CODE] And in man... | android|xamarin|xamarin.android|local | 9 | 2016-04-18T05:13:33.547Z | 2,016 | 4 | 5 | 0 | 7,950 | 2 | 467 | 70 | 4 | 3 | true | false | true | false | false | false | medium |
36,685,939 | MPAndroid adjustment to screen size without fixed height | <p>So I have been trying every mix and match with different layouts and settings and still cant figure out how to make this work. I want to have a spinner on the Same Screen as an MPAndroid Line Chart, I know I can fix the height Manually and adjust it to fit properly, but fill parent or match parent does not account f... | So I have been trying every mix and match with different layouts and settings and still cant figure out how to make this work. I want to have a spinner on the Same Screen as an MPAndroid Line Chart, I know I can fix the height Manually and adjust it to fit properly, but fill parent or match parent does not account for ... | android|xml|layout|mpandroidchart | 0 | 2016-04-18T05:18:33.310Z | 2,016 | 4 | 5 | 0 | 2,296 | 2 | 638 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
36,686,009 | How to run countdown timer in background | <p>I'm doing a project that need countdown timer to limit time for 1 hour.
I have coded this but the countdown timer goes to start at begin every time that I refresh activity.
How should I do.</p>
<p><strong>Here is my code</strong></p>
<pre><code>new CountDownTimer(3600000, 1000) {
@Override
... | I'm doing a project that need countdown timer to limit time for 1 hour. I have coded this but the countdown timer goes to start at begin every time that I refresh activity. How should I do. Here is my code [CODE] Thank you :) These are my activity codes. I have tried to do it in AsyncTask (just only //waiting) [CODE] | android|timer | 0 | 2016-04-18T05:25:13.167Z | 2,016 | 4 | 5 | 0 | 670 | 1 | 318 | 40 | 2 | 2 | true | false | false | false | false | false | zero |
36,686,077 | Custom listview in Textview Value change by Scrolling | <p>This Is my Adapter problem was scroll listview to change textview value by every position how to solve it ? plus click event to increment one and minus event to decrment and set value in textview (Plus click to quantity + 1 , minus click to quantity - 1).</p>
<pre><code> public class CustomListViewDrycleaning ext... | This Is my Adapter problem was scroll listview to change textview value by every position how to solve it ? plus click event to increment one and minus event to decrment and set value in textview (Plus click to quantity + 1 , minus click to quantity - 1). [CODE] | android | -1 | 2016-04-18T05:30:43.630Z | 2,016 | 4 | 5 | 0 | 276 | 1 | 262 | 53 | 1 | 1 | true | false | false | false | false | true | negative |
36,686,156 | how to have custom dialog as listview itemClickListener in android | <p>i want to use a custom Dialog in my android project as clicking on listview's items</p>
<p>i customize my dialog in differt class as below:</p>
<pre><code> public class CustomDialogOption extends Dialog {
public Activity activity;
public Button dialog_delete, dialog_edit;
public TextView dialog_msg;
... | i want to use a custom Dialog in my android project as clicking on listview's items i customize my dialog in differt class as below: [CODE] and i want to show this dialog on my listview clicking as below: MainActiviyclass [CODE] } my problem is that how can i have relation ship between OnItemClickListener method (int i... | android|onitemclicklistener|customdialog | 1 | 2016-04-18T05:37:41.473Z | 2,016 | 4 | 5 | 0 | 347 | 1 | 417 | 66 | 3 | 2 | true | false | false | false | false | false | low |
36,686,212 | my app requires more permissions than needs | <p>I have these permissions in my <code>manifest.xml</code></p>
<pre><code><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="dea.gov.ge.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission a... | I have these permissions in my manifest.xml [CODE] But in google play my app requires more permissions: Identity find accounts on the device; Contacts find accounts on the device; Location approximate location (network-based); precise location (GPS and network-based); Phone read phone status and identity; Photos/Media/... | java|android | 2 | 2016-04-18T05:41:39.693Z | 2,016 | 4 | 5 | 0 | 228 | 0 | 926 | 43 | 2 | 1 | true | true | false | false | false | false | low |
36,686,216 | Implemented method in RecyclerViewAdapter does not call | <p>I have a RecyclerView Adapter Class As:</p>
<pre><code>public class AdapterForRecyclerView extends RecyclerView.Adapter<ViewHolder> implements SuccessInterface{
Context context;
JSONArray sJsonArray;
private SuccessInterface sAdapterInterface;
public AdapterForRecyclerViewContext context, JSONArray express... | I have a RecyclerView Adapter Class As: [CODE] } SuccessInterface is defined in a Fragment, like: [CODE] This method is not called in the Above Adapter where I have Implemented with the Proper Context. Is this the right approach or is there any work around? Any Help is Appreciated! | android|interface|android-recyclerview | 0 | 2016-04-18T05:41:52.913Z | 2,016 | 4 | 5 | 0 | 70 | 0 | 282 | 55 | 3 | 2 | true | true | false | false | false | false | zero |
36,686,248 | Failed to resolve: com.android.support:appcompat-v7 | <p>Recently I updated my studio to 2.0, along with several other build-tools, library updates.</p>
<p>Since then, I keep getting these two errors - </p>
<pre><code>Error:(25, 13) Failed to resolve: com.android.support:design:22.0.1
<a href="install.m2.repo">Install Repository and sync project</a><br>... | Recently I updated my studio to 2.0, along with several other build-tools, library updates. Since then, I keep getting these two errors - [CODE] I have searched SO and the web for possible solutions and have tried resolving using API 21, API 22 and API 23 versions of the same appcompat and design repository. This is my... | android|android-studio|android-appcompat | 1 | 2016-04-18T05:44:45.423Z | 2,016 | 4 | 5 | 0 | 14,399 | 2 | 789 | 51 | 3 | 2 | true | false | true | true | false | false | low |
36,686,407 | JUnit Android: Test that a button opens an Activity | <p>I am trying to use Junit testing to test whether an Android UIButton properly opens the activity it is intended to run. I am seeing a common theme of using the 'ActivityMonitor' class, but I can't find anything that works. Using another post, I found an example similar to the code below. However, I have errors such ... | I am trying to use Junit testing to test whether an Android UIButton properly opens the activity it is intended to run. I am seeing a common theme of using the 'ActivityMonitor' class, but I can't find anything that works. Using another post, I found an example similar to the code below. However, I have errors such as ... | java|android|android-activity|junit|activity-monitor | 0 | 2016-04-18T05:56:34.810Z | 2,016 | 4 | 5 | 0 | 329 | 0 | 452 | 51 | 5 | 1 | true | true | false | false | false | false | zero |
36,686,409 | I m getting this error ..pls guide me to solve it | <p>**Error:Execution failed for task ':app:transformClassesWithDexForDebug'.</p>
<blockquote>
<p>com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished ... | **Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 3... | java|android|android-gradle-plugin | 1 | 2016-04-18T05:56:48.090Z | 2,016 | 4 | 5 | 0 | 156 | 1 | 349 | 49 | 3 | 1 | true | false | false | false | false | false | low |
36,686,630 | Listview skips first item | <p>I'm using a drawer with fragments, and on each fragment I use a listview. Everytime I open the fragment the listview skips the first Item of the list. When I run the app on SDK 19 that Item is showen over the actionbar. How can I fix this?</p>
<p>This is my fragment</p>
<pre><code>import android.os.Bundle;
import ... | I'm using a drawer with fragments, and on each fragment I use a listview. Everytime I open the fragment the listview skips the first Item of the list. When I run the app on SDK 19 that Item is showen over the actionbar. How can I fix this? This is my fragment [CODE] this is what I see on SDK 19 This is what I see on SD... | android|listview|android-fragments | -1 | 2016-04-18T06:13:20.700Z | 2,016 | 4 | 6 | 0 | 129 | 1 | 777 | 25 | 3 | 5 | true | false | false | false | false | true | negative |
36,686,686 | Dyanamically adding RemoteViews in custom notification in for loop, issue in setting pendingintent | <p>I am creating a custom notification and adding buttons dynamically using this code:</p>
<pre><code>RemoteViews remoteViews = new RemoteViews(this.getPackageName(), R.layout.custom_notification);
for (int i = 0; i < 100; i++) {
Intent mybuttonsIntent = new Intent(this, NotifyActivityHandler.class);
... | I am creating a custom notification and adding buttons dynamically using this code: [CODE] Here's button_layout.xml: [CODE] In NotifyActivityHandler, I am using this code to get Int: [CODE] But the problem is that every button passes the same Int i.e 99 If instead of using R.id.button I use rv.getLayoutId() then the bu... | android|android-intent|bundle|extras|android-remoteview | 1 | 2016-04-18T06:17:22.390Z | 2,016 | 4 | 6 | 0 | 814 | 1 | 511 | 98 | 5 | 4 | true | false | false | false | false | false | low |
36,686,711 | Pass List<> to a Fragment | <p>I'm creating an Android map app by getting venue from Foursquare and using Google Map.</p>
<p>I have set my MainActivity to get the venue results, a MapFragmentClass and a VenueModel.</p>
<p>I keep all the JSON result from Foursquare into a List venueModelList in the MainActivity.</p>
<p>What I want to do is to a... | I'm creating an Android map app by getting venue from Foursquare and using Google Map. I have set my MainActivity to get the venue results, a MapFragmentClass and a VenueModel. I keep all the JSON result from Foursquare into a List venueModelList in the MainActivity. What I want to do is to add markers in the MapFragme... | java|google-maps|android-fragments|android-activity|parcelable | 0 | 2016-04-18T06:19:03.163Z | 2,016 | 4 | 6 | 0 | 7,710 | 2 | 569 | 25 | 5 | 3 | true | false | true | false | false | false | zero |
36,686,746 | GameLogic.CROSS not working - "Expected resource of type id" | <p>I'm trying to make tictactoe app from <a href="http://hubpages.com/technology/tictactoe#" rel="nofollow">this</a> tutorial. I have problem with GameLogic.CROSS in switchTurn in GameActivity.java:</p>
<pre><code>private void switchTurn(int position) {
if (mTurn == TURN.CIRCLE) {
mBlocks[position]... | I'm trying to make tictactoe app from this tutorial. I have problem with GameLogic.CROSS in switchTurn in GameActivity.java: [CODE] Android Studio 2.0 display error on GameLogic.CROSS: Expected resource of type id | android|android-studio | 0 | 2016-04-18T06:21:34.940Z | 2,016 | 4 | 6 | 0 | 44 | 0 | 213 | 60 | 2 | 1 | true | true | false | false | false | false | zero |
36,686,750 | Sign in Facebook | <p>After strictly following the Facebook developer website in order to create Sign in button, I've created everything that needed. However, I was creating an project without fragment,as it's provided in documentation and it seems something went wrong. Here is my Activity</p>
<pre><code>public class MainActivity extend... | After strictly following the Facebook developer website in order to create Sign in button, I've created everything that needed. However, I was creating an project without fragment,as it's provided in documentation and it seems something went wrong. Here is my Activity [CODE] } The other part is definitely correct. I ge... | java|android|facebook | 1 | 2016-04-18T06:22:02.977Z | 2,016 | 4 | 6 | 0 | 168 | 1 | 449 | 16 | 3 | 6 | true | false | false | false | false | false | low |
36,686,757 | IONIC Build error | <p>When I am running the <strong>ionic build android</strong> command I am getting the below error.</p>
<p>FAILURE: Build failed with an exception.</p>
<ul>
<li><p>What went wrong:
A problem occurred configuring root project 'android'.</p>
<blockquote>
<p>Could not resolve all dependencies for configuration ':_deb... | When I am running the ionic build android command I am getting the below error. FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'android'. Could not resolve all dependencies for configuration ':_debugCompile'. Could not find any version that matches com.android.supp... | android|ionic-framework|push-notification | 0 | 2016-04-18T06:22:20.373Z | 2,016 | 4 | 6 | 0 | 362 | 1 | 1,049 | 17 | 3 | 0 | false | false | false | false | false | false | zero |
36,686,831 | DatePickerDialog not Displaying Last Week | <p>I have implemented <code>DatePickerDialog</code> in my app and I am having the following issues with <strong>Lollipop</strong> only.</p>
<p><img src="https://i.stack.imgur.com/wxdQ9.png" height="350"></p>
<p><strong>Code Snippet:</strong></p>
<pre><code>void setDate(final EditText ed) {
Calendar mcurrentTime ... | I have implemented DatePickerDialog in my app and I am having the following issues with Lollipop only. Code Snippet: [CODE] I am not able to select date of last week and on pressing next it's displaying next month. Has anyone run into a problem like this? Does anyone have a solution? Any help is appreciated, thank you. | android|android-5.0-lollipop|android-calendar|calendarview | 3 | 2016-04-18T06:28:15.830Z | 2,016 | 4 | 6 | 0 | 866 | 3 | 320 | 41 | 4 | 1 | true | false | false | false | false | false | low |
36,686,969 | BaseAdapter for GridView: getView() not always called on notifyDatasetChanged() | <p>I have a custom BaseAdapter that is used for a GridView. I call notifyDatasetChanged() on it. However, getView() is not called so my UI is not updated. </p>
<p>I have debugged this and saw that the underlying data is correct containing the correct enabled status, however the UI does not update, because getView() is... | I have a custom BaseAdapter that is used for a GridView. I call notifyDatasetChanged() on it. However, getView() is not called so my UI is not updated. I have debugged this and saw that the underlying data is correct containing the correct enabled status, however the UI does not update, because getView() is not called.... | android|baseadapter|notifydatasetchanged | -1 | 2016-04-18T06:37:08.660Z | 2,016 | 4 | 6 | 0 | 708 | 2 | 828 | 79 | 3 | 4 | true | false | false | false | false | true | negative |
36,686,981 | Poorly formatted json parsing | <p>I use code above to parse <code>JSON</code> in a <code>try-catch</code>. </p>
<pre><code> JSONArray jsonRootObject = new JSONArray(text);
JSONArray jsonArray = jsonRootObject.optJSONArray(2);
name = jsonArray.toString();
Toast.makeText(MainActivity.this, name, Toast.LENGTH_LONG).show... | I use code above to parse JSON in a try-catch . [CODE] I use 2 as index in code below, because I would get values from candidates. I think, that is strange, because there isn't key-value pairs in array. I would like to get only the first key from this array (In this example subtest1 .), its value isn't make sense. [COD... | android|json|parsing | -3 | 2016-04-18T06:38:03.163Z | 2,016 | 4 | 6 | 0 | 155 | 2 | 322 | 29 | 3 | 2 | true | false | false | false | false | true | negative |
36,687,345 | Android + Gradle; Cannot access support-v4:23.x.x | <p>Being used to ANT for configuring Android projects in Netbeans, I am new to Android Studio and Gradle. </p>
<p>(In both Netbeans and Android Studio) I am struggling a bit with Gradle dependencies to the last versions of the Android support-v4 library. Everything is fine as long as version is set below 23.0.0, i.e. ... | Being used to ANT for configuring Android projects in Netbeans, I am new to Android Studio and Gradle. (In both Netbeans and Android Studio) I am struggling a bit with Gradle dependencies to the last versions of the Android support-v4 library. Everything is fine as long as version is set below 23.0.0, i.e. 22 21 etc, b... | android|gradle|support-v4 | 0 | 2016-04-18T07:03:16.543Z | 2,016 | 4 | 7 | 0 | 205 | 0 | 701 | 49 | 3 | 1 | true | true | false | false | false | false | zero |
36,687,407 | Calling function from a Fragment ..No activity to handle error | <p>I saw many question related to this one but none solved my problem yet so I apologize if it was duplicated.</p>
<p>I'm creating a contact book. I've created a fragment to display all contacts.
Now what I want to do is to created an imageview (Call Button) to enable calling the contact when clicked. </p>
<p>I keep... | I saw many question related to this one but none solved my problem yet so I apologize if it was duplicated. I'm creating a contact book. I've created a fragment to display all contacts. Now what I want to do is to created an imageview (Call Button) to enable calling the contact when clicked. I keep getting the error (N... | android|android-fragments|android-intent | 2 | 2016-04-18T07:07:15.303Z | 2,016 | 4 | 7 | 0 | 287 | 1 | 615 | 62 | 3 | 4 | true | false | false | false | false | false | low |
36,687,433 | How to connect to WIFI AP using static ip address, not DHCP | <p>I'm looking for how to connect to WIFI AP and found this.</p>
<p><a href="https://stackoverflow.com/questions/8818290/how-to-connect-to-a-specific-wifi-network-in-android-programmatically">How do I connect to a specific Wi-Fi network in Android programmatically?</a></p>
<p>And With the code above, I made up the be... | I'm looking for how to connect to WIFI AP and found this. How do I connect to a specific Wi-Fi network in Android programmatically? And With the code above, I made up the below code. [CODE] But I also need to connect with static ip. Can anyone help me connect to WIFI AP with static ip? | android-wifi | 1 | 2016-04-18T07:08:59.993Z | 2,016 | 4 | 7 | 0 | 142 | 0 | 286 | 59 | 1 | 1 | true | true | false | false | false | false | low |
36,687,473 | chnage tab text position after setvisibility | <p>I have a <code>tablayout</code> in android where i need to show a bullet like text sometimes and hide this bullet as needed. i design below layout for each tab item:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
androi... | I have a tablayout in android where i need to show a bullet like text sometimes and hide this bullet as needed. i design below layout for each tab item: [CODE] the problem is when i setVisibility of text_tab_counter" to INVISIBLE or GONE , text_tab_counter" move down . how can i design this layout to prevent this unexp... | android|layout | 0 | 2016-04-18T07:10:36.847Z | 2,016 | 4 | 7 | 0 | 54 | 1 | 335 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,687,489 | How to get selected item from multiLine Listview | <p>In my listView contain 6 textView and one RadioButton.I have two doubts. First thing, How to get selected item from multiLine listView. I tried something but setOnItemClickListener not working.</p>
<p>Another doubt is, How to select only one radioButton at a time in ListView.
I want to allow only one item to check ... | In my listView contain 6 textView and one RadioButton.I have two doubts. First thing, How to get selected item from multiLine listView. I tried something but setOnItemClickListener not working. Another doubt is, How to select only one radioButton at a time in ListView. I want to allow only one item to check at a time. ... | java|android | 0 | 2016-04-18T07:11:24.910Z | 2,016 | 4 | 7 | 0 | 156 | 1 | 464 | 48 | 2 | 3 | true | false | false | false | false | false | zero |
36,687,522 | How I process Fail to connect to camera service and multi camera open on android? | <p>I want two camera control</p>
<p>first when I try only one camera mounting.
I see camera preview</p>
<pre><code>public class AndroidCamera extends Activity implements SurfaceHolder.Callback
{
Camera camera;
Camera camera2;
SurfaceView surfaceView2;
SurfaceView surfaceView;
SurfaceHolder surfac... | I want two camera control first when I try only one camera mounting. I see camera preview [CODE] and I want two camera control but I not find multi camera control How can I programming? I use surfaceview please advice for me | android|android-camera | 0 | 2016-04-18T07:13:03.383Z | 2,016 | 4 | 7 | 0 | 66 | 0 | 224 | 81 | 2 | 1 | true | true | false | false | false | false | zero |
36,687,666 | partial content streaming in android from nodejs api | <p>I recently developed a range-based streaming using the process described <a href="http://blog.mrinalpurohit.com/2016/04/17/nodejs-ionic-ios-html5-video/" rel="nofollow">here</a> </p>
<p>I found a strange problem with android devices. The android doesn't send the range bytes in the first request. Here is a snippet o... | I recently developed a range-based streaming using the process described here I found a strange problem with android devices. The android doesn't send the range bytes in the first request. Here is a snippet of headers sent while requesting the video: [CODE] Note that there are no range headers present. But after a few ... | android|node.js|html|video-streaming | 1 | 2016-04-18T07:21:33.183Z | 2,016 | 4 | 7 | 0 | 93 | 0 | 539 | 52 | 4 | 2 | true | true | false | false | false | false | low |
36,687,739 | MarkerView is not showing up using MPAndroidChart | <p>I am using <a href="https://github.com/PhilJay/MPAndroidChart" rel="noreferrer">MPandroidchart</a> for showing line charts in my application.I have added following code to show Marker View, but it isn't showing on </p>
<pre><code>private void initializeChart(LineChart chart, String chartName) {
// Chart view
... | I am using MPandroidchart for showing line charts in my application.I have added following code to show Marker View, but it isn't showing on [CODE] My CustomMarkerView class [CODE] } Note: I am using fragment to show charts. | android|mpandroidchart | 9 | 2016-04-18T07:25:57.300Z | 2,016 | 4 | 7 | 0 | 11,502 | 4 | 224 | 49 | 2 | 2 | true | false | true | false | false | false | medium |
36,687,993 | deselect my menu item from bottomnavigation and show just menu without any highlighted item | <p>Im using BottomNavigation Bar Library of (<strong><a href="https://github.com/roughike/BottomBar" rel="nofollow">roughike</a></strong>)</p>
<p>Please check SnapShot attached as shown there gallery is currently select i want to de select it. and dnt want to show any selected item when i want. </p>
<p>please help. <... | Im using BottomNavigation Bar Library of ( roughike ) Please check SnapShot attached as shown there gallery is currently select i want to de select it. and dnt want to show any selected item when i want. please help. SnapShot mBottomBar = BottomBar.attach(this, savedInstanceState); mBottomBar.useDarkTheme(); [CODE] | android|menu|material-design|navigationbar | 2 | 2016-04-18T07:39:01.180Z | 2,016 | 4 | 7 | 0 | 295 | 0 | 316 | 91 | 4 | 1 | true | true | false | false | false | false | low |
36,688,159 | COUNTDOWNTIMER onfinish(); still called after cancel | <p>I want to cancel the onfinish function of countdountimer when a button is clicked i do timer.cancel but on finish is still called.</p>
<pre><code> running = false;
countDownTimer.cancel();
countDownTimer = null;
finish();
startActivity(i);
</code></pre>
... | I want to cancel the onfinish function of countdountimer when a button is clicked i do timer.cancel but on finish is still called. [CODE] and this is the countdowntimer [CODE] this is a part of my activity where i am using the countdowntimer, i am not using it anywhere exept here [CODE] | android|countdowntimer | 1 | 2016-04-18T07:49:15.293Z | 2,016 | 4 | 7 | 0 | 1,960 | 3 | 287 | 52 | 2 | 3 | true | false | false | false | false | false | low |
36,688,254 | Android: PHP in background Thread | <p>My question maybe unheard of or may even be impractical.
But, I believe it is practical and acceptable.</p>
<p><strong>Problem: PHP request and response in background thread.</strong></p>
<p>Problem constraints:</p>
<ol>
<li>You know it uses POST method.</li>
<li>It has two fields fname and lname as html ids that... | My question maybe unheard of or may even be impractical. But, I believe it is practical and acceptable. Problem: PHP request and response in background thread. Problem constraints: You know it uses POST method. It has two fields fname and lname as html ids that need to be filled. You get response in the same page i.e. ... | php|android|multithreading|web | 1 | 2016-04-18T07:54:01.693Z | 2,016 | 4 | 7 | 0 | 148 | 2 | 1,484 | 33 | 4 | 0 | false | false | false | false | false | false | low |
36,688,326 | content provider custom client - no content is recieved | <p>I have read many answers regarding content providers, but I can't understand why my client isn't recieving any data stored in the database.</p>
<p>-I'm using the same uri everywhere.</p>
<p>-I have added the read and write permissions in my provider in the manifest.</p>
<p>-I have exported the provider and set th... | I have read many answers regarding content providers, but I can't understand why my client isn't recieving any data stored in the database. -I'm using the same uri everywhere. -I have added the read and write permissions in my provider in the manifest. -I have exported the provider and set the multiprocess to "true" to... | android|provider | 0 | 2016-04-18T07:57:43.893Z | 2,016 | 4 | 7 | 0 | 56 | 0 | 1,223 | 55 | 2 | 4 | true | true | false | false | false | false | zero |
36,688,373 | Android SDK not found in Xamarin | <p>I'm beginner of C# as well as Xamarin. </p>
<p>I've installed Visual Studio and Xamarin but when I try to create a new project with Xamarin it shows me the following error in the output window.</p>
<pre><code>[I:sdk]: Looking for Android SDK..
[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory... | I'm beginner of C# as well as Xamarin. I've installed Visual Studio and Xamarin but when I try to create a new project with Xamarin it shows me the following error in the output window. [CODE] But I can't find the Android folder under C:\Program Files (x86) and C:\Users\sony\AppData\Local . | xamarin|sdk|visual-studio-2015|xamarin.android|java-6 | 11 | 2016-04-18T08:00:42.510Z | 2,016 | 4 | 8 | 0 | 13,225 | 1 | 291 | 32 | 5 | 1 | true | false | true | true | true | false | medium |
36,688,380 | How can I make the a Hyperlink so user can go to that specific website .Im using .putExtras | <p>I have added the details inside the displayItems activity after user click the item on Listview. The question is how can I make the URL clickable so user can got to that specific website.(The details is called from csv file). Anyone can guide me?</p>
<p>My Listview.java</p>
<pre><code>listView.setOnItemClickListen... | I have added the details inside the displayItems activity after user click the item on Listview. The question is how can I make the URL clickable so user can got to that specific website.(The details is called from csv file). Anyone can guide me? My Listview.java [CODE] My displayItem.java [CODE] | java|android | 0 | 2016-04-18T08:01:25.983Z | 2,016 | 4 | 8 | 0 | 35 | 2 | 297 | 91 | 2 | 2 | true | false | false | false | false | false | zero |
36,688,441 | TMMARS-GCM onMessageReceived | <p>I have my app crashes, on GCM listener onMessageReceived. I figured this out from Fabric-Crashlytics. I don't know what the app received. Following is the Exception from Crashlytics. </p>
<pre><code>Fatal Exception: java.lang.NullPointerException at com.mjhram.ttaxidriver.gcm_client.MyGcmListenerService.onMessageRe... | I have my app crashes, on GCM listener onMessageReceived. I figured this out from Fabric-Crashlytics. I don't know what the app received. Following is the Exception from Crashlytics. [CODE] This issue was identified by some peoples as it is caused by TMMARS (Trend Micro MARS) Service: DownloadManager IllegalStateExcept... | android|google-cloud-messaging | 0 | 2016-04-18T08:04:07.917Z | 2,016 | 4 | 8 | 0 | 324 | 0 | 816 | 28 | 2 | 3 | true | true | false | false | false | false | zero |
36,688,508 | Why is my variable initialised after out of success method | <p>I am trying to develop an authentication android based webservice Rest,I am using the library Retrofit with async task as an inner class .</p>
<p>I have a variable called loginstatus returns true if the user exists otherwise false .</p>
<p>the problem is when the compiler out of the <strong>success</strong> meth... | I am trying to develop an authentication android based webservice Rest,I am using the library Retrofit with async task as an inner class . I have a variable called loginstatus returns true if the user exists otherwise false . the problem is when the compiler out of the success method isloginstatus initializes to false.... | android|android-asynctask|retrofit | 0 | 2016-04-18T08:08:01.407Z | 2,016 | 4 | 8 | 0 | 78 | 1 | 431 | 58 | 3 | 3 | true | false | false | false | false | false | zero |
36,688,512 | GridView with base adapter not responding to the first click on the first item in the GridView until i scroll | <p>Am using a base adapter that create the child views for the grid and the holder view has more than one clickable control each perform an action.</p>
<p>here is the getView() method code</p>
<pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
if (convertView == null) {
... | Am using a base adapter that create the child views for the grid and the holder view has more than one clickable control each perform an action. here is the getView() method code [CODE] when the GridView first initialize if i click on first item on any control in the holder view it wont respond until i scroll the GridV... | android|gridview|baseadapter|android-viewholder | 0 | 2016-04-18T08:08:13.800Z | 2,016 | 4 | 8 | 0 | 164 | 1 | 647 | 109 | 4 | 1 | true | false | false | false | false | false | zero |
36,688,514 | How to show values other than the sample text that's on textView in Android | <p>I'm making a OBDII reader app and would like to see the (in this case) voltage on text rather than in the Logcat which is what I currently see. You can see in the code below where I read the voltage in my while loop. Is it possible to update the <code>textView</code> everytime the loop runs?</p>
<p>Any help is appr... | I'm making a OBDII reader app and would like to see the (in this case) voltage on text rather than in the Logcat which is what I currently see. You can see in the code below where I read the voltage in my while loop. Is it possible to update the textView everytime the loop runs? Any help is appreciated! .java [CODE] .x... | java|android|obd-ii | 0 | 2016-04-18T08:08:24.453Z | 2,016 | 4 | 8 | 0 | 311 | 4 | 349 | 75 | 3 | 3 | true | false | false | false | false | false | zero |
36,688,592 | Adding Navigation Drawer to Top left | <p>I want to add a navigation drawer to the top left of my screen with all the buttons in it so you can navigate through all the activity's while being on another.</p>
<p>I have no idea how to begin with this, can anyone give me a hand?</p>
<p>This is my code so far,
Main:</p>
<pre><code>package com.example.rodekrui... | I want to add a navigation drawer to the top left of my screen with all the buttons in it so you can navigate through all the activity's while being on another. I have no idea how to begin with this, can anyone give me a hand? This is my code so far, Main: [CODE] activity_main: [CODE] | android|eclipse|layout|navigation | 0 | 2016-04-18T08:13:05.403Z | 2,016 | 4 | 8 | 0 | 58 | 1 | 285 | 36 | 4 | 2 | true | false | false | false | false | false | zero |
36,688,644 | Avoid same Lat Lng on Google Map Animation in android | <p>I am implementing animation in google map using <a href="http://ddewaele.github.io/GoogleMapsV2WithActionBarSherlock/part3" rel="nofollow">this</a> example. I am getting LatLng data from a server. But the problem arises when I get too many data for a single point on map. The animated marker wait on a single point so... | I am implementing animation in google map using this example. I am getting LatLng data from a server. But the problem arises when I get too many data for a single point on map. The animated marker wait on a single point so long as there are data for that point. Please see the following sample code [CODE] How can I chec... | android|json|google-maps|animation|google-maps-api-3 | 0 | 2016-04-18T08:16:18.543Z | 2,016 | 4 | 8 | 0 | 113 | 2 | 387 | 53 | 5 | 1 | true | false | false | false | false | false | zero |
36,689,031 | CoordinateLayout collapse LinearLayout with childviews | <p>Hey there I have a layout with mainly two <code>Views</code>, the one at the top is for selection and the bottom one shows the content (<code>ScrollView</code> with <code>Listview</code>).
My desired behavior is that when I scroll through the content the upper <code>View</code> <em>collapses</em> or <em>expands</em>... | Hey there I have a layout with mainly two Views , the one at the top is for selection and the bottom one shows the content ( ScrollView with Listview ). My desired behavior is that when I scroll through the content the upper View collapses or expands ( CollapsingToolbarLayout like). At the moment I realized the whole l... | android|android-layout|android-coordinatorlayout | 3 | 2016-04-18T08:34:51.993Z | 2,016 | 4 | 8 | 0 | 1,230 | 1 | 595 | 54 | 3 | 1 | true | false | false | false | false | false | low |
36,689,054 | Pass data from Service to activity launched by the Service | <p>What I wanna do is to pass data from a Service S to an activity A.</p>
<p>However, in my case, A is not starting S and then waiting for an answer from it : S is always running in the background.</p>
<p>I'd like to use an Intent with a bundle attached to it, because my data are Strings and Booleans.</p>
<p>I do no... | What I wanna do is to pass data from a Service S to an activity A. However, in my case, A is not starting S and then waiting for an answer from it : S is always running in the background. I'd like to use an Intent with a bundle attached to it, because my data are Strings and Booleans. I do not know how to proceed to ma... | android|android-activity|service | 0 | 2016-04-18T08:35:37.477Z | 2,016 | 4 | 8 | 0 | 51 | 1 | 452 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
36,689,131 | Switching tabs not working on click of tabs with SlidingtabLayout | <pre><code><include
android:id="@+id/tool_bar"
layout="@layout/toolbar"/>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/PrimaryColor"
android:layout_below="@+id/too... | [CODE] The sliding tabs works fine on tabs swipe, but it is not working on tab click. Tab lick doesn't swipe you to the relevant tab content. Below is MainActivity.java is where i am working on viewpager and SlidingTabLayout: [CODE] | android|android-viewpager|android-tablayout | 3 | 2016-04-18T08:38:54.593Z | 2,016 | 4 | 8 | 0 | 8,393 | 7 | 232 | 65 | 3 | 2 | true | false | true | false | false | false | low |
36,689,244 | Cannot get list size from Firebase on Android | <p>My log can print all <code>Exercise</code> object. But <code>listExercise</code> is null when I call. What's the problem?</p>
<pre><code>ref.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot snapshot) {
for (DataSnapshot postSnapshot : snaps... | My log can print all Exercise object. But listExercise is null when I call. What's the problem? [CODE] [UPDATE] The answer for anyone need: [CODE] | android|firebase|firebase-realtime-database | 0 | 2016-04-18T08:45:53.913Z | 2,016 | 4 | 8 | 0 | 3,767 | 3 | 146 | 45 | 3 | 2 | true | false | true | false | false | false | zero |
36,689,279 | Android Recycle View not scrolling smoothly | <p>I am implementing Recycleview in my android app, while scrolling recycle view hanging and not smoothly scroll.</p>
<p>Below is my code - </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:... | I am implementing Recycleview in my android app, while scrolling recycle view hanging and not smoothly scroll. Below is my code - [CODE] Any one can help me to sort this out. ANy help much appreciated. TIA EDITED Below is my adapter class - [CODE] } | android|gridview|android-recyclerview | 0 | 2016-04-18T08:47:15.390Z | 2,016 | 4 | 8 | 0 | 741 | 0 | 249 | 43 | 3 | 2 | true | true | false | false | false | false | zero |
36,689,380 | Android - click simulation from service | <p>I am trying to simulate a set of clicks outside my app using a service but im not able to perform the clicks.</p>
<p>At the moment i use this example project: <a href="https://github.com/mollyIV/ChatHeads" rel="nofollow">ChatHeads</a>. So basically i the service initialises the following view:</p>
<pre><code>publi... | I am trying to simulate a set of clicks outside my app using a service but im not able to perform the clicks. At the moment i use this example project: ChatHeads . So basically i the service initialises the following view: [CODE] } What do I want to achieve: After the user switches ON the Service I would like to perfor... | android|service | 0 | 2016-04-18T08:52:06.080Z | 2,016 | 4 | 8 | 0 | 40 | 0 | 751 | 39 | 2 | 1 | true | true | false | false | false | false | zero |
36,689,400 | Android GreenDAO Generator Error Gradle 2.0.0 | <p>I have updated my Android Studio. Now when I run my DAOGenerator I receive this error: </p>
<pre><code>Error:Gradle: A problem occurred configuring root project 'xxxxxx'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:2.0.0.
Required ... | I have updated my Android Studio. Now when I run my DAOGenerator I receive this error: [CODE] I have activated the offline mode. This is my graddle from generator module apply plugin: 'java' [CODE] This is my application graddle [CODE] Regards | android|gradle|greendao | 1 | 2016-04-18T08:52:53.193Z | 2,016 | 4 | 8 | 0 | 597 | 0 | 243 | 45 | 3 | 3 | true | true | false | false | false | false | low |
36,689,492 | Trigger ACTION_MOVE in Fragment while finger is already pressed down | <p><strong>Setup</strong></p>
<p>In Fragment A I have a Button with an onTouchListener. If I touch the Button, Fragment A is replaced by Fragment B.</p>
<p>Fragment B has an onTouchListener on its root view, and I want to capture the ACTION_MOVE right away.</p>
<p><strong>What I want to achieve</strong>
I want to be... | Setup In Fragment A I have a Button with an onTouchListener. If I touch the Button, Fragment A is replaced by Fragment B. Fragment B has an onTouchListener on its root view, and I want to capture the ACTION_MOVE right away. What I want to achieve I want to be able to touch the button, see Fragment B appear and immediat... | android|android-fragments|ontouch | 0 | 2016-04-18T08:57:21.667Z | 2,016 | 4 | 8 | 0 | 180 | 1 | 636 | 68 | 3 | 1 | true | false | false | false | false | false | zero |
36,689,554 | ResourcesNotFoundException for pre-lollipop devices | <p><strong>What I'm already having:</strong></p>
<p>This is my ImageView:</p>
<pre><code><ImageView
android:id="@+id/play_pause"
android:layout_width="match_parent"
android:layout_height="@dimen/timer_button_layoutHeight"
app:srcCompat="@drawable/play_button_vector"
android:... | What I'm already having: This is my ImageView: [CODE] I'm using Android plugin version 2.0: [CODE] I have the vector drawable support library flag enabled in the defaultConfig of android in the app level build.gradle: [CODE] I have also added the vector drawable support library dependency: [CODE] In the Activity class,... | android|android-vectordrawable | 1 | 2016-04-18T09:00:25.237Z | 2,016 | 4 | 9 | 0 | 959 | 3 | 835 | 51 | 2 | 5 | true | false | false | false | false | false | low |
36,689,822 | Creating ListView of ViewPager | <p>I am trying to create a list of <code>ViewPager</code>. I have written 2 <code>Adapter</code>- for <code>ListView</code> and another for ViewPager. However I just see an empty list <a href="https://i.stack.imgur.com/wh8yp.png" rel="nofollow noreferrer">enter image description here</a>. I tried implementing in the sa... | I am trying to create a list of ViewPager . I have written 2 Adapter - for ListView and another for ViewPager. However I just see an empty list enter image description here . I tried implementing in the same way as here: Placing ViewPager as a row in ListView , View Pager in listview? Here are my layouts: LISTVIEW LAYO... | android|listview|android-studio | 0 | 2016-04-18T09:14:14.580Z | 2,016 | 4 | 9 | 0 | 1,117 | 1 | 427 | 30 | 3 | 5 | true | false | false | false | false | false | zero |
36,689,840 | How to connect library apache HttpClient for Android 4.3.5 (GA)? | <p>I need sent a zip dirrectory to the server side</p>
<p>as far as I know I have to use </p>
<pre><code>CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost uploadFile = new HttpPost("...");
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
buil... | I need sent a zip dirrectory to the server side as far as I know I have to use [CODE] For this i need connect library apache HttpClient for Android 4.3.5 (GA) i was googling and fond some samples how to connect, according that samples i need to add in my build file some lines [CODE] i have done it, but it still problem... | java|android|apache | 0 | 2016-04-18T09:15:08.710Z | 2,016 | 4 | 9 | 0 | 1,006 | 2 | 386 | 64 | 3 | 3 | true | false | false | false | false | false | zero |
36,689,860 | How to pass data into string where the string will be access in another class? | <p>I have been intending to pass co.user_id to public static String USER_ID, so that the data in string user_id can be sent to another class from the onPostExecute function. However, from the another class i get null value, which means the value didnt sent to that class. How should i store my value in string so that th... | I have been intending to pass co.user_id to public static String USER_ID, so that the data in string user_id can be sent to another class from the onPostExecute function. However, from the another class i get null value, which means the value didnt sent to that class. How should i store my value in string so that the v... | java|android | 1 | 2016-04-18T09:15:35.627Z | 2,016 | 4 | 9 | 0 | 91 | 2 | 422 | 78 | 2 | 2 | true | false | false | false | false | false | low |
36,689,946 | How can i make push notification to display in every morning in android | <p>I am new to android development , i want to show push notification every day when application is closed in android. I know that i need to create service and broadcast receiver for it but i don't to do it practically.
Here is my code for simple push notification please help me to make the push notification in eve... | I am new to android development , i want to show push notification every day when application is closed in android. I know that i need to create service and broadcast receiver for it but i don't to do it practically. Here is my code for simple push notification please help me to make the push notification in every day.... | android|service|alarmmanager | -1 | 2016-04-18T09:20:35.800Z | 2,016 | 4 | 9 | 0 | 1,586 | 1 | 410 | 71 | 3 | 1 | true | false | false | false | false | true | negative |
36,689,962 | Android AlarmManager not working for a day interval | <p>I am creating an alarm for my app. The alarm is suppose to wake the app up at around 8 in the morning and make a server call. When I change the time to say an hour or less, it is able to fetch the data and give the notifications. But when I extend the Calendar to a day interval, it doesn't work. This is my code.</p>... | I am creating an alarm for my app. The alarm is suppose to wake the app up at around 8 in the morning and make a server call. When I change the time to say an hour or less, it is able to fetch the data and give the notifications. But when I extend the Calendar to a day interval, it doesn't work. This is my code. Settin... | java|android|alarmmanager | 0 | 2016-04-18T09:21:44.253Z | 2,016 | 4 | 9 | 0 | 299 | 0 | 439 | 51 | 3 | 5 | true | true | false | false | false | false | zero |
36,689,994 | Android - Saving RecyclerView state and items without losing memory on Fragment replace | <p>I have an app which has a lot of <code>RecyclerView</code> and <code>Fragment</code>. Everytime I go to the next <code>Fragment</code> i.e A to B, A's scroll position and values in <code>RecyclerViewAdapter</code> saved.</p>
<p>I saved the state onPause like :</p>
<pre><code>@Override
public void onPause() {
s... | I have an app which has a lot of RecyclerView and Fragment . Everytime I go to the next Fragment i.e A to B, A's scroll position and values in RecyclerViewAdapter saved. I saved the state onPause like : [CODE] And resume it onCreateView : [CODE] The problem is, when I go to B, A is still in memory which leads to very h... | android|android-fragments|android-recyclerview | 3 | 2016-04-18T09:23:43.243Z | 2,016 | 4 | 9 | 0 | 4,047 | 1 | 554 | 87 | 3 | 2 | true | false | true | false | false | false | low |
36,690,104 | Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/38 | <p>I added the permission on the manifest.xml</p>
<p>But I still having the same error: </p>
<blockquote>
<p>Permission Denial: reading com.android.providers.media.MediaProvider</p>
</blockquote>
<p>Help me please.</p>
<p>My java class</p>
<pre><code> package com.example.maymaa.mytest;
+import..
p... | I added the permission on the manifest.xml But I still having the same error: Permission Denial: reading com.android.providers.media.MediaProvider Help me please. My java class [CODE] My activity [CODE] My code is not working Thank you | android | 2 | 2016-04-18T09:28:23.750Z | 2,016 | 4 | 9 | 0 | 5,847 | 3 | 235 | 113 | 1 | 2 | true | false | true | false | false | false | low |
36,690,108 | Cannot Resolve symbol class RoutingListener | <p>Am doing code for Mapview to get directions by search the two locations.but am getting the error for RoutingListener. Is there any jar file for this. Please give me suggestions. wherever routing is there am getting error.Please help me out.</p>
<p>Thanks in advance.</p>
<pre><code>public class MapView2 extends App... | Am doing code for Mapview to get directions by search the two locations.but am getting the error for RoutingListener. Is there any jar file for this. Please give me suggestions. wherever routing is there am getting error.Please help me out. Thanks in advance. [CODE] | android|android-studio|android-fragments|android-intent|android-activity | -1 | 2016-04-18T09:28:33.630Z | 2,016 | 4 | 9 | 0 | 996 | 1 | 266 | 43 | 5 | 1 | true | false | false | false | false | true | negative |
36,690,123 | Parallax effect on each item in a recycler view? | <p>I'm trying to play with Parallax and getting some weird bugs, wondering if anyone can add some input to it. The only app I've seen implement parallax effectively is soundcloud. It's quite subtle, but each item has an image background and it has he parallax effect as you scroll.</p>
<p>I've created a custom Recycler... | I'm trying to play with Parallax and getting some weird bugs, wondering if anyone can add some input to it. The only app I've seen implement parallax effectively is soundcloud. It's quite subtle, but each item has an image background and it has he parallax effect as you scroll. I've created a custom RecyclerView to han... | android|animation|android-recyclerview|soundcloud|parallax | 9 | 2016-04-18T09:29:21.067Z | 2,016 | 4 | 9 | 0 | 6,681 | 2 | 1,640 | 48 | 5 | 3 | true | false | true | false | false | false | medium |
36,690,133 | Classes for Permission Checks Android | <p>I am trying to understand the native Android Code Base. I would like to know the part of the code where permissions are checked. For eg if I want to send an SMS, I need the function : <strong>public void sendDataMessage (String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent s... | I am trying to understand the native Android Code Base. I would like to know the part of the code where permissions are checked. For eg if I want to send an SMS, I need the function : public void sendDataMessage (String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, ... | java|android|permissions | 1 | 2016-04-18T09:29:45.710Z | 2,016 | 4 | 9 | 0 | 166 | 1 | 1,029 | 37 | 3 | 1 | true | false | false | false | false | false | low |
36,690,160 | GCM message not received | <p>I have been trying to implement GCM for quite some time ... but I'm stuck ... I have posted the code and the necessary details below. Here is the manifest</p>
<pre><code> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STAT... | I have been trying to implement GCM for quite some time ... but I'm stuck ... I have posted the code and the necessary details below. Here is the manifest [CODE] other related class files GcmMessageHandler: [CODE] MyInstanceIDListenerService [CODE] RegistrationIntentService: [CODE] what response I get from gcm I can su... | android|notifications|push-notification|google-cloud-messaging | 0 | 2016-04-18T09:31:05.827Z | 2,016 | 4 | 9 | 0 | 108 | 1 | 449 | 24 | 4 | 4 | true | false | false | false | false | false | zero |
36,690,241 | Why, in Android Studio, is Instant Run unable to change text of EditText? | <p>I usually set automatic login via <code>editTextUn.setText(userName)</code> and <code>editTextPw.setText(password)</code> and surround it in <code>if (BuildConfig.DEBUG) {}</code>. As you can guess, this way I don't have to type login details during the development. </p>
<p>I usually have multiple login accounts an... | I usually set automatic login via editTextUn.setText(userName) and editTextPw.setText(password) and surround it in if (BuildConfig.DEBUG) {} . As you can guess, this way I don't have to type login details during the development. I usually have multiple login accounts and I simply swich the one I want to use in the code... | android|android-studio-2.0|android-instant-run | 1 | 2016-04-18T09:34:34.210Z | 2,016 | 4 | 9 | 0 | 90 | 0 | 703 | 73 | 3 | 1 | true | true | false | false | false | false | low |
36,690,252 | Android: Calling methods inside android Alert Dialog crashing | <p><a href="http://i.stack.imgur.com/IwUhH.png" rel="nofollow">here is the error log</a><br/></p>
<p>I m beginner in android and its my first application, i want to use Alert Dialog in my project so i could include the options for user to pick contact from phone contact or enter phone number in EditText view <br/><br/... | here is the error log I m beginner in android and its my first application, i want to use Alert Dialog in my project so i could include the options for user to pick contact from phone contact or enter phone number in EditText view But facing application crashing after i call methods in else block of setPositiveButton C... | java|android|android-alertdialog | 0 | 2016-04-18T09:35:00.813Z | 2,016 | 4 | 9 | 0 | 984 | 1 | 549 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
36,690,292 | Check if SMS comes from Specific string of the raw text file | <p>I am developing an android app in which i have to check whether the incoming sms contains the word that is defined in my raw folder textfile.
I named the textfile as keywords and it contains 40+ keywords separated by commas.
Now what I want is that when new sms comes and if it contains the keywords that were defined... | I am developing an android app in which i have to check whether the incoming sms contains the word that is defined in my raw folder textfile. I named the textfile as keywords and it contains 40+ keywords separated by commas. Now what I want is that when new sms comes and if it contains the keywords that were defined in... | android|text-files|inputstream|android-broadcastreceiver | 0 | 2016-04-18T09:36:22.357Z | 2,016 | 4 | 9 | 0 | 122 | 0 | 892 | 60 | 4 | 5 | true | true | false | false | false | false | zero |
36,690,340 | Program hangs when calling REST API from Xamarin PCL | <p>I have the following code in my Xamarin PCL</p>
<pre><code> public Product Product(int id)
{
var product = Get<Product>(endpoint + "?id=" + id).Result;
return product;
}
static async Task<T> Get<T>(string endpoint)
{
using (var client = new HttpClient()... | I have the following code in my Xamarin PCL [CODE] My program just hangs at this line [CODE] No exception thrown. I execute the same code in a console app, and it works fine. The only difference I could see is that in my console app, I'm referencing Newtonsoft.Json.dll in the lib\net45 folder. In my Xamarin PCL project... | c#|json|xamarin|xamarin.android|portable-class-library | 3 | 2016-04-18T09:38:34.077Z | 2,016 | 4 | 9 | 0 | 902 | 2 | 533 | 52 | 5 | 2 | true | false | false | false | false | false | low |
36,690,571 | Main menu is showing under sub menu in navigation drawer in Android | <p>I am developing an Android app. In my app I am using navigation drawer and navigation view. I am adding menu item programmatically to drawer. But when I add, main menu appears below sub menu.</p>
<p>This is how I add menu in onCreate of activity</p>
<pre><code>private static final int CATEGORY_MENU_GROUP_ID = 20;
... | I am developing an Android app. In my app I am using navigation drawer and navigation view. I am adding menu item programmatically to drawer. But when I add, main menu appears below sub menu. This is how I add menu in onCreate of activity [CODE] This is my updateAuthUI method [CODE] This is addCategoryMenu method [CODE... | android|android-menu|navigation-drawer|android-navigationview | 0 | 2016-04-18T09:49:45.653Z | 2,016 | 4 | 9 | 0 | 468 | 0 | 438 | 67 | 4 | 3 | true | true | false | false | false | false | zero |
36,690,666 | Cannot remove scrollbar from gridview | <p>I have read and tried all of the stackoverflow questions about removing/hiding a scrollbar from a gridview, however, it wont disappear! I am testing on a Samsung Galaxy S4 running Lollipop.</p>
<p>Here is my XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://sch... | I have read and tried all of the stackoverflow questions about removing/hiding a scrollbar from a gridview, however, it wont disappear! I am testing on a Samsung Galaxy S4 running Lollipop. Here is my XML: [CODE] Here is my onCreate [CODE] Also tried setting styles like [CODE] and setting size to null: [CODE] and thumb... | android|gridview | 2 | 2016-04-18T09:53:53.770Z | 2,016 | 4 | 9 | 0 | 3,705 | 2 | 466 | 37 | 2 | 5 | true | false | true | false | false | false | low |
36,690,851 | Not able to Add module in Android studio project, sync option also not visible | <p>I'm not able to see any sync button in my studio, also not able to add module(aar, jar) , there is red X mark over run option on APP and ProjectName( eg. "Helloword")
i tried to add facets but it says No Suitable modules for Anroid facets found.
i also tried to add modules from Dependencies option but it says Found ... | I'm not able to see any sync button in my studio, also not able to add module(aar, jar) , there is red X mark over run option on APP and ProjectName( eg. "Helloword") i tried to add facets but it says No Suitable modules for Anroid facets found. i also tried to add modules from Dependencies option but it says Found no ... | android|android-studio|gradle|gitignore | 0 | 2016-04-18T10:02:29.610Z | 2,016 | 4 | 10 | 0 | 231 | 1 | 878 | 78 | 4 | 1 | true | false | false | false | false | false | zero |
36,690,862 | Appcelerator Studio - Android app crashes on Marshmallow when I load a URL in video player | <p>I download a video from my remote server and saving it in application data directory. Once it is completed I pass its URL to video player (UI element on my window). Then my app crashes.</p>
<p>This is only happening on Marshmallow (Android version 6.0). I've tested it on Lollypop (4-5 devices) but it is working fin... | I download a video from my remote server and saving it in application data directory. Once it is completed I pass its URL to video player (UI element on my window). Then my app crashes. This is only happening on Marshmallow (Android version 6.0). I've tested it on Lollypop (4-5 devices) but it is working fine there. I ... | android|appcelerator|android-6.0-marshmallow|appcelerator-titanium|video-player | 6 | 2016-04-18T10:03:15.680Z | 2,016 | 4 | 10 | 0 | 411 | 2 | 939 | 90 | 5 | 0 | false | false | false | false | false | false | medium |
36,690,899 | Java.Lang.IllegalStateException while using FormsAppCompatActivity in Xamarin Android | <p>The Xamarin android code is giving runtime exception when used with following code:</p>
<pre><code>public class MyActivity: global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
ToolbarResource = Resource.Layout.toolbar;
TabLayoutRe... | The Xamarin android code is giving runtime exception when used with following code: [CODE] When running the app, its builds successfully. But in Runtime iot gets into following error StackTrace: [CODE] This error occurs at points where Navigation.PushAsync or Navigation.PushModalAsync is called. | xamarin|xamarin.android | 0 | 2016-04-18T10:04:52.813Z | 2,016 | 4 | 10 | 0 | 1,158 | 1 | 296 | 85 | 2 | 2 | true | false | false | false | false | false | zero |
36,690,924 | How to Fix the following error in Android NDK Project "only position independent executables (PIE) are supported" | <p>I am working on a Android NDK Project using Iperf library for measuring network performance. App is working perfect up to Android version 4.x.But not working in Android latest versions from 5.x(Lollipop), getting an error "error: only position independent executables (PIE) are supported.".I am using Eclipse Luna, ND... | I am working on a Android NDK Project using Iperf library for measuring network performance. App is working perfect up to Android version 4.x.But not working in Android latest versions from 5.x(Lollipop), getting an error "error: only position independent executables (PIE) are supported.".I am using Eclipse Luna, NDK12... | android|android-ndk|iperf | 0 | 2016-04-18T10:05:44.200Z | 2,016 | 4 | 10 | 0 | 1,468 | 0 | 398 | 113 | 3 | 1 | true | true | false | false | false | false | zero |
36,690,940 | Facebook login in android application is not working | <p>Am working on fb login in android application but i have an issue when is add sdk in gradle after after sync it show error</p>
<pre><code>enter code here
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
repositories {
mavenCentral()
}
defaultConfig {
applicationId "com.dogsbree"
minSdkVersion... | Am working on fb login in android application but i have an issue when is add sdk in gradle after after sync it show error [CODE] } It show error like this [CODE] | android|facebook|api|integration | 0 | 2016-04-18T10:06:48.957Z | 2,016 | 4 | 10 | 0 | 130 | 1 | 162 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
36,690,994 | Switching between day and night themes in android 6 using AppCompat | <p>I'm using the new Theme.AppCompat.DayNight in appcompat 23.3.0. I have tried using the following to switch between day/night/auto in a settings activity of my app:</p>
<pre><code>themePref.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
@Override
public boolean onPreferenceChange... | I'm using the new Theme.AppCompat.DayNight in appcompat 23.3.0. I have tried using the following to switch between day/night/auto in a settings activity of my app: [CODE] This works as expected on API22 and below. However on android 6, switching between day and night mode results in the listperference dialog being inco... | android|android-support-library|android-theme | 2 | 2016-04-18T10:10:08.993Z | 2,016 | 4 | 10 | 0 | 749 | 0 | 591 | 67 | 3 | 1 | true | true | false | false | false | false | low |
36,691,104 | (Android) ScrollView stutters on fling with long multiline EditTtext inside | <p>I have the following problem, and I cannot figure out how to eve try solving it (or whether there is a way):</p>
<h3>My problem</h3>
<p>I have <code>SrollView</code>, containing to <code>EditText</code> input fields. One is a single line, below is a multiline. Everything's fine and works as expected, up until I p... | I have the following problem, and I cannot figure out how to eve try solving it (or whether there is a way): My problem I have SrollView , containing to EditText input fields. One is a single line, below is a multiline. Everything's fine and works as expected, up until I put too much stuff into the multiline EditText .... | android|scrollview|smooth-scrolling | 0 | 2016-04-18T10:15:34.960Z | 2,016 | 4 | 10 | 0 | 289 | 0 | 1,907 | 75 | 3 | 3 | true | true | false | false | false | false | zero |
36,691,146 | android studio cannot SetText from adapter | <p>so im having this function in my custom listview adapter from CountDownTimer, but somehow i can't update the text to UI. Help me plz</p>
<pre><code>private Handler mHandler = new Handler();
private Runnable updateRemainingTimeRunnable = new Runnable() {
@Override
public void run() {
... | so im having this function in my custom listview adapter from CountDownTimer, but somehow i can't update the text to UI. Help me plz [CODE] but when i call it for the first time from the getView like this, the Text changed. [CODE] so why the textView can't change text from my startUpdateTimer code loop ? Thanks. | android|textview|listview-adapter | 1 | 2016-04-18T10:17:26.203Z | 2,016 | 4 | 10 | 0 | 781 | 1 | 313 | 42 | 3 | 2 | true | false | false | false | false | false | low |
36,691,267 | Storing multiple SharedPreferences based on days in a calendar | <p>Hi I want to store and retrive temperature readings of each day. I am fairly new to Android and for this purpose I have used a service. First, I check if there are any previously stored shared preferences and load them. The snippet is as follows:</p>
<pre><code>public void onCreate() {
Log.i(TAG, "Service ... | Hi I want to store and retrive temperature readings of each day. I am fairly new to Android and for this purpose I have used a service. First, I check if there are any previously stored shared preferences and load them. The snippet is as follows: [CODE] Later, I load the new data using the following snippet : [CODE] Th... | android|service|sharedpreferences | 0 | 2016-04-18T10:23:21.237Z | 2,016 | 4 | 10 | 0 | 68 | 2 | 614 | 62 | 3 | 2 | true | false | false | false | false | false | zero |
36,691,271 | Dialog not Opening | <p>This my code which is supposed to open a list view of items. And when an item is clicked it opens a corresponding dialog. The listView appears but no dialog shows at all. And I don't see any errors in the logcat. Please help</p>
<pre><code>import android.app.Dialog;
import android.app.ListActivity;
import android.o... | This my code which is supposed to open a list view of items. And when an item is clicked it opens a corresponding dialog. The listView appears but no dialog shows at all. And I don't see any errors in the logcat. Please help [CODE] This is my dialog layout [CODE] | java|android | 1 | 2016-04-18T10:23:34.513Z | 2,016 | 4 | 10 | 0 | 57 | 3 | 263 | 18 | 2 | 2 | true | false | false | false | false | false | low |
36,691,406 | No searching results after onTextChanged in android Listview | <p>I can't resolve this problem. I want to add search functionality by EditText. Results should dynamically display after typing letters but now there is no results.</p>
<p>Thanks for Your quick response :)</p>
<p><b>ParkingActivity.java</b></p>
<pre><code>public class ParkingActivity extends FragmentActivity {
pri... | I can't resolve this problem. I want to add search functionality by EditText. Results should dynamically display after typing letters but now there is no results. Thanks for Your quick response :) ParkingActivity.java [CODE] This is my model which I use to create final array with data. ParkingModel.java [CODE] Here is ... | android|listview | 0 | 2016-04-18T10:29:46.490Z | 2,016 | 4 | 10 | 0 | 490 | 2 | 357 | 60 | 2 | 3 | true | false | false | false | false | false | zero |
36,691,500 | Multithreading android application | <p>I've two threads in my android application one adds speed values every 1/2 a second and the other one gets the average from this array list to reduce fluctuations the problem is only one thread is starting and i don't know why. Here is the code:</p>
<pre><code> Runnable r = new Runnable() {
publi... | I've two threads in my android application one adds speed values every 1/2 a second and the other one gets the average from this array list to reduce fluctuations the problem is only one thread is starting and i don't know why. Here is the code: [CODE] | java|android|multithreading | 0 | 2016-04-18T10:33:49.673Z | 2,016 | 4 | 10 | 0 | 60 | 1 | 252 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
36,691,522 | Android/PHP - JSONParser not working for getting web page content as JsonObject | <p>There are a lot of questions about JSONParser but nothing seems to work.
So, I have a php script on a server.</p>
<p>This php script gets some data from the database and generates a Json with this data.</p>
<p>I verified this Json and it is correct.</p>
<p>In android I have a JSONParser that connects to the php s... | There are a lot of questions about JSONParser but nothing seems to work. So, I have a php script on a server. This php script gets some data from the database and generates a Json with this data. I verified this Json and it is correct. In android I have a JSONParser that connects to the php script url and gets the web ... | php|android|json|httprequest | 1 | 2016-04-18T10:35:08.343Z | 2,016 | 4 | 10 | 0 | 456 | 2 | 953 | 79 | 4 | 7 | true | false | false | false | false | false | low |
36,691,692 | show Action bar in YouTube activity | <p>I using youtube api and playing youtube video using below tag in xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_h... | I using youtube api and playing youtube video using below tag in xml [CODE] and i am using this code in activity. [CODE] but when video is playing it is showing on full screen.. What i need i just need to display action with back button enabled Thanks. | android|youtube|android-youtube-api | 0 | 2016-04-18T10:42:13.353Z | 2,016 | 4 | 10 | 0 | 1,004 | 0 | 252 | 35 | 3 | 2 | true | true | false | false | false | false | zero |
36,691,700 | Android Studio Error Message at runtime | <p>Would you please explain about the error message and solution?</p>
<p>I was working on android studio , My task was very easy , just adding 2 numbers using a library . Last time when it run successfully , I didn't add the jar file
. But After adding the jar file , the project run no longer . When I press run , it ... | Would you please explain about the error message and solution? I was working on android studio , My task was very easy , just adding 2 numbers using a library . Last time when it run successfully , I didn't add the jar file . But After adding the jar file , the project run no longer . When I press run , it shows the er... | android|android-gradle-plugin | -1 | 2016-04-18T10:42:54.527Z | 2,016 | 4 | 10 | 0 | 1,844 | 4 | 1,038 | 39 | 2 | 1 | true | false | false | false | false | true | negative |
36,692,036 | Crash at runtime after migrating to Android Studio ( NoSuchMethodError ) | <p>I migrated to Android studio, everything seemed ok up until I tried to run the app.
It got stuck in the Launcher activity and then crashed, printing:</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoSuchMethodError: No direct method <init>(ILjava/lang/String;)V in class Lcom/google/android/g... | I migrated to Android studio, everything seemed ok up until I tried to run the app. It got stuck in the Launcher activity and then crashed, printing: [CODE] | android|android-studio|crash | 5 | 2016-04-18T10:58:00.533Z | 2,016 | 4 | 10 | 0 | 6,700 | 4 | 156 | 72 | 3 | 1 | true | false | true | false | false | false | low |
36,692,086 | Parse JSON value to an Activity from a ListView. Beginner | <p>I just learned java and also android app development.</p>
<p>I've been able to populate <code>json</code> object to a <code>listview</code> from a <code>web-service</code> to my <code>NewActivity.class</code>. but having problems with setting <code>OnItemClickListener</code> for my <code>listview</code> by parsing ... | I just learned java and also android app development. I've been able to populate json object to a listview from a web-service to my NewActivity.class . but having problems with setting OnItemClickListener for my listview by parsing json value from my jsonparser class to my DetailActivity.class . I tried reading some an... | java|android|json|listview | 0 | 2016-04-18T11:00:23.493Z | 2,016 | 4 | 11 | 0 | 140 | 2 | 600 | 57 | 4 | 4 | true | false | false | false | false | false | zero |
36,692,097 | The Implementation of a spinners is causing my app to crash | <p>This is the Java end. It has the Spinner adapters and also the setOnItemClickListener methods. When I comment the "spTitles" setadAdapter method, the program runs. However the program runs whether or not I comment the spCategories setAdapter method</p>
<pre><code>import java.util.ArrayList;
import android.app.Acti... | This is the Java end. It has the Spinner adapters and also the setOnItemClickListener methods. When I comment the "spTitles" setadAdapter method, the program runs. However the program runs whether or not I comment the spCategories setAdapter method [CODE] This is the xml file [CODE] | android | 0 | 2016-04-18T11:00:58.753Z | 2,016 | 4 | 11 | 0 | 26 | 0 | 283 | 59 | 1 | 2 | true | true | false | false | false | false | zero |
36,692,141 | Using an IntentService to update CardView item | <p>I started implementing material design in my android application and I used a card View for displaying data in the main activity. The data I want to display in the main activity of my application is to be measured using a Service and I am wondering if there is any way to receive broadcasts from the service to update... | I started implementing material design in my android application and I used a card View for displaying data in the main activity. The data I want to display in the main activity of my application is to be measured using a Service and I am wondering if there is any way to receive broadcasts from the service to update my... | android|android-studio|android-service|android-cardview | 0 | 2016-04-18T11:02:58.683Z | 2,016 | 4 | 11 | 0 | 73 | 0 | 935 | 46 | 4 | 1 | true | true | false | false | false | false | zero |
36,692,155 | Red Screen React Native Reference Error : Can't find variable : _fbBatchedBridge | <p>I followed the steps mentioned in following documents and everything runs perfectly.</p>
<p><a href="https://i.stack.imgur.com/wuveb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wuveb.png" alt="react-native start Output"></a></p>
<ol>
<li><a href="https://facebook.github.io/react-native/docs/... | I followed the steps mentioned in following documents and everything runs perfectly. https://facebook.github.io/react-native/docs/getting-started.html https://facebook.github.io/react-native/docs/android-setup.html https://facebook.github.io/react-native/docs/running-on-device-android.html Now am trying to run the andr... | javascript|android|facebook|react-native | 0 | 2016-04-18T11:03:48.223Z | 2,016 | 4 | 11 | 0 | 874 | 0 | 878 | 80 | 4 | 3 | true | true | false | false | false | false | zero |
36,692,180 | Pass json data of listview to next activity on click of row item | <p>I need to pass the json data of listview to the next activity on the click of row item.</p>
<p>here is my first Activity</p>
<pre><code>public class DrSearch extends Activity implements OnClickListener,
OnItemClickListener {
ListView listView;
ArrayList<RowItem> rowDoctors;
DrSearchListView... | I need to pass the json data of listview to the next activity on the click of row item. here is my first Activity [CODE] | android|json|listview | 0 | 2016-04-18T11:05:04.463Z | 2,016 | 4 | 11 | 0 | 1,542 | 2 | 120 | 64 | 3 | 1 | true | false | false | false | false | false | zero |
36,692,201 | gradle error in building compile 'com.firebase:firebase-client-android:2.5.2+' | <p>Error:Execution failed for task ':app:transformClassesWithDexForDebug'.</p>
<blockquote>
<p>com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/H... | Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/bin/java'' finished wi... | java|android|firebase | 0 | 2016-04-18T11:05:48.277Z | 2,016 | 4 | 11 | 0 | 669 | 3 | 482 | 78 | 3 | 1 | true | false | false | false | false | false | zero |
36,692,226 | BitmapHunter Exception - Unrecognized type of request | <p>I am using a recycler view with horizontal scroll everything is working fine in code.I am retriving image url which i pass to picasso but I am unable to show the image in Image view. I am getting following error.</p>
<p>I have looked through the other answers but didn't found solution.</p>
<pre><code>java.lang.Ill... | I am using a recycler view with horizontal scroll everything is working fine in code.I am retriving image url which i pass to picasso but I am unable to show the image in Image view. I am getting following error. I have looked through the other answers but didn't found solution. [CODE] I have raised a new issue in gith... | android|android-fragments|android-studio|picasso | 2 | 2016-04-18T11:06:51.750Z | 2,016 | 4 | 11 | 0 | 1,370 | 2 | 428 | 53 | 4 | 2 | true | false | false | false | false | false | low |
36,692,243 | how to write multiline in layout or Button? | <p>[how to different textsize and different text colour and write multiline in text view in below image in android?</p>
<p><a href="http://i.stack.imgur.com/6oNsI.jpg" rel="nofollow">image description here</a></p>
<p>am writing the following design, </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Li... | [how to different textsize and different text colour and write multiline in text view in below image in android? image description here am writing the following design, [CODE] please give the solution for the above image.. | xml|android-layout|layout | 0 | 2016-04-18T11:07:54.583Z | 2,016 | 4 | 11 | 0 | 36 | 2 | 222 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
36,692,262 | Post not working with Uri.builder | <p>For a registration form i am sending username, password and email id in httpurlconnection using the Uri.builder but there is a problem in receiving the value in the PHP side. I verified the response code its sending 200. </p>
<p>Java:</p>
<pre><code>@Override
protected Void doInBackground(Void... params) {
... | For a registration form i am sending username, password and email id in httpurlconnection using the Uri.builder but there is a problem in receiving the value in the PHP side. I verified the response code its sending 200. Java: [CODE] PHP: [CODE] The values are passing as username&password&email do i need to do some man... | java|php|android|uri|httpurlconnection | 2 | 2016-04-18T11:08:53.507Z | 2,016 | 4 | 11 | 0 | 524 | 0 | 359 | 33 | 5 | 2 | true | true | false | false | false | false | low |
36,692,278 | Activity of YoutubeFragment has leaked ServiceConnection | <h2>YoutubeFragment</h2>
<p>Hi all, </p>
<p>my application works fine, I saw the video from youtube but when I change the orientation, I keep seeing the video but the log gives me that error of leak ServiceConnection. </p>
<pre><code>public class PlayerYouTubeFrag extends YouTubePlayerSupportFragment {
public P... | YoutubeFragment Hi all, my application works fine, I saw the video from youtube but when I change the orientation, I keep seeing the video but the log gives me that error of leak ServiceConnection. [CODE] Error of logCat Activity com.euphor.paperpad.activities.main.MainActivity has leaked ServiceConnection com.google.a... | java|android|android-fragments|youtube | 0 | 2016-04-18T11:09:19.337Z | 2,016 | 4 | 11 | 0 | 717 | 0 | 2,923 | 56 | 4 | 1 | true | true | false | false | false | false | zero |
36,692,398 | Draw overlay behind or over navigation bar | <p>I'm creating an app which should draw fullscreen overlay. Something like lockscreen. The user set some timer and when time is come this overlay should appear.</p>
<p>But overlay doesn't cover system navigation bar. It's a problem when navigation bar is semi-transparent. User can touch system buttons and can see som... | I'm creating an app which should draw fullscreen overlay. Something like lockscreen. The user set some timer and when time is come this overlay should appear. But overlay doesn't cover system navigation bar. It's a problem when navigation bar is semi-transparent. User can touch system buttons and can see some changeabl... | android|overlay|navigationbar | 1 | 2016-04-18T11:15:34.103Z | 2,016 | 4 | 11 | 0 | 2,375 | 1 | 644 | 42 | 3 | 2 | true | false | false | false | false | false | low |
36,692,465 | Urbanairship customise push notification message content | <p>I'm using urban airship to send push notification to my android application. I'm sending a json content from my backend server as push content</p>
<p>push is working correctly & I can get the push content. Push message is showing in the device notification bar as well. </p>
<p>But the problem is push notificat... | I'm using urban airship to send push notification to my android application. I'm sending a json content from my backend server as push content push is working correctly & I can get the push content. Push message is showing in the device notification bar as well. But the problem is push notification shows the json conte... | android|json|notifications|push-notification|urbanairship.com | 0 | 2016-04-18T11:19:15.447Z | 2,016 | 4 | 11 | 0 | 524 | 1 | 805 | 56 | 5 | 1 | true | false | false | false | false | false | zero |
36,692,490 | onAmbientModeChanged is not calling when in ambient watchface android wear | <p>Recently i tried to implementing ambient mode in android wear watchface, after implement some coding, i found out that onAmbientModeChanged will not be called when turn into ambient mode (emulator), but turn to normal mode it will called twice, first trigger,the inAmbientMode is true, second trigger the inAmbientMod... | Recently i tried to implementing ambient mode in android wear watchface, after implement some coding, i found out that onAmbientModeChanged will not be called when turn into ambient mode (emulator), but turn to normal mode it will called twice, first trigger,the inAmbientMode is true, second trigger the inAmbientMode i... | android|wear-os|ambient|watchface | 1 | 2016-04-18T11:20:19.640Z | 2,016 | 4 | 11 | 0 | 609 | 2 | 966 | 74 | 4 | 1 | true | false | false | false | false | false | low |
36,692,513 | passing value from one list view to another | <p>I am trying to pass a value through a listview to a listview on another activity using an onclicklistener. I am having serious trouble and cannot figure out how to do it properly.</p>
<p>Below is my code with the main expandable list view on it:</p>
<pre><code>public class Menu extends AppCompatActivity {
Expanda... | I am trying to pass a value through a listview to a listview on another activity using an onclicklistener. I am having serious trouble and cannot figure out how to do it properly. Below is my code with the main expandable list view on it: [CODE] Can anyone help with example code or advice? Would be very much appreciate... | java|android|android-studio|expandablelistview | 0 | 2016-04-18T11:21:01.913Z | 2,016 | 4 | 11 | 0 | 101 | 1 | 329 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
36,692,527 | PUSH-notification duplicated with empty content | <p>Dispatched test push into my device.</p>
<p>When the application is active, push comes normally with sound, but when the app is minimized, comes 2 empty pushes and without sound.</p>
<p>Even if <code>onMessageReceived</code> left empty, still displays two empty push-notifications.</p>
<p>The class receiving PUSH:... | Dispatched test push into my device. When the application is active, push comes normally with sound, but when the app is minimized, comes 2 empty pushes and without sound. Even if onMessageReceived left empty, still displays two empty push-notifications. The class receiving PUSH: [CODE] } Text PUSH: [CODE] content avai... | android|push-notification|android-notifications | 2 | 2016-04-18T11:21:51.783Z | 2,016 | 4 | 11 | 0 | 291 | 1 | 456 | 47 | 3 | 2 | true | false | false | false | false | false | low |
36,692,528 | get child element from child element xml android | <p>I have xml i want to get any element not By order or get child element from another child element , i want to get <strong><em>Description</em></strong> tag from <strong><em>available products</em></strong> tag and <strong><em>attributes</em></strong> of it i search a lot but i am beginner with android i can not got... | I have xml i want to get any element not By order or get child element from another child element , i want to get Description tag from available products tag and attributes of it i search a lot but i am beginner with android i can not got it . [CODE] Here is my code [CODE] | java|android|xml|xml-parsing | 0 | 2016-04-18T11:21:52.080Z | 2,016 | 4 | 11 | 0 | 56 | 0 | 273 | 48 | 4 | 2 | true | true | false | false | false | false | zero |
36,692,532 | Android calendar object from string | <p>I want to make a function for my android app, where i pass 3 variables</p>
<ol>
<li>From (string representing a date)</li>
<li>To (string representing a date)</li>
<li>unit (integer)</li>
</ol>
<p>What the result should be, is the difference of these two date in weeks, or days or years depending on unit. This is m... | I want to make a function for my android app, where i pass 3 variables From (string representing a date) To (string representing a date) unit (integer) What the result should be, is the difference of these two date in weeks, or days or years depending on unit. This is my code: [CODE] } The above code is not working cor... | java|android|datetime-format|android-calendar | 0 | 2016-04-18T11:22:01.017Z | 2,016 | 4 | 11 | 0 | 572 | 3 | 518 | 35 | 4 | 2 | true | false | false | false | false | false | zero |
36,692,551 | Maximum size of imageviews | <p>I have the layout you see on the picture. Cells for each ImageView are set to be equally sized by width and height. Scale type of images are "fitXY". Currently all images resize depending on screen size and often are upscaled.</p>
<p>I want to achieve the following behavior:
set maxSize - maximum width and height o... | I have the layout you see on the picture. Cells for each ImageView are set to be equally sized by width and height. Scale type of images are "fitXY". Currently all images resize depending on screen size and often are upscaled. I want to achieve the following behavior: set maxSize - maximum width and height of an image.... | android|android-layout | 1 | 2016-04-18T11:22:53.963Z | 2,016 | 4 | 11 | 0 | 4,687 | 1 | 661 | 26 | 2 | 1 | true | false | true | false | false | false | low |
36,692,567 | How to Add Pushwoosh plugin for Android to Cordova IBM Worklight (@Eclipse)? | <p>I want to implement the push notification to my cordova android application using <a href="https://www.pushwoosh.com/" rel="nofollow noreferrer">Pushwoosh</a> library.</p>
<p>I am try to following <a href="http://docs.pushwoosh.com/docs/cordova-phonegap" rel="nofollow noreferrer">Pushwhoosh guide</a>. But from the b... | I want to implement the push notification to my cordova android application using Pushwoosh library. I am try to following Pushwhoosh guide . But from the begining , it requirs to add plugin from command. cordova plugin add pushwoosh-cordova-plugin But i am usin eclipse IDE , and dont know how to add those plugin, Hope... | android|eclipse|cordova|cordova-plugins|pushwoosh | 2 | 2016-04-18T11:23:28.827Z | 2,016 | 4 | 11 | 0 | 345 | 1 | 1,258 | 76 | 5 | 0 | false | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.