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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,569,247 | Android FATAL EXCEPTION: main - Android Studio | <p>I trying create MP3 Player but i have a errors in my Android Studio. I tested on Sony Xperia T3.
Please help! I don't know where is problem.. Error in FindSongs function (for(File singleFile : files))</p>
<pre><code>821-821/dsada.dsada E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: dsada.dsada, PID: 821
j... | I trying create MP3 Player but i have a errors in my Android Studio. I tested on Sony Xperia T3. Please help! I don't know where is problem.. Error in FindSongs function (for(File singleFile : files)) [CODE] My code: [CODE] | android | 0 | 2015-02-17T19:10:52.687Z | 2,015 | 2 | 19 | 1 | 608 | 2 | 223 | 46 | 1 | 2 | true | false | false | false | false | false | zero |
28,569,262 | Listview and disappearing Spanish words | <p>I have a listview in my app with custom rows layout. And the problem is some words randomly appearing/disappearing on scrolling. This words contains letters from spanish, e.g. <strong>á</strong> or <strong>ü</strong> and more.</p>
<p>For example: on activity created I can see in listview my row with title "<strong>... | I have a listview in my app with custom rows layout. And the problem is some words randomly appearing/disappearing on scrolling. This words contains letters from spanish, e.g. á or ü and more. For example: on activity created I can see in listview my row with title " I live in Nájera " (Nájera is a small town in Spain)... | android|android-listview|encoding|android-viewholder | 0 | 2015-02-17T19:11:42.363Z | 2,015 | 2 | 19 | 1 | 60 | 1 | 631 | 39 | 4 | 3 | true | false | false | false | false | false | zero |
28,569,306 | Storing temporary downloaded data in Android application | <p>I have a couple of applications that display downloaded content.
So, data is get in XML via REST, and then parsed to <code>ArrayList<MY_MODEL_CLASS></code>.
Applications consist of <code>ViewPager</code>s with Fragments, they also have nested Fragments. Data is loaded when user opens corresponding fragments.</... | I have a couple of applications that display downloaded content. So, data is get in XML via REST, and then parsed to ArrayList<MY_MODEL_CLASS> . Applications consist of ViewPager s with Fragments, they also have nested Fragments. Data is loaded when user opens corresponding fragments. Currently all ArrayLists are usual... | java|android|rest|design-patterns|android-fragments | 1 | 2015-02-17T19:14:15.337Z | 2,015 | 2 | 19 | 1 | 396 | 0 | 1,320 | 56 | 5 | 0 | false | true | false | false | false | false | low |
28,569,398 | Class organization to access abstract method from Android fragment class | <p>I'm not really sure what my problem statement is, as you can tell from the title. I have an abstract class A that extends Activity. Class A has an abstract method defined:</p>
<pre><code>public abstract class A extends Activity {
ActionBar.Tab devicesTab, otherTab;
Fragment fragmentTab = new FragmentTab();
... | I'm not really sure what my problem statement is, as you can tell from the title. I have an abstract class A that extends Activity. Class A has an abstract method defined: [CODE] The class that implements connectBluetooth(BluetoothDevice deviceToConnect) extends Class A: [CODE] Inside class A I have a Fragment which ha... | java|android|android-fragments|abstract-class|abstract-methods | 1 | 2015-02-17T19:19:46.080Z | 2,015 | 2 | 19 | 1 | 1,974 | 1 | 922 | 72 | 5 | 2 | true | false | false | false | false | false | low |
28,569,598 | How to select a word from a String | <p>I'm working on a smart EditText where the user write a product and a price without any worries about formatting (e.g. "Pasta 0,50" or "0.50 tomato juice").</p>
<p>I'd like to separate the price from all the rest to have something like</p>
<pre><code>String input = "Cheese 2,00 for Pizza";
String outputProduct = "C... | I'm working on a smart EditText where the user write a product and a price without any worries about formatting (e.g. "Pasta 0,50" or "0.50 tomato juice"). I'd like to separate the price from all the rest to have something like [CODE] Usually it shouldn't be a thing, but I'm also considering of taking care if the price... | android|android-edittext|string-formatting | 0 | 2015-02-17T19:30:22.590Z | 2,015 | 2 | 19 | 1 | 95 | 0 | 748 | 34 | 3 | 1 | true | true | false | false | false | false | zero |
28,569,599 | Use ActiveAndroid on existing database-content | <p>I developed an Android-App where I saved data in a SQLite database using the SQLiteOpenHelper.</p>
<p>I am wondering if I could update my app by using <a href="http://www.activeandroid.com/">ActiveAndroid</a>, but in a way that the user data previously stored in the database will be preserved.</p>
<p>Is that possi... | I developed an Android-App where I saved data in a SQLite database using the SQLiteOpenHelper. I am wondering if I could update my app by using ActiveAndroid , but in a way that the user data previously stored in the database will be preserved. Is that possible? | android|database|android-sqlite|activeandroid | 12 | 2015-02-17T19:30:22.847Z | 2,015 | 2 | 19 | 1 | 863 | 1 | 262 | 46 | 4 | 0 | false | false | false | false | true | false | medium |
28,569,789 | Titanium facebook like button | <p>I try to publish like for page from my Titanium Alloy application.</p>
<pre><code>var fb = require('facebook');
fb.appid = "1234567890";
fb.permissions = ['public_profile', 'email', 'publish_actions'];
fb.addEventListener('login', function(e) {
if (e.success) {
Ti.API.info('LOGIN : Logged In');
} e... | I try to publish like for page from my Titanium Alloy application. [CODE] But error appeared when app make API call: [CODE] Do you have any ideas how to publish like? | javascript|android|titanium|facebook-like | 0 | 2015-02-17T19:42:17.133Z | 2,015 | 2 | 19 | 1 | 273 | 1 | 166 | 29 | 4 | 2 | true | false | false | false | false | false | zero |
28,569,832 | conventions to implementing an interface in android? | <p>take for example </p>
<pre><code>private onClickListener mCorkeyListener = new onClickListener() {
public void onClick(View v) {
}
};
</code></pre>
<p>straight from the android website. so what's the convention behind it exactly. i know it may sound a bit ambiguous, but bear w/ it.</p> | take for example [CODE] straight from the android website. so what's the convention behind it exactly. i know it may sound a bit ambiguous, but bear w/ it. | java|android | -4 | 2015-02-17T19:44:46.813Z | 2,015 | 2 | 19 | 1 | 34 | 1 | 155 | 52 | 2 | 1 | true | false | false | false | false | true | negative |
28,569,871 | Adding assets to Android Project, Visual Studio 2015 CTP | <p>I am attempting to add assets to an android project, using Visual Studio 2015 CTP. When I add files to ProjectName.Packaging/res the build fails with the error:</p>
<pre><code>1> -package-resources:
1> [aapt] Found Deleted Target File
1> [aapt] Creating full resource package...
1> [aa... | I am attempting to add assets to an android project, using Visual Studio 2015 CTP. When I add files to ProjectName.Packaging/res the build fails with the error: [CODE] Please advise. Thanks. | android|assets|visual-studio-2015 | 0 | 2015-02-17T19:46:42.170Z | 2,015 | 2 | 19 | 1 | 1,777 | 2 | 190 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
28,569,897 | android wifi direct live camera video stream | <p>I have established a wifi direct p2p connection between two android devices, streaming the live camera feed from device A to device B, at 720x480 resolution. It works ok, but is pretty choppy, even at close range (<1m). Sometimes it's ~15fps, then for a couple seconds it will drop to ~3fps (just a guesstimate). T... | I have established a wifi direct p2p connection between two android devices, streaming the live camera feed from device A to device B, at 720x480 resolution. It works ok, but is pretty choppy, even at close range (<1m). Sometimes it's ~15fps, then for a couple seconds it will drop to ~3fps (just a guesstimate). The bas... | android|video|stream|p2p|wifi-direct | 1 | 2015-02-17T19:48:17.540Z | 2,015 | 2 | 19 | 1 | 2,112 | 1 | 663 | 44 | 5 | 1 | true | false | false | false | false | false | low |
28,569,929 | trying to convert a regular list view into a clickable list view | <p>I started this program by reading in a premade database and has it display on a list, i am currently trying to convert the list to a clickable list that opens up to a new fragment. This is the code i am currently running. The commented out section is the current problem.</p>
<pre><code>public void onCreate(Bundle s... | I started this program by reading in a premade database and has it display on a list, i am currently trying to convert the list to a clickable list that opens up to a new fragment. This is the code i am currently running. The commented out section is the current problem. [CODE] listView.setOnItemClickListener(this); wi... | java|android|listview | 0 | 2015-02-17T19:50:31.940Z | 2,015 | 2 | 19 | 1 | 67 | 2 | 662 | 64 | 3 | 1 | true | false | false | false | false | false | zero |
28,570,040 | Android MediaPlayer is paused, volume buttons do not control multimedia | <p>I played a sample music (.mp3) using a sample code I found on the Internet.
The code is something like</p>
<pre><code>MediaPlayer mp = new ...
mp.setDataSource(...
mp.setAudioStreamType(...
mp.prepare();
mp.start();
</code></pre>
<p>The problem is that when the music is paused, the volume buttons do not control mu... | I played a sample music (.mp3) using a sample code I found on the Internet. The code is something like [CODE] The problem is that when the music is paused, the volume buttons do not control multimedia volume but notification volume. [CODE] This behaviour is different from other music players I have tested. Samsung's bu... | android|android-mediaplayer|android-developer-api | 3 | 2015-02-17T19:57:49.907Z | 2,015 | 2 | 19 | 1 | 197 | 1 | 672 | 71 | 3 | 2 | true | false | false | false | false | false | low |
28,570,070 | Android wear Xamarin Messages | <p>I want to send Messages from an Android Wear Device to the connected Phone.
The Android Smartphone Application is written in native Java and working. The Wear-Application is written in c# with Xamarin and not working.
Here is what I got so far:</p>
<pre><code>public class MainActivity : Activity, IMessageApiMessa... | I want to send Messages from an Android Wear Device to the connected Phone. The Android Smartphone Application is written in native Java and working. The Wear-Application is written in c# with Xamarin and not working. Here is what I got so far: [CODE] The Problem is that the phone dose not receive the Message. | c#|android|xamarin | 2 | 2015-02-17T20:00:03.743Z | 2,015 | 2 | 20 | 1 | 1,741 | 2 | 311 | 29 | 3 | 1 | true | false | false | false | false | false | low |
28,570,088 | OpenCV - Java : inRange function | <p>I have my image <code>mRgba</code> and when I do this :</p>
<pre><code>Core.inRange(mRgba, B1, B2, mRgba);
</code></pre>
<p>I have the result that I expect : all my RGBA image is thresholded between B1 and B2.</p>
<p>Now I want to do this :</p>
<pre><code>Mat roi = mRgba.submat(rect);
Core.inRange(roi, B1, B2, r... | I have my image mRgba and when I do this : [CODE] I have the result that I expect : all my RGBA image is thresholded between B1 and B2. Now I want to do this : [CODE] And it's not apply on my area rectangle, I try everything since 3 hours I can't find a solution... | java|android|opencv|image-processing | 7 | 2015-02-17T20:00:59.237Z | 2,015 | 2 | 20 | 1 | 5,468 | 1 | 265 | 32 | 4 | 2 | true | false | true | false | false | false | medium |
28,570,110 | atof() function doesn't work on Android | <p>I have written an App with QT for Android. This is a test App and I found accidentally that when I call the function <code>atof()</code> the App crashes at my Samsung s3. </p>
<p>This is the error:</p>
<blockquote>
<p>W/dalvikvm(23038): threadid=1: thread exiting with uncaught exception (group=0x417acda0)
E/An... | I have written an App with QT for Android. This is a test App and I found accidentally that when I call the function atof() the App crashes at my Samsung s3. This is the error: W/dalvikvm(23038): threadid=1: thread exiting with uncaught exception (group=0x417acda0) E/AndroidRuntime(23038): FATAL EXCEPTION: main E/Andro... | android|c++|c|qt|qt-creator | 0 | 2015-02-17T20:02:32.320Z | 2,015 | 2 | 20 | 1 | 93 | 0 | 623 | 39 | 5 | 1 | true | true | false | false | false | false | zero |
28,570,178 | Android: disable content transition animation if API level is under 21 | <p>I'm trying to follow the material design model by having the views which are shared between activities to animate to their new positions/attributes when going between activities. I'm using the guide found at <a href="https://developer.android.com/training/material/animations.html" rel="nofollow">https://developer.a... | I'm trying to follow the material design model by having the views which are shared between activities to animate to their new positions/attributes when going between activities. I'm using the guide found at https://developer.android.com/training/material/animations.html . However, these animations require API 21 and m... | java|android|xml|animation|android-studio | 4 | 2015-02-17T20:06:15.630Z | 2,015 | 2 | 20 | 1 | 1,560 | 1 | 797 | 70 | 5 | 0 | false | false | false | false | false | false | low |
28,570,206 | Couldnt get neo4j-android-client.jar and neo4j-android-common.jar after building the github project | <p>I am working trying to build android project with neo4j database.</p>
<p>I took the source from this github link "<a href="https://github.com/neo4j-contrib/neo4j-mobile-android" rel="nofollow">https://github.com/neo4j-contrib/neo4j-mobile-android</a>".
I am able to run the demo project and got neo4j-android.jar fi... | I am working trying to build android project with neo4j database. I took the source from this github link " https://github.com/neo4j-contrib/neo4j-mobile-android ". I am able to run the demo project and got neo4j-android.jar file. But to proceed further with my case, I need two more jar files. One is neo4j-android-comm... | android|ant|neo4j | 1 | 2015-02-17T20:08:45.693Z | 2,015 | 2 | 20 | 1 | 157 | 1 | 730 | 99 | 3 | 0 | false | false | false | false | false | false | low |
28,570,271 | Getting Data from Cursor | <p>What I need to do is get the Points for a certain User in a certain Shop, I run this;</p>
<pre><code> Cursor cursor1 = myDB.checkPointss(email, name);
String one = cursor1.getString(cursor1.getColumnIndex("POINTS"));
scanText.setText("barcode resueeeelt " + one);
</co... | What I need to do is get the Points for a certain User in a certain Shop, I run this; [CODE] This is the Method; [CODE] Everytime I try Login to the page, it crashes over trying to get the points? I've tried so many different codes but none seem to work. So I just want it to find the points for the row that contains th... | android|sqlite|android-cursor | -1 | 2015-02-17T20:12:03.903Z | 2,015 | 2 | 20 | 1 | 106 | 1 | 477 | 24 | 3 | 4 | true | false | false | false | false | true | negative |
28,570,273 | Build libbacktrace for android | <p>I want to use a libbacktrace in my android app and I do not know how to build it...</p>
<p>Now I trying to build the lib by the script:</p>
<pre><code>#!/bin/bash
ndk-build \
APP_BUILD_SCRIPT=libbacktrace/Android.mk \
NDK_PROJECT_PATH=. \
APP_STL=stlport_static \
LOCAL_C_INCLUDES+=include \
LOC... | I want to use a libbacktrace in my android app and I do not know how to build it... Now I trying to build the lib by the script: [CODE] and I have errors: [CODE] I understood that I doing something wrong but I don't know what... | android|android-ndk | 0 | 2015-02-17T20:12:18.243Z | 2,015 | 2 | 20 | 1 | 1,014 | 1 | 228 | 30 | 2 | 2 | true | false | false | false | false | false | zero |
28,570,325 | Android viewpager doesn't work after including facebook SDK | <p>I have an app using a viewpager with some nested fragments. </p>
<p>However when I include the facebook SDK the viewpager functionality suddenly stops working.</p>
<p>I'm using android studio, so here is the build.gradle: </p>
<pre><code>dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
com... | I have an app using a viewpager with some nested fragments. However when I include the facebook SDK the viewpager functionality suddenly stops working. I'm using android studio, so here is the build.gradle: [CODE] After I've remove the facebook SDK the viewpager starts working again. For reference, this is how I've set... | android|android-fragments|android-viewpager|android-facebook | 1 | 2015-02-17T20:15:56.237Z | 2,015 | 2 | 20 | 1 | 111 | 0 | 450 | 59 | 4 | 4 | true | true | false | false | false | false | low |
28,570,442 | color output for the .mk file $(info definition | <p>I've been trying to get the output of <code>dumpvar.mk</code> to print in color like the rest of our build output but <code>dumpvar</code> is printing with <code>$(info rather than echo -e ${color}</code></p>
<pre><code>$(info SUPERUSER_EMBEDDED=$(SUPERUSER_EMBEDDED))
</code></pre>
<p>my other makefiles will print... | I've been trying to get the output of dumpvar.mk to print in color like the rest of our build output but dumpvar is printing with $(info rather than echo -e ${color} [CODE] my other makefiles will print the output with commands like: [CODE] what would be the best way to script this so that dumpvar will print the info i... | php|android|makefile|output | 2 | 2015-02-17T20:23:33.717Z | 2,015 | 2 | 20 | 1 | 243 | 1 | 468 | 47 | 4 | 4 | true | false | false | false | false | false | low |
28,570,491 | Zxing without Actionbar | <p>Hello guys I have a problem , I added to my project on android studio the ZXing libraries ( ZXing - 2.1.jar ) . This is my code :</p>
<pre><code> qrReader.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
... | Hello guys I have a problem , I added to my project on android studio the ZXing libraries ( ZXing - 2.1.jar ) . This is my code : [CODE] This is the result : http://postimg.org/image/6bv9udssp/ How do I remove that awful green bar ? | android|android-camera|libraries|qr-code|zxing | 3 | 2015-02-17T20:25:42.640Z | 2,015 | 2 | 20 | 1 | 456 | 0 | 232 | 23 | 5 | 1 | true | true | false | false | false | false | low |
28,570,637 | Pixels, Density, Screen Resolution - of a Bitmap on Surface View? | <p>Im wondering if any one can help me get my Logic right about these principles with respect to my program.
I have a surface view on whose canvas i am drawing out a bitmap.
I found this piece of coding that would work out the bitmaps size on different resolutions and screen density. </p>
<pre><code>WindowManager wm =... | Im wondering if any one can help me get my Logic right about these principles with respect to my program. I have a surface view on whose canvas i am drawing out a bitmap. I found this piece of coding that would work out the bitmaps size on different resolutions and screen density. [CODE] I have logged my values on 3 de... | android|canvas|bitmap | 0 | 2015-02-17T20:34:17.137Z | 2,015 | 2 | 20 | 1 | 629 | 1 | 876 | 65 | 3 | 1 | true | false | false | false | false | false | zero |
28,570,644 | Customize Android App Screen Image which is visible in switch between Apps screen | <p>I'm wondering how to customize the Image for My App to Home Screen image when My app is in background mode, that is when user navigates between Apps in recent apps option where a small screen shot for all running apps is visible.</p>
<p>Eg: Image Attached for more clarity.
<img src="https://i.stack.imgur.com/wzROi.... | I'm wondering how to customize the Image for My App to Home Screen image when My app is in background mode, that is when user navigates between Apps in recent apps option where a small screen shot for all running apps is visible. Eg: Image Attached for more clarity. | android|android-layout|android-intent | 4 | 2015-02-17T20:34:53.163Z | 2,015 | 2 | 20 | 1 | 5,366 | 1 | 266 | 81 | 3 | 0 | false | false | true | false | false | false | low |
28,570,675 | Wait for a View to redraw itself before the next line of code is executed | <p>I have such a piece of code inside an onTouch listener:</p>
<pre><code>game.setNextMove(move);
boardView.invalidate();
checkEnd();
computerMove(boardView);
</code></pre>
<p>I want to have the boardView redrawed before the checkEnd() method is done. How can i force it to do that?</p> | I have such a piece of code inside an onTouch listener: [CODE] I want to have the boardView redrawed before the checkEnd() method is done. How can i force it to do that? | android|android-view | 0 | 2015-02-17T20:36:35.500Z | 2,015 | 2 | 20 | 1 | 580 | 1 | 169 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
28,570,706 | error button MainActivity Android | <p>I hope you can help me with this error.</p>
<p>I want to associate an activity to a button but I have this error in the logcat (updated).</p>
<pre><code>02-17 18:04:27.033: D/AndroidRuntime(1850): Shutting down VM
02-17 18:04:27.034: E/AndroidRuntime(1850): FATAL EXCEPTION: main
02-17 18:04:27.034: E/AndroidRuntim... | I hope you can help me with this error. I want to associate an activity to a button but I have this error in the logcat (updated). [CODE] This is my MainActivity (updated) [CODE] fragment_main.xml [CODE] I have made several attempts to fix it but do not work Beforehand thank you very much for your help | java|android | 0 | 2015-02-17T20:39:20.363Z | 2,015 | 2 | 20 | 1 | 169 | 0 | 303 | 33 | 2 | 3 | true | true | false | false | false | false | zero |
28,570,710 | Android OpenGL ES 3.0 PBO instead of glReadPixels() | <p>I want to improve <code>glReadPixels()</code> performance using PBO (for GLES 3 devices) and I ran into a problem in this piece of code: </p>
<pre><code>final ByteBuffer pboByteBuffer = ByteBuffer.allocateDirect(4 * mWidth * mHeight);
pboByteBuffer.order(ByteOrder.nativeOrder());
//set framebuffer to read from
GLE... | I want to improve glReadPixels() performance using PBO (for GLES 3 devices) and I ran into a problem in this piece of code: [CODE] At the moment it fails glReadPixels() method. I found this & this , but I'm unable to send a zero because it takes an IntBuffer argument. I would very appreciate any suggestions about the i... | android|glreadpixels|opengl-es-3.0|pbo | 4 | 2015-02-17T20:40:01.487Z | 2,015 | 2 | 20 | 1 | 6,723 | 1 | 1,073 | 51 | 4 | 2 | true | false | true | false | false | false | low |
28,570,785 | Material Design support below Lollipop - crashes | <p>I've been trying to implement the Material Design theme, following <a href="http://android-developers.blogspot.co.il/2014/10/appcompat-v21-material-design-for-pre.html" rel="nofollow">these instructions</a>.</p>
<ul>
<li>I'm not using <code>ToolBar</code> (must I?)</li>
<li>ALL my Activities extends ActionBarActivi... | I've been trying to implement the Material Design theme, following these instructions . I'm not using ToolBar (must I?) ALL my Activities extends ActionBarActivity. Using getSupportActionBar() all across the project. I'm compiling and targeting to API 21 in gradle (minimun is API 15). My <application> tag contains andr... | android|android-theme|android-appcompat|material-design | 2 | 2015-02-17T20:45:05.647Z | 2,015 | 2 | 20 | 1 | 6,227 | 3 | 896 | 48 | 4 | 2 | true | false | true | false | false | false | low |
28,570,788 | Select items in RecyclerView | <p>Similar question have been asked, but i can't get any of them work.</p>
<p>What i want is to select item in RecyclerView, change the background of that item view, and store the position of item selected. </p>
<p>The main problem is that you have onCreateViewHolder (in adapter), onBindViewHolder (in adapter) and Vi... | Similar question have been asked, but i can't get any of them work. What i want is to select item in RecyclerView, change the background of that item view, and store the position of item selected. The main problem is that you have onCreateViewHolder (in adapter), onBindViewHolder (in adapter) and ViewHolder constructor... | android|android-recyclerview | 13 | 2015-02-17T20:45:09.827Z | 2,015 | 2 | 20 | 1 | 30,285 | 2 | 904 | 28 | 2 | 0 | false | false | true | true | true | false | medium |
28,570,842 | setLayoutManager NullPointException in RecyclerView | <p>I'm trying to receive a list with an array in RecyclerView and get error:</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method
'void android.support.v7.widget.RecyclerView.setLayoutManager
(android.support.v7.widget.RecyclerView$LayoutManager)'on a null object reference
</code></pre>
<p... | I'm trying to receive a list with an array in RecyclerView and get error: [CODE] RecyclerView widget's [CODE] I tried to declare LayoutManager to final, but it doesn't help. Activity code: [CODE] Adapter code: [CODE] What has possibly gone wrong? | android|android-5.0-lollipop|material-design|android-recyclerview | 23 | 2015-02-17T20:49:01.790Z | 2,015 | 2 | 20 | 1 | 70,740 | 3 | 246 | 51 | 4 | 4 | true | false | true | true | true | false | high |
28,570,844 | Service is stopped by Android | <p>I am running and unbounded service (no activity, because the activity was just for collecting data) an it seems, that the service is stopped by Android if a memory consuming programm runns (I use JellySplash for that.. :) ). Therefore I use shared preferences only if the service ist destroyed by the system, to get t... | I am running and unbounded service (no activity, because the activity was just for collecting data) an it seems, that the service is stopped by Android if a memory consuming programm runns (I use JellySplash for that.. :) ). Therefore I use shared preferences only if the service ist destroyed by the system, to get the ... | android|service|ondestroy | 0 | 2015-02-17T20:49:06.473Z | 2,015 | 2 | 20 | 1 | 56 | 2 | 760 | 29 | 3 | 2 | true | false | false | false | false | false | zero |
28,570,855 | Isuee with animated sprite | <p>I am at the end of the learning libgdx game development book, and the final chapter is about animating a sprite (bunny). When it should load the game screen an error happens, i really cant figuered out where I have made something wrong what i am sure that is with the animated bunny, I went step by step and here it i... | I am at the end of the learning libgdx game development book, and the final chapter is about animating a sprite (bunny). When it should load the game screen an error happens, i really cant figuered out where I have made something wrong what i am sure that is with the animated bunny, I went step by step and here it is w... | java|android|animation|libgdx | 0 | 2015-02-17T20:49:54.347Z | 2,015 | 2 | 20 | 1 | 353 | 2 | 2,078 | 26 | 4 | 4 | true | false | false | false | false | false | zero |
28,570,891 | Using an arrayAdapter outside of the MainActivity | <p>I have been trying to use an arrayAdapter outside of my main activity in a class called Client(). I realize that the constructor for the arrayAdapter is ArrayAdapter(context, layout_id, textview_id, items) so I have passed in the context from the mainActivity into the constructor for my Client class. For the layout_... | I have been trying to use an arrayAdapter outside of my main activity in a class called Client(). I realize that the constructor for the arrayAdapter is ArrayAdapter(context, layout_id, textview_id, items) so I have passed in the context from the mainActivity into the constructor for my Client class. For the layout_id ... | java|android|multithreading|performance|android-layout | 0 | 2015-02-17T20:52:54.847Z | 2,015 | 2 | 20 | 1 | 556 | 2 | 927 | 49 | 5 | 6 | true | false | false | false | false | false | zero |
28,570,976 | ShareActionProvider appearance | <p>I have <code>android.support.v7.widget.ShareActionProvider</code> menu in my ActionBar.</p>
<p>When I click "Share", the app list appears as a popup menu.</p>
<p>When I click "Share" in Google Play Newsstand, the app list appears as a bottom sheet that can be pulled up.</p>
<p>Can we configure <code>ShareActionPr... | I have android.support.v7.widget.ShareActionProvider menu in my ActionBar. When I click "Share", the app list appears as a popup menu. When I click "Share" in Google Play Newsstand, the app list appears as a bottom sheet that can be pulled up. Can we configure ShareActionProvider from appcompat-v7 to display bottom she... | android|android-appcompat|material-design|shareactionprovider | 5 | 2015-02-17T20:58:43.613Z | 2,015 | 2 | 20 | 1 | 1,264 | 1 | 793 | 30 | 4 | 0 | false | false | false | false | false | false | low |
28,571,064 | Android data partition size | <p>I'm building Android from source code, and install it on a custom device, where eMMC userdata partition may be one of a few different sizes.<br/>
How can I build userdata.img only once, so that it fits all the devices ?<br/>
What are the required settings in fstab.whatever and BoardConfig.mk:BOARD_USERDATAIMAGE_PART... | I'm building Android from source code, and install it on a custom device, where eMMC userdata partition may be one of a few different sizes. How can I build userdata.img only once, so that it fits all the devices ? What are the required settings in fstab.whatever and BoardConfig.mk:BOARD_USERDATAIMAGE_PARTITION_SIZE ? ... | android | 2 | 2015-02-17T21:03:22.453Z | 2,015 | 2 | 21 | 1 | 2,870 | 1 | 775 | 27 | 1 | 0 | false | false | true | false | false | false | low |
28,571,073 | Detecting a press and then a movement outside of the view | <p>I have a listener on a RelativeLayout:</p>
<pre><code> rl.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
rl.setBackgroundColor(Color.BLACK);
}
... | I have a listener on a RelativeLayout: [CODE] This changes the color when I press down/up on the Layout. What I want to detect is when the user presses the screen, but moves there finger off of the view (but still pressed). I'm not sure how to go about doing this. Thanks. | java|android|layout|listener | 0 | 2015-02-17T21:04:04.270Z | 2,015 | 2 | 21 | 1 | 75 | 1 | 272 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
28,571,124 | HashMap, SparseArray in Android: multithread a concern? | <p>I know neither HashMap nor SparseArray are threadsafe. Do I have to worry about that if I have a central data repository as HashMap which can be accessed by the activity and potentially by an AsyncTask?</p>
<p>Would it be advisable to use a HashTable or better ConcurrentHashMap to be on the safe side?</p> | I know neither HashMap nor SparseArray are threadsafe. Do I have to worry about that if I have a central data repository as HashMap which can be accessed by the activity and potentially by an AsyncTask? Would it be advisable to use a HashTable or better ConcurrentHashMap to be on the safe side? | android|multithreading|hashmap|concurrenthashmap|sparse-array | 5 | 2015-02-17T21:07:25.430Z | 2,015 | 2 | 21 | 1 | 3,444 | 1 | 295 | 55 | 5 | 0 | false | false | true | false | false | false | low |
28,571,181 | JavaFX on Android - Gradle can't find JDK | <p>I'm trying to get JavaFX applications to run on Android by using the Dalvik JavaFX-Android SDK (provided by the JavaFX Android porting team). So I downloaded the samples provided by the JavaFX Android porting team and have been trying to run one of them on Android without much success.</p>
<p>Using Eclipse with the... | I'm trying to get JavaFX applications to run on Android by using the Dalvik JavaFX-Android SDK (provided by the JavaFX Android porting team). So I downloaded the samples provided by the JavaFX Android porting team and have been trying to run one of them on Android without much success. Using Eclipse with the Gradle plu... | java|android|gradle|javafx|javafxports | 0 | 2015-02-17T21:10:35.347Z | 2,015 | 2 | 21 | 1 | 820 | 4 | 990 | 41 | 5 | 0 | false | false | false | false | false | false | zero |
28,571,185 | What is the simplest way to create a UI test in Android Studio that can take screenshots when I need it to? | <p>I am trying to create a UI test in Android Studio which will navigate through the various screens of my application and take screenshots when I tell it to.</p>
<p>I am new to Android Studio and Android programming in general; I have a decent understanding of XML and Java, but I don't know much about build files and... | I am trying to create a UI test in Android Studio which will navigate through the various screens of my application and take screenshots when I tell it to. I am new to Android Studio and Android programming in general; I have a decent understanding of XML and Java, but I don't know much about build files and I am not v... | android-studio|screenshot|android-uiautomator|ui-testing | 2 | 2015-02-17T21:10:47.283Z | 2,015 | 2 | 21 | 1 | 1,346 | 2 | 3,040 | 107 | 4 | 0 | false | false | false | false | false | false | low |
28,571,210 | Android Dual-SIM API support | <p>I was looking for Android Dual-SIM API for Android, but more or less I found nothing. As far as I understand, there is no public API from Google/Android, only specific implementation of each manufacturer. Therefore is very hard to implement application supporting Dual-SIM (or more SIM) devices. </p>
<p>If I am not ... | I was looking for Android Dual-SIM API for Android, but more or less I found nothing. As far as I understand, there is no public API from Google/Android, only specific implementation of each manufacturer. Therefore is very hard to implement application supporting Dual-SIM (or more SIM) devices. If I am not wrong about ... | android|dual-sim | 3 | 2015-02-17T21:13:01.060Z | 2,015 | 2 | 21 | 1 | 7,865 | 1 | 864 | 28 | 2 | 0 | false | false | true | false | false | false | low |
28,571,228 | Button disappears | <p>I have next Layout (TOP: Two Spinner Half: TableLayout Down: Button) , I have filled the TableLayout with WebService with...
"for (int i = 0; i < ljsonArray.length(); i++)"</p>
<p>But when the last record of WebService show in the TableLayout, the button disappeared, what's wrong?</p>
<p>Regards</p>
<pre><code... | I have next Layout (TOP: Two Spinner Half: TableLayout Down: Button) , I have filled the TableLayout with WebService with... "for (int i = 0; i < ljsonArray.length(); i++)" But when the last record of WebService show in the TableLayout, the button disappeared, what's wrong? Regards [CODE] Method to fill the TableLayOut... | android|tablelayout | 1 | 2015-02-17T21:14:21.467Z | 2,015 | 2 | 21 | 1 | 112 | 1 | 345 | 17 | 2 | 3 | true | false | false | false | false | false | low |
28,571,244 | Will Intents started by AlarmManager retain its objects between runs? | <p>I have an app that uses an AlarmManager to do a task regularly. From the Intent that is called by the AlarmManager I access the application to get access to shared data.</p>
<pre><code>Application foo = getApplication();
</code></pre>
<p>I then use the foo object both for reading and writing data. Most of the life... | I have an app that uses an AlarmManager to do a task regularly. From the Intent that is called by the AlarmManager I access the application to get access to shared data. [CODE] I then use the foo object both for reading and writing data. Most of the lifecycle of this app is in a resting state with occasional wake ups. ... | java|android|android-intent|android-broadcast|android-alarms | 1 | 2015-02-17T21:15:24.953Z | 2,015 | 2 | 21 | 1 | 91 | 1 | 718 | 69 | 5 | 1 | true | false | false | false | false | false | low |
28,571,265 | Xamarin Android Dropdown menu/list | <p>Is it possible to have a menu like this ( <a href="http://3.bp.blogspot.com/-d1pt2GTOZ-I/UjxbCVF-rlI/AAAAAAABGPc/Ed43IyMjGSo/s320/android-spinner-style-01.PNG" rel="nofollow">http://3.bp.blogspot.com/-d1pt2GTOZ-I/UjxbCVF-rlI/AAAAAAABGPc/Ed43IyMjGSo/s320/android-spinner-style-01.PNG</a> ) in xamarin? I tried followin... | Is it possible to have a menu like this ( http://3.bp.blogspot.com/-d1pt2GTOZ-I/UjxbCVF-rlI/AAAAAAABGPc/Ed43IyMjGSo/s320/android-spinner-style-01.PNG ) in xamarin? I tried following a guide and tutorials, also I tried writing code with any help but I can obtain the same result, this : http://i.imgur.com/mHUCh2I.png . I... | android|drop-down-menu|menu|xamarin | 0 | 2015-02-17T21:17:13.240Z | 2,015 | 2 | 21 | 1 | 5,017 | 1 | 375 | 34 | 4 | 0 | false | false | true | false | false | false | zero |
28,571,351 | Intent extras being lost when sending with PendingIntent for GCM | <p>I am creating a <code>notification</code> but when sending it using <code>PendingIntent</code> the <code>extras</code> get lost in the process. I am using a <code>singleTop Activity</code>, so I set a break point at the <code>onNewIntent</code> and also my <code>handleIntent</code> to see which one was firing up whe... | I am creating a notification but when sending it using PendingIntent the extras get lost in the process. I am using a singleTop Activity , so I set a break point at the onNewIntent and also my handleIntent to see which one was firing up when I clicked on the notification. When I clicked the notification, it fired up my... | android|android-intent | 1 | 2015-02-17T21:23:06.670Z | 2,015 | 2 | 21 | 1 | 468 | 2 | 702 | 64 | 2 | 2 | true | false | false | false | false | false | low |
28,571,357 | getExternalStorageDirectory return phone storage - not sdcard | <p>Hello this (getExternalStorageDirectory) return phone storage. How to get phone storage <strong>AND</strong> SDCARD?</p> | Hello this (getExternalStorageDirectory) return phone storage. How to get phone storage AND SDCARD? | java|android | 6 | 2015-02-17T21:23:35.440Z | 2,015 | 2 | 21 | 1 | 3,707 | 1 | 99 | 61 | 2 | 0 | false | false | true | false | false | false | medium |
28,571,358 | Android: Multiple Fragments from same XML file | <p>I have a view pager that has a page for each subject in an array (English, Maths, Science, etc). The fragments in the view pager are all created from the same XML file. These fragments then have fragments added inside of them.
As all the parents inflate from the same XML file, I can not specify which fragment I want... | I have a view pager that has a page for each subject in an array (English, Maths, Science, etc). The fragments in the view pager are all created from the same XML file. These fragments then have fragments added inside of them. As all the parents inflate from the same XML file, I can not specify which fragment I want to... | android|xml|android-layout|android-fragments | 0 | 2015-02-17T21:23:37.363Z | 2,015 | 2 | 21 | 1 | 3,217 | 2 | 430 | 46 | 4 | 0 | false | false | true | false | false | false | zero |
28,571,483 | Opening Google Maps from my Android app | <p>I was wanting to be able to have a button which would launch the Google Maps app, however I cannot really seem to be able to get it to work, could I have some help? Really sorry if this seems easy, i'm still a newbie with android, below is my oncreate method with the relavent Intents</p>
<pre><code>public class Mai... | I was wanting to be able to have a button which would launch the Google Maps app, however I cannot really seem to be able to get it to work, could I have some help? Really sorry if this seems easy, i'm still a newbie with android, below is my oncreate method with the relavent Intents [CODE] My app keeps crashing when t... | android|google-maps | 0 | 2015-02-17T21:33:19.813Z | 2,015 | 2 | 21 | 1 | 136 | 2 | 540 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
28,571,533 | Validating two dates on android studio | <p>I need to validate 2 date, one is picked by the user and the other is the one that I get form the calendar... this is what I try so far without success:</p>
<pre><code>Calendar c = Calendar.getInstance();
if(!DateIsOlder(txtVwAppointmentDate.getText(), c.getTime())) {
try {
//My code
... | I need to validate 2 date, one is picked by the user and the other is the one that I get form the calendar... this is what I try so far without success: [CODE] The error is on .before(dfDate.format(date2)) , it says : Error:(484, 51) error: method before in class Date cannot be applied to given types; required: Date fo... | android|date|android-studio|calendar|method-invocation | -1 | 2015-02-17T21:35:55.993Z | 2,015 | 2 | 21 | 1 | 1,356 | 4 | 652 | 38 | 5 | 2 | true | false | false | false | false | true | negative |
28,571,539 | How to show achievements page using Android Google Play Services in custom language | <p>I'm developing an app which uses Android Google Play Games. I have implemented an achievement system and just need to show the achievements page in the language selected by the user.</p>
<p>Here is the code I use to show achievements page:</p>
<pre><code>startActivityForResult(Games.Achievements.getAchievementsInt... | I'm developing an app which uses Android Google Play Games. I have implemented an achievement system and just need to show the achievements page in the language selected by the user. Here is the code I use to show achievements page: [CODE] | android|google-plus|google-play-games | 0 | 2015-02-17T21:36:30.820Z | 2,015 | 2 | 21 | 1 | 200 | 1 | 239 | 83 | 3 | 1 | true | false | false | false | false | false | zero |
28,571,541 | Thread.sleep slow down when application is in background | <p>I'm trying to create a screen recorder, using the new Lolipop Api.
So, i need a fast thread, capable of looping at least, at 10 fps.</p>
<p>However, after a few tests, i noticed a problem :
When my application is visible, the thread performs well.
But when i switch to another application or to the android home scre... | I'm trying to create a screen recorder, using the new Lolipop Api. So, i need a fast thread, capable of looping at least, at 10 fps. However, after a few tests, i noticed a problem : When my application is visible, the thread performs well. But when i switch to another application or to the android home screen, the thr... | java|android|multithreading|background | 1 | 2015-02-17T21:36:31.410Z | 2,015 | 2 | 21 | 1 | 1,545 | 2 | 843 | 56 | 4 | 2 | true | false | false | false | false | false | low |
28,571,635 | main activity background image not shown behind listview | <p>show background image of main_activity behind listview..transparent list view.I have tried to make the backgroung of listview android:background="@color/transparent" android:cacheColorHint="#00000000"
but no change</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:to... | show background image of main_activity behind listview..transparent list view.I have tried to make the backgroung of listview android:background="@color/transparent" android:cacheColorHint="#00000000" but no change [CODE] | android | -1 | 2015-02-17T21:42:38.457Z | 2,015 | 2 | 21 | 1 | 108 | 1 | 221 | 56 | 1 | 1 | true | false | false | false | false | true | negative |
28,571,652 | ActionBarDrawerToggle's openDrawerContentDescRes and closeDrawerContentDescRes | <p>The <a href="https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.html" rel="nofollow">ActionBarDrawerToggle</a> doesn't seem to use the <code>openDrawerContentDescRes</code> and <code>closeDrawerContentDescRes</code> arguments. Here's my example code:</p>
<pre><code>actionBarDrawerT... | The ActionBarDrawerToggle doesn't seem to use the openDrawerContentDescRes and closeDrawerContentDescRes arguments. Here's my example code: [CODE] This issue originally came to me from a QA engineer who was unable to find a way to reference the navigation drawer toggle from a calabash console, so that is what I'm tryin... | android|toolbar|actionbardrawertoggle | 2 | 2015-02-17T21:43:20.450Z | 2,015 | 2 | 21 | 1 | 863 | 0 | 805 | 78 | 3 | 1 | true | true | false | false | false | false | low |
28,571,672 | Is it possible to scrape a webpage by HTML class names? | <p>I'm using Jsoup to scrape, and I only want a few particular classes to be scraped. How do I go about scraping just the classes I need?</p> | I'm using Jsoup to scrape, and I only want a few particular classes to be scraped. How do I go about scraping just the classes I need? | java|android|html|web-scraping|jsoup | 0 | 2015-02-17T21:44:58.137Z | 2,015 | 2 | 21 | 1 | 1,047 | 1 | 134 | 55 | 5 | 0 | false | false | false | false | false | false | zero |
28,571,874 | Android OpenCV parallelize loops | <p>I know that OpenMP is included in NDK (usage example here: <a href="http://recursify.com/blog/2013/08/09/openmp-on-android" rel="nofollow">http://recursify.com/blog/2013/08/09/openmp-on-android</a> ). I've done what it says on that page but when I use: <em>#pragma omp for</em> on a simple for loop that scans a vecto... | I know that OpenMP is included in NDK (usage example here: http://recursify.com/blog/2013/08/09/openmp-on-android ). I've done what it says on that page but when I use: #pragma omp for on a simple for loop that scans a vector, the app crashes with the famous "fatal signal 11". What am I missing here? Btw I use a modifi... | android|c++|opencv|android-ndk|openmp | 2 | 2015-02-17T21:56:26.880Z | 2,015 | 2 | 21 | 1 | 1,331 | 1 | 692 | 32 | 5 | 1 | true | false | false | false | false | false | low |
28,571,886 | Activities running issue. Android | <p>BI have a class B in Android that extends the main class(A). When I click on a button the first screen is closed(or put on stop), and the second screen opens (B). My problem is that when that second screen opens, it will automatically start the onCreate of class A again(because it extends it, I know this because if ... | BI have a class B in Android that extends the main class(A). When I click on a button the first screen is closed(or put on stop), and the second screen opens (B). My problem is that when that second screen opens, it will automatically start the onCreate of class A again(because it extends it, I know this because if I d... | java|android|eclipse|android-studio | 0 | 2015-02-17T21:57:06.117Z | 2,015 | 2 | 21 | 1 | 43 | 2 | 945 | 33 | 4 | 2 | true | false | false | false | false | false | zero |
28,571,888 | Test purchase on android | <p>I´ve succesfully implemented a purchase flow for my app.
My app is published in Alpha stage with two of my google accounts listed as testaccounts. The APK published is the same installed on my phone.</p>
<p>Though, when I try purchasing something I get the "Authentication is required, please log in to you google a... | I´ve succesfully implemented a purchase flow for my app. My app is published in Alpha stage with two of my google accounts listed as testaccounts. The APK published is the same installed on my phone. Though, when I try purchasing something I get the "Authentication is required, please log in to you google account". So ... | android|libgdx|in-app-purchase | 0 | 2015-02-17T21:57:12.023Z | 2,015 | 2 | 21 | 1 | 79 | 1 | 648 | 24 | 3 | 0 | false | false | false | false | false | false | zero |
28,571,967 | How do I start the an activity when user doesn't use it anymore | <p>I have two activities in my app, first activity leads to second and the second leads back to the first. In the second one he can record and message and leave his name. In case the user only uses the second activity and just walks away I want that it jumps automatically to the first one after 20 seconds. Do I have to... | I have two activities in my app, first activity leads to second and the second leads back to the first. In the second one he can record and message and leave his name. In case the user only uses the second activity and just walks away I want that it jumps automatically to the first one after 20 seconds. Do I have to us... | android|timer|handler | 0 | 2015-02-17T22:02:24.140Z | 2,015 | 2 | 22 | 1 | 45 | 1 | 449 | 63 | 3 | 1 | true | false | false | false | false | false | zero |
28,571,979 | Android with Google Plus Sign-in Error | <p>After searching for an answer and trying everything possible I have ran out of options but to ask it myself. </p>
<p>After following <a href="https://developers.google.com/+/mobile/android/sign-in%20Android%20Google+%20Signin" rel="nofollow">Android with Google+ Sign-in</a> tutorial I ran into the most annoying and... | After searching for an answer and trying everything possible I have ran out of options but to ask it myself. After following Android with Google+ Sign-in tutorial I ran into the most annoying and least descriptive error ever, the "An internal error occurred" on device. Nothing in the logs. The thing is, that after clic... | android|google-plus | 0 | 2015-02-17T22:03:16.273Z | 2,015 | 2 | 22 | 1 | 92 | 0 | 992 | 38 | 2 | 0 | false | true | false | false | false | false | zero |
28,572,056 | show soft keyboard onResume | <p>Couldn't find a clear answer to this one, basically I have an activity with an EditText field. The soft keyboard is set to visible within manifest, so keyboard is visible when activity starts however if user navigates away and returns using the back button the keyboard is hidden (I need it visible on resume).
I have... | Couldn't find a clear answer to this one, basically I have an activity with an EditText field. The soft keyboard is set to visible within manifest, so keyboard is visible when activity starts however if user navigates away and returns using the back button the keyboard is hidden (I need it visible on resume). I have ad... | android|onresume | 4 | 2015-02-17T22:09:31.143Z | 2,015 | 2 | 22 | 1 | 4,430 | 6 | 421 | 27 | 2 | 1 | true | false | true | false | false | false | low |
28,572,085 | Getting abs_attrs.xml error while working with ActionBarSherlock and appcompat | <p>i want to integrate ActionBarSherlock and appcompat_v7 then import these to my project. But i faced some problems. Here they are:</p>
<pre><code>C:\Users\win7\workspace\actionbarsherlock\res\values\abs__attrs.xml:4: error: Attribute "titleTextStyle" has already been defined
C:\Users\win7\workspace\actionbarsherl... | i want to integrate ActionBarSherlock and appcompat_v7 then import these to my project. But i faced some problems. Here they are: [CODE] And so on... I have 104 errors and 66 warnings. I tried to add new library, jar then removed them but didn't work. Also i changed directory of appcompat again and again, but nothing w... | android|actionbarsherlock|android-appcompat | 1 | 2015-02-17T22:11:17.087Z | 2,015 | 2 | 22 | 1 | 241 | 1 | 345 | 78 | 3 | 1 | true | false | false | false | false | false | low |
28,572,090 | Android status bar background disappears when going fullscreen | <p>In my android app I have the status bar overlaying on top of the application content. Whenever I go into fullscreen the status bar instantly changes from its current color to translucent and then the status bar icons animate off the screen. I would like to prevent the status bar from going translucent and instead ju... | In my android app I have the status bar overlaying on top of the application content. Whenever I go into fullscreen the status bar instantly changes from its current color to translucent and then the status bar icons animate off the screen. I would like to prevent the status bar from going translucent and instead just ... | android|statusbar | 2 | 2015-02-17T22:11:32.737Z | 2,015 | 2 | 22 | 1 | 1,422 | 1 | 597 | 62 | 2 | 1 | true | false | false | false | false | false | low |
28,572,156 | Using Android TCP Client app to interface with sensor | <p>UPDATE #2: BLUF: I think I found the problem, but I need help figuring out how to fix it. The device needs a command with prefix and suffix STX>command ETX> (I had to drop the open bracket so stackoverflow would show it). When I send over TCP using Hercules (which works), the host interprets STX> and ETX> correctl... | UPDATE #2: BLUF: I think I found the problem, but I need help figuring out how to fix it. The device needs a command with prefix and suffix STX>command ETX> (I had to drop the open bracket so stackoverflow would show it). When I send over TCP using Hercules (which works), the host interprets STX> and ETX> correctly and... | java|android|sockets|tcp|tcpclient | 1 | 2015-02-17T22:15:43.327Z | 2,015 | 2 | 22 | 1 | 1,016 | 1 | 2,142 | 53 | 5 | 1 | true | false | false | false | false | false | low |
28,572,168 | Android - Try to send fake sms to myself without mobile network usage | <p>I'm trying to send message to my phone with this app, without using network usage, but my code doesn't work. I followed some tutorial, check android dev and I haven't found anything (in my logcat I don't have error). Could you help me to find out my problem.</p>
<p>My information about compilation, compiler and phon... | I'm trying to send message to my phone with this app, without using network usage, but my code doesn't work. I followed some tutorial, check android dev and I haven't found anything (in my logcat I don't have error). Could you help me to find out my problem. My information about compilation, compiler and phone: Android... | java|android | 17 | 2015-02-17T22:16:16.910Z | 2,015 | 2 | 22 | 1 | 14,808 | 1 | 645 | 69 | 2 | 2 | true | false | true | true | true | false | medium |
28,572,219 | NFC Reader Cannot Read Encrypted Card Emulation Data | <p>I'm currently using Seeed Studio's NFC Shield v2 and Arduino Uno R3. Here's the code from the sketch that I'm using to read. It based on the example provided by Seeed Studio Android HCE libraries:</p>
<pre><code>void loop() {
...
uint8_t response[510];
uint8_t responseLen = sizeof(response);
success... | I'm currently using Seeed Studio's NFC Shield v2 and Arduino Uno R3. Here's the code from the sketch that I'm using to read. It based on the example provided by Seeed Studio Android HCE libraries: [CODE] On the Android app that I have, I'm extending Android Developer's HCE example by adding digital signatures and AES e... | android|encryption|aes|arduino-uno | 0 | 2015-02-17T22:20:11.277Z | 2,015 | 2 | 22 | 1 | 462 | 1 | 1,595 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
28,572,229 | Line detection using hough line Transform openCV android | <p>I'm trying to use hough transform to detect the four edges of a rectangle in my image. However, the result is not what I expected:</p>
<p><img src="https://i.stack.imgur.com/qE79L.png" alt="Image"></p>
<p>As you can see, it detected one line somewhere on the leaf instead of the four edges.</p>
<pre><code>Mat bina... | I'm trying to use hough transform to detect the four edges of a rectangle in my image. However, the result is not what I expected: As you can see, it detected one line somewhere on the leaf instead of the four edges. [CODE] Can anyone tell me what to do to make it right? | android|opencv|hough-transform | 1 | 2015-02-17T22:20:50.587Z | 2,015 | 2 | 22 | 1 | 1,057 | 0 | 271 | 56 | 3 | 1 | true | true | false | false | false | false | low |
28,572,248 | Android java make two similar for loops into one loop | <p>Im trying to merge these two for loops together so that i can use it for one fillview. </p>
<p>Ive been trying to try for a few days but am unsure how to do this so would appreciate some help!</p>
<p>Any help is appreciated</p>
<pre><code> int maxDataSetSize = Math.max(data1.size(), Math.max(data2.size(), data... | Im trying to merge these two for loops together so that i can use it for one fillview. Ive been trying to try for a few days but am unsure how to do this so would appreciate some help! Any help is appreciated [CODE] | java|android|for-loop|view|android-view | 1 | 2015-02-17T22:21:22.077Z | 2,015 | 2 | 22 | 1 | 182 | 1 | 215 | 53 | 5 | 1 | true | false | false | false | false | false | low |
28,572,267 | Pass Latitude/longitude via intent | <p>I have collected different latitude and longitude of locations.
I want to know if i can set them as string of array for e.g(String lat = {"9385853.0094", "23123123.234")and then pass them via intent so that i can display the location in google map using lat/long in new activity. </p> | I have collected different latitude and longitude of locations. I want to know if i can set them as string of array for e.g(String lat = {"9385853.0094", "23123123.234")and then pass them via intent so that i can display the location in google map using lat/long in new activity. | android|google-maps|listview|android-intent|latitude-longitude | 1 | 2015-02-17T22:22:20.163Z | 2,015 | 2 | 22 | 1 | 5,088 | 1 | 279 | 34 | 5 | 0 | false | false | true | false | false | false | low |
28,572,282 | How to make checkbox without a background programmatically? | <p>I'm new to Android development and I'd like help from the experts here.
I make my <code>checkbox</code> change its background color to red upon a specific condition, and then I need to return its background color to the original one. I've tried the following code, but it gives me an error, so I'd like to know the co... | I'm new to Android development and I'd like help from the experts here. I make my checkbox change its background color to red upon a specific condition, and then I need to return its background color to the original one. I've tried the following code, but it gives me an error, so I'd like to know the correct code for d... | java|android|checkbox|null | 2 | 2015-02-17T22:23:20.577Z | 2,015 | 2 | 22 | 1 | 364 | 1 | 401 | 59 | 4 | 1 | true | false | false | false | false | false | low |
28,572,302 | Android Studio not recognizing classes after power failure | <p>A co-worker is having this problem for second time with Android Studio (first time he just got tired and reinstalled Windows)</p>
<p>After a power failure while using Android Studio on Windows 7, it couldn't resolve symbols for all android classes anymore. SDK and JDK seem well configured and we even downgraded to ... | A co-worker is having this problem for second time with Android Studio (first time he just got tired and reinstalled Windows) After a power failure while using Android Studio on Windows 7, it couldn't resolve symbols for all android classes anymore. SDK and JDK seem well configured and we even downgraded to JDK 7u75 in... | android|android-studio | 9 | 2015-02-17T22:24:28.073Z | 2,015 | 2 | 22 | 1 | 3,383 | 1 | 640 | 58 | 2 | 0 | false | false | true | false | false | false | medium |
28,572,311 | Bitmap to Targa (TGA) save bug | <p>I'm using the following code to save a Bitmap to a .tga file at the moment:</p>
<pre><code>public static void writeTGA(Bitmap src, File file) throws IOException {
ByteBuffer buffer = ByteBuffer.allocate(src.getRowBytes() * src.getHeight());
src.copyPixelsToBuffer(buffer);
boolean alpha = src... | I'm using the following code to save a Bitmap to a .tga file at the moment: [CODE] The expected output is something like this: but the result is this: My guess is that I flipped one of the bit shift operators. | android|tga | 1 | 2015-02-17T22:24:59.083Z | 2,015 | 2 | 22 | 1 | 124 | 1 | 209 | 30 | 2 | 1 | true | false | false | false | false | false | low |
28,572,340 | Android Studio - quickly look up class documentation | <p>I am looking for the equivalent of Xcode's option-click (which will popup and show you a definition for the currently selected class). For example, I am trying to lookup all of the methods for EditText. I do see search with Google, but is there a way to see the API directly in Android Studio?</p> | I am looking for the equivalent of Xcode's option-click (which will popup and show you a definition for the currently selected class). For example, I am trying to lookup all of the methods for EditText. I do see search with Google, but is there a way to see the API directly in Android Studio? | java|android | 0 | 2015-02-17T22:26:53.393Z | 2,015 | 2 | 22 | 1 | 217 | 1 | 293 | 52 | 2 | 0 | false | false | false | false | false | false | zero |
28,572,480 | Custom linear layout having problems with adding views | <p>I've got this code:</p>
<pre><code>package com.shipwreckt;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.LinearLayout;
/**
* TODO: document your custom view class.
*/
public class GridBoard extends LinearLayout {
Context c;
pu... | I've got this code: [CODE] The problem is, when I execute it, I only get green square (as I planned), but without any layouts that should be inside and create a nice grid. Do you know why is it? I tried to add textfield even outside of the class but it failed totally too. Just some of starting code to show u exactly wh... | java|android|android-linearlayout|android-custom-view | 3 | 2015-02-17T22:35:54.080Z | 2,015 | 2 | 22 | 1 | 425 | 1 | 341 | 54 | 4 | 2 | true | false | false | false | false | false | low |
28,572,572 | How to get rid of this "Inconvertible" error? | <p>I am making a simple memegenerator app where user should enter text for the bottom and top field and that text will be added on the bottom and top section of the picture. Since I want to keep the app simple I have used only one fixed image for Meme.
I have used two fragments. One is for the Edittext areas and other ... | I am making a simple memegenerator app where user should enter text for the bottom and top field and that text will be added on the bottom and top section of the picture. Since I want to keep the app simple I have used only one fixed image for Meme. I have used two fragments. One is for the Edittext areas and other is ... | android|android-layout|android-activity|android-fragments|android-fragmentactivity | 0 | 2015-02-17T22:43:11.563Z | 2,015 | 2 | 22 | 1 | 1,604 | 1 | 957 | 45 | 5 | 4 | true | false | false | false | false | false | zero |
28,572,603 | How to use ImageView with SimpleAdapter? | <p>I have an Android app working with Google Cloud Endpoints. One of my activities sends a request to the datastore to get a list of <code>Message</code> entities.
This entity has a <code>byte[]</code> field which contains a thumbnail image. There are two other fields: Author and Timestamp.</p>
<p>Then, the activity m... | I have an Android app working with Google Cloud Endpoints. One of my activities sends a request to the datastore to get a list of Message entities. This entity has a byte[] field which contains a thumbnail image. There are two other fields: Author and Timestamp. Then, the activity must display a ListView showing both t... | java|android | 0 | 2015-02-17T22:45:30.423Z | 2,015 | 2 | 22 | 1 | 202 | 1 | 587 | 40 | 2 | 2 | true | false | false | false | false | false | zero |
28,572,921 | true usage of onStartCommand in Android | <p>I am a little confused. I want to use a Service to register content Observer and prevent from stopping it. Where should I register contentObserver, in onCreate or onStartCommand? in other words, which one of these codes is true: </p>
<pre><code>private ContentObserver smsObserver;
public void onCreate() {
supe... | I am a little confused. I want to use a Service to register content Observer and prevent from stopping it. Where should I register contentObserver, in onCreate or onStartCommand? in other words, which one of these codes is true: [CODE] or [CODE] or in onStart()? Does execute onCreate or onStart again each time the page... | android|service | 0 | 2015-02-17T23:06:00.277Z | 2,015 | 2 | 23 | 1 | 957 | 1 | 446 | 39 | 2 | 2 | true | false | false | false | false | false | zero |
28,572,962 | Multiple Views for single ViewModel (iOS) | <p>I am aware that in order to achieve this, I need to create a custom presenter and map the ViewModel to my Views manually by overriding the <code>InitializeViewLookup</code> method. I successfully did this on Android and so far it works fine, but I can't seem to do it on iOS. Here's what I tried:</p>
<pre><code>publ... | I am aware that in order to achieve this, I need to create a custom presenter and map the ViewModel to my Views manually by overriding the InitializeViewLookup method. I successfully did this on Android and so far it works fine, but I can't seem to do it on iOS. Here's what I tried: [CODE] Here's InitializeViewLookup :... | ios|xamarin.ios|xamarin|xamarin.android|mvvmcross | 1 | 2015-02-17T23:08:29.173Z | 2,015 | 2 | 23 | 1 | 1,228 | 1 | 997 | 41 | 5 | 4 | true | false | false | false | false | false | low |
28,572,998 | ASmack MultiUserChat ( MUC ) Failing to Listen to Messages | <p>I have this Android application which I've been trying to set a XMPP MultiUserChat. </p>
<p>As far as connecting to XMPP, loging-in and creating a MUC ( as well as joining an already created one ) everything is going alright. </p>
<p>I just seem to be failing at properly listening to the sent messages, and I'm not... | I have this Android application which I've been trying to set a XMPP MultiUserChat. As far as connecting to XMPP, loging-in and creating a MUC ( as well as joining an already created one ) everything is going alright. I just seem to be failing at properly listening to the sent messages, and I'm not sure why. I have wor... | android|xmpp|smack|asmack|multiuserchat | 0 | 2015-02-17T23:11:08.427Z | 2,015 | 2 | 23 | 1 | 944 | 1 | 2,253 | 58 | 5 | 5 | true | false | false | false | false | false | zero |
28,573,015 | ImageButton is 'null' after assignment | <p>This is my first time creating an Android app, and I'm not sure how to fix this issue. I'm trying to point an ImageButton variable to an existing <code>ImageButton</code> by ID, but I keep getting a <code>NullPointerException</code>. Here's the code:</p>
<pre><code> ...
import android.widget.ImageButton;
... | This is my first time creating an Android app, and I'm not sure how to fix this issue. I'm trying to point an ImageButton variable to an existing ImageButton by ID, but I keep getting a NullPointerException . Here's the code: [CODE] The ImageButton is located in the layout card_categories . Here's the XML for that layo... | java|android|android-button | 0 | 2015-02-17T23:12:00.440Z | 2,015 | 2 | 23 | 1 | 50 | 2 | 587 | 38 | 3 | 3 | true | false | false | false | false | false | zero |
28,573,066 | Updating SQLite row using update method | <p>I am trying to update a row in SQLite on android using the update(String table, ContentValues values, String whereClause, String[] whereArgs) method. I have seen many sources on this cite and else where around the web describing how to do so but it does not seem to be working. My main problem is my lack of understan... | I am trying to update a row in SQLite on android using the update(String table, ContentValues values, String whereClause, String[] whereArgs) method. I have seen many sources on this cite and else where around the web describing how to do so but it does not seem to be working. My main problem is my lack of understandin... | android|sqlite|sql-update | 0 | 2015-02-17T23:15:49.243Z | 2,015 | 2 | 23 | 1 | 1,415 | 2 | 668 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
28,573,070 | Programatically detect the completion of update of an app from play store | <p>Is it possible to programatically detect the completion of an update of an app from the play store; say, using a <code>BroadcastReceiver</code>, or anything for that matter?</p> | Is it possible to programatically detect the completion of an update of an app from the play store; say, using a BroadcastReceiver , or anything for that matter? | java|android | 0 | 2015-02-17T23:16:04.287Z | 2,015 | 2 | 23 | 1 | 122 | 1 | 161 | 73 | 2 | 0 | false | false | false | false | false | false | zero |
28,573,072 | Android - ParseObject Id is Null | <p>Could anyone please help me with this issue. I have 2 activities for user to register their profile. I created a ParseObject user then pass this user object to the second activity. I used user.getObjectId() to get the ID of user object, but the ID is always null. I wonder if anyone could help me find the ParseObject... | Could anyone please help me with this issue. I have 2 activities for user to register their profile. I created a ParseObject user then pass this user object to the second activity. I used user.getObjectId() to get the ID of user object, but the ID is always null. I wonder if anyone could help me find the ParseObject's ... | android|parse-platform|objectid | 0 | 2015-02-17T23:16:21.727Z | 2,015 | 2 | 23 | 1 | 305 | 3 | 371 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
28,573,122 | Android.support.v4 import not working | <p>I've seen questions like this, but it's not exactly what I'm looking for. </p>
<p>I was following the tutorial on how to build an RSS Android parser and reader from <a href="http://blog.nerdability.com/2013/03/tech-building-rss-reader-android-app.html" rel="nofollow">here</a>. Along the way, some code included impo... | I've seen questions like this, but it's not exactly what I'm looking for. I was following the tutorial on how to build an RSS Android parser and reader from here . Along the way, some code included importing fragmentactivity and fragment . Both imports failed. Experimentation showed me that when importing the fragment,... | java|android|android-fragments|import | 3 | 2015-02-17T23:19:58.150Z | 2,015 | 2 | 23 | 1 | 1,422 | 2 | 656 | 37 | 4 | 4 | true | false | false | false | false | false | low |
28,573,213 | Not sure how to get data from each element of a list to download and display images in it from async task | <p>G'day guys!</p>
<p>I'm trying to work out a good approach to download pictures and update a user list with the picture once it has finished downloading.</p>
<p>So I'm trying to create a list of user profiles in an android app, where it displays their username and a little picture at the side of them. I've been wat... | G'day guys! I'm trying to work out a good approach to download pictures and update a user list with the picture once it has finished downloading. So I'm trying to create a list of user profiles in an android app, where it displays their username and a little picture at the side of them. I've been watching tutorials for... | android|image|listview|asynchronous|download | 0 | 2015-02-17T23:27:52.067Z | 2,015 | 2 | 23 | 1 | 120 | 1 | 1,429 | 105 | 5 | 1 | true | false | false | false | false | false | zero |
28,573,240 | WhatsApp-like layout for multiline EditText and Buttons next to it | <p>am new to this and quite new to Android programming. </p>
<p>I am trying to make a layout like in the WhatsApp chat activity. So what I want to achieve is to get the same layout and behavior as for the EditText and the Buttons next to it.
This means a left Button for smileys and EditText in the middle and a Button... | am new to this and quite new to Android programming. I am trying to make a layout like in the WhatsApp chat activity. So what I want to achieve is to get the same layout and behavior as for the EditText and the Buttons next to it. This means a left Button for smileys and EditText in the middle and a Button to the right... | android|button|layout|android-edittext|multiline | 7 | 2015-02-17T23:30:11.430Z | 2,015 | 2 | 23 | 1 | 16,823 | 1 | 816 | 66 | 5 | 1 | true | false | true | true | false | false | medium |
28,573,296 | Android: Cannot resolve symbol ActionBarActivity | <p>I'm getting the error "<strong><em>Cannot resolve the symbol ActionBarActivity</em></strong>" when I try to import it (import android.support.v7.app.ActionBarActivity;).</p>
<p>I've already read some questions <a href="https://stackoverflow.com/questions/21316055/actionbaractivity-cannot-resolve-a-symbol">ActionBar... | I'm getting the error " Cannot resolve the symbol ActionBarActivity " when I try to import it (import android.support.v7.app.ActionBarActivity;). I've already read some questions ActionBarActivity cannot resolve a symbol and Import Google Play Services library in Android Studio about it and i've tried the solution desc... | android|android-actionbar|android-actionbar-compat | 0 | 2015-02-17T23:35:07.413Z | 2,015 | 2 | 23 | 1 | 5,621 | 2 | 699 | 48 | 3 | 2 | true | false | true | false | false | false | zero |
28,573,327 | Alignment Layout exchange between classes - Android Studio | <p>I am implementing a program that uses <strong>database</strong> and interacts with different <code>layouts</code> of entries and editing users.</p>
<p>I'm working with <code>RelativeLayout</code> on all screens. In one of the<code>layouts</code>, I insert a perfectly aligned button and give the <strong>command</str... | I am implementing a program that uses database and interacts with different layouts of entries and editing users. I'm working with RelativeLayout on all screens. In one of the layouts , I insert a perfectly aligned button and give the command android:visibility="gone" for him to show upon request. The problem is that w... | android|android-layout|layout|android-studio|android-relativelayout | 0 | 2015-02-17T23:38:15.363Z | 2,015 | 2 | 23 | 1 | 106 | 1 | 709 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
28,573,354 | get ArrayList from Parse Object | <p>I have a Parse Object that has a value which contains an ArrayList of User Id's. I'm having trouble figuring out how to retrieve that entire ArrayList (NOT just 1 value from the list) My code looks something like this.. but always comes with errors (Array comes back empty):</p>
<pre><code>ParseQuery<ParseObject&... | I have a Parse Object that has a value which contains an ArrayList of User Id's. I'm having trouble figuring out how to retrieve that entire ArrayList (NOT just 1 value from the list) My code looks something like this.. but always comes with errors (Array comes back empty): [CODE] I want to just load the array of user ... | java|android|arrays|arraylist|parse-platform | 1 | 2015-02-17T23:40:22.853Z | 2,015 | 2 | 23 | 1 | 2,036 | 3 | 543 | 31 | 5 | 1 | true | false | false | false | false | false | low |
28,573,369 | setOnItemClickListener does not work | <p>I'm having some problems to figure out how I can implement '.setOnItemClickListener' in a GitHub sample project for Android.</p>
<p>I want to select the cells of a list view, but I can get it to work. The github project is this:</p>
<p><a href="https://github.com/schrockblock/android-table-view" rel="nofollow">htt... | I'm having some problems to figure out how I can implement '.setOnItemClickListener' in a GitHub sample project for Android. I want to select the cells of a list view, but I can get it to work. The github project is this: https://github.com/schrockblock/android-table-view I'm trying to add the listener in my main activ... | android|listview|onitemclicklistener | 0 | 2015-02-17T23:42:12.077Z | 2,015 | 2 | 23 | 1 | 176 | 1 | 786 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
28,573,375 | Every single app crash | <p>I get same error every single time i try to launch ANY project , can't figure it out by myself where's the problem. I used eclipse but now tried android-studio as well but it didnt fix error. Even if i create new project-on launching it will crash. </p>
<p>when it crash it says -unfortunately "app" has stopped-</p>... | I get same error every single time i try to launch ANY project , can't figure it out by myself where's the problem. I used eclipse but now tried android-studio as well but it didnt fix error. Even if i create new project-on launching it will crash. when it crash it says -unfortunately "app" has stopped- http://pastebin... | android-studio|crash-reports | -1 | 2015-02-17T23:43:08.237Z | 2,015 | 2 | 23 | 1 | 35 | 1 | 333 | 22 | 2 | 0 | false | false | false | false | false | true | negative |
28,573,411 | Android vs configuration changed | <p>I apologize for my English but translated with google. I'd like to understand why Google with Android restarts the activity at each change and you lose all the data displayed. How do you solve this problem? Could not they make it optional this thing?
On every forum I read to use the methods onSaveInstanceState, onRe... | I apologize for my English but translated with google. I'd like to understand why Google with Android restarts the activity at each change and you lose all the data displayed. How do you solve this problem? Could not they make it optional this thing? On every forum I read to use the methods onSaveInstanceState, onResto... | android|object|savestate|android-configchanges | 0 | 2015-02-17T23:46:27.873Z | 2,015 | 2 | 23 | 1 | 32 | 1 | 705 | 32 | 4 | 0 | false | false | false | false | false | false | zero |
28,573,466 | SimpleCursorAdapter with cursor (Android ContentProvider) | <p>My activity : </p>
<pre><code>package com.tutos.android.content.provider;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.support.v7.app.ActionBarActivity;
import ... | My activity : [CODE] My Main Activity Layout : [CODE] My name_item_desc_item.xml [CODE] This think is driving me crazy :) after launching my App , the ListView is empty, notice that my cursor is full and i did use Log.i to check his content and he contains the database. I've looked up a lot but each tutorial has his ow... | android|sqlite|android-listview|cursor | 0 | 2015-02-17T23:51:09.460Z | 2,015 | 2 | 23 | 1 | 113 | 1 | 505 | 57 | 4 | 3 | true | false | false | false | false | false | zero |
28,573,480 | how to display an element depending on Operating System? | <p>I am using Angular and I am doing a Mobile App where I am including a spinner which is a loader, is an SVG, the thing here: that SVG is not been displayed on some Android versions, in iPhone, works great, but not in Android, so what I want to do: detect the OS and depending on that display the SVG or just an image t... | I am using Angular and I am doing a Mobile App where I am including a spinner which is a loader, is an SVG, the thing here: that SVG is not been displayed on some Android versions, in iPhone, works great, but not in Android, so what I want to do: detect the OS and depending on that display the SVG or just an image that... | javascript|android|angularjs|svg | 0 | 2015-02-17T23:51:55.340Z | 2,015 | 2 | 23 | 1 | 65 | 2 | 392 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
28,573,540 | Unable to Update the progress bar inside and alert dialog builder | <p>I am trying to create a progress bar inside a alert dialog builder and trying to update the progress when i click on button using threads and handlers .....but every time i click on the start button it crashes ....</p>
<pre><code>package com.example.progressbar_thread;
import android.app.Activity;
import android.a... | I am trying to create a progress bar inside a alert dialog builder and trying to update the progress when i click on button using threads and handlers .....but every time i click on the start button it crashes .... [CODE] | android|android-activity|android-fragments|progress-bar|progressdialog | 0 | 2015-02-17T23:58:12.270Z | 2,015 | 2 | 23 | 1 | 1,631 | 1 | 221 | 65 | 5 | 1 | true | false | false | false | false | false | zero |
28,573,563 | Passing position as an argument to Fragment In FragmentPagerAdapter | <p>The getItem() position is not always right! Sometimes it will show 0,1,2,3,4 then if I go back it shows a different position (4,2,3,1,0). What is the proper way to use "position", if I need the position to pass into an arraylist/treemap???</p>
<pre><code>02-18 20:07:22.453 11479-11479/com.app E/aaa﹕ position creat... | The getItem() position is not always right! Sometimes it will show 0,1,2,3,4 then if I go back it shows a different position (4,2,3,1,0). What is the proper way to use "position", if I need the position to pass into an arraylist/treemap??? [CODE] The line: [CODE] Needs the correct position, not the one being rendered i... | java|android|fragment|fragmentpageradapter | 0 | 2015-02-18T00:00:50.180Z | 2,015 | 2 | 0 | 2 | 1,662 | 2 | 899 | 67 | 4 | 5 | true | false | false | false | false | false | zero |
28,573,590 | Styleable round Button | <p>There are so pretty good solutions for creating a round Button.
(<a href="https://stackoverflow.com/questions/10266595/how-to-make-a-round-button">How to make a round button?</a>)</p>
<p>Most of these however seem to hard-code the color in the button xml file.</p>
<p>Is there a way to create a round button with a ... | There are so pretty good solutions for creating a round Button. ( How to make a round button? ) Most of these however seem to hard-code the color in the button xml file. Is there a way to create a round button with a configurable/styleable color? (I don't like the idea of creating one xml file for each color button I m... | android|xml|button|widget | 0 | 2015-02-18T00:03:18.203Z | 2,015 | 2 | 0 | 2 | 371 | 3 | 499 | 22 | 4 | 0 | false | false | false | false | false | false | zero |
28,573,622 | Duplicate/Left over listview item at bottom of list | <p>I am using a ExpandableListView with a custom adapter which display a list of contacts with presence status. If they are offline, then i remove the contact from the list. Vice versa, if they are online then i add them to the list. I do a <code>notifyDataSetChanged()</code> every time i add or remove a contact. What ... | I am using a ExpandableListView with a custom adapter which display a list of contacts with presence status. If they are offline, then i remove the contact from the list. Vice versa, if they are online then i add them to the list. I do a notifyDataSetChanged() every time i add or remove a contact. What I am seeing over... | java|android|listview|duplicates|adapter | 0 | 2015-02-18T00:07:16.947Z | 2,015 | 2 | 0 | 2 | 91 | 0 | 2,090 | 51 | 5 | 6 | true | true | false | false | false | false | zero |
28,573,627 | BaseExpandableListAdapter with ExpandableListView returns the wrong child view | <p>I have BaseExpandableListAdapter with ExpandableListView but I'm having trouble getting my child ViewHolder initialized to the right view. I put a break point in getChildView and the first time it is called everything is fine</p>
<p>groupPosition:0, childPosition:0, convertView:null</p>
<p>The ViewHolder gets set ... | I have BaseExpandableListAdapter with ExpandableListView but I'm having trouble getting my child ViewHolder initialized to the right view. I put a break point in getChildView and the first time it is called everything is fine groupPosition:0, childPosition:0, convertView:null The ViewHolder gets set and we are good for... | android|expandablelistview|expandablelistadapter | 2 | 2015-02-18T00:07:32.773Z | 2,015 | 2 | 0 | 2 | 1,154 | 1 | 651 | 78 | 3 | 1 | true | false | false | false | false | false | low |
28,573,685 | Add items to a recycler view? | <p>So i;m try to implement a method in which when a button is clicked a new line or item is added to the recyclerview. I've read up a good bit about this and i just cant get my head around it. Any help would be hugely appreciated!</p>
<p>Here my adapter I believe this is where you write most of the code to add items t... | So i;m try to implement a method in which when a button is clicked a new line or item is added to the recyclerview. I've read up a good bit about this and i just cant get my head around it. Any help would be hugely appreciated! Here my adapter I believe this is where you write most of the code to add items to a recycle... | android|android-adapter|android-recyclerview | 2 | 2015-02-18T00:14:24.650Z | 2,015 | 2 | 0 | 2 | 12,189 | 1 | 335 | 29 | 3 | 1 | true | false | true | true | false | false | low |
28,573,686 | SeekBar update doesn't work | <p>I'm trying to create a video player in an Android application, and I want to update a SeekBar while the video is playing. Here's my code, in which the two first lines are in the OnCreate method:</p>
<pre><code>seekBar = (SeekBar) findViewById(R.id.seekBar);
seekBar.setOnSeekBarChangeListener(change);
private OnSee... | I'm trying to create a video player in an Android application, and I want to update a SeekBar while the video is playing. Here's my code, in which the two first lines are in the OnCreate method: [CODE] And in Play method I tried the following: [CODE] This doesn't work; while playing the video my seekBar is always at Po... | android|seekbar | 1 | 2015-02-18T00:14:29.877Z | 2,015 | 2 | 0 | 2 | 1,378 | 2 | 331 | 27 | 2 | 2 | true | false | false | false | false | false | low |
28,573,788 | NDK - Loop with JObjectArray | <p>I have a big problem.</p>
<p>I have a method where I catch a JObjectArray strings and populate a vector of strings, because the vector will be used in a piece of code that is reused in version for application PC.</p>
<pre><code>string linha("");
for (int i = 0; i < tamanhoArray; i++) {
jstring jLinha = (jst... | I have a big problem. I have a method where I catch a JObjectArray strings and populate a vector of strings, because the vector will be used in a piece of code that is reused in version for application PC. [CODE] The method is performed several times during the execution of the application, but always at a certain poin... | android|c++|android-ndk | -1 | 2015-02-18T00:24:54.753Z | 2,015 | 2 | 0 | 2 | 704 | 1 | 479 | 28 | 3 | 1 | 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.