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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60,216,374 | com.android.support libraries must use the exact same version specification & [] having trouble with Google Play services | <p>I am trying to use autofill from google placesApi and distance/maps from the google maps Api.
I run into a compatible issue when I add both to my dependencies(version 26.1.0 for places). However, when I tried to fix it by implement cardview for 27.1.1, the map does not show anymore, and says "My App is having troub... | I am trying to use autofill from google placesApi and distance/maps from the google maps Api. I run into a compatible issue when I add both to my dependencies(version 26.1.0 for places). However, when I tried to fix it by implement cardview for 27.1.1, the map does not show anymore, and says "My App is having trouble w... | java|android | 0 | 2020-02-13T20:59:58.047Z | 2,020 | 2 | 20 | 3 | 17 | 0 | 381 | 121 | 2 | 1 | true | true | false | false | false | false | zero |
60,216,480 | Is it possible to "disable" the period key in a HTML number field using an Android soft keyboard on an Android Web View html5 app? | <p>When I check the keyCodes on the softKeyboard for <kbd>.</kbd><kbd>-</kbd><kbd> </kbd>, the <code>e.key</code> in JavaScript is "Unidentified" and the <code>e.keyCode</code> is 229 for all of those characters.</p>
<p>The device I am using is a TC52k scanner and the scan trigger has the same key and keyCode...... | When I check the keyCodes on the softKeyboard for . - , the e.key in JavaScript is "Unidentified" and the e.keyCode is 229 for all of those characters. The device I am using is a TC52k scanner and the scan trigger has the same key and keyCode... so it can't be completely disabled. I don't know how many things I tried t... | android|html|android-softkeyboard|jquery-events|keycode | 1 | 2020-02-13T21:06:49.740Z | 2,020 | 2 | 21 | 3 | 308 | 1 | 1,066 | 130 | 5 | 2 | true | false | false | false | false | false | low |
60,216,504 | ViewCompat.enableAccessibleClickableSpanSupport(textview) is not working | <p>I am giving <code>ViewCompat.enableAccessibleClickableSpanSupport(textview)</code> a try but spannable is crashing the app still. The way I have this is </p>
<pre><code>// ViewCompat.enableAccessibleClickableSpanSupport(textview)
val ss = SpannableString(someString)
ss.setSpan( bla bla bla) // i have a clickablesp... | I am giving ViewCompat.enableAccessibleClickableSpanSupport(textview) a try but spannable is crashing the app still. The way I have this is [CODE] I tried having the ViewCompact code at the top and at the bottom, one at the top or one at the bottom but still my app is still crashing on Accessibility or Talkback. I am r... | android|kotlin|crash|accessibility|talkback | 0 | 2020-02-13T21:08:36.540Z | 2,020 | 2 | 21 | 3 | 743 | 1 | 573 | 72 | 5 | 1 | true | false | false | false | false | false | zero |
60,216,558 | Detect Always-On Display when trying to determine if the screen is off | <p>I'm trying to figure out how to detect if the Display is Off on Android and I have a feeling that the Always-On Display on my S10 is affecting my results. </p>
<p>Currently, I'm using the logic found in <a href="https://stackoverflow.com/a/17348755/1720829">this stackoverflow answer</a>.</p>
<p>There is also <a hr... | I'm trying to figure out how to detect if the Display is Off on Android and I have a feeling that the Always-On Display on my S10 is affecting my results. Currently, I'm using the logic found in this stackoverflow answer . There is also a comment on that thread that says you should be able to use Display.FLAG_PRIVATE t... | android|always-on-display | 1 | 2020-02-13T21:13:38.070Z | 2,020 | 2 | 21 | 3 | 631 | 1 | 745 | 70 | 2 | 1 | true | false | false | false | false | false | low |
60,216,621 | When to override dark mode in Activity lifecycle? | <p>I'm trying to adopt best practice for managing light and dark mode in my app, based on guidance <a href="https://developer.android.com/guide/topics/ui/look-and-feel/darktheme/" rel="nofollow noreferrer">here</a> and <a href="https://material.io/develop/android/theming/dark/" rel="nofollow noreferrer">here</a>.</p>
... | I'm trying to adopt best practice for managing light and dark mode in my app, based on guidance here and here . Based on this, I am using a theme inherited from DayNight : In Manifest: [CODE] In themes.xml: [CODE] This has the desired effect of opening up an Activity in a light or dark theme, based on the device's syst... | android|android-darkmode | 2 | 2020-02-13T21:18:32.510Z | 2,020 | 2 | 21 | 3 | 1,270 | 1 | 850 | 49 | 2 | 3 | true | false | false | false | false | false | low |
60,216,669 | Is LiveData observer needed in Kotlin and SQLite? | <p>I came across such a code and have a question regarding it.
In the <em>ViewModel</em>, the variable <em>nights</em> is declared and formatted as follows:</p>
<pre><code> private val nights = database.getAllNights()
val nightsString = Transformations.map(nights) { nights ->
formatNights(nights, application.r... | I came across such a code and have a question regarding it. In the ViewModel , the variable nights is declared and formatted as follows: [CODE] getAllNights () is a function in Dao that looks like this: [CODE] getAllNights () is not called anywhere else in the code, but what surprises me the LiveData observer is nowher... | sqlite|android-studio|kotlin|android-livedata|observers | 0 | 2020-02-13T21:22:49.133Z | 2,020 | 2 | 21 | 3 | 247 | 1 | 585 | 49 | 5 | 3 | true | false | false | false | false | false | zero |
60,216,753 | My binding to a Transformations.map doesn't seem to be working | <p>Trying to bind a button's enabled property to a Transformations.map. I can't figure out why it is not working. I believe I am doing the exact the same thing as in this Google Code Lab: <a href="https://codelabs.developers.google.com/codelabs/kotlin-android-training-quality-and-states/index.html?index=..%2F..android-... | Trying to bind a button's enabled property to a Transformations.map. I can't figure out why it is not working. I believe I am doing the exact the same thing as in this Google Code Lab: https://codelabs.developers.google.com/codelabs/kotlin-android-training-quality-and-states/index.html?index=..%2F..android-kotlin-funda... | android|kotlin|android-databinding|android-livedata | 0 | 2020-02-13T21:29:50.633Z | 2,020 | 2 | 21 | 3 | 249 | 1 | 396 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
60,216,769 | Error: "pkg_resources.DistributionNotFound: The 'zipp>=0.5' distribution was not found and is required by importlib-metadata" | <p>I encountered this issue today. Trying to make a buildozer build of my kivy-python script. However, <a href="https://i.stack.imgur.com/wI0CP.png" rel="nofollow noreferrer">this</a> happens.
I've got the latest version of zipp <0.6.0>, and I am running on Elementary OS Hera.</p>
<p>Any ideas?</p> | I encountered this issue today. Trying to make a buildozer build of my kivy-python script. However, this happens. I've got the latest version of zipp <0.6.0>, and I am running on Elementary OS Hera. Any ideas? | python|android|kivy|buildozer | 0 | 2020-02-13T21:31:10.847Z | 2,020 | 2 | 21 | 3 | 1,001 | 0 | 209 | 125 | 4 | 0 | false | true | false | false | false | false | zero |
60,216,830 | Create Temp Table and execute queries on it with Android Room | <p>I'm using android room for my database: I'm looking for a way to execute a sequence of actions as in the subsequent code:</p>
<pre><code>@Query( "CREATE TEMP TABLE IF NOT EXISTS t1 (idx INTEGER, rnd_pos INTEGER)")
fun shuffle_subquery1()
@Query("DELETE FROM t1;")
fun shuffle_subquery2()
@Query("INSERT INTO t1 SEL... | I'm using android room for my database: I'm looking for a way to execute a sequence of actions as in the subsequent code: [CODE] This gives error error: UNKNOWN query type is not supported yet. You can use:DELETE, INSERT, SELECT, UPDATE public abstract void shuffle_subquery1() and There is a problem with the query: [SQ... | android|sqlite|android-room | 4 | 2020-02-13T21:36:00.237Z | 2,020 | 2 | 21 | 3 | 573 | 0 | 645 | 61 | 3 | 2 | true | true | false | false | false | false | low |
60,216,889 | react-native-modalbox crashes react native app without error log | <p>When a button is clicked to open the modal, it works for the first time. Upon the second attempt, the app crashes without any error log.</p>
<p>React Native version: 0.61</p> | When a button is clicked to open the modal, it works for the first time. Upon the second attempt, the app crashes without any error log. React Native version: 0.61 | android|react-native | 0 | 2020-02-13T21:41:18.833Z | 2,020 | 2 | 21 | 3 | 481 | 1 | 163 | 64 | 2 | 0 | false | false | false | false | false | false | zero |
60,216,897 | Calling a Java method from a C++ callback created in a JNI method fails | <p>I'm attempting to create a C++ callback that gets called if a certain event occurs. That callback is supposed to call a Java method if that is the case.</p>
<p>In order to be able to call that Java method I need access to the JNIEnv object which is why I set everything up in a JNI function which gets called from Ja... | I'm attempting to create a C++ callback that gets called if a certain event occurs. That callback is supposed to call a Java method if that is the case. In order to be able to call that Java method I need access to the JNIEnv object which is why I set everything up in a JNI function which gets called from Java. Setting... | java|c++|android-ndk|java-native-interface|jnienv | 2 | 2020-02-13T21:41:53.817Z | 2,020 | 2 | 21 | 3 | 521 | 0 | 1,461 | 71 | 5 | 4 | true | true | false | false | false | false | low |
60,216,914 | Customize TextInputLayout with hint inside TextInputEditText | <p>I'm trying to customize my TextInputLayout to make it like this:
<a href="https://i.stack.imgur.com/ov8ir.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ov8ir.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.com/KuZs8.png" rel="nofollow noreferrer"><img src="htt... | I'm trying to customize my TextInputLayout to make it like this: I already tried lots of things using xml attributes but with style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" but no success, the hint is always at border level with that space(like the default material). It's possible to achieve this ... | android-edittext|android-custom-view|android-textinputlayout|material-components | 2 | 2020-02-13T21:43:19.103Z | 2,020 | 2 | 21 | 3 | 168 | 0 | 453 | 60 | 4 | 0 | false | true | false | false | false | false | low |
60,217,012 | Two concurrent AsyncTasks in Android - How to handle race conditions? | <p>I send an HTTP Post every time a button is pressed and every time it is released. It is likely that I will not have a response from the 'pressed' POST before the button is released, therefore I try to run these tasks concurrently. However, occasionally, the POST request for releasing the button is sent to the server... | I send an HTTP Post every time a button is pressed and every time it is released. It is likely that I will not have a response from the 'pressed' POST before the button is released, therefore I try to run these tasks concurrently. However, occasionally, the POST request for releasing the button is sent to the server be... | java|android|multithreading|android-asynctask|thread-safety | 2 | 2020-02-13T21:51:33.953Z | 2,020 | 2 | 21 | 3 | 258 | 2 | 394 | 69 | 5 | 1 | true | false | false | false | false | false | low |
60,217,241 | No resource identifier found for attribute 'layout_width' in package 'android' / new pacakge | <p>I've been trying to work out what's wrong with code but, I'am clueless now, pretty much checked everything, i get this error when am trying to build the login page for my app. Sorry for any inconvenience, i'am pretty noob at this.</p>
<blockquote>
<p>No resource identifier found for attribute 'layout_width' in pa... | I've been trying to work out what's wrong with code but, I'am clueless now, pretty much checked everything, i get this error when am trying to build the login page for my app. Sorry for any inconvenience, i'am pretty noob at this. No resource identifier found for attribute 'layout_width' in package 'android'. (line 2) ... | java|android|xamarin|android-linearlayout|android-relativelayout | 0 | 2020-02-13T22:10:38.260Z | 2,020 | 2 | 22 | 3 | 61 | 1 | 398 | 92 | 5 | 1 | true | false | false | false | false | false | zero |
60,217,300 | Android NDK clang compiler error showing 'No such file or directory' on Windows | <p>I am trying to learn how to use c/c++ native code with android using ndk r21. I linked my C++ cmake file into my android project and the cpp shared libraries files where generated. However, I am getting a compiler error as follows:-</p>
<p>C/C++ Configuration Problem
Toka | debug | x86
... | I am trying to learn how to use c/c++ native code with android using ndk r21. I linked my C++ cmake file into my android project and the cpp shared libraries files where generated. However, I am getting a compiler error as follows:- C/C++ Configuration Problem Toka | debug | x86 Compiler exited with error code 1: C:\Us... | android|c++|android-studio|cmake|android-ndk | 1 | 2020-02-13T22:15:53.187Z | 2,020 | 2 | 22 | 3 | 3,172 | 1 | 2,149 | 79 | 5 | 0 | false | false | true | false | false | false | low |
60,217,348 | I'm having errors while trying to run "npx react-native run-android" | <p>I get an error when I run the following command:</p>
<pre><code>C:\Users\user\Desktop\react-native-cli-test\testeee>npx react-native run-android --no-jetifier
info JS server already running.
info Installing the app...
:ReactNative:Running 'C:\Users\user\Desktop\react-native-cli-test\testeee\node_modules\@react-n... | I get an error when I run the following command: [CODE] | javascript|android|react-native | 0 | 2020-02-13T22:20:56.710Z | 2,020 | 2 | 22 | 3 | 226 | 0 | 55 | 68 | 3 | 1 | true | true | false | false | false | false | zero |
60,217,458 | SSLPeerUnverifiedException when using a self-signed certificate in Android | <p>I'm trying to do SSL Pinning in my app and have followed the instructions on <a href="https://developer.android.com/training/articles/security-ssl" rel="nofollow noreferrer">https://developer.android.com/training/articles/security-ssl</a> as well as generating my own certificate with <a href="https://www.digitalocea... | I'm trying to do SSL Pinning in my app and have followed the instructions on https://developer.android.com/training/articles/security-ssl as well as generating my own certificate with https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-16-04 on my server at h... | android|nginx|https|ssl-certificate|self-signed | 1 | 2020-02-13T22:30:19.827Z | 2,020 | 2 | 22 | 3 | 708 | 1 | 1,178 | 74 | 5 | 4 | true | false | false | false | false | false | low |
60,217,615 | error: incompatible types: <null> cannot be converted to int if (!_cursor.isNull(null)) using android room | <p>I'm using room for my android database. here i have a many to many relationship between Customer and ServiceProvider class i used <a href="https://developer.android.com/training/data-storage/room/relationships#one-to-many" rel="nofollow noreferrer">this tutorial</a> to do it but after compiling i received this error... | I'm using room for my android database. here i have a many to many relationship between Customer and ServiceProvider class i used this tutorial to do it but after compiling i received this error: /home/omid/IntelliJIDEAProjects/Accounting/app/build/generated/ap_generated_sources/debug/out/com/omidmsl/accounting/db/Cust... | java|android|sql|database|android-room | 1 | 2020-02-13T22:46:35.973Z | 2,020 | 2 | 22 | 3 | 3,624 | 2 | 702 | 106 | 5 | 6 | true | false | true | false | false | false | low |
60,217,616 | Huawei HIAI Engine "General text recognition" is not detecting any text from an image | <p>When using "General text recognition" from HIAI Engine I can't make it detect and return any text. For instance for the <a href="https://i.stack.imgur.com/NZLgG.jpg" rel="nofollow noreferrer">sample image</a> it returns empty text but with code 200. I used an example program from the HIAI documentation, so I don't k... | When using "General text recognition" from HIAI Engine I can't make it detect and return any text. For instance for the sample image it returns empty text but with code 200. I used an example program from the HIAI documentation, so I don't know where the problem is. So i created another app from scratch and results are... | java|android|artificial-intelligence|huawei-mobile-services|huawei-hiai | 1 | 2020-02-13T22:46:42.710Z | 2,020 | 2 | 22 | 3 | 266 | 3 | 330 | 85 | 5 | 0 | false | false | false | false | false | false | low |
60,217,632 | What are libapp.so and libflutter.so? | <p>My Flutter application bundle contains native libraries, libapp.so and libflutter.so, each around 8-9MB. How can I find what is contributing to size of those files or which dependencies they're coming from? </p> | My Flutter application bundle contains native libraries, libapp.so and libflutter.so, each around 8-9MB. How can I find what is contributing to size of those files or which dependencies they're coming from? | android|flutter|apk | 3 | 2020-02-13T22:48:03.603Z | 2,020 | 2 | 22 | 3 | 5,117 | 2 | 206 | 37 | 3 | 0 | false | false | true | false | false | false | low |
60,217,689 | Jumping scrolling when switching fragments | <p>Inside a ScrollView I am dynamically switching between two fragments with different heights.
Unfortunately that leads to jumping. One can see it in the following animation:</p>
<ol>
<li>I am scrolling down until I reach the button "show yellow". </li>
<li>Pressing "show yellow" replaces a huge blue fragment with a ... | Inside a ScrollView I am dynamically switching between two fragments with different heights. Unfortunately that leads to jumping. One can see it in the following animation: I am scrolling down until I reach the button "show yellow". Pressing "show yellow" replaces a huge blue fragment with a tiny yellow fragment. When ... | android|android-layout|android-fragments|android-scrollview|fragmentmanager | 8 | 2020-02-13T22:53:56.933Z | 2,020 | 2 | 22 | 3 | 2,552 | 4 | 2,348 | 42 | 5 | 4 | true | false | false | false | false | false | medium |
60,217,819 | Why can't I find the image added to my Android Solution sample? | <p>I'm still fairly new to Visual Studio/Xamarin. I'm trying to get an image into my Android sample.</p>
<p>I'm using Visual Studio for Mac community 8.4.5 (build 19) on macOS Mojava 10.14.6 and the following Packages:</p>
<ul>
<li>BruTile 2.1.2</li>
<li>Mapsui 1.4.8</li>
<li>OsmSharp 6.2.0</li>
<li>Xamarin.Android.S... | I'm still fairly new to Visual Studio/Xamarin. I'm trying to get an image into my Android sample. I'm using Visual Studio for Mac community 8.4.5 (build 19) on macOS Mojava 10.14.6 and the following Packages: BruTile 2.1.2 Mapsui 1.4.8 OsmSharp 6.2.0 Xamarin.Android.Support.Core.Utils 28.0.0.3 Xamarin.Android.Support.C... | c#|android|xamarin|mapsui | 0 | 2020-02-13T23:08:29.083Z | 2,020 | 2 | 23 | 3 | 111 | 1 | 952 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
60,217,893 | android permission is added on google store but it's not in APK | <p>I added <code>tools:node="remove" android:name="android.permission.READ_CONTACTS"</code>
to make sure contacts' permission is removed (even though I don't request it at all in any manifest).<br>
When I upload the apk release to the google play console and check the APK information, I can read that my app asks for ... | I added tools:node="remove" android:name="android.permission.READ_CONTACTS" to make sure contacts' permission is removed (even though I don't request it at all in any manifest). When I upload the apk release to the google play console and check the APK information, I can read that my app asks for 25 permissions - none ... | android|permissions|google-play|google-play-console | 0 | 2020-02-13T23:17:11.357Z | 2,020 | 2 | 23 | 3 | 623 | 1 | 654 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
60,217,916 | start an Activity from an AlertDialog | <p>I want to start an activity from an AlertDialog.Builder But I can't s start any activity from OnclickListener of the dialog Interface. from both of the <code>setPositiveButton</code> and <code>setNegativeButton</code>(tried 2 ways to show as an example), both of them don't work and doesn't start either <code>menuact... | I want to start an activity from an AlertDialog.Builder But I can't s start any activity from OnclickListener of the dialog Interface. from both of the setPositiveButton and setNegativeButton (tried 2 ways to show as an example), both of them don't work and doesn't start either menuactivity or exo5P1 . [CODE] I also Tr... | android|android-intent|dialog | 0 | 2020-02-13T23:20:19.710Z | 2,020 | 2 | 23 | 3 | 105 | 1 | 389 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
60,217,981 | AndroidX: 'com.google.android.material:material*' library is calling androidx.cardview:cardview:1.0.0 but this does not download | <p>I'll try to explain at detail what's happening. </p>
<p><strong>*Gradle version: 5.1.1.<br>
Android Gradle Plugin Version: 3.4.0</strong></p>
<p>This is my Project build.gradle:</p>
<pre><code>buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.andr... | I'll try to explain at detail what's happening. *Gradle version: 5.1.1. Android Gradle Plugin Version: 3.4.0 This is my Project build.gradle: [CODE] This is my App build.gradle: [CODE] What's happening? The library 'com.google.android.material:material:1.2.0-alpha04' tries to download the androidx.cardview:cardview:1.0... | android|androidx | 2 | 2020-02-13T23:25:53.893Z | 2,020 | 2 | 23 | 3 | 3,029 | 1 | 1,489 | 128 | 2 | 2 | true | false | true | false | false | false | low |
60,218,051 | Convert layout in pdf java | <p>I have the following form, created using <code>LinearLayout</code></p>
<p><strong>Code:</strong></p>
<pre><code>private LinearLayout buildBox(Integer w){
LinearLayout.LayoutParams boxParams =
new LinearLayout.LayoutParams(
getDpToInt(w),
LinearLayout.LayoutPa... | I have the following form, created using LinearLayout Code: [CODE] I need to convert this form after it is rendered to pdf or bitmap . On that same screen, you will have a button to print it. I tried some solutions found on the site, but I was not successful. Can someone help me? | java|android | 0 | 2020-02-13T23:36:36.220Z | 2,020 | 2 | 23 | 3 | 89 | 1 | 280 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
60,218,182 | How to different the two appState in react-native: app go to background, or app ask permission | <p>I am developing a bank react-native app, try to implement a feature that every time the app goes from background/inactive to active status, users need to verify TOUCHID.</p>
<p>What I did is to check the AppState:</p>
<pre><code> if (OldappState.match(/inactive|background/) &&
nextAppState === 'ac... | I am developing a bank react-native app, try to implement a feature that every time the app goes from background/inactive to active status, users need to verify TOUCHID. What I did is to check the AppState: [CODE] It works fine, but I find a funny problem: when app ask permission, the AppState will become inactive , wh... | android|ios|react-native|mobile|frontend | 1 | 2020-02-13T23:56:07.547Z | 2,020 | 2 | 23 | 3 | 199 | 0 | 551 | 94 | 5 | 1 | true | true | false | false | false | false | low |
60,218,265 | Android BottomSheet: How can I know if user is dragging up or down the bottomsheet? | <p>I have an app with bottomsheet opened upto 90% of the screen height. How can I know if the user is dragging up/down the bottomsheet. I read we can use onSlide() but the offset values are NaN and sometimes outright weird, so it seems kinda unreliable. Any help is appreciated. Thanks in advance.</p> | I have an app with bottomsheet opened upto 90% of the screen height. How can I know if the user is dragging up/down the bottomsheet. I read we can use onSlide() but the offset values are NaN and sometimes outright weird, so it seems kinda unreliable. Any help is appreciated. Thanks in advance. | android|bottom-sheet|material-components-android|material-components | 8 | 2020-02-14T00:06:07.527Z | 2,020 | 2 | 0 | 4 | 3,035 | 4 | 294 | 83 | 4 | 0 | false | false | true | false | false | false | medium |
60,218,371 | Library - Plugin with id "com.android.library" not found | <p>I just pulled an old project that its a library. I had to edit this to generate a new aar and include it again in my main project.</p>
<p>When i pulled the project and tried to open it i got that error of the tittle.
"ERROR: Plugin with id 'com.android.library' not found."</p>
<p>I have only one gradle (build.grad... | I just pulled an old project that its a library. I had to edit this to generate a new aar and include it again in my main project. When i pulled the project and tried to open it i got that error of the tittle. "ERROR: Plugin with id 'com.android.library' not found." I have only one gradle (build.gradle) and it is this ... | android|gradle | 1 | 2020-02-14T00:22:23.077Z | 2,020 | 2 | 0 | 4 | 7,143 | 2 | 342 | 56 | 2 | 2 | true | false | true | false | false | false | low |
28,511,007 | Subsequent(ie. AFTER FIrst) notification pendingintent not launching activity when app is initailly closed | <p>Scenario 1 - App is open, receive pendingintent in notification and when notification is clicked, </p>
<blockquote>
<p>opens activity with new content, <strong>every pendingintent notification
received after the first works in a similar fashion</strong></p>
</blockquote>
<p>.</p>
<p>Scenario 2 - App is closed... | Scenario 1 - App is open, receive pendingintent in notification and when notification is clicked, opens activity with new content, every pendingintent notification received after the first works in a similar fashion . Scenario 2 - App is closed (not running), receive pendingintent in notification and when notification ... | android|notifications|broadcastreceiver|google-cloud-messaging|android-pendingintent | 2 | 2015-02-14T00:27:57.913Z | 2,015 | 2 | 0 | 5 | 356 | 2 | 833 | 106 | 5 | 1 | true | false | false | false | false | false | low |
28,511,012 | UtteranceProgressListener Out of Sync | <p>Summary<br /></p>
<ul>
<li>List of utterances in an array</li>
<li>Loop through array and call my method "sayThis" for each utterance</li>
<li>UtteranceProgressListener is being called, and TTS works</li>
<li>Calling of my method "sayThis" appears to be called at times prior to UtteranceProgressListener completing ... | Summary List of utterances in an array Loop through array and call my method "sayThis" for each utterance UtteranceProgressListener is being called, and TTS works Calling of my method "sayThis" appears to be called at times prior to UtteranceProgressListener completing current utterance I believe the flow should be the... | android|text-to-speech | 0 | 2015-02-14T00:28:57.123Z | 2,015 | 2 | 0 | 5 | 132 | 1 | 1,246 | 37 | 2 | 2 | true | false | false | false | false | false | zero |
28,511,044 | BufferedReader inputstream blocks only until it receives the first input | <p>I am using sockets to implement instant messaging.</p>
<p>I have the following Java code on the client side:</p>
<pre><code>while ( true )
checkInputStream();
</code></pre>
<p>Here's the function:</p>
<pre><code>private void checkInputStream() throws IOException
{
//prints once, but after the first in... | I am using sockets to implement instant messaging. I have the following Java code on the client side: [CODE] Here's the function: [CODE] Problem The behavior I'm getting is that readline() blocks until it receives the first input (which is fantastic). But as soon as I send it its first message terminating in a newline ... | java|android|sockets | 0 | 2015-02-14T00:31:45.613Z | 2,015 | 2 | 0 | 5 | 109 | 2 | 661 | 72 | 3 | 2 | true | false | false | false | false | false | zero |
28,511,090 | Android Webview - How to use evaluateJavascript when javascript function accepts arguments? | <p>I would like to call a javascript function in my webview using <code>evaluatejavascript</code> method but I don't know how to use it when the function accepts arguments.</p>
<p>My webview:</p>
<pre><code>webView1.evaluateJavascript("download(11852,'c595b0ec8c')", new ValueCallback<String>() {
@Override
... | I would like to call a javascript function in my webview using evaluatejavascript method but I don't know how to use it when the function accepts arguments. My webview: [CODE] This does not seem to work. I have read in android api docs that the first argument in evaluateJavascript is the javascript function code(in Str... | android|webview | 1 | 2015-02-14T00:37:45.220Z | 2,015 | 2 | 0 | 5 | 2,110 | 1 | 525 | 91 | 2 | 2 | true | false | false | false | false | false | low |
28,511,125 | Android content uri id as string | <p>In my Android app i use SQLite with content provider. For some (backend) reasons, my tables have _id primary key as VARCHAR. </p>
<p>The problem is:</p>
<p>I need to use content uri with appended id. In all examples what i saw content uri with id looks as</p>
<pre><code>content://<autority>/<model_or_tab... | In my Android app i use SQLite with content provider. For some (backend) reasons, my tables have _id primary key as VARCHAR. The problem is: I need to use content uri with appended id. In all examples what i saw content uri with id looks as [CODE] and adds to UriMatcher as [CODE] and of course thats "/#" matching id wo... | android|mongodb|sqlite|uri|android-contentprovider | 2 | 2015-02-14T00:42:30.673Z | 2,015 | 2 | 0 | 5 | 922 | 1 | 807 | 32 | 5 | 4 | true | false | false | false | false | false | low |
28,511,126 | Implementing GPS location into markers on a single image | <p>I'm trying to associate parts of a picture (markers) with GPS in Android.</p>
<p>These tutorials only showed how to get current location. <a href="http://developer.android.com/reference/android/webkit/GeolocationPermissions.html" rel="nofollow">http://developer.android.com/reference/android/webkit/GeolocationPermis... | I'm trying to associate parts of a picture (markers) with GPS in Android. These tutorials only showed how to get current location. http://developer.android.com/reference/android/webkit/GeolocationPermissions.html http://vinnysoft.blogspot.com/2009/10/location-manager-examples.html Here's the idea : I'm making a map app... | android|gps | 0 | 2015-02-14T00:42:51.797Z | 2,015 | 2 | 0 | 5 | 189 | 1 | 701 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
28,511,172 | Gson throws "BEGIN_OBJECT expected but BEGIN_ARRAY found" - how to use TypeToken | <p>Trying out Gson for the first time instead of looping through the JSON objects for speed. </p>
<p>This is my input data set for parsing </p>
<pre><code>{
"data": [
{
"access_token": "XXXXX",
"category": "Community",
"name": "Startup notes by Vrashabh",
"id": "XXXXX",
"perms"... | Trying out Gson for the first time instead of looping through the JSON objects for speed. This is my input data set for parsing [CODE] And this is my gson mapping class [CODE] Code for parsing the data [CODE] I Know I am supposed to not expect magic in terms of data conversion, I found the other questions on SO that as... | android|json|gson | 1 | 2015-02-14T00:50:00.393Z | 2,015 | 2 | 0 | 5 | 104 | 1 | 602 | 80 | 3 | 4 | true | false | false | false | false | false | low |
28,511,211 | Android: Bitmap is not drawn in a View that extends ScrollView and has other views inside it | <p>I am trying to draw a bitmap in a ScrollView with multiple components in it. I made a custom view that extends a ScrollView and this custom view is being used as a parent of multiple views (TextViews mostly, all in all, it's just a big list that has a scrolling feature). In this custom ScrollView I'm calling onDraw ... | I am trying to draw a bitmap in a ScrollView with multiple components in it. I made a custom view that extends a ScrollView and this custom view is being used as a parent of multiple views (TextViews mostly, all in all, it's just a big list that has a scrolling feature). In this custom ScrollView I'm calling onDraw and... | android|layout|bitmap|drawing|scrollview | 0 | 2015-02-14T00:55:03.957Z | 2,015 | 2 | 0 | 5 | 252 | 0 | 1,319 | 92 | 5 | 4 | true | true | false | false | false | false | zero |
28,511,308 | What's the best way to structure code once deployed to switch it on/off via a trigger? | <p>I would like to be able to enable and disable various functions remotely.
By just changing a variable via tcp, websockets or traditional http.
Getting the variable to the app isn't a problem.</p>
<p>I would just like some direction on the best way to structure the code to flip functions on or off remotely.</p>
<p>... | I would like to be able to enable and disable various functions remotely. By just changing a variable via tcp, websockets or traditional http. Getting the variable to the app isn't a problem. I would just like some direction on the best way to structure the code to flip functions on or off remotely. I would like to fli... | java|android|function | 2 | 2015-02-14T01:10:13.280Z | 2,015 | 2 | 1 | 5 | 33 | 1 | 437 | 86 | 3 | 1 | true | false | false | false | false | false | low |
28,511,326 | How to express a series of integers in an if else statement? | <p>Currently I have this if else statement in my code</p>
<pre><code>if (chosenView == findViewById(R.id.playView1) && (4 <= pointCounter && pointCounter <= 9) || (13 <= pointCounter && pointCounter <= 18) || pointCounter >= 22) { }
</code></pre>
<p>I only want what is contained... | Currently I have this if else statement in my code [CODE] I only want what is contained within the statement to be ran if the chosenView is playView1 AND the pointCounter is equal to 4,5,6,7,8,9,13,14,15,16,17,18, or anything above 22 but I feel like this is sloppy code and not the correct way to do this. Especially si... | java|android|if-statement|int | 0 | 2015-02-14T01:12:43.820Z | 2,015 | 2 | 1 | 5 | 81 | 2 | 434 | 60 | 4 | 1 | true | false | false | false | false | false | zero |
28,511,437 | How to make pressed button effect AndEngine? | <p>I want to make my button when pressed it show pressed effect. I already try this but somehow it fail.</p>
<p>Here's my code:</p>
<pre><code>Sprite btnMultiPLayer = new ButtonSprite(CAMERA_WIDTH/2-BtnMultiPlayerUpITextureRegion.getWidth()/2, 300, BtnMultiPlayerUpITextureRegion,BtnMultiPlayerDownITextureRegion, th... | I want to make my button when pressed it show pressed effect. I already try this but somehow it fail. Here's my code: [CODE] Since I have not enough reputation I can't post my broken menu directly. http://imageshack.com/a/img540/5185/Ejs3WV.jpg Could someone help me? I'm developing in Android using Eclipse and AndEngin... | android|button|andengine | 0 | 2015-02-14T01:27:19.520Z | 2,015 | 2 | 1 | 5 | 311 | 1 | 322 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
28,511,761 | android maven - Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton' | <p>I'm building an Android Project with Maven. My target is set to 21 both in AndroidManifiest and in project.properties.</p>
<p>When I do "mvn clean install" I get this error:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-... | I'm building an Android Project with Maven. My target is set to 21 both in AndroidManifiest and in project.properties. When I do "mvn clean install" I get this error: [CODE] When I run the command manually, I get these errors: [CODE] Total 117 errors of the same kind. For these resources values-v11 values-v14 values-v1... | android|maven | 3 | 2015-02-14T02:22:50.687Z | 2,015 | 2 | 2 | 5 | 602 | 0 | 510 | 134 | 2 | 3 | true | true | false | false | false | false | low |
28,511,778 | How to get Code Style like Eclipse on Android Studio | <p>I am a student and I am developing android apps since 6 months and I was doing it on Eclipse which was include in ADT bundle. but last week I downloaded Android Studio because some of my friends recommended it to me but for me it is like a powerful machine that I can't use.<br><br>
I am facing problems like-<br><bR>... | I am a student and I am developing android apps since 6 months and I was doing it on Eclipse which was include in ADT bundle. but last week I downloaded Android Studio because some of my friends recommended it to me but for me it is like a powerful machine that I can't use. I am facing problems like- ->When I use to cl... | android|eclipse|android-studio | 1 | 2015-02-14T02:28:06.163Z | 2,015 | 2 | 2 | 5 | 400 | 1 | 1,444 | 52 | 3 | 2 | true | false | false | false | false | false | low |
28,511,886 | GridView items are too small - Android | <p>I am following <a href="http://www.androidhive.info/2012/02/android-gridview-layout-tutorial/" rel="nofollow noreferrer">this tutorial</a>, it is very simple, and yet my GridView images are much much smaller than the one in the tutorial. Does anything stand out as wrong code? Below I've included my main activity, my... | I am following this tutorial , it is very simple, and yet my GridView images are much much smaller than the one in the tutorial. Does anything stand out as wrong code? Below I've included my main activity, my adapter class, and my xml with the GridView . It should be like this: Instead, mine is like this: SitesActivity... | android|gridview|baseadapter | 2 | 2015-02-14T02:48:44.670Z | 2,015 | 2 | 2 | 5 | 2,061 | 1 | 391 | 38 | 3 | 3 | true | false | false | false | false | false | low |
28,511,910 | Meteor+Cordova - "deviceready has not fired" on Android | <p>I am trying to use AngularJS with Meteor generated Android app, but on launching I see the following logs:</p>
<blockquote>
<p>I20150214-10:02:23.331(5.5) (android:meteor_cordova_loader.js:12) METEOR CORDOVA DEBUG (meteor_cordova_loader.js) Error reading version file Error: Failed to resolve entry: file:///data/d... | I am trying to use AngularJS with Meteor generated Android app, but on launching I see the following logs: I20150214-10:02:23.331(5.5) (android:meteor_cordova_loader.js:12) METEOR CORDOVA DEBUG (meteor_cordova_loader.js) Error reading version file Error: Failed to resolve entry: file:///data/data/com.id5njc0uqfdxry1j5u... | android|angularjs|cordova|meteor | 1 | 2015-02-14T02:53:45.303Z | 2,015 | 2 | 2 | 5 | 1,502 | 1 | 1,308 | 55 | 4 | 0 | false | false | false | false | false | false | low |
28,511,925 | Cordova (android) deploy issues | <p>I am a newbie on using cordova (or phonegap), I was doing some demo projects and found a strange problem on deploying the projects on my android phone (Nexus 5)</p>
<p>when I run: "cordova run android"
everything seems fine and the app is installed on my phone as well, however, I found that after successfully insta... | I am a newbie on using cordova (or phonegap), I was doing some demo projects and found a strange problem on deploying the projects on my android phone (Nexus 5) when I run: "cordova run android" everything seems fine and the app is installed on my phone as well, however, I found that after successfully installing the a... | android|cordova|deployment | 0 | 2015-02-14T02:56:18.387Z | 2,015 | 2 | 2 | 5 | 42 | 0 | 788 | 31 | 3 | 0 | false | true | false | false | false | false | zero |
28,511,938 | Android Speech recognition: negative numbers | <p>I'm having some problems with my app.
It's an app that asks user to enter 2 numbers by speech recognition, one by one.
If i say six and seven it will multiply 6 and 7 and tell me the result.
Even decimals will work (6.2, 7.5).
But when i say minus eight or negative eight, my app immediately crashes, and isn't even a... | I'm having some problems with my app. It's an app that asks user to enter 2 numbers by speech recognition, one by one. If i say six and seven it will multiply 6 and 7 and tell me the result. Even decimals will work (6.2, 7.5). But when i say minus eight or negative eight, my app immediately crashes, and isn't even aski... | java|android|android-studio | 0 | 2015-02-14T02:57:31.617Z | 2,015 | 2 | 2 | 5 | 883 | 1 | 721 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
28,512,016 | How can I determine the version of Google Play services? | <p>I am migrating from Eclipse to Android Studio. I have a project that I imported into Android Studio that uses Google Play Services, so I am following the documentation I found here: <a href="http://developer.android.com/google/play-services/setup.html" rel="noreferrer">http://developer.android.com/google/play-serv... | I am migrating from Eclipse to Android Studio. I have a project that I imported into Android Studio that uses Google Play Services, so I am following the documentation I found here: http://developer.android.com/google/play-services/setup.html This documentation says that I need to edit my build.gradle file. They give t... | android|android-studio|gradle|google-play-services | 15 | 2015-02-14T03:11:37.170Z | 2,015 | 2 | 3 | 5 | 17,265 | 2 | 892 | 56 | 4 | 4 | true | false | true | true | true | false | medium |
28,512,020 | preferences does not work? | <p>I am using multiple <code>EditTexts</code> inside an Activity, rather than using sqlite, I'm saving the data unencrypted using <code>SharedPreferences</code>. However, as a beginner I do not know where I went wrong. When referred almost similar questions in stackoverflow, answers all looked different and added more ... | I am using multiple EditTexts inside an Activity, rather than using sqlite, I'm saving the data unencrypted using SharedPreferences . However, as a beginner I do not know where I went wrong. When referred almost similar questions in stackoverflow, answers all looked different and added more chaos. Anyway here is my Jav... | java|android|xml | 0 | 2015-02-14T03:12:22.970Z | 2,015 | 2 | 3 | 5 | 68 | 4 | 508 | 26 | 3 | 2 | true | false | false | false | false | false | zero |
28,512,064 | Android BreakIterator hyphenated words? | <p>I using breakIterator to get each word from a sentence and there is problem when a sentence like "my mother-in-law is coming for a visit" where i am not able to get mother-in-law as a single word.</p>
<pre><code>BreakIterator iterator = BreakIterator.getWordInstance(Locale.ENGLISH);
for (int end = iterator.next(); ... | I using breakIterator to get each word from a sentence and there is problem when a sentence like "my mother-in-law is coming for a visit" where i am not able to get mother-in-law as a single word. [CODE] | android|regex|textview | 1 | 2015-02-14T03:21:31.967Z | 2,015 | 2 | 3 | 5 | 391 | 1 | 203 | 39 | 3 | 1 | true | false | false | false | false | false | low |
28,512,115 | Horizontal scroll with gridview | <p>Now i have to create a horizontal listview again, this time i want to find a better library for this, as far as i know android did not have a horizontal listview, and then i read this</p>
<p><a href="http://developer.android.com/design/building-blocks/grid-lists.html" rel="nofollow">http://developer.android.com/des... | Now i have to create a horizontal listview again, this time i want to find a better library for this, as far as i know android did not have a horizontal listview, and then i read this http://developer.android.com/design/building-blocks/grid-lists.html They mention if gridview can scroll horizontally, they even illustra... | android | 0 | 2015-02-14T03:30:40.393Z | 2,015 | 2 | 3 | 5 | 183 | 2 | 489 | 31 | 1 | 0 | false | false | false | false | false | false | zero |
28,512,138 | Continous Sensing of Accelerometer and Gyroscope Data on Android Wearable | <p>I am working on a app which will run on wearable (<strong>Sony Smart Watch 3</strong>) and handheld (<strong>Samsung S5</strong>). </p>
<p>I want to sense the accelerometer and gyroscope data from watch continuously and send and save the data to handheld. </p>
<p>I am wondering which is the best way to achieve thi... | I am working on a app which will run on wearable ( Sony Smart Watch 3 ) and handheld ( Samsung S5 ). I want to sense the accelerometer and gyroscope data from watch continuously and send and save the data to handheld. I am wondering which is the best way to achieve this. Currently I am using DataApi . Since acceleromet... | android|accelerometer|wear-os|gyroscope|android-wear-data-api | 3 | 2015-02-14T03:33:28.087Z | 2,015 | 2 | 3 | 5 | 3,558 | 1 | 585 | 73 | 5 | 2 | true | false | true | false | false | false | low |
28,512,288 | How to add many buttons dynamically giving a line jump before arriving at the edge in Android? | <p>I am trying to add many button into <code>Relativelayout</code> or <code>Linearlayout</code>, </p>
<p><strong>Layout</strong></p>
<pre><code><Relativelayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
androi... | I am trying to add many button into Relativelayout or Linearlayout , Layout [CODE] then in the class [CODE] I only know how add the button dynamically with code. [CODE] but the result is One on another one, but I need something like this: Edit If I use LinearLayout with orientation horizontal and gravity center , this ... | android|android-button|android-relativelayout | 0 | 2015-02-14T03:59:53.110Z | 2,015 | 2 | 3 | 5 | 118 | 3 | 327 | 94 | 3 | 3 | true | false | false | false | false | false | zero |
28,512,308 | Parse Push error "Cannot use GCM for push..." - Android | <p>I am attempting to set up push notifications for my application. I have followed the appropriate quickstart guide and the tutorial and have, as far as I can tell, set everything up correctly, but when I run the app I get the following LogCat error:</p>
<pre><code>E/com.parse.ManifestInfo(17775): Cannot use GCM for ... | I am attempting to set up push notifications for my application. I have followed the appropriate quickstart guide and the tutorial and have, as far as I can tell, set everything up correctly, but when I run the app I get the following LogCat error: [CODE] Here's the relevant excerpt from my manifest: [CODE] I've double... | android|parse-platform|push-notification | 0 | 2015-02-14T04:05:14.473Z | 2,015 | 2 | 4 | 5 | 717 | 1 | 996 | 55 | 3 | 4 | true | false | false | false | false | false | zero |
28,512,321 | When to use past tense on event listener? | <p>When should I use past tense on event listener? If you check the android link below, you can see <code>onFocusChange</code> on <code>View</code> and <code>onFocusChanged</code> on <code>WebView</code>. Which one should be more appropriate and why android choose present tense on <code>View</code> and pass tense on ... | When should I use past tense on event listener? If you check the android link below, you can see onFocusChange on View and onFocusChanged on WebView . Which one should be more appropriate and why android choose present tense on View and pass tense on WebView ? http://developer.android.com/reference/android/view/View.On... | android|design-patterns | 3 | 2015-02-14T04:08:24.463Z | 2,015 | 2 | 4 | 5 | 260 | 1 | 411 | 41 | 2 | 0 | false | false | false | false | false | false | low |
28,512,327 | Android's ContentResolver.isSyncActive returns false before the actual sync is over | <p>I am triggering a sync with a REST service using SwipeRefreshLayout's onRefresh method by calling ContentResolver.requestSync, which launches my Syncadapter.
The Syncadapter then uses Volley's Request to communicate with the server. </p>
<p>To detect the end of the sync operation and close the activity indicator I... | I am triggering a sync with a REST service using SwipeRefreshLayout's onRefresh method by calling ContentResolver.requestSync, which launches my Syncadapter. The Syncadapter then uses Volley's Request to communicate with the server. To detect the end of the sync operation and close the activity indicator I use ContentR... | android|android-volley|android-contentresolver|android-syncadapter|swiperefreshlayout | 3 | 2015-02-14T04:09:53.080Z | 2,015 | 2 | 4 | 5 | 442 | 1 | 1,125 | 83 | 5 | 0 | false | false | false | false | false | false | low |
28,512,399 | Android: Looking to create a background with multiple parts and background colors | <p>I am looking to create a button with text and a background and near the end of the background i want the text to have a different colored background, however i want it to still be part of the same button.</p>
<p>Here is an example of what i am talking about.</p>
<p><img src="https://i.stack.imgur.com/JtHgN.png" al... | I am looking to create a button with text and a background and near the end of the background i want the text to have a different colored background, however i want it to still be part of the same button. Here is an example of what i am talking about. | android|android-layout | 0 | 2015-02-14T04:24:12.443Z | 2,015 | 2 | 4 | 5 | 38 | 1 | 251 | 81 | 2 | 0 | false | false | false | false | false | false | zero |
28,512,434 | My gradle build fails when I add compile 'com.google.android.gms:play-services-wearable:6.5.87' | <p>I am trying to add WearableListenerService to my hand held when I add the dependency <code>compile 'com.google.android.gms:play-services-wearable:6.5.87'</code> I get this error in the gradle build</p>
<pre><code>Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorExcept... | I am trying to add WearableListenerService to my hand held when I add the dependency compile 'com.google.android.gms:play-services-wearable:6.5.87' I get this error in the gradle build [CODE] Here is the build.gradle [CODE] | java|android|android-studio|android-gradle-plugin | 1 | 2015-02-14T04:29:08.737Z | 2,015 | 2 | 4 | 5 | 916 | 1 | 223 | 95 | 4 | 2 | true | false | false | false | false | false | low |
28,512,464 | How to match regex in java | <p>I want a pattern like this: <code>GJ-16-RS-1234</code> and I have applied following patterns but they are not working.</p>
<p>My regex patterns are:</p>
<pre><code>String str_tempPattern = "(^[A-Z]{2})\\-([0-9]{2})\\-([A-Z]{1,2})\\-([0-9]{1,4}$)";
String str_tempPattern = "(^[A-Z]{2})-([0-9]{1,2})-([A-Z]{1,2})-([... | I want a pattern like this: GJ-16-RS-1234 and I have applied following patterns but they are not working. My regex patterns are: [CODE] And I am using text watcher to check for any change in the aftertextchange() [CODE] | java|android|regex|textwatcher | -1 | 2015-02-14T04:34:59.270Z | 2,015 | 2 | 4 | 5 | 7,482 | 1 | 219 | 26 | 4 | 2 | true | false | true | false | false | true | negative |
28,512,496 | Cordova SQLite UTF8 throws error on insert | <p>I have an app written with ionic and cordova that inserts names in a database. The db connection is opened like so:</p>
<pre><code>var db = window.openDatabase('zpassplus', '1.0', 'ZPass+', 1000000);
</code></pre>
<p>Then data is fetched from the server via an http, then inserted into a table like so:</p>
<pre><c... | I have an app written with ionic and cordova that inserts names in a database. The db connection is opened like so: [CODE] Then data is fetched from the server via an http, then inserted into a table like so: [CODE] The problem is this, when a utf8 string is passed as one of the rider properties, the SQL statement fail... | android|sqlite|cordova|utf-8 | 1 | 2015-02-14T04:39:55.150Z | 2,015 | 2 | 4 | 5 | 914 | 1 | 856 | 42 | 4 | 4 | true | false | false | false | false | false | low |
28,512,509 | Rotate imageview in place that isn't in the middle | <p>I'm attempting to rotate an imageView in place while it is not in the middle. I'm using RotateAnimation, and here is my code:</p>
<pre><code>int x = imageView.getLeft();
int y = imageView.getTop();
Animation rotate = new RotateAnimation((float) 0, (float) 359, (float) x, (float) y);
imageView.setAnimation(rotate);
... | I'm attempting to rotate an imageView in place while it is not in the middle. I'm using RotateAnimation, and here is my code: [CODE] When I do this, the imageView does not rotate in place, instead it rotates around a pivot point off of the screen. However, when I ran it in debugging mode, x and y equated to 300 and 352... | android|rotation | 1 | 2015-02-14T04:41:56.963Z | 2,015 | 2 | 4 | 5 | 748 | 2 | 454 | 50 | 2 | 1 | true | false | false | false | false | false | low |
28,512,531 | Error Exporting Vuforia Unity Project into Eclipse | <p>I'm using the <strong>Unity's Vuforia Extension</strong>, and created a AR scene. But while exporting to Android, a pop up came and SDK outdated, but my SDK is the latest.
I clicked continue and imported the project into Eclipse.
But while trying to run the project, it doesn't launch saying the projects have errors.... | I'm using the Unity's Vuforia Extension , and created a AR scene. But while exporting to Android, a pop up came and SDK outdated, but my SDK is the latest. I clicked continue and imported the project into Eclipse. But while trying to run the project, it doesn't launch saying the projects have errors. I tried cleaning a... | android|eclipse|unity3d|vuforia | 0 | 2015-02-14T04:47:45.487Z | 2,015 | 2 | 4 | 5 | 203 | 1 | 399 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
28,512,579 | session error while running project on android studio | <p>I have changed the package name, it's changed in manifest, classes and everywhere but still when i create it it gets the old one which is com.menny.android.anysoftkeyboard which should be thesherlabs.menny.android.anysoftkeyboard and gives the following error;</p>
<p>please help</p>
<pre><code>Waiting for device.
... | I have changed the package name, it's changed in manifest, classes and everywhere but still when i create it it gets the old one which is com.menny.android.anysoftkeyboard which should be thesherlabs.menny.android.anysoftkeyboard and gives the following error; please help [CODE] | android|session|android-studio|package-name | 0 | 2015-02-14T04:55:14.473Z | 2,015 | 2 | 4 | 5 | 4,857 | 2 | 279 | 53 | 4 | 1 | true | false | true | false | false | false | zero |
28,512,586 | cordova platform add android error javac | <p>I ran</p>
<pre><code>cordova platform add android
</code></pre>
<p>and the error I got</p>
<pre><code>Running command: "c:\Program Files\nodejs\node.exe" "d:\Users\Andy\Project
s\ionic-tut\hooks\before_platform_add\init_directories.js" "d:/Users/Andy/
Projects/ionic-tut"
Creating android project...
D:\Users\Andy\... | I ran [CODE] and the error I got [CODE] I ran this from git bash on running it from cmd it throws a different error [CODE] I ran a echo %PATH% to verify: [CODE] I feel like I am messing up the enviroment variables somewhere but I have checked it multiple times and it seems to be right. What am I missing? Windows 8.1 | android|windows|cordova | 0 | 2015-02-14T04:57:32.183Z | 2,015 | 2 | 4 | 5 | 1,156 | 1 | 317 | 40 | 3 | 4 | true | false | false | false | false | false | zero |
28,512,590 | Suggested Way to Implement Google Cloud Messaging in my Android App | <p>I am looking for a way to push updates from my node.js API to my android app. I'd like to find the easiest acceptable way to do it. </p>
<p>The GCM Client Helper library looks easy but appears to be deprecated. Is it a really bad idea to use it?</p>
<p>The suggested <a href="https://developer.android.com/google/gc... | I am looking for a way to push updates from my node.js API to my android app. I'd like to find the easiest acceptable way to do it. The GCM Client Helper library looks easy but appears to be deprecated. Is it a really bad idea to use it? The suggested replacement seems significantly more complicated. Is there a way aro... | android | 0 | 2015-02-14T04:58:01.123Z | 2,015 | 2 | 4 | 5 | 35 | 1 | 364 | 67 | 1 | 0 | false | false | false | false | false | false | zero |
28,512,632 | calling a method outside Onclick listener method in android app | <p>I am using following tutorial to send message to arduino via Bluetooth. (see LEDOnOff.java code)</p>
<p><a href="http://digitalhacksblog.blogspot.in/2012/05/arduino-to-android-turning-led-on-and.html" rel="nofollow">http://digitalhacksblog.blogspot.in/2012/05/arduino-to-android-turning-led-on-and.html</a></p>
<p>I... | I am using following tutorial to send message to arduino via Bluetooth. (see LEDOnOff.java code) http://digitalhacksblog.blogspot.in/2012/05/arduino-to-android-turning-led-on-and.html I want to make changes to this code such that the sendData() method is called as soon as the app starts but when i call sendData() metho... | android|bluetooth|arduino | 2 | 2015-02-14T05:09:22.527Z | 2,015 | 2 | 5 | 5 | 408 | 1 | 601 | 63 | 3 | 1 | true | false | false | false | false | false | low |
28,512,662 | slide out animation not working on back press button? | <p>I am using animations when entering or exiting the activity,entering to an activity animation works fine but exit animation does not work well. I start exit animation when i press back button.What happens is it first start enter animation for current activity then show the last activity what i want a simple exit ani... | I am using animations when entering or exiting the activity,entering to an activity animation works fine but exit animation does not work well. I start exit animation when i press back button.What happens is it first start enter animation for current activity then show the last activity what i want a simple exit animat... | android|animation|android-activity|android-animation | 14 | 2015-02-14T05:12:50.063Z | 2,015 | 2 | 5 | 5 | 18,796 | 7 | 427 | 53 | 4 | 3 | true | false | true | true | true | false | medium |
28,512,684 | Android Studio does not sign the code for debug build | <p>Android Studio refuses to sign my code for debug build.</p>
<p>I have an older project which did not have any signing instructions in build.gradle, so I added these according to this <a href="https://stackoverflow.com/questions/22790801/android-gradle-signingconfig-error">Android gradle signingConfig error</a> and ... | Android Studio refuses to sign my code for debug build. I have an older project which did not have any signing instructions in build.gradle, so I added these according to this Android gradle signingConfig error and other posts. My build.gradle file on module level (the only module) looks like this (excerpt): [CODE] The... | android|android-studio|gradle|code-signing | 23 | 2015-02-14T05:16:42.080Z | 2,015 | 2 | 5 | 5 | 24,536 | 2 | 919 | 53 | 4 | 2 | true | false | true | true | true | false | high |
28,512,689 | Download mp3 file from android browser | <p>I referred to these questions and implemented their answers but none of them is working for me.</p>
<p><a href="https://stackoverflow.com/questions/3499773/download-mp3-instead-of-playing-in-browser-by-default">download mp3 instead of playing in browser by default?</a></p>
<p><a href="https://stackoverflow.com/que... | I referred to these questions and implemented their answers but none of them is working for me. download mp3 instead of playing in browser by default? PHP Streaming MP3 content type for mp3 download response download mp3 from web url with android failed Basically when the user clicks a download link on the website, we ... | php|android-browser | 1 | 2015-02-14T05:17:49.917Z | 2,015 | 2 | 5 | 5 | 939 | 2 | 783 | 38 | 2 | 1 | true | false | false | false | false | false | low |
28,512,805 | Can't adjust weights in linear layout - android | <p>I've searched but couldn't figure out the problem.</p>
<p><img src="https://i.stack.imgur.com/vBrfe.jpg" alt="enter image description here"></p>
<p>I want to make exactly like the above picture. I've used linear layout in vertical for the "Day Teams Score Status"
And then for the content containing the values... | I've searched but couldn't figure out the problem. I want to make exactly like the above picture. I've used linear layout in vertical for the "Day Teams Score Status" And then for the content containing the values of above headings, I've used a listview. What I've achieved is that headings "Day Teams Score Status" are ... | android|xml|listview|layout|android-linearlayout | 0 | 2015-02-14T05:36:28.263Z | 2,015 | 2 | 5 | 5 | 753 | 4 | 526 | 47 | 5 | 1 | true | false | false | false | false | false | zero |
28,512,939 | How can I use set fragment inside my class which extends the Fragment class? | <p>Null returned from <code>((MessageTextFragment)fragment).setActionButtonStateListener(bAction);</code></p>
<p>Here is the <strong>SetupMessageFragment.java</strong></p>
<pre><code>package com.mayday.md.fragment;
import com.mayday.md.MainActivity;
import com.mayday.md.R;
import com.mayday.md.WizardActivity;
import... | Null returned from ((MessageTextFragment)fragment).setActionButtonStateListener(bAction); Here is the SetupMessageFragment.java [CODE] The error logs. [CODE] | android|android-fragments|android-fragmentactivity | 0 | 2015-02-14T06:02:12.490Z | 2,015 | 2 | 6 | 5 | 294 | 1 | 157 | 76 | 3 | 2 | true | false | false | false | false | false | zero |
28,513,018 | how I can use push notification in my application? | <p>I want to use push notification in my application. but I don't know where in which activity I must add it. I have around 7 activities.</p>
<p>I try and add to different activity but It doesn't work.Is there any one to help me or suggest me a way how to use?</p>
<pre><code>public class ParseApplication extends Appl... | I want to use push notification in my application. but I don't know where in which activity I must add it. I have around 7 activities. I try and add to different activity but It doesn't work.Is there any one to help me or suggest me a way how to use? [CODE] | java|android|notifications|push | 0 | 2015-02-14T06:13:11.403Z | 2,015 | 2 | 6 | 5 | 46 | 1 | 257 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
28,513,020 | ANDROID_NDK--path not found | <p>I have installed Android NDK.I have to compile an application natively.</p>
<pre><code>ara@Aravind:~/Downloads/adrenosdk-linux/Development/Samples/OpenCLVectorAdd/Android/jni$ ANDROID_NDK/ndk-build
</code></pre>
<p>I am getting the error::::
bash: ANDROID_NDK/ndk-build: No such file or directory</p>
<p>My Path Va... | I have installed Android NDK.I have to compile an application natively. [CODE] I am getting the error:::: bash: ANDROID_NDK/ndk-build: No such file or directory My Path Variable is pointing to the android-ndk-r10c and I have made this path permanent. What is the problem? Thanks | android|android-ndk | 0 | 2015-02-14T06:13:28.703Z | 2,015 | 2 | 6 | 5 | 1,526 | 1 | 278 | 27 | 2 | 1 | true | false | false | false | false | false | zero |
28,513,107 | Shouldn't I be able to use an Integer[] array in a switch statement? | <p>I thought <code>Integer[]</code> arrays are fine to use in a <code>switch</code> statement, due to auto-boxing, where the <code>Integer</code> object and <code>int</code> primitive are exchanged back and forth automatically by the compiler. But I am not having luck putting my <code>Integer[]</code> items into a swit... | I thought Integer[] arrays are fine to use in a switch statement, due to auto-boxing, where the Integer object and int primitive are exchanged back and forth automatically by the compiler. But I am not having luck putting my Integer[] items into a switch statement for an OnClick event. When the user clicks an image in ... | android|arrays|android-intent|switch-statement | 0 | 2015-02-14T06:24:53.840Z | 2,015 | 2 | 6 | 5 | 132 | 2 | 541 | 68 | 4 | 1 | true | false | false | false | false | false | zero |
28,513,120 | i want show notification on stock value change in android | <p>I developed stock market app.now I want to develop app that have features like notification when stock value has been change to 1 % of current ...help me ...thanks in advance..i want show notification on stock value change in android</p> | I developed stock market app.now I want to develop app that have features like notification when stock value has been change to 1 % of current ...help me ...thanks in advance..i want show notification on stock value change in android | android|notifications|google-play|stock | -4 | 2015-02-14T06:26:54.497Z | 2,015 | 2 | 6 | 5 | 576 | 1 | 233 | 57 | 4 | 0 | false | false | false | false | false | true | negative |
28,513,134 | I am running a simple app using Android Studio on Ubuntu. It runs but screen is blank | <p><strong>MainActivity.java</strong></p>
<pre><code>package com.example.desperado.sunshine;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.vie... | MainActivity.java [CODE] fragment_main.xml [CODE] list_item_forecast.xml [CODE] Logcat [CODE] | android|ubuntu|android-studio | -2 | 2015-02-14T06:28:24.173Z | 2,015 | 2 | 6 | 5 | 136 | 1 | 93 | 85 | 3 | 4 | true | false | false | false | false | true | negative |
28,513,178 | Android String.Contains("\\^") not Working despite Escaping the Special Character? | <p>I am trying to check whether a String contains a Caret Character by doing this:</p>
<pre><code>if (text.contains("\\^")) {
break;
}
</code></pre>
<p>This does not seem to work at all despite the Fact that I have used the Escape Characters properly as specified in several Stack overflow Answers and the text Con... | I am trying to check whether a String contains a Caret Character by doing this: [CODE] This does not seem to work at all despite the Fact that I have used the Escape Characters properly as specified in several Stack overflow Answers and the text Contains the Caret character. What am I doing wrong or What are some alter... | android|string | -2 | 2015-02-14T06:35:59.453Z | 2,015 | 2 | 6 | 5 | 259 | 2 | 339 | 82 | 2 | 1 | true | false | false | false | false | true | negative |
28,513,191 | Is it possible to get PPG(Photoplethysmogram) data from a smart watch via android? | <p>I want to develop a health care app using Android smart watch devices that have an optical heart rate sensor. Examples of such devices are: Samsung gear live, Moto360, LG G watch R, etc.</p>
<p>To do this, I need the raw PPG signal data from those devices, but I found that the Android API only supports heart rate ... | I want to develop a health care app using Android smart watch devices that have an optical heart rate sensor. Examples of such devices are: Samsung gear live, Moto360, LG G watch R, etc. To do this, I need the raw PPG signal data from those devices, but I found that the Android API only supports heart rate data by BPM ... | android|wear-os|sony-smartwatch | 7 | 2015-02-14T06:37:41.707Z | 2,015 | 2 | 6 | 5 | 7,189 | 3 | 425 | 82 | 3 | 0 | false | false | true | false | false | false | medium |
28,513,197 | Java error : R cannot be resolved to a variable , Parsing Data for android-21 failed | <p>I have searched for a solution to my problem on stack overflow . Before marking this question as duplicate, please understand that I have tried all the possible solutions that were posted, but I still have the above errors. I am running the default Hello World android program, so haven't made any changes in the code... | I have searched for a solution to my problem on stack overflow . Before marking this question as duplicate, please understand that I have tried all the possible solutions that were posted, but I still have the above errors. I am running the default Hello World android program, so haven't made any changes in the code . ... | java|android|eclipse | 2 | 2015-02-14T06:39:12.887Z | 2,015 | 2 | 6 | 5 | 386 | 2 | 2,139 | 84 | 3 | 0 | false | false | false | false | false | false | low |
28,513,201 | AlarmManager.setExact is not waiting the time interval | <p>I have the following line</p>
<pre><code>alarm.setExact(AlarmManager.RTC_WAKEUP,10000,pintent);
</code></pre>
<p>from what I understand I should receive a call from the AlarmManager to my Broadcast Receiver's onReceive after 10 seconds. How ever my Logs show that it reaches the onReceive method immediately. Is thi... | I have the following line [CODE] from what I understand I should receive a call from the AlarmManager to my Broadcast Receiver's onReceive after 10 seconds. How ever my Logs show that it reaches the onReceive method immediately. Is this normal? what method is triggered after the time specified in the setExact method ab... | android|broadcastreceiver|alarmmanager | 2 | 2015-02-14T06:39:45.807Z | 2,015 | 2 | 6 | 5 | 1,251 | 1 | 324 | 54 | 3 | 1 | true | false | false | false | false | false | low |
28,513,468 | Change font size of listview using seek bar in android | <p>I want to change font size of list view.</p>
<p>I have an activity which is dervied from ActionBarActivity.
In this activity there is one list view and one cursoradapter.
To set the adapter i use setlistadapter method. In adapter i have overriden newview and bindview methods.</p>
<p>below is the code for adapter.<... | I want to change font size of list view. I have an activity which is dervied from ActionBarActivity. In this activity there is one list view and one cursoradapter. To set the adapter i use setlistadapter method. In adapter i have overriden newview and bindview methods. below is the code for adapter. [CODE] i have 2 tex... | android|listview|seekbar | 0 | 2015-02-14T07:23:50.173Z | 2,015 | 2 | 7 | 5 | 551 | 1 | 685 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
28,513,481 | Android - Keeping clicked on items highlighted in ListView (and in memory) | <p>I have an app whereby i am accessing a RESt webservice and presenting the request in listview (ListFrragment). It is essentially a list of articles. What i am trying to achieve is when a user clicks on an item in listview (expands article in ViewPager) is stays highlighted (indicating that the article has been read)... | I have an app whereby i am accessing a RESt webservice and presenting the request in listview (ListFrragment). It is essentially a list of articles. What i am trying to achieve is when a user clicks on an item in listview (expands article in ViewPager) is stays highlighted (indicating that the article has been read). T... | android|listview|android-listview | 0 | 2015-02-14T07:25:37.867Z | 2,015 | 2 | 7 | 5 | 104 | 2 | 1,015 | 74 | 3 | 2 | true | false | false | false | false | false | zero |
28,513,488 | Null Pointer Exception while choosing file | <p>I am writing a contact form in which I am creating a file picker with a button, but the problem is that if file size is large, its unfortunately stops and if there is no file explorer than its giving null pointer exception.
Here is the code of intent</p>
<pre><code>Intent intent= new Intent(Intent.ACTION_PICK);
... | I am writing a contact form in which I am creating a file picker with a button, but the problem is that if file size is large, its unfortunately stops and if there is no file explorer than its giving null pointer exception. Here is the code of intent [CODE] | java|android-intent|nullpointerexception | 0 | 2015-02-14T07:27:01.673Z | 2,015 | 2 | 7 | 5 | 134 | 0 | 257 | 42 | 3 | 1 | true | true | false | false | false | false | zero |
28,513,553 | How to set limit of characters in EditText? | <p>I am having an EditText and i set a maxLength to 2 but EditText is still taking more than 2 characters.
Here is my code.</p>
<pre><code><EditText
android:id="@+id/etAddClientcountry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:e... | I am having an EditText and i set a maxLength to 2 but EditText is still taking more than 2 characters. Here is my code. [CODE] | android | 1 | 2015-02-14T07:38:21.693Z | 2,015 | 2 | 7 | 5 | 7,705 | 2 | 127 | 43 | 1 | 1 | true | false | true | false | false | false | low |
28,513,571 | Change Variable after and at a certain amount of time | <p>I want to have a PDF document displayed in my app. This PDF document is a schedule and there is a link for every day from Monday to Friday (5 links in total). That means I need to change the download link for the PDF document reader every day at, say 5pm. </p>
<p>My idea is to create a variable, this variable conta... | I want to have a PDF document displayed in my app. This PDF document is a schedule and there is a link for every day from Monday to Friday (5 links in total). That means I need to change the download link for the PDF document reader every day at, say 5pm. My idea is to create a variable, this variable contains 5 string... | java|android|pdf|android-studio | 0 | 2015-02-14T07:40:51.090Z | 2,015 | 2 | 7 | 5 | 83 | 1 | 474 | 53 | 4 | 0 | false | false | false | false | false | false | zero |
28,513,583 | Android: ListView messed up when scrolled | <p>I am working on listview showing results of a lottery, the results are stored in a dababase <code>Records</code>, and coded as follows:</p>
<h2>Code:</h2>
<p>generate listing:</p>
<pre><code> public void generate_listing()
{
String action = "recordId " + "DESC";
Record = Select.from(Records.... | I am working on listview showing results of a lottery, the results are stored in a dababase Records , and coded as follows: Code: generate listing: [CODE] Adapter: [CODE] EDIT: [CODE] Question: The results that are originally sorted in descending order in a good way. However, upon scrolling up and down the listview, th... | android|database|listview | 0 | 2015-02-14T07:42:14.570Z | 2,015 | 2 | 7 | 5 | 471 | 1 | 737 | 41 | 3 | 3 | true | false | false | false | false | false | zero |
28,513,584 | How to programatically add items to ListView from an ArrayAdapter? | <p>I have tried everything but I don't get it to work!</p>
<p>I have an object, <code>mObject</code>, which itself contains an <code>arrayList</code> of objects which I want to display with a <code>TextView</code> below <code>mObject.getName()</code>. How do I accomplish this, the problem is that the sub <code>ArrayLi... | I have tried everything but I don't get it to work! I have an object, mObject , which itself contains an arrayList of objects which I want to display with a TextView below mObject.getName() . How do I accomplish this, the problem is that the sub ArrayList can vary in size. As I don't know how many items it will return,... | java|android|arraylist|adapter|getview | -1 | 2015-02-14T07:42:27.220Z | 2,015 | 2 | 7 | 5 | 960 | 2 | 862 | 66 | 5 | 3 | true | false | false | false | false | true | negative |
28,513,615 | Android StartActivity on GCM receive | <p>I have scenario when App receives GCM on any event occurred, an Activity is shown to get detail of the event from server.</p>
<p>When GCM is received there are chances that
App might be running
or
same activity might be running
so how to handle these scenarios.</p> | I have scenario when App receives GCM on any event occurred, an Activity is shown to get detail of the event from server. When GCM is received there are chances that App might be running or same activity might be running so how to handle these scenarios. | android|google-cloud-messaging|start-activity | 0 | 2015-02-14T07:48:34.980Z | 2,015 | 2 | 7 | 5 | 1,419 | 2 | 254 | 36 | 3 | 0 | false | false | false | false | false | false | zero |
28,513,616 | Android get full width for custom Dialog | <p>in my application my created custom dialog dont have full height and i can not change and customize that.for example see this screen shot:</p>
<p><img src="https://i.stack.imgur.com/hGZHR.png" alt="enter image description here">
My code:</p>
<pre><code>final Dialog contacts_dialog = new Dialog(ActivityGroup.this, ... | in my application my created custom dialog dont have full height and i can not change and customize that.for example see this screen shot: My code: [CODE] layout: [CODE] Style: [CODE] | android|android-layout|android-dialog | 100 | 2015-02-14T07:48:38.627Z | 2,015 | 2 | 7 | 5 | 116,662 | 18 | 183 | 40 | 3 | 3 | true | false | true | true | true | false | high |
28,513,638 | Grow LinearLayout on swipe then it becomes sticky header | <p>I have unique situation here where I want to grow a <code>LinearLayout</code> when a user swipes up, it will grow as so in this image and then become a sticky header at the top of the phone:</p>
<p><img src="https://i.stack.imgur.com/pYIIq.png" alt="animated_layout"></p>
<p>How would I go about doing this with bes... | I have unique situation here where I want to grow a LinearLayout when a user swipes up, it will grow as so in this image and then become a sticky header at the top of the phone: How would I go about doing this with best practices? Should I create a custom class called onSwipeListener which would extend onTouchListener ... | android|animation|layout|android-linearlayout | 3 | 2015-02-14T07:51:28.163Z | 2,015 | 2 | 7 | 5 | 320 | 1 | 408 | 56 | 4 | 0 | false | false | false | false | false | false | low |
28,513,643 | End Point in Retrofit URL | <p>in my application using Retrofit. I had declared interface, But I am not sure how to use Endpoint in this url.</p>
<p>my URL is:<code>http://javatechig.com/api/get_category_posts/?dev=1&slug=android</code></p>
<p>Now my question is how to add endpoint for this url. my interface is like:</p>
<pre><code>public ... | in my application using Retrofit. I had declared interface, But I am not sure how to use Endpoint in this url. my URL is: http://javatechig.com/api/get_category_posts/?dev=1&slug=android Now my question is how to add endpoint for this url. my interface is like: [CODE] Any suggestion will be appreciated Thanks in advanc... | java|android|android-studio|retrofit | 0 | 2015-02-14T07:52:45.060Z | 2,015 | 2 | 7 | 5 | 470 | 1 | 321 | 25 | 4 | 1 | true | false | false | false | false | false | zero |
28,513,664 | Web XML crashes app? | <p>I'm developing a weather android app that reads an XML file from the web, and displays the current temperature. This code works perfectly fine in a normal project within eclipse. I made slight changes to it but it crashes the app when I click the button. In my layout I just have a button added which is programmed in... | I'm developing a weather android app that reads an XML file from the web, and displays the current temperature. This code works perfectly fine in a normal project within eclipse. I made slight changes to it but it crashes the app when I click the button. In my layout I just have a button added which is programmed in th... | java|android|xml|web | 0 | 2015-02-14T07:55:43.460Z | 2,015 | 2 | 7 | 5 | 624 | 1 | 500 | 20 | 4 | 4 | true | false | false | false | false | false | zero |
28,513,773 | how to unregister BaseAdapter that depends on other source | <p>I have a <code>MyAdapter extends BaseAdapter</code> that extract information from <strong>JniSource</strong>. <code>MyAdapter implements JniSource.Observer</code> and get a callback when underlying <strong>JNI</strong> data is changed.</p>
<p>My Question: I can <code>JniSource.registerObserver(MyAdapter)</code> in ... | I have a MyAdapter extends BaseAdapter that extract information from JniSource . MyAdapter implements JniSource.Observer and get a callback when underlying JNI data is changed. My Question: I can JniSource.registerObserver(MyAdapter) in constructor but where to call JniSource.unregisterObserver(MyAdapter) . MyAdapter.f... | java|android|observer-pattern|baseadapter | 0 | 2015-02-14T08:17:40.880Z | 2,015 | 2 | 8 | 5 | 76 | 2 | 547 | 58 | 4 | 0 | false | false | false | false | false | false | zero |
28,513,776 | Dispatch call queued. Dispatch will run once initialization is complete | <p>I'm trying to set a <code>ScreenName</code> and send a hit via the Analytics tracker, but I always get the following messages in the LogCat:</p>
<pre><code>02-13 23:33:49.311 9700-9700/com.myapp V/GAV4﹕ Thread[main,5,main]: Dispatch call queued. Dispatch will run once initialization is complete.
02-13 23:33:49.3... | I'm trying to set a ScreenName and send a hit via the Analytics tracker, but I always get the following messages in the LogCat: [CODE] Although it sends the hit to the service, it doesn't dispatch it to the Analytics server so that it will appear in the Real-Time overview... Here is how I initialize the tracker variabl... | java|android|google-analytics | 0 | 2015-02-14T08:18:46.957Z | 2,015 | 2 | 8 | 5 | 739 | 1 | 382 | 71 | 3 | 3 | true | false | false | false | false | false | zero |
28,513,790 | Handle multiple objects for SQLite Database | <p>I am trying to update a single SQLite row item multiple times in a thread.But it throwing <strong>close() was never explicitly called on database error</strong>.. I did my logic like below: </p>
<pre><code>ta.addTextChangedListener(new TextWatcher() {
@Override
public void onTextCha... | I am trying to update a single SQLite row item multiple times in a thread.But it throwing close() was never explicitly called on database error .. I did my logic like below: [CODE] updateText(),open() and close() from DB: [CODE] The Logcat after changing data in EditText: [CODE] I have tried by putting Thread.sleep(100... | java|android|multithreading|sqlite | 0 | 2015-02-14T08:21:47.660Z | 2,015 | 2 | 8 | 5 | 454 | 1 | 423 | 43 | 4 | 3 | true | false | false | false | false | false | zero |
28,513,804 | jquery mobile page exits when clicking a button on the page | <p>I have a few pages defined like so:</p>
<pre><code> <div data-role="page" id="home">
...
</div>
<div data-role="page" id="settings">
...
<button id="testSettingsButton">Test</button>
</div>
</code></pre>
<p>The javascript looks like this:</p>
<pre>... | I have a few pages defined like so: [CODE] The javascript looks like this: [CODE] When the user clicks the Test button, jquery mobile displays the home screen instead of staying on the setting screen. Why is this happening? How can I fix or debug this? I'm using Jquery Mobile 1.4.5 on Cordova 4.1.2. | javascript|android|jquery|cordova|jquery-mobile | 0 | 2015-02-14T08:23:02.363Z | 2,015 | 2 | 8 | 5 | 27 | 1 | 300 | 59 | 5 | 2 | true | false | false | false | false | false | zero |
28,513,821 | app crashes when i start Activity while incoming call in android | <p>I want to start Another Activity while incoming call in Android. Following is the code I found on a website. The code works perfect to pop up window while incoming call but when I try to start Activity by passing intent(missintent) the app crashes.
Note: App only crashes while incoming call. The method that i call m... | I want to start Another Activity while incoming call in Android. Following is the code I found on a website. The code works perfect to pop up window while incoming call but when I try to start Activity by passing intent(missintent) the app crashes. Note: App only crashes while incoming call. The method that i call my m... | android|eclipse|crash | 0 | 2015-02-14T08:26:23.210Z | 2,015 | 2 | 8 | 5 | 555 | 1 | 450 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
28,513,826 | How to scroll layout with header and FrameLayout | <p>I have a view that show header with text and logo and button of this layout shows details. How can i change height of header when user scroll this page?</p>
<p>my layout:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:layout_width="wrap_content"
android:layout_height... | I have a view that show header with text and logo and button of this layout shows details. How can i change height of header when user scroll this page? my layout: [CODE] i want header go thiner when user scroll. | android|scroll | 0 | 2015-02-14T08:26:50.827Z | 2,015 | 2 | 8 | 5 | 479 | 1 | 212 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
28,513,876 | How to track how long an item in Android listview stays on screen | <p>Is there a way to detect the entry and exit of a particular item in the list and find the time difference between two events?</p> | Is there a way to detect the entry and exit of a particular item in the list and find the time difference between two events? | java|android|android-listview|analytics|android-event | -1 | 2015-02-14T08:33:45.877Z | 2,015 | 2 | 8 | 5 | 45 | 1 | 125 | 65 | 5 | 0 | false | false | false | false | false | true | negative |
28,513,882 | Show current location of device Google Map (Fragment) | <p>I tried so many different solutions and I also searched on Google but still not getting the required solution. The problem is not yet fixed. I have ViewPager with some Fragments. In first Fragment I wanna use Google Map API v2 to show current location of device. It works fine if I use current values of latitude/long... | I tried so many different solutions and I also searched on Google but still not getting the required solution. The problem is not yet fixed. I have ViewPager with some Fragments. In first Fragment I wanna use Google Map API v2 to show current location of device. It works fine if I use current values of latitude/longitu... | android|google-maps|android-fragments|google-maps-android-api-2|google-maps-api-2 | 0 | 2015-02-14T08:35:05.673Z | 2,015 | 2 | 8 | 5 | 2,678 | 1 | 679 | 53 | 5 | 2 | true | false | true | false | false | false | zero |
28,513,926 | Android Studio 1.0.2: java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.NullPointerException | <p>Here is the error:</p>
<pre><code>02-14 02:00:55.663 907-907/com.wlodsgn.bunbunup E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.wlodsgn.bunbunup, PID: 907
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wlodsgn.bunbunup/com.wlodsgn.bunbunup.MenuActivity}: java.lang... | Here is the error: [CODE] I seriously have no idea what might be the problem, spent couple of hours trying to look for a solution but it is still crashing. The idea is to make my first main activity (IntroActivity.java) open another activity(menuactivity.java) with navigation drawer. Any help would be greatly appreciat... | java|android|nullpointerexception|runtime | 1 | 2015-02-14T08:42:15.770Z | 2,015 | 2 | 8 | 5 | 5,041 | 1 | 874 | 120 | 4 | 5 | true | false | true | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.