id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,638,342 | Getting error in Integration of Google plus with android in eclipse | <p>I am using google+ login for my application.
First time user is login. When user is logout and again same user try to login then I got,
<code>Plus.PeopleApi.getCurrentPerson(mGoogleApiClient)</code> is null.</p>
<p>How to solve this error.</p>
<pre><code>public void onConnected(Bundle connectionHint) {
... | I am using google+ login for my application. First time user is login. When user is logout and again same user try to login then I got, Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) is null. How to solve this error. [CODE] | android|google-plus | 0 | 2016-04-15T04:34:47.417Z | 2,016 | 4 | 4 | 4 | 39 | 1 | 226 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
36,638,374 | The checked Gridview position changes on scrolling | <p>I have already tried the suggestions which are there on this site and they dont work for me. I will try to be very precise. I have a Custom gallery which displays images in gridview. The user can select multiple images from the gridview. Once the Gridview position is clicked the "Tick" icon is displayed on that posi... | I have already tried the suggestions which are there on this site and they dont work for me. I will try to be very precise. I have a Custom gallery which displays images in gridview. The user can select multiple images from the gridview. Once the Gridview position is clicked the "Tick" icon is displayed on that positio... | android|gridview | -3 | 2016-04-15T04:38:22.973Z | 2,016 | 4 | 4 | 4 | 163 | 1 | 522 | 50 | 2 | 1 | true | false | false | false | false | true | negative |
36,638,378 | Android: CustomAdapter ArrayList data Nullpointerexception | <p>I have been learning android app development for two weeks and really got stuck here. I attempted to retrieve hourly-forecast data (which is in JSON format) from OpenWeatherMap API in a ArrayList that can be fitted into a Listview with three elements by a customised Adapter. If the user enter a city name, s/he shoul... | I have been learning android app development for two weeks and really got stuck here. I attempted to retrieve hourly-forecast data (which is in JSON format) from OpenWeatherMap API in a ArrayList that can be fitted into a Listview with three elements by a customised Adapter. If the user enter a city name, s/he should b... | android|json|listview|nullpointerexception|adapter | 0 | 2016-04-15T04:38:41.287Z | 2,016 | 4 | 4 | 4 | 205 | 6 | 936 | 58 | 5 | 5 | true | false | false | false | false | false | zero |
36,638,380 | ImageView with Matrix scale in ViewPager issue | <p>I have a ImageView which can be dragged, scaled and zoomed and I am using the following class to do it:</p>
<pre><code>import android.content.Context;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.MotionEvent;
imp... | I have a ImageView which can be dragged, scaled and zoomed and I am using the following class to do it: [CODE] but i have a issue that is whenever I swipe the image in viewpager the viewpager loads the next image on top left everytime which looks pretty bad, but what i want the next image to be at the exact same positi... | android|android-imageview|touchimageview | 1 | 2016-04-15T04:38:46.897Z | 2,016 | 4 | 4 | 4 | 155 | 0 | 566 | 46 | 3 | 1 | true | true | false | false | false | false | low |
36,638,447 | How to get app name from package Name in android? | <p>I am developing an app in which if any new app is going install in device I have to get app name from package name of that app when app is properly installed for this I am doing that below code. but it always show (unknown) message to me not app name.Please help me.</p>
<p>here is my code:-</p>
<pre><code> publ... | I am developing an app in which if any new app is going install in device I have to get app name from package name of that app when app is properly installed for this I am doing that below code. but it always show (unknown) message to me not app name.Please help me. here is my code:- [CODE] | android | 0 | 2016-04-15T04:45:21.617Z | 2,016 | 4 | 4 | 4 | 1,488 | 1 | 291 | 49 | 1 | 1 | true | false | false | false | false | false | zero |
36,638,500 | Runtime Error in android emulator but not in device | <p><em>I am new to Android world,I have created a Game with single Activity . this game usages a grid View and inside that i am adding many(~150 ) Image Views dynamically in a loop .
This game is working fine in my Device but when i am running it in an emulator (1GB RAM API:21 ) it is giving the below error in log cat.... | I am new to Android world,I have created a Game with single Activity . this game usages a grid View and inside that i am adding many(~150 ) Image Views dynamically in a loop . This game is working fine in my Device but when i am running it in an emulator (1GB RAM API:21 ) it is giving the below error in log cat. I am n... | android|performance|android-studio | -1 | 2016-04-15T04:51:45.717Z | 2,016 | 4 | 4 | 4 | 792 | 2 | 485 | 51 | 3 | 1 | true | false | false | false | false | true | negative |
36,638,517 | How to Update row in SQLite Table using Model Class? | <p>I am new to android Programming. I have been stuck on this issue all day and everywhere I look to find a solution, through other questions and code examples, nothing seems to line up with the method I am creating this app and as a beginner I have to admit I am totally lost. I haven't got a lot of the tecnical jargon... | I am new to android Programming. I have been stuck on this issue all day and everywhere I look to find a solution, through other questions and code examples, nothing seems to line up with the method I am creating this app and as a beginner I have to admit I am totally lost. I haven't got a lot of the tecnical jargon in... | android|sqlite|android-studio | 0 | 2016-04-15T04:53:14.763Z | 2,016 | 4 | 4 | 4 | 596 | 2 | 1,262 | 52 | 3 | 5 | true | false | false | false | false | false | zero |
36,638,551 | Chromecast Route Item in Toolbar Not disappearing - Android | <p>I have just downloaded and run google example to check. It seems the problem also persists in that too</p>
<p><a href="https://github.com/googlecast/CastCompanionLibrary-android" rel="nofollow">Android Video cast Example project dependant Library</a></p>
<p><a href="https://github.com/googlecast/CastCompanionLibra... | I have just downloaded and run google example to check. It seems the problem also persists in that too Android Video cast Example project dependant Library Android Video cast Example project What steps have done are: Open App which and observe google cast Item in toolbar (thats mean there is some chromecast device avai... | android|google-cast | 0 | 2016-04-15T04:57:14.183Z | 2,016 | 4 | 4 | 4 | 100 | 0 | 791 | 59 | 2 | 0 | false | true | false | false | false | false | zero |
36,638,627 | AppCompat theme losing all the blue title styling | <p>I have an AppCompatActivity containing a ListView that I am displaying as a Dialog (i.e. a list asking the user to take a photo or pick an image from the gallery).</p>
<p>However it says I must use <code>Theme.AppCompat</code> for the Dialog. So I use</p>
<pre><code><style name="CameraMenuTheme" parent="Theme.A... | I have an AppCompatActivity containing a ListView that I am displaying as a Dialog (i.e. a list asking the user to take a photo or pick an image from the gallery). However it says I must use Theme.AppCompat for the Dialog. So I use [CODE] However the resulting title has a black color and no underline, in contrast to th... | android|android-appcompat|android-theme|android-styles|android-dialog | 0 | 2016-04-15T05:04:49.723Z | 2,016 | 4 | 5 | 4 | 181 | 2 | 573 | 49 | 5 | 2 | true | false | false | false | false | false | zero |
36,638,688 | Visual Studio 2013 Android SDK Manager not working | <p>In Visual Studio 2013 when I go to Tools->Android->Android SDK Manager, the dialog is not showing up. In the Xamarin Diagnostics, I get the following:</p>
<pre><code>[I:]: Tracking android devices started
[D:]: Tracking avd started
[D:]: avd watcher *.ini ... | In Visual Studio 2013 when I go to Tools->Android->Android SDK Manager, the dialog is not showing up. In the Xamarin Diagnostics, I get the following: [CODE] From another SO post I've seen that a possible solution is to add set java_exe="C:\Program Files\Java\jdk1.8.0_77\bin\java.exe" under find_java.bat within the And... | android|visual-studio-2013|sdk|xamarin.android | 4 | 2016-04-15T05:11:05.497Z | 2,016 | 4 | 5 | 4 | 1,454 | 0 | 510 | 50 | 4 | 1 | true | true | false | false | false | false | low |
36,638,708 | getting the image in bitmap but returning black pixels only | <p>I am tried to set the image bitmap it was showing black pixels and i also tried Image URI but again setting black pixels But when i debugged it , the bitmap and uri image are getting the correct image but both the method are not able to set it in imageview.</p>
<pre><code>`ImageView imageView = (ImageView) rootView... | I am tried to set the image bitmap it was showing black pixels and i also tried Image URI but again setting black pixels But when i debugged it , the bitmap and uri image are getting the correct image but both the method are not able to set it in imageview. [CODE] see the image here | android|imageview|android-bitmap | 0 | 2016-04-15T05:13:01.250Z | 2,016 | 4 | 5 | 4 | 539 | 2 | 283 | 59 | 3 | 1 | true | false | false | false | false | false | zero |
36,638,756 | Unable to build apk: The number of method references cannot exceed 64K | <p>I have been trying to build the apk file for my app, however, I am getting the error: The number of method references cannot exceed 64K.</p>
<p>Here are the errors,</p>
<p>Error:The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at <a href="https://developer.android.c... | I have been trying to build the apk file for my app, however, I am getting the error: The number of method references cannot exceed 64K. Here are the errors, Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.h... | android|gradle|apk | 29 | 2016-04-15T05:17:59.127Z | 2,016 | 4 | 5 | 4 | 51,488 | 3 | 1,151 | 70 | 3 | 2 | true | false | true | true | true | false | high |
36,638,804 | Android Studio Gradle project sync complete with errors | <p>I recently decided to learn Android programming, so I installed Android Studio and Android SDK on my Ubuntu machine. The issue is when I build a new project, it says : </p>
<pre><code>Gradle Sync completed with some erros
</code></pre>
<p>and the log is :</p>
<pre><code>/home/moein/apps/android-studio-projects/Te... | I recently decided to learn Android programming, so I installed Android Studio and Android SDK on my Ubuntu machine. The issue is when I build a new project, it says : [CODE] and the log is : [CODE] my build.gradle: [CODE] | android|android-studio|gradle|android-gradle-plugin | 0 | 2016-04-15T05:22:52.330Z | 2,016 | 4 | 5 | 4 | 4,265 | 5 | 222 | 55 | 4 | 3 | true | false | true | false | false | false | zero |
36,638,871 | Getting error on Dialog DISMISS even after checking Dialog not equal to Null | <p>I am getting this error even after checking if (dialog != null and dialog.isShowing()). Does anyone have any idea what could be reason of it happening. </p>
<p>Below is my stack trace and Class code. Thanks in advance</p>
<pre><code> STACK_TRACE=java.lang.IllegalArgumentException: View=com.android.internal.policy.... | I am getting this error even after checking if (dialog != null and dialog.isShowing()). Does anyone have any idea what could be reason of it happening. Below is my stack trace and Class code. Thanks in advance [CODE] This is class: [CODE] | android | 0 | 2016-04-15T05:27:59.633Z | 2,016 | 4 | 5 | 4 | 355 | 1 | 238 | 76 | 1 | 2 | true | false | false | false | false | false | zero |
36,638,955 | Why Android shows Two Cursors in One EditText having two Typefaces | <p>I have an application which shows two languages[Urdu,English] in one edittext, and both of them have their own typeface also, now when both languages are written in the edittext, two cursors are shown for each languages, which seems like a strange quirk, although it does not disturb the text, but the user might get ... | I have an application which shows two languages[Urdu,English] in one edittext, and both of them have their own typeface also, now when both languages are written in the edittext, two cursors are shown for each languages, which seems like a strange quirk, although it does not disturb the text, but the user might get con... | java|android|android-edittext | 0 | 2016-04-15T05:34:34.353Z | 2,016 | 4 | 5 | 4 | 622 | 0 | 1,095 | 66 | 3 | 4 | true | true | false | false | false | false | zero |
36,638,959 | Google Login API not working on Lollipop | <h1>Google Login couldn't get Response in Lollipop</h1>
<blockquote>
<p>Hi i need to integrate google login in my app.</p>
<p>I found help from <a href="https://developers.google.com" rel="nofollow noreferrer">https://developers.google.com</a> and get code from <a href="https://github.com/googlesamples/google-services/... | Google Login couldn't get Response in Lollipop Hi i need to integrate google login in my app. I found help from https://developers.google.com and get code from https://github.com/googlesamples/google-services/tree/master/android/signin . I tested it within 4.1, 4.4 as well. It works fine in all versions but not worked ... | android|google-signin | 1 | 2016-04-15T05:34:54.210Z | 2,016 | 4 | 5 | 4 | 268 | 0 | 482 | 40 | 2 | 1 | true | true | false | false | false | false | low |
36,639,041 | Checkbox showing multiple time in grid view holder Pattern | <p>i am showing and hiding checkbox on imageview click in gridview but when i click on one imageView checkbox appear on multiple image view android and as i scroll visible checkbox goes missing when i scroll
here is my Adapter </p>
<pre><code> public class ImageAdapter extends BaseAdapter {
private Layout... | i am showing and hiding checkbox on imageview click in gridview but when i click on one imageView checkbox appear on multiple image view android and as i scroll visible checkbox goes missing when i scroll here is my Adapter [CODE] | android|gridview|checkbox|android-viewholder | 2 | 2016-04-15T05:40:26.657Z | 2,016 | 4 | 5 | 4 | 244 | 2 | 230 | 58 | 4 | 1 | true | false | false | false | false | false | low |
36,639,050 | What's wrong with my Seekbar? TAT | <p>guys,thanks for view my question(TAT)</p>
<p>i use SeekBar in a videoPlay app,on my device(XiaoMi4,api 23),it is ok.
but on other device(Nexus5 api 22,Nexus 6P,api 22),it looks like this:</p>
<p><a href="https://i.stack.imgur.com/Pr15H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pr15H.jpg" a... | guys,thanks for view my question(TAT) i use SeekBar in a videoPlay app,on my device(XiaoMi4,api 23),it is ok. but on other device(Nexus5 api 22,Nexus 6P,api 22),it looks like this: here is my xml: [CODE] and @style/MediaController_SeekBar: [CODE] it is wrong on api< 23 device i try to use default style,but it don't wor... | android|seekbar | 0 | 2016-04-15T05:41:10.730Z | 2,016 | 4 | 5 | 4 | 177 | 2 | 353 | 33 | 2 | 2 | true | false | false | false | false | false | zero |
36,639,055 | How to get ViewPager's current View which is the one show to user in onPageSelected | <p>I use this way to get ViewPager's current View :</p>
<pre><code>private class OuterAdapter extends PagerAdapter{
private SwipingVideoPage currentPage;
@Override
public Object instantiateItem(ViewGroup container, int position) {
SwipingVideoPage page = new SwipingVideoPage();
container.... | I use this way to get ViewPager's current View : [CODE] I think I can call ViewPager.getAdapter.getCurrentPage() to get current view. But I found it's not work in ViewPager.OnPageChangeListener.onPageSelected() : [CODE] Maybe the onPageSelected() is called before setPrimaryItem() , is this correct ? And how to get View... | android|android-viewpager|android-pageradapter | 1 | 2016-04-15T05:42:01.287Z | 2,016 | 4 | 5 | 4 | 4,547 | 2 | 362 | 83 | 3 | 2 | true | false | true | false | false | false | low |
36,639,061 | DatePicker and TimePicker Dialog Issue | <p>Neither <code>DatePicker</code> nor <code>TimePicker</code> dialog opening up when I do tap on <code>RelativeLayout</code> whereas to call respective dialogs I am using <code>android:onClick="setDate"</code> and <code>android:onClick="setTime"</code></p>
<p><strong>TimePicker</strong></p>
<pre><code>// On clicking... | Neither DatePicker nor TimePicker dialog opening up when I do tap on RelativeLayout whereas to call respective dialogs I am using android:onClick="setDate" and android:onClick="setTime" TimePicker [CODE] DatePicker [CODE] I am dam sure, that I have missed something in above functions As you can see below, I am also usi... | android|datepicker|dialog|datetimepicker|timepicker | 2 | 2016-04-15T05:42:30.137Z | 2,016 | 4 | 5 | 4 | 363 | 2 | 358 | 38 | 5 | 3 | true | false | false | false | false | false | low |
36,639,081 | Realm continuously crashing on arm64-v8a architecture | <p>I am splitting for different CPU architecture. </p>
<pre><code>ext.versionCodes = ['armeabi': 31, 'armeabi-v7a': 32, 'arm64-v8a': 33, 'mips': 34, 'x86': 35, 'x86_64': 36]
</code></pre>
<p>Realm is crashing in devices which have <code>arm64-v8a</code> like <strong>Galaxy S7 Edge</strong> & <strong>Note 5</stro... | I am splitting for different CPU architecture. [CODE] Realm is crashing in devices which have arm64-v8a like Galaxy S7 Edge & Note 5 . Stack trace from Google Developers Console - [CODE] Stack trace from Crashlytics [CODE] | android|realm | 0 | 2016-04-15T05:43:57.363Z | 2,016 | 4 | 5 | 4 | 385 | 0 | 222 | 53 | 2 | 3 | true | true | false | false | false | false | zero |
36,639,334 | Latest android studio update doesn't support percent layouts? | <p>Using the percent layout throws an exception in design view: Exception raised during rendering: android/support/percent/R$styleable or Exception raised during rendering: 8 ava.lang.ArrayIndexOutOfBoundsException: 8
at com.android.tools.idea.rendering.AarResourceClassGenerator.generateStyleable(AarResourceClassGe... | Using the percent layout throws an exception in design view: Exception raised during rendering: android/support/percent/R$styleable or Exception raised during rendering: 8 ava.lang.ArrayIndexOutOfBoundsException: 8 at com.android.tools.idea.rendering.AarResourceClassGenerator.generateStyleable(AarResourceClassGenerator... | android|android-studio | 3 | 2016-04-15T06:02:45.037Z | 2,016 | 4 | 6 | 4 | 445 | 1 | 514 | 61 | 2 | 1 | true | false | false | false | false | false | low |
36,639,340 | Duplicate files copied in APK Error | <p>First off, Ive researched the forms and found many topics covering this. However, I have attempted all options that I found and nothing seems to work. Here is the error:</p>
<p>Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.</p>
<blockquote>
<p>com.android.build.api.transform.T... | First off, Ive researched the forms and found many topics covering this. However, I have attempted all options that I found and nothing seems to work. Here is the error: Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. com.android.build.api.transform.TransformException: com.android.bui... | java|android | 0 | 2016-04-15T06:03:02.283Z | 2,016 | 4 | 6 | 4 | 527 | 0 | 715 | 35 | 2 | 1 | true | true | false | false | false | false | zero |
36,639,355 | android malloc crash when using libc_malloc_debug_leak | <p>I was trying to investigate my native memory usage on Android 6.0, but my app keeps crashing when trying to malloc some memory. The steps are as follows:</p>
<ol>
<li><p>I dowlownded libc_malloc_debug_leak.so from CM rom for my phone(Nexus 5)</p></li>
<li><p>Set libc.debug.malloc 1.</p></li>
<li><p>restart my phone... | I was trying to investigate my native memory usage on Android 6.0, but my app keeps crashing when trying to malloc some memory. The steps are as follows: I dowlownded libc_malloc_debug_leak.so from CM rom for my phone(Nexus 5) Set libc.debug.malloc 1. restart my phone. install my app. on old android devices like 4.4 , ... | android|debugging|android-ndk|malloc|native-code | 1 | 2016-04-15T06:04:09.543Z | 2,016 | 4 | 6 | 4 | 1,069 | 1 | 718 | 54 | 5 | 1 | true | false | false | false | false | false | low |
36,639,381 | The Activity that use the Theme.Dialog when i exit app but the dialog still show | <p>1.In my service when i accept a alram info i show a Activity Dialog.</p>
<pre><code> <activity
android:name="com.teco.powercloud.common.EmergencyRemindActivity"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:theme="@style/DialogActivityStyle" &... | 1.In my service when i accept a alram info i show a Activity Dialog. [CODE] 2.when i exit app i use the below code. [CODE] 3.But the problem is that:sometimes,the activity dialog isn't showing, then i exit app but i occurs that the Activity Dialog is showing。why? | android|android-activity|android-alertdialog|android-theme | 0 | 2016-04-15T06:05:47.207Z | 2,016 | 4 | 6 | 4 | 146 | 0 | 263 | 80 | 4 | 2 | true | true | false | false | false | false | zero |
36,639,412 | Error while running Android emulator from command line | <p>I am running an automated test and I have completed setting up the Android environment. After setting up the emulator one emulator is showing for the command <strong>android list avd</strong>. And following that when I try the command <strong>android avd</strong> the following response is raising </p>
<pre><code>E... | I am running an automated test and I have completed setting up the Android environment. After setting up the emulator one emulator is showing for the command android list avd . And following that when I try the command android avd the following response is raising [CODE] I haven't installed any packages apart from the ... | android|command-line|android-emulator|avd | 1 | 2016-04-15T06:08:15.483Z | 2,016 | 4 | 6 | 4 | 108 | 0 | 427 | 54 | 4 | 1 | true | true | false | false | false | false | low |
36,639,445 | Create a list of values in cms converted from feet inch | <p>I have a list of values of height in feet inch. If user change the height metric from feet inch to centimeters then the list show all the values in centimeters.</p>
<p>Here is my code for the height in feet inch:</p>
<pre><code> HorizontalPicker heightPicker = (HorizontalPicker) view.findViewById(R.id.heightPicker... | I have a list of values of height in feet inch. If user change the height metric from feet inch to centimeters then the list show all the values in centimeters. Here is my code for the height in feet inch: [CODE] Can someone please help me with this? | java|android | 1 | 2016-04-15T06:10:23.880Z | 2,016 | 4 | 6 | 4 | 129 | 0 | 250 | 55 | 2 | 1 | true | true | false | false | false | false | low |
36,639,458 | RxJava/Android: Combine result of two dependent Observables | <p>I have two <code>Observables</code>. </p>
<ol>
<li><code>Observable<A> getAObservable()</code> Returns Observable of <code>A</code></li>
<li><code>Observable<B> getBObservable(A)</code> Returns Observable of 'B'.</li>
</ol>
<p>Here <code>Observable<A></code> should execute before <code>Observable... | I have two Observables . Observable<A> getAObservable() Returns Observable of A Observable<B> getBObservable(A) Returns Observable of 'B'. Here Observable<A> should execute before Observable<B> so that it can pass its result A to getBObservable() method. Now once Observable<B> completes I need to combine the result of ... | java|android|rx-java|reactive-programming|rx-android | 11 | 2016-04-15T06:11:16.013Z | 2,016 | 4 | 6 | 4 | 2,902 | 1 | 836 | 59 | 5 | 1 | true | false | true | false | true | false | medium |
36,639,511 | Send Message From Thread Created by Activity A to Activity B | <p>I currently have a <code>thread/AsyncTask</code> that I start in <code>Activity A</code>. Before that <code>AsyncTask</code> is started though, <code>Activity A</code> makes an object which takes in <code>Activity A's</code> <code>Context</code> so it can instantiate a <code>NotificationCompat.Builder</code>. The ob... | I currently have a thread/AsyncTask that I start in Activity A . Before that AsyncTask is started though, Activity A makes an object which takes in Activity A's Context so it can instantiate a NotificationCompat.Builder . The object uses this builder to make/show a notification. This object is then passed to the AsyncT... | android|android-asynctask | 3 | 2016-04-15T06:13:56.550Z | 2,016 | 4 | 6 | 4 | 253 | 3 | 818 | 60 | 2 | 0 | false | false | false | false | false | false | low |
36,639,647 | LayoutManager is not updated even after called within Handler | <p>My situation is the following: I have a RecyclerView in which I want to insert data.</p>
<p>I add data one by one until the RecyclerView is full. The data comes from a web service.</p>
<p>This is the code I use:</p>
<pre><code>@Override
public void receive(Response response) {
_adapter.add(response.getData()... | My situation is the following: I have a RecyclerView in which I want to insert data. I add data one by one until the RecyclerView is full. The data comes from a web service. This is the code I use: [CODE] The problem is that, when I run the application, the RecyclerView is not filled, like I expect (but sometimes it do... | android|android-recyclerview | 1 | 2016-04-15T06:23:38.080Z | 2,016 | 4 | 6 | 4 | 55 | 1 | 963 | 61 | 2 | 1 | true | false | false | false | false | false | low |
36,639,660 | Android circular progress bar with rounded corners | <p>I am trying to get a circular progress bar with rounded corner as shown below.
<a href="https://i.stack.imgur.com/18m4N.png" rel="noreferrer"><img src="https://i.stack.imgur.com/18m4N.png" alt="enter image description here"></a></p>
<p>But I am not able to get the rounded corner so far I am able to get the circular... | I am trying to get a circular progress bar with rounded corner as shown below. But I am not able to get the rounded corner so far I am able to get the circular progress bar. I am trying to draw it using the xml drawable. [CODE] Progressbar_onboarding_view.xml [CODE] progressbar_rounded_corner.xml [CODE] I tried using s... | android|android-drawable|xml-drawable | 29 | 2016-04-15T06:24:17.230Z | 2,016 | 4 | 6 | 4 | 15,973 | 4 | 464 | 50 | 3 | 3 | true | false | true | true | true | false | high |
36,639,686 | Adding Tablayout and Toolbar to the Top of the screen | <p>I want to create <code>DetailActivity</code> for My app . I want To achieve layout some thing like This .</p>
<p><a href="https://i.stack.imgur.com/232OD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/232OD.jpg" alt="enter image description here"></a></p>
<p>Look at to the green rectangle .it i... | I want to create DetailActivity for My app . I want To achieve layout some thing like This . Look at to the green rectangle .it is contain Toolbar and Tablayout . When we scroll down and when toolbar Touch the Tablayout . They pinned to the top of the screen. I Think this Layout use the Scroll and ... and use The Toolb... | android|android-layout|material-design|android-toolbar|android-tablayout | 0 | 2016-04-15T06:25:49.877Z | 2,016 | 4 | 6 | 4 | 63 | 0 | 458 | 53 | 5 | 2 | true | true | false | false | false | false | zero |
36,639,689 | Android: Proguard error in eclipse | <p>I am trying to built the signed apk of my app. But i am getting the error pop up as</p>
<pre><code>Proguard returned with error code 1. See console
</code></pre>
<p>And error log in console as :</p>
<pre><code>[2016-04-15 11:36:44 - MyApp] Proguard returned with error code 1. See console
[2016-04-15 11:36:44 - My... | I am trying to built the signed apk of my app. But i am getting the error pop up as [CODE] And error log in console as : [CODE] I am not able to understand what is the issue. For last version it works fine. I just provide support to Marsh Mellow in this version. Please suggest me what changes or steps to perform to bui... | android|proguard|android-support-library|android-proguard | 0 | 2016-04-15T06:25:58.663Z | 2,016 | 4 | 6 | 4 | 171 | 1 | 358 | 34 | 4 | 2 | true | false | false | false | false | false | zero |
36,639,822 | When ever I want to load XML file exception occur: System.Xml.XmlException: Data at the root level is invalid | <pre><code><?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>
<Collection>
<Book Id='1' ISBN='1-100000ABC-200'>
<Title>Principle of Relativity</Title>
<!-- Famous physicist -->
<Author>Albert Einstein</Author>
<Genre&... | [CODE] When application start after 3 sec this exception occur: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1 Why this exception is occurring while this XML code is correct and loading in console application and there is no exception occurring in console application. [CODE] | xml|xamarin.android | 0 | 2016-04-15T06:34:57.603Z | 2,016 | 4 | 6 | 4 | 181 | 1 | 307 | 109 | 2 | 2 | true | false | false | false | false | false | zero |
36,639,857 | MediaPlayer getProgess - incorrect values | <p>I'm using <code>MediaPlayer</code> to play some recorded audio and <code>SeekBar</code> to show the progress of the play. My problem is: when I click on the <code>SeekBar</code> to jump to a time position the following example happens and i see on the Log when i want to see the progess: </p>
<blockquote>
<p>getpr... | I'm using MediaPlayer to play some recorded audio and SeekBar to show the progress of the play. My problem is: when I click on the SeekBar to jump to a time position the following example happens and i see on the Log when i want to see the progess: getprogress(ms): 10000 getprogress(ms): 9956 getprogress(ms): 10000 So ... | android|audio | 0 | 2016-04-15T06:37:10.857Z | 2,016 | 4 | 6 | 4 | 87 | 1 | 768 | 41 | 2 | 3 | true | false | false | false | false | false | zero |
36,639,931 | In android studio, I want to compare the values entered in a Edit text fields to the DB | <p>i am having a sign up page and getting username and password through edit text fields and storing them in a database without ID,now i need to compare these username and password stored in the database to that of the edit texts in another activity named "login" and want to check if they match.
This is my Signup.java ... | i am having a sign up page and getting username and password through edit text fields and storing them in a database without ID,now i need to compare these username and password stored in the database to that of the edit texts in another activity named "login" and want to check if they match. This is my Signup.java cod... | android|database|android-studio|android-edittext|android-applicationinfo | 0 | 2016-04-15T06:41:23.073Z | 2,016 | 4 | 6 | 4 | 2,401 | 2 | 329 | 87 | 5 | 1 | true | false | false | false | false | false | zero |
36,639,976 | Storing data on a Firebase Database by creating seperate instances for an object | <p>This is my Login Activity. Here the user is prompted to enter his details and the data is sent to a firebase database.</p>
<pre><code> public class LoginActivity extends AppCompatActivity {
private EditText ET_fname;
private EditText ET_lname;
private EditText ET_NIC;
private EditText ET_email;
... | This is my Login Activity. Here the user is prompted to enter his details and the data is sent to a firebase database. [CODE] This is my User Class [CODE] The Login Activity is used to send the data in the text fields to a Firebase Database. And everytime I run the app, it replaces the user instance created. I want to ... | android|firebase-realtime-database | 0 | 2016-04-15T06:43:50.400Z | 2,016 | 4 | 6 | 4 | 724 | 2 | 440 | 80 | 2 | 2 | true | false | false | false | false | false | zero |
36,640,014 | Mobile device cannot access MAMP servier | <p>I have a web service that is hosted on my MAMP server. The ip address that I got was <a href="http://192.168.1.5:80/gca.php" rel="nofollow">http://192.168.1.5:80/gca.php</a>. However, I cannot seem to be able to access this site from any physical mobile device. When I load up the emulator in my computer, it manages ... | I have a web service that is hosted on my MAMP server. The ip address that I got was http://192.168.1.5:80/gca.php . However, I cannot seem to be able to access this site from any physical mobile device. When I load up the emulator in my computer, it manages to connect to it. Any other device that loads the app gets a ... | php|android|mamp | 0 | 2016-04-15T06:46:10.253Z | 2,016 | 4 | 6 | 4 | 65 | 0 | 587 | 40 | 3 | 1 | true | true | false | false | false | false | zero |
36,640,086 | AWS S3 TransferListener receive duplicated id of COMPLETED | <p>I downloaded S3TransferUtilitySample from <a href="https://github.com/awslabs/aws-sdk-android-samples" rel="nofollow">https://github.com/awslabs/aws-sdk-android-samples</a>. Then add the following code in it's UploadActivity for test:</p>
<pre><code> private void uploadFiles() {
File dir = new File("/sto... | I downloaded S3TransferUtilitySample from https://github.com/awslabs/aws-sdk-android-samples . Then add the following code in it's UploadActivity for test: [CODE] and my UploadListener looks like this: [CODE] the uploadFiles() is called in some Button Click listener. Then I got the follow log: [CODE] You see, some of t... | android|amazon-web-services|file-upload|amazon-s3 | 0 | 2016-04-15T06:50:24.383Z | 2,016 | 4 | 6 | 4 | 258 | 1 | 469 | 58 | 4 | 3 | true | false | false | false | false | false | zero |
36,640,188 | ANDROID JSON Retrieve multiple values from a nested key | <p>First I want to retrieve all the rate values which are nested in the rating name and assume i will not know how many number of ratings in there so there should be some kind of loop that check them. The json object is shown below.</p>
<pre><code>{
"restaurant": [
{
"restaurantId": "1",
"restaurantN... | First I want to retrieve all the rate values which are nested in the rating name and assume i will not know how many number of ratings in there so there should be some kind of loop that check them. The json object is shown below. [CODE] Below is the code which seems not quite right at the retrieveng part in the while l... | java|android|json | -2 | 2016-04-15T06:55:58.720Z | 2,016 | 4 | 6 | 4 | 2,322 | 3 | 628 | 55 | 3 | 2 | true | false | false | false | false | true | negative |
36,640,192 | Android - Invoking activity with singletask again results black screen on android l | <p>I have a <code>MainAcitvity(Singletask)</code>, a <code>SecondActivity</code>, and a <code>ForwardActivity</code>:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConte... | I have a MainAcitvity(Singletask) , a SecondActivity , and a ForwardActivity : [CODE] And this is SecondActivity : [CODE] This is ForwardActivity : [CODE] On android 5.0+, this causes black screen. If I add SecondAcitvity with windowIsTranslucent, the problem of black screen dismiss. How to solve the problem of black s... | android | 0 | 2016-04-15T06:56:17.683Z | 2,016 | 4 | 6 | 4 | 166 | 0 | 380 | 83 | 1 | 3 | true | true | false | false | false | false | zero |
36,640,223 | How to place EditText and ImageButton correctly on Android | <p>I have this layout : </p>
<pre><code> <LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp">
<EditText
... | I have this layout : [CODE] This layout looks like this : How can I change my current code so that the imagebutton can be displayed? Thanks. EDIT : Now it looks like this : | android|android-layout|android-edittext|android-imagebutton | 3 | 2016-04-15T06:57:33.200Z | 2,016 | 4 | 6 | 4 | 637 | 5 | 172 | 58 | 4 | 1 | true | false | false | false | false | false | low |
36,640,267 | Change fontface of components used inside a library project | <p>Is it possible to change the fontface of components used inside an android library project?</p>
<p>To be more specific: I am using the library '<a href="https://github.com/jrejaud/Onboarder" rel="nofollow noreferrer">Onboarder</a>' to display an introduction when starting the app for the first time. Now i got the r... | Is it possible to change the fontface of components used inside an android library project? To be more specific: I am using the library ' Onboarder ' to display an introduction when starting the app for the first time. Now i got the requirement to use a certain font wherever text is displayed. With the ' Caligraphy ' l... | android|android-theme|android-styles|android-library | 2 | 2016-04-15T07:00:23.620Z | 2,016 | 4 | 7 | 4 | 30 | 1 | 803 | 59 | 4 | 2 | true | false | false | false | false | false | low |
36,640,315 | VS 2015 Xamarin: Warning IDE0006 Error encountered while loading the project | <p>I am developing an Android app using Xamarin. </p>
<p>Visual Studio shows this warning, and I don't know what it means. I've followed the instructions but I can't seem to find the <code>temp\\file</code></p>
<pre><code> Severity Code Description Project File Line Suppression State Detail Descripti... | I am developing an Android app using Xamarin. Visual Studio shows this warning, and I don't know what it means. I've followed the instructions but I can't seem to find the temp\\file [CODE] The full source is available on github . | xamarin|visual-studio-2015|xamarin.android | 9 | 2016-04-15T07:02:35.493Z | 2,016 | 4 | 7 | 4 | 33,145 | 7 | 230 | 76 | 3 | 1 | true | false | true | true | false | false | medium |
36,640,372 | Android upload multiple files to AWS S3 failed | <p>I downloaded S3TransferUtilitySample from <a href="https://github.com/awslabs/aws-sdk-android-samples" rel="nofollow">https://github.com/awslabs/aws-sdk-android-samples</a>. Start S3TransferUtility | Manage uploads | Upload an image
choose an image(my test image is a file about 23M). Then it start to transfer . This... | I downloaded S3TransferUtilitySample from https://github.com/awslabs/aws-sdk-android-samples . Start S3TransferUtility | Manage uploads | Upload an image choose an image(my test image is a file about 23M). Then it start to transfer . This is the log: [CODE] Then there are no more logs and the progress stop for ever! Af... | android|amazon-web-services|file-upload|amazon-s3 | 0 | 2016-04-15T07:05:28.337Z | 2,016 | 4 | 7 | 4 | 940 | 1 | 550 | 46 | 4 | 2 | true | false | false | false | false | false | zero |
36,640,427 | recyclerview not loading adapter values in a fragment | <p>I have a base navigation drawer activity, which will load a fragment. The fragment. The fragment has a recycler view in its layout. The recycler view has an adapter which use Glide to load images from internet. I'm not able to get the image loaded. (Have added the Internet permission in manifest).
My Base activity ... | I have a base navigation drawer activity, which will load a fragment. The fragment. The fragment has a recycler view in its layout. The recycler view has an adapter which use Glide to load images from internet. I'm not able to get the image loaded. (Have added the Internet permission in manifest). My Base activity is: ... | android|android-fragments|android-recyclerview|android-glide | 1 | 2016-04-15T07:08:02.423Z | 2,016 | 4 | 7 | 4 | 1,982 | 1 | 427 | 53 | 4 | 6 | true | false | false | false | false | false | low |
36,640,430 | -App taking 30 seconds to startup after using of new instant run feature in android studio 2.0? | <p>The problem is my application showing white screen for 30 seconds or more than that then launch the launcher activity. I am Using Android studio 2.0 and gradel 2.0.0. Also tried searching any solution for 4 hours but didn't find anything. Even I tried disable the debuggable and run, still app took 30 seconds to laun... | The problem is my application showing white screen for 30 seconds or more than that then launch the launcher activity. I am Using Android studio 2.0 and gradel 2.0.0. Also tried searching any solution for 4 hours but didn't find anything. Even I tried disable the debuggable and run, still app took 30 seconds to launch.... | android|android-studio|android-gradle-2.0 | 4 | 2016-04-15T07:08:14.887Z | 2,016 | 4 | 7 | 4 | 656 | 1 | 873 | 95 | 3 | 0 | false | false | false | false | false | false | low |
36,640,801 | Crop the largest rectangle using OpenCV | <p>I am using openCV and tesseract to read cards. I am currently stuck at "how to crop the largest rectangle after I have detected all the rectangles and squares in from camera. Below is the code, please have a look.</p>
<pre><code> public Mat onCameraFrame(CvCameraViewFrame inputFrame) {
if (Math.random()... | I am using openCV and tesseract to read cards. I am currently stuck at "how to crop the largest rectangle after I have detected all the rectangles and squares in from camera. Below is the code, please have a look. [CODE] | android|opencv | 0 | 2016-04-15T07:26:06.643Z | 2,016 | 4 | 7 | 4 | 930 | 1 | 220 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
36,640,903 | how to handle the app if the server is not available | <p>hellow there. i have a app that is based on remote server. my app works perfectly if the server is running and crashes if the server is not available.i am testing the app in localhost so i want to handle it, my code for async task is below.</p>
<pre><code> public class UserBackgroundTask extends AsyncTask<Str... | hellow there. i have a app that is based on remote server. my app works perfectly if the server is running and crashes if the server is not available.i am testing the app in localhost so i want to handle it, my code for async task is below. [CODE] | android | 0 | 2016-04-15T07:31:49.057Z | 2,016 | 4 | 7 | 4 | 133 | 2 | 247 | 52 | 1 | 1 | true | false | false | false | false | false | zero |
36,640,925 | how to set two xml file together as background | <p>i want ripple effect and border around my cardview, and i have two xml file
one for border and other is for riple effect, so how can i set on my cardview as background</p>
<p>here is my code</p>
<p>shape.xml(v17)</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http:/... | i want ripple effect and border around my cardview, and i have two xml file one for border and other is for riple effect, so how can i set on my cardview as background here is my code shape.xml(v17) [CODE] ripple.xml(v21) [CODE] and here is my cardview that i want to set both thing together.. cardview.xml [CODE] how ca... | android|android-studio | 2 | 2016-04-15T07:32:44.917Z | 2,016 | 4 | 7 | 4 | 2,482 | 3 | 410 | 46 | 2 | 3 | true | false | false | false | false | false | low |
36,640,971 | Android Application crash due to the crash in any third party library project | <p>In my android application i am using a third party library for keyboard. i have integrated it successfully and it works fine but i have one issue.</p>
<p>Sometimes this library project crash resulting crash in my application. </p>
<p>Is there any way if the crash happen in library project then my app not crash ?</... | In my android application i am using a third party library for keyboard. i have integrated it successfully and it works fine but i have one issue. Sometimes this library project crash resulting crash in my application. Is there any way if the crash happen in library project then my app not crash ? Please help. [CODE] | android|crash|keyboard | 0 | 2016-04-15T07:34:34.540Z | 2,016 | 4 | 7 | 4 | 236 | 0 | 318 | 77 | 3 | 1 | true | true | false | false | false | false | zero |
36,641,036 | Migrating Eclipse android project with NDK and Gstreamer usage to Android Studio | <p>I have a perfectly working android project in Eclipse, the project includes NDK support and uses Gstreamer.
When I migrate the project from Eclipse to Android Studio all sorts of problems pop up, and I just cant successfully compile the project.</p>
<p>I did a thorough research on each and every error I've encounte... | I have a perfectly working android project in Eclipse, the project includes NDK support and uses Gstreamer. When I migrate the project from Eclipse to Android Studio all sorts of problems pop up, and I just cant successfully compile the project. I did a thorough research on each and every error I've encountered but sti... | android|eclipse|android-studio|android-ndk|gstreamer | 1 | 2016-04-15T07:37:56.100Z | 2,016 | 4 | 7 | 4 | 956 | 1 | 6,878 | 80 | 5 | 4 | true | false | false | false | false | false | low |
36,641,092 | how to get code from json object | <p>I am working with volley for network calling in android. my webservice is send me response object like that </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>{
"Code": 200,
"Message": "Record Found",
... | I am working with volley for network calling in android. my webservice is send me response object like that [CODE] now i want to read the code and message from this object. but failed to do so. I am using this code for getting this data. [CODE] help me to read the code from this object. i am not getting the exact solut... | android|json|android-volley | -1 | 2016-04-15T07:41:13.427Z | 2,016 | 4 | 7 | 4 | 101 | 3 | 324 | 32 | 3 | 2 | true | false | false | false | false | true | negative |
36,641,155 | Android View click freezes and not responding for 1 to 2 seconds | <p>I have been creating a music player of my own. And when i click the list item, my view freezes for 1 to 2 seconds, How can i prevent my view from freezing.</p>
<p>I have tried asynctak, yet it hangs, anyway <strong><code>ActivityUtil.goPlayHome_Ser(getActivity(), finalI, gridType);</code></strong> just calls <stron... | I have been creating a music player of my own. And when i click the list item, my view freezes for 1 to 2 seconds, How can i prevent my view from freezing. I have tried asynctak, yet it hangs, anyway ActivityUtil.goPlayHome_Ser(getActivity(), finalI, gridType); just calls Service only. I almost finished my music player... | android | 0 | 2016-04-15T07:44:53.820Z | 2,016 | 4 | 7 | 4 | 72 | 2 | 442 | 64 | 1 | 3 | true | false | false | false | false | false | zero |
36,641,161 | Converting a json array to json object in android using gson? | <p>I am passing a json array from activity A to activity B.Then I am using the GSON library to insert a value into the array.This is my current code.</p>
<pre><code>public void gsonResponse(String json) {
try {
JSONObject jsonObject = new JSONObject(json);
JSONArray jsonArray = jsonObject.getJSONAr... | I am passing a json array from activity A to activity B.Then I am using the GSON library to insert a value into the array.This is my current code. [CODE] The output for this is :- [CODE] But my desired output should be something like :- [CODE] How can I achieve it? Any suggestion or help is appreciated.Thank You. | java|android|arrays|json|gson | 5 | 2016-04-15T07:45:13.827Z | 2,016 | 4 | 7 | 4 | 6,924 | 3 | 314 | 61 | 5 | 3 | true | false | true | false | false | false | low |
36,641,183 | Android cannot execute restful url | <p>I want to pass some parameters to a php script sitting on a webserver. The url is <a href="http://tom.byethost3.com/gcmapp/gcm.php?shareRegId=true" rel="nofollow">http://tom.byethost3.com/gcmapp/gcm.php?shareRegId=true</a>.
On the php script side, it is supposed to detect with GET that shareRegId is not null and th... | I want to pass some parameters to a php script sitting on a webserver. The url is http://tom.byethost3.com/gcmapp/gcm.php?shareRegId=true . On the php script side, it is supposed to detect with GET that shareRegId is not null and then gather the other information via POST. A text file will then be generated. I have tes... | php|android|rest|restful-url | 1 | 2016-04-15T07:46:12.717Z | 2,016 | 4 | 7 | 4 | 39 | 1 | 642 | 34 | 4 | 3 | true | false | false | false | false | false | low |
36,641,205 | Spinners values are not setting correctly | <p>I am fetching data from online XML web URL and getting data in successufully. I am using <strong>hashmap key and value</strong> from it...and the key and values I am getting is like this below in my LOGCAT-</p>
<pre><code>{
Jackfruit=[Cabbage, Kesar, Amond],
Date=[van, hall, Brinjal],
Amond=[hall, van, Brinjal]
}... | I am fetching data from online XML web URL and getting data in successufully. I am using hashmap key and value from it...and the key and values I am getting is like this below in my LOGCAT- [CODE] 1. When i first launch the android app the spinner and spinner2 gets populated in spinner all data are populated correctly ... | java|android|xml-parsing|hashmap|android-spinner | 4 | 2016-04-15T07:47:15.520Z | 2,016 | 4 | 7 | 4 | 77 | 1 | 875 | 41 | 5 | 3 | true | false | false | false | false | false | low |
36,641,292 | Custom ArrayAdapter filtering | <p>Can somebody tell why nothing changed on screen when i'm using filter. Under debug i can see that here:</p>
<pre><code>@Override
public Filter getFilter() {
Filter filter = new Filter() {
@SuppressWarnings("unchecked")
@Override
protected void publishResults(CharSequence constraint, Filt... | Can somebody tell why nothing changed on screen when i'm using filter. Under debug i can see that here: [CODE] mFilteredEmployeeItems has correct filtered count of elements, but after notifyDataSetChanged() nothing changed on screen. Here is my full code: [CODE] | android|listview|android-arrayadapter | 0 | 2016-04-15T07:51:30.773Z | 2,016 | 4 | 7 | 4 | 96 | 0 | 262 | 29 | 3 | 2 | true | true | false | false | false | false | zero |
36,641,302 | Search and Parse Large XML Index from Tasker | <p>The site: <a href="http://w1.weather.gov/xml/current_obs/index.xml" rel="nofollow">http://w1.weather.gov/xml/current_obs/index.xml</a>; is an index of US weather stations tagged with Lat/Lon coordinates that gives current local weather observations. Of the 2257 stations in the file, each 10 line segment looks like t... | The site: http://w1.weather.gov/xml/current_obs/index.xml ; is an index of US weather stations tagged with Lat/Lon coordinates that gives current local weather observations. Of the 2257 stations in the file, each 10 line segment looks like this: [CODE] The goal is to use the android phone's GPS and Maps route informati... | android|xml|large-files|tasker | 0 | 2016-04-15T07:52:19.467Z | 2,016 | 4 | 7 | 4 | 544 | 1 | 723 | 44 | 4 | 1 | true | false | false | false | false | false | zero |
36,641,424 | IndexOutOfBoundsException: Inconsistency detected. Invalid item position | <p><a href="https://i.stack.imgur.com/UK0jE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UK0jE.png" alt="enter image description here"></a></p>
<p>I have a recylerview that have items (containing circle progress bar for survey time left)</p>
<p>I use background thread to update the <code>Circula... | I have a recylerview that have items (containing circle progress bar for survey time left) I use background thread to update the CircularProgress bar to time left When I scroll my Recyclerview I get java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 26(offset:26).state:30 MeetingSurveryA... | android|progress-bar|android-recyclerview | 3 | 2016-04-15T07:58:14.150Z | 2,016 | 4 | 7 | 4 | 1,853 | 0 | 338 | 72 | 3 | 1 | true | true | false | false | false | false | low |
36,641,556 | Unity: Android App crash with EGL Errorcode 3004 | <p>Here you can see the log. On some devices it gets stuck in the first screen, but in others (like the log owner), it simply crashes at startup</p>
<pre><code>04-15 09:59:34.586 14063-14063/com.appname W/dalvikvm: VFY: unable to resolve direct method 82: Landroid/content/res/TypedArray;.<init> (Landroid/content... | Here you can see the log. On some devices it gets stuck in the first screen, but in others (like the log owner), it simply crashes at startup [CODE] | android|unity3d|crash | 1 | 2016-04-15T08:04:21.743Z | 2,016 | 4 | 8 | 4 | 856 | 0 | 148 | 48 | 3 | 1 | true | true | false | false | false | false | low |
36,641,604 | Best way to handle signUp and Edit Sign up Functionality | <p>I am working on Android. I'm just trying to optimizing my code. Generally I have noticed so many issue which is optimize but due to some limited time we are not optimizing that. Here I have share my problem. basically in all application I have facing this same Issue.</p>
<p><strong>Problem</strong></p>
<p>What is ... | I am working on Android. I'm just trying to optimizing my code. Generally I have noticed so many issue which is optimize but due to some limited time we are not optimizing that. Here I have share my problem. basically in all application I have facing this same Issue. Problem What is the best way to handle signup Fragme... | java|android|android-fragments | 2 | 2016-04-15T08:06:40.737Z | 2,016 | 4 | 8 | 4 | 43 | 0 | 994 | 56 | 3 | 2 | true | true | false | false | false | false | low |
36,641,608 | starting an apk in a android delphi seattle application error | <p>For several reasons I don't want to use the Google Play mechanism to upgrade an android application. So I decided to make my own system to download and upgrade an android application.</p>
<p>Step 1: download the update <code>.apk</code> file.</p>
<p>Step 2: put a button in the original application so a user can c... | For several reasons I don't want to use the Google Play mechanism to upgrade an android application. So I decided to make my own system to download and upgrade an android application. Step 1: download the update .apk file. Step 2: put a button in the original application so a user can click on it to start the .apk for ... | android|delphi-10-seattle | 0 | 2016-04-15T08:06:45.557Z | 2,016 | 4 | 8 | 4 | 1,158 | 2 | 588 | 61 | 2 | 1 | true | false | false | false | false | false | zero |
36,641,628 | android camera access from delphi | <p>I'm building a simple application which acts similar to built-in camera application - takes a photo and saves it locally, with some additional aсtions. First I took Firemonkeys' <code>TCameraComponent</code>, placed it to the form and added transfered image from it to <code>TImage</code>. It works OK, I can change r... | I'm building a simple application which acts similar to built-in camera application - takes a photo and saves it locally, with some additional aсtions. First I took Firemonkeys' TCameraComponent , placed it to the form and added transfered image from it to TImage . It works OK, I can change resolution, control flash po... | android|delphi|camera|java-native-interface | 2 | 2016-04-15T08:07:31.907Z | 2,016 | 4 | 8 | 4 | 1,856 | 0 | 1,968 | 33 | 4 | 2 | true | true | false | false | false | false | low |
36,641,672 | Recyclerview with 2 layouts from objects inside other object | <p>I have a list of objects with a list of objects inside each.
for each object I would like to make 2 different layoutet rows in a recyclerView.
one layout with a string directly from the object and following another layout for each item in the list from the object</p>
<p><em>Pseudo code</em></p>
<p>Object main: str... | I have a list of objects with a list of objects inside each. for each object I would like to make 2 different layoutet rows in a recyclerView. one layout with a string directly from the object and following another layout for each item in the list from the object Pseudo code Object main: string name,list records; Objec... | android|android-recyclerview | 1 | 2016-04-15T08:10:29.203Z | 2,016 | 4 | 8 | 4 | 126 | 0 | 787 | 60 | 2 | 2 | true | true | false | false | false | false | low |
36,641,784 | How to get Attribute values from Select path or select Attribute ximpleware | <pre><code> <ConfiguredItems>
<OtapiConfiguredItem>
<Id>3117283038955</Id>
<Quantity>1693</Quantity>
<Configurators>
<ValuedConfigurator Pid="1627207" Vid="3232480" />
<ValuedConfigurator Pid="20509" Vid="28314" />
</Co... | [CODE] The above is my XML .. I need to get ValuedConfigurator PID and VID attribute values for each OtapiConfiguredItem I tried Select path vcPId.selectXPath("BatchItemFullInfoAnswer/Result/Item/ConfiguredItems/OtapiConfiguredItem/Configurators/ValuedConfigurator[@pid]"); Thanks in Advance.. | java|android|xml|vtd-xml | 1 | 2016-04-15T08:16:09.460Z | 2,016 | 4 | 8 | 4 | 967 | 2 | 293 | 75 | 4 | 1 | true | false | false | false | false | false | low |
36,641,817 | Visual Studio Android Emulator - Video recording | <p>I have a simple project up and running on VS for an android app which is just research at the moment. I want to record short (boring) videos to document people performing tasks. I have everything working fine. I have the android SDK, I have the emulator and I have the stock code which is everywhere on the internet. ... | I have a simple project up and running on VS for an android app which is just research at the moment. I want to record short (boring) videos to document people performing tasks. I have everything working fine. I have the android SDK, I have the emulator and I have the stock code which is everywhere on the internet. I h... | c#|android|visual-studio-2015|emulation | 8 | 2016-04-15T08:18:00.813Z | 2,016 | 4 | 8 | 4 | 895 | 0 | 1,214 | 48 | 4 | 3 | true | true | false | false | false | false | medium |
36,641,866 | Chrome Custom Tabs. Setting multiple toolbar items | <p>I'm implementing Chrome Custom tabs (using latest version 23.3.0) on our Android app. Most recent versions of chrome tabs allow you to add button on a bottom toolbar by using "builder.addToolbarItem()" method (other customizable stuff according to this <a href="https://stackoverflow.com/a/35743916">stack overflow an... | I'm implementing Chrome Custom tabs (using latest version 23.3.0) on our Android app. Most recent versions of chrome tabs allow you to add button on a bottom toolbar by using "builder.addToolbarItem()" method (other customizable stuff according to this stack overflow answer . Now I'm facing a problem when adding action... | android|android-toolbar|chrome-custom-tabs | 3 | 2016-04-15T08:20:23.710Z | 2,016 | 4 | 8 | 4 | 2,143 | 2 | 2,006 | 50 | 3 | 1 | true | false | false | false | false | false | low |
36,641,892 | How to make a process always be called when schedule() executed in Android? | <p>My platform is Android, and my code is a C program which runs on user space. This program will read spi data, which has a corresponding spi kernel driver.
In the driver, it makes a kernel thread, which runs a while(1) loop like below.</p>
<pre><code>while(1)
{
spi_sync(); // read 5KB data
write_data_to_ram... | My platform is Android, and my code is a C program which runs on user space. This program will read spi data, which has a corresponding spi kernel driver. In the driver, it makes a kernel thread, which runs a while(1) loop like below. [CODE] And my system HZ=1000, that means the schedule() will happen each 1ms. The whi... | android|linux|schedule | 1 | 2016-04-15T08:22:02.180Z | 2,016 | 4 | 8 | 4 | 64 | 0 | 1,071 | 75 | 3 | 1 | true | true | false | false | false | false | low |
36,641,963 | Android Textview Layout issue | <p>i need some help for textview style. I need textview with underline. I made some layout xmls. But cant get any succes.
<a href="https://i.stack.imgur.com/W6yB0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W6yB0.png" alt="Here what i got"></a>
I want have to make that line at the same line with ... | i need some help for textview style. I need textview with underline. I made some layout xmls. But cant get any succes. I want have to make that line at the same line with edittexts bottom line. Here my xml [CODE] How i can do it. | android|layout | 1 | 2016-04-15T08:25:50.590Z | 2,016 | 4 | 8 | 4 | 61 | 1 | 229 | 29 | 2 | 1 | true | false | false | false | false | false | low |
36,641,975 | Swipe to refresh on ScrollView | <p>I want to do something like facebook, when we drag the scroll view until a negative y, the activity indicator will show up and refresh the view. </p>
<p>When i implement the following code, it is working on IOS. However, when run on Android devices, the scroll y seem only possible to have 0 or more than 0 value and... | I want to do something like facebook, when we drag the scroll view until a negative y, the activity indicator will show up and refresh the view. When i implement the following code, it is working on IOS. However, when run on Android devices, the scroll y seem only possible to have 0 or more than 0 value and cannot scro... | android|xamarin|xamarin.forms | 1 | 2016-04-15T08:26:28.753Z | 2,016 | 4 | 8 | 4 | 2,672 | 1 | 400 | 30 | 3 | 1 | true | false | true | false | false | false | low |
36,642,052 | Network Inspection in Stetho with Glide and okhttp3 | <p>how to Combine Glide and Stetho to debug image loading system using okhttp3</p>
<p>I did the following</p>
<p>1.Added the dependancies</p>
<pre><code>//stetho
compile 'com.facebook.stetho:stetho:1.3.1'
compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
//glide
compile 'com.github.bumptech.glide:glide:3.7.0'
// Gl... | how to Combine Glide and Stetho to debug image loading system using okhttp3 I did the following 1.Added the dependancies [CODE] 1.Added the initialization [CODE] 3.add glide config to use okhttp3 [CODE] 4.added the GlideModule metadata tag in AndroidManifest.xml [CODE] 5.Glide loadimg images line [CODE] when I open chr... | android|debugging|android-glide|okhttp|stetho | 3 | 2016-04-15T08:29:55.917Z | 2,016 | 4 | 8 | 4 | 3,040 | 3 | 554 | 51 | 5 | 5 | true | false | true | false | false | false | low |
36,642,094 | multiplication table in android using java | <p>Implementing a simple multiplication table in android. this code doesn't help in displaying the result. where am I going wrong?</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
final int a;
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// fi... | Implementing a simple multiplication table in android. this code doesn't help in displaying the result. where am I going wrong? [CODE] | java|android|multiplication | 1 | 2016-04-15T08:32:06.863Z | 2,016 | 4 | 8 | 4 | 259 | 1 | 134 | 42 | 3 | 1 | true | false | false | false | false | false | low |
36,642,131 | Splash Screen Not worked second time only | <p>Please read carefully...
Here is my code for splash screen and backbutton Pressed.. All worked fine except when i exit <strong>first time</strong> from app,after then splash screen not appeared but after first time, every time splash screen appreared when i click on app icon. Why splash screen not appeared after fi... | Please read carefully... Here is my code for splash screen and backbutton Pressed.. All worked fine except when i exit first time from app,after then splash screen not appeared but after first time, every time splash screen appreared when i click on app icon. Why splash screen not appeared after first time exit ?? if a... | android|android-activity|splash-screen|activity-lifecycle | 0 | 2016-04-15T08:34:19.537Z | 2,016 | 4 | 8 | 4 | 964 | 1 | 410 | 41 | 4 | 3 | true | false | false | false | false | false | zero |
36,642,169 | Animation.startNow didn't work on high API Level | <p>The code which is about Animation (start and cancel, just a simple demo) works on Android API 10, but when I run it on API19, it didn't work, I don't know why?
anyone who knows why, could you guide me? </p>
<pre><code>public class Animation_Act extends AppCompatActivity implements View.OnClickListener {
priv... | The code which is about Animation (start and cancel, just a simple demo) works on Android API 10, but when I run it on API19, it didn't work, I don't know why? anyone who knows why, could you guide me? [CODE] | java|android|android-animation | 0 | 2016-04-15T08:36:30.460Z | 2,016 | 4 | 8 | 4 | 33 | 0 | 208 | 48 | 3 | 1 | true | true | false | false | false | false | zero |
36,642,299 | cpu-features.h no such file or directory webrtc Android build | <p>i am building webrtc for Android & i had followed following steps for generating webrtc library:</p>
<p>source build/android/envsetup.sh
python webrtc/build/gyp_webrtc
ninja -c out/Debug</p>
<p>this generates following error:</p>
<blockquote>
<p>ninja: build stopped: subcommand failed. ninja: Entering direc... | i am building webrtc for Android & i had followed following steps for generating webrtc library: source build/android/envsetup.sh python webrtc/build/gyp_webrtc ninja -c out/Debug this generates following error: ninja: build stopped: subcommand failed. ninja: Entering directory `./out/Release/' [3/2806] CC obj/webrtc/s... | android|c++|c|android-ndk|webrtc | 0 | 2016-04-15T08:42:47.863Z | 2,016 | 4 | 8 | 4 | 2,528 | 1 | 3,150 | 61 | 5 | 0 | false | false | false | false | false | false | zero |
36,642,307 | Connection Timeout Android | <p>i have an android app in which i hit a web service and gets the result.
Now i want is if result is getting to long to be fetched or in between request internet connection is gone then i show a message or a dialog to the user that Your connection timed out
I've tried this code but this is not working
Any help would b... | i have an android app in which i hit a web service and gets the result. Now i want is if result is getting to long to be fetched or in between request internet connection is gone then i show a message or a dialog to the user that Your connection timed out I've tried this code but this is not working Any help would be a... | android|web|connection|connection-timeout|httpconnection | 0 | 2016-04-15T08:43:06.433Z | 2,016 | 4 | 8 | 4 | 400 | 1 | 356 | 26 | 5 | 1 | true | false | false | false | false | false | zero |
36,642,392 | EditText and Paint together in android like Note+ | <p>I want to develop an application like Note+. This application install automatically in some model of cell phone like Samsung Note 5.
In this application user can enter Text into EditText and change input mode to graphic and draw line by finger over text.
User can Change mode to Text/Graphic by click on a toolbar.</p... | I want to develop an application like Note+. This application install automatically in some model of cell phone like Samsung Note 5. In this application user can enter Text into EditText and change input mode to graphic and draw line by finger over text. User can Change mode to Text/Graphic by click on a toolbar. My co... | java|android|android-edittext|android-canvas | 1 | 2016-04-15T08:46:58.290Z | 2,016 | 4 | 8 | 4 | 220 | 0 | 539 | 49 | 4 | 2 | true | true | false | false | false | false | low |
36,642,434 | Communication between main firemonkey application and local service | <p>I've got a Firemonkey application with a Local Android Service.</p>
<p>When the user opens it, he has to write something in a TEdit and when he clicks an OK button, the application starts the local android service :</p>
<pre><code>FLocationServiceConn := TLocalServiceConnection.Create; // -- android_service
FLocat... | I've got a Firemonkey application with a Local Android Service. When the user opens it, he has to write something in a TEdit and when he clicks an OK button, the application starts the local android service : [CODE] The service sends user's location to a remote server using a nethttpclient object. The problem is that I... | android|service|firemonkey | 2 | 2016-04-15T08:49:02.473Z | 2,016 | 4 | 8 | 4 | 600 | 0 | 850 | 67 | 3 | 2 | true | true | false | false | false | false | low |
36,643,001 | Add Yandex Map in android application | <p>I want to add a <strong>Yandex Map</strong> into my android application. </p>
<p>The question can be seem a little long but that is because of I shared all my codes. Thanks for your patience in advance.</p>
<p>I couldn't find much source compare to Google Maps naturally.</p>
<p><a href="https://github.com/yandex... | I want to add a Yandex Map into my android application. The question can be seem a little long but that is because of I shared all my codes. Thanks for your patience in advance. I couldn't find much source compare to Google Maps naturally. I used this source First I wanted to run a simple sample. So I used this sample.... | android|google-maps|yandex|yandex-maps|yandex-api | 2 | 2016-04-15T09:14:39.770Z | 2,016 | 4 | 9 | 4 | 4,726 | 2 | 1,115 | 37 | 5 | 4 | true | false | true | false | false | false | low |
36,643,070 | An android app using AutoCompleteTextView gives warning and doesn't get run on emulator | <p>I'm trying to make a little app to learn the AutoCompleteTextView class. Below is the code I wrote :</p>
<p>The MainActivity.java file :</p>
<p>package com.infinityfraction.autocompletetextviewlistview;</p>
<pre><code>import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.T... | I'm trying to make a little app to learn the AutoCompleteTextView class. Below is the code I wrote : The MainActivity.java file : package com.infinityfraction.autocompletetextviewlistview; [CODE] The activity_main.xml file : [CODE] On opening this application on mobile this shows : Unfortunately, "The App" has stopped.... | android|autocompletetextview | 0 | 2016-04-15T09:16:54.293Z | 2,016 | 4 | 9 | 4 | 92 | 1 | 405 | 87 | 2 | 4 | true | false | false | false | false | false | zero |
36,643,083 | can anyone tell me how do I start mp3? | <p>I am making a project ,I need to start mp3 or any loud sound automatically when the toast "Fall Detected" appears for 20 second.</p>
<pre><code> public void onSensorChanged(SensorEvent event)
{
if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER)
{
long curTime = System.currentTimeMillis()... | I am making a project ,I need to start mp3 or any loud sound automatically when the toast "Fall Detected" appears for 20 second. [CODE] | android|android-alarms | 1 | 2016-04-15T09:17:12.757Z | 2,016 | 4 | 9 | 4 | 126 | 3 | 135 | 38 | 2 | 1 | true | false | false | false | false | false | low |
36,643,102 | instant run java.lang.OutOfMemoryError: GC overhead limit exceeded | <p>I have upgraded to Android Studio 2.1 and I got this error while I am trying to build & run my corporate big project: </p>
<blockquote>
<p>Execution failed for task ':app:transformClassesWithDexForMyAppDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessExceptio... | I have upgraded to Android Studio 2.1 and I got this error while I am trying to build & run my corporate big project: Execution failed for task ':app:transformClassesWithDexForMyAppDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.Execution... | android|android-studio|android-build|android-gradle-2.0|android-instant-run | 15 | 2016-04-15T09:18:11.787Z | 2,016 | 4 | 9 | 4 | 14,188 | 4 | 1,519 | 66 | 5 | 1 | true | false | true | true | true | false | medium |
36,643,189 | imageview not hiding on custom Listview | <p>There is a custom listView where it displays the text or image or both. Now it is displaying the text or image or both but the problem is while only text display the space occupied for the imageView is still seen. I have set the Visibility to GONE also but it is not hide. </p>
<p>Adapter code for Listview:</p>
<pr... | There is a custom listView where it displays the text or image or both. Now it is displaying the text or image or both but the problem is while only text display the space occupied for the imageView is still seen. I have set the Visibility to GONE also but it is not hide. Adapter code for Listview: [CODE] Custom XML: [... | android|listview|android-imageview | 0 | 2016-04-15T09:21:39.537Z | 2,016 | 4 | 9 | 4 | 158 | 1 | 513 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
36,643,222 | Kivy Buildozer AttributeError: 'Context' object has no attribute 'hostpython' | <p>I'm trying to build an apk for a simple python3/kivy app using buildozer in the virtual machine I got straight from kivy.org, this is day2 and still no luck. I had many errors, instaled pip, updated buildozer, pip installed morse, pnglab, sh, appdirs, setuptools for py3, but now I got this error and I must admit it ... | I'm trying to build an apk for a simple python3/kivy app using buildozer in the virtual machine I got straight from kivy.org, this is day2 and still no luck. I had many errors, instaled pip, updated buildozer, pip installed morse, pnglab, sh, appdirs, setuptools for py3, but now I got this error and I must admit it rea... | android|python|apk|kivy|buildozer | 2 | 2016-04-15T09:23:01.337Z | 2,016 | 4 | 9 | 4 | 2,251 | 3 | 580 | 77 | 5 | 1 | true | false | false | false | false | false | low |
36,643,280 | Fatal Exception: java.lang.OutOfMemoryError using okhttp3 okio for download files | <p>I have a App that downlaod content from the web.
music, videos, pdfs.... like a download manager.</p>
<p>But now its is crashing everytime is it downloading content:</p>
<pre><code>E/LVN/advanced_memory_manager.c: ---------------------------------- AMM report ------------------------------
-> Memory Currently A... | I have a App that downlaod content from the web. music, videos, pdfs.... like a download manager. But now its is crashing everytime is it downloading content: [CODE] and [CODE] I already added this to my Manifest: [CODE] Code SAMPLE: [CODE] My BuildGradle: [CODE] then I have another similar method for download Video...... | java|android|okhttp|okio | 11 | 2016-04-15T09:25:44.837Z | 2,016 | 4 | 9 | 4 | 7,918 | 2 | 365 | 81 | 4 | 5 | true | false | true | false | true | false | medium |
36,643,318 | Volley post request for token Sony Lifelog | <p>I have a problem in the exchange of the authorization code for the token (Lifelog API). This is my code:</p>
<pre><code>package daniele.lifel;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.Me... | I have a problem in the exchange of the authorization code for the token (Lifelog API). This is my code: [CODE] I obtain the following error: [25337] BasicNetwork.performRequest: Unexpected response code 401 for https://platform.lifelog.sonymobile.com/oauth/2/token Any solutions? Thanks | android|oauth-2.0|android-volley|sony|sony-lifelog-api | 0 | 2016-04-15T09:27:41.220Z | 2,016 | 4 | 9 | 4 | 237 | 0 | 287 | 42 | 5 | 1 | true | true | false | false | false | false | zero |
36,643,345 | ImageViews in ListViews | <p>I have a question about <code>ImageViews</code> in a <code>ListView</code>.</p>
<p>I made a <code>ListView</code> and in every row I have 2 <code>TextViews</code> (<code>tvName</code> and <code>tvPrice</code>), I get values for <code>TextViews</code> from my DB, and an <code>ImageView</code> (<code>ivAvailability</... | I have a question about ImageViews in a ListView . I made a ListView and in every row I have 2 TextViews ( tvName and tvPrice ), I get values for TextViews from my DB, and an ImageView ( ivAvailability ) that shows if the item is available (green circle - available, red circle - unavailable) and images in use are store... | android|listview|imageview | 0 | 2016-04-15T09:29:22.183Z | 2,016 | 4 | 9 | 4 | 77 | 2 | 1,240 | 23 | 3 | 5 | true | false | false | false | false | false | zero |
36,643,628 | SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode. Can't insert data | <p>I am a novice to Android programming and am creating an barter-system app.</p>
<p>I've used SQLite as the Database and have created a DatabaseHelper class.</p>
<p>The app starts with a Login page and has a link to the Register user page. It is when inserting values into the users database that I keep getting the S... | I am a novice to Android programming and am creating an barter-system app. I've used SQLite as the Database and have created a DatabaseHelper class. The app starts with a Login page and has a link to the Register user page. It is when inserting values into the users database that I keep getting the SQLite Database is l... | android|database|sqlite|locked | 3 | 2016-04-15T09:41:59.310Z | 2,016 | 4 | 9 | 4 | 6,465 | 0 | 803 | 117 | 4 | 2 | true | true | true | false | false | false | low |
36,643,770 | Unzipping with ZipInputStream never finishes | <p>I'm using an AsyncTask to unzip a file, and all seems to be going well (all the files in the ZIP archive are extracted), but my unzip method never finishes. </p>
<p>Here's the source for my unzip class:</p>
<pre><code>public class MyUnzipper {
public static boolean unzipFileIntoDirectory(String inputFilename... | I'm using an AsyncTask to unzip a file, and all seems to be going well (all the files in the ZIP archive are extracted), but my unzip method never finishes. Here's the source for my unzip class: [CODE] When I debug this line-by-line, it runs fine until it has unzipped all files, then it gets to zis.closeEntry() , and t... | java|android|zip|zipinputstream | 2 | 2016-04-15T09:48:38.943Z | 2,016 | 4 | 9 | 4 | 3,260 | 1 | 1,422 | 44 | 4 | 2 | true | false | true | false | false | false | low |
36,643,843 | How to display my arraylist with coordinates on google maps? | <p>I want to display my arraylist filled with coordinates which I have in my MainActivity on google maps in my google maps activity. How can I do this on the easiest way?
My for loop to get the JSON Data:</p>
<pre><code>for (int j = 0; j <= 10; j++) {
JSONObject marker = placemarks.getJSONObject(j);
JSONArray coor... | I want to display my arraylist filled with coordinates which I have in my MainActivity on google maps in my google maps activity. How can I do this on the easiest way? My for loop to get the JSON Data: [CODE] My current google maps activity: [CODE] | java|android|google-maps|arraylist|coordinates | 0 | 2016-04-15T09:51:53.140Z | 2,016 | 4 | 9 | 4 | 1,195 | 2 | 248 | 60 | 5 | 2 | true | false | false | false | false | false | zero |
36,643,853 | Android GMaps v2 handle orientation change | <p>I have troubles with handling orientation change using google maps fragment.
The problem is when I use these lines to prevent Map reload when orientation changed, i do not have my land-layout loaded and when I change orientation back it throws </p>
<blockquote>
<p>Binary XML file line #19: Error inflating class f... | I have troubles with handling orientation change using google maps fragment. The problem is when I use these lines to prevent Map reload when orientation changed, i do not have my land-layout loaded and when I change orientation back it throws Binary XML file line #19: Error inflating class fragment This is manifest co... | java|android|google-maps|android-fragments | 3 | 2016-04-15T09:52:26.867Z | 2,016 | 4 | 9 | 4 | 73 | 0 | 590 | 42 | 4 | 5 | true | true | false | false | false | false | low |
36,643,891 | Getting "0" in logcat for my SharedPreferences? | <pre><code> private void aeroMindMaps(List<Details> mList) {
for (Details bean : details) {
final String urlChar = bean.getUrl();
final int idno = bean.getId();
SharedPreferences pref =getActivity().getSharedPreferences("pref", Context.MODE_PRIVATE);
SharedPreferences.E... | [CODE] I am getting first log correct and in next log getting 0,I wrote log only one time but getting the values 4 times in logcat Output of my sharedPreference is: [CODE] | android|sharedpreferences | 0 | 2016-04-15T09:53:34.937Z | 2,016 | 4 | 9 | 4 | 72 | 0 | 171 | 47 | 2 | 2 | true | true | false | false | false | false | zero |
36,643,991 | Custom button looks different on lower API in Android | <p>hello i tried solution posted on Stack overflow but not working please help on this problem.Am using custom Button which is in drawable folder</p>
<p>button_selector.xml</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk... | hello i tried solution posted on Stack overflow but not working please help on this problem.Am using custom Button which is in drawable folder button_selector.xml [CODE] button_pressed.xml [CODE] button_not_pressed.xml [CODE] but on lower API screen look like this Above API 17 it look's like this This is the actual des... | android|xml|button|android-studio|android-custom-view | 2 | 2016-04-15T09:57:08.033Z | 2,016 | 4 | 9 | 4 | 420 | 2 | 341 | 53 | 5 | 3 | true | false | false | false | false | false | low |
36,644,236 | Mockito MockApi returns null | <p><strong>PROBLEM</strong></p>
<p>I'm trying to test my <code>logIn()</code> method with Mockapi. Unfortunately every time I try to <code>subscribe</code> on my <code>Observer</code> I get <code>null object reference</code> because <code>logIn()</code> returns <code>null</code>. </p>
<p>I don't understand where ther... | PROBLEM I'm trying to test my logIn() method with Mockapi. Unfortunately every time I try to subscribe on my Observer I get null object reference because logIn() returns null . I don't understand where there problem is. Why my mocked api does not return the data? CODE ###logInTest### [CODE] ###MockAPI### [CODE] | android|mockito|retrofit|rx-java | 4 | 2016-04-15T10:08:40.547Z | 2,016 | 4 | 10 | 4 | 1,110 | 2 | 312 | 28 | 4 | 2 | true | false | false | false | false | false | low |
36,644,365 | Viewpager not delete current page position | <p>I am using <code>ViewPager</code> in side activity and add Fragment-State-Pager-Adapter and trying to remove current page position after add the some pages.but every time removed last page position.so please recommend me for use right approach for doing this.Thanks in advance.</p>
<p>This is my activity and adapter... | I am using ViewPager in side activity and add Fragment-State-Pager-Adapter and trying to remove current page position after add the some pages.but every time removed last page position.so please recommend me for use right approach for doing this.Thanks in advance. This is my activity and adapter code. [CODE] This The X... | android|checkbox|android-edittext|android-viewpager | 1 | 2016-04-15T10:14:59.193Z | 2,016 | 4 | 10 | 4 | 341 | 0 | 829 | 42 | 4 | 4 | true | true | false | false | false | false | low |
36,644,405 | Kivy Buildozer AttributeError: 'str' object has no attribute 'decode' | <p>I'm trying to build an apk for a simple python3/kivy app using buildozer in the virtual machine I got straight from kivy.org, this is day2. I had many errors, instaled pip, updated buildozer, pip installed morse, pnglab, sh, appdirs, setuptools for py3, now I'm at this error when I write $ buildozer android debug, m... | I'm trying to build an apk for a simple python3/kivy app using buildozer in the virtual machine I got straight from kivy.org, this is day2. I had many errors, instaled pip, updated buildozer, pip installed morse, pnglab, sh, appdirs, setuptools for py3, now I'm at this error when I write $ buildozer android debug, my v... | android|python-3.x|apk|kivy|buildozer | 0 | 2016-04-15T10:17:00.213Z | 2,016 | 4 | 10 | 4 | 511 | 1 | 655 | 69 | 5 | 1 | true | false | false | false | false | false | zero |
36,644,432 | Show alertDialog with radio buttons and add the selected one to a listView - Android | <p>I want to develop a simple android page whose code looks as follows</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layo... | I want to develop a simple android page whose code looks as follows [CODE] My java code is as follows. [CODE] When I click on the add item button, I want an alert dialog of radio buttons to appear. The list of radio buttons will be populated from the items array. When I choose an item and click ok it should get added t... | android|listview|android-alertdialog | 2 | 2016-04-15T10:18:06.127Z | 2,016 | 4 | 10 | 4 | 5,691 | 2 | 378 | 84 | 3 | 2 | true | false | true | false | false | false | low |
36,644,473 | Building libxml2 into NDK with Android Studio and Gradle Experimental | <p>My Android project has been going for a couple of years using Eclipse and ADT. The project makes use of 3 precompiled static libraries (curl, ssl, and crypto), and then compiles and statically links libxml2 in. The relevant lines from Android.mk are:</p>
<pre><code>LOCAL_MODULE := my_shim
LOCAL_SRC_FILES := $(... | My Android project has been going for a couple of years using Eclipse and ADT. The project makes use of 3 precompiled static libraries (curl, ssl, and crypto), and then compiles and statically links libxml2 in. The relevant lines from Android.mk are: [CODE] I'm now switching to Android Studio 2 using Gradle Experimenta... | android-studio|android-ndk|libxml2|static-linking|gradle-experimental | 1 | 2016-04-15T10:19:38.073Z | 2,016 | 4 | 10 | 4 | 813 | 1 | 647 | 69 | 5 | 2 | true | false | false | false | false | false | low |
36,644,475 | call back function between two fragments? | <p>i have first fragment and second fragment i want from the second fragment to make some thing in the frist fragent using callback with interface but i find this error</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke interface method
</code></pre>
<p><strong>interface:</strong></p>
<pre><code>publi... | i have first fragment and second fragment i want from the second fragment to make some thing in the frist fragent using callback with interface but i find this error [CODE] interface: [CODE] first fragment: [CODE] second fragment: [CODE] | android|interface|callback|fragment | -1 | 2016-04-15T10:19:41.730Z | 2,016 | 4 | 10 | 4 | 905 | 1 | 237 | 41 | 4 | 4 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.