id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,062,757 | Does anyone know any tricks to solving this LG tv screen issue (Partial screen doesn't display anything)? | <p><a href="http://i.stack.imgur.com/eqpUt.jpg" rel="nofollow">Picture of LG tv screen</a></p>
<p>Hi,</p>
<p>The tv model here is LG42LB5600. As you can see, the right side of the screen near the border doesn't function well. I've been trying to use the rest of the screen, but the corner damage is so huge it's annoyi... | Picture of LG tv screen Hi, The tv model here is LG42LB5600. As you can see, the right side of the screen near the border doesn't function well. I've been trying to use the rest of the screen, but the corner damage is so huge it's annoying. I've tried the tv settings; it doesn't have good enough aspect ratio options. D... | android|screen|lg | -1 | 2016-05-06T01:21:45.517Z | 2,016 | 5 | 1 | 4 | 50 | 1 | 944 | 105 | 3 | 0 | false | false | false | false | false | true | negative |
37,062,903 | Animating when re-positioning a view | <p>As you can see in the attached code, <code>linearLayoutLogo</code> contains a <code>ProgressBar</code> and <code>TextView</code> and <code>linearLayoutReading</code> contains an <code>ImageView</code> and <code>TextView</code>. When <code>linearLayoutReading</code> is made visible the the two layouts reposition them... | As you can see in the attached code, linearLayoutLogo contains a ProgressBar and TextView and linearLayoutReading contains an ImageView and TextView . When linearLayoutReading is made visible the the two layouts reposition themselves around the center point due to android:layout_centerInParent="true" . How can I animat... | android|android-layout|android-animation|android-view | 0 | 2016-05-06T01:41:58.207Z | 2,016 | 5 | 1 | 4 | 45 | 1 | 523 | 36 | 4 | 2 | true | false | false | false | false | false | zero |
37,062,990 | How to pass TextView entry into an EditText Field Automatically | <p>I am trying to create a basic app for implementing voice command features and have thus far got some basic functionality working. Currently if I say 'open voice command' this text appears in a 'TextView' field with the id 'result_text'.</p>
<p>I am wanting to pass the text displayed in the 'TextView' into the 'Edi... | I am trying to create a basic app for implementing voice command features and have thus far got some basic functionality working. Currently if I say 'open voice command' this text appears in a 'TextView' field with the id 'result_text'. I am wanting to pass the text displayed in the 'TextView' into the 'EditText' field... | android|android-studio|android-intent|android-edittext|textview | 0 | 2016-05-06T01:51:35.060Z | 2,016 | 5 | 1 | 4 | 155 | 2 | 610 | 63 | 5 | 1 | true | false | false | false | false | false | zero |
37,063,222 | Showing a single field from SQLite Database in an EditText | <p>first time posting here, long time lurker. I am developing an Android app using an SQLite Database to persist data. The first view I have is a ListView where the user can add, change or delete Animal names. They can also hit an Edit Button, which brings them to a second view. This view has more details about the ... | first time posting here, long time lurker. I am developing an Android app using an SQLite Database to persist data. The first view I have is a ListView where the user can add, change or delete Animal names. They can also hit an Edit Button, which brings them to a second view. This view has more details about the same a... | android|database|sqlite | 1 | 2016-05-06T02:22:07.437Z | 2,016 | 5 | 2 | 4 | 648 | 1 | 1,262 | 58 | 3 | 3 | true | false | false | false | false | false | low |
37,063,466 | AltBeacon correlation between RangedBeacon.setSampleExpirationMillisecond, setForegroundScanPeriod and setForegroundBetweenScanPeriod | <p>I'm playing around with the AltBeacon and these parameters. My goal is to have the fastest (as fast as possible) callback <code>didRangeBeaconsInRegion()</code>.</p>
<p>I understand that ranging uses running average to calculate the distance and make the callback. I'm not interested in the distance, but the rssi. W... | I'm playing around with the AltBeacon and these parameters. My goal is to have the fastest (as fast as possible) callback didRangeBeaconsInRegion() . I understand that ranging uses running average to calculate the distance and make the callback. I'm not interested in the distance, but the rssi. With that said, if the r... | android|callback|altbeacon | 2 | 2016-05-06T02:52:46.563Z | 2,016 | 5 | 2 | 4 | 1,201 | 1 | 2,091 | 133 | 3 | 1 | true | false | false | false | false | false | low |
37,063,475 | Navigation Drawer doesn't show fragments | <p>I've created a new Android Studio Project and my MainActivity is a Navigation Drawer Activity.</p>
<p>So, I can't show up fragments. I've read many post on internet and here too. </p>
<p>Explaining:</p>
<p>I open navigation drawer, select menu "Podcast".
PodcastsFragment should be shown, but it still showing acti... | I've created a new Android Studio Project and my MainActivity is a Navigation Drawer Activity. So, I can't show up fragments. I've read many post on internet and here too. Explaining: I open navigation drawer, select menu "Podcast". PodcastsFragment should be shown, but it still showing activity. MainActivity code: [CO... | android|android-fragments|navigation-drawer | 0 | 2016-05-06T02:54:10.147Z | 2,016 | 5 | 2 | 4 | 2,408 | 2 | 432 | 40 | 3 | 5 | true | false | false | false | false | false | zero |
37,063,501 | Set limitation on inserting edittext length in java code | <p>I want to create an edittext that has a limitation on input length. When the edittext length is more than five it should display an error toast message. The app compiles but it crashes in the emulator and does not open. My code is below, any help would be appreciated.</p>
<pre><code><EditText
android:layout_wi... | I want to create an edittext that has a limitation on input length. When the edittext length is more than five it should display an error toast message. The app compiles but it crashes in the emulator and does not open. My code is below, any help would be appreciated. [CODE] The Java code looks like this: [CODE] } | android | 0 | 2016-05-06T02:57:43.373Z | 2,016 | 5 | 2 | 4 | 39 | 2 | 315 | 56 | 1 | 2 | true | false | false | false | false | false | zero |
37,063,507 | Unable to find application Mono.Android.Platform.ApiLevel_23 or Xamarin.Android.Platform | <p>I have a Xamarin.Android application that is being built through a build server. The application is targeting API Level 23 and Min Android Version 4.1 (API 16). During debug the application works fine, but when the build server compiles the application, packages it, signs, and aligns it, it crashes on load with the ... | I have a Xamarin.Android application that is being built through a build server. The application is targeting API Level 23 and Min Android Version 4.1 (API 16). During debug the application works fine, but when the build server compiles the application, packages it, signs, and aligns it, it crashes on load with the err... | xamarin|xamarin.android | 5 | 2016-05-06T02:58:23.170Z | 2,016 | 5 | 2 | 4 | 3,381 | 3 | 1,159 | 88 | 2 | 0 | false | false | true | false | false | false | low |
37,063,535 | Trigger a button press within a few seconds of opening that activity window | <p>Is there an easy way to have a button pressed automatically within 1 second of opening that window/activity in my android app. </p>
<p>At the moment I need to press the 'bVoice' button to start voice recognition using <code>b.setOnClickListener(this)</code>. I wish to rather than pressing the button to automatica... | Is there an easy way to have a button pressed automatically within 1 second of opening that window/activity in my android app. At the moment I need to press the 'bVoice' button to start voice recognition using b.setOnClickListener(this) . I wish to rather than pressing the button to automatically be pressed within 1 se... | android|android-studio|android-intent|android-edittext|onclicklistener | 1 | 2016-05-06T03:02:00.333Z | 2,016 | 5 | 3 | 4 | 239 | 3 | 444 | 75 | 5 | 1 | true | false | false | false | false | false | low |
37,063,759 | Periodic foreground location tracking on Android | <p>I am in the process of creating a custom Phonegap plugin for Android that monitors location both when the app is in the foreground and when it is backgrounded. Google documentation on using the <a href="https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderApi#public-me... | I am in the process of creating a custom Phonegap plugin for Android that monitors location both when the app is in the foreground and when it is backgrounded. Google documentation on using the FusedLocationProviderAPI is remarkably clear. The process I have worked out thus far is as follows Ensure that the API is avai... | android|fusedlocationproviderapi | 5 | 2016-05-06T03:33:00.093Z | 2,016 | 5 | 3 | 4 | 661 | 1 | 3,063 | 48 | 2 | 1 | true | false | false | false | false | false | low |
37,063,791 | How to call AsynkTask of other class in other Activity in android? | <p>I have a class named as <strong><code>CRegistrationScreen</code></strong> which contains AsynkTask class named as <strong><code>GenerateOtp</code></strong> and I have a class named as <strong><code>Login</code></strong> where I want execute CGenerateOtp. </p>
<p>How can I do that?</p>
<p>Here is my CREgistration c... | I have a class named as CRegistrationScreen which contains AsynkTask class named as GenerateOtp and I have a class named as Login where I want execute CGenerateOtp. How can I do that? Here is my CREgistration class AsynkTask code:- [CODE] and here is my Login class code: [CODE] | android | 0 | 2016-05-06T03:37:17.103Z | 2,016 | 5 | 3 | 4 | 76 | 2 | 278 | 66 | 1 | 2 | true | false | false | false | false | false | zero |
37,063,836 | style.xml android:windowIsTranslucent dialogs not showing | <p>I have created a transparent <code>AppCompatActivity</code> that is a type of 'launcher' activity for other activities. This launcher activity uses a transparent style as found with other stackoverflow questions.</p>
<pre><code><style name="Theme.AppCompat.Translucent" parent="Theme.AppCompat.Light.NoActionBar"&... | I have created a transparent AppCompatActivity that is a type of 'launcher' activity for other activities. This launcher activity uses a transparent style as found with other stackoverflow questions. [CODE] Sometimes this launcher activity needs to show a progress dialog. However, the progress dialog does not show up w... | android|android-activity|android-appcompat | 0 | 2016-05-06T03:41:42.327Z | 2,016 | 5 | 3 | 4 | 966 | 1 | 525 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
37,063,863 | Error:(773) Attribute "titleTextStyle" has already been defined | <p>I'm trying to migrate a project from <strong>Eclipse</strong> to <strong>Android Studio</strong> and after googling the problem I found an answer <a href="https://stackoverflow.com/questions/30303467/attribute-titletextstyle-has-already-been-defined-in-android-studio-1-2-1">here</a>. Unfortunately, my app requires b... | I'm trying to migrate a project from Eclipse to Android Studio and after googling the problem I found an answer here . Unfortunately, my app requires both the ActionBarSherlock library and appcompat-v7 . This wasn't a problem in Eclipse, so why should Android Studio complain? Also, can anyone think of a solution, short... | android|eclipse|android-studio|actionbarsherlock|android-appcompat | 1 | 2016-05-06T03:46:06.217Z | 2,016 | 5 | 3 | 4 | 570 | 1 | 541 | 63 | 5 | 1 | true | false | false | false | false | false | low |
37,063,958 | onRequestPermissionsResult callback must wait method call requestPermissions finish | <p>i'm trying to get result of a requestPermissions(..) by using a sleep loop and wait for user response, but the callback method onRequestPermissionsResult(..) must wait for the method which call requestPermissions finish to execute, so I cant get it as well.</p>
<p>Example code :</p>
<pre><code>public int result = ... | i'm trying to get result of a requestPermissions(..) by using a sleep loop and wait for user response, but the callback method onRequestPermissionsResult(..) must wait for the method which call requestPermissions finish to execute, so I cant get it as well. Example code : [CODE] I've tried some solution : Put requestPe... | java|android|android-6.0-marshmallow|android-permissions | 1 | 2016-05-06T03:55:24.353Z | 2,016 | 5 | 3 | 4 | 1,689 | 1 | 625 | 83 | 4 | 1 | true | false | false | false | false | false | low |
37,064,112 | How to set ontouchlistner and swipe two candy on my multi imageview | <p><a href="http://i.stack.imgur.com/ZqwXO.png" rel="nofollow">enter image description here</a>
i am making candycrush type game for demo.I want to swipe to images</p>
<p>i am stuck with problem of using the method ontouchlistner and also want to swipe to images as like in candycrush game.</p>
<p><code>private void r... | enter image description here i am making candycrush type game for demo.I want to swipe to images i am stuck with problem of using the method ontouchlistner and also want to swipe to images as like in candycrush game. private void reset() { for (int i = 0; i<r;i++) { for (int j = 0; j <c; j++) { Random rn = new Random()... | android-studio|imageview|swipe|ontouchlistener | 0 | 2016-05-06T04:12:56.337Z | 2,016 | 5 | 4 | 4 | 80 | 0 | 1,280 | 67 | 4 | 0 | false | true | false | false | false | false | zero |
37,064,199 | Automatically launching Android app or service when Bluetooth connection is made? | <p>When my app or service is running, I can offer a Bluetooth profile (e.g. SPP, DUN, or my own UUID) using <a href="http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#listenUsingRfcommWithServiceRecord(java.lang.String,%20java.util.UUID)" rel="nofollow noreferrer"><code>BluetoothAdapter.lis... | When my app or service is running, I can offer a Bluetooth profile (e.g. SPP, DUN, or my own UUID) using BluetoothAdapter.listenUsingRfcommWithServiceRecord(...) . Is it possible to instead have this Bluetooth profile visible on the device all the time, even when my app or service is not running, and have Android launc... | android|android-bluetooth | 1 | 2016-05-06T04:22:50.307Z | 2,016 | 5 | 4 | 4 | 1,267 | 1 | 1,354 | 81 | 2 | 1 | true | false | false | false | false | false | low |
37,064,245 | trying to call join on a worker thread | <p>I have an onClickListener that uses Okhttp to asynchronously get some stuff in the background. Here's the OnClickListener: </p>
<pre><code>mGetChartButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String companyName = mSymbolValue.getText().toStr... | I have an onClickListener that uses Okhttp to asynchronously get some stuff in the background. Here's the OnClickListener: [CODE] And here is the Okhttp snippet: [CODE] Right now, I'm getting an error of thread exiting with uncaught exception. And this is caused by a null exception because when calling mChartProfile.ge... | java|android|multithreading|okhttp | 0 | 2016-05-06T04:27:39.633Z | 2,016 | 5 | 4 | 4 | 74 | 0 | 839 | 38 | 4 | 2 | true | true | false | false | false | false | zero |
37,064,252 | Singleton to get a file location on Android | <p>How can I have access to a file in my res/raw folder from a Singleton (not an activity) on Android?
I've tried:</p>
<pre><code>InputStream is = MainActivity.getResources().openRawResource("data.json");
</code></pre>
<p>which doesn't work since "non-static method getResouces() cannot be referenced from static conte... | How can I have access to a file in my res/raw folder from a Singleton (not an activity) on Android? I've tried: [CODE] which doesn't work since "non-static method getResouces() cannot be referenced from static content". I've also tried: [CODE] which throws a Null-pointer exception. My Singleton: [CODE] The reason I wan... | java|android | 1 | 2016-05-06T04:28:38.483Z | 2,016 | 5 | 4 | 4 | 752 | 4 | 526 | 43 | 2 | 3 | true | false | false | false | false | false | low |
37,064,520 | unable to find data in sharedpreferences | <p>Here's what I have done. </p>
<pre><code> public void addToFavorites2(View view) {
//ImageButton button = (ImageButton)findViewById(R.id.imageButton);
//button.setImageResource(R.mipmap.star_clicked_button);
int movieId = favoriteMovieId;
SharedPreferences settings = getSharedPreferen... | Here's what I have done. [CODE] In the given code I have created two methods. in the first method when I call [CODE] the data is found and returns true. when I call the same [CODE] In the second method, it does not return true. is there a fundamental thing about shared preferences that I am missing? if more information... | java|android|sharedpreferences | 0 | 2016-05-06T04:58:14.103Z | 2,016 | 5 | 4 | 4 | 84 | 2 | 691 | 40 | 3 | 3 | true | false | false | false | false | false | zero |
37,064,579 | SeekBar disappear when change fragment? | <p>I have 3 fragment and 2 framelayout in 1 XML file in here , the first 2 fragment is a text and it display normally , but when i replaced the third fragment which have seekbar then it went disappear !
But if i display the third fragment first then the seekbar display normal and the TextView went gone ! This is my co... | I have 3 fragment and 2 framelayout in 1 XML file in here , the first 2 fragment is a text and it display normally , but when i replaced the third fragment which have seekbar then it went disappear ! But if i display the third fragment first then the seekbar display normal and the TextView went gone ! This is my code :... | android|android-layout|android-fragments|android-studio | 0 | 2016-05-06T05:02:40.877Z | 2,016 | 5 | 5 | 4 | 157 | 1 | 572 | 39 | 4 | 4 | true | false | false | false | false | false | zero |
37,064,581 | consume SOAP local web service in android | <p>I am trying to consume data from local web service in an android emulator using ksoap2 library, I test the same app with a online webservice <a href="http://www.webservicex.net/New/Home/ServiceDetail/17" rel="nofollow">http://www.webservicex.net/New/Home/ServiceDetail/17</a> and It works,
the webService has been ma... | I am trying to consume data from local web service in an android emulator using ksoap2 library, I test the same app with a online webservice http://www.webservicex.net/New/Home/ServiceDetail/17 and It works, the webService has been made it on Csharp, it has a method to return a column from a DB, call neptuno(spanish ad... | java|android|xml|web-services|soap | 0 | 2016-05-06T05:02:50.983Z | 2,016 | 5 | 5 | 4 | 892 | 1 | 696 | 41 | 5 | 2 | true | false | false | false | false | false | zero |
37,064,638 | How to check Items in listview in android? | <p>I have a <code>ListView</code> in my app which is on create execute Url that fetches 5 names from a server and <em>loadmore</em> <code>Button</code> added in <code>ListView</code>. What I want when 5 names from server is shown to user, if user clicks on <em>loadmore</em> button, first check if items in <code>ListVie... | I have a ListView in my app which is on create execute Url that fetches 5 names from a server and loadmore Button added in ListView . What I want when 5 names from server is shown to user, if user clicks on loadmore button, first check if items in ListView contain 5, then onClick loadmore , request to server for 5 more... | android|listview | 1 | 2016-05-06T05:08:10.930Z | 2,016 | 5 | 5 | 4 | 112 | 1 | 364 | 42 | 2 | 1 | true | false | false | false | false | false | low |
37,064,698 | Obtain row information when click a button inside a listVIew | <p>I have a ListView that contains some information that i retrieve from a DB. I display all the information correctly in the list and i added a button that appear in each row.
When I click on this button i need to perform some operations whit the specific data of the row (change a flag for the record in the DB).</p>
... | I have a ListView that contains some information that i retrieve from a DB. I display all the information correctly in the list and i added a button that appear in each row. When I click on this button i need to perform some operations whit the specific data of the row (change a flag for the record in the DB). This is ... | android | 0 | 2016-05-06T05:13:42.763Z | 2,016 | 5 | 5 | 4 | 61 | 4 | 521 | 60 | 1 | 1 | true | false | false | false | false | false | zero |
37,064,735 | I want to retrieve Postal_Code/ ZipCode specifically in Pakistan using google Api or any other one | <p>I have gone through the different question here on Stackoverflow but none of them helped me out yet. I am using google API in my app and needs to retrieve the zipcode. Currently I am getting all the other parameters but zipcode. </p>
<p>Any suggestion/guidance or help would be highly appreciated. Thanks.</p>
<p><a... | I have gone through the different question here on Stackoverflow but none of them helped me out yet. I am using google API in my app and needs to retrieve the zipcode. Currently I am getting all the other parameters but zipcode. Any suggestion/guidance or help would be highly appreciated. Thanks. enter image descriptio... | google-maps|geolocation|google-maps-android-api-2|google-geocoder|postal-code | 1 | 2016-05-06T05:16:52.900Z | 2,016 | 5 | 5 | 4 | 556 | 0 | 352 | 98 | 5 | 1 | true | true | false | false | false | false | low |
37,064,759 | Mockito/Power Mockito : unable to get expected output when mocking method of LayoutParams in android | <p>I have a method:</p>
<pre><code>public class MarginConverter {
int top = 0;
int bottom = 0;
int right = 0;
int left = 0;
public MarginConverter(String val){
top = bottom = right = left = Integer.parseInt(val);
}
public LayoutParams getLayoutParamsFromView(View view){
Lay... | I have a method: [CODE] Note: Variables left, top, right, bottom are instance variables initialized on constructor call. I want to test this method. I have mocked view.getLayoutParams() method. Method setMargin(int, int, int,int) is not setting margin parameters as mentioned and I am getting all parameters of LayoutPar... | android|unit-testing|mockito|powermockito | 5 | 2016-05-06T05:19:04.830Z | 2,016 | 5 | 5 | 4 | 711 | 2 | 561 | 100 | 4 | 2 | true | false | false | false | false | false | low |
37,064,783 | SQLite SearchView not filtering data properly | <p>Hello Android developers. I am new at Java programming and I faced an issue. I have made a program with SQLite database. It is simple program with add and delete features. Now I want to add search/filter feature and I think about using searchView. I followed tutorial and used this code inside setOnQueryTextListener:... | Hello Android developers. I am new at Java programming and I faced an issue. I have made a program with SQLite database. It is simple program with add and delete features. Now I want to add search/filter feature and I think about using searchView. I followed tutorial and used this code inside setOnQueryTextListener: [C... | java|android|sqlite|listview | -1 | 2016-05-06T05:21:04.703Z | 2,016 | 5 | 5 | 4 | 90 | 1 | 641 | 45 | 4 | 1 | true | false | false | false | false | true | negative |
37,064,865 | Altering database in onUpgrade get crash | <p>I want to add one column in existing table so i wrote the below query in onUpgrade</p>
<pre><code> @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
String addMeasureJsonQuery = "ALTER TABLE " + SqlCard.TOOTEET_TABLE + " ADD COLUMN " + Columns.Tooteet.MEASURE_JSON + " TEXT... | I want to add one column in existing table so i wrote the below query in onUpgrade [CODE] Also updated database version as 2. But my app get crashed with the below error FATAL EXCEPTION: Thread-1516 Process: MyPackageName, PID: 2117 android.database.sqlite.SQLiteException: near "CREATE": syntax error (code 1): , while ... | android|database|sqlite | -3 | 2016-05-06T05:26:37.543Z | 2,016 | 5 | 5 | 4 | 433 | 1 | 2,287 | 40 | 3 | 1 | true | false | false | false | false | true | negative |
37,064,925 | HH: MM in Range Bar | <p>I use <a href="https://github.com/edmodo/range-bar" rel="nofollow noreferrer">Ermodo Range Bar</a>, and the fact that I need to display a minimum value and a maximum value in hours and minutes ... That is below:</p>
<p><a href="https://i.stack.imgur.com/pifKH.png" rel="nofollow noreferrer"><img src="https://i.stac... | I use Ermodo Range Bar , and the fact that I need to display a minimum value and a maximum value in hours and minutes ... That is below: [CODE] Now it looks like this: I think date or calendar class may help, but how do I use them? I need it to be displayed as HH:MM instead of H:M | java|android|seekbar | 0 | 2016-05-06T05:30:17.247Z | 2,016 | 5 | 5 | 4 | 375 | 1 | 281 | 19 | 3 | 1 | true | false | false | false | false | false | zero |
37,064,935 | How to make app link work for facebook for android only with open graph stroy | <p>I have an android only app. It has a feature to share an open graph story in facebook. I have managed that part. Now I want app link integration between my app and facebook. But the documention in facebook is very confusing. I also tried the app link host tool and created the app link from <a href="https://developer... | I have an android only app. It has a feature to share an open graph story in facebook. I have managed that part. Now I want app link integration between my app and facebook. But the documention in facebook is very confusing. I also tried the app link host tool and created the app link from web-based App Links tool When... | android|facebook|facebook-opengraph|applinks | 3 | 2016-05-06T05:30:46.357Z | 2,016 | 5 | 5 | 4 | 523 | 0 | 652 | 77 | 4 | 1 | true | true | false | false | false | false | low |
37,065,053 | How to show Views of inflated layout in Tabbed Activity? | <p>I made a default tabbed activity in <code>android studio</code>.
and I tried to show 2 views using tab1 and tab2.
They inherit LinearLayout.
Following is their code(Tab1).</p>
<pre><code>public class Tab1 extends LinearLayout {
View rootView;
public Tab1(Context context) {
super(context);
i... | I made a default tabbed activity in android studio . and I tried to show 2 views using tab1 and tab2. They inherit LinearLayout. Following is their code(Tab1). [CODE] Here is onCreateView method I made in default tabbed activity . I wanted to show tab1, tab2 at each tabs. [CODE] and error message is this, [CODE] It dos... | android|android-tabbed-activity | 0 | 2016-05-06T05:39:47.137Z | 2,016 | 5 | 5 | 4 | 80 | 1 | 429 | 56 | 2 | 3 | true | false | false | false | false | false | zero |
37,065,162 | Change 2nd parameter of method 'YoutubeRecyclerAdapter' from 'Context' to 'Callback<...>' | <p>I am facing issue, using RecyclerView, Retrofit with custom Adapter class, getting:</p>
<pre><code>Change 2nd parameter of method 'VideoRecyclerAdapter' from 'Context' to 'Callback<ArrayList<VideoPojo>>'
</code></pre>
<p><strong>Adapter.java:</strong></p>
<pre><code>public VideoRecyclerAdapter(ArrayLi... | I am facing issue, using RecyclerView, Retrofit with custom Adapter class, getting: [CODE] Adapter.java: [CODE] Activity.java: [CODE] API.java: [CODE] | java|android|android-recyclerview|adapter | 2 | 2016-05-06T05:48:00.220Z | 2,016 | 5 | 5 | 4 | 57 | 1 | 150 | 89 | 4 | 4 | true | false | false | false | false | false | low |
37,065,221 | How to disable onclickListener on listview item while doing pull to refresh on listview in Android? | <p>I have implemented SwipeRefreshLayout, so i want to disable user interaction while layout is refreshing. I have implemented OnClickListener for ListView item. I am getting following error </p>
<blockquote>
<p>java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItem... | I have implemented SwipeRefreshLayout, so i want to disable user interaction while layout is refreshing. I have implemented OnClickListener for ListView item. I am getting following error java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead at an... | java|android|listview | -1 | 2016-05-06T05:53:03.843Z | 2,016 | 5 | 5 | 4 | 1,902 | 4 | 634 | 99 | 3 | 3 | true | false | false | false | false | true | negative |
37,065,285 | how to disable the SwipeRefreshLayout in Landscape mode | <p>I want to disable the <code>SwipeRefreshLayout</code> in the <code>landscape</code> mode when screen rotates the <code>SwipeRefreshLayout</code> must disable automatically.</p>
<pre><code>@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
mDrawer... | I want to disable the SwipeRefreshLayout in the landscape mode when screen rotates the SwipeRefreshLayout must disable automatically. [CODE] | android|android-recyclerview|swiperefreshlayout | 2 | 2016-05-06T05:57:39.747Z | 2,016 | 5 | 5 | 4 | 2,003 | 3 | 140 | 55 | 3 | 1 | true | false | false | false | false | false | low |
37,065,292 | scrolling on cardview making gap in android material design | <p>I have this layout to display the images in card view. </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:padding="16dp"
>
<an... | I have this layout to display the images in card view. [CODE] everything looks perfect when screen loads. But when i scroll on screen it makes a gap between two grids vertically. gap size is equal to screen height. in result only 2 grid can be shown on screen after scroll. Why this behavior? how to fix this? | android | 0 | 2016-05-06T05:58:00.223Z | 2,016 | 5 | 5 | 4 | 480 | 1 | 309 | 59 | 1 | 1 | true | false | false | false | false | false | zero |
37,065,398 | How to send a particular text view text to another activity using custom list view? | <p><img src="https://i.stack.imgur.com/lpLtE.png" alt="As shown in image I want to get the text view text"></p>
<p>My only need is to send the <code>TextView</code> text to another <code>Activity</code> of the selected <code>ListView</code> item. I am using a custom <code>ListView</code> <code>Adapter</code> to get my... | My only need is to send the TextView text to another Activity of the selected ListView item. I am using a custom ListView Adapter to get my data from web services using JSON parsing. With my current code, I am getting the text from the first ListView item everytime, no matter which item I click. [CODE] | android|listview|textview | 0 | 2016-05-06T06:05:12.450Z | 2,016 | 5 | 6 | 4 | 386 | 2 | 303 | 83 | 3 | 1 | true | false | false | false | false | false | zero |
37,065,413 | how to use OnItemClick listener when Glide/Picasso image library is used | <p>I have a custom listview with image and text and it is loaded properly in listview by using the Glide image library. Now i want to implement an OnItemClickListener on imageview to show the image in another activity. </p>
<p>Adapter code: </p>
<pre><code>public class DescAdapter extends BaseAdapter {
private final... | I have a custom listview with image and text and it is loaded properly in listview by using the Glide image library. Now i want to implement an OnItemClickListener on imageview to show the image in another activity. Adapter code: [CODE] OnItemClick code: [CODE] Receiveing intent: [CODE] But when i click on the image be... | android|listview|onitemclicklistener|android-glide | 0 | 2016-05-06T06:05:57.850Z | 2,016 | 5 | 6 | 4 | 825 | 3 | 491 | 72 | 4 | 3 | true | false | false | false | false | false | zero |
37,065,467 | Notification and OnChangeLocation from GPSTracker Class | <p>I use a GPSTracker class, with the method OnLocationChanged
I want to send a notification when ....the locaiton change :)</p>
<p>i use : </p>
<pre><code>@Override
public void onLocationChanged(Location location) {
latitude = (double) (location.getLatitude());
longitude = (double) (location.getLongitude());... | I use a GPSTracker class, with the method OnLocationChanged I want to send a notification when ....the locaiton change :) i use : [CODE] } and there is an error on the 1st line of the NotificationLManager: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSyst... | java|android|notificationmanager | -1 | 2016-05-06T06:09:44.760Z | 2,016 | 5 | 6 | 4 | 52 | 2 | 532 | 55 | 3 | 1 | true | false | false | false | false | true | negative |
37,065,560 | calling a boolean method from another class | <p>I am trying to call a boolean from another class, to check for internet connection. </p>
<p>calling code is </p>
<pre><code>public void submit_user(View view){
EditText editText = (EditText) findViewById(R.id.new_username);
String user_name = editText.getText().toString();
EditText pw = (EditText)findV... | I am trying to call a boolean from another class, to check for internet connection. calling code is [CODE] boolean method is: [CODE] error message: [CODE] tried to post error message, but won't let me submit. new at this, appreciate help. Thank you in advance. Richard | android | 1 | 2016-05-06T06:15:56.513Z | 2,016 | 5 | 6 | 4 | 3,456 | 4 | 268 | 43 | 1 | 3 | true | false | true | false | false | false | low |
37,065,614 | Class cannot be instantiated in xml | <p>I don't know why but my class cannot be instantiated in XML. Below is my Code. I tried everything, but nothing seems to be working. Tried invalidating cache and restarting , nothing works.</p>
<p>CustomFontTextView.java</p>
<pre><code>public class CustomFontTextView extends TextView {
public static final Str... | I don't know why but my class cannot be instantiated in XML. Below is my Code. I tried everything, but nothing seems to be working. Tried invalidating cache and restarting , nothing works. CustomFontTextView.java [CODE] activity.main [CODE] Exception [CODE] | android|user-interface | 0 | 2016-05-06T06:21:00.007Z | 2,016 | 5 | 6 | 4 | 186 | 2 | 257 | 35 | 2 | 3 | true | false | false | false | false | false | zero |
37,065,633 | android camera recording video with special ISO value | <p>My app is about capture video by custom camera.It only has to capture the video of a LED photo frame. The led frequency is 1000 HZ. just like this<br>
<a href="https://i.stack.imgur.com/GdR5r.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GdR5r.jpg" alt=""></a><br>
I use these code to init the ca... | My app is about capture video by custom camera.It only has to capture the video of a LED photo frame. The led frequency is 1000 HZ. just like this I use these code to init the camera and start preview. The key parameter is ISO value. The screen preview like this:We can see the black stripe ! And then,I init the MediaRe... | android|camera|iso|mediarecorder | 1 | 2016-05-06T06:21:55.373Z | 2,016 | 5 | 6 | 4 | 389 | 0 | 1,555 | 53 | 4 | 1 | true | true | false | false | false | false | low |
37,065,725 | In View Pages doesn't show the Image for Image Slider in andorid | <p>In View Pager doesn't show the images, I have fetch the image URL from JSON but I got some error for Image Loader to display Images.</p>
<p>MODEL:</p>
<pre><code>public class ZoomimageModel {
private int id;
private String imageUrl;
public void ZoomimageModel(String imageUrl) {
this.imageUrl=im... | In View Pager doesn't show the images, I have fetch the image URL from JSON but I got some error for Image Loader to display Images. MODEL: [CODE] View Pager Adapter: [CODE] CODE [CODE] Logcat Error: [CODE] I got error in Image Loader,Any one help to solve my problem. Thank in Advance. | android|android-layout|android-fragments|android-studio|android-imageview | 1 | 2016-05-06T06:27:59.077Z | 2,016 | 5 | 6 | 4 | 612 | 1 | 286 | 64 | 5 | 4 | true | false | false | false | false | false | low |
37,065,739 | Application crash at 6.0 version device while scanig qrcode using com.google.zxing:core:3.2.1 library in android | <p>Hello friends i implement application which is scan qr code from my application and si i use com.google.zxing:core:3.2.1 library for that below is my gradle file</p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
app... | Hello friends i implement application which is scan qr code from my application and si i use com.google.zxing:core:3.2.1 library for that below is my gradle file [CODE] And i call scan my barcode as below [CODE] Above code working fine in 4.0 to 5.1 version devices but when i test in 6.0 version device it is crash appl... | android|qr-code|zxing|barcode-scanner | 0 | 2016-05-06T06:29:13.540Z | 2,016 | 5 | 6 | 4 | 1,183 | 2 | 395 | 112 | 4 | 4 | true | false | false | false | false | false | zero |
37,065,766 | java.lang.StackOverflowError: stack size 8MB | <p>I am using <a href="https://github.com/500px/500px-android-blur" rel="nofollow">this library</a> to blur the area beneath my layout in android.
I am getting stackoverflowerror and activity crashes when the blur view is called. Please help.
Thanks.</p>
<p><strong><em>Here is the code with logcat</em></strong></p>
<... | I am using this library to blur the area beneath my layout in android. I am getting stackoverflowerror and activity crashes when the blur view is called. Please help. Thanks. Here is the code with logcat BlurringView Activity [CODE] MyActivity class [CODE] Logcat Error [CODE] | java|android|android-layout|canvas|blur | 0 | 2016-05-06T06:31:07.763Z | 2,016 | 5 | 6 | 4 | 14,330 | 2 | 276 | 44 | 5 | 3 | true | false | true | true | false | false | zero |
37,065,831 | handle different types of notifications in android | <p>I have 3 types of notifications in android.Audio/Video call and msg. How to differentiate based on notification type and open different activity on different notification. THis is hoW I open activity on click of notification.</p>
<pre><code> private void sendNotification(long when,String msg) {
String notificat... | I have 3 types of notifications in android.Audio/Video call and msg. How to differentiate based on notification type and open different activity on different notification. THis is hoW I open activity on click of notification. [CODE] | android|notifications|google-cloud-messaging | 1 | 2016-05-06T06:35:11.043Z | 2,016 | 5 | 6 | 4 | 1,704 | 1 | 232 | 50 | 3 | 1 | true | false | false | false | false | false | low |
37,065,847 | setDrawerLockMode is not working as expected | <p>I'm very new to Android. I made an android app containing a navigation drawer. But, i need to customize this a little. When I click on a item in my drawer, I need to prevent this from closing. But, when I click on toggle button it must be closed.</p>
<p>So, I used <code>mDrawerLayout.setDrawerLockMode(DrawerLayout.... | I'm very new to Android. I made an android app containing a navigation drawer. But, i need to customize this a little. When I click on a item in my drawer, I need to prevent this from closing. But, when I click on toggle button it must be closed. So, I used mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_... | java|android | 1 | 2016-05-06T06:35:47.730Z | 2,016 | 5 | 6 | 4 | 286 | 0 | 675 | 44 | 2 | 1 | true | true | false | false | false | false | low |
37,065,852 | Android Model for JSON parsing shows ClassCastException: com.google.gson.JsonObject can not be casted to com.google.gson.JsonArray | <p>I am fairly new to Android development and I am creating an app that requires me to consume the Zomato Rest API. I am using the Koush ION library <a href="https://github.com/koush/ion" rel="nofollow">https://github.com/koush/ion</a> for sending the http request and receiving a response. For using this library, I sim... | I am fairly new to Android development and I am creating an app that requires me to consume the Zomato Rest API. I am using the Koush ION library https://github.com/koush/ion for sending the http request and receiving a response. For using this library, I simply create a model java class with the keys as java instance ... | java|android|json|ion-koush|gson | 0 | 2016-05-06T06:36:11.397Z | 2,016 | 5 | 6 | 4 | 613 | 3 | 842 | 130 | 5 | 3 | true | false | false | false | false | false | zero |
37,065,857 | How to get time change broadcast even if app closed | <p>i have an app and it's important for me to detect time changes. so far i have receiver with proper intent filters like this:</p>
<pre class="lang-xml prettyprint-override"><code><receiver
android:name=".MyReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action an... | i have an app and it's important for me to detect time changes. so far i have receiver with proper intent filters like this: [CODE] and this is my receiver : [CODE] this receiver only works when the app is open\in-the-background . how can i make this receiver to work even if the app is closed? | java|android|broadcastreceiver|android-broadcast|android-broadcastreceiver | 0 | 2016-05-06T06:36:21.367Z | 2,016 | 5 | 6 | 4 | 498 | 1 | 294 | 51 | 5 | 2 | true | false | false | false | false | false | zero |
37,065,927 | while trying a chat application from a tutorial I am getting an error identifier expected in Chats.java | <pre><code>public class Chats extends Fragment implements OnClickListener {
private EditText msg_edittext;
private String user1 = "khushi", user2 = "khushi1";
private Random random;
public static ArrayList<ChatMessage> chatlist;
public static ChatAdapter chatAdapter;
ListView msgListView;
@Override
public View on... | [CODE] while trying a chat application from a tutorial I am getting an error identifier expected in Chats.java here is my code...I am getting error in these lines: [CODE] and [CODE] plz help me anyone | java|android | 0 | 2016-05-06T06:40:24.623Z | 2,016 | 5 | 6 | 4 | 184 | 0 | 200 | 103 | 2 | 3 | true | true | false | false | false | false | zero |
37,065,963 | Change color of a particular item in a listview as per the values from the database | <p>I have a fragment namely ScheduledFragment, in that fragment I have a custom listview. Am getting values from the server and inserting those values to list items. </p>
<pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View r... | I have a fragment namely ScheduledFragment, in that fragment I have a custom listview. Am getting values from the server and inserting those values to list items. [CODE] Am adding of the value to an arraylist. MyCustomCourseList adapter class getView() is shown below [CODE] Here am setting a color for my whole custom l... | android|date|listview|android-fragments | 0 | 2016-05-06T06:42:59.193Z | 2,016 | 5 | 6 | 4 | 276 | 2 | 767 | 83 | 4 | 2 | true | false | false | false | false | false | zero |
37,066,186 | Android Studio Event Listener mysteries (to me) (setOnClickEventListener) | <p>I am trying to learn android programming and I am stuck at one point, in terms of deeply understanding the concept. </p>
<p>So there is this code which listens the click event for a view (a button). Code is from a site by the way, and working just fine. But I am obsessed with understanding it to the nuts and bolts.... | I am trying to learn android programming and I am stuck at one point, in terms of deeply understanding the concept. So there is this code which listens the click event for a view (a button). Code is from a site by the way, and working just fine. But I am obsessed with understanding it to the nuts and bolts. [CODE] I ha... | java|android|android-studio|event-listener | 1 | 2016-05-06T06:58:21.513Z | 2,016 | 5 | 6 | 4 | 84 | 1 | 1,788 | 73 | 4 | 1 | true | false | false | false | false | false | low |
37,066,205 | upgrade Nexus 7 to android 6, my app cannot access to sdcard anymore | <p>I have developed an app, installed on Nexus 7 android 5, which shows list of files in a directory on sd card. After upgrade to Android 6, it canot access to sd card anymore!</p>
<p>Here my code:</p>
<pre><code> File f = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
String P... | I have developed an app, installed on Nexus 7 android 5, which shows list of files in a directory on sd card. After upgrade to Android 6, it canot access to sd card anymore! Here my code: [CODE] following permissions also added: [CODE] Logcat [CODE] EDIT 1 After File list[]=f.listFiles(); , list is null ! EDIT 2 I've c... | android|sd-card|android-6.0-marshmallow | 1 | 2016-05-06T06:59:22.930Z | 2,016 | 5 | 6 | 4 | 129 | 1 | 411 | 68 | 3 | 4 | true | false | false | false | false | false | low |
37,066,258 | Output file using FFmpeg in Xamarin Android | <p>I'm building an android app using Xamarin. The requirement of the app is to capture video from the camera and encode the video to send it across to a server. </p>
<p>Initially, I was using an encoder library on the server-side to encode recorded video but it was proving to be extremely unreliable and inefficient es... | I'm building an android app using Xamarin. The requirement of the app is to capture video from the camera and encode the video to send it across to a server. Initially, I was using an encoder library on the server-side to encode recorded video but it was proving to be extremely unreliable and inefficient especially for... | android|video|xamarin|ffmpeg | 8 | 2016-05-06T07:02:49.717Z | 2,016 | 5 | 7 | 4 | 4,800 | 2 | 1,481 | 43 | 4 | 2 | true | false | true | false | false | false | medium |
37,066,274 | onItemClicklistener in gridview is not working | <p>I have made a tabs in which I've used gridview to display images , <code>textviews</code>...I want to make listener...so that when user click on photo in <code>gridview</code> ..it moves to next activity thats is image_description activity.</p>
<p>This is the activity code.</p>
<pre><code>import android.content.In... | I have made a tabs in which I've used gridview to display images , textviews ...I want to make listener...so that when user click on photo in gridview ..it moves to next activity thats is image_description activity. This is the activity code. [CODE] Here is how it looks like | android|onitemclicklistener | 0 | 2016-05-06T07:03:59.663Z | 2,016 | 5 | 7 | 4 | 75 | 3 | 275 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
37,066,350 | refresh view in adapter class android | <p>i want to update textview when spinner item selection in adapter class but it show updation in wrong item's price . i have lost many time to solve this here is my code</p>
<pre><code> ArrayAdapter<String> adapter = new ArrayAdapter<String>(activity, android.R.layout.simple_dropdown_item_1line, arraylist... | i want to update textview when spinner item selection in adapter class but it show updation in wrong item's price . i have lost many time to solve this here is my code [CODE] | android | 0 | 2016-05-06T07:08:18.120Z | 2,016 | 5 | 7 | 4 | 107 | 1 | 174 | 37 | 1 | 1 | true | false | false | false | false | false | zero |
37,066,385 | How to put data into ListView of XML? | <p>I just started learning Android and I am trying to create a simple view where a portion of the main XML is a listview.</p>
<p>Here is my main.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match... | I just started learning Android and I am trying to create a simple view where a portion of the main XML is a listview. Here is my main.xml [CODE] Assuming that I have a function called getDatafromFile() which returns an ArrayList of data, how do I put those data into my listView? I've heard of using ArrayAdapter but th... | java|android|xml|listview | 0 | 2016-05-06T07:10:01.710Z | 2,016 | 5 | 7 | 4 | 210 | 2 | 376 | 37 | 4 | 1 | true | false | false | false | false | false | zero |
37,066,391 | Android IllegalStateException: Could not execute method of the activity. When launching a new activity | <p>I'm trying to launch another activity from a button click. I've seen this happen on another question where there were more than one intent filter attributes in the manifest file.</p>
<p>This is the Activity I'm trying to launch the second activity from</p>
<pre><code> public class MainMenu extends Activity{
... | I'm trying to launch another activity from a button click. I've seen this happen on another question where there were more than one intent filter attributes in the manifest file. This is the Activity I'm trying to launch the second activity from [CODE] The corresponding layout file [CODE] This is my manifest [CODE] | android | -1 | 2016-05-06T07:10:23.187Z | 2,016 | 5 | 7 | 4 | 20 | 1 | 316 | 102 | 1 | 3 | true | false | false | false | false | true | negative |
37,066,412 | EditText values in a RecyclerView gives same value after 5th position | <p>I have a <code>RecyclerView</code> and each row has a <code>EditText</code> also. I am adding item to <code>RecyclerView</code> by searching them and then I type the quantity in the edit text. Then I send it to the server to store using json format. Item add is working perfectly. There is no edit text value swapping... | I have a RecyclerView and each row has a EditText also. I am adding item to RecyclerView by searching them and then I type the quantity in the edit text. Then I send it to the server to store using json format. Item add is working perfectly. There is no edit text value swapping problem also when scrolling. I can displa... | android|scroll|android-edittext|android-recyclerview | 5 | 2016-05-06T07:11:31.497Z | 2,016 | 5 | 7 | 4 | 4,300 | 4 | 679 | 69 | 4 | 3 | true | false | true | false | false | false | low |
37,066,439 | populate json array in android spinner | <p>I am getting problem to parse json in android spinner. I have tried by below listed code but I am getting full json array in spinner like screenshot</p>
<p><img src="https://i.stack.imgur.com/2CFn0.png" alt="click to see result"></p>
<p><strong>My Json Array</strong></p>
<pre><code>{"Department":[{"1":"Computer"}... | I am getting problem to parse json in android spinner. I have tried by below listed code but I am getting full json array in spinner like screenshot My Json Array [CODE] My Code [CODE] | android|arrays|json|android-spinner | 2 | 2016-05-06T07:13:34.417Z | 2,016 | 5 | 7 | 4 | 1,225 | 4 | 184 | 38 | 4 | 2 | true | false | false | false | false | false | low |
37,066,463 | How to get data from HTTP requests and add to a single ListView? | <p>I am trying to get data from two different <strong>HTTP REQUESTS</strong> and add to a single list view for example.</p>
<p><a href="https://i.stack.imgur.com/MsM7c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MsM7c.png" alt="enter image description here"></a></p>
<p>In the above image i gett... | I am trying to get data from two different HTTP REQUESTS and add to a single list view for example. In the above image i getting the data from different HTTP REQUESTS and the images from different HTTP REQUESTS i want to use also the images as ViewPager in this Listview This is my code which i tried. [CODE] This is my ... | java|android|multithreading|listview|android-studio | 0 | 2016-05-06T07:14:53.413Z | 2,016 | 5 | 7 | 4 | 246 | 2 | 741 | 64 | 5 | 5 | true | false | false | false | false | false | zero |
37,066,489 | switching to another tab more than once gives EEROR | <p>i have a tabbed activity.
When i switch from tab1 to tab2 or 3,the app runs smooth.
Again i switch to tab1 and then switch to any other tab,the app crashes.</p>
<h2>Tabbed activity java code</h2>
<pre><code>public class MainActivity extends AppCompatActivity {
ViewPager vp;
TabLayout tab;
@Override
... | i have a tabbed activity. When i switch from tab1 to tab2 or 3,the app runs smooth. Again i switch to tab1 and then switch to any other tab,the app crashes. Tabbed activity java code [CODE] Error [CODE] i have a tabbed activity. When i switch from tab1 to tab2 or 3,the app runs smooth. Again i switch to tab1 and then s... | android|tabs|android-viewpager | 4 | 2016-05-06T07:16:20.707Z | 2,016 | 5 | 7 | 4 | 1,318 | 1 | 516 | 51 | 3 | 2 | true | false | false | false | false | false | low |
37,066,497 | Layout Binding integer value limit from 0 to 10 in android with databinding | <p>I am trying to set the limit of an integer with a minimum value of 0 and maximum of 10 in android with the help of databinding.
For that i have a bindable adapter which set the value of an integer with two listener one increase the value and the other decrease it. Now finally i wanted to set the limit of that intege... | I am trying to set the limit of an integer with a minimum value of 0 and maximum of 10 in android with the help of databinding. For that i have a bindable adapter which set the value of an integer with two listener one increase the value and the other decrease it. Now finally i wanted to set the limit of that integer, ... | android|data-binding|int|onclicklistener|android-databinding | 0 | 2016-05-06T07:16:45.763Z | 2,016 | 5 | 7 | 4 | 1,441 | 1 | 358 | 75 | 5 | 1 | true | false | false | false | false | false | zero |
37,066,562 | Android: back to Main Activity from transparent dialog activity , screen turns black? | <p>I'm trying to create a transparent dialog activity when I receive some notice.The dialog activity has an ok button,and if I click this it will return back to main activity with the flag: Intent.FLAG_ACTIVITY_CLEAR_TOP and Intent.FLAG_ACTIVITY_SINGLE_TOP.</p>
<p><strong><em>Problem</em></strong>
When I go back to ma... | I'm trying to create a transparent dialog activity when I receive some notice.The dialog activity has an ok button,and if I click this it will return back to main activity with the flag: Intent.FLAG_ACTIVITY_CLEAR_TOP and Intent.FLAG_ACTIVITY_SINGLE_TOP. Problem When I go back to main, the screen turns black for about ... | android|android-intent|transparent | 0 | 2016-05-06T07:19:48.453Z | 2,016 | 5 | 7 | 4 | 240 | 1 | 475 | 85 | 3 | 2 | true | false | false | false | false | false | zero |
37,066,617 | Failure INSTALL PARSE FAILED MANIFEST MALFORMED | <p>I am getting a strange issue while installing application.</p>
<p>When I compiling my project there is no error but when I trying to launch its shows me,</p>
<p>Installation error: <code>INSTALL_PARSE_FAILED_MANIFEST_MALFORMED</code> Error.</p>
<p>I have tried so many thing related Installation error: INSTALL_PA... | I am getting a strange issue while installing application. When I compiling my project there is no error but when I trying to launch its shows me, Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Error. I have tried so many thing related Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error and a... | android|android-manifest|phonegap-build|android-logcat | 10 | 2016-05-06T07:23:01.573Z | 2,016 | 5 | 7 | 4 | 31,860 | 10 | 373 | 47 | 4 | 1 | true | false | true | true | true | false | medium |
37,066,637 | Android Picasso - Save image locally before viewing it in ImageView | <p>I have made an app which shows a list of image. But before, I downloaded all the images to the sdcard, and I show a progress dialog with the number of downloaded files. I'm thinking to optimise the process using Picasso because of many images to download. So no progress dialog. With Picasso, I would like to save the... | I have made an app which shows a list of image. But before, I downloaded all the images to the sdcard, and I show a progress dialog with the number of downloaded files. I'm thinking to optimise the process using Picasso because of many images to download. So no progress dialog. With Picasso, I would like to save the im... | android|save|picasso | 1 | 2016-05-06T07:23:58.520Z | 2,016 | 5 | 7 | 4 | 583 | 1 | 1,000 | 67 | 3 | 4 | true | false | false | false | false | false | low |
37,066,662 | How to change the tabwidget color and tab text size in android studio? | <p>Hello guys I am working on an android project. I want to change the strip color of tab widget and also change the size of tab text. Please tell me solution how can I do this?
<a href="https://i.stack.imgur.com/mFtA5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mFtA5.jpg" alt="enter image descri... | Hello guys I am working on an android project. I want to change the strip color of tab widget and also change the size of tab text. Please tell me solution how can I do this? This is code: [CODE] | android|performance|android-layout|android-fragments|android-studio | 0 | 2016-05-06T07:25:11.613Z | 2,016 | 5 | 7 | 4 | 1,377 | 2 | 195 | 70 | 5 | 1 | true | false | false | false | false | false | zero |
37,066,670 | Multiple click events on expandablelistview's group element | <p>I have two question about expandablelistview click events on groupView's (not child)</p>
<ol>
<li><p>When i have child in my GroupView, i'm able to get the groupPosition using below snippet</p>
<p>expandableListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {</p>
<pre><code> @Overri... | I have two question about expandablelistview click events on groupView's (not child) When i have child in my GroupView, i'm able to get the groupPosition using below snippet expandableListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { [CODE] but when i don't have any child, Unfortunately '... | android|expandablelistview|expandablelistadapter | 0 | 2016-05-06T07:25:49.947Z | 2,016 | 5 | 7 | 4 | 1,788 | 1 | 1,117 | 59 | 3 | 3 | true | false | false | false | false | false | zero |
37,066,765 | UI Correct on Rendering, does not Appear for Device | <p>I am working on an App "Namaz Pro" using Xamarin.Android !</p>
<p>My Problem is that my App shows me my expected UI correctly upon rendering it to
Device : Nexus 4 inside Visual Studio. </p>
<p>I even tried Android Studio and it renders the UI as I want it :</p>
<p><a href="https://i.stack.imgur.com/hySJy.png" r... | I am working on an App "Namaz Pro" using Xamarin.Android ! My Problem is that my App shows me my expected UI correctly upon rendering it to Device : Nexus 4 inside Visual Studio. I even tried Android Studio and it renders the UI as I want it : However My Emulator A Nexus 4 on KitKat is unable to display the same : UPDA... | android|user-interface|xamarin|android-linearlayout|android-imageview | 0 | 2016-05-06T07:30:16.297Z | 2,016 | 5 | 7 | 4 | 86 | 1 | 371 | 51 | 5 | 1 | true | false | false | false | false | false | zero |
37,066,783 | How to attach three differet layout to adapter | <p>Can anyone tell me how to attached three different layout in adapter using holder and getItemViewType but m not able to get expecting result.Please look into my below code and suggest me.</p>
<p>I want to apply layout based on msg.mode, So how to use viewType + msg.mode. Currently m using only msg.mode to attached ... | Can anyone tell me how to attached three different layout in adapter using holder and getItemViewType but m not able to get expecting result.Please look into my below code and suggest me. I want to apply layout based on msg.mode, So how to use viewType + msg.mode. Currently m using only msg.mode to attached layout getV... | android | 0 | 2016-05-06T07:31:20.907Z | 2,016 | 5 | 7 | 4 | 50 | 0 | 352 | 46 | 1 | 1 | true | true | false | false | false | false | zero |
37,066,796 | How i can export Android code to java library in Android Studio | <p>I'm developing a library for an Android application, I wrote some classes that contains different functions.</p>
<p>I have a problem in the exporting process from Java to Jar. I did the following:</p>
<p>1) From an existing source code, File -> New module -> Java Library</p>
<p>2) Android Studio at this point cre... | I'm developing a library for an Android application, I wrote some classes that contains different functions. I have a problem in the exporting process from Java to Jar. I did the following: 1) From an existing source code, File -> New module -> Java Library 2) Android Studio at this point create a "sub project", with a... | java|android|json|gradle | 1 | 2016-05-06T07:31:57.067Z | 2,016 | 5 | 7 | 4 | 821 | 1 | 690 | 63 | 4 | 3 | true | false | false | false | false | false | low |
37,066,860 | The app is not showing multiple marker of my adresses on map, It only show marker of my current location | <p>I've just created Map on my android app. I have the list of addresses in my excel file and I save it as CSV file put it in res > raw. I have already read the CSV in my MapActivity. The problem is, when I run(App works fine) it only show marker of my current location but not showing the markers of my address list. Wh... | I've just created Map on my android app. I have the list of addresses in my excel file and I save it as CSV file put it in res > raw. I have already read the CSV in my MapActivity. The problem is, when I run(App works fine) it only show marker of my current location but not showing the markers of my address list. What ... | android|google-maps|csv|google-maps-api-3 | 1 | 2016-05-06T07:35:20.570Z | 2,016 | 5 | 7 | 4 | 67 | 0 | 608 | 104 | 4 | 3 | true | true | false | false | false | false | low |
37,066,986 | java.lang.StackOverflowError: stack size 8MB while Enabling/Disabling TextView#setTextIsSelectable in ListView Adapter | <p>I have an activity with <code>ListView</code> . Displaying the <code>TextView</code> in each list item. Switching the properties of selected position using these methods <code>EditText#setTextIsSelectable</code> , <code>EditText#setEllipsize</code> & <code>EditText#setSingleLine</code> . clicking on 1st item is ... | I have an activity with ListView . Displaying the TextView in each list item. Switching the properties of selected position using these methods EditText#setTextIsSelectable , EditText#setEllipsize & EditText#setSingleLine . clicking on 1st item is working good. But while clicking on another item I'm getting StackOverFl... | android|listview|textview | 9 | 2016-05-06T07:42:21.453Z | 2,016 | 5 | 7 | 4 | 28,151 | 5 | 593 | 118 | 3 | 3 | true | false | true | true | false | false | medium |
37,067,084 | Pass object from GridView of Fragment to ListView of another Fragment | <p>I have a GridView in FragmentA containing all objects. When the user tap on each object, these objects are added into ListView of FragmentB. </p>
<p>Note that FragmentA and FragmentB are both in the same Activity, side by side.</p>
<p>I have tried using Bundle to send object from FragmentA to FragmentB but I was s... | I have a GridView in FragmentA containing all objects. When the user tap on each object, these objects are added into ListView of FragmentB. Note that FragmentA and FragmentB are both in the same Activity, side by side. I have tried using Bundle to send object from FragmentA to FragmentB but I was stucked as I have no ... | java|android|listview|android-fragments|android-gridview | 0 | 2016-05-06T07:48:44.160Z | 2,016 | 5 | 7 | 4 | 56 | 1 | 659 | 69 | 5 | 3 | true | false | false | false | false | false | zero |
37,067,129 | Can't get access token in android using retrofit but works only in curl | <p>I have a problem with retrofit in android when I try to get the access token it doesn't work at all and I get "unauthorized 401" but using DHC byRESTlet I can get the access token without any problem.</p>
<p><a href="https://i.stack.imgur.com/DCWnT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | I have a problem with retrofit in android when I try to get the access token it doesn't work at all and I get "unauthorized 401" but using DHC byRESTlet I can get the access token without any problem. This is the interface I use : [CODE] and this is log error : [CODE] | android|oauth|retrofit|spring-data-rest|retrofit2 | 1 | 2016-05-06T07:52:14.477Z | 2,016 | 5 | 7 | 4 | 774 | 1 | 268 | 71 | 5 | 2 | true | false | false | false | false | false | low |
37,067,244 | Multiple items inside CoordinatorLayout with infinite scrolling | <p>I have <code>CoordinatorLayout</code>:</p>
<p></p>
<pre><code><android.support.design.widget.AppBarLayout
android:id="@+id/appbars"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:orientation="vertical"
app:elevation... | I have CoordinatorLayout : [CODE] There is InfinityListener added to the VerticalRecycleView . VerticalRecycleView has an endless scrolling. And it's works perfect. But if there is < 10 items in the list, the infinite listener is disabled and in this case I would like to show BottomView . But there is problem after rew... | android | 1 | 2016-05-06T08:00:34.153Z | 2,016 | 5 | 8 | 4 | 811 | 1 | 513 | 63 | 1 | 3 | true | false | false | false | false | false | low |
37,067,271 | Android Graphics: Drawing same size circles | <p>I have a major issue I am working on for days now. It is much understandable by looking at the requirement first. I will list down my requirement as simple as possible in point form below.</p>
<ol>
<li>I have 5 android phones. 5 different brands, different screen sizes.</li>
<li>Imagine the screen sizes are 4inch, ... | I have a major issue I am working on for days now. It is much understandable by looking at the requirement first. I will list down my requirement as simple as possible in point form below. I have 5 android phones. 5 different brands, different screen sizes. Imagine the screen sizes are 4inch, 4.5inch, 5inch, 5.1inch an... | android|canvas|ppi | 2 | 2016-05-06T08:02:20.553Z | 2,016 | 5 | 8 | 4 | 1,480 | 2 | 1,995 | 43 | 3 | 0 | false | false | false | false | false | false | low |
37,067,384 | How to check values in HashMap<String, String> and setBackgroundResource when record = value? | <p>I have just started coding an Android App using Android Studio 2.1 and my app was sort of an offline messaging - this is using SQLite Database (basically compose of two tables message and contact).</p>
<p>I am now in my last activity where I need to populate a list of message exchange from the contacts created. I w... | I have just started coding an Android App using Android Studio 2.1 and my app was sort of an offline messaging - this is using SQLite Database (basically compose of two tables message and contact). I am now in my last activity where I need to populate a list of message exchange from the contacts created. I was able to ... | android|listview|arraylist|hashmap|android-studio-2.1 | 0 | 2016-05-06T08:08:39.427Z | 2,016 | 5 | 8 | 4 | 161 | 1 | 854 | 93 | 5 | 2 | true | false | false | false | false | false | zero |
37,067,398 | app client (android java) - server (python) | <p>I need to establish a communication between an android application and a server in Python with sockets.</p>
<p>The client send a photo end the server reply with a string.</p>
<p>Here is my Server code:</p>
<pre><code>import socket
import os
import subprocess
s = socket.socket()
host = "10.255.20.186" # Get local... | I need to establish a communication between an android application and a server in Python with sockets. The client send a photo end the server reply with a string. Here is my Server code: [CODE] I was able to do it to communicate with a client in python but now I have to make the client in Android. How can I do? | java|android|python|sockets|client-server | 0 | 2016-05-06T08:09:22.377Z | 2,016 | 5 | 8 | 4 | 376 | 1 | 313 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
37,067,455 | concatenate MP4 videos with FFmpeg using concat demuxer in android | <p>I want to concatenate MP4 videos with FFmpeg, the problem is when I want to merge videos taken with Iphone and Android it throws problem:</p>
<blockquote>
<p>Non-monotonous DTS in output stream 0:1; previous: 150528, current: 139268; changing to 150529. This may result in incorrect timestamps in the output file.<... | I want to concatenate MP4 videos with FFmpeg, the problem is when I want to merge videos taken with Iphone and Android it throws problem: Non-monotonous DTS in output stream 0:1; previous: 150528, current: 139268; changing to 150529. This may result in incorrect timestamps in the output file. This is my code merge.txt ... | android|video|ffmpeg|concatenation|mp4 | 1 | 2016-05-06T08:12:58.857Z | 2,016 | 5 | 8 | 4 | 1,236 | 0 | 629 | 66 | 5 | 3 | true | true | false | false | false | false | low |
37,067,506 | Blurring ArcGIS map view | <p>I am trying to make some fancy design with some menu that would switch/configure visible layers of ArcGIS map.</p>
<p>I tried to use promising library: <a href="https://github.com/500px/500px-android-blur" rel="nofollow noreferrer">500px-android-blur</a> but I failed on blurring maps. Here is what the blur effect s... | I am trying to make some fancy design with some menu that would switch/configure visible layers of ArcGIS map. I tried to use promising library: 500px-android-blur but I failed on blurring maps. Here is what the blur effect should look like: I am attaching demo project which is my variation over 500px lib example (just... | android|maps|arcgis|blur|500px | 3 | 2016-05-06T08:16:16.030Z | 2,016 | 5 | 8 | 4 | 517 | 1 | 612 | 24 | 5 | 0 | false | false | false | false | false | false | low |
37,067,597 | Android Static BroadcastReceiver not working when Application is removed from Recent Tasks | <p>May I know if a statically-declared BroadcastReceiver is able to receive broadcasts, even when the App has been removed from Recent Tasks?</p>
<p>I am trying to listen to events broadcasted when a Bluetooth device has been connected.</p>
<p>AndroidManifest.xml</p>
<pre><code><uses-permission android:name="andr... | May I know if a statically-declared BroadcastReceiver is able to receive broadcasts, even when the App has been removed from Recent Tasks? I am trying to listen to events broadcasted when a Bluetooth device has been connected. AndroidManifest.xml [CODE] MyReceiver.java [CODE] Reference: Why BroadcastReceiver works even... | android|broadcastreceiver | 2 | 2016-05-06T08:22:20.733Z | 2,016 | 5 | 8 | 4 | 1,505 | 1 | 490 | 90 | 2 | 2 | true | false | false | false | false | false | low |
37,067,598 | Toggle button not working for navigation drawer for the first time | <p>I saw similar questions but answers are no use. That's why I post it.
Here is how I setup my Drawer at <code>FragmentDrawer.java</code>.</p>
<pre><code>public void setUp(int fragmentId, DrawerLayout drawerLayout, Toolbar toolbar) {
containerView = getActivity().findViewById(fragmentId);
mDrawerLayout = draw... | I saw similar questions but answers are no use. That's why I post it. Here is how I setup my Drawer at FragmentDrawer.java . [CODE] Here is onDrawerOpen method. [CODE] And call from MainActivity like this. [CODE] | android|navigation-drawer | 0 | 2016-05-06T08:22:22.633Z | 2,016 | 5 | 8 | 4 | 1,506 | 2 | 212 | 66 | 2 | 3 | true | false | false | false | false | false | zero |
37,067,737 | (Android) app:actionViewClass doesn't seem to show | <p>I was really wondering why i can't see the badge/counter at navigation drawer on the current build im working with. But on other build like newly created applicatoin with navigation activity it is showing. I followed Hari's blog: <a href="https://medium.com/@harivigneshjayapalan/android-adding-badge-or-count-to-the-... | I was really wondering why i can't see the badge/counter at navigation drawer on the current build im working with. But on other build like newly created applicatoin with navigation activity it is showing. I followed Hari's blog: https://medium.com/@harivigneshjayapalan/android-adding-badge-or-count-to-the-navigation-d... | android | 3 | 2016-05-06T08:30:18.600Z | 2,016 | 5 | 8 | 4 | 729 | 1 | 527 | 50 | 1 | 2 | true | false | false | false | false | false | low |
37,067,770 | Android: gradle DSL methdod not found | <p>I am importing an existing android project into the android studio.
But i will get the following error.</p>
<blockquote>
<p>INFO - radle.project.ProjectSetUpTask - Gradle DSL method not found:
'useLibrary()'<br>
INFO - ls.idea.gradle.GradleSyncState - Sync with
Gradle for project 'android' failed: Gradle DS... | I am importing an existing android project into the android studio. But i will get the following error. INFO - radle.project.ProjectSetUpTask - Gradle DSL method not found: 'useLibrary()' INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle for project 'android' failed: Gradle DSL method not found: 'useLibrary()' H... | java|android|cordova | 1 | 2016-05-06T08:31:41.480Z | 2,016 | 5 | 8 | 4 | 115 | 0 | 354 | 37 | 3 | 1 | true | true | false | false | false | false | low |
37,067,846 | Download image in GcmListenerService and post notification | <p>I am using a GcmReceiver with a listener that extends GcmListenerService.
In my onMessageReceived method, I want to download a remote image (using Picasso lib) and once the image has been downloaded, post a notification to the user.</p>
<p><strong>Code:</strong></p>
<pre><code>public class MainGcmListenerService e... | I am using a GcmReceiver with a listener that extends GcmListenerService. In my onMessageReceived method, I want to download a remote image (using Picasso lib) and once the image has been downloaded, post a notification to the user. Code: [CODE] This code works well most of the time, but sometimes the notification is n... | android|google-cloud-messaging|picasso|gcmlistenerservice | 1 | 2016-05-06T08:36:09.873Z | 2,016 | 5 | 8 | 4 | 293 | 1 | 624 | 58 | 4 | 1 | true | false | false | false | false | false | low |
37,067,917 | RxJava order of unsubscribe | <p>I am wondering if there is any possibility to control the order of <code>unsubscribe</code> callbacks, lets assume I have two instances of <code>google api</code>
the <code>client</code> and <code>location provider</code>, the <code>location provider</code> requires <code>client</code> in order to request updates. B... | I am wondering if there is any possibility to control the order of unsubscribe callbacks, lets assume I have two instances of google api the client and location provider , the location provider requires client in order to request updates. Both of them need to call either disconnect or removeCallbacks on unsubscription ... | android|rx-java|reactive-programming | 0 | 2016-05-06T08:39:32.020Z | 2,016 | 5 | 8 | 4 | 95 | 0 | 870 | 27 | 3 | 1 | true | true | false | false | false | false | zero |
37,067,953 | Fail to Log Out with google at my navigation drawer (menuitem) activity | <p>I'm making an app that allow user to login from my Main Activity and Log Out from Navigation activity using Facebook and Google+. Everything works fine with facebook. But with google once I Login, I cant logout.Im stuck at navigation activity. </p>
<p>I've already put </p>
<pre><code>if (mGoogleApiClient.isConnec... | I'm making an app that allow user to login from my Main Activity and Log Out from Navigation activity using Facebook and Google+. Everything works fine with facebook. But with google once I Login, I cant logout.Im stuck at navigation activity. I've already put [CODE] This is my Navigation activity [CODE] This is where ... | android|google-plus-signin | 1 | 2016-05-06T08:41:26.033Z | 2,016 | 5 | 8 | 4 | 733 | 0 | 402 | 71 | 2 | 3 | true | true | false | false | false | false | low |
37,068,000 | Import a .so lib in Unity that is created on Visual Studio 2015 | <p>I have to write a dynamic shared library for android (.so) and use it in Unity. I tried using the .so file that is exported from Android Studio when coding with JNI but Unity can't read the library.</p>
<pre><code>using UnityEngine;
using System.Runtime.InteropServices;
public class ShareApp : MonoBehaviour {
... | I have to write a dynamic shared library for android (.so) and use it in Unity. I tried using the .so file that is exported from Android Studio when coding with JNI but Unity can't read the library. [CODE] the error message Unity returns is: DllNotFoundException: SharedObject2 while the name of the library in unity's A... | android|unity3d|visual-studio-2015|shared-libraries|.so | 3 | 2016-05-06T08:44:17.017Z | 2,016 | 5 | 8 | 4 | 798 | 0 | 679 | 63 | 5 | 2 | true | true | false | false | false | false | low |
37,068,214 | AutoCompleteTextview with acronym | <p>I am VietNamese and i use Autocomplete TextView for my app with my language. I want to make AutoComplete TextView how can when i type in to AutoComplete TextView: "ban", it understand that i want to find: "bạn" or "bán" or "bàn". that mean: "a" character in my language can be understand: á or ạ or à. How can i do t... | I am VietNamese and i use Autocomplete TextView for my app with my language. I want to make AutoComplete TextView how can when i type in to AutoComplete TextView: "ban", it understand that i want to find: "bạn" or "bán" or "bàn". that mean: "a" character in my language can be understand: á or ạ or à. How can i do that.... | android|autocompletetextview|acronym | 1 | 2016-05-06T08:56:54.817Z | 2,016 | 5 | 8 | 4 | 143 | 1 | 327 | 33 | 3 | 1 | true | false | false | false | false | false | low |
37,068,303 | Error in Update Data using php and mysql in android | <p>In this example while inserting record in MySql database there is no problem but will update recode it give following <a href="http://i.stack.imgur.com/VQuDq.png" rel="nofollow">Error</a>
In <strong>EditProductActivity.java</strong> all records have to update .</p>
<p><strong>EditProductActivity.java</strong></p>
... | In this example while inserting record in MySql database there is no problem but will update recode it give following Error In EditProductActivity.java all records have to update . EditProductActivity.java [CODE] JSONParser.java [CODE] update_product.php [CODE] | php|android|mysql|json | 0 | 2016-05-06T09:01:22.587Z | 2,016 | 5 | 9 | 4 | 182 | 0 | 261 | 51 | 4 | 3 | true | true | false | false | false | false | zero |
37,068,624 | How to call JNI Function from a method in C library | <p>I'm currently developping an android app with android studio, for this project i need to use a custom library written in c/c++ .</p>
<p>So i in order to do that i needed to use NDK.
The library contain methods that i need to implements in order to have access to specifics fonctions in android</p>
<p>My question i... | I'm currently developping an android app with android studio, for this project i need to use a custom library written in c/c++ . So i in order to do that i needed to use NDK. The library contain methods that i need to implements in order to have access to specifics fonctions in android My question is : how can I call m... | android|android-ndk|java-native-interface | 2 | 2016-05-06T09:17:29.403Z | 2,016 | 5 | 9 | 4 | 3,800 | 0 | 1,509 | 51 | 3 | 11 | true | true | true | false | false | false | low |
37,068,659 | Xamarin.Forms application properties not saved between sessions with Android | <p>In my cross-platform app I save application properties in the following way:</p>
<pre><code>Application.Current.Properties["myValue"] = "Test";
await Application.Current.SavePropertiesAsync();
</code></pre>
<p>I then retrieve them later like this:</p>
<pre><code>string myVal = Application.Current.Properties["myVa... | In my cross-platform app I save application properties in the following way: [CODE] I then retrieve them later like this: [CODE] This works perfectly when using the Android emulator. I can close the emulator down, and when I restart it again, my app data is preserved. However, when I deploy this app to a physical Andro... | xamarin|xamarin.android|xamarin.forms | 4 | 2016-05-06T09:18:53.613Z | 2,016 | 5 | 9 | 4 | 7,128 | 5 | 871 | 76 | 3 | 2 | true | false | true | false | false | false | low |
37,068,676 | How to check if sound should be ducked? | <p>When we loose audio focus due to <code>AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK</code> we should reduce sound volume, untile audiofocus will be restored to <code>AudioManager.AUDIOFOCUS_GAIN</code>. However, it is fired if we registered listener before event.<br>
How to check if audio focus is in state <code>... | When we loose audio focus due to AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK we should reduce sound volume, untile audiofocus will be restored to AudioManager.AUDIOFOCUS_GAIN . However, it is fired if we registered listener before event. How to check if audio focus is in state AudioManager.AUDIOFOCUS_LOSS_TRANSIENT... | android|android-audiomanager | 0 | 2016-05-06T09:19:31.420Z | 2,016 | 5 | 9 | 4 | 101 | 1 | 414 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
37,068,677 | How to assign the textview value in to the button? | <p>I have a function which is actually set the name into the text view, and I have a button listener which is actually defined inside the <code>oncreate</code> method. All the names have a unique object id. I need to get the object id of the selected name into the <code>onclick</code> function of the button and this ob... | I have a function which is actually set the name into the text view, and I have a button listener which is actually defined inside the oncreate method. All the names have a unique object id. I need to get the object id of the selected name into the onclick function of the button and this object id is passing in the int... | javascript|android | -3 | 2016-05-06T09:19:32.023Z | 2,016 | 5 | 9 | 4 | 149 | 1 | 590 | 50 | 2 | 2 | true | false | false | false | false | true | negative |
37,068,754 | Twilio Android gradle error | <p>Hi I am trying to develop a Twilio SMS sending app and I have added all these things to build.gradle.This is my gradle.During app runing,I am getting </p>
<pre><code>`Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
</code></pre>
<blockquote>
<p>com.android.build.api.transform.T... | Hi I am trying to develop a Twilio SMS sending app and I have added all these things to build.gradle.This is my gradle.During app runing,I am getting [CODE] com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/org.apache.h... | android|android-studio|twilio | 1 | 2016-05-06T09:23:41.520Z | 2,016 | 5 | 9 | 4 | 526 | 2 | 984 | 27 | 3 | 3 | true | false | false | false | false | false | low |
37,068,790 | I/O Error On Post Request Spring Boot Rest Service In Android | <ol>
<li>I'm doing a Small android Application. In that I'm storing The user entered Information to my local data base With Http Rest Call.</li>
<li>There is nothing problem with the service It is working fine I tested In Browser and postman I'm able to Perform CRUD Operations through Postman Client.</li>
<li>But When ... | I'm doing a Small android Application. In that I'm storing The user entered Information to my local data base With Http Rest Call. There is nothing problem with the service It is working fine I tested In Browser and postman I'm able to Perform CRUD Operations through Postman Client. But When I try to POST OR GET From A... | java|android|spring|rest | 0 | 2016-05-06T09:25:25.160Z | 2,016 | 5 | 9 | 4 | 3,847 | 1 | 1,158 | 61 | 4 | 2 | true | false | true | false | false | false | zero |
37,068,834 | Post JSON Array to a webservice in android | <p>I am posting JSON Array to a webservice but i am unable to solve it.
In the below code "str" is the JSONArray converted to string.
JSONArray consists of JSONObjects and each JSONObject consists of 3 paramaters (ID,Question,Answer).</p>
<pre><code> ArrayList<NameValuePair> nameValuePairs = new ArrayList... | I am posting JSON Array to a webservice but i am unable to solve it. In the below code "str" is the JSONArray converted to string. JSONArray consists of JSONObjects and each JSONObject consists of 3 paramaters (ID,Question,Answer). [CODE] this is the error what i am getting [CODE] I want to pass below JSONArray to Webs... | android|json|post | 0 | 2016-05-06T09:27:39.233Z | 2,016 | 5 | 9 | 4 | 639 | 2 | 352 | 42 | 3 | 3 | true | false | false | false | false | false | zero |
37,068,857 | how to fix error gradle? | <p>I am using the Gradle build system bundled with Android Studio. So far, I am able to build multi-project setups using dependencies that are stored in my project structure. when i build my project. i have a error:</p>
<pre><code>Error:(37, 13) Failed to resolve: 'com.parse.bolts:bolts-android:1.+' Show in FileShow i... | I am using the Gradle build system bundled with Android Studio. So far, I am able to build multi-project setups using dependencies that are stored in my project structure. when i build my project. i have a error: [CODE] I try to insert mavenCentral(). but it's working: [CODE] build.gradle: [CODE] | android|android-studio|android-gradle-plugin | 0 | 2016-05-06T09:29:08.127Z | 2,016 | 5 | 9 | 4 | 473 | 1 | 297 | 24 | 3 | 3 | true | false | false | false | false | false | zero |
37,068,893 | How to pass value via Intent form 1st activity to third? | <p>I need to pass some value from 1st activity into the third. I already pass it form 1st to 2nd like this.</p>
<p>my 1st activity: (I do it in on create method)</p>
<pre><code>mainListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> pa... | I need to pass some value from 1st activity into the third. I already pass it form 1st to 2nd like this. my 1st activity: (I do it in on create method) [CODE] And I recieved it in 2nd activity like this: (I do it in on create method) [CODE] Now I need somehow pass it from 2nd activity to my third activity. In my 2nd ac... | android|android-intent | 0 | 2016-05-06T09:30:24.887Z | 2,016 | 5 | 9 | 4 | 623 | 4 | 604 | 56 | 2 | 2 | true | false | false | false | false | false | zero |
37,069,251 | Remove notification ongoing | <p>I'm building a music player for android. When running in background I want to disable swipe on notification as long as music is playing but when user pauses music swipe should be enabled. </p>
<p>I tried updating <code>setOnGoing(false)</code> from <code>setOnGoing(true)</code> on Notification builder when music is... | I'm building a music player for android. When running in background I want to disable swipe on notification as long as music is playing but when user pauses music swipe should be enabled. I tried updating setOnGoing(false) from setOnGoing(true) on Notification builder when music is paused but it doesn't seem to work. I... | android | 0 | 2016-05-06T09:47:43.360Z | 2,016 | 5 | 9 | 4 | 395 | 2 | 534 | 27 | 1 | 2 | true | false | false | false | false | false | zero |
37,069,259 | Evernote SDK: Authenticate to shared notebook | <p>I'm trying to gain access to shared notebook using Evernote Android SDK. I'm receiving shareKey via REST api from server side of the applicaiton. I'm using the code below: </p>
<pre><code>AuthenticationResult result = EvernoteSession.getInstance()
.getEvernoteClientFactory()
... | I'm trying to gain access to shared notebook using Evernote Android SDK. I'm receiving shareKey via REST api from server side of the applicaiton. I'm using the code below: [CODE] But when I call [CODE] it trows an exception [CODE] What I am doing wrong? How I can accept sharing and access to shared notebook's content? | android|evernote | 1 | 2016-05-06T09:48:05.190Z | 2,016 | 5 | 9 | 4 | 246 | 2 | 319 | 45 | 2 | 3 | true | 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.