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,963,114 | Slow multitasking for my Android app | <p>I have developed an Android app that uses GPS and sqlite. The app seems to work great, but for some reason when opening the recently used apps while my app is in that list there is a significant delay. This only happens with my app and happens on my device and the emulator. Is there something special I need to do fo... | I have developed an Android app that uses GPS and sqlite. The app seems to work great, but for some reason when opening the recently used apps while my app is in that list there is a significant delay. This only happens with my app and happens on my device and the emulator. Is there something special I need to do for c... | java|android | 0 | 2016-05-01T04:39:10.580Z | 2,016 | 5 | 4 | 6 | 106 | 1 | 1,069 | 36 | 2 | 0 | false | false | false | false | false | false | zero |
36,963,191 | MediaCodec releaseOutputBuffer causes memeory leak | <p>For some reason I am using mediacodec API to decode mp4 audio track in JNI layer, I just reflect MediaCodec/MediaExtractor/AudioTrack into jni layer and try to decode audio and video tracks, but when I am decoding the audio track I can not get the whole audio track, the log info:</p>
<pre><code>05-01 12:28:48.100 1... | For some reason I am using mediacodec API to decode mp4 audio track in JNI layer, I just reflect MediaCodec/MediaExtractor/AudioTrack into jni layer and try to decode audio and video tracks, but when I am decoding the audio track I can not get the whole audio track, the log info: [CODE] I have deleted all local referen... | android|java-native-interface|android-mediacodec | 0 | 2016-05-01T04:52:37.077Z | 2,016 | 5 | 4 | 6 | 202 | 0 | 493 | 50 | 3 | 1 | true | true | false | false | false | false | zero |
36,963,267 | App crashes when nothing is inputted when I click save button. Error should pop up | <p>Im developing a calorie app. The problem I'm having right now is if the user decided to press save without entering anything the app should notify the user they must input something in order to save calorie. The app works when the user does input the proper values of the edit text.</p>
<p>Problem : App crashes whe... | Im developing a calorie app. The problem I'm having right now is if the user decided to press save without entering anything the app should notify the user they must input something in order to save calorie. The app works when the user does input the proper values of the edit text. Problem : App crashes when user click... | java|android|android-fragments|button|toast | -2 | 2016-05-01T05:06:35.017Z | 2,016 | 5 | 5 | 6 | 79 | 5 | 407 | 82 | 5 | 2 | true | false | false | false | false | true | negative |
36,963,302 | SignalR Android client not Hitting OnConnected method in Server | <p>I have the following <code>TestHub</code> class in my server.</p>
<pre><code>public class TestHub:Hub {
public override Task OnConnected() {
//do some work here
return base.OnConnected();
}
}
</code></pre>
<p>and my android client uses the following code to start negotiating with server.</... | I have the following TestHub class in my server. [CODE] and my android client uses the following code to start negotiating with server. [CODE] I'm trying to do some work in server OnConnected() method but it won't hit. i have signalr connection successfully but i want to do some stuff in OnConnected() method. what shou... | android|signalr|signalr-hub | 1 | 2016-05-01T05:14:01.967Z | 2,016 | 5 | 5 | 6 | 166 | 0 | 328 | 63 | 3 | 2 | true | true | false | false | false | false | low |
36,963,382 | How do I add a searchbar on an ImageButton, which when clicked expands horizontally to show the textbox? | <p><strong>UI</strong></p>
<p><a href="https://i.stack.imgur.com/XOx8s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XOx8s.png" alt="enter image description here"></a></p>
<p>The top where it says Artists, Songs is a <code>PagerTitleStrip</code>. And next to it is an <code>ImageButton</code> with... | UI The top where it says Artists, Songs is a PagerTitleStrip . And next to it is an ImageButton with a search icon. Artists, Songs are implemented using fragments. What I want to achieve is that when I click the search icon, the search icon should expand over the pagetitlestrip and doing so, the place where you put the... | android|android-fragments|android-pageradapter|android-search | -1 | 2016-05-01T05:26:24.753Z | 2,016 | 5 | 5 | 6 | 49 | 1 | 679 | 104 | 4 | 1 | true | false | false | false | false | true | negative |
36,963,418 | Android whistle detection with Mic | <p>I am trying to implement an app where I can detect a whistle of a particular frequency (1000Hz - 1500Hz) even if there is environmental background noise and after a doing a lot of research on the net, I've used FFT methods to try and detect to see if the max amplitude that's captured from the mic corresponds with th... | I am trying to implement an app where I can detect a whistle of a particular frequency (1000Hz - 1500Hz) even if there is environmental background noise and after a doing a lot of research on the net, I've used FFT methods to try and detect to see if the max amplitude that's captured from the mic corresponds with the w... | java|android|android-studio|fft | 3 | 2016-05-01T05:33:13.357Z | 2,016 | 5 | 5 | 6 | 769 | 1 | 711 | 34 | 4 | 1 | true | false | false | false | false | false | low |
36,963,783 | Android app hanging (not crashing) on real device with illegal method access of RecyclerView | <p>I'm using <code>RecyclerView</code> in my app and my app just hangs (doesn't quit, just animations stop and app becomes completely unresponsive) with the following logs in console:</p>
<pre><code>05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: Trying to load lib /data/app-lib/com.ulouder.ulouder-1/li... | I'm using RecyclerView in my app and my app just hangs (doesn't quit, just animations stop and app becomes completely unresponsive) with the following logs in console: [CODE] It just goes on for many methods of RecyclerView , crashing the whole app (or thread) with this at the end of the log: [CODE] Why am I getting th... | android|android-recyclerview|android-4.4-kitkat | 0 | 2016-05-01T06:30:28.223Z | 2,016 | 5 | 6 | 6 | 442 | 1 | 459 | 92 | 3 | 2 | true | false | false | false | false | false | zero |
36,963,798 | Android Support BottomSheetBehavior additional anchored state | <p>I have been using the <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer">AndroidSlidingUpPanel</a> library in my app. With versions of the Android Design Support Library since 23.1.1, this breaks some things in my layout. Since the newest versions introduce the <a href="http://develop... | I have been using the AndroidSlidingUpPanel library in my app. With versions of the Android Design Support Library since 23.1.1, this breaks some things in my layout. Since the newest versions introduce the BottomSheetBehavior , I'm looking to replace the AndroidSlidingUpPanel library and use BottomSheetBehavior instea... | android|android-support-library|android-design-library|bottom-sheet | 8 | 2016-05-01T06:32:59.630Z | 2,016 | 5 | 6 | 6 | 11,835 | 2 | 1,908 | 61 | 4 | 0 | false | false | true | true | false | false | medium |
36,963,827 | RatingBar is unclickable | <p>I am trying to add a rating bar in my app so that one could rate a Question Object.</p>
<p>Here's my XML version of the rating bar:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
... | I am trying to add a rating bar in my app so that one could rate a Question Object. Here's my XML version of the rating bar: [CODE] And here's the part of my code where I am using the RatingBar in the onCreateView(LayoutInflater, View, Bundle) method of a fragment [CODE] The issue is that the rating bar is just unclick... | java|android|onclick|touch|ratingbar | 1 | 2016-05-01T06:36:40.317Z | 2,016 | 5 | 6 | 6 | 1,269 | 2 | 476 | 24 | 5 | 2 | true | false | false | false | false | false | low |
36,963,870 | android error : Gradle sync failed: Gradle DSL method not found: 'classpath()' | <p>hi i'm newbie with Android studio, after updating from android studio 1.4 to 2.1, I am getting the following build error when I try and sync my project:</p>
<pre><code>Gradle sync failed: Gradle DSL method not found: 'classpath()'
</code></pre>
<p>and Here is the build.gradle:</p>
<pre><code> apply plugin:'com... | hi i'm newbie with Android studio, after updating from android studio 1.4 to 2.1, I am getting the following build error when I try and sync my project: [CODE] and Here is the build.gradle: [CODE] and the gradle-wrapper.properties is: [CODE] How can i correct this?(please help me) edit: After editing grade, my android ... | java|android|android-gradle-plugin|build.gradle|android-studio-2.1 | 0 | 2016-05-01T06:44:03.813Z | 2,016 | 5 | 6 | 6 | 1,593 | 2 | 366 | 78 | 5 | 5 | true | false | false | false | false | false | zero |
36,963,911 | Draw image view height and width before loading from url | <p>I am getting image's height and width from API. I'm using Picasso to load images from url. My query is once we would get the API response how can we draw image as per it's height and width before actual image loading by Picasso. I have set image's height and width to Picasso in resize() method.</p>
<p>But Picasso l... | I am getting image's height and width from API. I'm using Picasso to load images from url. My query is once we would get the API response how can we draw image as per it's height and width before actual image loading by Picasso. I have set image's height and width to Picasso in resize() method. But Picasso loads images... | android|imageview|picasso | 1 | 2016-05-01T06:50:06.723Z | 2,016 | 5 | 6 | 6 | 925 | 2 | 475 | 56 | 3 | 1 | true | false | false | false | false | false | low |
36,964,025 | PNG Texture OpenGL es 2.0 Android NDK | <p>I'm developing a game, actually my first game, so I'm new in this world, I'm using OpenGL with NDK and C++ for the render part, and I call it from java with JNI. I'm stuck with the textures topic, since I need to use PNG with alpha channel and use TTF for some text.</p>
<p>I can include the libpng, but since I'm ... | I'm developing a game, actually my first game, so I'm new in this world, I'm using OpenGL with NDK and C++ for the render part, and I call it from java with JNI. I'm stuck with the textures topic, since I need to use PNG with alpha channel and use TTF for some text. I can include the libpng, but since I'm using the exp... | c++|opengl-es|android-ndk|textures|libpng | 1 | 2016-05-01T07:05:46.907Z | 2,016 | 5 | 7 | 6 | 1,653 | 1 | 994 | 37 | 5 | 0 | false | false | false | false | false | false | low |
36,964,034 | How to make RelativeSizeSpan align to top | <p>I have the following String <strong>RM123.456</strong>. I would like to</p>
<ul>
<li>Make <strong>RM</strong> relatively smaller</li>
<li>Make <strong>RM</strong> aligned to top exactly</li>
</ul>
<p>I almost able to achieve it by using</p>
<pre><code>spannableString.setSpan(new RelativeSizeSpan(0.50f), 0, index,... | I have the following String RM123.456 . I would like to Make RM relatively smaller Make RM aligned to top exactly I almost able to achieve it by using [CODE] The outcome looks like However, it is aligned to the bottom. It doesn't align to the top. I try to use SuperscriptSpan . It looks like It doesn't do what I want a... | android|android-studio|spannablestring | 37 | 2016-05-01T07:06:23.057Z | 2,016 | 5 | 7 | 6 | 8,220 | 9 | 618 | 41 | 3 | 1 | true | false | true | false | true | false | high |
36,964,047 | java.lang.RuntimeException: Unable to start activity ComponentInfo for register and login | <blockquote>
<p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.earljames.register_login/com.example.earljames.register_login.Home}: java.lang.NullPointerException</p>
</blockquote>
<p>Here's my code for my home page.</p>
<pre><code>public class Home extends AppCompatActivity impleme... | java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.earljames.register_login/com.example.earljames.register_login.Home}: java.lang.NullPointerException Here's my code for my home page. [CODE] Androidmanifest.xml [CODE] [CODE] Activity_Register.xml [CODE] | java|android | 1 | 2016-05-01T07:07:28.663Z | 2,016 | 5 | 7 | 6 | 274 | 3 | 281 | 89 | 2 | 4 | true | false | false | false | false | false | low |
36,964,289 | application taking 13 secs to show splash screen | <p>my splash screen</p>
<pre><code>/**
* Created by HumzaYunas on 05/01/2016.
*/
import android.app.Activity;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils... | my splash screen [CODE] and this is taking much time as far as i think so :( ...... I'm just curious that how to load app like facebook that as we tap on fb icon and the app loads blazing fast and splash screen is shown but in my app i'm having this problem. Any help will be appreciated :) .. My androidmanifest here [C... | java|android | 0 | 2016-05-01T07:42:01.860Z | 2,016 | 5 | 7 | 6 | 57 | 1 | 502 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
36,964,296 | Can dagger injection done in static method? | <p>I have this network module . I want to inject Network module in static method of ErrorUtils.</p>
<pre><code>@Module
public class NetworkModule {
private final String END_POINT = "https://www.myurl.com/";
@Provides
@Singleton
public OkHttpClient getOkHttpClient() {
OkHttpClient okHttpCli... | I have this network module . I want to inject Network module in static method of ErrorUtils. [CODE] And I want to inject this module in static method as : [CODE] How can we inject module in static method ,any suggestion ? | android|dagger-2 | 17 | 2016-05-01T07:42:44.080Z | 2,016 | 5 | 7 | 6 | 14,420 | 1 | 221 | 43 | 2 | 2 | true | false | true | true | true | false | medium |
36,964,313 | OnClickListener can't be found | <p>I'm learning android and I'm currently doing a calculator.
I've already done the xml part, where I put the buttons
And I'm trying to finish the Java file, which is the code that makes the calculator work</p>
<p>BUT in the Java file I've got this error:
Error:(22, 64) error: cannot find symbol class OnClickListener... | I'm learning android and I'm currently doing a calculator. I've already done the xml part, where I put the buttons And I'm trying to finish the Java file, which is the code that makes the calculator work BUT in the Java file I've got this error: Error:(22, 64) error: cannot find symbol class OnClickListener and I don't... | java|android|onclicklistener | 0 | 2016-05-01T07:44:36.543Z | 2,016 | 5 | 7 | 6 | 879 | 4 | 521 | 30 | 3 | 2 | true | false | false | false | false | false | zero |
36,964,518 | cordova in visual studio 2015 update2 deploy failed | <p>After the update 2, the released apk could be built but cannot be installed. And each kind of emulator performs as follows:</p>
<p>VS Emulator 5" KitKat:</p>
<pre><code>1> BUILD SUCCESSFUL
1>
1> Total time: 3.793 secs
1> Built the following apk(s):
1> E:/sdudio/Carpass/Carpass/platforms/andr... | After the update 2, the released apk could be built but cannot be installed. And each kind of emulator performs as follows: VS Emulator 5" KitKat: [CODE] The emulator runs normally but nothing is installed and it keeps deploying as long as I stop building. Google Android Emulator: The project runs well on the Emulator,... | android|cordova|visual-studio-2015 | 0 | 2016-05-01T08:13:04.907Z | 2,016 | 5 | 8 | 6 | 144 | 0 | 1,040 | 51 | 3 | 2 | true | true | false | false | false | false | zero |
36,964,572 | HandlerThread blocks UI android | <p>I am working on a modification of Google's Camera2 API example for Android, found here: <a href="https://github.com/googlesamples/android-Camera2Basic" rel="nofollow">https://github.com/googlesamples/android-Camera2Basic</a></p>
<p>I am uploading captured images to Cloudinary, and obviously need to do so in a backg... | I am working on a modification of Google's Camera2 API example for Android, found here: https://github.com/googlesamples/android-Camera2Basic I am uploading captured images to Cloudinary, and obviously need to do so in a background thread so the UI isn't blocked. The problem I'm running into, however, is that the UI ac... | android|multithreading|android-camera2|android-looper|android-handlerthread | 2 | 2016-05-01T08:18:53.907Z | 2,016 | 5 | 8 | 6 | 1,268 | 2 | 736 | 31 | 5 | 3 | true | false | false | false | false | false | low |
36,964,580 | how to solve FATAL EXCEPTION: pool-4-thread-1 error? | <p>I have an app that work very well but some times when I add some class and code to my program my app crashes. In my <code>logcat</code> error is for this:</p>
<pre><code>FATAL EXCEPTION: pool-4-thread-1
</code></pre>
<p>and in my code is this:</p>
<pre><code>reader = new BufferedReader(new InputStreamReader(httpU... | I have an app that work very well but some times when I add some class and code to my program my app crashes. In my logcat error is for this: [CODE] and in my code is this: [CODE] for this I can not improve my app. my logcat: [CODE] build.gradle: [CODE] | android|web-services | 1 | 2016-05-01T08:19:55.797Z | 2,016 | 5 | 8 | 6 | 3,915 | 1 | 253 | 52 | 2 | 4 | true | false | true | false | false | false | low |
36,964,642 | How to get locations's coordinates from Google Map | <p>I have created a MapActivity in android studio for opening Google Map and that is working fine. But now I want to get location's coordinates when a location is selected (by tapping on the map), so how can I do that?</p>
<p><strong>Map.java</strong></p>
<pre><code>package com.example.abc.project1;
import android.s... | I have created a MapActivity in android studio for opening Google Map and that is working fine. But now I want to get location's coordinates when a location is selected (by tapping on the map), so how can I do that? Map.java [CODE] | android | 0 | 2016-05-01T08:28:07.537Z | 2,016 | 5 | 8 | 6 | 133 | 1 | 231 | 50 | 1 | 1 | true | false | false | false | false | false | zero |
36,964,674 | Can't compile CyanogenMod 13 | <p>I'm trying to compile CyanogenMod from scratch with the help of <a href="https://wiki.cyanogenmod.org/w/Build_for_angler" rel="nofollow">this</a> guide. I've done most of the steps without any errors, but at the <code>brunch angler</code> step, I keep getting this error:</p>
<pre><code>Building with Jack: /home/hex... | I'm trying to compile CyanogenMod from scratch with the help of this guide. I've done most of the steps without any errors, but at the brunch angler step, I keep getting this error: [CODE] And then make fails. I've tried doing make showcommands , and this is the output: [CODE] What am I doing wrong? I'm on Ubuntu Serve... | android|cyanogenmod | 1 | 2016-05-01T08:31:56.753Z | 2,016 | 5 | 8 | 6 | 1,508 | 1 | 328 | 28 | 2 | 2 | true | false | false | false | false | false | low |
36,964,769 | connecting to wifi but don't see anything in phone | <p>i'm trying to connect to a WIFI point ,
when i run the code and look at the logs, i do get the "connected to wifi point"
log message, so in theory i'm connected,
but in my phone i don't get a connected sign ,
and it looks as though i'm not connected to a WIFI,
what could be the problem for this ?</p>
<p>i'm usin... | i'm trying to connect to a WIFI point , when i run the code and look at the logs, i do get the "connected to wifi point" log message, so in theory i'm connected, but in my phone i don't get a connected sign , and it looks as though i'm not connected to a WIFI, what could be the problem for this ? i'm using this functio... | android|android-studio|wifi | 0 | 2016-05-01T08:44:03.400Z | 2,016 | 5 | 8 | 6 | 29 | 0 | 413 | 50 | 3 | 2 | true | true | false | false | false | false | zero |
36,964,840 | Delete Item from Arraylist in SharedPreferences with Android Studio | <p>I want to remove the item that i choose in listView from sharedPreferences too. But, after i delete the item from the listview, it still remain in sharedPrefereces. Because when i display the data from SharedPreferences the data doesn't change at all. Can anyone help me to solve this problem??
Thank you</p>
<p>Shar... | I want to remove the item that i choose in listView from sharedPreferences too. But, after i delete the item from the listview, it still remain in sharedPrefereces. Because when i display the data from SharedPreferences the data doesn't change at all. Can anyone help me to solve this problem?? Thank you SharedPreferenc... | java|android|listview|arraylist|sharedpreferences | 1 | 2016-05-01T08:54:08Z | -1 | -1 | -1 | -1 | 3,053 | 2 | 361 | 67 | 5 | 2 | true | false | true | false | false | false | low |
36,964,960 | There is not enough memory to perform requested operation-Android studio | <p>I have been using Android Studio 2.1 for a while now, and in my previous projects, it seemed to work just fine. But now I got this error:
<a href="https://i.stack.imgur.com/nIOoQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nIOoQ.png" alt="enter image description here"></a></p>
<p>This pestered me for ... | I have been using Android Studio 2.1 for a while now, and in my previous projects, it seemed to work just fine. But now I got this error: This pestered me for a while until I decided to google solutions and ended up with some informative details like how to increase the heapsize and this seemed to work for the OP. I ha... | android|android-studio|jvm | 21 | 2016-05-01T09:09:16.187Z | 2,016 | 5 | 9 | 6 | 25,380 | 5 | 780 | 72 | 3 | 1 | true | false | true | true | true | false | high |
36,964,975 | application stops showing error in Toast message | <p>Suddenly my application crashing while displaying Toast message.
It was working perfectly before.</p>
<p>I have fragment with <code>ImageView</code> and button download that image. I show the image by downloading in temporary location and show in <code>imageview</code>. If user clicks on save image, i simply rename... | Suddenly my application crashing while displaying Toast message. It was working perfectly before. I have fragment with ImageView and button download that image. I show the image by downloading in temporary location and show in imageview . If user clicks on save image, i simply rename the temporary file. I remember I ha... | android|android-fragments|android-imageview|layout-inflater|android-toast | 1 | 2016-05-01T09:11:18.070Z | 2,016 | 5 | 9 | 6 | 576 | 0 | 1,589 | 48 | 5 | 5 | true | true | false | false | false | false | low |
36,965,053 | How to send Image from Imageview to a Server | <p>I am making SignUp form which includes many fields along with Profile Picture. I have converted everything to a string except the Image. I am unable to understand that How can I send Image to server along with other string values when someone clicks on the SignUp button. </p>
<p>Following is my source code for your... | I am making SignUp form which includes many fields along with Profile Picture. I have converted everything to a string except the Image. I am unable to understand that How can I send Image to server along with other string values when someone clicks on the SignUp button. Following is my source code for your perusal: [C... | java|android | 0 | 2016-05-01T09:21:57.893Z | 2,016 | 5 | 9 | 6 | 837 | 1 | 324 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,965,081 | How to get @LayoutRes int resource from a View object which is created programmatically | <p>I am trying to find a way to distinguish the difference between <strong>@LayoutRes int</strong> and <strong>@IdRes int</strong>.
Below you can see a simple example:</p>
<pre><code>public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCre... | I am trying to find a way to distinguish the difference between @LayoutRes int and @IdRes int . Below you can see a simple example: [CODE] linearLayout.getId() returns the @IdRes and as result an error has been occurred on the constructor of ArrayAdapter. The problem is that the linearLayout.getId() on the constructor ... | android | 0 | 2016-05-01T09:25:24.357Z | 2,016 | 5 | 9 | 6 | 1,048 | 0 | 599 | 87 | 1 | 2 | true | true | false | false | false | false | zero |
36,965,087 | Android getting a method value inside MainActivity from another activity | <p>I try to keep this as simple as possible. I have a SQLite database that containt the following method that return all the names inside a table:</p>
<pre><code>public ArrayList<String> getAllPlacesNames() {
SQLiteDatabase db = this.getWritableDatabase();
Cursor result = db.rawQuery("select plac... | I try to keep this as simple as possible. I have a SQLite database that containt the following method that return all the names inside a table: [CODE] I have a MainActivity.java inside which I get and return the String array of names by calling the method getAllPlacesNames() from DataBaseHelper: [CODE] Now my Problem. ... | java|android|sqlite | -1 | 2016-05-01T09:25:50.830Z | 2,016 | 5 | 9 | 6 | 41 | 1 | 652 | 72 | 3 | 3 | true | false | false | false | false | true | negative |
36,965,145 | Crop rectangle from image issue | <p>I need to take picture from camera in landscape orientation (capture the full screen) with this mask:</p>
<p><a href="https://i.stack.imgur.com/kTrtP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kTrtP.png" alt="enter image description here"></a></p>
<p>Then crop rectangle from image like this... | I need to take picture from camera in landscape orientation (capture the full screen) with this mask: Then crop rectangle from image like this: I have some problem with cropping. I do(android): [CODE] iphone: [CODE] On some mobile devices, I get the correct result, on other the crop rectangle shifted down and to the le... | android|ios|image|bitmap | 0 | 2016-05-01T09:33:06.487Z | 2,016 | 5 | 9 | 6 | 454 | 1 | 345 | 31 | 4 | 2 | true | false | false | false | false | false | zero |
36,965,229 | GAE Datastore Get query not returning anything | <p>I have saved some data in the GAE datastore using Android Studio backend and I am able to see that in the datastore console. However, when I try to retrieve the data from the same backend in my app using queries, it is not returning anything at all. Also it is not throwing any error as well. Here is the code snippet... | I have saved some data in the GAE datastore using Android Studio backend and I am able to see that in the datastore console. However, when I try to retrieve the data from the same backend in my app using queries, it is not returning anything at all. Also it is not throwing any error as well. Here is the code snippet wh... | java|android|google-app-engine|android-studio|google-cloud-datastore | 0 | 2016-05-01T09:42:59.187Z | 2,016 | 5 | 9 | 6 | 137 | 1 | 812 | 46 | 5 | 1 | true | false | false | false | false | false | zero |
36,965,252 | How to show collapsing toolbar as collapsed without scrolling android | <p>I have a collapsing toolbar layout. I have shown graph on it. So if there are no items to show in the graph I want to show the collapsing toolbar layout as collapsed or hidden or closed. Only the toolbar and title should be displayed and not the graph. </p>
<p>Here is the view :</p>
<p><a href="https://i.stack.img... | I have a collapsing toolbar layout. I have shown graph on it. So if there are no items to show in the graph I want to show the collapsing toolbar layout as collapsed or hidden or closed. Only the toolbar and title should be displayed and not the graph. Here is the view : I want to display only the toolbar where I have ... | android|layout|android-collapsingtoolbarlayout | 3 | 2016-05-01T09:46:14.113Z | 2,016 | 5 | 9 | 6 | 7,348 | 1 | 459 | 69 | 3 | 3 | true | false | true | false | false | false | low |
36,965,378 | rstudio server on gnuroot (pixel c, android) | <p>I tried to install rstudio server on my pixel c within <code>gnuroot</code> which is based on a Debian linux (wheezy)</p>
<p>I compiled and started rstudio server, tried to log in on <code>localhost:8787</code> but it fails with:</p>
<pre><code>rstudio initialization error
error occured during transmission
</code>... | I tried to install rstudio server on my pixel c within gnuroot which is based on a Debian linux (wheezy) I compiled and started rstudio server, tried to log in on localhost:8787 but it fails with: [CODE] I verified the installation by running [CODE] and it gave me the following error message: [CODE] Any idea what's wro... | android|authentication|rstudio-server | 1 | 2016-05-01T10:03:27.223Z | 2,016 | 5 | 10 | 6 | 201 | 0 | 328 | 44 | 3 | 3 | true | true | false | false | false | false | low |
36,965,425 | Adding a class to the manifest in Android | <p>I ran into this problem just now, scratching my head on how to tackle this problem.</p>
<p>Basically, I have <code>MainActivity</code>, and a lot of classes in my app, such as <code>RootUtils</code>, <code>LegalProsecution</code>, <code>CameraSilencer</code>, etc, etc. <code>MainActivity</code> is the only activity... | I ran into this problem just now, scratching my head on how to tackle this problem. Basically, I have MainActivity , and a lot of classes in my app, such as RootUtils , LegalProsecution , CameraSilencer , etc, etc. MainActivity is the only activity in this app, and the rest is just classes for executing code, showing d... | java|android | 0 | 2016-05-01T10:08:43.057Z | 2,016 | 5 | 10 | 6 | 86 | 3 | 813 | 41 | 2 | 3 | true | false | false | false | false | false | zero |
36,965,433 | System Error when getting a value from a database using WCF (IIS 7.5) | <p>I have an Android Application which connects to a database through WCF service hosted in IIS 7.5. I based it from here: <a href="https://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/walkthrough_working_with_WCF/" rel="nofollow">Walkthrough - Working with WCF</a>. I'm only using m... | I have an Android Application which connects to a database through WCF service hosted in IIS 7.5. I based it from here: Walkthrough - Working with WCF . I'm only using my localhost and I haven't configured the remote access. The problem is every time I click the button (which upon clicking will pass the value of the in... | c#|android|asp.net|wcf|xamarin | 1 | 2016-05-01T10:09:16.437Z | 2,016 | 5 | 10 | 6 | 369 | 1 | 775 | 69 | 5 | 3 | true | false | false | false | false | false | low |
36,965,434 | URLEncoder with POST method in Android | <p>I am trying to put data from my android application into PHP file on a web server to be used to make a query from MYSQL server.</p>
<p>I was trying the below command to encode the variable before sending it as I saw a lot of programmer used it on the internet.</p>
<p>Edit: I edited my Android Code to split the Str... | I am trying to put data from my android application into PHP file on a web server to be used to make a query from MYSQL server. I was trying the below command to encode the variable before sending it as I saw a lot of programmer used it on the internet. Edit: I edited my Android Code to split the String into two segmen... | android|http-post|httpurlconnection|urlencode | 0 | 2016-05-01T10:09:19.887Z | 2,016 | 5 | 10 | 6 | 437 | 0 | 781 | 38 | 4 | 3 | true | true | false | false | false | false | zero |
36,965,444 | can't send params to server using volley | <p>i don't know why i cant send params to server using volley , my problem is when i'm trying to use velley to send params i get this error to my logcat, </p>
<pre><code>[149] BasicNetwork.performRequest: Unexpected response code 403 for http://localhost/test/post.php
</code></pre>
<p>can every one help me to solve t... | i don't know why i cant send params to server using volley , my problem is when i'm trying to use velley to send params i get this error to my logcat, [CODE] can every one help me to solve this problem ? my php server : [CODE] my request : [CODE] | php|android|android-volley|parameters | 0 | 2016-05-01T10:10:25.120Z | 2,016 | 5 | 10 | 6 | 288 | 1 | 246 | 40 | 4 | 3 | true | false | false | false | false | false | zero |
36,965,491 | Retrofit service doesnt call onRespone and onFailure | <p>i am new in Retrofit..
i am using retrofit 2, but when i my code step into <code>call.enqueue</code> the code just skip it doesn't into method <code>onRespone</code> or <code>onFailure</code>.</p>
<p>Here goes my code.</p>
<p><strong>Model Class</strong></p>
<pre><code>public class MovieResult {
@Serialized... | i am new in Retrofit.. i am using retrofit 2, but when i my code step into call.enqueue the code just skip it doesn't into method onRespone or onFailure . Here goes my code. Model Class [CODE] Model - Movie [CODE] Retrofit Client [CODE] Retrofit Service [CODE] Fragment Class [CODE] JSON Respone [CODE] i've tried put ca... | android|retrofit2 | 0 | 2016-05-01T10:16:50.147Z | 2,016 | 5 | 10 | 6 | 245 | 0 | 508 | 52 | 2 | 6 | true | true | false | false | false | false | zero |
36,965,559 | Awkward result found on reading CSV file | <p>I want to read CSV file. The problem is when i print a value of 0 or any other index the awkward result shown as you can see on snapshot. Snapshot attached.
<a href="https://i.stack.imgur.com/C4PDF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C4PDF.png" alt="Snapshot"></a></p>
<p>Read value f... | I want to read CSV file. The problem is when i print a value of 0 or any other index the awkward result shown as you can see on snapshot. Snapshot attached. Read value from this code: [CODE] FileReader class: [CODE] CSV file: | android|csv | 2 | 2016-05-01T10:24:25.020Z | 2,016 | 5 | 10 | 6 | 60 | 1 | 225 | 40 | 2 | 2 | true | false | false | false | false | false | low |
36,965,561 | Send email in android without user interaction | <p>I am trying to create application which sends email without user interaction using
<a href="https://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a">this</a> solution.</p>
<p>I am getting the following error</p>
<pre><code>E/AndroidRuntime: FATA... | I am trying to create application which sends email without user interaction using this solution. I am getting the following error [CODE] I am unable to solve this issue. Can anybody help me to find out what is the issue? | java|android|email|exception | -1 | 2016-05-01T10:24:36.360Z | 2,016 | 5 | 10 | 6 | 230 | 2 | 221 | 46 | 4 | 1 | true | false | false | false | false | true | negative |
36,965,572 | Android getting wrong position after filter listview using SearchView | <p>I am new to Android. I implemented SearchView with filter mode in Listview. When I click on an item, it opens a new activity getting all data word, definition, examle. It Works fine. But after the listview is filtered and click on an item, show a new activity getting wrong position from the data. I don't know how to... | I am new to Android. I implemented SearchView with filter mode in Listview. When I click on an item, it opens a new activity getting all data word, definition, examle. It Works fine. But after the listview is filtered and click on an item, show a new activity getting wrong position from the data. I don't know how to so... | android|listview | 0 | 2016-05-01T10:26:11.003Z | 2,016 | 5 | 10 | 6 | 1,943 | 1 | 417 | 69 | 2 | 3 | true | false | false | false | false | false | zero |
36,965,575 | How to change the floating label color of TextInputLayout when calling setError() | <p>The character counter changes the floating label color when max length, but calling <code>setError()</code> does not change it. </p>
<p><a href="http://i.stack.imgur.com/i058L.png" rel="nofollow">Screenshot</a></p>
<p>I tried <code>app:errorTextAppearance="@style/MyErrorText"</code>.</p>
<p>style/MyErrorText:</p>... | The character counter changes the floating label color when max length, but calling setError() does not change it. Screenshot I tried app:errorTextAppearance="@style/MyErrorText" . style/MyErrorText: [CODE] And I also tried setErrorEnabled(true) . However, they made no change. Is there a way to change the floating labe... | android|android-textinputlayout | 2 | 2016-05-01T10:26:19.477Z | 2,016 | 5 | 10 | 6 | 1,209 | 1 | 570 | 81 | 2 | 4 | true | false | false | false | false | false | low |
36,965,603 | MIT App Inventor 2: May I / How to place alarms in the Android notification area? | <p>With <code>MIT Inventor 2</code>,
may I create a <code>Notification Area Notification</code> caused by an Alarm, which is placed in the notification area of an Android smartphone?
So that I may create a <code>silent alarm</code>, as standard with Android apps?
And if so, how to do it?</p>
<p>See <code>Requirement #... | With MIT Inventor 2 , may I create a Notification Area Notification caused by an Alarm, which is placed in the notification area of an Android smartphone? So that I may create a silent alarm , as standard with Android apps? And if so, how to do it? See Requirement #5 in this document ( describing an Android programmmin... | android|app-inventor | 1 | 2016-05-01T10:28:58.190Z | 2,016 | 5 | 10 | 6 | 5,638 | 1 | 1,277 | 81 | 2 | 0 | false | false | true | false | false | false | low |
36,965,624 | Pause/Resume CountDownTimer Android | <p>Is it possible to pause a CountDownTimer in Android? I have been looking for good solutions but I just find some ways to do this that I really don't like. As just save the left time in a variable and initialize a new CountDownTimer with that values. </p>
<p>That kind of solutions work but they didn't look so good b... | Is it possible to pause a CountDownTimer in Android? I have been looking for good solutions but I just find some ways to do this that I really don't like. As just save the left time in a variable and initialize a new CountDownTimer with that values. That kind of solutions work but they didn't look so good because I´m u... | android|time|timer|progress-bar|countdowntimer | 1 | 2016-05-01T10:32:37.960Z | 2,016 | 5 | 10 | 6 | 793 | 1 | 791 | 35 | 5 | 1 | true | false | false | false | false | false | low |
36,965,871 | Why this tab layout doesn't stay in the bottom? | <p>I've created my application with Navigation Drawer. In my Activity I put this code:</p>
<pre><code>public class MenuActivity extends AppCompatActivity
implements NavigationView.OnNavigationItemSelectedListener
{
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentVi... | I've created my application with Navigation Drawer. In my Activity I put this code: [CODE] now in the HomeFragment I want to put a tab in the bottom of the screen. So i put this code: [CODE] This is fragment_home.xml: [CODE] and this the activity xml: [CODE] But finally I get this result: How could I put this tabLayout... | android|tabs|fragment | 0 | 2016-05-01T11:00:20.983Z | 2,016 | 5 | 11 | 6 | 312 | 1 | 336 | 47 | 3 | 4 | true | false | false | false | false | false | zero |
36,965,942 | get the sharedPreferences's update in another activity | <pre><code>confbutton.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View v) {
// get the ip address
String ipAddress = editTextIPAddress.getText().toString().trim();
// get the port number
String portNumber = editTextPortNumber.getText().toString().trim();
... | [CODE] I wrote this in a Settings Activity to get the ip address and the port number. Then i called the SharedPreferences in the Main Activity using this: [CODE] I used the displayText.setText(ipAddress) to see if i got it or not. It worked but it only gives me the last SharedPreferences if i change it in the Settings ... | java|android|sharedpreferences | -1 | 2016-05-01T11:07:13.330Z | 2,016 | 5 | 11 | 6 | 82 | 1 | 588 | 54 | 3 | 3 | true | false | false | false | false | true | negative |
36,966,116 | Get active facebook access token in android | <p>When facebook login is success I want accesstoken something like : <a href="http://i.stack.imgur.com/0NXCh.png" rel="nofollow">http://i.stack.imgur.com/0NXCh.png</a> as shown in picture. But I am getting this
<code>accesstoken : {AccessToken token:ACCESS_TOKEN_REMOVED permissions:[user_birthday, public_profile, con... | When facebook login is success I want accesstoken something like : http://i.stack.imgur.com/0NXCh.png as shown in picture. But I am getting this accesstoken : {AccessToken token:ACCESS_TOKEN_REMOVED permissions:[user_birthday, public_profile, contact_email, user_friends, email]} I tried like this [CODE] I dont know how... | android|facebook|access-token | 1 | 2016-05-01T11:27:14.283Z | 2,016 | 5 | 11 | 6 | 2,333 | 1 | 421 | 43 | 3 | 1 | true | false | false | false | false | false | low |
36,966,215 | How to store answer to the MCQ questions in sqlite DB | <p>Basically I have made an app which is a quiz type app. At every Activity 1 single question appears. Since I'm using <code>ViewPager</code> adapter and answers are to be chosen in the form of radio buttons, I am having trouble how to store the answers in the database for the all the questions. Please tell me how to m... | Basically I have made an app which is a quiz type app. At every Activity 1 single question appears. Since I'm using ViewPager adapter and answers are to be chosen in the form of radio buttons, I am having trouble how to store the answers in the database for the all the questions. Please tell me how to make a database f... | java|android|android-fragments | 1 | 2016-05-01T11:37:49.263Z | 2,016 | 5 | 11 | 6 | 215 | 0 | 796 | 53 | 3 | 3 | true | true | false | false | false | false | low |
36,966,259 | Using the right authentication option on App Engine for integrating with Google sign in api | <p>I have successfully sent a <a href="https://developers.google.com/identity/sign-in/android/backend-auth" rel="nofollow">Google Sign-in</a> token ID from my android app to my web application running on GAE. However, the sub value retrieved from Google tokeninfo endpoint (<a href="https://www.googleapis.com/oauth2/v3/... | I have successfully sent a Google Sign-in token ID from my android app to my web application running on GAE. However, the sub value retrieved from Google tokeninfo endpoint ( https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=XYZ123 ) doesn't match the value of the user ID on GAE.The code is below:- [CODE] I am wo... | android|google-app-engine|authentication|oauth|google-signin | 1 | 2016-05-01T11:43:10.343Z | 2,016 | 5 | 11 | 6 | 56 | 0 | 812 | 91 | 5 | 1 | true | true | false | false | false | false | low |
36,966,368 | How to call other activity after timer count down end | <p>this is my timer class , i whant to call other activity when the timer is enb.
enter code here</p>
<pre><code>import android.content.Intent;
import android.os.CountDownTimer;
import android.widget.TextView;
public class TimerCountDown extends CountDownTimer {
private TextView timerTextView;
... | this is my timer class , i whant to call other activity when the timer is enb. enter code here [CODE] and this the activity i what to displayed [CODE] import android.os.Bundle; /** * Created by eli on 5/1/2016. */ public class Playagin extends Activity { [CODE] | android|timer | -1 | 2016-05-01T11:56:08.683Z | 2,016 | 5 | 11 | 6 | 25 | 1 | 261 | 53 | 2 | 3 | true | false | false | false | false | true | negative |
36,966,384 | No resource type specified (at 'text' with value '@={bindingVariable.propertyName}') | <p>I have get a strange error while using the data binding API:</p>
<blockquote>
<p>No resource type specified (at 'text' with value '@={bindingVariable.propertyName}').</p>
</blockquote>
<p>Here is my xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android... | I have get a strange error while using the data binding API: No resource type specified (at 'text' with value '@={bindingVariable.propertyName}'). Here is my xml: [CODE] This is my POJO class: [CODE] | android|data-binding|two-way | 2 | 2016-05-01T11:58:00.353Z | 2,016 | 5 | 11 | 6 | 2,971 | 1 | 199 | 84 | 3 | 2 | true | false | true | false | false | false | low |
36,966,390 | Android check internet connection Toast displaying no internet | <p>Hello I have a small application which simply displays a webview when it has an internet connection but it doesn't have an internet connection I want it to display a toast. Currently when I run the application it will display a toast message saying "No internet connection" even though there is an internet connection... | Hello I have a small application which simply displays a webview when it has an internet connection but it doesn't have an internet connection I want it to display a toast. Currently when I run the application it will display a toast message saying "No internet connection" even though there is an internet connection an... | android|webview|timer|toast|android-internet | 0 | 2016-05-01T11:58:36.043Z | 2,016 | 5 | 11 | 6 | 1,408 | 2 | 630 | 62 | 5 | 3 | true | false | false | false | false | false | zero |
36,966,407 | how to implement collapsing toolbar layout where custom textview get pined at top? | <p>i am trying to use collapsing toolbar in my app. i want to implement a view like <a href="http://4.bp.blogspot.com/-9jn0pCtadO8/U9_E1mlg8CI/AAAAAAAAAt4/yr9CCSThkpg/s640/change_1.gif" rel="nofollow">this</a>. i tried doing that but nothing seems like helping. i tried adding relative layout inside my collapsing toolba... | i am trying to use collapsing toolbar in my app. i want to implement a view like this . i tried doing that but nothing seems like helping. i tried adding relative layout inside my collapsing toolbar tags, but it is scrolling just like ImageView and becomes invisible. i want my relative layout to be pinned at top when c... | android|xml|material-design|android-collapsingtoolbarlayout | 3 | 2016-05-01T12:00:03.237Z | 2,016 | 5 | 12 | 6 | 2,258 | 1 | 438 | 82 | 4 | 1 | true | false | false | false | false | false | low |
36,966,445 | How to call fragment method from java class? | <p>I try to call fragment method from java class:
I know there many of questions on stack overflow on this topic, but my case is different </p>
<p>ConnectionAsyncTask.java :</p>
<pre><code>import android.app.Activity;
import android.os.AsyncTask;
import java.util.List;
public class ConnectionAsyncTask extends Async... | I try to call fragment method from java class: I know there many of questions on stack overflow on this topic, but my case is different ConnectionAsyncTask.java : [CODE] countryfragment.java: [CODE] The result must be: Display data on text view. | java|android | 0 | 2016-05-01T12:05:39.590Z | 2,016 | 5 | 12 | 6 | 1,869 | 4 | 245 | 44 | 2 | 2 | true | false | false | false | false | false | zero |
36,966,477 | How to show other JsonArray in RecyclerView on Android | <p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts and when user scrolling on <code>RecyclerView</code> show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! I want show title from categories in textview, but i don't know how t... | android|json | 2 | 2016-05-01T12:09:58.183Z | 2,016 | 5 | 12 | 6 | 7,242 | 2 | 552 | 54 | 2 | 4 | true | false | true | false | false | false | low |
36,966,491 | When i click on a menu item via onClickListener, it says the class is absent although it is present. How do i fix it? | <p>Here is my menu class</p>
<pre><code>package devgan.jatin.com.myapplication;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class Menu extends ListActivity {
private fin... | Here is my menu class [CODE] This is my Manifest [CODE] [CODE] Here's what I did. Created a splash screen which goes to the menu. You can see the menu class up. When i intend to start an activity of StartingPoint through the menu, its gives me ClassNotFoundException- but the thing is when i tweaked my code to go straig... | java|android|xml | -1 | 2016-05-01T12:11:20.627Z | 2,016 | 5 | 12 | 6 | 43 | 1 | 415 | 117 | 3 | 3 | true | false | false | false | false | true | negative |
36,966,523 | Meteor.call doesn’t work on android App | <p>I created a simple app using Meteor 1.3, which has only one method. It works like that: When a button is clicked, the method is invoked - it calculates a specific value and returns the result. </p>
<p>The app works perfectly on the localhost server, but when I launch it on my device with "meteor run android-device"... | I created a simple app using Meteor 1.3, which has only one method. It works like that: When a button is clicked, the method is invoked - it calculates a specific value and returns the result. The app works perfectly on the localhost server, but when I launch it on my device with "meteor run android-device", it cannot ... | android|cordova|meteor|mobile | 0 | 2016-05-01T12:15:04.933Z | 2,016 | 5 | 12 | 6 | 171 | 1 | 448 | 39 | 4 | 1 | true | false | false | false | false | false | zero |
36,966,674 | Floating action button (FAB) above a ListView in a Fragment in xml? | <p>I used code from <a href="https://stackoverflow.com/questions/32731721/how-do-you-put-a-floating-action-button-fab-above-a-listview-in-a-fragment-in/36966433#36966433">here</a>.
In my case it looks like</p>
<pre><code><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="h... | I used code from here . In my case it looks like [CODE] But i have "multiple root tags" in Android Studio. What i did wrong? Please help me, i cant understand (( | android|xml|listview|android-fragments|floating-action-button | 4 | 2016-05-01T12:32:18.550Z | 2,016 | 5 | 12 | 6 | 5,172 | 3 | 161 | 67 | 5 | 1 | true | false | true | false | false | false | low |
36,966,801 | Can't solve Runtime error on Android Studio 2.1 | <p>I'm an Android beginner and I'building a test app to know what I can do and what I can't, and I'm trying to solve this Runtime error and don't know what to do.
Can anyone help me please? I post my code and the error</p>
<p>MainActvity.java:</p>
<pre><code>package com.example.android.myapplication;
import android.... | I'm an Android beginner and I'building a test app to know what I can do and what I can't, and I'm trying to solve this Runtime error and don't know what to do. Can anyone help me please? I post my code and the error MainActvity.java: [CODE] Log: [CODE] | java|android | 0 | 2016-05-01T12:45:12.063Z | 2,016 | 5 | 12 | 6 | 335 | 2 | 252 | 47 | 2 | 2 | true | false | false | false | false | false | zero |
36,966,829 | Card views inside a recycler view mess up after scrolling | <p>I'm building an Android quiz app. Questions are saved in an SQLite database and are randomly picked out.</p>
<p>For each question answered, I store that answer in an ArrayList of Strings. At the end, I have a RecyclerView that shows card views containing a question and answers. I pass two lists to the constructor -... | I'm building an Android quiz app. Questions are saved in an SQLite database and are randomly picked out. For each question answered, I store that answer in an ArrayList of Strings. At the end, I have a RecyclerView that shows card views containing a question and answers. I pass two lists to the constructor - the first ... | android|android-layout|android-cardview|android-recyclerview | 0 | 2016-05-01T12:47:51.053Z | 2,016 | 5 | 12 | 6 | 2,312 | 5 | 1,135 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
36,966,959 | "Malformed JSON" from http get request | <p>I get some data on an URL. There's my server script :</p>
<pre><code> $db = null;
$results = "{}";
require_once("connect.php");
/* Query */
if($db != null) {
$stmt = $db->prepare("SELECT category, category_color FROM categories ORDER BY category");
$stmt->execute();
$results = $stmt->fetch... | I get some data on an URL. There's my server script : [CODE] Soooo.. I get theses datas on my Android App. This is what my App get from the script : [CODE] And there's my App code, to get my datas (this is my first App so some code found on Internet helped me) : [CODE] I've tried a lot of stuff to parse theses datas in... | java|android|json | 0 | 2016-05-01T13:00:38.173Z | 2,016 | 5 | 13 | 6 | 466 | 3 | 810 | 38 | 3 | 4 | true | false | false | false | false | false | zero |
36,967,141 | Gingerbread keyboard glitch - double letters | <p>Anyone knows some fix to html/js so the glitch will gone?</p>
<p><a href="https://code.google.com/p/android/issues/detail?id=14755" rel="nofollow">https://code.google.com/p/android/issues/detail?id=14755</a></p>
<p><a href="http://androidforums.com/threads/android-keyboard-issue-double-letters.278325/" rel="nofoll... | Anyone knows some fix to html/js so the glitch will gone? https://code.google.com/p/android/issues/detail?id=14755 http://androidforums.com/threads/android-keyboard-issue-double-letters.278325/ Basically it doubles first letter of every word when you type something. (for sure it happens when use stock browser in androi... | javascript|android|html|browser|android-2.3-gingerbread | 1 | 2016-05-01T13:20:27.980Z | 2,016 | 5 | 13 | 6 | 376 | 0 | 837 | 44 | 5 | 0 | false | true | false | false | false | false | low |
36,967,247 | Passing Data to custom adapter from asyncTask | <p>I am taking an online course and making an android application for my self learning. In this application I want to show thumbnails of movie posters in a gridView. Now my question is how can I pass my <code>movies arrayList</code> to custom adapter from <code>asyncTask</code>. Is there something I can achieve in <cod... | I am taking an online course and making an android application for my self learning. In this application I want to show thumbnails of movie posters in a gridView. Now my question is how can I pass my movies arrayList to custom adapter from asyncTask . Is there something I can achieve in onPostExecute method. I mean how... | android|android-asynctask | 4 | 2016-05-01T13:31:39.920Z | 2,016 | 5 | 13 | 6 | 3,078 | 2 | 448 | 45 | 2 | 3 | true | false | true | false | false | false | low |
36,967,258 | Viewpager onClick not triggle | <pre><code>vp = (ViewPager) findViewById(R.id.a2viewpager);
vp.setCurrentItem(0);
vp.setOnClickListener(new ViewPager.OnClickListener() {
@Override
public void onClick(View v) {
AlertDialog.Builder dlgAlert2 = new AlertDialog.Builder(lastcreated);
dlgAlert2.setTitle("Voi... | [CODE] Before giving up on the onclick at viewPager, can anyone share a workable example on triggle the onClick? Or it is totally not support at viewPager? I need to show an AlertDialog when click on the particular child under viewPager. Below is my code at at setOnPageChangeListener (workable): [CODE] how to make it w... | android|onclick|android-viewpager | 0 | 2016-05-01T13:32:45.157Z | 2,016 | 5 | 13 | 6 | 93 | 1 | 347 | 29 | 3 | 2 | true | false | false | false | false | false | zero |
36,967,377 | Could not find method btnconfirm(View) in a parent or ancestor Context | <p>Iam stuck at delicate problem with my custom view spinner with button to send data to intent.
Whenever I push the button the application crashes. Could anybody help me how to get view or spinner to onClickListener?</p>
<pre><code>public class MyAdapter extends ArrayAdapter<String> {
public MyAdapter(Conte... | Iam stuck at delicate problem with my custom view spinner with button to send data to intent. Whenever I push the button the application crashes. Could anybody help me how to get view or spinner to onClickListener? [CODE] row.xml looks like [CODE] and activity.xml [CODE] | java|android | 0 | 2016-05-01T13:45:05.623Z | 2,016 | 5 | 13 | 6 | 395 | 1 | 271 | 70 | 2 | 3 | true | false | false | false | false | false | zero |
36,967,398 | AppCompatPreferenceActivity with addPreferencesFromResource up not working | <p>I am using AppCompatPreferenceActivity so that I can add the Toolbar at the top of the screen. Problem is that the back button on the toolbar is not working.
Since I am not using my own layout I have no access to the Toolbar in order to set setNavigationOnClickListener as suggested <a href="https://stackoverflow.co... | I am using AppCompatPreferenceActivity so that I can add the Toolbar at the top of the screen. Problem is that the back button on the toolbar is not working. Since I am not using my own layout I have no access to the Toolbar in order to set setNavigationOnClickListener as suggested here This is my Activity: [CODE] } an... | android|android-preferences | 2 | 2016-05-01T13:47:29.560Z | 2,016 | 5 | 13 | 6 | 1,487 | 1 | 474 | 74 | 2 | 2 | true | false | false | false | false | false | low |
36,967,422 | My code to receive messages from MQTT isn't working? | <p>So in my Android App I've written some code to subscribe to MQTT and (for now) just output the messages it receives. However it isn't working and I'm not sure why, here is my code:</p>
<pre><code>public class MainActivity extends AppCompatActivity implements MqttCallback{
private MqttClient client;
private ... | So in my Android App I've written some code to subscribe to MQTT and (for now) just output the messages it receives. However it isn't working and I'm not sure why, here is my code: [CODE] So I wanted it to subscribe to the MQTT topic once I press the button and I added a toast just to help me test it. However it doesn'... | java|android|mqtt|mosquitto | 0 | 2016-05-01T13:50:26.340Z | 2,016 | 5 | 13 | 6 | 353 | 1 | 495 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
36,967,452 | Android studio, JSONObject | <p>I'm having this error when I try to register. Its very simple, when i click the register button, all the fields inputted are to be stored in a online database.
Now i used the same JSON code to login and it works fine, but i dont see what the problem is here. Iv even read that i need to maybe remove the echo in my ph... | I'm having this error when I try to register. Its very simple, when i click the register button, all the fields inputted are to be stored in a online database. Now i used the same JSON code to login and it works fine, but i dont see what the problem is here. Iv even read that i need to maybe remove the echo in my php, ... | php|android|json | 0 | 2016-05-01T13:53:58.223Z | 2,016 | 5 | 13 | 6 | 100 | 3 | 548 | 26 | 3 | 4 | true | false | false | false | false | false | zero |
36,967,469 | Start app on whatever (empty) NFC attached | <p>I have already tried probably 100 different way to accomplish it. I just can't figure out how to do this.</p>
<p>I have an empty NFC tag. I need only to start the app if my phone scans an NFC tag, no matter what tag it is, or what is written on it. I don't want to write something on it, or read it.</p>
<p>At the m... | I have already tried probably 100 different way to accomplish it. I just can't figure out how to do this. I have an empty NFC tag. I need only to start the app if my phone scans an NFC tag, no matter what tag it is, or what is written on it. I don't want to write something on it, or read it. At the moment, if I scan an... | android|tags|nfc|intentfilter | 1 | 2016-05-01T13:55:35.583Z | 2,016 | 5 | 13 | 6 | 1,222 | 2 | 798 | 42 | 4 | 1 | true | false | false | false | false | false | low |
36,967,539 | intent camera crashes after back press | <p>I am trying to use intent camera to capture video in my app,when i take a video and i am redirected to the Main activity it works all fine,however after i press back button in the intent camera mode it crashes </p>
<pre><code>@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
protected void onActivityResult(int r... | I am trying to use intent camera to capture video in my app,when i take a video and i am redirected to the Main activity it works all fine,however after i press back button in the intent camera mode it crashes [CODE] | java|android|android-intent|parse-platform | 1 | 2016-05-01T14:04:02.820Z | 2,016 | 5 | 14 | 6 | 560 | 3 | 216 | 38 | 4 | 1 | true | false | false | false | false | false | low |
36,967,541 | Android AlarmManager without turning screen on | <p>My application have a realtime module that should ping the server every 60 seconds. Without this, the connection will be dropped and the device will need to reconnect again. </p>
<p>The first attempt was to use a Thread.Sleep to make the pinging thread runs at the desired frequency. The second attempt was to use th... | My application have a realtime module that should ping the server every 60 seconds. Without this, the connection will be dropped and the device will need to reconnect again. The first attempt was to use a Thread.Sleep to make the pinging thread runs at the desired frequency. The second attempt was to use the ScheduleEx... | android|real-time|alarmmanager|background-process | 1 | 2016-05-01T14:04:14.943Z | 2,016 | 5 | 14 | 6 | 526 | 2 | 1,333 | 46 | 4 | 0 | false | false | false | false | false | false | low |
36,967,550 | error JsonObjectRequest request | <p><strong>Run this app but has stoped.
I have crashed app android in line:</strong></p>
<pre><code>private void initData(){
requestData(Config.APP_API_URL + Config.GET_ALL);
jsonStatusSuccessString =
getResources().getString(R.string.json_status_success);
connectionError = getResources().getString(R.... | Run this app but has stoped. I have crashed app android in line: [CODE] but I ended up getting NullPointerException, and here is my code: 05-01 13:27:05.096 6997-6997/com.panaceasoft.citiesdirectory E/AndroidRuntime: FATAL EXCEPTION: main Process: com.panaceasoft.citiesdirectory, PID: 6997 com.google.gson.JsonSyntaxExc... | android|json | -1 | 2016-05-01T14:06:05.333Z | 2,016 | 5 | 14 | 6 | 140 | 1 | 6,414 | 31 | 2 | 1 | true | false | false | false | false | true | negative |
36,967,633 | I delete an entry in SQLite database, then I got mixed order in ListView? | <p>Hi I am making an app where I execute in the MainActivity a line of code like</p>
<pre><code>ArrayList<Notes> array_list = mydb.getAllNotes();
</code></pre>
<p>here I get all rows in the database but then I have an option to delete one and I do it, when I do it it deletes that row in the database and then to... | Hi I am making an app where I execute in the MainActivity a line of code like [CODE] here I get all rows in the database but then I have an option to delete one and I do it, when I do it it deletes that row in the database and then to go back to the main activity I execute code like: [CODE] Where the very first line of... | android | 0 | 2016-05-01T14:15:54.293Z | 2,016 | 5 | 14 | 6 | 52 | 2 | 763 | 73 | 1 | 2 | true | false | false | false | false | false | zero |
36,967,639 | SpeechRecognizer method not on main thread in service | <p>I am using aidl to invoke speech recognition in a service . the recognition happens in the service and passes the recognition back to the app. </p>
<p>the problem is that the method startListening created an exception :</p>
<pre><code>java.lang.RuntimeException: SpeechRecognizer should be used only from the applic... | I am using aidl to invoke speech recognition in a service . the recognition happens in the service and passes the recognition back to the app. the problem is that the method startListening created an exception : [CODE] here is my service : [CODE] speechActivated is a the method that I invoke in the main app when I want... | android|service|speech-recognition|aidl | 0 | 2016-05-01T14:16:34.920Z | 2,016 | 5 | 14 | 6 | 1,137 | 1 | 448 | 53 | 4 | 2 | true | false | false | false | false | false | zero |
36,967,793 | Action bar showing two action bar | <p>My <code>ActionBar</code> is not working properly . See this:
<a href="https://i.stack.imgur.com/Y9vXR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y9vXR.png" alt="enter image description here"></a></p>
<p><code>AndroidManifest.xml</code> code is here: </p>
<pre><code><?xml version="1.0" ... | My ActionBar is not working properly . See this: AndroidManifest.xml code is here: [CODE] How to remove the lower action bar which is not displaying activity name ? | android | 2 | 2016-05-01T14:33:15.020Z | 2,016 | 5 | 14 | 6 | 1,160 | 2 | 164 | 33 | 1 | 1 | true | false | false | false | false | false | low |
36,967,812 | Items in recyclerView version higher than v7:23.1.1 | <p>Each item in the recyclerView higher than v7.23.1.1 are shown separately. it means while scroling down each next one is on the next side.</p>
<pre><code><android.support.v7.widget.RecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
an... | Each item in the recyclerView higher than v7.23.1.1 are shown separately. it means while scroling down each next one is on the next side. [CODE] my build.gradle [CODE] any suggestions? enter image description here | java|android|android-recyclerview | 0 | 2016-05-01T14:34:41.530Z | 2,016 | 5 | 14 | 6 | 81 | 1 | 213 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
36,967,926 | php code isn't accepting any entry after POST method | <p>my android code sends variable to PHP file which supposed to use it in making queries on MYSQL Server.</p>
<p>the problem is after defining the variable, any command I write generates error.</p>
<p>the php code:</p>
<pre><code><?php
require "init.php";
$coresite = $_POST["selectedcoresite"]
?>
</code></pre>... | my android code sends variable to PHP file which supposed to use it in making queries on MYSQL Server. the problem is after defining the variable, any command I write generates error. the php code: [CODE] here I have no issue and the output of the file is "nothing" but working. but if I added any thing like: [CODE] it ... | php|android|mysqli|http-post | 0 | 2016-05-01T14:45:54.857Z | 2,016 | 5 | 14 | 6 | 15 | 0 | 709 | 52 | 4 | 3 | true | true | false | false | false | false | zero |
36,968,001 | ImageViews flickering before they should be visible | <p>I have an Activity with a toolbar (which is part of the SharedElements Activity entering animation) and below that toolbar are three ImageViews horizontally next to each other. In their XML implementation all three are set INVISIBLE.</p>
<p>What I'm trying to do is, to animate them sequentially "dropping" from behi... | I have an Activity with a toolbar (which is part of the SharedElements Activity entering animation) and below that toolbar are three ImageViews horizontally next to each other. In their XML implementation all three are set INVISIBLE. What I'm trying to do is, to animate them sequentially "dropping" from behind the tool... | android|view|objectanimator | 1 | 2016-05-01T14:53:35.277Z | 2,016 | 5 | 14 | 6 | 400 | 1 | 978 | 51 | 3 | 3 | true | false | false | false | false | false | low |
36,968,095 | Android studio not recognizing USB Emulator | <p>I'm having ENOURMOUS issues with android studio. If it's not rendering issues it's the emulator. (btw Must I have internet connection to use that IDE ? Must I only use SDK setting of SDK actually installed on my machine))
My current problem is that I followed this hello world tutorial <a href="https://developer.andr... | I'm having ENOURMOUS issues with android studio. If it's not rendering issues it's the emulator. (btw Must I have internet connection to use that IDE ? Must I only use SDK setting of SDK actually installed on my machine)) My current problem is that I followed this hello world tutorial https://developer.android.com/trai... | java|android|android-emulator | 0 | 2016-05-01T15:01:13.710Z | 2,016 | 5 | 15 | 6 | 58 | 1 | 802 | 43 | 3 | 0 | false | false | false | false | false | false | zero |
36,968,217 | action bar not showing activity name | <p>Here is my AndroidManifest.xml code</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.me.allange">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:... | Here is my AndroidManifest.xml code [CODE] I want to see the activity name in the action bar . See the image of my action bar ... Please help me | android|xml | -2 | 2016-05-01T15:13:07.217Z | 2,016 | 5 | 15 | 6 | 744 | 1 | 144 | 36 | 2 | 1 | true | false | false | false | false | true | negative |
36,968,376 | WPF how to effectively detect user activity | <p>I have an application in which I have to logout after say x seconds of inactivity.
I therefore have a timer going on and calculating a timespan from the last user acitivity resetted with:</p>
<pre><code>dtLastActivity = DateTime.Now;
</code></pre>
<p>So the problem is that I don't think it's the best approach to a... | I have an application in which I have to logout after say x seconds of inactivity. I therefore have a timer going on and calculating a timespan from the last user acitivity resetted with: [CODE] So the problem is that I don't think it's the best approach to associate EVERY single event in my program with the afore ment... | c#|wpf|events|android-activity | 3 | 2016-05-01T15:27:14.647Z | 2,016 | 5 | 15 | 6 | 1,709 | 1 | 1,376 | 43 | 4 | 2 | true | false | false | false | false | false | low |
36,968,415 | Handling rotation changes and user leaving activity | <p>So I’ve got this Activity with a doSomething() method. This method must be called when the user leaves the Activity and resumes after a while. This code works fine. The problem is: When the user rotates the phone (orientation change), the method is also called. I don’t want the method to be called on Orientation Cha... | So I’ve got this Activity with a doSomething() method. This method must be called when the user leaves the Activity and resumes after a while. This code works fine. The problem is: When the user rotates the phone (orientation change), the method is also called. I don’t want the method to be called on Orientation Change... | android|android-activity|screen-orientation|screen-rotation | 1 | 2016-05-01T15:30:29.523Z | 2,016 | 5 | 15 | 6 | 38 | 2 | 371 | 51 | 4 | 1 | true | false | false | false | false | false | low |
36,968,457 | HTTP POST code fails with Android 5.1 | <p>following code worked fine until now (code snippets, not complete):</p>
<pre><code>URL connectURL = new URL(remURL);
c= (HttpURLConnection) connectURL.openConnection();
c.setDoOutput(true); // enable POST
c.setRequestMethod("POST");
c.addRequestProperty("Content-Type","application/x-www-form-urlencoded");
c.add... | following code worked fine until now (code snippets, not complete): [CODE] Now when I try to run the same code on Android 5.1 I see following problems: c.getContentLength() always returns a length of 0 when I ingore this content length size, and try to download the data, is.available() is always false The POST-URL is O... | android|http|http-post|android-5.1.1-lollipop | 0 | 2016-05-01T15:33:27.053Z | 2,016 | 5 | 15 | 6 | 42 | 0 | 488 | 37 | 4 | 1 | true | true | false | false | false | false | zero |
36,968,503 | android - cannot update listview on changing an EditText value | <p>I have an activity that retrieves data from a database that contains information (name, capital, population, flag image) for many countries. The main layout has an EditText to take the capital name as the input and a ListView. On launching the activity, all the countries are retrieved and shown briefly in the List... | I have an activity that retrieves data from a database that contains information (name, capital, population, flag image) for many countries. The main layout has an EditText to take the capital name as the input and a ListView. On launching the activity, all the countries are retrieved and shown briefly in the ListView.... | android|listview|android-edittext | 0 | 2016-05-01T15:37:49.473Z | 2,016 | 5 | 15 | 6 | 1,417 | 1 | 919 | 62 | 3 | 3 | true | false | false | false | false | false | zero |
36,968,550 | Passing Images between activities using Picasso and RecyclerAdapter | <p>I'm trying to pass an Image/Poster between activities through intent. I have used Picasso library and Recycler Adapter. but I'm unable to set the image in bundle extras after getting intent. after Year and title.</p>
<pre><code> public class ShowMovieDetails extends AppCompatActivity implements OnNetworkCallHandle... | I'm trying to pass an Image/Poster between activities through intent. I have used Picasso library and Recycler Adapter. but I'm unable to set the image in bundle extras after getting intent. after Year and title. [CODE] and the other class where m setting things in extras [CODE] my recyclerAdapter [CODE] | java|android | 1 | 2016-05-01T15:42:19.713Z | 2,016 | 5 | 15 | 6 | 862 | 1 | 305 | 67 | 2 | 3 | true | false | false | false | false | false | low |
36,968,584 | Upload of Large File Using AndroidAsyncHttp Fails after sometime from android | <p>I am trying to upload a file using AsyncHttpClient.Below is the code :</p>
<pre><code>public class uploadVideoAsyncTask extends AsyncTask<String,Void,JSONObject>{
Context context;
SyncHttpClient client;
JSONObject response;
public uploadVideoAsyncTask(Context context) {
this.context =... | I am trying to upload a file using AsyncHttpClient.Below is the code : [CODE] this code works fine if the file upload takes very less time approx 1 min, But if the file size is greater and take more time . The AsyncHttpclient stops uploading File after some time without any error. I have already tried with different se... | android|file-upload|android-async-http | 0 | 2016-05-01T15:45:45.607Z | 2,016 | 5 | 15 | 6 | 511 | 1 | 442 | 77 | 3 | 1 | true | false | false | false | false | false | zero |
36,968,686 | If statement to display specific alert dialog | <p>I have an alert dialog to display when a state is finished. This dialog box displays the score and a high score. Is there way to display a specific alert dialog when a statement is true?</p>
<pre><code> AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage("Score: " + Score + ... | I have an alert dialog to display when a state is finished. This dialog box displays the score and a high score. Is there way to display a specific alert dialog when a statement is true? [CODE] I tried this below but does not work and just crashes the app. [CODE] And then the else would contain the first set of code to... | java|android|android-alertdialog | 1 | 2016-05-01T15:55:47.163Z | 2,016 | 5 | 15 | 6 | 330 | 1 | 367 | 45 | 3 | 2 | true | false | false | false | false | false | low |
36,968,728 | Android Studio: Testing: Library dependencies that have been compiled using java 8 or above | <p>please help. I am having a really horrible time with setting up my testing for android studio.</p>
<p>I have downloaded the calculator example to practice cumcumber code testing from the cucumber github. <a href="https://github.com/cucumber/cucumber-jvm/tree/master/android" rel="nofollow noreferrer">https://github... | please help. I am having a really horrible time with setting up my testing for android studio. I have downloaded the calculator example to practice cumcumber code testing from the cucumber github. https://github.com/cucumber/cucumber-jvm/tree/master/android (some of these brands btw are very strangley named) I tried to... | android|android-studio|cucumber|android-gradle-plugin|android-espresso | 4 | 2016-05-01T15:59:46.420Z | 2,016 | 5 | 15 | 6 | 6,449 | 2 | 1,147 | 91 | 5 | 3 | true | false | true | false | false | false | low |
36,968,733 | Symfony 3 JSONResponse on Android | <p>so im using a createQuery to connect to my symfony database with Doctrine like this</p>
<pre><code>// JSON ACTION
public function jsonAction()
{
$em = $this->getDoctrine()->getEntityManager();
$query = $em->createQuery('SELECT pa FROM CBMedBundle:Patients pa');
$myArray = $query->getArrayResult();
retur... | so im using a createQuery to connect to my symfony database with Doctrine like this [CODE] At url : http://localhost/Symfony/web/app_dev.php/json Now i want to export the result (jsonreponse) on Android (eclipse android) and show the response there ! How can i do that ? I found this code on google about showing a json ... | php|android|json|symfony | 0 | 2016-05-01T16:00:08.797Z | 2,016 | 5 | 16 | 6 | 404 | 1 | 539 | 33 | 4 | 3 | true | false | false | false | false | false | zero |
36,968,798 | Getting phone state in Xamarin | <p>I have following code:</p>
<pre><code>public class StateListener : PhoneStateListener
{
StateListener phoneStateListener = new StateListener();
TelephonyManager telephonyManager = (TelephonyManager)GetSystemService(Context.TelephonyService);
telephonyManager.Listen(phoneStateListender, P... | I have following code: [CODE] This is an inner class because my base class is "MainActivity : Activity". The above code was from Java, so I tried to convert it to C#. However, I get erros in this case: [CODE] throws an error that field initializers must be static and [CODE] is not available in this context. I don't eve... | android|xamarin|listener|telephonymanager | 1 | 2016-05-01T16:07:36.320Z | 2,016 | 5 | 16 | 6 | 1,962 | 1 | 433 | 30 | 4 | 3 | true | false | false | false | false | false | low |
36,968,806 | Deleting item from Listview in onActivityResult | <p>I'm hoping that someone here could help me. I'm trying to delete an item from my Listview by clicking a button from another activity. I'm sending a an intent and resultcode in the onActivityResult to the activity that contains the listview but nothing is happening. Any help would be greatly appreciated. Thanks</p>
... | I'm hoping that someone here could help me. I'm trying to delete an item from my Listview by clicking a button from another activity. I'm sending a an intent and resultcode in the onActivityResult to the activity that contains the listview but nothing is happening. Any help would be greatly appreciated. Thanks Delete B... | android | 0 | 2016-05-01T16:08:20.987Z | 2,016 | 5 | 16 | 6 | 225 | 1 | 408 | 47 | 1 | 3 | true | false | false | false | false | false | zero |
36,968,843 | How to use docker android images on drone.io | <p>First of all , i am very beginner in this drone and docker stuffs , so please be kind on me. Now this is the scenario </p>
<ol>
<li>My organisation has a drone server ready and working.</li>
<li>When I log in into the drone server , I can see all my android repositories.</li>
<li>There is repository named "DockerTe... | First of all , i am very beginner in this drone and docker stuffs , so please be kind on me. Now this is the scenario My organisation has a drone server ready and working. When I log in into the drone server , I can see all my android repositories. There is repository named "DockerTesting" which I have made just to set... | android|docker|drone.io | 1 | 2016-05-01T16:12:13.327Z | 2,016 | 5 | 16 | 6 | 441 | 0 | 957 | 44 | 3 | 1 | true | true | false | false | false | false | low |
36,968,864 | Filterable Interface ok, but BaseAdapter's getview getting wrong position | <p>I implemented a <code>SearchView</code> and a custom <code>Filter</code> to filter a <code>ListView</code> in my app. I am facing this issue: when I filter <code>ListView</code> after typing in <code>SeachView</code> field and click on an item, it opens a new activity as it should, but they get all wrong data positi... | I implemented a SearchView and a custom Filter to filter a ListView in my app. I am facing this issue: when I filter ListView after typing in SeachView field and click on an item, it opens a new activity as it should, but they get all wrong data position. I tried to put in the onclickListener i.putExtra("word", word); ... | android|listview | 2 | 2016-05-01T16:15:34.037Z | 2,016 | 5 | 16 | 6 | 69 | 1 | 451 | 73 | 2 | 4 | true | false | false | false | false | false | low |
36,968,900 | removing item from a listview and data from database android | <p>I am trying to remove the data from my database and from a listview based on a long press or click. I have looked at some tutorials but am not sure how to go about this. any advice?</p>
<p>here is my code so far:
listview adapter class:</p>
<pre><code>public class AndroidListViewCursorAdaptorActivity extends Activ... | I am trying to remove the data from my database and from a listview based on a long press or click. I have looked at some tutorials but am not sure how to go about this. any advice? here is my code so far: listview adapter class: [CODE] and heres my DBAdapter class: [CODE] | android|sqlite|listview | 0 | 2016-05-01T16:18:21.977Z | 2,016 | 5 | 16 | 6 | 67 | 1 | 273 | 60 | 3 | 2 | true | false | false | false | false | false | zero |
36,968,987 | Drawing custom font to screen | <p>So I'm creating a 2D game and currently following a tutorial for adding custom font to the screen. </p>
<p>What I did is shown in the code below. I only copied the part of code relevant to this topic.</p>
<pre><code>public class GameScreen implements Screen, InputProcessor {
private SpriteBatch batch = null;
... | So I'm creating a 2D game and currently following a tutorial for adding custom font to the screen. What I did is shown in the code below. I only copied the part of code relevant to this topic. [CODE] The problem is, the text is not showing. Could this be outdated method or what? | java|android|libgdx | 0 | 2016-05-01T16:26:18.523Z | 2,016 | 5 | 16 | 6 | 226 | 1 | 279 | 29 | 3 | 1 | true | false | false | false | false | false | zero |
36,969,018 | Why can't see my pictures on android? (Python/Kivy App) | <p>I'm using kivy on App. I'm able to take pictures and save them, but not to view on Android. Well, at least on normal way...
I save the pictures on '/storage/emulated/0/'. I put a os.path.isfile to make sure the files exists and yes, I got True! Using "File Manager App" on my cell phone I can see the pictures, but t... | I'm using kivy on App. I'm able to take pictures and save them, but not to view on Android. Well, at least on normal way... I save the pictures on '/storage/emulated/0/'. I put a os.path.isfile to make sure the files exists and yes, I got True! Using "File Manager App" on my cell phone I can see the pictures, but they ... | android|python|kivy | 0 | 2016-05-01T16:28:31.103Z | 2,016 | 5 | 16 | 6 | 211 | 0 | 508 | 55 | 3 | 1 | true | true | false | false | false | false | zero |
36,969,017 | Calling a function in an Activity, from a custom class | <p>Below is my customer class which extend PagerAdapter:</p>
<pre><code>public class CustomPagerAdapter extends PagerAdapter {
private Context mContext;
private Vector<View> pages;
private static activity2 act2;
public CustomPagerAdapter(Context context, Vector<View> pages) {
this.act2 = new activity... | Below is my customer class which extend PagerAdapter: [CODE] Code at my Activity2 (which need to call from CustomPagerAdapter) [CODE] But, I get this error: [CODE] How can i call the function at Activity2 from CustomPagerAdapter ? | android|android-appcompat | 0 | 2016-05-01T16:28:31.133Z | 2,016 | 5 | 16 | 6 | 108 | 4 | 230 | 54 | 2 | 3 | true | false | false | false | false | false | zero |
36,969,019 | Setting the adapter for list view inside fragment | <p>I have a custom adapter for listView which is inside a fragment. I'm getting an error that I dont know what causes it.</p>
<p>here is the SummerJobsFragment.java:</p>
<pre><code>import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;
import android.database.Cursor;
import a... | I have a custom adapter for listView which is inside a fragment. I'm getting an error that I dont know what causes it. here is the SummerJobsFragment.java: [CODE] and here is the CustomListAdapter: [CODE] and here is the logcat of the error: Click here for logCat | android|android-fragments | 0 | 2016-05-01T16:28:42.010Z | 2,016 | 5 | 16 | 6 | 116 | 1 | 263 | 49 | 2 | 2 | true | false | false | false | false | false | zero |
36,969,050 | My Game’s In-App Purchasing Doesn’t Function | <p>I am a Android game developer in Nigeria. My app is in the playstore and it has in-app products. The default price is naturally in Naira, as is my Merchant Bank account.</p>
<p><a href="http://i.stack.imgur.com/DvHMF.jpg" rel="nofollow">Here is the problem: when I try to purchase a product from my game, it gives me... | I am a Android game developer in Nigeria. My app is in the playstore and it has in-app products. The default price is naturally in Naira, as is my Merchant Bank account. Here is the problem: when I try to purchase a product from my game, it gives me this error My banks subsequently tells me that I have selected the DCC... | android|in-app-purchase|google-play-games|cocoonjs|construct-2 | 0 | 2016-05-01T16:31:41.773Z | 2,016 | 5 | 16 | 6 | 123 | 2 | 1,065 | 44 | 5 | 0 | false | false | false | false | false | false | zero |
36,969,185 | Cant Install Intel HAXM | <p>I have been using Intel HAXM before with no issues, however when Android Studio 2.0 released I reinstalled the IDE and it prompted me to install HAXM before starting the emulator. The installation went through (and still goes) successfully however Android Studio still says intel HAXM is not installed. </p>
<p><a hr... | I have been using Intel HAXM before with no issues, however when Android Studio 2.0 released I reinstalled the IDE and it prompted me to install HAXM before starting the emulator. The installation went through (and still goes) successfully however Android Studio still says intel HAXM is not installed. I also tried runn... | android|android-studio|android-emulator|intel|haxm | 2 | 2016-05-01T16:46:43.450Z | 2,016 | 5 | 16 | 6 | 1,022 | 1 | 580 | 23 | 5 | 0 | false | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.