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,728,848 | Can't instantiate Coordinate Resource System java.lang.NoClassDefFoundError: org.geotools.factory.Hints | <p>I am trying to use the Geotools Java library in a project of mine an I built it using Gradle and version 14.3:</p>
<pre><code>compile 'org.geotools:gt-shapefile:14.3'
compile 'org.geotools:gt-epsg-hsql:14.3'
</code></pre>
<p>Basically, any time I try to instantiate a CoordinateResourceSystem, such as:</p>
<pre><c... | I am trying to use the Geotools Java library in a project of mine an I built it using Gradle and version 14.3: [CODE] Basically, any time I try to instantiate a CoordinateResourceSystem, such as: [CODE] I get this error at runtime: [CODE] All of the advice I've received until now has had to do with enabling Multidex an... | android|gradle|geotools|android-multidex | 1 | 2016-04-19T20:31:06.037Z | 2,016 | 4 | 20 | 1 | 1,487 | 1 | 1,020 | 103 | 4 | 4 | true | false | false | false | false | false | low |
36,728,877 | Ionic - Splash Screen works for iOS but not for Android | <p>I have an ionic app where the splash screen and icons where generated using the CLI command <code>ionic resources</code></p>
<p>The iOS version works perfectly with the splash screen being rendered, however on the Android version only a white screen is showing while loading the app.</p>
<p>I've checked the <code>c... | I have an ionic app where the splash screen and icons where generated using the CLI command ionic resources The iOS version works perfectly with the splash screen being rendered, however on the Android version only a white screen is showing while loading the app. I've checked the config.xml file and all the paths seem ... | android|cordova|ionic-framework|splash-screen | 7 | 2016-04-19T20:32:32.373Z | 2,016 | 4 | 20 | 1 | 1,269 | 2 | 575 | 55 | 4 | 1 | true | false | false | false | false | false | medium |
36,728,950 | Camera.open() occur error (using MediaRecorder) | <p>My action flow:</p>
<ol>
<li>Camera.Open()</li>
<li>Camera.unlock()</li>
<li>recorder = new MediaRecorder();</li>
<li>recorder.setCamera(), and then.. more setting.</li>
</ol>
<p>(click start button)</p>
<ol start="5">
<li>recorder.start()</li>
</ol>
<p>(click stop button)</p>
<ol start="6">
<li>recorder.stop()... | My action flow: Camera.Open() Camera.unlock() recorder = new MediaRecorder(); recorder.setCamera(), and then.. more setting. (click start button) recorder.start() (click stop button) recorder.stop() recorder.release() recorder = null; (save recorded video file) Camera.Open() <= Occur error step 9 is for recording again... | android|android-camera|android-mediarecorder | 1 | 2016-04-19T20:37:22.240Z | 2,016 | 4 | 20 | 1 | 97 | 1 | 489 | 47 | 3 | 1 | true | false | false | false | false | false | low |
36,728,973 | Reload fragment/activity (or recyclerview) from adaptater | <p>I have a simple app with fragment and activity hosting a recyclerview, vith data fom a database, i have a delete function, but i can't refresh the recycler view, i tried some method but because my longclick cardview is on the adapter, i can't make it work</p>
<p>this is my adapter:</p>
<pre><code>public class Loya... | I have a simple app with fragment and activity hosting a recyclerview, vith data fom a database, i have a delete function, but i can't refresh the recycler view, i tried some method but because my longclick cardview is on the adapter, i can't make it work this is my adapter: [CODE] } And my fragment in this exemple: [C... | android|android-recyclerview|android-adapter | 0 | 2016-04-19T20:38:27.540Z | 2,016 | 4 | 20 | 1 | 2,554 | 2 | 326 | 57 | 3 | 2 | true | false | false | false | false | false | zero |
36,729,140 | How to automatically load data from json file on startup with kivy | <p>I am making an android app with python and kivy that keeps track of diabetes entries and has a basic profile page. I figured out how to save input from textinput widgets into a json file which works fine. However I cannot figure out how to automatically load this information back into the textinput widets on the st... | I am making an android app with python and kivy that keeps track of diabetes entries and has a basic profile page. I figured out how to save input from textinput widgets into a json file which works fine. However I cannot figure out how to automatically load this information back into the textinput widets on the startu... | android|python|json|load|kivy | 0 | 2016-04-19T20:46:49.103Z | 2,016 | 4 | 20 | 1 | 1,975 | 1 | 530 | 66 | 5 | 2 | true | false | false | false | false | false | zero |
36,729,150 | Is it possible to run Android Device Emulator (via Android Studio 2) on VMWare? | <p>I have been running Android Studio 1.5.1 doing development on a WMWare copy of Windows 2012 R2 and everything works fine. I've been able to run the device emulator with no problems and start various versions of Android running in AVD.</p>
<p><strong>Android Studio 2.x Change</strong>
I recently installed Android S... | I have been running Android Studio 1.5.1 doing development on a WMWare copy of Windows 2012 R2 and everything works fine. I've been able to run the device emulator with no problems and start various versions of Android running in AVD. Android Studio 2.x Change I recently installed Android Studio 2.0 (see image below fo... | android|avd|android-studio-2.0 | 20 | 2016-04-19T20:47:29.693Z | 2,016 | 4 | 20 | 1 | 51,288 | 4 | 762 | 79 | 3 | 0 | false | false | true | true | true | false | medium |
36,729,248 | Trying to implement button click sound with MediaPlayer crashes | <p>I have a custom view (a button) and I want it to have a certain sound when pressed. </p>
<pre><code>private void playSound() {
if (mediaPlayer == null)
initMediaPlayer();
try {
if (mediaPlayer.isPlaying())
mediaPlayer.stop();
mediaPlayer.prepare();
mediaPlayer.st... | I have a custom view (a button) and I want it to have a certain sound when pressed. [CODE] I call the playSound method every time the button is clicked. It works well as long as there is only one button on screen. No problem at all. It crashes if I have more buttons on the screen and I press the first button a couple o... | android|android-mediaplayer | 0 | 2016-04-19T20:53:35.817Z | 2,016 | 4 | 20 | 1 | 103 | 1 | 855 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
36,729,260 | Dependency configurations | <p>I know that if I make a library that uses product flavors, then when I use that library in an application, I can do this in a gradle:</p>
<pre><code>dependencies {
flavor1Compile(path: '{path}', configuration: 'flavor1Config')
flavor2Compile(path: '{path}', configuration: 'flavor2Config')
}
</code></pre>
<... | I know that if I make a library that uses product flavors, then when I use that library in an application, I can do this in a gradle: [CODE] I also know that I can do this: [CODE] What I want to do is essentially this: [CODE] But that code produces this: Error:(30, 0) Gradle DSL method not found: 'flavor1DebugCompile()... | android|configuration|dependencies | 2 | 2016-04-19T20:54:27.637Z | 2,016 | 4 | 20 | 1 | 62 | 1 | 546 | 25 | 3 | 3 | true | false | false | false | false | false | low |
36,729,641 | HTML5 video buffers backwards | <p>I implemented a buffer bar for html5 videos. When I watch them via browser, it buffers fine, but via android app it works as well but buffer bar is jumping.</p>
<p>Percentage goes for example 0.10 -> 0.25 -> 0.20 -> 0.30 -> 0.35 -> 0.30 and so on. It looks like its twitching for some reason.</p>
<p>What could caus... | I implemented a buffer bar for html5 videos. When I watch them via browser, it buffers fine, but via android app it works as well but buffer bar is jumping. Percentage goes for example 0.10 -> 0.25 -> 0.20 -> 0.30 -> 0.35 -> 0.30 and so on. It looks like its twitching for some reason. What could cause this problem? I a... | android|html | 3 | 2016-04-19T21:16:54.820Z | 2,016 | 4 | 21 | 1 | 66 | 0 | 732 | 29 | 2 | 3 | true | true | false | false | false | false | low |
36,729,764 | Async and Google Maps | <p>Here:<a href="https://stackoverflow.com/questions/36564789/async-and-listview-android?noredirect=1#comment60729640_36564789">Async and ListView Android</a></p>
<p>I asked about Async and Listview. Now I have a problem with Async and Maps. I want to set a marker with JSON that returns Async. Unfortunately, I set the... | Here: Async and ListView Android I asked about Async and Listview. Now I have a problem with Async and Maps. I want to set a marker with JSON that returns Async. Unfortunately, I set the default values and those that do not want to. You can help [CODE] } | java|android|google-maps|asynchronous|marker | -1 | 2016-04-19T21:24:21.550Z | 2,016 | 4 | 21 | 1 | 398 | 1 | 254 | 21 | 5 | 1 | true | false | false | false | false | true | negative |
36,729,885 | Recyclerview, otifyItemChanged() and image loaded by Picasso | <p>I have problem with Picasso cache (I think so). I created RecyclerView and RecyclerView.Adapter. A single item on the list contain ImageView. To this imageView I load image using Picasso library like this:</p>
<pre><code> public void onBindViewHolder(PageViewHolder holder, int position) {
final int positionAdp ... | I have problem with Picasso cache (I think so). I created RecyclerView and RecyclerView.Adapter. A single item on the list contain ImageView. To this imageView I load image using Picasso library like this: [CODE] When I update item I call notifyItemChanged method. On screen I see that updated item is flicking, so item ... | android|picasso|android-recyclerview | 0 | 2016-04-19T21:33:14.173Z | 2,016 | 4 | 21 | 1 | 512 | 1 | 424 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
36,729,894 | Main Activity get data from 2 fragments | <p>I have read through some posts on here regarding activity-fragment communication but my problem is unique; i will try state it as clear as possible for you to understand. In my app there is a Mainactivity and 2 fragments(we call these fragment1 and fragment2) which are in sliding tab layout. The main activity contai... | I have read through some posts on here regarding activity-fragment communication but my problem is unique; i will try state it as clear as possible for you to understand. In my app there is a Mainactivity and 2 fragments(we call these fragment1 and fragment2) which are in sliding tab layout. The main activity contains ... | java|android|android-fragments | 0 | 2016-04-19T21:34:10.450Z | 2,016 | 4 | 21 | 1 | 65 | 1 | 1,215 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
36,729,954 | Show the paused frame in the Android HTML5 player | <p>I'm creating a video player in HTML5 and JavaScript in which one has to step through frames paused at an accuracy of about <em>100ms</em>. I use the video time to display the specific frames. This player works on the computer and iPad-mini. However on the Android when I use the line:</p>
<pre><code>video.currentTim... | I'm creating a video player in HTML5 and JavaScript in which one has to step through frames paused at an accuracy of about 100ms . I use the video time to display the specific frames. This player works on the computer and iPad-mini. However on the Android when I use the line: [CODE] The HTML5 Android player moves the v... | javascript|android|html5-video | 1 | 2016-04-19T21:38:08.220Z | 2,016 | 4 | 21 | 1 | 53 | 0 | 620 | 49 | 3 | 2 | true | true | false | false | false | false | low |
36,729,957 | IllegalStateException : ScrollView can host only one direct child | <p>I have a fragment, which comprises of a scrollview which has a single LinearLayout(I have wrapped up other LinearLayouts into this)</p>
<p><b>Fragment_Details.xml</b> </p>
<pre><code> <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
... | I have a fragment, which comprises of a scrollview which has a single LinearLayout(I have wrapped up other LinearLayouts into this) Fragment_Details.xml [CODE] In the DetailsActivity i'm adding a fragment DetailsActivity.java [CODE] Activity_Details.xml [CODE] But when i run the program i get the following error: [CODE... | android|android-fragments|android-scrollview | 1 | 2016-04-19T21:38:13.897Z | 2,016 | 4 | 21 | 1 | 2,964 | 2 | 419 | 65 | 3 | 4 | true | false | true | false | false | false | low |
36,729,961 | How to Parse this json object nested in json array | <p>I am using this code</p>
<pre><code>private void parseData(JSONArray array){
Log.d(TAG, "Parsing array");
for(int i = 0; i<array.length(); i++) {
bookItems bookItem = new bookItems();
JSONObject jsonObject = null;
try {
jsonObject = array.getJ... | I am using this code [CODE] to parse this json. [CODE] I am getting the "subtitle" correctly but I am having didfficulty getting "number". From line JSONObject readersNum = verseReaders.getJSONObject("number"); Android studio is complaining that getJSONOBJECT (int) in JSONArray cannnot be applied to (java.lang.String) ... | java|android|json | 0 | 2016-04-19T21:38:28.327Z | 2,016 | 4 | 21 | 1 | 55 | 2 | 357 | 50 | 3 | 2 | true | false | false | false | false | false | zero |
36,730,005 | How do I use button to switch pages in android studio? | <p>I am trying to use btn2 to switch my page from MainActivity to CalcPage.class.</p>
<p>Cant seem to figure out what I am doing wrong.</p>
<p>I have error lines underneath btn2, OnClickListener, Override, and View v </p>
<p>Here is my MainActivity.java</p>
<pre><code>package edu.khershockolivetcollege.ballistic_ca... | I am trying to use btn2 to switch my page from MainActivity to CalcPage.class. Cant seem to figure out what I am doing wrong. I have error lines underneath btn2, OnClickListener, Override, and View v Here is my MainActivity.java [CODE] } | java|android|android-studio | 0 | 2016-04-19T21:41:08.860Z | 2,016 | 4 | 21 | 1 | 101 | 1 | 237 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
36,730,008 | NullPointerException when trying to access TextView in CustomSpinner | <p>I am trying to use a custom spinner for my calender view. I have written my own custom adapter. The view loads fine initially but as soon as I try to click on one of the items in the spinner dropdown the app crashes. </p>
<p>Following is my Activity code :</p>
<pre><code>public class CalendarEventsActivity extend... | I am trying to use a custom spinner for my calender view. I have written my own custom adapter. The view loads fine initially but as soon as I try to click on one of the items in the spinner dropdown the app crashes. Following is my Activity code : [CODE] This is xml where I am defining my layout for the Activity (acti... | android|android-layout|nullpointerexception|android-spinner|android-custom-view | -1 | 2016-04-19T21:41:31.457Z | 2,016 | 4 | 21 | 1 | 92 | 3 | 791 | 68 | 5 | 5 | true | false | false | false | false | true | negative |
36,730,088 | Android Sign Up Activity not inserting data remote MySQL database from user input | <p>I've been having trouble updating my remote database. A SignUpRrequest class exists which extends the String request class.</p>
<pre><code> package com.example.admin.tripod;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
/**... | I've been having trouble updating my remote database. A SignUpRrequest class exists which extends the String request class. [CODE] The sign up activity page uses the volley library and has the following code to createan instance of the SignUpRequest class and to queue it. [CODE] the php code that procsses the requests ... | php|android|mysql|android-volley | 0 | 2016-04-19T21:46:52.680Z | 2,016 | 4 | 21 | 1 | 190 | 0 | 645 | 81 | 4 | 3 | true | true | false | false | false | false | zero |
36,730,313 | Android DataBinding build error | <p>I have a problem with Data Binding library for Android.
I have a freshly installed Android Studio v2.0 and newly created project.
The problem is that when I try to add </p>
<pre><code>dataBinding {
enabled = true
}
</code></pre>
<p>to my build.gradle, I get this error while trying to build the project:
:app:da... | I have a problem with Data Binding library for Android. I have a freshly installed Android Studio v2.0 and newly created project. The problem is that when I try to add [CODE] to my build.gradle, I get this error while trying to build the project: :app:dataBindingProcessLayoutsDebug FAILED Error:Execution failed for tas... | android|gradle|android-databinding | 2 | 2016-04-19T22:04:46.137Z | 2,016 | 4 | 22 | 1 | 1,540 | 2 | 522 | 31 | 3 | 3 | true | false | false | false | false | false | low |
36,730,314 | Update notification to remove chronometer (KitKat) | <p>I need to show a notification and update it over the course of its lifetime. In particular, I need to change certain flags, such as "show chronometer". For that, the documentation states that we should call <code>NotificationManager.notify()</code> with the same id.</p>
<p>So the idea is to have these methods:</p>
... | I need to show a notification and update it over the course of its lifetime. In particular, I need to change certain flags, such as "show chronometer". For that, the documentation states that we should call NotificationManager.notify() with the same id. So the idea is to have these methods: [CODE] This works perfectly ... | android|android-notifications | 2 | 2016-04-19T22:04:47.510Z | 2,016 | 4 | 22 | 1 | 374 | 0 | 1,022 | 50 | 2 | 1 | true | true | false | false | false | false | low |
36,730,362 | Need to center ImageButton src, not stretch it to match the button size | <p>I am learning to develop Android user interfaces. I want to create an ImageButton with a set of drawables to indicate different button states. I created two pictures for each button: 133 dp for normal state and a scaled copy (126 dp) to create the pushed button effect. </p>
<p><a href="https://i.stack.imgur.com/taw... | I am learning to develop Android user interfaces. I want to create an ImageButton with a set of drawables to indicate different button states. I created two pictures for each button: 133 dp for normal state and a scaled copy (126 dp) to create the pushed button effect. I painted the second picture to indicate that imag... | android|android-5.0-lollipop|android-imagebutton | 0 | 2016-04-19T22:08:09.490Z | 2,016 | 4 | 22 | 1 | 159 | 1 | 680 | 71 | 3 | 2 | true | false | false | false | false | false | zero |
36,730,448 | Clicking an ImageButton to change to a different image everytime | <p>I have an <code>ImageButton</code>, which as <code>false</code> appears as a <code>gray image</code>, while as <code>true</code> appears as a <code>green image</code>. If I use <code>state_pressed="true"</code> and <code>state_pressed="false"</code> the function DOES work, however I need to hold the <code>left-click... | I have an ImageButton , which as false appears as a gray image , while as true appears as a green image . If I use state_pressed="true" and state_pressed="false" the function DOES work, however I need to hold the left-click button for the button to change to true . P.S: I do believe that I am using the wrong state but ... | java|android|xml | 0 | 2016-04-19T22:15:24.207Z | 2,016 | 4 | 22 | 1 | 35 | 1 | 801 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
36,730,732 | Android Facebook Log In with AWS Cognito | <p>I'm having trouble authenticating users with Facebook and creating a single new identity with AWS Cognito. Then if that user deletes the app and re-downloads it I want Cognito to return the same identity. </p>
<p>Facebook login works but credentialsProvider.setLogins(logins); creates 4 NEW unauthenticated identitie... | I'm having trouble authenticating users with Facebook and creating a single new identity with AWS Cognito. Then if that user deletes the app and re-downloads it I want Cognito to return the same identity. Facebook login works but credentialsProvider.setLogins(logins); creates 4 NEW unauthenticated identities every time... | android|facebook|amazon-web-services|amazon-cognito | 0 | 2016-04-19T22:39:00.710Z | 2,016 | 4 | 22 | 1 | 1,182 | 1 | 369 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
36,730,771 | animate layour parameter with ObjectAnimator | <p>I have a card view and I want to animate the android:layout_marginTop of it. Here's the xml</p>
<pre><code><android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools... | I have a card view and I want to animate the android:layout_marginTop of it. Here's the xml [CODE] I tried this with the ObjectAnimator [CODE] but this is not what I need. It is moving the cardview translation. Is there a way to use the ObjectAnimator to animate just the "android:layout_marginTop"? any pointers are gre... | android|android-animation | 3 | 2016-04-19T22:42:41.727Z | 2,016 | 4 | 22 | 1 | 90 | 0 | 342 | 44 | 2 | 2 | true | true | false | false | false | false | low |
36,730,823 | Android TextView Multiline Formatting | <p>These two line from my logcat are strings that were formatted with String.fortmat() </p>
<pre><code>04-19 13:57:44.918 26962-26962/ts.kiosk.app.checkout E/java.lang.StackTraceElement: "Tendered Amount: Rs. 0.00"
04-19 13:57:44.919 26962-26962/ts.kiosk.app.checkout E/java.lang.StackTraceElemen... | These two line from my logcat are strings that were formatted with String.fortmat() [CODE] you can see both line are the same exact length but in the Text View the string are not exactly like they were formatted to be: [CODE] So this is how its aligned in the TextView: [CODE] I'm thinking my TextView is messing up the ... | android|textview|string-formatting|multiline | 1 | 2016-04-19T22:49:02.837Z | 2,016 | 4 | 22 | 1 | 835 | 3 | 347 | 37 | 4 | 4 | true | false | false | false | false | false | low |
36,730,859 | Correct way to open/close the database? | <p>Right now I am using a static instance of the <code>SQLOpenHelper</code> class like so:</p>
<pre><code>public class DatabaseHelper extends SQLiteOpenHelper {
private static DatabaseHelper mInstance = null;
private final Context mContext;
//...
public static synchronized DatabaseHelper getInstance(... | Right now I am using a static instance of the SQLOpenHelper class like so: [CODE] And then a DatabaseProcessor class like so: [CODE] So if I want to access my database, I do something like this: [CODE] Is this the correct way to do this? Or is it better to open the database in the base Activity onResume() method and cl... | java|android|database|sqlite | 0 | 2016-04-19T22:52:57.270Z | 2,016 | 4 | 22 | 1 | 33 | 1 | 481 | 39 | 4 | 4 | true | false | false | false | false | false | zero |
36,730,944 | comparing a input string to string in a database | <p>I'm studying Android studio and started with databases this week. I would like a little help with this app. It is simple. The user enters a string and presses a button in the first activity. This string then is sent to the second activity where it is compared with values in a database and display the ones that are s... | I'm studying Android studio and started with databases this week. I would like a little help with this app. It is simple. The user enters a string and presses a button in the first activity. This string then is sent to the second activity where it is compared with values in a database and display the ones that are simi... | java|android|android-sqlite | 1 | 2016-04-19T23:00:04.630Z | 2,016 | 4 | 23 | 1 | 152 | 2 | 464 | 48 | 3 | 2 | true | false | false | false | false | false | low |
36,731,061 | Getting libpthread.so was not created error on Android bazel build | <p>I'm trying to get the <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android" rel="nofollow noreferrer">tensorflow Android example</a> running but I keep running into this issue:</p>
<blockquote>
<p>ERROR: /home/administrator/TensorFlow_Git/tensorflow/examples/android/BUILD:41:1: o... | I'm trying to get the tensorflow Android example running but I keep running into this issue: ERROR: /home/administrator/TensorFlow_Git/tensorflow/examples/android/BUILD:41:1: output 'tensorflow/examples/android/libpthread.so' was not created. ERROR: /home/administrator/TensorFlow_Git/tensorflow/examples/android/BUILD:4... | android|tensorflow|bazel | 0 | 2016-04-19T23:12:17.700Z | 2,016 | 4 | 23 | 1 | 174 | 1 | 1,062 | 66 | 3 | 1 | true | false | false | false | false | false | zero |
36,731,104 | Android Studio: Iterate through images in drawable for onClick imageButton | <p>I currently have 8 imageButtons set up with id's imageButton1 to imageButton8.</p>
<p>When i click on a particular button (imageButton2 for example) I want to loop through my images in the drawable folder named image1....image10, and set the image to the imageButton for each click. </p>
<p>I have looked at various... | I currently have 8 imageButtons set up with id's imageButton1 to imageButton8. When i click on a particular button (imageButton2 for example) I want to loop through my images in the drawable folder named image1....image10, and set the image to the imageButton for each click. I have looked at various for loops to solve ... | android|loops|for-loop|drawable|imagebutton | 1 | 2016-04-19T23:16:37.097Z | 2,016 | 4 | 23 | 1 | 1,911 | 2 | 948 | 74 | 5 | 2 | true | false | false | false | false | false | low |
36,731,171 | eclipseLink 2.5/2.6 on android studio 2.0 | <p>I tried to use EclipseLink on android, but got the following error with eclipseLink 2.5.</p>
<p>AGPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: java.lang.RuntimeException: Exception parsing classes","sources":[{}],"original":"UNEXPECTED TOP-LEVEL EXCEPTION:\njava.lang.RuntimeException: Exce... | I tried to use EclipseLink on android, but got the following error with eclipseLink 2.5. AGPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: java.lang.RuntimeException: Exception parsing classes","sources":[{}],"original":"UNEXPECTED TOP-LEVEL EXCEPTION:\njava.lang.RuntimeException: Exception parsi... | java|android|jpa|eclipselink | 2 | 2016-04-19T23:23:48.677Z | 2,016 | 4 | 23 | 1 | 166 | 0 | 3,028 | 41 | 4 | 1 | true | true | false | false | false | false | low |
36,731,172 | Troubles with AndroidSlidingUpPanel with Eclipse - Error Inflating class | <p>I'm trying to use the <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer">AndroidSlidingUpPanel library </a> (in Eclipse) and I have this error:</p>
<pre><code>04-19 20:09:48.413: E/AndroidRuntime(13760): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mendozatou... | I'm trying to use the AndroidSlidingUpPanel library (in Eclipse) and I have this error: [CODE] This is my layout: [CODE] I downloaded the entire project and imported "main" as library. Then I add this library to my project's java build path. I have the feeling that is a java build path problem. Any idea? Than... | java|android|eclipse|slidingpanelayout | 1 | 2016-04-19T23:23:52.493Z | 2,016 | 4 | 23 | 1 | 454 | 1 | 377 | 72 | 4 | 2 | true | false | false | false | false | false | low |
36,731,213 | Gradle runs fine under interactive account but not under NT service | <p>We have a batch file to build our Android application. It basically runs <code>gradlew.bat assemble</code>. When I remote desktop into the build machine (Windows 8) and run the batch file, everything builds as expected. However, when I invoke the batch file through an NT service, we start getting errors.</p>
<p>The... | We have a batch file to build our Android application. It basically runs gradlew.bat assemble . When I remote desktop into the build machine (Windows 8) and run the batch file, everything builds as expected. However, when I invoke the batch file through an NT service, we start getting errors. The account that the servi... | android|gradle|android-gradle-plugin | 0 | 2016-04-19T23:28:04.840Z | 2,016 | 4 | 23 | 1 | 72 | 1 | 1,209 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
36,731,221 | Android How to create a new json file if it doesn't exist python | <p>I am creating an app that lets the user enter information and can save the data into a json file called hello.json. This works fine when the file exists, however when testing it on an android it crashed because it does not contain this file. How can I create a new json file on android if it doesn't exist?</p>
<p>... | I am creating an app that lets the user enter information and can save the data into a json file called hello.json. This works fine when the file exists, however when testing it on an android it crashed because it does not contain this file. How can I create a new json file on android if it doesn't exist? .py file [COD... | android|python|json|file|kivy | 1 | 2016-04-19T23:28:45.220Z | 2,016 | 4 | 23 | 1 | 948 | 1 | 322 | 64 | 5 | 1 | true | false | false | false | false | false | low |
36,731,276 | Drawing transparent area not updating with drag listener | <p>I've seen many questions about <code>transparent</code> background on child <code>Views</code> from a custom <code>ViewGroup</code> on SO, however no one seems to have this problem. </p>
<p><strong>Background:</strong><br>
I created a custom <code>FrameLayout</code>; this container has Views added dynamically. Its ... | I've seen many questions about transparent background on child Views from a custom ViewGroup on SO, however no one seems to have this problem. Background: I created a custom FrameLayout ; this container has Views added dynamically. Its children should have a transparent background, but the other surface of the containe... | android|drag-and-drop|android-canvas|paint|porter-duff | 2 | 2016-04-19T23:34:11.663Z | 2,016 | 4 | 23 | 1 | 250 | 1 | 1,432 | 56 | 5 | 2 | true | false | false | false | false | false | low |
36,731,341 | How to retrieve Images from firebase in listview | <p>I trying to retrieve images in listview using Firebase list adapter.I am using POJO class for saving and retriving images from firebase.</p>
<p>Below is my POJO class: Data.java</p>
<pre><code>public class Data {
String imag;
public Data(){
}
public Data(String imag){
this.imag = imag;
}
public String ge... | I trying to retrieve images in listview using Firebase list adapter.I am using POJO class for saving and retriving images from firebase. Below is my POJO class: Data.java [CODE] Code for storing images: [CODE] Code for retriving Images: [CODE] how to set getter in firebase list adapter to fetch images. | android|firebase | 0 | 2016-04-19T23:42:41.780Z | 2,016 | 4 | 23 | 1 | 8,991 | 2 | 303 | 48 | 2 | 3 | true | false | true | false | false | false | zero |
36,731,429 | Android shared element transition on ImageView scale is wrong | <p>I have tried many different variations and cannot get the return transition to work properly. </p>
<p>When i exit Activity B the image transitions back to Activity A but it is scaled until it disappears then after disappearing is shows where it should. </p>
<p>I have tried different variations of the following and... | I have tried many different variations and cannot get the return transition to work properly. When i exit Activity B the image transitions back to Activity A but it is scaled until it disappears then after disappearing is shows where it should. I have tried different variations of the following and others in that group... | android|material-design|android-transitions | 4 | 2016-04-19T23:51:42.143Z | 2,016 | 4 | 23 | 1 | 4,223 | 2 | 956 | 61 | 3 | 5 | true | false | true | false | false | false | low |
36,731,465 | React Native - passing refs into NavigationBar routeMapper | <p>I'm trying to open the drawer menu when clicking on the left button in the navigation bar (Android). For some reason it doesn't recognise refs when calling openDrawer</p>
<p>I get the error:
"undefined is not an object (evaluating '_this3.refs.drawer')"</p>
<p>quite frustrating :/</p>
<p>How can i open the drawer... | I'm trying to open the drawer menu when clicking on the left button in the navigation bar (Android). For some reason it doesn't recognise refs when calling openDrawer I get the error: "undefined is not an object (evaluating '_this3.refs.drawer')" quite frustrating :/ How can i open the drawer from routeMapper? [CODE] | android|react-native|navigationbar | 0 | 2016-04-19T23:56:15.287Z | 2,016 | 4 | 23 | 1 | 337 | 1 | 318 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
36,731,592 | Using OpenCV4Android, how to create an ROI (Region-Of-Interest or a submat) from a contour? | <p>Given an image <code>Mat</code>, and a contour (which is a <code>MatOfPoint</code>) in it, how can I create a ROI (Region Of Interest)/submat?</p>
<p>I can see three interesting methods on <a href="http://docs.opencv.org/java/2.4.9/org/opencv/core/Mat.html" rel="nofollow">docs of <code>Mat</code></a>,</p>
<blockqu... | Given an image Mat , and a contour (which is a MatOfPoint ) in it, how can I create a ROI (Region Of Interest)/submat? I can see three interesting methods on docs of Mat , Mat submat(int rowStart, int rowEnd, int colStart, int colEnd) Extracts a rectangular submatrix. Mat submat(Range rowRange, Range colRange) Extracts... | android|opencv|contour | 1 | 2016-04-20T00:09:43.210Z | 2,016 | 4 | 0 | 2 | 486 | 1 | 589 | 91 | 3 | 0 | false | false | false | false | false | false | low |
36,731,597 | Calling a method from my MainActivity | <p>I've desperatly tried everything on Internet to be able to call my
<code>thisIsAMethodJustToTryOutMyButton(View view)</code>, when user click my <code>Delete Button</code> MainActivity, but nothing works. The button gives no reaction.</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method ... | I've desperatly tried everything on Internet to be able to call my thisIsAMethodJustToTryOutMyButton(View view) , when user click my Delete Button MainActivity, but nothing works. The button gives no reaction. [CODE] Adapter class [CODE] MyDialogForDeletingAItem class [CODE] MainActivity class [CODE] | android|button|methods|onclick|android-dialogfragment | 1 | 2016-04-20T00:09:52.677Z | 2,016 | 4 | 0 | 2 | 1,640 | 3 | 301 | 37 | 5 | 4 | true | false | false | false | false | false | low |
36,731,611 | Opening an Sqlite database in a background thread | <p>I am trying to better understand what it means to open an Sqlite database on a background thread in Android. Right now I am using a static/singleton pattern for my database via my class <code>DatabaseHelper</code>, so I only need to open it once, but I want to open it using good practice and understand why I shouldn... | I am trying to better understand what it means to open an Sqlite database on a background thread in Android. Right now I am using a static/singleton pattern for my database via my class DatabaseHelper , so I only need to open it once, but I want to open it using good practice and understand why I shouldn't open it dire... | android|database|multithreading|sqlite|android-activity | 0 | 2016-04-20T00:11:19.157Z | 2,016 | 4 | 0 | 2 | 1,238 | 1 | 523 | 49 | 5 | 2 | true | false | false | false | false | false | zero |
36,731,733 | Espresso tests not working with new Google Android Emulators | <p>About a month ago I upgraded to Android Studio 2.0 after being on 1.5 for quite a while. I have a suite of 23 tests built on top of Espresso that drive my app.</p>
<p>Normally, I use Genymotion Pro but I have been trying to get a CI server going and I wanted to use the "new and improved" Google Android Emulators.</... | About a month ago I upgraded to Android Studio 2.0 after being on 1.5 for quite a while. I have a suite of 23 tests built on top of Espresso that drive my app. Normally, I use Genymotion Pro but I have been trying to get a CI server going and I wanted to use the "new and improved" Google Android Emulators. Today I fina... | android|android-emulator|android-testing|android-espresso|android-studio-2.0 | 6 | 2016-04-20T00:25:16.923Z | 2,016 | 4 | 0 | 2 | 1,104 | 0 | 2,568 | 60 | 5 | 0 | false | true | false | false | false | false | medium |
36,731,737 | Android have button on keyboard that switches custom keyboard to user specified default keyboard | <p>I have a custom keyboard in Android. I want to have a button on my keyboard that when pressed will hide my keyboard and show the keyboard that the user has specified as the default keyboard. (If worst comes to worst, I will accept a solution that just shows the default Android keyboard that is not specified by the u... | I have a custom keyboard in Android. I want to have a button on my keyboard that when pressed will hide my keyboard and show the keyboard that the user has specified as the default keyboard. (If worst comes to worst, I will accept a solution that just shows the default Android keyboard that is not specified by the user... | android|android-softkeyboard | 1 | 2016-04-20T00:25:43.740Z | 2,016 | 4 | 0 | 2 | 91 | 0 | 917 | 96 | 2 | 2 | true | true | false | false | false | false | low |
36,731,892 | Smart Phone Gyroscope Code | <p>I am working with some code that manipulates HTML elements and CSS based on smart phone gyroscope values. I have this div that can I can get to grow bigger and smaller depending on how I tilt my phone. However, I don't it to shrink, I only want it to grow. Any ideas how I might do this? I will leave the code below.
... | I am working with some code that manipulates HTML elements and CSS based on smart phone gyroscope values. I have this div that can I can get to grow bigger and smaller depending on how I tilt my phone. However, I don't it to shrink, I only want it to grow. Any ideas how I might do this? I will leave the code below. "ga... | android|html|css|iphone|gyroscope | 1 | 2016-04-20T00:44:59.953Z | 2,016 | 4 | 0 | 2 | 264 | 0 | 382 | 26 | 5 | 1 | true | true | false | false | false | false | low |
36,732,143 | Getting the logged in user info from ADAL on android | <p>I am working with ADAL from
<a href="https://github.com/Azure-Samples/active-directory-android" rel="nofollow">https://github.com/Azure-Samples/active-directory-android</a></p>
<p>My code mimics the sample very close</p>
<pre><code> mAuthContext.acquireToken(ToDoActivity.this, Constants.RESOURCE_ID,
... | I am working with ADAL from https://github.com/Azure-Samples/active-directory-android My code mimics the sample very close [CODE] I pass in the user's email address, but if the user changes it and uses a different one the ADAL library on the onSuccess never tells me the user changed it. The AuthenticationResult has a f... | android|active-directory|adal|oauth-2.0 | 1 | 2016-04-20T01:12:50.937Z | 2,016 | 4 | 1 | 2 | 635 | 1 | 539 | 52 | 4 | 1 | true | false | false | false | false | false | low |
36,732,215 | I got some errors when I create an header listview on xamarin android | <p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code> public class CustomAdapter : BaseAdapter{
private const int TYPE_ITEM = 0;
private const int TYPE_SEPARATOR = 1;
private List<String> mData;
private Tre... | [CODE] [CODE] Create your custom adapter for ListView You must override getViewTypeCount() method. This method returns the number of types of Views that will be created by getView method. I was trying to create a header listview. | android|xamarin|xamarin.android | 1 | 2016-04-20T01:20:50.137Z | 2,016 | 4 | 1 | 2 | 122 | 1 | 229 | 69 | 3 | 2 | true | false | false | false | false | false | low |
36,732,345 | J2Objc, Protobuf nano and Swift | <p>I have Java classes being translated to Objective C (J2Objc using the cradle plugin). The simple Android app and Unit tests work fine. The same simple Objective C iOS app also works perfectly. However, when I try to write similar code in a Swift project I cannot access instance variables, find methods, etc. This is ... | I have Java classes being translated to Objective C (J2Objc using the cradle plugin). The simple Android app and Unit tests work fine. The same simple Objective C iOS app also works perfectly. However, when I try to write similar code in a Swift project I cannot access instance variables, find methods, etc. This is rel... | android|protocol-buffers|j2objc | 0 | 2016-04-20T01:35:50.513Z | 2,016 | 4 | 1 | 2 | 188 | 2 | 710 | 31 | 3 | 5 | true | false | false | false | false | false | zero |
36,732,433 | Android webview in marshmallow | <p>A recent update to Marshmallow has caused a problem with my app's WebView. My layout xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/errorLayout"
android:layout_width="match_parent"
android:layo... | A recent update to Marshmallow has caused a problem with my app's WebView. My layout xml: [CODE] The layout is used in a dialog to show help, examples (the app is a calculator), and error messages: [CODE] This worked just fine in Lollipop but now just shows the button at the bottom of the layout instead of the entire c... | android|webview | 1 | 2016-04-20T01:47:28.513Z | 2,016 | 4 | 1 | 2 | 1,299 | 0 | 534 | 30 | 2 | 2 | true | true | false | false | false | false | low |
36,732,447 | Alarm manager and broadcaster receiver not working | <p>My alarm manager class</p>
<p>public class PSMScheduler {</p>
<pre><code>public static void setSchedule(Context context) {
setSchedule(context,0,0,5);
setSchedule(context, 18, 30, 0);
}
private static void setSchedule(Context context, int hour, int min, int sec) {
// the request code distinguish diff... | My alarm manager class public class PSMScheduler { [CODE] my broadcast receiver [CODE] MY main activity [CODE] I'm not sure why this isn't working. I also have the receiver declared in the manifest. Any thoughts or suggestions would be appreciated. | android | 1 | 2016-04-20T01:49:14.947Z | 2,016 | 4 | 1 | 2 | 57 | 0 | 248 | 50 | 1 | 3 | true | true | false | false | false | false | low |
36,732,614 | Error on Chromium ARC Compilation when configure | <p>Getting errors as below, when I follow <strong>step 4</strong> of the instruction from <a href="https://chromium.googlesource.com/arc/arc/+/release-39.4410.148.0/docs/getting-started-open-source.md">Getting Started with ARC Open Source on Linux</a>. OS is Ubuntu 14.04 LTS running in Hyper-V.</p>
<blockquote>
<p>U... | Getting errors as below, when I follow step 4 of the instruction from Getting Started with ARC Open Source on Linux . OS is Ubuntu 14.04 LTS running in Hyper-V. UBUNTU14:~/arc$ ./configure ERROR:root:While running ['third_party/tools/depot_tools/third_party/gsutil/gsutil', 'cp', 'gs://arc-build/naclports/builds/pepper_... | android|ubuntu-14.04|chromium|google-nativeclient|google-chrome-arc | 6 | 2016-04-20T02:13:19.753Z | 2,016 | 4 | 2 | 2 | 283 | 2 | 2,756 | 48 | 5 | 1 | true | false | false | false | false | false | medium |
36,732,653 | Android date with added milliseconds not at the correct time | <p>What I am trying to do is store a date, represented by a long of milliseconds, that is the next midnight from the current time. So, posting this at 10:11 PM, I would want a date representing 12:00 AM tomorrow morning. For this task, I wrote this line of code (knowing that there are 86400000 milliseconds in one day):... | What I am trying to do is store a date, represented by a long of milliseconds, that is the next midnight from the current time. So, posting this at 10:11 PM, I would want a date representing 12:00 AM tomorrow morning. For this task, I wrote this line of code (knowing that there are 86400000 milliseconds in one day): [C... | java|android|date | 2 | 2016-04-20T02:17:45.790Z | 2,016 | 4 | 2 | 2 | 1,387 | 3 | 1,167 | 60 | 3 | 2 | true | false | false | false | false | false | low |
36,732,655 | Android Studio2.0 error while running | <pre><code>Error while executing: am start -n "com.*************************" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.String) (tried Java_android_os_SystemProperties_na... | [CODE] I updated Android Studio to 2.0 recently, This is the error I get sometimes. When I Clean and Rerun the application. The application runs smoothly. Update: API version is 23. I run the project directly into my HTC one M8. | android|android-studio-2.0 | 2 | 2016-04-20T02:18:10.397Z | 2,016 | 4 | 2 | 2 | 196 | 0 | 228 | 37 | 2 | 1 | true | true | false | false | false | false | low |
36,732,661 | Get Local Timestamp not working Android | <p>I'm trying to get the timestamp from a date. But i'm trying to getting the Local timestamp, but event setting the Timezone, i'm still getting the timestamp in UTC.</p>
<p>This is my Code:</p>
<pre><code>public static Long dateToTimestamp(String dateFormat) {
SimpleDateFormat formatter = new SimpleDateForma... | I'm trying to get the timestamp from a date. But i'm trying to getting the Local timestamp, but event setting the Timezone, i'm still getting the timestamp in UTC. This is my Code: [CODE] This is the Logs: [CODE] The date and the TimeZone is OK, the Timezone is Brasilia Standard Time , but the Timestamp still 3 hours a... | android|date|datetime|timestamp | 0 | 2016-04-20T02:18:51.773Z | 2,016 | 4 | 2 | 2 | 132 | 1 | 433 | 39 | 4 | 2 | true | false | false | false | false | false | zero |
36,732,795 | how to create a list view with textview and increase n decrease button? | <p>Adapter class</p>
<pre><code>public class MyCustomAdapter extends BaseAdapter implements ListAdapter {
private ArrayList<String> list = new ArrayList<String>();
private Context context;
/*public MyCustomAdapter(ArrayList<String> list, Context context) {
this.list = list;
... | Adapter class [CODE] Main Activity [CODE] here is the code what I have tried I want to have a text view n button in list view which will increase n decrease with respect to the text view . when I'm trying adding a new items it setting 0 in above all item .so all the item I have added before I have to start from 0. so p... | android|listview|android-adapter | 0 | 2016-04-20T02:31:41.340Z | 2,016 | 4 | 2 | 2 | 2,159 | 1 | 344 | 71 | 3 | 3 | true | false | false | false | false | false | zero |
36,732,839 | Android Double NumberPicker with increment and accuracy | <p>I am trying to create a modified NumberPicker for double/float values with an increment and precision setting so I can increment the values by something other than 1. For my use cases, I have a calculator app that I want to use 2-3 of these NumberPickers to input/select a double value. Some inputs might be on the or... | I am trying to create a modified NumberPicker for double/float values with an increment and precision setting so I can increment the values by something other than 1. For my use cases, I have a calculator app that I want to use 2-3 of these NumberPickers to input/select a double value. Some inputs might be on the order... | android|double|formatter|numberpicker | 1 | 2016-04-20T02:37:35.747Z | 2,016 | 4 | 2 | 2 | 898 | 0 | 1,419 | 55 | 4 | 2 | true | true | false | false | false | false | low |
36,732,880 | Android: how to fix CardViews' views scrolling in RecyclerView? | <p>I load a RecyclerView with CardViews that gets populated with some SQLite data and a checkbox. The initial UI screen looks good with the CardViews:</p>
<p><a href="https://i.stack.imgur.com/72SBA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/72SBA.png" alt="enter image description here"></a></... | I load a RecyclerView with CardViews that gets populated with some SQLite data and a checkbox. The initial UI screen looks good with the CardViews: I then begin scrolling downwards and a number of the CardViews disappear and the UI screen only shows one CardView. If I scroll further then another single CardView shows f... | android|android-recyclerview|android-adapter | 2 | 2016-04-20T02:42:02.403Z | 2,016 | 4 | 2 | 2 | 1,421 | 1 | 415 | 63 | 3 | 1 | true | false | false | false | false | false | low |
36,733,117 | Android Bottom Bars overlapping Toolbar | <p>I'm using a library for the new Material Design Bottom Bars, and I am having a very strange problem. Whenever I put this into my Coordinator Layout, it shows on top of the toolbar. Why is this happening, and how can I fix it? Also, how can I have it so the Floating Action Button is above these bars, and not overlapp... | I'm using a library for the new Material Design Bottom Bars, and I am having a very strange problem. Whenever I put this into my Coordinator Layout, it shows on top of the toolbar. Why is this happening, and how can I fix it? Also, how can I have it so the Floating Action Button is above these bars, and not overlapping... | android|android-coordinatorlayout | 6 | 2016-04-20T03:10:09.793Z | 2,016 | 4 | 3 | 2 | 2,893 | 2 | 331 | 39 | 2 | 1 | true | false | true | false | false | false | medium |
36,733,124 | failed to make the source of android 6.0 , | <blockquote>
<p>WORKING_DIR/frameworks/base/docs/html/guide/topics/ui/drag-drop.jd:-980:
error 101: Unresolved link/see tag
"android.view.View.DragShadowBuilder#View.DragShadowBuilder()" in
[null]
WORKING_DIR/frameworks/base/docs/html/guide/topics/ui/drag-drop.jd:-980:
error 101: Unresolved link/see tag
"... | WORKING_DIR/frameworks/base/docs/html/guide/topics/ui/drag-drop.jd:-980: error 101: Unresolved link/see tag "android.view.View.DragShadowBuilder#View.DragShadowBuilder()" in [null] WORKING_DIR/frameworks/base/docs/html/guide/topics/ui/drag-drop.jd:-980: error 101: Unresolved link/see tag "android.view.View.DragShadowBu... | android|makefile | 1 | 2016-04-20T03:11:16.313Z | 2,016 | 4 | 3 | 2 | 1,414 | 2 | 1,166 | 42 | 2 | 0 | false | false | false | false | false | false | low |
36,733,142 | Retrofit 2 throwing error Expected BEGIN_ARRAY but was BEGIN_OBJECT | <p>Hi I am new to the Retrofit 2.0 library, I am having problems parsing some json. I have looked at some other solutions on Stackoverflow but not having much luck with my problem. I am trying to call an api from android with retrofit 2.0.But it is throwing error Expected BEGIN_ARRAY but was BEGIN_OBJECT.</p>
<p>My re... | Hi I am new to the Retrofit 2.0 library, I am having problems parsing some json. I have looked at some other solutions on Stackoverflow but not having much luck with my problem. I am trying to call an api from android with retrofit 2.0.But it is throwing error Expected BEGIN_ARRAY but was BEGIN_OBJECT. My response from... | android|retrofit | 2 | 2016-04-20T03:12:30.327Z | 2,016 | 4 | 3 | 2 | 173 | 1 | 439 | 67 | 2 | 4 | true | false | false | false | false | false | low |
36,733,149 | Identify if all the values of tools aren't null (Xamarin VS 2015 Android) | <p>I have the following tools in my android app.</p>
<ol>
<li>EditText</li>
<li>Spinner</li>
<li>ImageView</li>
</ol>
<p>I also have a button where if you click it, a dialog box will appear and will tell the user if all the tools above are not null. (EditText has inputted text, Spinner has a value selected, and Image... | I have the following tools in my android app. EditText Spinner ImageView I also have a button where if you click it, a dialog box will appear and will tell the user if all the tools above are not null. (EditText has inputted text, Spinner has a value selected, and ImageView has image uploaded) What I want to accomplish... | c#|android|visual-studio|xamarin|xamarin.android | 0 | 2016-04-20T03:13:16.467Z | 2,016 | 4 | 3 | 2 | 757 | 1 | 528 | 73 | 5 | 1 | true | false | false | false | false | false | zero |
36,733,168 | Navigation bar now showing in other activity | <p>i got error log like this, actually im try to show DrawableToggle in other xml, but the problem like this, and error log shown in post too</p>
<p>im already have some activity with navigation bar in acitivity main and its show toggle bar</p>
<p>but when i try implement in another xml, toggle bar not show up</p>
<... | i got error log like this, actually im try to show DrawableToggle in other xml, but the problem like this, and error log shown in post too im already have some activity with navigation bar in acitivity main and its show toggle bar but when i try implement in another xml, toggle bar not show up manifest.xml [CODE] style... | android|xml | 0 | 2016-04-20T03:15:02.977Z | 2,016 | 4 | 3 | 2 | 137 | 2 | 443 | 44 | 2 | 7 | true | false | false | false | false | false | zero |
36,733,202 | Multiple Selection in Alert Dialog | <p>Good Day,</p>
<p>I created a method showDialog which will show an Alert Dialog and will list multiple data that I can select of. My problem is when I click OK, the next method (myMethod()) i want to call is not being called. Can someone help me with this? Here is my code: </p>
<pre><code>private void showDialog(L... | Good Day, I created a method showDialog which will show an Alert Dialog and will list multiple data that I can select of. My problem is when I click OK, the next method (myMethod()) i want to call is not being called. Can someone help me with this? Here is my code: [CODE] Here is myMethod: [CODE] } | android|facebook-android-sdk|android-dialog|android-sdk-2.3 | 2 | 2016-04-20T03:18:13.803Z | 2,016 | 4 | 3 | 2 | 525 | 0 | 299 | 34 | 4 | 2 | true | true | false | false | false | false | low |
36,733,287 | Android emulator 2.0 crash when press power button | <p>I'm using android emulator 2.0, all things is up-to-day. Device's details: </p>
<blockquote>
<p>Name: Nexus_5X_API_23<br>
CPU/ABI: Google APIs Intel Atom (x86)<br>
Path: /home/khang/.android/avd/Nexus_5X_API_23.avd<br>
Target: google_apis [Google APIs] (API level 23)<br>
Skin: nexus_5x<br>
SD Card: /ho... | I'm using android emulator 2.0, all things is up-to-day. Device's details: Name: Nexus_5X_API_23 CPU/ABI: Google APIs Intel Atom (x86) Path: /home/khang/.android/avd/Nexus_5X_API_23.avd Target: google_apis [Google APIs] (API level 23) Skin: nexus_5x SD Card: /home/khang/.android/avd/Nexus_5X_API_23.avd/sdcard.img hw.dP... | android|android-studio|android-emulator | 5 | 2016-04-20T03:26:36.337Z | 2,016 | 4 | 3 | 2 | 1,693 | 2 | 1,584 | 50 | 3 | 0 | false | false | false | false | false | false | low |
36,733,308 | Add a button to a layout and program crashes. Why? | <p>This app displays movies and each movie poster can be clicked to see details about the movie. However, when I try to add a button to the detail view layout the app crashes with these errors. When I remove the button from the layout the app works as it should. This crash seems odd to me. </p>
<pre><code>04-19 20:05:... | This app displays movies and each movie poster can be clicked to see details about the movie. However, when I try to add a button to the detail view layout the app crashes with these errors. When I remove the button from the layout the app works as it should. This crash seems odd to me. [CODE] Here is my detail activit... | android|list|android-layout | 1 | 2016-04-20T03:28:21.023Z | 2,016 | 4 | 3 | 2 | 96 | 2 | 514 | 50 | 3 | 4 | true | false | false | false | false | false | low |
36,733,384 | Why does Android Studio warn about a handler reference leak in this Activity Handler code? | <p>I'm working on some <code>Activity</code> code and ran across an Android Studio warning I don't understand. Here is a minimal version of the code that produces the warning:</p>
<pre class="lang-java prettyprint-override"><code>package com.example.test;
import android.app.Activity;
import android.os.Bundle;
import ... | I'm working on some Activity code and ran across an Android Studio warning I don't understand. Here is a minimal version of the code that produces the warning: [CODE] Android Studio 1.5.1 highlights in yellow the body of the new Handler() { } where the comment indicates, displaying this message: Handler reference leaks... | java|android | 2 | 2016-04-20T03:37:51.393Z | 2,016 | 4 | 3 | 2 | 674 | 1 | 1,160 | 90 | 2 | 1 | true | false | false | false | false | false | low |
36,733,395 | Android Form data to JSONObjects | <p>I have an Android form that gets data from a user. I have all the data in a bundle. But I need help on how to store the bundle into <code>JSONObjects</code>. The code below gets the data and stores it into a <code>Bundle</code></p>
<pre><code> Fragment data = new Fragment();
Bundle itembundle =new Bundle(); ... | I have an Android form that gets data from a user. I have all the data in a bundle. But I need help on how to store the bundle into JSONObjects . The code below gets the data and stores it into a Bundle [CODE] And the code below gets the data from the bundle. [CODE] So please help me on how to put this into a JSONObjec... | android|android-fragments|bundle|json | 2 | 2016-04-20T03:39:22.153Z | 2,016 | 4 | 3 | 2 | 376 | 4 | 332 | 32 | 4 | 2 | true | false | false | false | false | false | low |
36,733,488 | Tesseract OCR output value | <p>I am developing android app using tesseract. The accuracy is more than 85% . However, I want to put some constrains on output, ex when no text if found or no meaningful word is found I want to show error message.
I have looked at text fairy but I couldn't understand their method.
I want the output to be meaningful ... | I am developing android app using tesseract. The accuracy is more than 85% . However, I want to put some constrains on output, ex when no text if found or no meaningful word is found I want to show error message. I have looked at text fairy but I couldn't understand their method. I want the output to be meaningful word... | android|text|ocr|tesseract | 2 | 2016-04-20T03:49:37.947Z | 2,016 | 4 | 3 | 2 | 793 | 1 | 403 | 26 | 4 | 1 | true | false | false | false | false | false | low |
36,733,612 | Android - how to get user email with facebook sdk 4+ | <p>I'm trying to get the Facebook user email from and app I'm developing. The thing is that i can get the name and everything else, but not the email. I already looked for all the common questions over here and i saw many many ways to do it but no one works on my app. I hope you can give me a hand.</p>
<p><strong>Logi... | I'm trying to get the Facebook user email from and app I'm developing. The thing is that i can get the name and everything else, but not the email. I already looked for all the common questions over here and i saw many many ways to do it but no one works on my app. I hope you can give me a hand. LoginActivity.java (On ... | android|facebook | 4 | 2016-04-20T04:04:49.520Z | 2,016 | 4 | 4 | 2 | 2,979 | 2 | 358 | 52 | 2 | 2 | true | false | true | false | false | false | low |
36,733,662 | pushwoosh push notification for ionic does not work with android | <p>I cant get Android Push to work with ionic. (ios works by the way)</p>
<p>I followed the documentation here:</p>
<p><a href="http://docs.pushwoosh.com/docs/cordova-phonegap" rel="nofollow">http://docs.pushwoosh.com/docs/cordova-phonegap</a></p>
<p>I even tried to create the same sample app based on this:</p>
<p>... | I cant get Android Push to work with ionic. (ios works by the way) I followed the documentation here: http://docs.pushwoosh.com/docs/cordova-phonegap I even tried to create the same sample app based on this: https://www.youtube.com/watch?v=-P2O1jmb7fI And it does not work on Android (ios works though). I configured Pus... | android|ionic-framework|push-notification|pushwoosh | 1 | 2016-04-20T04:11:38.807Z | 2,016 | 4 | 4 | 2 | 358 | 2 | 795 | 64 | 4 | 4 | true | false | false | false | false | false | low |
36,733,685 | Bottom Sheet not opening with the NavigationDrawer click | <p>I have two navigation drawers and a bottom sheet in my app. I want to expand the bottom sheet by click an item from a navigation drawer. Navigation Drawers work really fine.</p>
<p><strong>updated xml....</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayou... | I have two navigation drawers and a bottom sheet in my app. I want to expand the bottom sheet by click an item from a navigation drawer. Navigation Drawers work really fine. updated xml.... [CODE] My MonthNavigationDrawerFragment recyclerview click [CODE] My WelcomeMenu class [CODE] LogCat [CODE] | android|navigation-drawer|bottom-sheet | 2 | 2016-04-20T04:14:31.280Z | 2,016 | 4 | 4 | 2 | 1,896 | 1 | 297 | 56 | 3 | 4 | true | false | false | false | false | false | low |
36,733,905 | SearchView getting reset when moved from one fragment to other in viewpager android | <p>I have been working on an application where I have 6 tabs each of them having a listview in it. I want to filter the listview in each fragment depending upon the text in SearchView which is part of MainActivity. I have a working code for filtering records written in Listview adapter.</p>
<p>The issue is, whenever I... | I have been working on an application where I have 6 tabs each of them having a listview in it. I want to filter the listview in each fragment depending upon the text in SearchView which is part of MainActivity. I have a working code for filtering records written in Listview adapter. The issue is, whenever I want to se... | android|filter|searchview | 0 | 2016-04-20T04:36:20.180Z | 2,016 | 4 | 4 | 2 | 509 | 0 | 734 | 83 | 3 | 2 | true | true | false | false | false | false | zero |
36,733,919 | Ffmpeg convert images to video error in android | <p>My main goal is creating a video file using series of images. then I build the Ffmpeg library to android using <a href="http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/" rel="nofollow">Roman10 Tutorial</a>.</p>
<p>When creating a android app I add .so files and ffmpeg File to assert folder.</p>
<... | My main goal is creating a video file using series of images. then I build the Ffmpeg library to android using Roman10 Tutorial . When creating a android app I add .so files and ffmpeg File to assert folder. Then executing command, ffmpeg -f image2 -i img%d.jpg a.mov Then following error display in my LogCat, 04-20 09:... | android|ffmpeg|android-ffmpeg | 0 | 2016-04-20T04:37:11.010Z | 2,016 | 4 | 4 | 2 | 1,708 | 1 | 2,705 | 47 | 3 | 0 | false | false | false | false | false | false | zero |
36,733,934 | how to to show and dismiss alertDilog Globally when ever receiver receive in android | <pre><code> BroadcastReceiver updateBooleanBroadCastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
if (intent.getBooleanExtra("action", true)) {
checkGPS();
... | [CODE] This is my Alert : [CODE] I want to Hide Alertdilog when location On and when i want to hide or dismiss when Location Off from Notification Manger Location i am able to receive event on receive method when we off and On Location Manger location when i off location from Location manger then i am able to show Aler... | android | 0 | 2016-04-20T04:38:51.440Z | 2,016 | 4 | 4 | 2 | 35 | 2 | 425 | 84 | 1 | 2 | true | false | false | false | false | false | zero |
36,733,999 | How to create an enemy that you defeat by tapping as it falls from the top of the screen? | <p>I am making a game using android eclipse(java) where enemies fall from the top of the screen to the bottom. I have succeeded in making them fall (a little too fast but good enough for now) but I have not been able to make them respond correctly to tapping. At first, all enemies were defeated wherever the touch occur... | I am making a game using android eclipse(java) where enemies fall from the top of the screen to the bottom. I have succeeded in making them fall (a little too fast but good enough for now) but I have not been able to make them respond correctly to tapping. At first, all enemies were defeated wherever the touch occurred... | java|android|eclipse | -1 | 2016-04-20T04:44:13.010Z | 2,016 | 4 | 4 | 2 | 49 | 1 | 530 | 89 | 3 | 1 | true | false | false | false | false | true | negative |
36,734,039 | Getting Fatal Exception while using AsyncTask to set data in view | <p><strong>Below is my logcat</strong> </p>
<pre><code>04-20 00:40:11.688: E/AndroidRuntime(1623): FATAL EXCEPTION: AsyncTask #1
04-20 00:40:11.688: E/AndroidRuntime(1623): Process: com.clip.android, PID: 1623
04-20 00:40:11.688: E/AndroidRuntime(1623): java.lang.RuntimeException: An error occured while execu... | Below is my logcat [CODE] Below is my Code [CODE] I'm getting some error since new to android I cannot trace it out.I'm getting error as above I posted and I posted my code too. Can anybody please help me to resolve my issue..I think I have problem in asyncTask. Its not allowing me to set my data to the view.. | android|android-asynctask | -2 | 2016-04-20T04:46:30.400Z | 2,016 | 4 | 4 | 2 | 52 | 2 | 311 | 65 | 2 | 2 | true | false | false | false | false | true | negative |
36,734,137 | Xml Parser unexpected token error position:TEXT @1:2 in java.io.StringReader | <p>The problem is when I parse the XML from the original link for example <strong>(I am not posting the original link due to security purpose)</strong> <a href="http://example.com/ss.svc/APIabc?A=10&Key=XXXXX&From=19&To=221&Date=19-Apr-2016" rel="nofollow">http://example.com/ss.svc/APIabc?A=10&Key=X... | The problem is when I parse the XML from the original link for example (I am not posting the original link due to security purpose) http://example.com/ss.svc/APIabc?A=10&Key=XXXXX&From=19&To=221&Date=19-Apr-2016 then listview is not populated and the the logcat says error this LogCat error- [CODE] but when the same XML... | java|android|xml|xml-parsing|domparser | 2 | 2016-04-20T04:54:32.520Z | 2,016 | 4 | 4 | 2 | 2,426 | 1 | 688 | 76 | 5 | 4 | true | false | false | false | false | false | low |
36,734,256 | Android weighted fragment not showing | <p>Basically what I'm trying to do is have half the screen be a tab layout and half an image (or really anything else). It works just fine until I start adding weight.</p>
<p>As is, nothing is displayed. What would cause this problem?</p>
<pre><code><android.support.v4.app.FragmentTabHost
xmlns:android="http:/... | Basically what I'm trying to do is have half the screen be a tab layout and half an image (or really anything else). It works just fine until I start adding weight. As is, nothing is displayed. What would cause this problem? [CODE] Without the weight component the tab related stuff displays, but I'm assuming it pushes ... | java|android|android-fragments|android-tabhost | 0 | 2016-04-20T05:04:08.667Z | 2,016 | 4 | 5 | 2 | 57 | 2 | 471 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
36,734,262 | Android background service ksoap error | <p>i am developing an android application with background service which consumes a method of a web service on every 5 mins. I am using ksoap 2.4 and asp.net web service. Android background service is running on every 5 mins but</p>
<pre><code> androidHttpTransport.call(SOAP_ACTION+webMethName, envelope);
</code></pre>... | i am developing an android application with background service which consumes a method of a web service on every 5 mins. I am using ksoap 2.4 and asp.net web service. Android background service is running on every 5 mins but [CODE] returns null. here is my android service code. [CODE] here is the wsdl [CODE] | android|web-services|android-service|ksoap2 | 0 | 2016-04-20T05:04:43.220Z | 2,016 | 4 | 5 | 2 | 290 | 1 | 309 | 38 | 4 | 3 | true | false | false | false | false | false | zero |
36,734,304 | Android sending messages between fragment and service | <p>I have a fragment with a button. When clicked it tells a service to start polling sensors and then insert the sensor data into a database on a background thread. When the button is pushed again, the service will stop. When the Stop button is pushed, there may still be tasks in the executor queue that is inserting in... | I have a fragment with a button. When clicked it tells a service to start polling sensors and then insert the sensor data into a database on a background thread. When the button is pushed again, the service will stop. When the Stop button is pushed, there may still be tasks in the executor queue that is inserting into ... | android|android-fragments|android-service|android-dialog|android-handler | 3 | 2016-04-20T05:07:45.993Z | 2,016 | 4 | 5 | 2 | 2,839 | 3 | 2,371 | 53 | 5 | 9 | true | false | true | false | false | false | low |
36,734,309 | custom view circle truncated from right and bottom in android | <p>I am creating a circle with custom view or canvas. The circle gets created with border as well but the problem is that the right and bottom part of circle gets truncated. I get the following output with below mentioned code,</p>
<p><a href="https://i.stack.imgur.com/vQmuY.png" rel="nofollow noreferrer"><img src="ht... | I am creating a circle with custom view or canvas. The circle gets created with border as well but the problem is that the right and bottom part of circle gets truncated. I get the following output with below mentioned code, My custom view class for creating the above mentioned class is as follows, [CODE] } This is how... | android|android-canvas|android-view|android-custom-view|android-drawable | 0 | 2016-04-20T05:08:01.867Z | 2,016 | 4 | 5 | 2 | 83 | 0 | 348 | 61 | 5 | 2 | true | true | false | false | false | false | zero |
36,734,363 | When I open a new activity from an intent (button) from my previous activity, the button remains on the new activity | <p>I have an issue of a button remaining on the new activity, from which the button on the previous activity had launched. </p>
<p>Example: Activity A contains Button (B1). On clickevent of B1 takes you to Activity B. When B1 is clicked it successfully takes you to Activity B. </p>
<p>Extra Information: Activity A an... | I have an issue of a button remaining on the new activity, from which the button on the previous activity had launched. Example: Activity A contains Button (B1). On clickevent of B1 takes you to Activity B. When B1 is clicked it successfully takes you to Activity B. Extra Information: Activity A and Activity B are both... | java|android|xml | 0 | 2016-04-20T05:11:32.807Z | 2,016 | 4 | 5 | 2 | 57 | 0 | 598 | 116 | 3 | 4 | true | true | false | false | false | false | zero |
36,734,472 | OnItemSelectedListener is fired when onLongClick is pressed in gridview | <p>I will try to be as clear as possible.
I have a Gridview which displays images. The user is able to select multiple images in OnLongClick. The onLongClick is in the adapter. The code also has a onItemSelectedListener, which zooms the selected image at the particular position.
The problem is onItemSelectedListener is... | I will try to be as clear as possible. I have a Gridview which displays images. The user is able to select multiple images in OnLongClick. The onLongClick is in the adapter. The code also has a onItemSelectedListener, which zooms the selected image at the particular position. The problem is onItemSelectedListener is no... | android|gridview|onitemclicklistener|onlongclicklistener | 0 | 2016-04-20T05:20:26.207Z | 2,016 | 4 | 5 | 2 | 96 | 1 | 689 | 71 | 4 | 2 | true | false | false | false | false | false | zero |
36,734,508 | android support library 23.2.0 limitations | <p>I am having an app in which I have used <code>style="@style/Base.Widget.AppCompat.RatingBar.Small"</code> for a rating bar. Now i have to use a floating action button. This is my dependency structure </p>
<pre><code>dependencies {
ext {
supportLibVersion = '23.2.0'
}
compile fileTree(dir: 'libs', include: ['*... | I am having an app in which I have used style="@style/Base.Widget.AppCompat.RatingBar.Small" for a rating bar. Now i have to use a floating action button. This is my dependency structure [CODE] I am getting android.content.res.Resources$NotFoundException: when i try to use floating action button. After searching i got ... | android|android-support-library | 1 | 2016-04-20T05:23:14.780Z | 2,016 | 4 | 5 | 2 | 165 | 0 | 2,045 | 42 | 2 | 1 | true | true | false | false | false | false | low |
36,734,589 | Navigation Icon's position in Toolbar | <p>Want to change Navigation Icon Position to 8dp left. </p>
<p>I have attach the screenshot</p>
<ul>
<li><p>Black Colour line is the Current Position.</p></li>
<li><p>Orange Colour line is the position where, I want my Navigation icon to be placed.</p></li>
</ul>
<p>Things I have implemented so far are.</p>
<pre><... | Want to change Navigation Icon Position to 8dp left. I have attach the screenshot Black Colour line is the Current Position. Orange Colour line is the position where, I want my Navigation icon to be placed. Things I have implemented so far are. [CODE] and [CODE] | android|xml|android-layout|toolbar | 2 | 2016-04-20T05:30:26.387Z | 2,016 | 4 | 5 | 2 | 2,528 | 1 | 262 | 37 | 4 | 2 | true | false | false | false | false | false | low |
36,734,610 | Similar Facebook reactions - Animated view with ObjectAnimator clicklistener not working | <p>I'm trying to animate a set of views vertically in an RecyclerView.Adapter, the animation works well using android:clipChildren="false", android:clipToPadding="false" and viewHolder.linear.postInvalidate(), but the ClickListener does not work after animation ends. I'm using ObjectAnimator because I read this link ... | I'm trying to animate a set of views vertically in an RecyclerView.Adapter, the animation works well using android:clipChildren="false", android:clipToPadding="false" and viewHolder.linear.postInvalidate(), but the ClickListener does not work after animation ends. I'm using ObjectAnimator because I read this link Andro... | android|animation|android-animation|objectanimator | 3 | 2016-04-20T05:32:07.330Z | 2,016 | 4 | 5 | 2 | 1,174 | 2 | 454 | 88 | 4 | 1 | true | false | false | false | false | false | low |
36,734,618 | Clicking the button of listview is not fetching the corresponding textview value of that listview item | <p>Im having buttons for each items of listview. When the button is clicked, it has to fetch a value of corresponding listview item.</p>
<p>Following is my getView method.</p>
<pre><code>@Override
public View getView(int position, View convertView, ViewGroup parent) {
view = convertView;
if (con... | Im having buttons for each items of listview. When the button is clicked, it has to fetch a value of corresponding listview item. Following is my getView method. [CODE] Im invoking the button as follows in my code.. [CODE] But Im getting null pointer exception while doing so.How can I sort this out? Following is my log... | android|listview | 0 | 2016-04-20T05:32:34.833Z | 2,016 | 4 | 5 | 2 | 89 | 3 | 1,458 | 102 | 2 | 2 | true | false | false | false | false | false | zero |
36,734,635 | Why is the drawContour() in OpenCV generating this strange Mask? | <p>I started by reading in this <code>Mat</code>.</p>
<p><a href="https://i.stack.imgur.com/OHInM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OHInM.png" alt="enter image description here"></a></p>
<p>Then I converted it to Greyscale and applied <code>Imgproc.canny()</code> to it, getting the fo... | I started by reading in this Mat . Then I converted it to Greyscale and applied Imgproc.canny() to it, getting the following mask. Then I used Imgproc.findContours() to find the contours, Imgproc.drawContours() , and Core.putText() to label the contours with numbers: Then I did Rect boundingRect = Imgproc.boundingRect(... | android|opencv|image-processing|contour | 0 | 2016-04-20T05:34:00.250Z | 2,016 | 4 | 5 | 2 | 540 | 1 | 1,795 | 64 | 4 | 1 | true | false | false | false | false | false | zero |
36,734,636 | Android - Context in ListFragment does'nt work when called from AsyncTask in other Activity | <p>I want to refresh the <code>List</code> of a <code>ListFragment</code>. Therefore I created a method in my <code>ListFragment</code>:</p>
<pre><code>public void setAdapter(List<String> valueList) {
ArrayAdapter adapter = new ArrayAdapter<String>(ctx, android.R.layout.simple_list_item_1, valueList);
... | I want to refresh the List of a ListFragment . Therefore I created a method in my ListFragment : [CODE] And in my Activity I have a AsyncTask where I call the method above in onPostExecute : [CODE] Everything should work fine. The valueList isn't empty or something like that and also the onPostExecute gets called. So n... | java|android|android-asynctask|nullpointerexception|android-context | 0 | 2016-04-20T05:34:01.797Z | 2,016 | 4 | 5 | 2 | 70 | 1 | 685 | 91 | 5 | 2 | true | false | false | false | false | false | zero |
36,734,709 | How to register Registration_Id in database? | <p>I am trying to use GCM for android. After some steps that are provided by developer.google i got the registration id in toast, Now i want to store it in database. How to change here to store it in database. What steps i need to change for this updation???</p>
<p>code</p>
<pre><code> mRegistrationBroadcastReceiver ... | I am trying to use GCM for android. After some steps that are provided by developer.google i got the registration id in toast, Now i want to store it in database. How to change here to store it in database. What steps i need to change for this updation??? code [CODE] | java|android|google-cloud-messaging | 1 | 2016-04-20T05:39:08.890Z | 2,016 | 4 | 5 | 2 | 164 | 3 | 267 | 44 | 3 | 1 | true | false | false | false | false | false | low |
36,734,813 | Couchbase lite on Android not persisting document | <p>I'm new to Couchbase lite. On adding a document, I am able to get the document back with the exact data. But on deleting the database, re-creating it, and then creating a new document, I'm still getting the older document.</p>
<p>On debugging, I found that while writing, it does so to the 'store', whereas while rea... | I'm new to Couchbase lite. On adding a document, I am able to get the document back with the exact data. But on deleting the database, re-creating it, and then creating a new document, I'm still getting the older document. On debugging, I found that while writing, it does so to the 'store', whereas while reading, it re... | android|persistence|couchbase|couchbase-lite | 0 | 2016-04-20T05:46:04.920Z | 2,016 | 4 | 5 | 2 | 204 | 2 | 763 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
36,734,826 | setSupportActionBar without appcompatactivity | <p>I got some problem with setSupportActionBar
my activity using extend activity and setSupportActionBar need AppCompatActivity, </p>
<p>but when im change extend activity into appcompatactivity my application unfortunately stopped:</p>
<p>here code and logs </p>
<p>MainList.java</p>
<pre><code> package com.fel... | I got some problem with setSupportActionBar my activity using extend activity and setSupportActionBar need AppCompatActivity, but when im change extend activity into appcompatactivity my application unfortunately stopped: here code and logs MainList.java [CODE] Activity_list.xml [CODE] listrow.xml [CODE] style.xml [COD... | android | -1 | 2016-04-20T05:46:59.590Z | 2,016 | 4 | 5 | 2 | 930 | 1 | 354 | 45 | 1 | 6 | true | false | false | false | false | true | negative |
36,734,912 | How can I store user data (shared preferences) in this code? | <p>My Mainpage is the facebook-login activity and will proceed to navigation drawer.Everything works fine but I need to LogIn every time I open the app. Ive tried to do sharedpreferences and accesstoken. I dont know how to do it with this code. Pls hlp me.</p>
<p>This is my Main.java</p>
<pre><code>public class Main ... | My Mainpage is the facebook-login activity and will proceed to navigation drawer.Everything works fine but I need to LogIn every time I open the app. Ive tried to do sharedpreferences and accesstoken. I dont know how to do it with this code. Pls hlp me. This is my Main.java [CODE] Help pls. | java|android|facebook | -1 | 2016-04-20T05:52:56.550Z | 2,016 | 4 | 5 | 2 | 1,081 | 3 | 291 | 60 | 3 | 1 | true | false | false | false | false | true | negative |
36,734,977 | Gradle build failed : Error:Cause: org.gradle.api.internal.ExtensibleDynamicObject | <p>Hello I have get Gradle build failed error and i am using <a href="https://stackoverflow.com/questions/31897504/gradle-build-errorcause-org-gradle-api-internal-extensibledynamicobject">this link</a> is useful for me but still getting same error so can't understand what's the problems.</p>
<p><strong><em>Following a... | Hello I have get Gradle build failed error and i am using this link is useful for me but still getting same error so can't understand what's the problems. Following are my code of gradle.build file. My App:build.gradle file: [CODE] model { [CODE] } library:build.gradle [CODE] model { [CODE] } | android|android-ndk|android-studio-2.0 | 3 | 2016-04-20T05:57:16.433Z | 2,016 | 4 | 5 | 2 | 2,088 | 0 | 293 | 82 | 3 | 4 | true | true | false | false | false | false | low |
36,735,118 | Android SQLite DB datatype mismatch | <p>I was trying to use a SQLite database to store some to-do data in my app. And it failed when I tried to put in some data. I have searched StackOverflow, changing database or table name didn't seem to work for my case.
The error in logcat is</p>
<blockquote>
<p>statement aborts at 5: [INSERT INTO Todos(Complete,De... | I was trying to use a SQLite database to store some to-do data in my app. And it failed when I tried to put in some data. I have searched StackOverflow, changing database or table name didn't seem to work for my case. The error in logcat is statement aborts at 5: [INSERT INTO Todos(Complete,Description,Title,Deadline) ... | android|sqlite|android-sqlite|sqliteopenhelper | 0 | 2016-04-20T06:06:34.263Z | 2,016 | 4 | 6 | 2 | 1,642 | 3 | 609 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
36,735,192 | MobileFirst 7.1 integration with WCS7(fep 8) Aurora store | <p>I am following <a href="http://www.ibm.com/support/knowledgecenter/SSZLC2_8.0.0/com.ibm.commerce.aurora-starterstore.doc/concepts/csmmobileappworklight.htm" rel="nofollow">Steps</a> provided by IBM to build MobileFirst hybrid application for default Aurora store. I found the desired WCWorklight.zip at location </p>
... | I am following Steps provided by IBM to build MobileFirst hybrid application for default Aurora store. I found the desired WCWorklight.zip at location C:\{Installation dir}\components\store-enhancements\samples\Worklight\ On tutorial there were many js files that need to be replaced but those were not present in WCWork... | android|wcs | 0 | 2016-04-20T06:10:50.503Z | 2,016 | 4 | 6 | 2 | 42 | 1 | 1,841 | 57 | 2 | 0 | false | false | false | false | false | false | zero |
36,735,344 | Intent Action_View for image opens gallery with no delete option | <p>In my app the user can capture images and I populate a grid layout to display thumbnails. On clicking the thumbnail I would like the user to see the full image and have an option of deleting it if they want to. This is the code for the onItemClickListener for the grid layout:</p>
<pre><code>layout_photos.setOnItemC... | In my app the user can capture images and I populate a grid layout to display thumbnails. On clicking the thumbnail I would like the user to see the full image and have an option of deleting it if they want to. This is the code for the onItemClickListener for the grid layout: [CODE] Now this opens the gallery and I can... | android|image|android-gallery | 2 | 2016-04-20T06:19:49.983Z | 2,016 | 4 | 6 | 2 | 431 | 0 | 464 | 64 | 3 | 1 | true | true | false | false | false | false | low |
36,735,354 | how to hide view appear on top of previous selected row on click of another row inside GridView in android | <p>I have a <code>Fragment</code> with custom <code>Adapter</code> extending <code>BaseAdapter</code> that manages a <code>GridView</code>.</p>
<p>I want to show images on each row of the <code>GridView</code> and <code>onClick</code> of each cell, I want to open a translucent view on top of that particular image whic... | I have a Fragment with custom Adapter extending BaseAdapter that manages a GridView . I want to show images on each row of the GridView and onClick of each cell, I want to open a translucent view on top of that particular image which will show image details. Problem is that when I click on the image, a translucent view... | android|android-layout|android-fragments|gridview | 3 | 2016-04-20T06:20:27.937Z | 2,016 | 4 | 6 | 2 | 924 | 2 | 864 | 106 | 4 | 3 | true | false | false | false | false | false | low |
36,735,468 | how to display multiply layout in RecyclerView | <p>I am getting data in jSON. Data contains images url. I am trying to display images in below layouts.</p>
<pre><code>1Image
2Image
3Image 4Image 5Image 6Image 7image
8Image 9Image 10Image 11Image 12image
13image 14image 15image 16image 17image
.... .... ..... ...... .....
</code></pre>
<p>So First t... | I am getting data in jSON. Data contains images url. I am trying to display images in below layouts. [CODE] So First two image will be in vertically. Other 5 images in horizontal scroll view and so on. So i am using RecyclerView with vertical orientation. but i am not able to creating the logic so images will be displa... | android | 0 | 2016-04-20T06:27:35.570Z | 2,016 | 4 | 6 | 2 | 530 | 1 | 606 | 46 | 1 | 4 | true | false | false | false | false | false | zero |
36,735,470 | error: undefined reference while giving NDK build for application using openssl library | <p>I have followed <a href="http://wiki.openssl.org/index.php/FIPS_Library_and_Android" rel="nofollow">FIPS Library and Android</a> from the OpenSSL wiki to build the FIPS Object Module. After creating <code>libcrypto.a</code> for both ARM and x86 architecture, I included <code>libcrypto.a</code> in my project's jni/in... | I have followed FIPS Library and Android from the OpenSSL wiki to build the FIPS Object Module. After creating libcrypto.a for both ARM and x86 architecture, I included libcrypto.a in my project's jni/include folder, and then performed an NDK build. I am getting the below error everytime. Not able to resolve the issue.... | android-ndk|openssl|fips|ndk-build | 3 | 2016-04-20T06:27:41.797Z | 2,016 | 4 | 6 | 2 | 1,680 | 0 | 437 | 87 | 4 | 2 | true | true | false | false | false | false | low |
36,735,554 | wrong time on android device using cordova but correct time in browser | <p>So my issue is when using javascript new Date() on my android device (cordova app) it returns the wrong time:</p>
<p>using cordova globalisation - correct time</p>
<blockquote>
<p>Wed Apr 20 2016 11:38:00 GMT-0200 (_TZif) </p>
</blockquote>
<p>javascript new Date() - wrong time</p>
<blockquote>
<p>Wed Apr 20... | So my issue is when using javascript new Date() on my android device (cordova app) it returns the wrong time: using cordova globalisation - correct time Wed Apr 20 2016 11:38:00 GMT-0200 (_TZif) javascript new Date() - wrong time Wed Apr 20 2016 04:08:44 GMT-0200 (_TZif) new Date().toUTCString() - wrong time -1 hour We... | javascript|android|datetime | 1 | 2016-04-20T06:31:09.473Z | 2,016 | 4 | 6 | 2 | 1,368 | 1 | 1,191 | 70 | 3 | 0 | false | false | false | false | false | false | low |
36,735,628 | I am trying to create & retrieve data from my database but "Null pointer exception" occurred | <p>I am new to android development, i am learning working with SQLite databases, when i create a database and retrieve data from it this error show up.
Kindly do let me know if any other code u needed to see.</p>
<p>Here is my mainActivity:</p>
<pre><code>public static final String LOGTAG = "EMPLOYEES";
public stati... | I am new to android development, i am learning working with SQLite databases, when i create a database and retrieve data from it this error show up. Kindly do let me know if any other code u needed to see. Here is my mainActivity: [CODE] Here is the error log [CODE] Here is my Data Source class [CODE] | android|sqlite|android-sqlite|sqliteopenhelper | -3 | 2016-04-20T06:35:31.500Z | 2,016 | 4 | 6 | 2 | 74 | 1 | 302 | 92 | 4 | 3 | 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.