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,951,332 | horizontalscrollview with image and text is possible to add two views | <p>I want to add two child views to a horizontal scroll view. The two views are a <code>ImageView</code> and a <code>TextView</code> and the <code>TextView</code> should be below the `ImageView, both the view should scroll horizontally Is it possible to achieve this? How can it be added? I am new to android.</p>
<p>T... | I want to add two child views to a horizontal scroll view. The two views are a ImageView and a TextView and the TextView should be below the `ImageView, both the view should scroll horizontally Is it possible to achieve this? How can it be added? I am new to android. Thanks in advance. in my fragment: [CODE] xml: [CODE... | android|view|horizontalscrollview | 0 | 2016-04-30T05:54:57.870Z | 2,016 | 4 | 5 | 5 | 1,812 | 4 | 321 | 69 | 3 | 2 | true | false | false | false | false | false | zero |
36,951,357 | How to update CustomAdapter using ASyncTask in Android | <p>I am fetching data from www.omdbapi.com. I want to show a movie ID along with a movie name in my custom ListView. But I am stuck in the process of AsyncTask in <code>onPostExecute()</code>. I am unable to update my custom adapter.</p>
<p>My ListView Activity</p>
<pre><code>public class MovieSearch extends AppCompa... | I am fetching data from www.omdbapi.com. I want to show a movie ID along with a movie name in my custom ListView. But I am stuck in the process of AsyncTask in onPostExecute() . I am unable to update my custom adapter. My ListView Activity [CODE] My CustomListViewAdpter [CODE] | android|android-asynctask | 0 | 2016-04-30T05:59:27.117Z | 2,016 | 4 | 5 | 5 | 64 | 3 | 277 | 54 | 2 | 2 | true | false | false | false | false | false | zero |
36,951,374 | Grouping robolectric tests using junit Category in an Android gradle project | <p>I want to use Junit Category annotation to group the robolectric unit tests so that some tests will not run in a certain situation.</p>
<p>In a normal java project, I know I can use</p>
<pre><code>apply plugin: 'java'
test {
useJUnit {
includeCategories 'FastTest'
}
}
</code></pre>
<p>to specify t... | I want to use Junit Category annotation to group the robolectric unit tests so that some tests will not run in a certain situation. In a normal java project, I know I can use [CODE] to specify the category. but apparently the 'java' plugin is not compatible with the Android plugins 'com.android.application'. [CODE] I t... | android|gradle|junit|robolectric | 8 | 2016-04-30T06:01:29.753Z | 2,016 | 4 | 6 | 5 | 332 | 1 | 551 | 76 | 4 | 3 | true | false | false | false | false | false | medium |
36,951,437 | Border for table row items in android | <p>How i can achieve view like below screen shots (1 expected result, 2 Actual result). As you can see each items have border it is like left and bottom for some items and for some items it is right & bottom. I have created view using <code>TableLayout</code> but now i don't know how to apply border to each row and... | How i can achieve view like below screen shots (1 expected result, 2 Actual result). As you can see each items have border it is like left and bottom for some items and for some items it is right & bottom. I have created view using TableLayout but now i don't know how to apply border to each row and item. My questions ... | android|android-layout|android-tablelayout | 4 | 2016-04-30T06:08:41.653Z | 2,016 | 4 | 6 | 5 | 8,140 | 2 | 547 | 37 | 3 | 1 | true | false | true | false | false | false | low |
36,951,452 | Navigation Menu in android | <p>I am new in android but i want to make navigation menu in my application. I successfully fetch data from web service. But i have problem in navigation menu how to add web service menu item in navigation menu?
In this activity First fetch data through web service and then convert json object to array object and then... | I am new in android but i want to make navigation menu in my application. I successfully fetch data from web service. But i have problem in navigation menu how to add web service menu item in navigation menu? In this activity First fetch data through web service and then convert json object to array object and then cal... | android|android-layout | 0 | 2016-04-30T06:10:42.623Z | 2,016 | 4 | 6 | 5 | 129 | 1 | 439 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
36,951,459 | Sync Database between client (android) and server (rails PostgreSQL) | <p>We are building a call management software that allows different people to get calls assigned to them which they can edit on the mobile and then close the call from the mobile which gets synced back to the server for the central admin to monitor. For a linear flow of data i.e call created on server > sent to mobile ... | We are building a call management software that allows different people to get calls assigned to them which they can edit on the mobile and then close the call from the mobile which gets synced back to the server for the central admin to monitor. For a linear flow of data i.e call created on server > sent to mobile > u... | android|ruby-on-rails|database|postgresql|synchronization | 1 | 2016-04-30T06:12:25.810Z | 2,016 | 4 | 6 | 5 | 545 | 1 | 1,576 | 68 | 5 | 0 | false | false | false | false | false | false | low |
36,951,716 | TLS 1.1, 1.2 in WebView for android <= 4.3 | <p>In my android application I need to display 3rd-party registration form inside <code>WebView</code>. Unfortunately, I need to also support android versions < 4.3, where you get SSL handshake error when you connect to the website. I was, however, able to create direct requests on android 4.1+ with a custom SSL con... | In my android application I need to display 3rd-party registration form inside WebView . Unfortunately, I need to also support android versions < 4.3, where you get SSL handshake error when you connect to the website. I was, however, able to create direct requests on android 4.1+ with a custom SSL context which has TLS... | android|ssl|webview|tls1.2 | 7 | 2016-04-30T06:45:37.217Z | 2,016 | 4 | 6 | 5 | 4,783 | 2 | 622 | 42 | 4 | 1 | true | false | true | false | false | false | medium |
36,951,780 | LocationSettingsRequest dialog never shows | <p>So I have problem to the the <strong>LocationSettingsRequest dialog</strong> to show when GPS is not turned on.</p>
<p>I have been following the
<a href="https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi#public-method-summary" rel="nofollow">SettingsApi Documentation</a></... | So I have problem to the the LocationSettingsRequest dialog to show when GPS is not turned on. I have been following the SettingsApi Documentation Here is the code: enableGpsSetting: [CODE] onActivityResult [CODE] The changes I have made is Outerclass.this to MainActivity.this I am extending FragmentActivity dont know ... | android|api|google-maps|location|settings | 0 | 2016-04-30T06:51:50.177Z | 2,016 | 4 | 6 | 5 | 1,357 | 2 | 412 | 42 | 5 | 2 | true | false | false | false | false | false | zero |
36,951,853 | Android Pager using Fragment | <p>In android Coding I have some doubts.I am working In Paging concepts.
I have two Fragments. One is Master Fragment and another one is Transaction Fragment.
In master one Button is available. That is vendor. If we click the vendor button we can create a new vendor details.
Its work fine to mo... | In android Coding I have some doubts.I am working In Paging concepts. I have two Fragments. One is Master Fragment and another one is Transaction Fragment. In master one Button is available. That is vendor. If we click the vendor button we can create a new vendor details. Its work fine to move forward. That is if we cl... | android | -2 | 2016-04-30T07:01:07.077Z | 2,016 | 4 | 7 | 5 | 40 | 2 | 769 | 28 | 1 | 1 | true | false | false | false | false | true | negative |
36,951,858 | android : ProGuard error , there were 4 duplicate class definitions | <p>I am using ksoap2 version 2.4 to connect a .net webservice and get data.I am using ProGuard when I export my application.
I got this error when exporting by proguard.there is no problem when I dont use it.</p>
<pre><code>[2016-04-13 11:41:39 - Agency] Proguard returned with error code 1. See console
[2016-04-13 11:... | I am using ksoap2 version 2.4 to connect a .net webservice and get data.I am using ProGuard when I export my application. I got this error when exporting by proguard.there is no problem when I dont use it. [CODE] I serached google and found some solutions.but none of them worked. By using -dontwarn my application close... | android|ksoap2|android-proguard | 0 | 2016-04-30T07:01:36.077Z | 2,016 | 4 | 7 | 5 | 2,326 | 1 | 403 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
36,951,913 | Why do I receive CSRF Token mismatch error in Android Studio even when GET and POST tokens are the same? | <p>I am working on an android app (android studio) for my friend's website (node.js/mongoDB) and I am working on user login via the app. Everything works fine on the server side but when attempting to login on android the server receives POST 403 error with CSRF Token Mismatch exception. In android studio I am using Ht... | I am working on an android app (android studio) for my friend's website (node.js/mongoDB) and I am working on user login via the app. Everything works fine on the server side but when attempting to login on android the server receives POST 403 error with CSRF Token Mismatch exception. In android studio I am using HttpU... | android|node.js|mongodb|express|csrf | 0 | 2016-04-30T07:07:31.913Z | 2,016 | 4 | 7 | 5 | 1,116 | 1 | 1,078 | 104 | 5 | 3 | true | false | false | false | false | false | zero |
36,951,935 | Why is Android force-stopping my app without any error? | <p>I am trying to run my Android app, it was working normally, but now when I try to run my app (<code>com.ulouder.ulouder</code>), I'm getting:</p>
<pre><code>04-30 08:58:58.539 7683-7683/com.ulouder.ulouder I/System.out: debugger has settled (1475)
04-30 08:58:58.544 4914-6591/system_process E/Surface: getSlotFromBu... | I am trying to run my Android app, it was working normally, but now when I try to run my app ( com.ulouder.ulouder ), I'm getting: [CODE] There are no errors or anything else other than signal 11. Why does this happen? | android|android-studio|android-6.0-marshmallow|android-studio-2.0 | 0 | 2016-04-30T07:10:14.993Z | 2,016 | 4 | 7 | 5 | 919 | 1 | 218 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
36,952,004 | Custom view confuses the layout of surrounding views | <p>I have trouble to properly layout a custom view.<br>
The view is very simple but override <code>onMeasure</code> to always be <strong>square</strong>, i.e. height and width should always be the same.</p>
<p>My problem is that any surrounding views become confused and does not properly size themselves.</p>
<p>The e... | I have trouble to properly layout a custom view. The view is very simple but override onMeasure to always be square , i.e. height and width should always be the same. My problem is that any surrounding views become confused and does not properly size themselves. The expected result: This is the result using LinearLayou... | android|android-layout | 0 | 2016-04-30T07:17:59.710Z | 2,016 | 4 | 7 | 5 | 42 | 1 | 419 | 52 | 2 | 3 | true | false | false | false | false | false | zero |
36,952,008 | Refresh new data from JSON in RecyclerView | <p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts and when user scrolling on <code>RecyclerView</code> show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! I want gonna put a button and when click on this button, load new dat... | android|json | -2 | 2016-04-30T07:18:30.773Z | 2,016 | 4 | 7 | 5 | 662 | 1 | 758 | 42 | 2 | 4 | true | false | false | false | false | true | negative |
36,952,046 | setEmptyView when edittext is empty using textwatcher | <p>I'm using a custom calendar from this <a href="https://www.toptal.com/android/android-customization-how-to-build-a-ui-component-that-does-what-you-want" rel="nofollow noreferrer">link</a>. Its working but the dates of all the months except current month has been grayed out. I want to display all months when viewed l... | I'm using a custom calendar from this link . Its working but the dates of all the months except current month has been grayed out. I want to display all months when viewed like the 2nd screenshot. But it grays out all months except the current month (i.e. April). Can anyone help me in displaying each month like the 2nd... | android|android-calendar | 1 | 2016-04-30T07:22:19.293Z | 2,016 | 4 | 7 | 5 | 62 | 1 | 367 | 53 | 2 | 1 | true | false | false | false | false | false | low |
36,952,116 | Setting date to tabs | <p>I'm trying to get the current date to my tabs but the date to the left is not decreasing by one. What am i doing wrong? Any help would be appreciated, thanks. </p>
<pre><code>private void setupViewPager(ViewPager viewPager) {
ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
Cale... | I'm trying to get the current date to my tabs but the date to the left is not decreasing by one. What am i doing wrong? Any help would be appreciated, thanks. [CODE] | java|android|date|tabs | 1 | 2016-04-30T07:30:43.013Z | 2,016 | 4 | 7 | 5 | 97 | 1 | 165 | 20 | 4 | 1 | true | false | false | false | false | false | low |
36,952,196 | R.string provides me numbers | <p>I have this code which is not working:</p>
<p>public class MainActivity extends AppCompatActivity {</p>
<pre><code>int quantity=2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.i( "MainActivity", "modriod... | I have this code which is not working: public class MainActivity extends AppCompatActivity { [CODE] and all I get is this: 2131099680 Total: $10 2131099676 and it should be Name: summary total $ Thank You! im using java in android studio. | android|android-resources | -2 | 2016-04-30T07:38:28.873Z | 2,016 | 4 | 7 | 5 | 643 | 2 | 238 | 28 | 2 | 1 | true | false | false | false | false | true | negative |
36,952,222 | Full Screen Immersive Mode in Android | <p>I have set full screen immersive mode for my android app in <code>onResume</code> like this:</p>
<pre><code> @Override
public void onResume() {
super.onResume();
final View decorView = getWindow().getDecorView();
decorView.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
... | I have set full screen immersive mode for my android app in onResume like this: [CODE] OnSystemUiVisibilityChangeListener() is also implemented to hide the bars immediately incase a user does an inward swipe. Since the app will be run on a kiosk device, it is important to ensure that the user does not have access to ho... | android|android-fullscreen|android-immersive | 3 | 2016-04-30T07:41:00.497Z | 2,016 | 4 | 7 | 5 | 1,899 | 2 | 903 | 37 | 3 | 2 | true | false | false | false | false | false | low |
36,952,238 | Custom notification with big imageview not display which is load form url in Remoteview android | <p>Hello friends i want to show notification with custom layout and in that there are big imageview also available which load form url below is my code</p>
<pre><code><RelativeLayout
android:id="@+id/rel_top"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation... | Hello friends i want to show notification with custom layout and in that there are big imageview also available which load form url below is my code [CODE] GCMReceiver Class [CODE] When i run above code notification comes perfectly but URL image is not display any idea how can i solve these problem? your all suggestion... | android|notifications|android-remoteview | 0 | 2016-04-30T07:42:05.380Z | 2,016 | 4 | 7 | 5 | 1,433 | 1 | 362 | 95 | 3 | 3 | true | false | false | false | false | false | zero |
36,952,266 | Android proguard using Multidex | <p>I tried to use proguard for my android application. I am using <code>multidex</code> in my app so I added <code>multiDexEnabled = true</code> in my build.gradle and but when I tried building the apk, I got below error:</p>
<pre><code>Error:Execution failed for task
':app:transformClassesWithMultidexlistForRelease'... | I tried to use proguard for my android application. I am using multidex in my app so I added multiDexEnabled = true in my build.gradle and but when I tried building the apk, I got below error: [CODE] Here is my proguard-ruls.pro: [CODE] what is the problem and how can I solve it? | android|proguard|android-multidex | 1 | 2016-04-30T07:44:54.477Z | 2,016 | 4 | 7 | 5 | 4,946 | 1 | 280 | 31 | 3 | 2 | true | false | true | false | false | false | low |
36,952,436 | Expanding cardView with a TextView on click | <p>I wanna expand my CardView on click with a little animation, and show rest of the TextView.</p>
<p>This is my .xml file</p>
<pre><code><LinearLayout android:id="@+id/yolo"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
... | I wanna expand my CardView on click with a little animation, and show rest of the TextView. This is my .xml file [CODE] And this is how it looks. I want to make it expand so you can see other information in TextView with a little animation of expanding. | android|xml|textview|android-animation|android-cardview | 3 | 2016-04-30T08:04:28.360Z | 2,016 | 4 | 8 | 5 | 6,086 | 2 | 253 | 43 | 5 | 1 | true | false | true | false | false | false | low |
36,952,509 | how to get all value in array android and insert into database | <p>I already get all contact number (name,number ) in array and display in listview.. i already know way to insert single value into database using volley but i dont know how to insert array.</p>
<pre><code> cursor1 = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, nul... | I already get all contact number (name,number ) in array and display in listview.. i already know way to insert single value into database using volley but i dont know how to insert array. [CODE] Volley [CODE] I get error at from in params.put .. | android|database|string|insert|contact | 0 | 2016-04-30T08:14:48.453Z | 2,016 | 4 | 8 | 5 | 541 | 2 | 246 | 62 | 5 | 2 | true | false | false | false | false | false | zero |
36,952,535 | Android layout:weightsum | <p>I want to make like this layout in android:</p>
<p><a href="https://i.stack.imgur.com/A1Ca7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A1Ca7.png" alt="sample layout"></a></p>
<p>Main view is scrollview and I dynamically added image buttons to the view with this pattern. I should handle it f... | I want to make like this layout in android: Main view is scrollview and I dynamically added image buttons to the view with this pattern. I should handle it from code. The number of this buttons change according to size of data.In order to make this pattern I use %3 == in my code. Like this [CODE] I make my LinearLayout... | android|android-layout-weight | 0 | 2016-04-30T08:18:09.317Z | 2,016 | 4 | 8 | 5 | 218 | 0 | 501 | 24 | 2 | 1 | true | true | false | false | false | false | zero |
36,952,569 | Ionic app after deploying gives ReferenceError: Promise is not defined | <p>I'm making my first Ionic app. The part of it use promises.</p>
<p>The example below illustrates the problem.
(In the view I have a button which kicks off $scope.test which executes testProm() function).</p>
<pre><code>angular.module('myApp.controllers', [])
.controller('DashCtrl', function($scope, $state) {
$s... | I'm making my first Ionic app. The part of it use promises. The example below illustrates the problem. (In the view I have a button which kicks off $scope.test which executes testProm() function). [CODE] Everything works fine in browsers (Firefox, Chrome) and while deployed to Sony Xpreria tablet with Android 5.1.1. Th... | javascript|android|cordova|ionic-framework | 2 | 2016-04-30T08:22:06.470Z | 2,016 | 4 | 8 | 5 | 733 | 1 | 656 | 70 | 4 | 2 | true | false | false | false | false | false | low |
36,952,585 | Google API Key failed on google urlshortener api | <p>I have got this error message when using Google urlshortener api by ApiKey:
(I have using same API Key for showing Google Map in same app without any problem)
Where I did wrong?</p>
<blockquote>
<p>com.google.api.client.googleapis.json.GoogleJsonResponseException: 403
Forbidden
... | I have got this error message when using Google urlshortener api by ApiKey: (I have using same API Key for showing Google Map in same app without any problem) Where I did wrong? com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden "code": 403, "errors": [ { "domain": "usageLimits", "message"... | android|google-api|short-url | 2 | 2016-04-30T08:23:37.700Z | 2,016 | 4 | 8 | 5 | 929 | 1 | 860 | 48 | 3 | 0 | false | false | false | false | false | false | low |
36,952,650 | Json Pagination in Retrofit 2 | <p>This is my json Response Schema :
<a href="http://www.aparat.com/etc/api/categoryvideos/cat/7" rel="nofollow">Link</a></p>
<pre><code>{
"categoryvideos": [
{
"id": "4229959",
"title": "\u0631\u067e \u062e\u0648\u0627\u0646\u06cc \u0628\u0627 \u0633\u0641\u0627\u0631\u0634 \u063a\u0630\u0627",
... | This is my json Response Schema : Link [CODE] and This is my RecyclerView Adapter : [CODE] And I Generate my models with www.jsonschema2pojo.org And This is My Activity Where I load the Json and bind them to the RecyclerView : [CODE] I Use the EndlessRecyclerView way and I implement LoadMore() method , but i don't know... | android|json|pagination|retrofit2 | 0 | 2016-04-30T08:31:48.533Z | 2,016 | 4 | 8 | 5 | 1,534 | 0 | 358 | 29 | 4 | 3 | true | true | false | false | false | false | zero |
36,952,665 | Error-Cannot resolve methods, symbols | <p>Here's the error:</p>
<pre><code> C:\Users\User\AndroidStudioProjects\FinalProject\app\src\main\res\values-v21\styles.xml
Error:(3, 5) No resource found that matches the given name: attr 'windowActionBar'.
Error:(3, 5) No resource found that matches the given name: attr 'windowNoTitle'.
C:\Users\User\AndroidStudioP... | Here's the error: [CODE] Furthermore my AndroidManifest.XML: [CODE] My mainactivity.java: [CODE] Also this thing happened for don't know what reason. Please suggest some solutions as i have tried: 1. Installing new Android Studio 2. Cleaning the project. 3. Gradle build. Styles.XML: [CODE] App level build.gradle: [CODE... | android|android-resources | 0 | 2016-04-30T08:34:04.970Z | 2,016 | 4 | 8 | 5 | 700 | 3 | 725 | 37 | 2 | 6 | true | false | false | false | false | false | zero |
36,952,671 | HTTP POST REQUEST To PHP Server Android Studio | <p>public class MainActivity extends AppCompatActivity {</p>
<pre><code>EditText editmsg , editmail ;
TextView content ;
String Message , Email ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
editmsg = (EditText)... | public class MainActivity extends AppCompatActivity { [CODE] } I dont know what is wrong with code when i click the send button it showing Unfortunately,HTTP has stop (looking just like app crashed). please review my code and tell me what i have done wrong. | android | 1 | 2016-04-30T08:34:59.297Z | 2,016 | 4 | 8 | 5 | 2,214 | 3 | 257 | 46 | 1 | 1 | true | false | false | false | false | false | low |
36,952,702 | Why Soft keyboard does not work inside a web view which is inside a Dialog Fragment? | <p>In one of my activities there is button which pressing this button opens up a dialog fragment and inside this dialog fragment a web view appears. I use this web view for getting users information for an online store, but when the form loads on the web view, and I want to enter information soft keyboard does not come... | In one of my activities there is button which pressing this button opens up a dialog fragment and inside this dialog fragment a web view appears. I use this web view for getting users information for an online store, but when the form loads on the web view, and I want to enter information soft keyboard does not come up... | android|android-layout|android-fragments|webview|android-dialogfragment | 1 | 2016-04-30T08:37:52.897Z | 2,016 | 4 | 8 | 5 | 552 | 1 | 729 | 84 | 5 | 4 | true | false | false | false | false | false | low |
36,952,741 | RTSP live video streaming | <p>I'm building an application to live stream video from the raspberry pi to my android device. I have three functional ways of playing this stream:</p>
<p><a href="http://rtsp://media.smart-streaming.com/mytest/mp4:sample_phone_150k.mp4">rtsp://media.smart-streaming.com/mytest/mp4:sample_phone_150k.mp4</a></p>
<ol>
... | I'm building an application to live stream video from the raspberry pi to my android device. I have three functional ways of playing this stream: rtsp://media.smart-streaming.com/mytest/mp4:sample_phone_150k.mp4 Media Player + SurfaceView VideoView Intent.ACTION_VIEW The problem is the application plays the above^ stre... | android|raspberry-pi | 12 | 2016-04-30T08:43:03.647Z | 2,016 | 4 | 8 | 5 | 9,305 | 1 | 658 | 25 | 2 | 1 | true | false | true | false | true | false | medium |
36,952,952 | Select data from MySQL using android volley post request and display it in recyclerview | <p>What I want is that when someone(user) click's a button on main activity two values will be send to the php file with the help of volley POST request, say minvalue and maxvalue, and it will select the data accordingly from mysql database.</p>
<p>Here's my code for POST request:</p>
<pre><code>public void FilterPow... | What I want is that when someone(user) click's a button on main activity two values will be send to the php file with the help of volley POST request, say minvalue and maxvalue, and it will select the data accordingly from mysql database. Here's my code for POST request: [CODE] } My Php File Code: [CODE] When I try run... | php|mysql|json|post|android-volley | 1 | 2016-04-30T09:08:05.483Z | 2,016 | 4 | 9 | 5 | 1,730 | 1 | 995 | 87 | 5 | 3 | true | false | false | false | false | false | low |
36,953,077 | When i am testing app then it crashes by error java.lang.RuntimeException: | <p>In my application i had formatted my xml files and now i am putting material desing in my app so when i am running application then There is one problem coming which is like these when i am running app:-
at </p>
<pre><code>android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
at and... | In my application i had formatted my xml files and now i am putting material desing in my app so when i am running application then There is one problem coming which is like these when i am running app:- at [CODE] My layout code is :- [CODE] and my activity code is :- [CODE] At these point i am stucking . | android|xml|material-design | -2 | 2016-04-30T09:23:22.677Z | 2,016 | 4 | 9 | 5 | 97 | 3 | 306 | 74 | 3 | 3 | true | false | false | false | false | true | negative |
36,953,196 | Error Parsing JSON data on executing PHP script | <p>this is my php script</p>
<pre><code><?php
try{
$con = new PDO('mysql:host=localhost;dbname=pfe'/*info db*/,'root'/*login*/, ''/*mdp*/);
}
catch (Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$msg = $_GET['msg'];
$mail = $_GET['mail'];
$result = $con->prepare("INSERT INTO message ( `msg`, `... | this is my php script [CODE] my script i think is good cause i tried it with my browser it works but with android does not insert the data and this is java class, [CODE] this is json [CODE] when i execute it show me "Error parsing JSON data" i didn't find where is the pbm. | java|php|android | -1 | 2016-04-30T09:35:20.230Z | 2,016 | 4 | 9 | 5 | 222 | 3 | 273 | 47 | 3 | 3 | true | false | false | false | false | true | negative |
36,953,214 | Android: Action based on combination of two spinner selections | <p>I have an activity with two spinners. One is the type of hair and the other is the color of the hair. I want for a picture (on a head) to change based on the two items selected selected from the spinners.</p>
<p>Here's what it should do:</p>
<ol>
<li>Activity loaded (Spinners set to "Bald" and "Black")
<ul>
<li>H... | I have an activity with two spinners. One is the type of hair and the other is the color of the hair. I want for a picture (on a head) to change based on the two items selected selected from the spinners. Here's what it should do: Activity loaded (Spinners set to "Bald" and "Black") Hair is bald. Change hair type to 'M... | java|android|android-studio|android-spinner|android-image | 0 | 2016-04-30T09:36:30.207Z | 2,016 | 4 | 9 | 5 | 586 | 2 | 663 | 62 | 5 | 2 | true | false | false | false | false | false | zero |
36,953,220 | Error Gradle when generate apk in Android Studio: Exception parsing classes | <p>I have a problem when I generate signed Apk file in Android studio. I get a messages below:</p>
<pre><code>Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes
Error:1 error; aborting
:app:transformClassesWithDexForRelease FAILED
Error:Execution failed for task ':app:... | I have a problem when I generate signed Apk file in Android studio. I get a messages below: [CODE] I use proguard in build gradle: [CODE] I was searching through many existing answers, but it's not worked. I refer this topic , but i can not find anything like this. When try to use gradlew assembleRelease , I find the m... | android|android-studio|gradle | 0 | 2016-04-30T09:37:08.447Z | 2,016 | 4 | 9 | 5 | 623 | 0 | 475 | 75 | 3 | 3 | true | true | false | false | false | false | zero |
36,953,231 | How to get edit text values from a listview | <p>I am not able to get edittext value from dynamic listview. When I am scrolling listview, entered values in edit text is going invisible
Below is My Activity file -</p>
<pre><code> @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.... | I am not able to get edittext value from dynamic listview. When I am scrolling listview, entered values in edit text is going invisible Below is My Activity file - [CODE] This is the method where all the items are adding in the list [CODE] This is my adapter class- [CODE] | android|listview|android-textwatcher | 2 | 2016-04-30T09:38:03.057Z | 2,016 | 4 | 9 | 5 | 298 | 1 | 272 | 43 | 3 | 3 | true | false | false | false | false | false | low |
36,953,325 | Unable to start activity Android Emulator | <p>I'm new to Android Programming. I'm following the guide on Android Developers to get started with Android.
When trying to run simple Formular on the Emulator, the emulator shows </p>
<blockquote>
<p>"Unfortunately, My First App has stopped.", </p>
</blockquote>
<p>where <code>MyFormular</code> is name of the App... | I'm new to Android Programming. I'm following the guide on Android Developers to get started with Android. When trying to run simple Formular on the Emulator, the emulator shows "Unfortunately, My First App has stopped.", where MyFormular is name of the App. The Problem is that I made new layout from layout resource fi... | java|android|android-layout|android-emulator | 0 | 2016-04-30T09:49:00.380Z | 2,016 | 4 | 9 | 5 | 103 | 1 | 3,662 | 41 | 4 | 5 | true | false | false | false | false | false | zero |
36,953,356 | How to select ExpandableListView group item in MultiChoiceMode | <p>In my project, I have an <code>ExpandableListView</code> and I set <code>setMultiChoiceModeListener</code> as shown below</p>
<pre><code>elvItemList = (ExpandableListView) root.findViewById(R.id.elv_item_list);
elvItemList.setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE_MODAL);
elvItemList.setMultiChoiceModeListener... | In my project, I have an ExpandableListView and I set setMultiChoiceModeListener as shown below [CODE] the implementation of SMMultiChoiceModeListener is as follows: [CODE] I also implemented onGroupClickListener as [CODE] here selectEnable variable is used to block expanding once a ItemLongClick event fired. Problem: ... | android|expandablelistview|expandablelistadapter|onitemlongclicklistener | 0 | 2016-04-30T09:52:10.420Z | 2,016 | 4 | 9 | 5 | 699 | 1 | 568 | 62 | 4 | 3 | true | false | false | false | false | false | zero |
36,953,380 | Android Studio gradle build error: 'The first result of the daemon was empty.Most likely the process died immediately after connection' | <p>I was unable to build the 'Hello World' project with a fresh install of android studio. It consumes a huge amount of RAM (up to 10GB) when building and throws the following error in the end:</p>
<blockquote>
<p>Error:The first result from the daemon was empty. Most likely the process died immediately after connec... | I was unable to build the 'Hello World' project with a fresh install of android studio. It consumes a huge amount of RAM (up to 10GB) when building and throws the following error in the end: Error:The first result from the daemon was empty. Most likely the process died immediately after connection.' A large number of t... | android|android-studio | 1 | 2016-04-30T09:54:20.390Z | 2,016 | 4 | 9 | 5 | 5,950 | 4 | 658 | 135 | 2 | 3 | true | false | true | false | false | false | low |
36,953,389 | Permission denied when writing a RandomAccessFile | <p>Edit: My question isn't duplicate of <a href="https://stackoverflow.com/questions/32635704/android-permission-doesnt-work-even-if-i-have-declared-it">Android permission doesn't work even if I have declared it</a> because i have asked for permission at runtime</p>
<p>Edit2: Writing file into <code>Environment.ge... | Edit: My question isn't duplicate of Android permission doesn't work even if I have declared it because i have asked for permission at runtime Edit2: Writing file into Environment.getexternalstoragedirectory is ok but to sdcard gives that error Hey I'm trying to write a mp3 file with RandomAccessFile to sdcard and ... | java|android | 0 | 2016-04-30T09:55:14.237Z | 2,016 | 4 | 9 | 5 | 1,637 | 2 | 449 | 49 | 2 | 2 | true | false | false | false | false | false | zero |
36,953,526 | Adding scheduled items to multi-slot crafting queue | <p>I'm working on an Android game. </p>
<p>Areas in the game have crafting slots which determine how many items can be crafted at once. If there are no slots available, the item is given a scheduled start date which correlates to when a slot will become available.</p>
<p>The problem I'm encountering is that the curre... | I'm working on an Android game. Areas in the game have crafting slots which determine how many items can be crafted at once. If there are no slots available, the item is given a scheduled start date which correlates to when a slot will become available. The problem I'm encountering is that the current code only conside... | java|android | 0 | 2016-04-30T10:08:26.687Z | 2,016 | 4 | 10 | 5 | 27 | 1 | 900 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
36,953,531 | Uploading file to server in Android - uploads the last one | <p>I have a Sqlite table which stores 3 files and when I want to read them from table it works fine but when I want to upload to server, it just uploads the last one 3 times. I don't know what is wrong with my code please give me a solution for this problem. appreciate thanks </p>
<p>This is how I call from Activity:<... | I have a Sqlite table which stores 3 files and when I want to read them from table it works fine but when I want to upload to server, it just uploads the last one 3 times. I don't know what is wrong with my code please give me a solution for this problem. appreciate thanks This is how I call from Activity: [CODE] And t... | android | 0 | 2016-04-30T10:08:46.523Z | 2,016 | 4 | 10 | 5 | 45 | 1 | 365 | 58 | 1 | 2 | true | false | false | false | false | false | zero |
36,953,603 | Android animate Layout movement | <p>I will try to describe what I want the more precisely I can. I am pretty sure it can be done with a simple animation but I can't really find the words to describe the behavior I am waiting for.</p>
<p>I am currently displaying a <code>LinearLayout</code> containing two other <code>LinearLayout</code> <em>childs</em... | I will try to describe what I want the more precisely I can. I am pretty sure it can be done with a simple animation but I can't really find the words to describe the behavior I am waiting for. I am currently displaying a LinearLayout containing two other LinearLayout childs . The parent's gravity is set to center . I ... | android|animation|layout | 0 | 2016-04-30T10:16:12.100Z | 2,016 | 4 | 10 | 5 | 353 | 2 | 839 | 31 | 3 | 0 | false | false | false | false | false | false | zero |
36,953,639 | ListPopupWindow getListView returns nullpointerexception after creation | <p>I'm using the <code>ListPopupWindow</code>: </p>
<pre><code>@NonNull
private ListPopupWindow createListPopupWindow() {
ListPopupWindow listPopupWindow = new ListPopupWindow(mContext);
listPopupWindow.setBackgroundDrawable(mContext.getDrawable(R.drawable.custom_dropdown));
listPopupWindow.setDropDownGrav... | I'm using the ListPopupWindow : [CODE] And when I try to call: [CODE] It always returns NPE , but this method already exists in the ListPopupWindow : [CODE] The same when I try to call [CODE] and [CODE] So listPopupWindow.getListView() always returns NULL. | java|android | 1 | 2016-04-30T10:19:33.260Z | 2,016 | 4 | 10 | 5 | 447 | 2 | 256 | 71 | 2 | 5 | true | false | false | false | false | false | low |
36,953,652 | Duplicate entry: org/appcelerator/titanium/gen/bindings.json in custom Android module | <p><strong>Setup / Problem</strong></p>
<p>I've create a custom Android module for Titanium to display Gif animations inside Ti. The module source code can be found here:
<a href="https://github.com/m1ga/com.miga.gifview" rel="noreferrer">https://github.com/m1ga/com.miga.gifview</a></p>
<p>The actual module is workin... | Setup / Problem I've create a custom Android module for Titanium to display Gif animations inside Ti. The module source code can be found here: https://github.com/m1ga/com.miga.gifview The actual module is working fine but when I use it with a second module (with the same problem) I receive the following error: java.ut... | java|android|module|appcelerator|appcelerator-titanium | 6 | 2016-04-30T10:20:37.013Z | 2,016 | 4 | 10 | 5 | 927 | 1 | 1,150 | 85 | 5 | 2 | true | false | false | false | false | false | medium |
36,953,702 | java.lang.NullPointerException: Attempt to read from null array | <p>I'm having problems with a simple custom list. I have tried a few examples and end up getting the same error. The error I keep getting is </p>
<blockquote>
<p>java.lang.NullPointerException: Attempt to read from null array</p>
</blockquote>
<p>Adapter Class:</p>
<pre><code>public class CustomList extends Array... | I'm having problems with a simple custom list. I have tried a few examples and end up getting the same error. The error I keep getting is java.lang.NullPointerException: Attempt to read from null array Adapter Class: [CODE] Activity class: [CODE] | android|listview | 1 | 2016-04-30T10:24:42.967Z | 2,016 | 4 | 10 | 5 | 16,111 | 2 | 246 | 63 | 2 | 2 | true | false | true | true | false | false | low |
36,953,781 | NullPointerException DirectionsResponse.getRoutes() on mapbox | <p>i'm new to Android/java programming and have a weird problem. My App is working fine on the Android 6p emulator, but when i try it on a physical phone it crashes and returns:</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.mapbox.directions.service.models.Directio... | i'm new to Android/java programming and have a weird problem. My App is working fine on the Android 6p emulator, but when i try it on a physical phone it crashes and returns: [CODE] It referring to line 144, where i think the problem is. But cannot find a solution Line 144 | java|android | -3 | 2016-04-30T10:32:52.947Z | 2,016 | 4 | 10 | 5 | 95 | 1 | 273 | 61 | 2 | 1 | true | false | false | false | false | true | negative |
36,953,785 | How do I intercept a rich communication message on Android | <p>I'd like to intercept a Rich Communication message (know as Chat on some networks like Vodafone). I've successfully implemented an SMS receiver using an intent filter and broadcast receiver which works great. However if the SMS is a Rich Communication message the receiver never gets called.</p>
<p>In my manifest:</... | I'd like to intercept a Rich Communication message (know as Chat on some networks like Vodafone). I've successfully implemented an SMS receiver using an intent filter and broadcast receiver which works great. However if the SMS is a Rich Communication message the receiver never gets called. In my manifest: [CODE] and m... | android|broadcastreceiver|sms|chat|intentfilter | 3 | 2016-04-30T10:33:22.667Z | 2,016 | 4 | 10 | 5 | 1,633 | 1 | 601 | 58 | 5 | 2 | true | false | false | false | false | false | low |
36,953,863 | How to alpha / translate animate each word in a TextView instead of each character? | <p>I am working with the following <code>Spannable</code> and <code>TextView</code> like so and I've got it animating each character but I want to animate each word how can I accomplish that? </p>
<p>Looking to alpha in and translate each word (from the bottom of the location of each word).</p>
<p>By translating I me... | I am working with the following Spannable and TextView like so and I've got it animating each character but I want to animate each word how can I accomplish that? Looking to alpha in and translate each word (from the bottom of the location of each word). By translating I mean a translate (move) animation. Source: [CODE... | android|textview|spannablestring|spannable | 8 | 2016-04-30T10:43:05.677Z | 2,016 | 4 | 10 | 5 | 919 | 0 | 917 | 83 | 4 | 5 | true | true | false | false | false | false | medium |
36,953,927 | Android: How to fix accidental uncheck the checkbox of the parent node in the tree | <p>I wrote the class to represent a tree file hierarchy. The main task - the ability to mark files and folders (using the checkbox). Has faced with such a problem: disappears check mark of the parent directory with the following sequence of actions:</p>
<p>0) Go to the root directory, check file (leave one directory u... | I wrote the class to represent a tree file hierarchy. The main task - the ability to mark files and folders (using the checkbox). Has faced with such a problem: disappears check mark of the parent directory with the following sequence of actions: 0) Go to the root directory, check file (leave one directory unchecked) 1... | java|android|checkbox|tree | 0 | 2016-04-30T10:49:50.503Z | 2,016 | 4 | 10 | 5 | 82 | 1 | 783 | 82 | 4 | 1 | true | false | false | false | false | false | zero |
36,953,930 | Determine reason for odex file size bloat | <p>My apk was 13MB and on installation the occupied space is 25MB. However, after making a few changes (adding libraries, creating modules and organizing the app better), the apk size had increased to 14MB while the odex file is now 56MB. Is there any way to determine why the size has increased?</p>
<p>I have a rooted... | My apk was 13MB and on installation the occupied space is 25MB. However, after making a few changes (adding libraries, creating modules and organizing the app better), the apk size had increased to 14MB while the odex file is now 56MB. Is there any way to determine why the size has increased? I have a rooted device. So... | android | 15 | 2016-04-30T10:50:04.770Z | 2,016 | 4 | 10 | 5 | 868 | 4 | 1,520 | 41 | 1 | 0 | false | false | false | false | true | false | medium |
36,953,998 | How to finish activity do not starting the service | <p>I want to start service if button hasn't been pressed and if it has then just leave my activity and also I want that if user has locked device(screen is off) then leave the activity too. I've tried this code on leaving activity if screen is off but it didn't leave the activity.Why was it happening? And what should I... | I want to start service if button hasn't been pressed and if it has then just leave my activity and also I want that if user has locked device(screen is off) then leave the activity too. I've tried this code on leaving activity if screen is off but it didn't leave the activity.Why was it happening? And what should I do... | android | -1 | 2016-04-30T10:58:24.137Z | 2,016 | 4 | 10 | 5 | 65 | 3 | 380 | 50 | 1 | 2 | true | false | false | false | false | true | negative |
36,954,001 | Front facing camera not working, throwing IllegalStateException | <p>java.lang.IllegalStateException: Could not execute method of the activity</p>
<p>Caused by: java.lang.reflect.InvocationTargetException</p>
<p>Caused by: java.lang.RuntimeException: takePicture failed </p>
<p>Following is my MainActivity called One:</p>
<pre><code>import android.annotation.SuppressLint;
impor... | java.lang.IllegalStateException: Could not execute method of the activity Caused by: java.lang.reflect.InvocationTargetException Caused by: java.lang.RuntimeException: takePicture failed Following is my MainActivity called One: [CODE] and following is my PhotoHandler.java class: [CODE] | android|front-camera | 1 | 2016-04-30T10:58:32.873Z | 2,016 | 4 | 10 | 5 | 356 | 0 | 286 | 63 | 2 | 2 | true | true | false | false | false | false | low |
36,954,065 | Totally Blank List view | <p>I am working on custom Listview using volley .The main source is here <a href="http://www.androidhive.info/2014/07/android-custom-listview-with-image-and-text-using-volley/" rel="nofollow">listview using volley</a></p>
<pre><code>I have made just a little change
(1)replace movies.json with my php url
(2)here re... | I am working on custom Listview using volley .The main source is here listview using volley [CODE] my php code is [CODE] But after only blank page display. no idea what going wrong. //log errors [CODE] | php|android|listview|android-volley | 0 | 2016-04-30T11:05:23.287Z | 2,016 | 4 | 11 | 5 | 77 | 2 | 201 | 23 | 4 | 3 | true | false | false | false | false | false | zero |
36,954,114 | how to add custom error page when no interent is detected in android web app | <p>iam begineer in nadroid development , i tried this logic </p>
<pre><code> ConnectivityManager cManager = (ConnectivityManager) getSystemService(this.CONNECTIVITY_SERVICE);
NetworkInfo nInfo = cManager.getActiveNetworkInfo();
if(nInfo!=null && nInfo.isConnected()) {
</code></pre>
<p>to detect int... | iam begineer in nadroid development , i tried this logic [CODE] to detect internet and display a error Toast but when i implemented this by disabling my internet, iam getting a white page while showing toast and after displaying the toast iam getting a white page with loading symbol . i would like to change that white ... | java|android | 0 | 2016-04-30T11:10:19.517Z | 2,016 | 4 | 11 | 5 | 98 | 1 | 542 | 76 | 2 | 2 | true | false | false | false | false | false | zero |
36,954,211 | Switch inside fragment | <p>Just can't figure out what is wrong. In activity, the code below works like a charm. But when i use it inside a fragment, app is crashing with this error</p>
<pre><code> java.lang.NoClassDefFoundError
</code></pre>
<p>Here is the code</p>
<pre><code>public class design extends Fragment{
@Override
public View onCr... | Just can't figure out what is wrong. In activity, the code below works like a charm. But when i use it inside a fragment, app is crashing with this error [CODE] Here is the code [CODE] As soon the setOnCheckedChangeListener is called, app crashes...I tried different ways to implement activity, context, tried with OnCli... | android|android-fragments | 0 | 2016-04-30T11:20:21.700Z | 2,016 | 4 | 11 | 5 | 677 | 1 | 416 | 22 | 2 | 3 | true | false | false | false | false | false | zero |
36,954,270 | eText.setError() Fatal error | <p>After submit on button i get errors</p>
<pre><code>04-30 11:08:19.990 14339-14339/hr.tosapinaetfos.quizmaker E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method for android:onClick
... | After submit on button i get errors [CODE] Here is code [CODE] } Method setError() causes fatal exception ..If i use setError() inside function registerOnclick(View v) it works well but i need to create new function isEmpty() | android|validation|fatal-error | 0 | 2016-04-30T11:25:41.853Z | 2,016 | 4 | 11 | 5 | 59 | 2 | 225 | 28 | 3 | 2 | true | false | false | false | false | false | zero |
36,954,332 | activity is not opening when button is clicked [ANDROID] | <p>I am new to android and I want to call an activity named as <em>SetNotification</em> when SET NOTIFICATION button is clicked from the main activity, for that I have written this code but the activity is not opening when the button is clicked.</p>
<p><strong>MainActivity.java</strong></p>
<pre><code>package com.exa... | I am new to android and I want to call an activity named as SetNotification when SET NOTIFICATION button is clicked from the main activity, for that I have written this code but the activity is not opening when the button is clicked. MainActivity.java [CODE] AndroidManifest.xml [CODE] activity_set_notification.xml [COD... | android | 0 | 2016-04-30T11:31:18.293Z | 2,016 | 4 | 11 | 5 | 44 | 4 | 335 | 56 | 1 | 4 | true | false | false | false | false | false | zero |
36,954,354 | Use generic class as method input | <p>I have a iterative code like below with is used in different place of my project:</p>
<pre><code> List<NewsItem> thisitem = Select.from(NewsItem.class).where(Condition.prop("_id").eq(item.get_id())).list();
if (thisitem.size() > 0) {
thisitem.get(0).delete();
... | I have a iterative code like below with is used in different place of my project: [CODE] I want to write a method witch contain above code ,but worked for every object of class witch extend SugarOrmItem class . i write the below but apparently it's not true: [CODE] what should i do? Edit : this is my SugarItem class: [... | java|android|abstract-class | 0 | 2016-04-30T11:32:49.750Z | 2,016 | 4 | 11 | 5 | 389 | 1 | 325 | 33 | 3 | 3 | true | false | false | false | false | false | zero |
36,954,439 | How to avoid character wrap of text in TextView, for auto-resizing text? | <h2>Background</h2>
<p>After a lot of searching for the best solution of auto-resizing TextView (according to content, size, min&max lines, and font-size restrictions), I've made a merged solution for it all, <a href="https://github.com/AndroidDeveloperLB/AutoFitTextView" rel="noreferrer"><strong>here</strong></a>... | Background After a lot of searching for the best solution of auto-resizing TextView (according to content, size, min&max lines, and font-size restrictions), I've made a merged solution for it all, here . NOTE: I don't use other solutions because they don't work well, each has its own issues (something isn't supported, ... | android|textview|autoresize | 5 | 2016-04-30T11:40:41.880Z | 2,016 | 4 | 11 | 5 | 1,978 | 2 | 1,033 | 72 | 3 | 1 | true | false | false | false | false | false | low |
36,954,462 | Display LinearLayout below RecyclerView | <p>I'm using a <code>RecyclerView</code> to display a list of items, and I would like to show below the list a box with some details but I don't how to do it, I have tried a lot of things but I cant display the box I want.</p>
<p>My idea is implement something like in the image below:</p>
<p><a href="https://i.stack.... | I'm using a RecyclerView to display a list of items, and I would like to show below the list a box with some details but I don't how to do it, I have tried a lot of things but I cant display the box I want. My idea is implement something like in the image below: Below is my code: [CODE] Any idea how can I do it? Thanks... | android|android-layout|android-recyclerview | 5 | 2016-04-30T11:42:38.950Z | 2,016 | 4 | 11 | 5 | 8,925 | 6 | 321 | 39 | 3 | 1 | true | false | true | false | false | false | low |
36,954,474 | Refresh new data in RecyclerView on Android | <p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts and when user scrolling on <code>RecyclerView</code> show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! I want gonna put a button and when click on this button, load new dat... | android|json | 0 | 2016-04-30T11:43:06.867Z | 2,016 | 4 | 11 | 5 | 89 | 2 | 758 | 43 | 2 | 4 | true | false | false | false | false | false | zero |
36,954,541 | Animation only runs two times, then stops working? | <p>I have a <code>RelativeLayout</code> that displays some controls, and I want to hide and show them using a slide up/down animation. </p>
<p>This is working fine for the first slide down and the following slide up, but after that it stops working for no apparent reason. </p>
<p>Here's the code for performing the an... | I have a RelativeLayout that displays some controls, and I want to hide and show them using a slide up/down animation. This is working fine for the first slide down and the following slide up, but after that it stops working for no apparent reason. Here's the code for performing the animations: [CODE] The value of the ... | android|android-animation|android-view | 1 | 2016-04-30T11:50:13.383Z | 2,016 | 4 | 11 | 5 | 346 | 2 | 579 | 50 | 3 | 3 | true | false | false | false | false | false | low |
36,954,569 | Can I set android background colour based on a variable? | <p>This is my code:</p>
<pre><code>private LinearLayout erBackground;
erBackground = (LinearLayout) findViewById(R.id.erBackground);
String background = "YELLOW"
erBackground.setBackgroundColor(Color.background)
</code></pre>
<p>What would I need to do to background to allow it to change the background to yellow?</p... | This is my code: [CODE] What would I need to do to background to allow it to change the background to yellow? The above is a simplified version of my code. What I am trying to do is pass an item from a spinner ("YELLOW") on one activity to Shared Preferences, and then onCreate of the next activity I want to check if a ... | java|android|background-color | -1 | 2016-04-30T11:52:47.947Z | 2,016 | 4 | 11 | 5 | 2,600 | 3 | 743 | 56 | 3 | 4 | true | false | true | false | false | true | negative |
36,954,625 | Retain Skobbler MapViewHolder | <p>i have an activity with a TabLayout and a ViewPager. Each Tab represents one Fragment. I implemented the SKMapViewHolder(skobbler) in my Fragment and it works fine. But each time when i rotate my screen the MapView will be recreated. How can i retain it?</p>
<p>Here the Code:</p>
<p>fragment_layout:</p>
<pre><cod... | i have an activity with a TabLayout and a ViewPager. Each Tab represents one Fragment. I implemented the SKMapViewHolder(skobbler) in my Fragment and it works fine. But each time when i rotate my screen the MapView will be recreated. How can i retain it? Here the Code: fragment_layout: [CODE] Fragment: [CODE] MainActiv... | android|android-fragments|skobbler-maps | 0 | 2016-04-30T11:57:45.770Z | 2,016 | 4 | 11 | 5 | 52 | 1 | 331 | 29 | 3 | 3 | true | false | false | false | false | false | zero |
36,954,632 | String starting with + operator doesn't match with database String value | <p>I want to compare incoming sms numbers with database saved number. if they are same then show a Toast. It works fine for simple numbers like 9 or any others but not with <strong>+</strong> operator. </p>
<p>When we recieved a message from a number it consists of country code like for pakistan +92XXXXXXXXXX. I've sa... | I want to compare incoming sms numbers with database saved number. if they are same then show a Toast. It works fine for simple numbers like 9 or any others but not with + operator. When we recieved a message from a number it consists of country code like for pakistan +92XXXXXXXXXX. I've saved it to database but when m... | android|sqlite | 0 | 2016-04-30T11:58:10.283Z | 2,016 | 4 | 11 | 5 | 32 | 1 | 696 | 72 | 2 | 3 | true | false | false | false | false | false | zero |
36,954,652 | How can I use LoadMore in RecyclerView? | <p>I load some json data from server and I show them in my app.I use RecyclerView.
I want load 10 items for first time and load 10 other items with scroll.</p>
<p>How can I do it?</p>
<p>I am using this tutorial and this point I cant match tutorial to my code
<a href="https://codentrick.com/load-more-recyclerview-bo... | I load some json data from server and I show them in my app.I use RecyclerView. I want load 10 items for first time and load 10 other items with scroll. How can I do it? I am using this tutorial and this point I cant match tutorial to my code recyclerview load more Update this is my code in activity [CODE] and this is ... | android|android-recyclerview|endlessscroll | 1 | 2016-04-30T11:59:55.530Z | 2,016 | 4 | 11 | 5 | 801 | 2 | 371 | 39 | 3 | 2 | true | false | false | false | false | false | low |
36,954,700 | My Tabbed Activity is not showing Titles on Tabs | <p>This is my Main Activity</p>
<pre><code>public class MainActivity extends AppCompatActivity {
private SectionsPagerAdapter mSectionsPagerAdapter;
private ViewPager mViewPager;
TabLayout tablayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanc... | This is my Main Activity [CODE] This is my Fragment which i want to show in tabs [CODE] This is my other Fragment for 2nd tab [CODE] | java|android|android-fragments|android-tabbed-activity | 1 | 2016-04-30T12:04:56.373Z | 2,016 | 4 | 12 | 5 | 723 | 2 | 132 | 48 | 4 | 3 | true | false | false | false | false | false | low |
36,954,701 | How to display lock activity quickly when user click on another installed application in android | <p>I'm trying to open lock activity while opening another installed app. Its working fine. Lock activity does open, but it opens after another application launches. So how to open lock activity before another application launches? If anyone have solution then help me.Through searching i search code that <a href="https:... | I'm trying to open lock activity while opening another installed app. Its working fine. Lock activity does open, but it opens after another application launches. So how to open lock activity before another application launches? If anyone have solution then help me.Through searching i search code that get foreground tas... | android|android-studio|android-intent | 0 | 2016-04-30T12:04:59.623Z | 2,016 | 4 | 12 | 5 | 140 | 0 | 345 | 96 | 3 | 1 | true | true | false | false | false | false | zero |
36,954,746 | Emulator disconnect frequently and Android Studio Stuck. How To fix it? | <p>I have a strange problem which cannot find any fix for it.
Every thing is OK for the first time when i open emulator and AVD run normally. but after 5-10 minutes, the emulator disconnect,it lose it's internet connection and i cant connect to it,also the Android Studio completely stuck and nothing happen !
I should c... | I have a strange problem which cannot find any fix for it. Every thing is OK for the first time when i open emulator and AVD run normally. but after 5-10 minutes, the emulator disconnect,it lose it's internet connection and i cant connect to it,also the Android Studio completely stuck and nothing happen ! I should clos... | android|android-studio|android-emulator | 10 | 2016-04-30T12:09:07.930Z | 2,016 | 4 | 12 | 5 | 4,653 | 2 | 1,295 | 71 | 3 | 0 | false | false | true | false | true | false | medium |
36,955,005 | Show error when click on RecyclerView in Android | <p>I want develop android application for one site, and i show site posts in <code>RecyclerView</code>! but when click on <code>Recyclerview</code> for show post in another page, show me this error : </p>
<pre><code>04-30 17:02:20.761 10671-10671/com.tellfa.colony E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.t... | I want develop android application for one site, and i show site posts in RecyclerView ! but when click on Recyclerview for show post in another page, show me this error : [CODE] MainAdapter_loadMore codes: [CODE] How can i fix this? | android|android-recyclerview | 0 | 2016-04-30T12:34:29.227Z | 2,016 | 4 | 12 | 5 | 715 | 1 | 233 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
36,955,010 | Android select options menu | <p>I am using this code for making option menu in android: </p>
<pre><code> gender1 = (Spinner) findViewById(R.id.spinner1);
List<String> list1 = new ArrayList<String>();
list1.add("Gender");
list1.add("Male");
list1.add("Female");
ArrayAdapter<String> dataAdapter1 = new Array... | I am using this code for making option menu in android: [CODE] And the xml: [CODE] My problem is that it works on emulator and doesn't work on my phone. When I click on it, it never shows items but in emulator it works fine. | java|android | 0 | 2016-04-30T12:35:06.230Z | 2,016 | 4 | 12 | 5 | 71 | 0 | 224 | 27 | 2 | 2 | true | true | false | false | false | false | zero |
36,955,029 | Keep static variables for a longer time period - Android | <p>I am using static variable in a class in Android:</p>
<pre><code>class Test{
static int x;
}
</code></pre>
<p>This variable is deleted when the class is unloaded or when the VM stops.</p>
<p>I need to keep this variable for a longer time period, but I can't use SharedPreferences or any permanent storage becau... | I am using static variable in a class in Android: [CODE] This variable is deleted when the class is unloaded or when the VM stops. I need to keep this variable for a longer time period, but I can't use SharedPreferences or any permanent storage because the information in this static field is sensitive and should not be... | android|memory|static | 1 | 2016-04-30T12:36:47.457Z | 2,016 | 4 | 12 | 5 | 198 | 2 | 908 | 56 | 3 | 1 | true | false | false | false | false | false | low |
36,955,061 | JsonObject parsing without keys | <p>Iam trying to parse a json content to my android app. Iam using firebase db to get the results. </p>
<p><strong>What I have</strong></p>
<pre><code>private void StartParse() {
JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,
webserviceUrl, null, new Response.Listener... | Iam trying to parse a json content to my android app. Iam using firebase db to get the results. What I have [CODE] What I need is that I have this json response here: [CODE] the response is json file but how can I just grab the values? so I can have an array with the values only. | android|arrays|json|parsing|key-value | 0 | 2016-04-30T12:39:38.563Z | 2,016 | 4 | 12 | 5 | 1,323 | 3 | 280 | 31 | 5 | 2 | true | false | false | false | false | false | zero |
36,955,124 | Using Java Code for Android Application (for AES encryption) | <p>I am new to Android. I am doing a project on AES encryption and I want to make an Android app, I have AES encryption code in Java which is working perfectly:</p>
<pre><code> //AESAlgorithm Class
package com.example.pr1;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
... | I am new to Android. I am doing a project on AES encryption and I want to make an Android app, I have AES encryption code in Java which is working perfectly: [CODE] Now, I want to write a main Activity code which should have an Editview and a Button. The EditView will get text which I want to pass as plain text to the ... | java|android|cryptography|aes | 1 | 2016-04-30T12:46:51.557Z | 2,016 | 4 | 12 | 5 | 697 | 1 | 916 | 60 | 4 | 3 | true | false | false | false | false | false | low |
36,955,149 | How does Android determine its internet connectivity state? | <p>I am trying to figure out how exactly Android determines its internet connectivity state, particularly in the newer versions. Looking at the source code for the ConnectivityManager, it's not readily apparent how it's doing it. </p>
<p>Does Google document how it performs the connectivity checks when connecting to W... | I am trying to figure out how exactly Android determines its internet connectivity state, particularly in the newer versions. Looking at the source code for the ConnectivityManager, it's not readily apparent how it's doing it. Does Google document how it performs the connectivity checks when connecting to WiFi, and wha... | android|networking | -1 | 2016-04-30T12:50:28.283Z | 2,016 | 4 | 12 | 5 | 303 | 1 | 948 | 59 | 2 | 0 | false | false | false | false | false | true | negative |
36,955,202 | How to set the differenet intent in GCMListenerService? | <p>I am new to android development and now i am working on push notification. I want to send two different types of messages in GCM Push notification, Image and Text messages and I want to set the two different intents on the basis of message type. If it is a text message showTextMessage activity should be open and if ... | I am new to android development and now i am working on push notification. I want to send two different types of messages in GCM Push notification, Image and Text messages and I want to set the two different intents on the basis of message type. If it is a text message showTextMessage activity should be open and if it ... | android|android-intent | 2 | 2016-04-30T12:58:23.690Z | 2,016 | 4 | 12 | 5 | 201 | 0 | 560 | 55 | 2 | 1 | true | true | false | false | false | false | low |
36,955,203 | IllegalArgumentException: button doesn't exist 0 in android studio 2.1 on ubuntu 14.04 | <p><a href="https://stackoverflow.com/questions/36523377/android-studio-2-0-illegalargumentexception-button-doesnt-exist-0">My question has been asked a few days ago by others</a>. But there is no answer and the question was not write clear. So I ask it again. </p>
<p>When I want to use emulator to run my application,... | My question has been asked a few days ago by others . But there is no answer and the question was not write clear. So I ask it again. When I want to use emulator to run my application, the Gradle could be built successfully. But there is another error, following is the event log: [CODE] Can anyone help me figure it out... | android|ubuntu|android-studio | 1 | 2016-04-30T12:58:31.780Z | 2,016 | 4 | 12 | 5 | 576 | 1 | 383 | 86 | 3 | 1 | true | false | false | false | false | false | low |
36,955,260 | My App is not running on Genymotion, I get out of Memory error | <p>I am developing an app in Android Studio but I am unable to run the app in a Genymotion Virtual machine.
Here i the full log, I was asked to add</p>
<pre><code>android:largeHeap="true"
</code></pre>
<p>to AndroidManifest.xml but it didn't still work.
The Splash screen activity opens but the next activity does not... | I am developing an app in Android Studio but I am unable to run the app in a Genymotion Virtual machine. Here i the full log, I was asked to add [CODE] to AndroidManifest.xml but it didn't still work. The Splash screen activity opens but the next activity does not open. The app ran once but when I ran it again, It kept... | java|android | -3 | 2016-04-30T13:04:39.660Z | 2,016 | 4 | 13 | 5 | 228 | 2 | 425 | 62 | 2 | 2 | true | false | false | false | false | true | negative |
36,955,316 | Google Maps makes the app stop Unfortunately | <p>We are working with an Android Application the first page is Splash screen and the later page is google map . This google map activity makes the app stop unfortunately in some android phones like android version 4.4.2. But in some android phone it is working fine . Is the google map has some restriction with the and... | We are working with an Android Application the first page is Splash screen and the later page is google map . This google map activity makes the app stop unfortunately in some android phones like android version 4.4.2. But in some android phone it is working fine . Is the google map has some restriction with the androi... | android|google-maps | 0 | 2016-04-30T13:09:11.817Z | 2,016 | 4 | 13 | 5 | 208 | 1 | 441 | 44 | 2 | 2 | true | false | false | false | false | false | zero |
36,955,376 | Can't get the adapter of the Dialogfragment | <p>I Created class named Popupdialog which extends <code>DialogFragment</code>. So there is a recyclerview and adapter in that Popupdialog class.but when I am calling <code>((MyRecyclerViewforsmallcardincart)adapter).getmDataset();</code> from the activity ,I am getting <code>NullpointerException</code>.I know that the... | I Created class named Popupdialog which extends DialogFragment . So there is a recyclerview and adapter in that Popupdialog class.but when I am calling ((MyRecyclerViewforsmallcardincart)adapter).getmDataset(); from the activity ,I am getting NullpointerException .I know that the adapter is not going to the DialogFragm... | android-recyclerview|android-dialogfragment | 0 | 2016-04-30T13:14:01.017Z | 2,016 | 4 | 13 | 5 | 11 | 0 | 686 | 43 | 2 | 3 | true | true | false | false | false | false | zero |
36,955,383 | Android volley listview not showing | <p>Issue: Android volley listview not showing.</p>
<p>Description: trying to get the Json data in listview format, in logcat it is showing, even i am able to parse it properly.
but when i try to run it in Fragment it doesnot display anything only
this error.</p>
<p>W/AbsListView: Intent to operate on non-exist data,... | Issue: Android volley listview not showing. Description: trying to get the Json data in listview format, in logcat it is showing, even i am able to parse it properly. but when i try to run it in Fragment it doesnot display anything only this error. W/AbsListView: Intent to operate on non-exist data, childcount=0, mFirs... | android|json|listview|android-volley | 1 | 2016-04-30T13:14:42.857Z | 2,016 | 4 | 13 | 5 | 787 | 3 | 1,286 | 35 | 4 | 3 | true | false | false | false | false | false | low |
36,955,425 | Delete item from SQLite and listView | <p>i want to delete item from a listView and SQLite database with contextMenu and my code doesnt remove anything. Maybe someone can help me?</p>
<p><strong>DBAdapter.java</strong></p>
<pre><code>public void delete(String name)throws SQLException {
SQLiteDatabase db = helper.getWritableDatabase();
if (... | i want to delete item from a listView and SQLite database with contextMenu and my code doesnt remove anything. Maybe someone can help me? DBAdapter.java [CODE] MainActivity.java [CODE] | java|android|sqlite|listview | 1 | 2016-04-30T13:19:03.037Z | 2,016 | 4 | 13 | 5 | 98 | 0 | 184 | 36 | 4 | 2 | true | true | false | false | false | false | low |
36,955,591 | Fragment replacement not working in android | <p>I am working on an application which is having a tab at bottom,Each tab click will replace current fragment,I have tried to replace a fragment but my app crashed without any error,Can anybody help me to solve it?my code for replacing fragment is as below,</p>
<pre><code>public class Tab5Container extends BaseContai... | I am working on an application which is having a tab at bottom,Each tab click will replace current fragment,I have tried to replace a fragment but my app crashed without any error,Can anybody help me to solve it?my code for replacing fragment is as below, [CODE] basefragment [CODE] Please help me i wasted 1 day for thi... | android|android-fragments|android-fragmentactivity | 0 | 2016-04-30T13:37:16.523Z | 2,016 | 4 | 13 | 5 | 39 | 0 | 325 | 43 | 3 | 2 | true | true | false | false | false | false | zero |
36,955,602 | Android relativeLaout Z-ordering bug | <p>I am facing a strange issue with z ordering in RelativeLayout.</p>
<p><strong>The Requirement</strong></p>
<p>View v2 should always be above btn1 irrespective whether its a TextView or a Button</p>
<p><strong>The Problem</strong></p>
<p>When i have two views a Button and TextView inside a RelativeLayout</p>
<pr... | I am facing a strange issue with z ordering in RelativeLayout. The Requirement View v2 should always be above btn1 irrespective whether its a TextView or a Button The Problem When i have two views a Button and TextView inside a RelativeLayout [CODE] but when view is rendered the TextView goes behind the button and when... | android|android-layout|android-relativelayout|android-xml|z-order | 0 | 2016-04-30T13:38:10.113Z | 2,016 | 4 | 13 | 5 | 53 | 1 | 814 | 36 | 5 | 2 | true | false | false | false | false | false | zero |
36,955,616 | Out Of Memory Exception occuring in android even after recycling Bitmap | <p>i have read many threads on this topic and tried to use them in my code but i am still not able to solve it.</p>
<p><strong>What i am trying to do:</strong>
Like facebook or any other app which downloads feed from server which includes image, I am also doing same and trying to display feeds and images on the image ... | i have read many threads on this topic and tried to use them in my code but i am still not able to solve it. What i am trying to do: Like facebook or any other app which downloads feed from server which includes image, I am also doing same and trying to display feeds and images on the image view. What is happening: I a... | java|android|out-of-memory|picasso | 3 | 2016-04-30T13:39:26.670Z | 2,016 | 4 | 13 | 5 | 720 | 6 | 1,523 | 71 | 4 | 4 | true | false | false | false | false | false | low |
36,955,756 | ClassCastException VectorDrawable cannot be cast to Animatable | <p>I want to animate vector drawable
switch_circle.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportWidth="40"
android:viewportHeight="40"
android:width="22dp"
android:height="22dp">
<path
android:name="swit... | I want to animate vector drawable switch_circle.xml [CODE] When i start animation, it throws class cast exception. All tutorial says that it must work properly, but it doesn't. I dont know why. [CODE] switch_circle_animated_vector.xml [CODE] filling.xml [CODE] image button [CODE] stacktrace [CODE] | java|android|xml|vector|android-animation | 2 | 2016-04-30T13:56:38.487Z | 2,016 | 4 | 13 | 5 | 2,946 | 1 | 298 | 62 | 5 | 6 | true | false | true | false | false | false | low |
36,955,757 | Google direction route from current location (LocationServices.FusedLocationApi) | <p>I am following these awesome instructions on how to draw directions from origin to destination it almost works as I want.
I have a strange problem.</p>
<p>When I want to set my longitude and latitude like follows I get a crash:</p>
<pre><code>Location location = LocationServices.FusedLocationApi.getLastLocation(mGoo... | I am following these awesome instructions on how to draw directions from origin to destination it almost works as I want. I have a strange problem. When I want to set my longitude and latitude like follows I get a crash: [CODE] But when I write numbers like (60.1,14.2) where I have the long and lat which is just a rand... | android|google-maps|direction | -1 | 2016-04-30T13:56:51.910Z | 2,016 | 4 | 13 | 5 | 116 | 1 | 1,847 | 80 | 3 | 3 | true | false | false | false | false | true | negative |
36,955,783 | MvvmCross : Empty binding target passed to MvxTargetBindingFactoryRegistry | <p>I created an Android application with Xamarin and MvvmCross.
I want to bind some views (text, editing text, button) to my ViewModel. Nothing strange well so far. But my bindings don’t apply… When I use typed FindViewById, I don’t get the traced error but bindings doesn’t apply.</p>
<p>When I run the application, I ... | I created an Android application with Xamarin and MvvmCross. I want to bind some views (text, editing text, button) to my ViewModel. Nothing strange well so far. But my bindings don’t apply… When I use typed FindViewById, I don’t get the traced error but bindings doesn’t apply. When I run the application, I have the fo... | c#|android|xamarin|mvvmcross | 0 | 2016-04-30T13:59:35.537Z | 2,016 | 4 | 13 | 5 | 591 | 3 | 704 | 74 | 4 | 4 | true | false | false | false | false | false | zero |
36,955,799 | How to parse a JSON in a JSON | <p>i'm creating a mcq for a medical application and i'm trying to get some question from my databse with the different choice with this JSON :</p>
<pre><code>{
"QCM": [{
"question": "Est-ce que Guillaume a pris?",
"id": "34",
"choix": ["Oui", "Non"]
}]
}
</code></pre>
<p>then i past my... | i'm creating a mcq for a medical application and i'm trying to get some question from my databse with the different choice with this JSON : [CODE] then i past my question string to a textview and if i have 2 choice, i create only 2 button, but only 1 button is create and in my button i have this string : [CODE] So i do... | java|android|json | 0 | 2016-04-30T14:00:43.903Z | 2,016 | 4 | 14 | 5 | 58 | 1 | 531 | 29 | 3 | 3 | true | false | false | false | false | false | zero |
36,955,835 | Online XML parser elements | <p>me again, here is my XML</p>
<pre><code><XMLFILE>
<PublishTime>2016-04-30 15:03:40</PublishTime>
<Days>
<day>
<Name>Day 1</Name>
<absentPeople>
<Absent>
<Description>Nothing</Description>
... | me again, here is my XML [CODE] I can read all the names of the days, can someone help me to read the names of the absent people please? To read the names I use this code: Textview.setText(textview.getText() + "Naam : " + getNode("Name", eElement) + "\n" + "\n" + "\n" + "\n"); [CODE] } Thanks anyways. | java|android|xml|parsing | 0 | 2016-04-30T14:03:47.393Z | 2,016 | 4 | 14 | 5 | 156 | 1 | 302 | 26 | 4 | 2 | true | false | false | false | false | false | zero |
36,955,892 | Android doesn't close on System.exit() | <p>I am trying to close my App when i press on the Back Button, all it does is just going back to Launcher Activity.</p>
<pre><code>public void onBackPressed() {
android.os.Process.killProcess(android.os.Process.myPid());
System.exit(1);
System.exit(0);
finish();
}
</code></pre>
<p>I tried both, Syste... | I am trying to close my App when i press on the Back Button, all it does is just going back to Launcher Activity. [CODE] I tried both, System.exit(1) and System.exit(0), together and each other alone. But nothing works as intended. EDIT: I have changed it to [CODE] And now i get an exception when i press the back butto... | java|android | -1 | 2016-04-30T14:08:46.870Z | 2,016 | 4 | 14 | 5 | 120 | 1 | 396 | 38 | 2 | 2 | true | false | false | false | false | true | negative |
36,955,994 | How to get a text from EditText? | <p>I make <code>DialogFragment</code> with custom <code>layout</code> and set this such way</p>
<pre><code>AlertDialog.Builder adb = new AlertDialog.Builder(getActivity())
.setView(layout)
.setCancelable(true);
</code></pre>
<p>This <code>layout</code> which was set in <code>DialogFragment</code> cont... | I make DialogFragment with custom layout and set this such way [CODE] This layout which was set in DialogFragment contains EditText . Gist in fact that when DialogFragment appear, user have to enter in EditText your comment and then push button send . It was a problem when i tried findViewById() , because DialogFragmen... | java|android | 0 | 2016-04-30T14:20:16.277Z | 2,016 | 4 | 14 | 5 | 41 | 2 | 616 | 32 | 2 | 3 | true | false | false | false | false | false | zero |
36,956,045 | RecyclerView item with different height | <p>I want to implement RecyclerView with different item height. Item contains NetworkImageView. I set for NetworkImageView <code>layout_height="wrap_content"</code> and for all parent of NetworkImageView. But I am faced with an issue. When scrolling and reaching the end, and then scrolling up I get strange behavior of... | I want to implement RecyclerView with different item height. Item contains NetworkImageView. I set for NetworkImageView layout_height="wrap_content" and for all parent of NetworkImageView. But I am faced with an issue. When scrolling and reaching the end, and then scrolling up I get strange behavior of RecyclerView. An... | android|android-recyclerview | 1 | 2016-04-30T14:24:43.433Z | 2,016 | 4 | 14 | 5 | 2,793 | 1 | 563 | 39 | 2 | 4 | true | false | true | false | false | false | low |
36,956,071 | ui-sref not working in cordova android app | <p>I am building an android app using cordova. Am using angularjs ui-router for routing. ui-sref is not at all working. Below is my code: </p>
<pre><code>var angularApp = angular.module('angularApp', [
'ui.router',
'ngTouch',
'angular.filter',
'angularApp.services',
'angularApp.controller',
]);
angularApp.c... | I am building an android app using cordova. Am using angularjs ui-router for routing. ui-sref is not at all working. Below is my code: [CODE] The home state loads by default, and when I click on the link for settings, it isn't working. Here is the code in index.html [CODE] | android|angularjs|cordova|angular-ui-router | 1 | 2016-04-30T14:26:28.313Z | 2,016 | 4 | 14 | 5 | 429 | 1 | 273 | 42 | 4 | 2 | true | false | false | false | false | false | low |
36,956,260 | Why my app crashes on startup (Android Studio) | <p>I am developing an app on Android Studio IDE version 1.1.0.
It is a percentage app...</p>
<p>My problem is when I start the app on a device it keeps crashing on startup.</p>
<p>Here is my AndroidManifest.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
</code></pre>
<p></p>
<pre><code><applica... | I am developing an app on Android Studio IDE version 1.1.0. It is a percentage app... My problem is when I start the app on a device it keeps crashing on startup. Here is my AndroidManifest.xml [CODE] [CODE] MainActivity.java [CODE] activity_main.xml [CODE] strings.xml [CODE] colors.xml [CODE] styles.xml (v21) [CODE] t... | android|android-layout | 3 | 2016-04-30T14:43:51.440Z | 2,016 | 4 | 14 | 5 | 1,778 | 1 | 337 | 46 | 2 | 8 | true | false | false | false | false | false | low |
36,956,323 | sectionedrecyclerview: Could not create new header dynamically | <p>I have an activity with two sliding tabs(fragments). I want to create a header for Recyclerview dynamically, so that the user will get a dialogBox with an edittext in it. As soon as user clicks OK after typing the header name in the edittext, the string gets passed from activity to fragment. I have succeeded in tran... | I have an activity with two sliding tabs(fragments). I want to create a header for Recyclerview dynamically, so that the user will get a dialogBox with an edittext in it. As soon as user clicks OK after typing the header name in the edittext, the string gets passed from activity to fragment. I have succeeded in transfe... | android|android-fragments|android-recyclerview | -1 | 2016-04-30T14:47:55.330Z | 2,016 | 4 | 14 | 5 | 361 | 2 | 845 | 62 | 3 | 4 | true | false | false | false | false | true | negative |
36,956,326 | Get high quality profile picture from GoogleSignInAccount | <p>In my Android application in order to authenticate through the <strong>google account</strong>, I follow this official tutorial <a href="https://developers.google.com/identity/sign-in/android/people#retrieve_profile_information_for_a_signed-in_user" rel="noreferrer">https://developers.google.com/identity/sign-in/and... | In my Android application in order to authenticate through the google account , I follow this official tutorial https://developers.google.com/identity/sign-in/android/people#retrieve_profile_information_for_a_signed-in_user and it works. As stated there, to retrieve the profile picture I use " getPhotoUrl() " method of... | android|google-api|google-signin | 9 | 2016-04-30T14:48:29.607Z | 2,016 | 4 | 14 | 5 | 4,764 | 2 | 506 | 57 | 3 | 1 | true | false | true | false | false | false | medium |
36,956,348 | GCM Sends Empty Messages Whenever A User Register | <p>I'm having a really annoying problem, whenever a user register in my app ( send the token to my database ), gcm sends an empty message.</p>
<p>I managed to make a workaround fix by "if(!Message.contains("sometext"))" but the idea of receiving and waking up the device isn't a good idea .</p>
<p>When the user instal... | I'm having a really annoying problem, whenever a user register in my app ( send the token to my database ), gcm sends an empty message. I managed to make a workaround fix by "if(!Message.contains("sometext"))" but the idea of receiving and waking up the device isn't a good idea . When the user install and open the app ... | android|google-cloud-messaging | 0 | 2016-04-30T14:51:20.073Z | 2,016 | 4 | 14 | 5 | 30 | 0 | 766 | 49 | 2 | 1 | true | true | false | false | false | false | zero |
36,956,371 | AdMob not working in production (Android) | <p>I have tested my banner ad in test mode and it worked perfectly, after that I registered the app in AdMob, changed the unit ID and the build method and it simply doesn't work. I get "Failed to load Ad 0" Every time.</p>
<p><strong>manifest:</strong></p>
<pre><code><meta-data android:name="com.google.android.gms... | I have tested my banner ad in test mode and it worked perfectly, after that I registered the app in AdMob, changed the unit ID and the build method and it simply doesn't work. I get "Failed to load Ad 0" Every time. manifest: [CODE] loading ad: [CODE] layout: [CODE] unit id: [CODE] taken from here: (After registering m... | android|admob|banner | 0 | 2016-04-30T14:53:54.777Z | 2,016 | 4 | 14 | 5 | 1,604 | 1 | 535 | 41 | 3 | 4 | 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.