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,147,947 | Value <br of type java.lang.String cannot be converted to JSONObject - android php | <p>I am developing an android registration activity
I'm using :
Android Studio
php
postgreSQL</p>
<p>this is the piece of code which is supposed to insert in the database </p>
<p>public void insert_in_Database(final String first_name,final String last_name, final String username, final String password, final String ... | I am developing an android registration activity I'm using : Android Studio php postgreSQL this is the piece of code which is supposed to insert in the database public void insert_in_Database(final String first_name,final String last_name, final String username, final String password, final String email, final String p... | php|android|json|string|postgresql | -1 | 2016-05-10T20:04:16.017Z | 2,016 | 5 | 20 | 1 | 2,349 | 1 | 483 | 82 | 5 | 4 | true | false | false | false | false | true | negative |
37,148,210 | TextView and EditText not rendering in Android layout | <p>I'm trying to create a simple game, but I'm having a problem with the layout. Below is my Xml code, I don't have any errors but when I try to run it the (text view_bet one and edit text bet two don't appear in the emulator, both of them should appear in the bottom of emulator. Any help is appreciated.</p>
<p>XML co... | I'm trying to create a simple game, but I'm having a problem with the layout. Below is my Xml code, I don't have any errors but when I try to run it the (text view_bet one and edit text bet two don't appear in the emulator, both of them should appear in the bottom of emulator. Any help is appreciated. XML code [CODE] | android|xml|android-layout|android-edittext|textview | 0 | 2016-05-10T20:20:49.223Z | 2,016 | 5 | 20 | 1 | 156 | 1 | 318 | 53 | 5 | 1 | true | false | false | false | false | false | zero |
37,148,216 | Stop current audio file to prevent multiple files simultaneously | <p>I'm trying to make a sort of soundboard app in Android Studio. For now I have three buttons: 2 of them play specific audio files and the other one stops the audio. Everything works except if you play one audio file while another one is going already they both play at the same time and the stop button no longer works... | I'm trying to make a sort of soundboard app in Android Studio. For now I have three buttons: 2 of them play specific audio files and the other one stops the audio. Everything works except if you play one audio file while another one is going already they both play at the same time and the stop button no longer works on... | java|android|audio | 1 | 2016-05-10T20:21:04.783Z | 2,016 | 5 | 20 | 1 | 392 | 1 | 474 | 64 | 3 | 1 | true | false | false | false | false | false | low |
37,148,247 | Views in my recyclerView is not in center on all phones? | <p>I have a very irritating problem with my views. As you see on a galaxy S7 my views is perfectly in center, but on a galaxy S4 mini they are placed down at the bottom!</p>
<p>I have tried to change alot in XML without any succses. I think it may be of the way I designet the whole thing with recyclerview, tabviews et... | I have a very irritating problem with my views. As you see on a galaxy S7 my views is perfectly in center, but on a galaxy S4 mini they are placed down at the bottom! I have tried to change alot in XML without any succses. I think it may be of the way I designet the whole thing with recyclerview, tabviews etc. The foll... | android|xml | 0 | 2016-05-10T20:22:41.343Z | 2,016 | 5 | 20 | 1 | 26 | 1 | 553 | 56 | 2 | 4 | true | false | false | false | false | false | zero |
37,148,251 | xamarin android viewpager fragments not getting refreshed | <p>I'm using this sample to create a simple app, it's made by Joshep Raco (JoeRock11) </p>
<p><a href="https://github.com/JoeRock11/Xamarin_DesignLibrary" rel="nofollow">https://github.com/JoeRock11/Xamarin_DesignLibrary</a></p>
<p>I have a problem, I was working with this sample to create a tabbed app, and I found ... | I'm using this sample to create a simple app, it's made by Joshep Raco (JoeRock11) https://github.com/JoeRock11/Xamarin_DesignLibrary I have a problem, I was working with this sample to create a tabbed app, and I found an strange behavior, when the app is starting only the fragment1 and fragment2 loads , but not the fr... | android|android-fragments|xamarin|android-viewpager | -1 | 2016-05-10T20:22:48.247Z | 2,016 | 5 | 20 | 1 | 423 | 1 | 1,048 | 57 | 4 | 0 | false | false | false | false | false | true | negative |
37,148,370 | How can I modify an Android SimpleCursorAdapter to use a different layout depending on data from the database? | <p>My android app has a simple chat function. The chats are stored in the on-board SQLite database. I am using a ListView with a SimpleCursorAdapter to display the chats. This is what I have:</p>
<pre><code>public class Chat extends Fragment {
private View rootView;
@Override
public View onCreateView(Layo... | My android app has a simple chat function. The chats are stored in the on-board SQLite database. I am using a ListView with a SimpleCursorAdapter to display the chats. This is what I have: [CODE] I have a chat model that has a boolean, named localFlag, as one of its fields. If the chat is sent from the device, localFla... | android|listview|simplecursoradapter | 0 | 2016-05-10T20:29:23.057Z | 2,016 | 5 | 20 | 1 | 256 | 2 | 725 | 110 | 3 | 4 | true | false | false | false | false | false | zero |
37,148,435 | Android Gps app not as accurate as google maps app | <p>i am developing an app that needs to know your location at all times. I understand that the location accuracy is not perfect and i believe ive tried everything i found in google developers help, stackoverflow, etc...</p>
<p>The problem i have is the following:
In some places the location i get is not as accurate as... | i am developing an app that needs to know your location at all times. I understand that the location accuracy is not perfect and i believe ive tried everything i found in google developers help, stackoverflow, etc... The problem i have is the following: In some places the location i get is not as accurate as the one yo... | android|gps|location|maps | 0 | 2016-05-10T20:32:25.867Z | 2,016 | 5 | 20 | 1 | 173 | 0 | 1,026 | 50 | 4 | 1 | true | true | false | false | false | false | zero |
37,148,582 | AsyncTask android exception (Cannot execute task: the task has already been executed) | <p>I have java.lang.IllegalStateException: Cannot execute task: the task has already been executed (a task can be executed only once) although I create a new instance of AsyncTask like this</p>
<pre><code>new ClientEngine(ip, port).execute(WindowsEventsEnum.MouseLeftButtonClick);
</code></pre>
<p>Here is my code</p>... | I have java.lang.IllegalStateException: Cannot execute task: the task has already been executed (a task can be executed only once) although I create a new instance of AsyncTask like this [CODE] Here is my code [CODE] | java|android|android-asynctask | 8 | 2016-05-10T20:41:31.300Z | 2,016 | 5 | 20 | 1 | 5,588 | 1 | 216 | 85 | 3 | 2 | true | false | true | false | false | false | medium |
37,148,624 | Does not opens SignInActivity upon button click | <p>I used <strong>Shared Preferences</strong> so that after first time SignIn, the next time when user starts the app the SignInActivity should not open. Before using <strong>Shared Preferences</strong> <strong>"onClickbuttonListener"</strong> worked well and opened the SignInActivity, but later I removed Sharedprefere... | I used Shared Preferences so that after first time SignIn, the next time when user starts the app the SignInActivity should not open. Before using Shared Preferences "onClickbuttonListener" worked well and opened the SignInActivity, but later I removed Sharedpreferences code after which clicking Button doesn't opens Si... | android | -2 | 2016-05-10T20:43:27.627Z | 2,016 | 5 | 20 | 1 | 77 | 1 | 477 | 47 | 1 | 2 | true | false | false | false | false | true | negative |
37,148,732 | New activity from intent | <p>I have fragment with button with intent for Gallery</p>
<pre><code>@Override
public void onClick(View v) {
switch (v.getId()){
//если выбрали галерею
case R.id.b_gallery:
Intent intentGallery = new Intent(Intent.ACTION_PICK);
intentGallery.setType("image/*");
... | I have fragment with button with intent for Gallery [CODE] Then I choose any photo and receive URI. I have to show chosen photo in new activity. In fragment i do: [CODE] In new activity i do: [CODE] But after i choose photo Gallery just close and i again get my fragment. Where is my decision? My AndroidManifest has: [C... | android|android-fragments|android-intent|android-gallery | 0 | 2016-05-10T20:50:41.980Z | 2,016 | 5 | 20 | 1 | 60 | 1 | 324 | 24 | 4 | 4 | true | false | false | false | false | false | zero |
37,148,792 | ionic emulate not working connection error timed out | <p>ionic serve is working just fine</p>
<p>i tired all what i can find of emulate combinations:<br>
ionic emulate (with or without android) (-c -l) or (-cls) is not working</p>
<p>I get popup alert<br>
Application error: The connection to the server was unsuccessful(<a href="http://192.168.42.94:8100" rel="nofollow">... | ionic serve is working just fine i tired all what i can find of emulate combinations: ionic emulate (with or without android) (-c -l) or (-cls) is not working I get popup alert Application error: The connection to the server was unsuccessful( http://192.168.42.94:8100 ) THEN Application error: net:ERR_CONNECTION_TIMED_... | ionic-framework|android-emulator | 0 | 2016-05-10T20:54:15.500Z | 2,016 | 5 | 20 | 1 | 718 | 0 | 968 | 52 | 2 | 0 | false | true | false | false | false | false | zero |
37,148,798 | How can I update the TextView in Fragment when I click in a button? | <p>I have a fragment with the respective code:</p>
<pre><code>public class Fragment1 extends Fragment {
public static Fragment1 newInstance() {
Fragment1 fragment = new Fragment1();
return fragment;
}
public Fragment1() {
// Deve existir um construtor vazio
// na classe que estende um Fragment
}
@Ov... | I have a fragment with the respective code: [CODE] In my MainActivity, I do this: [CODE] And in the onClick, I do [CODE] I try to update my Textview from the method changeText() But when I click on the button and this method is called, my application crashes.Can someone help me ? Thanks. | android|android-fragments|fragment | -2 | 2016-05-10T20:54:24.210Z | 2,016 | 5 | 20 | 1 | 957 | 4 | 288 | 67 | 3 | 3 | true | false | false | false | false | true | negative |
37,148,889 | leakcanary stacktrace hard to understand | <p>I have the below stack trace from leak canary with which I am not sure how my Activity is getting leaked</p>
<pre><code>static LGCobtextHelper.mLGContext
references LGContext.mContext
references
ResourcesContextWrapperFactory$WebViewContextWrapper.mBase
references
com.*.*.activity.MyActivity.networkMonitor
referenc... | I have the below stack trace from leak canary with which I am not sure how my Activity is getting leaked [CODE] MyActivity extends BaseActivity , which registers onResume() and unregisters onPause() , so not sure which leaks the activity NetworkMonitor.java [CODE] | android|leakcanary | 1 | 2016-05-10T20:59:43.767Z | 2,016 | 5 | 20 | 1 | 702 | 1 | 264 | 40 | 2 | 2 | true | false | false | false | false | false | low |
37,148,995 | Mapbox offline region - cannot view the saved map area | <p>From version 4.0.0 Mapbox introduced the <a href="https://www.mapbox.com/help/mobile-offline/" rel="nofollow">ability to download offline regions</a> to their Android SDK. I'm trying to make use of this functionality in the following way:</p>
<ol>
<li>Download the visible part of the map as an offline region when I... | From version 4.0.0 Mapbox introduced the ability to download offline regions to their Android SDK. I'm trying to make use of this functionality in the following way: Download the visible part of the map as an offline region when I am online, Close the app, A few days later and without network connectivity, open the app... | android|mapbox|offline | 0 | 2016-05-10T21:06:51.587Z | 2,016 | 5 | 21 | 1 | 1,099 | 2 | 1,314 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
37,149,050 | How often is SQL database in Android app updated | <p>I am new to working with sql databases with apps.</p>
<p>I created an app that updates an SQL database in real time with information from the user's phone (such as location). The app stops storing this data when the app is stopped. However when I extract the database (by backing up the app files into a tar file usi... | I am new to working with sql databases with apps. I created an app that updates an SQL database in real time with information from the user's phone (such as location). The app stops storing this data when the app is stopped. However when I extract the database (by backing up the app files into a tar file using adb back... | android|mysql|sql|database|sqlite | 0 | 2016-05-10T21:10:21.207Z | 2,016 | 5 | 21 | 1 | 166 | 1 | 1,110 | 48 | 5 | 1 | true | false | false | false | false | false | zero |
37,149,183 | Ambiguous results from Espresso on a fairly basic test | <p>We have a page that in a sense acts like email. So we have a Recyclerview with a bunch of TextViews, one of them being a large TextView containing all the email content.</p>
<p>So we are just trying to test that the entire text of the email is loaded and displayed (we append a special string at the end and we are ... | We have a page that in a sense acts like email. So we have a Recyclerview with a bunch of TextViews, one of them being a large TextView containing all the email content. So we are just trying to test that the entire text of the email is loaded and displayed (we append a special string at the end and we are going to tes... | android|unit-testing|android-espresso | 3 | 2016-05-10T21:21:14.663Z | 2,016 | 5 | 21 | 1 | 1,272 | 2 | 568 | 54 | 3 | 4 | true | false | false | false | false | false | low |
37,149,297 | How to handle two buttons pressed event at the same time in android | <p>I have developing an <code>android</code> app to rc car over wifi.I have used <code>esp8266 nodemcu</code> wifi module for this purpose. In my app. there are 4 buttons which are forward,reverse,right and left. I can connect this module over wifi and do some basic operations for ex. move forward, move reverse,turn ri... | I have developing an android app to rc car over wifi.I have used esp8266 nodemcu wifi module for this purpose. In my app. there are 4 buttons which are forward,reverse,right and left. I can connect this module over wifi and do some basic operations for ex. move forward, move reverse,turn right,turn left. Here are the c... | android|android-asynctask|esp8266|nodemcu | 1 | 2016-05-10T21:30:02.123Z | 2,016 | 5 | 21 | 1 | 679 | 1 | 645 | 67 | 4 | 1 | true | false | false | false | false | false | low |
37,149,790 | Proper use of Observable (RxJava) | <p>I am already using <code>RxJava</code> + <code>Retrofit</code> + <code>EventBus</code>. It works great! </p>
<p>But I'am not fully understand how to use Rx <code>Observable</code> as simple <code>AsyncTask</code>.</p>
<p>I wil explain a bit:</p>
<p>For example i have a method, which i want to do in background( no... | I am already using RxJava + Retrofit + EventBus . It works great! But I'am not fully understand how to use Rx Observable as simple AsyncTask . I wil explain a bit: For example i have a method, which i want to do in background( not in UI thread): [CODE] When this method will be completed i want switch to main thread and... | android|android-asynctask|rx-java|observable|rx-android | 0 | 2016-05-10T22:08:04.767Z | 2,016 | 5 | 22 | 1 | 331 | 2 | 701 | 33 | 5 | 1 | true | false | false | false | false | false | zero |
37,149,805 | Mapbox Android: How to get directions from current location to a destination you choose? | <p>Okay so I am fairly new to Mapbox, I have used GMaps prior to this but I found that Mapbox is more capable of doing what I need, the problem is I have hit a bit of a wall.</p>
<p>I have used a combination of the examples available on their site e.g.</p>
<p><a href="https://www.mapbox.com/android-sdk/examples/geoco... | Okay so I am fairly new to Mapbox, I have used GMaps prior to this but I found that Mapbox is more capable of doing what I need, the problem is I have hit a bit of a wall. I have used a combination of the examples available on their site e.g. https://www.mapbox.com/android-sdk/examples/geocoding and https://www.mapbox.... | java|android|dictionary|mapbox|directions | 1 | 2016-05-10T22:09:11.663Z | 2,016 | 5 | 22 | 1 | 6,479 | 1 | 1,030 | 88 | 5 | 1 | true | false | true | false | false | false | low |
37,150,064 | broadcaster permission for android.net.conn.CONNECTIVITY_CHANGE | <p>I recently did a code scan on my Android source code using HPFortify service. They reported security vulnerability regarding one of the broadcast receivers. They suggested to use the broadcaster permission to reduce the attack vector. This way you are restricting broadcaster, otherwise any malicious application can ... | I recently did a code scan on my Android source code using HPFortify service. They reported security vulnerability regarding one of the broadcast receivers. They suggested to use the broadcaster permission to reduce the attack vector. This way you are restricting broadcaster, otherwise any malicious application can sen... | android|android-permissions|android-broadcastreceiver | 1 | 2016-05-10T22:37:38.993Z | 2,016 | 5 | 22 | 1 | 618 | 1 | 592 | 63 | 3 | 2 | true | false | false | false | false | false | low |
37,150,113 | Android - Getting Img Uri from file in drawable | <p>I'm completely new to Java programming but I have to implement the following share for Facebook Messenger Expression Apps, my issue right now is that I don't know how to get an image from my drawable. How could it be done?</p>
<p>This code triggers on a onclick of a button. The image is on my drawable its called im... | I'm completely new to Java programming but I have to implement the following share for Facebook Messenger Expression Apps, my issue right now is that I don't know how to get an image from my drawable. How could it be done? This code triggers on a onclick of a button. The image is on my drawable its called img.png [CODE... | android|facebook | 0 | 2016-05-10T22:41:03.040Z | 2,016 | 5 | 22 | 1 | 1,010 | 3 | 321 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
37,150,242 | How do I set the construtor value from a textfield | <p>This is the code to get date format</p>
<pre><code>GregorianCalendar calDate = new GregorianCalendar();
</code></pre>
<p>The constructor will hold value of format as 2015,7,15
what I want to achieve is to be able to set this format from a text field. For example </p>
<pre><code>GregorianCalendar calDate = new Gre... | This is the code to get date format [CODE] The constructor will hold value of format as 2015,7,15 what I want to achieve is to be able to set this format from a text field. For example [CODE] But I have errors and is not working. Please whats is right code? Resolved with the below code [CODE] and dd was in TimeInMillis... | java|android | 0 | 2016-05-10T22:54:42.373Z | 2,016 | 5 | 22 | 1 | 52 | 1 | 345 | 50 | 2 | 3 | true | false | false | false | false | false | zero |
37,150,287 | How to access Kivy screens manager.<property> using Python | <p>Background: I have been learning Python - and through it - Kivy, by making an app. I have been using the .kv file and Builder.load_string methods to create my graphics, but have decided to try using solely python, and moving all of my layouts over into python.</p>
<p>The Problem: When I began using screens, I was u... | Background: I have been learning Python - and through it - Kivy, by making an app. I have been using the .kv file and Builder.load_string methods to create my graphics, but have decided to try using solely python, and moving all of my layouts over into python. The Problem: When I began using screens, I was unable to bi... | android|python|screen|kivy | 0 | 2016-05-10T22:59:41.400Z | 2,016 | 5 | 22 | 1 | 1,082 | 1 | 753 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
37,150,303 | Android Databinding Compile Warning: Method references using '.' is deprecated | <p>I see the following compiler warning when building my project:</p>
<p><code>warning: Method references using '.' is deprecated. Instead of 'item.onCardClicked', use 'item::onCardClicked'</code></p>
<p>I am using android plugin for gradle 2.1.0.</p>
<p>My layout file looks like the following:</p>
<pre><code><l... | I see the following compiler warning when building my project: warning: Method references using '.' is deprecated. Instead of 'item.onCardClicked', use 'item::onCardClicked' I am using android plugin for gradle 2.1.0. My layout file looks like the following: [CODE] Can someone point me to the right direction to resolve... | android|android-gradle-plugin|android-databinding | 10 | 2016-05-10T23:00:52.303Z | 2,016 | 5 | 23 | 1 | 2,347 | 1 | 334 | 78 | 3 | 1 | true | false | false | false | true | false | medium |
37,150,358 | watchPosition do not reset highaccuracy after clearwatch | <p>I'm using watchPosition on a small application and I'm using both high accuracy positioning (GPS) and Coarse Positioning (Network based) to limit battery consumption.</p>
<p>To enable coarse positioning, I use following command : </p>
<pre><code>watchID = navigator.geolocation.watchPosition(onSuccess, onError, { e... | I'm using watchPosition on a small application and I'm using both high accuracy positioning (GPS) and Coarse Positioning (Network based) to limit battery consumption. To enable coarse positioning, I use following command : [CODE] and To enable Fine Positioning : [CODE] To reset watching, I using clearWatch : [CODE] Str... | android|cordova|gps | 1 | 2016-05-10T23:07:30.090Z | 2,016 | 5 | 23 | 1 | 231 | 0 | 522 | 56 | 3 | 5 | true | true | false | false | false | false | low |
37,150,455 | Using RecyclerView with GridLayoutManager to add dynamic buttons to a layout | <p>I am adding dynamic imagebuttons to a layout in a Fragment using recyclerview with gridlayoutmanager. The buttons are added as a user performs an action, so they are not all created during onCreateView(). </p>
<p>I seem to have to initialize my recycler view and adapter onCreateView() with a an empty imagebutton, w... | I am adding dynamic imagebuttons to a layout in a Fragment using recyclerview with gridlayoutmanager. The buttons are added as a user performs an action, so they are not all created during onCreateView(). I seem to have to initialize my recycler view and adapter onCreateView() with a an empty imagebutton, when my app s... | java|android|button|dynamic|android-recyclerview | 0 | 2016-05-10T23:17:17.463Z | 2,016 | 5 | 23 | 1 | 719 | 1 | 1,158 | 76 | 5 | 3 | true | false | false | false | false | false | zero |
37,150,656 | Android SurfaceView in Custom Class | <p>So I keep running into a NullPointerException with a project I am doing in Android Studio. I need to get an image to show up in a custom class I'm calling DrawSurface. I just can't seem to find anything that relates to my issue. I've checked various previous questions and watched so many videos.</p>
<p>The error I'... | So I keep running into a NullPointerException with a project I am doing in Android Studio. I need to get an image to show up in a custom class I'm calling DrawSurface. I just can't seem to find anything that relates to my issue. I've checked various previous questions and watched so many videos. The error I'm thrown lo... | android|surfaceview | 1 | 2016-05-10T23:37:18.963Z | 2,016 | 5 | 23 | 1 | 658 | 2 | 762 | 35 | 2 | 2 | true | false | false | false | false | false | low |
37,150,675 | Android Textview with width 0 is forcing content to disappear below it | <p>I have a TextView whose width should not exceed the ImageView above it. Both image and text are downloaded from server and I don't know their dimensions (can't make assumptions either). I went through the logic to wrap the text content using <a href="https://stackoverflow.com/questions/2197744/android-textview-text-... | I have a TextView whose width should not exceed the ImageView above it. Both image and text are downloaded from server and I don't know their dimensions (can't make assumptions either). I went through the logic to wrap the text content using this SO post. Here is my layout XML [CODE] With this code, the TextView at the... | android|android-layout | -1 | 2016-05-10T23:38:54.070Z | 2,016 | 5 | 23 | 1 | 793 | 2 | 1,799 | 70 | 2 | 1 | true | false | false | false | false | true | negative |
37,150,902 | Clear the contents of an EditText Field once button is pressed | <p>I am creating a simple app which automatically triggers a button <code>b</code> once the contents of an <code>EditText</code> field called <code>a</code> contains a key phrase. I am wanting to clear the contents of the edit text field automatically say after 2 seconds. Is there a easy way to implement this into my... | I am creating a simple app which automatically triggers a button b once the contents of an EditText field called a contains a key phrase. I am wanting to clear the contents of the edit text field automatically say after 2 seconds. Is there a easy way to implement this into my code below? [CODE] Additionally, due to usi... | android|listview|android-studio|android-edittext|android-handler | 1 | 2016-05-11T00:03:29.980Z | 2,016 | 5 | 0 | 2 | 1,005 | 1 | 627 | 62 | 5 | 1 | true | false | false | false | false | false | low |
37,150,933 | enabling check box to deactivate sound in android | <p>Iam creating a simple game in android,when l opn app and the sound is starting ,l am want to deactivate the sound with check box, it can deactivate and it shows that music deactivated but the music still on, any help is appreciated.</p>
<pre><code>public class Setting extends Activity {
public static MediaPlayer... | Iam creating a simple game in android,when l opn app and the sound is starting ,l am want to deactivate the sound with check box, it can deactivate and it shows that music deactivated but the music still on, any help is appreciated. [CODE] | android|checkbox|soundpool|android-sharedpreferences | 1 | 2016-05-11T00:06:53.907Z | 2,016 | 5 | 0 | 2 | 252 | 1 | 239 | 49 | 4 | 1 | true | false | false | false | false | false | low |
37,150,975 | Adding Dynamic Buttons to different layouts for phone and tablet using RecyclerView with GridLayoutManager | <p>I am adding dynamic buttons to a layout. Each button is added one at a time, and the layout must update itself if new buttons were added based on a user's action. So the layout could have 3 buttons, or 16, or whatever, depending on the user's action. And the buttons can be added at different times. So if the user op... | I am adding dynamic buttons to a layout. Each button is added one at a time, and the layout must update itself if new buttons were added based on a user's action. So the layout could have 3 buttons, or 16, or whatever, depending on the user's action. And the buttons can be added at different times. So if the user opens... | java|android|dynamic|android-recyclerview|grid-layout | 3 | 2016-05-11T00:11:18.230Z | 2,016 | 5 | 0 | 2 | 293 | 1 | 1,531 | 106 | 5 | 6 | true | false | false | false | false | false | low |
37,150,995 | camera2 will crash if SurfaceView size is not one of the supported sizes | <p>When using a SurfaceHolder/SurfaceView for configuring a CaptureSession, I expected that the SurfaceView can have any layout size, while I set a good preview size with the same aspect ratio for it by surfaceView.getHolder().setFixedSize(preview_width, preview_height). The result should be that the incoming preview b... | When using a SurfaceHolder/SurfaceView for configuring a CaptureSession, I expected that the SurfaceView can have any layout size, while I set a good preview size with the same aspect ratio for it by surfaceView.getHolder().setFixedSize(preview_width, preview_height). The result should be that the incoming preview buff... | android|android-camera|surfaceview|android-camera2 | 2 | 2016-05-11T00:14:09.557Z | 2,016 | 5 | 0 | 2 | 4,611 | 1 | 1,235 | 72 | 4 | 3 | true | false | true | false | false | false | low |
37,151,021 | Using several builds error occurs INSTALL_FAILED_CONFLICTING_PROVIDER | <p>I have the following structure gradle:</p>
<pre><code>productFlavors {
main {
applicationId = "com.mayapp.main"
minSdkVersion 16
targetSdkVersion 23
versionCode 5
versionName '2.0'
}
free {
applicationId = "com.mayapp.fr... | I have the following structure gradle: [CODE] In the main build own the only manifest file, it this provider of Facebook. [CODE] But when trying to install another build for example the free presents a INSTALL_FAILED_CONFLICTING_PROVIDER error. How can I resolve this conflict since all builds use the same id of Faceboo... | android|facebook|manifest | 0 | 2016-05-11T00:17:53.610Z | 2,016 | 5 | 0 | 2 | 85 | 2 | 322 | 69 | 3 | 2 | true | false | false | false | false | false | zero |
37,151,096 | CheckedTextView using drawableleft showing 2 checkboxes | <p>I searched some and some guys said to use this</p>
<pre><code>android:drawableLeft="?android:attr/listChoiceIndicatorSingle"
</code></pre>
<p>I have the following layout code:</p>
<pre><code><CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
andro... | I searched some and some guys said to use this [CODE] I have the following layout code: [CODE] Doesnt change at all if i remove the lines [CODE] I used this and got the following result: Result Edit: I am trying to make it appears in the left side... | android|xml|layout|checkedtextview | 1 | 2016-05-11T00:26:01.907Z | 2,016 | 5 | 0 | 2 | 699 | 1 | 250 | 55 | 4 | 3 | true | false | false | false | false | false | low |
37,151,118 | How to send data to another fragment in one activity? | <p>How to send data to another fragment in one activity?</p>
<p>I have two fragment that have been created using Android Studio Design View Editor. I ccreated these two fragment on my MainActivity. fragment1 is the ID of first fragment, it contain just EditText and a button. fragment2 is the ID of second fragment, it ... | How to send data to another fragment in one activity? I have two fragment that have been created using Android Studio Design View Editor. I ccreated these two fragment on my MainActivity. fragment1 is the ID of first fragment, it contain just EditText and a button. fragment2 is the ID of second fragment, it just contai... | android|android-fragments | -1 | 2016-05-11T00:30:11.197Z | 2,016 | 5 | 0 | 2 | 213 | 1 | 856 | 53 | 2 | 4 | true | false | false | false | false | true | negative |
37,151,134 | Android - Custom View - Extending EditText with Views on Top | <p>I'm trying to figure out a good solution on how to extend EditText to allow me to have other Views layered on top. I am trying to make a custom View that is an EditText that has a TextView on top to display the number of characters, and an ImageView on top for a clear button.</p>
<p>Currently, I have it working wit... | I'm trying to figure out a good solution on how to extend EditText to allow me to have other Views layered on top. I am trying to make a custom View that is an EditText that has a TextView on top to display the number of characters, and an ImageView on top for a clear button. Currently, I have it working with extending... | java|android|android-edittext|android-custom-view|butterknife | 1 | 2016-05-11T00:31:57.860Z | 2,016 | 5 | 0 | 2 | 4,508 | 1 | 669 | 60 | 5 | 2 | true | false | true | false | false | false | low |
37,151,160 | Error converting a array of objects in JSON file on Android | <p>I have a JSON file that comes from a rest API in wordpress which has a kind custom post with two records of users, I would like to get the data from custom fields users data (id,name,pass,client_type), here is my JSON file:</p>
<pre><code> {
"status": "ok",
"count": 2,
"count_total": 2,
"pages": 1,
... | I have a JSON file that comes from a rest API in wordpress which has a kind custom post with two records of users, I would like to get the data from custom fields users data (id,name,pass,client_type), here is my JSON file: [CODE] and this is the code in Java: [CODE] it does not bring the data above, someone could help... | java|android|json|wordpress|parsing | -1 | 2016-05-11T00:34:28.450Z | 2,016 | 5 | 0 | 2 | 99 | 2 | 333 | 59 | 5 | 2 | true | false | false | false | false | true | negative |
37,151,164 | Convert An ArrayList<db> To ArrayList<string> | <p>I need help understanding what I am doing wrong. I have a class ShoppingListDbHelper</p>
<pre><code>public ArrayList<String> getAllShoppingList() {
ArrayList<String> array_list = new ArrayList<>();
SQLiteDatabase db = this.getReadableDatabase();
Cursor res = db.rawQuery("SELECT * FROM... | I need help understanding what I am doing wrong. I have a class ShoppingListDbHelper [CODE] And I created an adapter like so [CODE] And when I try to do this [CODE] I get an error in ShoppingListAdapter adapter = new ShoppingListAdapter(context, shoppinglist) that basically says Can't use ArrayList<ShoppingListDbHelper... | android|listview | 0 | 2016-05-11T00:35:08.340Z | 2,016 | 5 | 0 | 2 | 88 | 1 | 533 | 45 | 2 | 3 | true | false | false | false | false | false | zero |
37,151,302 | App to execute another app | <p>I want an App to execute another app</p>
<p>When in device booting I set the intent filter.</p>
<pre><code> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</code></pre>
<p>because of this, the Main app start. In the Main... | I want an App to execute another app When in device booting I set the intent filter. [CODE] because of this, the Main app start. In the Main App, I only want to execute another app once I try this. Main [CODE] but this code is not working. perhaps anybody knows another way to do it? Thanks add [CODE] | android | 0 | 2016-05-11T00:52:38.760Z | 2,016 | 5 | 0 | 2 | 59 | 2 | 301 | 26 | 1 | 3 | true | false | false | false | false | false | zero |
37,151,438 | Android Master-Detail Application | <p>I am trying to achieve the following - <br/>
<a href="https://i.stack.imgur.com/3Nxwf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Nxwf.png" alt="How my Application will look"></a></p>
<p><br/>
"A master-detail two pane flow and the datasource in JSON will be fetched via volley".</p>
<p><br/... | I am trying to achieve the following - "A master-detail two pane flow and the datasource in JSON will be fetched via volley". My struggle is that I do not know how to transfer data when clickEvent() occured on Master Panel. I have followed a few tutorials such as http://mobileappdocs.com/android.html http://www.techoto... | android|xml|android-layout|android-fragments|android-volley | 0 | 2016-05-11T01:08:27.377Z | 2,016 | 5 | 1 | 2 | 490 | 0 | 905 | 33 | 5 | 3 | true | true | false | false | false | false | zero |
37,151,521 | Passing strings between activities in Android studio | <p>I'm going through a Sam's teach yourself android application development book and I have a main activity that extends a second activity and it's supposed to pass the string data between activities. I'm getting this error in the main activity </p>
<pre><code>Method invocation 'activityButton.setOnClickListener(new ... | I'm going through a Sam's teach yourself android application development book and I have a main activity that extends a second activity and it's supposed to pass the string data between activities. I'm getting this error in the main activity [CODE] My main activity code is below: [CODE] This is my second activity code ... | java|android | -2 | 2016-05-11T01:18:52.690Z | 2,016 | 5 | 1 | 2 | 1,091 | 2 | 499 | 52 | 2 | 3 | true | false | false | false | false | true | negative |
37,151,736 | How to configure Google Sign in on Android sans email/password webview | <p>I have code similar to that of <a href="https://developers.google.com/identity/sign-in/android/sign-in#configure_google_sign-in_and_the_googleapiclient_object" rel="nofollow">this</a> official guide for Google Sign in. When my users click the sign in button and then select a local google profile to log in with, it d... | I have code similar to that of this official guide for Google Sign in. When my users click the sign in button and then select a local google profile to log in with, it directs them to the email/password webview. Despite the presence of forced logins, I do have a perfect google login flow that runs parallel with my Face... | android|oauth-2.0|google-api|google-signin|google-smartlockpasswords | 1 | 2016-05-11T01:46:19.693Z | 2,016 | 5 | 1 | 2 | 672 | 1 | 671 | 70 | 5 | 1 | true | false | false | false | false | false | low |
37,151,741 | Glide won't load some image URLs | <p>I have created Restful Api, so the user can communicate with my server database. First what i'm uploading image that user choose from Gallery into the database, using function for converting bitmap to string:</p>
<pre><code>public String getStringImage(Bitmap bmp){
ByteArrayOutputStream baos = new ByteArrayOutp... | I have created Restful Api, so the user can communicate with my server database. First what i'm uploading image that user choose from Gallery into the database, using function for converting bitmap to string: [CODE] After that i'm storing the image path in database and decoding encoded image using these code in PHP: [C... | php|android|android-glide | 1 | 2016-05-11T01:46:41.987Z | 2,016 | 5 | 1 | 2 | 257 | 1 | 635 | 32 | 3 | 5 | true | false | false | false | false | false | low |
37,152,020 | How to past an array of objects to server from android? | <p>I am trying to send an array with a bunch of objects back to android?</p>
<p>I tried String Builder like so:</p>
<pre><code>StringBuilder sb = new StringBuilder();
sb.append("[");
for(int i = 0; i <usersChanged.size(); i++) {
DatabaseUser userChange = usersChanged.get(i);
... | I am trying to send an array with a bunch of objects back to android? I tried String Builder like so: [CODE] but I am doing something wrong here. On my server side I am using node.js and would parse the array if I send over a string no problem, but this is not sending a string version of the array? What do I need to ch... | android|arrays|retrofit | 0 | 2016-05-11T02:19:43.520Z | 2,016 | 5 | 2 | 2 | 53 | 1 | 498 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
37,152,113 | Returning values from volley onResponse | <p>I am trying to make a more object oriented program with Volley. Currently I have the problem of not being able to extract data from inside the onResponse method of volley.</p>
<pre><code> private void getMember(String memberid){
Response.Listener<String> responseListener = new Response.Listener<String&... | I am trying to make a more object oriented program with Volley. Currently I have the problem of not being able to extract data from inside the onResponse method of volley. [CODE] I have to be able to get the response and use them as variables to pass into my activity. How do I go about doing this when I am given the er... | java|android|object|android-volley | 2 | 2016-05-11T02:29:47.423Z | 2,016 | 5 | 2 | 2 | 8,273 | 4 | 376 | 39 | 4 | 1 | true | false | true | false | false | false | low |
37,152,130 | EditText value inside GridView Changing When Scrolling up/down Fast | <p>I have a custom GridView. This is my app's screesnhot :</p>
<p><a href="https://i.stack.imgur.com/O5rKn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O5rKn.jpg" alt="enter image description here"></a></p>
<p>And now when I'm scrolling down quickly the value inside editText (2) in AYAMBROILER U... | I have a custom GridView. This is my app's screesnhot : And now when I'm scrolling down quickly the value inside editText (2) in AYAMBROILER UTUH changes into another cell. This is the screenshot : Why is this happening, and how do I fix it? This is my adapter code : [CODE] | android|gridview | 0 | 2016-05-11T02:32:22.767Z | 2,016 | 5 | 2 | 2 | 399 | 2 | 274 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
37,152,220 | Can't Open Microphone - API issue? | <p>I am working on a simple app which opens activities when a button is pressed etc. However my main activity is based on PocketSphinx API and my second activity uses <code>onClickListener</code> and Google's Speech to text API. </p>
<p>When I run each of these activities as individual apps they work perfectly. When ... | I am working on a simple app which opens activities when a button is pressed etc. However my main activity is based on PocketSphinx API and my second activity uses onClickListener and Google's Speech to text API. When I run each of these activities as individual apps they work perfectly. When I have then integrated the... | android|android-studio|sdk|android-edittext|android-manifest | 1 | 2016-05-11T02:42:52.487Z | 2,016 | 5 | 2 | 2 | 109 | 0 | 944 | 34 | 5 | 3 | true | true | false | false | false | false | low |
37,152,228 | SQLite: how do I update the primary key column in a Table after onClick? | <p>Can I use the primary key column as an incremental counter? The default value should be 1. Every time the user clicks the Save button I'd like the table column to update by +1. I will then push the individual row value to a CardView in a RecyclerView. If so, should I use INSERT or UPDATE or ContentValues to add ... | Can I use the primary key column as an incremental counter? The default value should be 1. Every time the user clicks the Save button I'd like the table column to update by +1. I will then push the individual row value to a CardView in a RecyclerView. If so, should I use INSERT or UPDATE or ContentValues to add another... | android|sqlite|primary-key | 0 | 2016-05-11T02:43:39.863Z | 2,016 | 5 | 2 | 2 | 807 | 0 | 532 | 72 | 3 | 3 | true | true | false | false | false | false | zero |
37,152,316 | Problema updating and uploading my apk | <p>Hi guys this is the first update I make to my app... I was reading and noticed that I need to change the versionCode and versionNameof my app in the manifest.xml, I did this and click on Build-> Generate Signed APK then in the developer console select my app and in the left menu click on APK then upload new APK and ... | Hi guys this is the first update I make to my app... I was reading and noticed that I need to change the versionCode and versionNameof my app in the manifest.xml, I did this and click on Build-> Generate Signed APK then in the developer console select my app and in the left menu click on APK then upload new APK and sel... | android|xml|versioning | 1 | 2016-05-11T02:54:02.047Z | 2,016 | 5 | 2 | 2 | 33 | 1 | 628 | 38 | 3 | 1 | true | false | false | false | false | false | low |
37,152,359 | How to properly initialise fragment to null? | <p>So here's the code:</p>
<pre><code>private void selectItem(int position) {
Fragment fragment = null;
switch (position) {
case 0:
fragment = new HomeFragment();
break;
case 1:
fragment = new DoctorFragment();
br... | So here's the code: [CODE] It seems like I haven't properly initialised fragment instance. The error message was "Wrong 2nd argument type" but I'm pretty sure I put in the right parameter. | java|android|android-fragments | 0 | 2016-05-11T02:58:07.380Z | 2,016 | 5 | 2 | 2 | 29 | 1 | 188 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
37,152,457 | mmap out of Memory, Videoview: "Can't play this video" | <p>I have a large project where I'm storing videos in the raw file (Around a few gig) Everything has been going smoothly until now. Sometimes my videos will not play and show "Can't play this video" message, I've noticed I have been getting mmap failed: Out of memory errors in my stack trace and I'm struggling to resol... | I have a large project where I'm storing videos in the raw file (Around a few gig) Everything has been going smoothly until now. Sometimes my videos will not play and show "Can't play this video" message, I've noticed I have been getting mmap failed: Out of memory errors in my stack trace and I'm struggling to resolve ... | c#|xamarin.android|mmap|android-videoview | 0 | 2016-05-11T03:09:25.863Z | 2,016 | 5 | 3 | 2 | 188 | 1 | 831 | 54 | 4 | 2 | true | false | false | false | false | false | zero |
37,152,590 | java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jacoco/agent/rt/internal_773e439/Offline; | <p>I have an android application which depends on some android libraries I have built on my own.
If I build the application with the library dependencies specified in the build.gradle then I get the following exception. </p>
<pre><code>-6694/com.mycompany.myproject D/AndroidRuntime: Shutting down VM
05-10 18:47:55.98... | I have an android application which depends on some android libraries I have built on my own. If I build the application with the library dependencies specified in the build.gradle then I get the following exception. [CODE] If I remove the dependencies and instead copy the concerned classes from the libraries and run t... | android|android-library|jacoco | 6 | 2016-05-11T03:25:48.220Z | 2,016 | 5 | 3 | 2 | 9,066 | 4 | 724 | 100 | 3 | 2 | true | false | true | false | false | false | medium |
37,152,852 | Volley library won't connect to Server | <p>I am trying to retrieve a <code>JSONObject</code> from database but I found out that the request don't even make it to the Server. I checked the <code>Apache Access Log</code> to confirm this. The URL is valid and when I access it via a web browser, it return the expect JSONObject. The exception error show <code>nul... | I am trying to retrieve a JSONObject from database but I found out that the request don't even make it to the Server. I checked the Apache Access Log to confirm this. The URL is valid and when I access it via a web browser, it return the expect JSONObject. The exception error show null by the Volley library. [CODE] How... | android|android-volley | 1 | 2016-05-11T03:57:53.550Z | 2,016 | 5 | 3 | 2 | 5,320 | 5 | 444 | 38 | 2 | 1 | true | false | true | false | false | false | low |
37,152,965 | remove a item in a recyclerview with swipe in mvvmcross | <p>I create a MvxRecyclerview with swipe, i need remove the swiped item of the recyclerview, but when i make the swipe, remove the item and after appear another item in bottom of recyclerview.</p>
<p><strong>Nombre.cs</strong></p>
<pre><code>public class Nombre
{
public string _name;
public string name
{
... | I create a MvxRecyclerview with swipe, i need remove the swiped item of the recyclerview, but when i make the swipe, remove the item and after appear another item in bottom of recyclerview. Nombre.cs [CODE] RecyclerViewModel.cs [CODE] } RecyclerViewFragment.cs [CODE] SimpleItemTouchHelperCallback.cs [CODE] fragment_exa... | c#|xamarin|xamarin.android|mvvmcross | 1 | 2016-05-11T04:09:51.737Z | 2,016 | 5 | 4 | 2 | 2,167 | 1 | 349 | 55 | 4 | 5 | true | false | false | false | false | false | low |
37,153,013 | Bluetooth library crashing app | <p>I've been trying to use <a href="https://github.com/arissa34/Android-Bluetooth-Library" rel="nofollow">this</a> bluetooth library to make connection to a little bluetooth module easier. Problem is, when I change my <code>MainActivity</code> from <code>extends AppCompatActivity</code> to <code>extends BluetoothActivi... | I've been trying to use this bluetooth library to make connection to a little bluetooth module easier. Problem is, when I change my MainActivity from extends AppCompatActivity to extends BluetoothActivity as shown in the example, my app consistently crashes. I've narrowed it down to only this - I can leave all of the a... | android|bluetooth | 1 | 2016-05-11T04:14:52.100Z | 2,016 | 5 | 4 | 2 | 506 | 1 | 661 | 30 | 2 | 2 | true | false | false | false | false | false | low |
37,153,075 | play-services-vision: How do I sync the Face Detection speed with the Camera Preview speed? | <p>I have some code that allows me to detect faces in a live camera preview and draw a few GIFs over their landmarks using the play-services-vision library provided by Google.</p>
<p>It works well enough when the face is static, but when the face moves at a moderate speed, the face detector takes longer than the camer... | I have some code that allows me to detect faces in a live camera preview and draw a few GIFs over their landmarks using the play-services-vision library provided by Google. It works well enough when the face is static, but when the face moves at a moderate speed, the face detector takes longer than the camera's framera... | android|performance|camera|face-detection | 1 | 2016-05-11T04:22:28.060Z | 2,016 | 5 | 4 | 2 | 1,033 | 2 | 1,538 | 91 | 4 | 1 | true | false | false | false | false | false | low |
37,153,125 | How to wrap up dialogs in class? | <p>I am developing an android app and I noticed I use the same dialogs in different fragments/Activities. </p>
<p>I was trying to wrap it in a class but my app is crashing whenever is time to show the dialog. Any ideas?</p>
<p>dialog class</p>
<pre><code>public class Diaglogs {
+
+ private Context context;
+
+ ... | I am developing an android app and I noticed I use the same dialogs in different fragments/Activities. I was trying to wrap it in a class but my app is crashing whenever is time to show the dialog. Any ideas? dialog class [CODE] error [CODE] | java|android|android-alertdialog | 0 | 2016-05-11T04:27:43.003Z | 2,016 | 5 | 4 | 2 | 85 | 2 | 241 | 32 | 3 | 2 | true | false | false | false | false | false | zero |
37,153,131 | Storing Randomly Generated TextView Items to use with Copy to Clipboard Button | <p>I am coding in java and xml in the android studio.I have declared three arrays and I have declared three TextViews that will display randomly selected strings from each array. </p>
<p>I am new to programming and I need help with: </p>
<ul>
<li>a method that picks a random string from each array </li>
<li>a button... | I am coding in java and xml in the android studio.I have declared three arrays and I have declared three TextViews that will display randomly selected strings from each array. I am new to programming and I need help with: a method that picks a random string from each array a button that sets the selcted strings to the ... | java|android|arrays|button|methods | -1 | 2016-05-11T04:27:53.170Z | 2,016 | 5 | 4 | 2 | 31 | 1 | 436 | 78 | 5 | 1 | true | false | false | false | false | true | negative |
37,153,210 | How to stop hacking in-app purchases in android | <p>I've implemented in-app purchases in my android game and did all verification steps available out there like sending receipts to server with token/developer payload etc for authentication purpose and every thing is working fine. However, I discovered some of the users are sharing in-apps by giving their account deta... | I've implemented in-app purchases in my android game and did all verification steps available out there like sending receipts to server with token/developer payload etc for authentication purpose and every thing is working fine. However, I discovered some of the users are sharing in-apps by giving their account details... | c#|android|unity3d|in-app-purchase|in-app-billing | 3 | 2016-05-11T04:36:21.243Z | 2,016 | 5 | 4 | 2 | 1,468 | 1 | 1,058 | 47 | 5 | 0 | false | false | false | false | false | false | low |
37,153,225 | AlertDialog singleChoiceItem NullPointerException | <p>Hi I am keep getting this exception. Below is my code. Please help me to solve this problem:</p>
<pre><code>private void openDeleteCustomProfileDialog(String[] names) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.delete_profile_title);
if (names.length > 0)... | Hi I am keep getting this exception. Below is my code. Please help me to solve this problem: [CODE] Log: [CODE] | android|android-alertdialog | 0 | 2016-05-11T04:37:50.800Z | 2,016 | 5 | 4 | 2 | 141 | 3 | 111 | 49 | 2 | 2 | true | false | false | false | false | false | zero |
37,153,253 | at run time application responses a null point exception but debug time it works properly | <p>I am a beginner to android development and i am building an application related to map creating the route. the lat long data are taken from the php API. the problem is when i debug the program it works perfectly fine but when i run the application it show the null point exception.Please suggest me what i can do..</p... | I am a beginner to android development and i am building an application related to map creating the route. the lat long data are taken from the php API. the problem is when i debug the program it works perfectly fine but when i run the application it show the null point exception.Please suggest me what i can do.. [CODE... | android|android-volley|google-maps-android-api-2|android-json|android-googleapiclient | 1 | 2016-05-11T04:40:55.470Z | 2,016 | 5 | 4 | 2 | 129 | 0 | 321 | 89 | 5 | 1 | true | true | false | false | false | false | low |
37,153,256 | How to link a button in xml to the java actions in a class | <p>very new to developing! </p>
<p>I basically want to link a button that I have created in XML to the java code in the respective class. </p>
<p>What I am trying to achieve is a button that is placed above my webview that has text "Start Recording" once clicked the audio record function will start, and the text will... | very new to developing! I basically want to link a button that I have created in XML to the java code in the respective class. What I am trying to achieve is a button that is placed above my webview that has text "Start Recording" once clicked the audio record function will start, and the text will then change to "Stop... | java|android|xml|button | 1 | 2016-05-11T04:41:16.803Z | 2,016 | 5 | 4 | 2 | 1,678 | 3 | 565 | 58 | 4 | 2 | true | false | false | false | false | false | low |
37,153,283 | Finding it impossible to update android studio 2.0 to 2.1 | <p>I've been trying to update android studio to 2.1 from 2.0 and have run out of idea's. I'm getting a </p>
<pre><code>java.lang.OutOfMemoryError: Java heap space
</code></pre>
<p>error. I've tried goggling to find solutions and have tried ones such as these with no joy:</p>
<p><a href="https://stackoverflow.com/... | I've been trying to update android studio to 2.1 from 2.0 and have run out of idea's. I'm getting a [CODE] error. I've tried goggling to find solutions and have tried ones such as these with no joy: StackOverFlow Answer Tech-Docs from Google Here's the full error I'm receiving: [CODE] I've created the .vmoptions file i... | android|android-studio|intellij-idea | 5 | 2016-05-11T04:45:16.933Z | 2,016 | 5 | 4 | 2 | 722 | 3 | 1,090 | 57 | 3 | 3 | true | false | false | false | false | false | low |
37,153,298 | OnClick button navigates to dashboard instead of new fragment | <p>I have a device specific issue in my android application. image icon onclick a new fragment should get loaded but instead it navigates to Dashboard. It is working fine on all the other devices except Samsung duos devices.</p>
<pre><code>@Override
public void onClick(View v)
{
switch (v.getId())
{
ca... | I have a device specific issue in my android application. image icon onclick a new fragment should get loaded but instead it navigates to Dashboard. It is working fine on all the other devices except Samsung duos devices. [CODE] | android | -3 | 2016-05-11T04:46:42.563Z | 2,016 | 5 | 4 | 2 | 109 | 1 | 228 | 61 | 1 | 1 | true | false | false | false | false | true | negative |
37,153,415 | How can I optimize my syntax highlighting in Android | <p>Hello guys I am working in a text editor in android and I want to optimize my text editor. When my text editor is have a 100 lines of code it becomes laggy
Here is my implementation code:</p>
<pre><code>private void onEditorListener() {
edtEditor.addTextChangedListener(new TextWatcher() {
@Override
... | Hello guys I am working in a text editor in android and I want to optimize my text editor. When my text editor is have a 100 lines of code it becomes laggy Here is my implementation code: [CODE] | android|android-layout|syntax-highlighting | 0 | 2016-05-11T04:56:20.387Z | 2,016 | 5 | 4 | 2 | 88 | 1 | 194 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
37,153,568 | parse JSON data fetch from php mysql to android using android volley | <p>i have this android volley code. i dont have any problem here.</p>
<pre><code>private void sendRequest() {
StringRequest stringRequest = new StringRequest(JSON_url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d("HomeFragment", respo... | i have this android volley code. i dont have any problem here. [CODE] and here is my adapter. [CODE] my problem is here. [CODE] the error is says, cannot resolve method 'setText(java.lang.String[])' my model has data that is like this. String[] and int[]. any way i can do this? here is the handler [CODE] here is the mo... | java|php|android|mysql|json | 0 | 2016-05-11T05:11:52.737Z | 2,016 | 5 | 5 | 2 | 106 | 2 | 356 | 68 | 5 | 5 | true | false | false | false | false | false | zero |
37,153,581 | ADB - Getting string from the device using adb shell has unexpected and weird behavior | <p>I am having the weirdest problem when I try to concat 2 String in a shell script.</p>
<p>First, let me tell you what I want to do.
I want to create a folder in the external storage of an Android device, using <code>adb</code>. In order to do that, I first need to get the external storage folder of the device. </p>
... | I am having the weirdest problem when I try to concat 2 String in a shell script. First, let me tell you what I want to do. I want to create a folder in the external storage of an Android device, using adb . In order to do that, I first need to get the external storage folder of the device. For that, I used this: [CODE... | android|string|shell|adb | -1 | 2016-05-11T05:13:14.393Z | 2,016 | 5 | 5 | 2 | 841 | 1 | 2,048 | 86 | 4 | 9 | true | false | false | false | false | true | negative |
37,153,659 | How to set a new passsord before writing nfc tag on phone in android programatically | <p>Hi I'm doing one app which is nfc reading and writer app in this app i can able to read the data from the tag and associate the custom tag to the data.I'm stuck in this that is how to set desired password to written tag to protect from overwriting and at the same time how can i ask user to enter password for reading... | Hi I'm doing one app which is nfc reading and writer app in this app i can able to read the data from the tag and associate the custom tag to the data.I'm stuck in this that is how to set desired password to written tag to protect from overwriting and at the same time how can i ask user to enter password for reading th... | android|nfc | 1 | 2016-05-11T05:19:08.580Z | 2,016 | 5 | 5 | 2 | 411 | 0 | 388 | 84 | 2 | 1 | true | true | false | false | false | false | low |
37,153,698 | SQLite: how do I fix syntax on INSERT INTO? | <p>I have a column CARDNUM that I am trying to increment by +1 in a Table called TOTALCOUNT. App crashed with syntax error near "SET"</p>
<p>This is my INSERT statement:</p>
<pre><code>db.execSQL("INSERT INTO "+ DBContract.DBEntry.TABLE_NAME_TOTALCOUNT+" SET "+ DBContract.DBEntry.COLUMN_NAME_CARDNUM + "="+ DBContrac... | I have a column CARDNUM that I am trying to increment by +1 in a Table called TOTALCOUNT. App crashed with syntax error near "SET" This is my INSERT statement: [CODE] What am I not getting right? [CODE] The Logcat for CARDNUM shows "(SELECT cardnum from totalcount)=0. | android|sqlite|android-sqlite|insert-into | -2 | 2016-05-11T05:23:48.490Z | 2,016 | 5 | 5 | 2 | 100 | 3 | 268 | 43 | 4 | 2 | true | false | false | false | false | true | negative |
37,153,749 | Selector not working with TabLayout | <p>I have added tab layout with my custom view as below</p>
<p>java code</p>
<pre><code> for (int i = 0; i < allTabs.getTabCount(); i++) {
TabLayout.Tab tab = allTabs.getTabAt(i);
View v = LayoutInflater.from(getActivity()).inflate(R.layout.tab_layout, allTabs, false);
tvTabText = (Text... | I have added tab layout with my custom view as below java code [CODE] Xml [CODE] tab_item_selector.xml [CODE] i have seted first tab selected [CODE] also try with [CODE] in custom view. i also try [CODE] this is my TabLayout [CODE] once view appear i click on forst tab than tab will show wihte color text but when i rel... | android | 4 | 2016-05-11T05:28:11.747Z | 2,016 | 5 | 5 | 2 | 1,384 | 1 | 584 | 35 | 1 | 7 | true | false | false | false | false | false | low |
37,153,801 | TitleBar visible in marshmallow devices when using Navigation Drawer | <p>I have an app which does not use titlebar and it works fine in jellybean devices....but when I run this in a marshmallow device the titlebar shows up....
This is my manifest file</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
p... | I have an app which does not use titlebar and it works fine in jellybean devices....but when I run this in a marshmallow device the titlebar shows up.... This is my manifest file [CODE] I also tried adding this [CODE] ActivityMain [CODE] But it still shows titleBar..any help is appreciated....thanks | android|android-6.0-marshmallow|titlebar | 0 | 2016-05-11T05:32:13.480Z | 2,016 | 5 | 5 | 2 | 458 | 4 | 300 | 68 | 3 | 3 | true | false | false | false | false | false | zero |
37,153,841 | cannot add youtube player fragment to layout | <p>I am trying to add youtubeplayersupportfragment to a layout inside my fragment.
while adding the fragment to layout it says
"cannot convert youtubeplayersupportfragment to fragment.
here is my code</p>
<pre><code>public class combofrag extends Fragment implements View.OnClickListener {
@Override
public View onCreat... | I am trying to add youtubeplayersupportfragment to a layout inside my fragment. while adding the fragment to layout it says "cannot convert youtubeplayersupportfragment to fragment. here is my code [CODE] there is an error on this line [CODE] | android-fragments|youtube-api|youtube-data-api|android-youtube-api | 1 | 2016-05-11T05:35:28.973Z | 2,016 | 5 | 5 | 2 | 684 | 1 | 242 | 44 | 4 | 2 | true | false | false | false | false | false | low |
37,153,964 | Android dynamically creating textview in a fragment | <p>I´ve a problem with my Android app which does´t make what I want.</p>
<p>Im trying to create in a fragment dynamically TextViews. But somehow I´m not getting to code to work.</p>
<p>So let´s start with my fragment opening activity:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-... | I´ve a problem with my Android app which does´t make what I want. Im trying to create in a fragment dynamically TextViews. But somehow I´m not getting to code to work. So let´s start with my fragment opening activity: [CODE] The forwarded reqest goes to this java file. As you will see I´ve tried serveral stuff with bad... | java|android|dynamic|textview|fragment | 0 | 2016-05-11T05:44:26.183Z | 2,016 | 5 | 5 | 2 | 2,566 | 1 | 559 | 51 | 5 | 3 | true | false | false | false | false | false | zero |
37,154,023 | Unable to receive Broadcast | <p>I am sending a Broadcast from my Service and trying to receive in my Activity but I don't see it receiving. Can someone suggest if I am doing something wrong. I am seeing onResume getting called but don't see flag </p>
<pre><code>Log.d("InchooTutorial", msg_for_me);
</code></pre>
<p>getting logged.</p>
<p>Service... | I am sending a Broadcast from my Service and trying to receive in my Activity but I don't see it receiving. Can someone suggest if I am doing something wrong. I am seeing onResume getting called but don't see flag [CODE] getting logged. Service Code : [CODE] Activity Code : [CODE] | android | 0 | 2016-05-11T05:48:57.847Z | 2,016 | 5 | 5 | 2 | 110 | 2 | 281 | 27 | 1 | 3 | true | false | false | false | false | false | zero |
37,154,123 | Receiving result in android | <p>I am beginner to android..I Integrated qr scanner in my app..problem is I added qr scanner button in two fragment..for receiving result I added on activityResult method..In my mainactivity..Is any another method for receiving result in android Instead of OnactivityResult method..If not their I should I add multiple ... | I am beginner to android..I Integrated qr scanner in my app..problem is I added qr scanner button in two fragment..for receiving result I added on activityResult method..In my mainactivity..Is any another method for receiving result in android Instead of OnactivityResult method..If not their I should I add multiple onA... | java|android | 0 | 2016-05-11T05:56:02.503Z | 2,016 | 5 | 5 | 2 | 76 | 1 | 387 | 27 | 2 | 1 | true | false | false | false | false | false | zero |
37,154,132 | Login in Android using PHP and MySQL | <p>I've been trying to create a Login Module after registeration in MySQL but the problem I am facing is that I am not able to login form the table where I registered my values, although I am successfully able to register them. Here it is my <code>login.php</code> code. The error message I am getting is <code>Invalid U... | I've been trying to create a Login Module after registeration in MySQL but the problem I am facing is that I am not able to login form the table where I registered my values, although I am successfully able to register them. Here it is my login.php code. The error message I am getting is Invalid Username or Password th... | php|android|mysql | 0 | 2016-05-11T05:56:43.457Z | 2,016 | 5 | 5 | 2 | 369 | 1 | 593 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
37,154,171 | Not able to fire the ListVIew Item click event when there is UI Control like Button in xamarin | <p>Here I am not able to fire the ListView Item click event. this is my code with MainActivity.cs file , Main.axml file and MainActivityAdapter.cs file. </p>
<p>MainActivity .cs </p>
<pre><code>public class MainActivity : Activity
{
private ListView _contactsView;
private List&l... | Here I am not able to fire the ListView Item click event. this is my code with MainActivity.cs file , Main.axml file and MainActivityAdapter.cs file. MainActivity .cs [CODE] Main.axml [CODE] MainActivityAdapter.cs [CODE] TestListViewLoader.axml [CODE] this is simple code but I dont know why this is happens it will not ... | c#|xaml|xamarin|xamarin.android | 1 | 2016-05-11T05:59:22.250Z | 2,016 | 5 | 5 | 2 | 1,442 | 1 | 481 | 94 | 4 | 4 | true | false | false | false | false | false | low |
37,154,295 | broadcaster permission for com.google.android.gms.analytics.ANALYTICS_DISPATCH | <p>I recently did a code scan on my Android source code using HPFortify service. They reported security vulnerability regarding google analytics receiver. They suggested to use the broadcaster permission to reduce the attack vector. This way you are restricting broadcaster, otherwise any malicious application can send ... | I recently did a code scan on my Android source code using HPFortify service. They reported security vulnerability regarding google analytics receiver. They suggested to use the broadcaster permission to reduce the attack vector. This way you are restricting broadcaster, otherwise any malicious application can send the... | android|google-analytics|android-permissions|android-broadcastreceiver | 1 | 2016-05-11T06:07:24.107Z | 2,016 | 5 | 6 | 2 | 220 | 0 | 706 | 78 | 4 | 2 | true | true | false | false | false | false | low |
37,154,298 | Broadcasting flag but receiving null | <p>Trying to Broadcast flag, but while receiving I am getting "null". Can someone guide me. Below is my sender and receiver code. </p>
<p>Sending :</p>
<pre><code>Intent sendableIntent = new Intent("abc");
sendableIntent.putExtra("kicked", prefs.getSurveySubmittedStatus(context));
LocalBroadcastManager.getInstance(Ac... | Trying to Broadcast flag, but while receiving I am getting "null". Can someone guide me. Below is my sender and receiver code. Sending : [CODE] Receiving : [CODE] | android | 0 | 2016-05-11T06:07:36.637Z | 2,016 | 5 | 6 | 2 | 45 | 0 | 162 | 36 | 1 | 2 | true | true | false | false | false | false | zero |
37,154,342 | Android: sqlite only saves one item | <p>I'm trying to save a list of books but when I read the table I only get one book.</p>
<p><strong>DatabaseHelper.java</strong></p>
<pre><code> ...
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(
"CREATE TABLE IF NOT EXISTS "+ TABLE_NAME +" (id TEXT PRIMARY KEY,title ... | I'm trying to save a list of books but when I read the table I only get one book. DatabaseHelper.java [CODE] MainActivity.java Here I have a for loop that changes the values in book and in this loop I've put this code so that with each new book the book will be saved: [CODE] After that I use this code to get all the bo... | java|android|sqlite | -1 | 2016-05-11T06:10:53.477Z | 2,016 | 5 | 6 | 2 | 157 | 5 | 416 | 35 | 3 | 3 | true | false | false | false | false | true | negative |
37,154,410 | network on main thread exception while post data to php server | <p>I want to pass last id on php server.I got last inserted id but while sending it to server there is problem of "network on main thread exception". </p>
<pre><code>public void get_data(String data) {
try {
JSONArray data_array = new JSONArray(data);
for (int i = 0; i < ... | I want to pass last id on php server.I got last inserted id but while sending it to server there is problem of "network on main thread exception". [CODE] Logcat - java.lang.RuntimeException: An error occured while executing doInBackground() [CODE] | php|android | 0 | 2016-05-11T06:14:26.277Z | 2,016 | 5 | 6 | 2 | 109 | 2 | 247 | 62 | 2 | 2 | true | false | false | false | false | false | zero |
37,154,441 | Trying to show the @Path in @Get in Download Progress in Retrofit | <p>Trying to show the @Path in @Get in Download Progress in Retrofit</p>
<p>I wanted to show the passed @Path during progress update using <code>ProgressResponseBody</code></p>
<p>this is my <code>ProgressListener</code></p>
<pre><code>public interface ProgressListener {
void update(long bytesRead, long content... | Trying to show the @Path in @Get in Download Progress in Retrofit I wanted to show the passed @Path during progress update using ProgressResponseBody this is my ProgressListener [CODE] this is my ProgressResponseBody [CODE] and this is my Retrofit Library [CODE] this is my DownloadService [CODE] Now Im wondering if eve... | java|android|retrofit2 | 0 | 2016-05-11T06:16:14.077Z | 2,016 | 5 | 6 | 2 | 84 | 0 | 403 | 65 | 3 | 4 | true | true | false | false | false | false | zero |
37,154,450 | Adding dynamic items to linearlayout displays reverse order android | <p>I'm inflating dynamic view to linear layout but it displays reversely.</p>
<pre><code> try {
JSONArray jsonArray = new JSONArray(tooteet.getMeasureJson());
for(int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = (JSONObject) jsonArray.get(i);
... | I'm inflating dynamic view to linear layout but it displays reversely. [CODE] where i'm getting log value for tooteet.getMeasureJson() is [CODE] Here I'm adding measure view using below method [CODE] My log inside addMeasureView is below: [CODE] But when i'm viewing this it in layout as this order [CODE] Please suggest... | android|android-layout | 1 | 2016-05-11T06:17:06.537Z | 2,016 | 5 | 6 | 2 | 647 | 1 | 388 | 67 | 2 | 6 | true | false | false | false | false | false | low |
37,154,546 | Unable to Retrieve Firebase image in imageview | <p>I am trying to make an app where uer can select an image from gallery on button click and after image selected it should be saved on firebase and then retrieve back in my activity. The problem is I have successfully saved image on my firebase database but when my app launches it is not showing image in my ImageView.... | I am trying to make an app where uer can select an image from gallery on button click and after image selected it should be saved on firebase and then retrieve back in my activity. The problem is I have successfully saved image on my firebase database but when my app launches it is not showing image in my ImageView. Be... | android|firebase | 0 | 2016-05-11T06:23:17.540Z | 2,016 | 5 | 6 | 2 | 868 | 1 | 401 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
37,154,603 | Unable to remove SOME map Markers in a retained mapfragment | <p>I'm coding a simple Android activity, one google map "retained" mapfragment, two button ("add marker" "remove marker"), plus a "data" fragment for retaining data chunks through the activity life cycle.<br/>
The "add marker" calls a method that place a fixed <code>testMarker</code> plus calls the google location ser... | I'm coding a simple Android activity, one google map "retained" mapfragment, two button ("add marker" "remove marker"), plus a "data" fragment for retaining data chunks through the activity life cycle. The "add marker" calls a method that place a fixed testMarker plus calls the google location service and place a marke... | android|google-maps | 0 | 2016-05-11T06:27:12.763Z | 2,016 | 5 | 6 | 2 | 72 | 0 | 1,294 | 59 | 2 | 1 | true | true | false | false | false | false | zero |
37,154,688 | Getting Java.io.closeable Error in Android | <p>I am getting the following error. While running my program. I am unable to understand the problem.
A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.</p>
<p><strong>Code</strong></p>
<pre><code>ArrayList<String> selection = ne... | I am getting the following error. While running my program. I am unable to understand the problem. A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. Code [CODE] XML [CODE] | java|android | 0 | 2016-05-11T06:31:24.697Z | 2,016 | 5 | 6 | 2 | 267 | 1 | 255 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
37,154,817 | No resource found that matches the given name (at 'theme' ...) | <p>I'm using Android Studio 2.1 and trying to use a full screen theme without action bar.</p>
<p>I changed this in my manifest, as stated in <a href="https://developer.android.com/guide/topics/ui/themes.html" rel="nofollow" title="Using platform styles and themes">Using platform styles and themes</a></p>
<pre><code>-... | I'm using Android Studio 2.1 and trying to use a full screen theme without action bar. I changed this in my manifest, as stated in Using platform styles and themes [CODE] However when compiling the app I now get this error message: [CODE] This makes me think I have to somehow include these styles in the resources of my... | android|android-manifest | 0 | 2016-05-11T06:38:29.483Z | 2,016 | 5 | 6 | 2 | 2,399 | 2 | 541 | 62 | 2 | 2 | true | false | false | false | false | false | zero |
37,154,865 | Authentication Filed on Server. Android Maps API not working | <p>I am new to Android Development. I have been creating an app that uses the Android Maps API. It was working well, until I updated my build tools and Android Studio. Now everytime I run it, my map is not shown, and I get the following error:</p>
<blockquote>
<p>05-11 11:51:54.716 1535-1589/com.pruthvi.lanes I/O... | I am new to Android Development. I have been creating an app that uses the Android Maps API. It was working well, until I updated my build tools and Android Studio. Now everytime I run it, my map is not shown, and I get the following error: 05-11 11:51:54.716 1535-1589/com.pruthvi.lanes I/OpenGLRenderer﹕ Initialized EG... | android|api|authentication|maps|key | 0 | 2016-05-11T06:40:22.197Z | 2,016 | 5 | 6 | 2 | 260 | 2 | 1,240 | 60 | 5 | 3 | true | false | false | false | false | false | zero |
37,154,971 | Baseadapter getCount called but not getview | <p>Am having this weird issue of getview not called inside baseadapter. </p>
<p>Scenario:</p>
<ul>
<li>Main fragment has a carousel (which loads perfectly fine)</li>
<li>Button click shows another fragment with another carousel</li>
<li>Data is fetched from server and the adapter is called</li>
<li>Adapter gets calle... | Am having this weird issue of getview not called inside baseadapter. Scenario: Main fragment has a carousel (which loads perfectly fine) Button click shows another fragment with another carousel Data is fetched from server and the adapter is called Adapter gets called without a problem GetCount() gets called GetView() ... | java|android|carousel | 1 | 2016-05-11T06:45:06.887Z | 2,016 | 5 | 6 | 2 | 467 | 1 | 1,012 | 43 | 3 | 4 | true | false | false | false | false | false | low |
37,155,058 | Placing a logo in Imageview Layout | <p>I'm trying to place an information logo in my layout. Because I already got a logo in the top left, I can't manage to get the other logo in the top right, same height. Does someone know the codeline(s) for that?</p>
<p>this is how my layout looks like now, and the red circle explains where I want my logo to be. Can... | I'm trying to place an information logo in my layout. Because I already got a logo in the top left, I can't manage to get the other logo in the top right, same height. Does someone know the codeline(s) for that? this is how my layout looks like now, and the red circle explains where I want my logo to be. Can be a few m... | android|imageview | 0 | 2016-05-11T06:48:56.853Z | 2,016 | 5 | 6 | 2 | 124 | 3 | 396 | 34 | 2 | 1 | true | false | false | false | false | false | zero |
37,155,073 | Delete Reminder from Database on End Date | <p>Working with <code>Reminders</code> taking two dates from user, first <code>Start</code> Reminder Date and second <code>End</code> Reminder Date</p>
<p>I have <code>successfully</code> written a code to <code>start</code> a reminder, <code>repeat</code> the reminder and now I would like to know <strong>How can I re... | Working with Reminders taking two dates from user, first Start Reminder Date and second End Reminder Date I have successfully written a code to start a reminder, repeat the reminder and now I would like to know How can I remove the reminder when comes to End date from database ? I know, I have to use something like bel... | java|android|sqlite|alarm|reminders | 1 | 2016-05-11T06:49:48.680Z | 2,016 | 5 | 6 | 2 | 175 | 1 | 585 | 41 | 5 | 4 | true | false | false | false | false | false | low |
37,155,111 | Retain fragment in viewpager after rotating | <p><strong>Edit: I'm terrible at explaining these things so here is a video
<a href="http://sendvid.com/mefqxd8f" rel="nofollow">http://sendvid.com/mefqxd8f</a></strong></p>
<p><strong>Context:</strong>
The application consists of a single Activity with a ViewPager that holds 3 tabs. Tab1 uses an interface called Page... | Edit: I'm terrible at explaining these things so here is a video http://sendvid.com/mefqxd8f Context: The application consists of a single Activity with a ViewPager that holds 3 tabs. Tab1 uses an interface called PageFragmentListener to switch between 2 different fragments in the same Tab when a button is pressed. Whe... | android|android-fragments|android-viewpager|android-savedstate | 0 | 2016-05-11T06:51:57.977Z | 2,016 | 5 | 6 | 2 | 703 | 2 | 930 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
37,155,238 | App crashes when Display Images from (Database) json into viewpager | <p>I want to display images from database into imageslider for which i am using viewpager. When i put the images in the drawable, the code works fine. However when I take the images from the database the app crashes. Please look through my code and help me with it</p>
<p>SliderActivity.java</p>
<pre><code>public clas... | I want to display images from database into imageslider for which i am using viewpager. When i put the images in the drawable, the code works fine. However when I take the images from the database the app crashes. Please look through my code and help me with it SliderActivity.java [CODE] my Adapterclass SliderAdapterAc... | android|json|android-viewpager | 0 | 2016-05-11T06:57:27.550Z | 2,016 | 5 | 6 | 2 | 264 | 3 | 354 | 67 | 3 | 3 | true | false | false | false | false | false | zero |
37,155,289 | Android Admob interstitial request timeout | <p>Currently when trying to load an interstitial, there is a timeout for the request (which I have noted) of 30 seconds or so. I would like to reduce that to 10-15 seconds, but I am unable to find a method to set the timeout value.</p>
<p>Is there such a thing in the SDK or do I need to implement my own timer?</p>
<p... | Currently when trying to load an interstitial, there is a timeout for the request (which I have noted) of 30 seconds or so. I would like to reduce that to 10-15 seconds, but I am unable to find a method to set the timeout value. Is there such a thing in the SDK or do I need to implement my own timer? [CODE] | android|admob | 3 | 2016-05-11T07:00:30.477Z | 2,016 | 5 | 7 | 2 | 1,980 | 1 | 308 | 42 | 2 | 1 | true | false | false | false | false | false | low |
37,155,310 | Do a request Focus on edittexts created programaticcaly | <p>I create some edittexts with a hashmap depending on a value given by the user. I can't do it in the xml because they doesn't exist before.</p>
<pre><code>for (i = 0; i < n; i++) {
layoutValueClassic.addView(edittextStatsList.get(i));
edittextStatsList.get(i).setInputType(InputType.TYPE_CLASS_NUMBER | Inp... | I create some edittexts with a hashmap depending on a value given by the user. I can't do it in the xml because they doesn't exist before. [CODE] As you can see, I put a requestfocus for each edittext on the next (i+1). But it doesn't work. I can't do "next" when I am in the edittext, I can just do "OK" and the focus d... | java|android|android-edittext|focus | 0 | 2016-05-11T07:01:45.220Z | 2,016 | 5 | 7 | 2 | 58 | 1 | 340 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
37,155,478 | Installation of Ionic brings in some unusual errors in windows x64 | <p>When I wanted to Install and work on Ionic, I had to install other things like Android SDK, and set some path variables. I did all of them. I installed Cordova using the code </p>
<p><code>npm install -g cordova</code></p>
<p>Now when I try to install ionic using a similar command as follows</p>
<pre><code>npm in... | When I wanted to Install and work on Ionic, I had to install other things like Android SDK, and set some path variables. I did all of them. I installed Cordova using the code npm install -g cordova Now when I try to install ionic using a similar command as follows [CODE] I'm getting the following error: [CODE] What sho... | android|node.js|cordova|ionic-framework|installation | 0 | 2016-05-11T07:09:34.257Z | 2,016 | 5 | 7 | 2 | 111 | 2 | 421 | 66 | 5 | 2 | true | false | false | false | false | false | zero |
37,155,765 | I need help to select a distinct column values in android query builder | <p>This is the query:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT _id AS suggest_intent_data_id, _id,distinct word as suggest_text_1
FROM words WHERE (suggest_text_1 like "a%") ORDER BY word LIMIT 10.
</code></pre>
<p>but it is showing me error near disticnt.</p>
<p>This query works in sqlite mana... | This is the query: [CODE] but it is showing me error near disticnt. This query works in sqlite manager in firefox: [CODE] but i need the result from first query. Here is is the code for query builder. [CODE] | java|android|mysql|sqlite|android-studio | 1 | 2016-05-11T07:24:28.860Z | 2,016 | 5 | 7 | 2 | 527 | 2 | 207 | 71 | 5 | 3 | true | false | false | false | false | false | low |
37,155,783 | Multiple enqueue in retrofit causing out of memory error? | <p>Am doing my project using retrofit2. When my Call goes on failure i repeat same call again.Repeation of this call made my app to force close.
When i look on log i got error log, which is given below. I felt this is caused by multiple enqueue to same Call. So i did that before enqueus i called cancel. But its not wor... | Am doing my project using retrofit2. When my Call goes on failure i repeat same call again.Repeation of this call made my app to force close. When i look on log i got error log, which is given below. I felt this is caused by multiple enqueue to same Call. So i did that before enqueus i called cancel. But its not workin... | android|out-of-memory|retrofit|retrofit2 | 3 | 2016-05-11T07:25:09.600Z | 2,016 | 5 | 7 | 2 | 2,419 | 2 | 374 | 57 | 4 | 1 | true | false | false | false | false | false | low |
37,155,789 | Android Volley ECONNRESET | <p>I try to use <code>Volley</code> library and upload image to server. This library should do this process in standalone mode, but have got following error message:</p>
<blockquote>
<p>java.net.SocketException: sendto failed: ECONNRESET (Connection reset
by peer)</p>
</blockquote>
<p>Is it maybe a server side mi... | I try to use Volley library and upload image to server. This library should do this process in standalone mode, but have got following error message: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) Is it maybe a server side misconfiguration? I try to upload a jpeg image with this code: [C... | android|exception|android-volley|econnreset | 1 | 2016-05-11T07:25:32.733Z | 2,016 | 5 | 7 | 2 | 2,119 | 2 | 324 | 25 | 4 | 1 | true | false | false | false | false | false | low |
37,155,820 | Too many assets file causes an error? | <p>I can run the project
but i found,if i add to much file,when i build the project,android studio will show the error
this is the error</p>
<blockquote>
<p>Information:Gradle tasks [:app:assembleRelease]
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP... | I can run the project but i found,if i add to much file,when i build the project,android studio will show the error this is the error Information:Gradle tasks [:app:assembleRelease] :app:preBuild UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkReleaseManifest :app:preDebugBuild UP-TO-DATE :app:prepareComAndroidSup... | android | 0 | 2016-05-11T07:27:07.613Z | 2,016 | 5 | 7 | 2 | 145 | 1 | 1,446 | 37 | 1 | 1 | 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.