id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,683,683 | Remove the blue when item is selected/clicked in android | <p>I'm trying to remove the blue highlighted box I get when I click on an item.</p>
<p>This is my code</p>
<p></p>
<pre><code><item android:state_pressed="true"
android:drawable="@drawable/message_to_new_color"/>
<item android:state_activated="true"
android:drawable="@drawable/message_to_new_color... | I'm trying to remove the blue highlighted box I get when I click on an item. This is my code [CODE] Any help would be great. | android | 1 | 2015-02-23T21:21:07.673Z | 2,015 | 2 | 21 | 0 | 126 | 1 | 124 | 56 | 1 | 1 | true | false | false | false | false | false | low |
28,683,715 | Nested fragments good practice? | <p>I wonder if it is good practice to use nested fragments. Consider, there is Activity. I need to place viewpager at the top of it and list view above viewpager.<br>
It would be better to use two containers one for ViewPager, another for ListView, it is clear.<br>
But the question is is good practice to use antoher fr... | I wonder if it is good practice to use nested fragments. Consider, there is Activity. I need to place viewpager at the top of it and list view above viewpager. It would be better to use two containers one for ViewPager, another for ListView, it is clear. But the question is is good practice to use antoher fragment as c... | android|android-layout|android-activity|android-fragments | 0 | 2015-02-23T21:23:17.710Z | 2,015 | 2 | 21 | 0 | 636 | 1 | 813 | 31 | 4 | 0 | false | false | false | false | false | false | zero |
28,683,839 | How to add two buttons in the same line for Android? | <p>I know that there are many similar questions but known of them worked for me. I want the <code>Turn Left</code> and <code>Turn Right</code> buttons to be on the same line. But here is what is being displayed: </p>
<p><img src="https://i.stack.imgur.com/K9gb6.png" alt="enter image description here"></p>
<p>Here is ... | I know that there are many similar questions but known of them worked for me. I want the Turn Left and Turn Right buttons to be on the same line. But here is what is being displayed: Here is the code I have so far in my fragment_main.xml file: [CODE] I am a beginner and don't know how to resolve this problem. Any sugge... | android|xml|android-layout | -1 | 2015-02-23T21:31:24.027Z | 2,015 | 2 | 21 | 0 | 1,392 | 4 | 327 | 52 | 3 | 1 | true | false | false | false | false | true | negative |
28,683,865 | Bug to insert calendar on Samsung Galaxy devices | <p>I have a bug that only happens in the Samsung Galaxy Tab, Samsung Galaxy Win Duos and Samsung Galaxy S Duos.</p>
<p>I am trying to insert a linked calendar to an application account:</p>
<pre><code> Uri calUri = CalendarContract.Calendars.CONTENT_URI;
ContentValues cv = new ContentValues();
cv.put(... | I have a bug that only happens in the Samsung Galaxy Tab, Samsung Galaxy Win Duos and Samsung Galaxy S Duos. I am trying to insert a linked calendar to an application account: [CODE] But this generating error in this line: [CODE] The StackTrace: [CODE] How can I work around this bug? | android|samsung-mobile|android-calendar|android-account|calendarcontract | 1 | 2015-02-23T21:33:03.837Z | 2,015 | 2 | 21 | 0 | 278 | 0 | 284 | 48 | 5 | 3 | true | true | false | false | false | false | low |
28,683,993 | Creating a new Activity, makes a whole new application? | <p>Im new to android, and when i read "Create New Activity" i was under the impression it creates a new "Window/Layout/Screen".</p>
<p>When i start making my own application i see </p>
<blockquote>
<p>Main.java</p>
</blockquote>
<p>is one application and </p>
<blockquote>
<p>SecondActivity.java</p>
</blockquote... | Im new to android, and when i read "Create New Activity" i was under the impression it creates a new "Window/Layout/Screen". When i start making my own application i see Main.java is one application and SecondActivity.java is another app in my Emulators menu? Why is that and how can i go about making one app with multi... | java|android | 1 | 2015-02-23T21:39:36.963Z | 2,015 | 2 | 21 | 0 | 76 | 2 | 403 | 55 | 2 | 1 | true | false | false | false | false | false | low |
28,684,047 | Getters and Setters in Android | <p>please help me... i don't know what i'm doing wrong!!</p>
<p>I have 3 classes.</p>
<p>1 - Activity = TelaCadastroRestaurant.java</p>
<p>2 - Entity = Restaurant.java</p>
<p>3 - Method's Class = Metodos.java</p>
<p>Problem: When i call <strong>getNomeRestaurante()</strong> in method <strong>callMandarNuvem()</str... | please help me... i don't know what i'm doing wrong!! I have 3 classes. 1 - Activity = TelaCadastroRestaurant.java 2 - Entity = Restaurant.java 3 - Method's Class = Metodos.java Problem: When i call getNomeRestaurante() in method callMandarNuvem() or in ANY other method BUT pegarvalores() , it DOESN'T WORK ... it shows... | java|android | -1 | 2015-02-23T21:43:10.410Z | 2,015 | 2 | 21 | 0 | 78 | 2 | 1,240 | 30 | 2 | 3 | true | false | false | false | false | true | negative |
28,684,058 | Android Session Management | <p>I am making an app the stores all data in SQLite, I have DBhelper class, AdapterControl class which holds all my action such as insertUser() to add a new user to database.</p>
<p>My question is the login process, it is similar to sharedpreferences but how can I keep unique user session. SO when the user log in it c... | I am making an app the stores all data in SQLite, I have DBhelper class, AdapterControl class which holds all my action such as insertUser() to add a new user to database. My question is the login process, it is similar to sharedpreferences but how can I keep unique user session. SO when the user log in it checks db fo... | android|sql | 0 | 2015-02-23T21:43:45.877Z | 2,015 | 2 | 21 | 0 | 74 | 0 | 627 | 26 | 2 | 2 | true | true | false | false | false | false | zero |
28,684,122 | Call service only if preceding observable succeeded | <p><strong>Background</strong></p>
<p>I am just diving into the concept of RX for java. Frankly, I don't get it. In my project I use retrofit library for calling services. Currently, I have implemented all the services using callback. If I want to orchestrate service calls I have to call callbacks in callbacks which l... | Background I am just diving into the concept of RX for java. Frankly, I don't get it. In my project I use retrofit library for calling services. Currently, I have implemented all the services using callback. If I want to orchestrate service calls I have to call callbacks in callbacks which leads to quite a confusing co... | retrofit|observable|rx-java|rx-android | 2 | 2015-02-23T21:47:52.627Z | 2,015 | 2 | 21 | 0 | 1,802 | 2 | 600 | 51 | 4 | 2 | true | false | false | false | false | false | low |
28,684,126 | Switch bar is not visible when inside List View, Lollipop only | <p>In the settings page of my app, I am allowing users to turn on or off certain features. I am doing that by using a list view containing a title and switch toggle in each row.</p>
<p>When in list view, Lollipop uses a different switch design, and when you turn it to off mode, the bar is completely invisible, all you... | In the settings page of my app, I am allowing users to turn on or off certain features. I am doing that by using a list view containing a title and switch toggle in each row. When in list view, Lollipop uses a different switch design, and when you turn it to off mode, the bar is completely invisible, all you see is a c... | android|android-layout|android-listview|android-5.0-lollipop|android-switch | 0 | 2015-02-23T21:48:02.560Z | 2,015 | 2 | 21 | 0 | 377 | 0 | 613 | 62 | 5 | 1 | true | true | false | false | false | false | zero |
28,684,137 | Error : Testapp is not responding | <p>I am trying to make a simple calculator that can add, subtract, multiply and divide. It has 6 buttons , the two extra for showing the result "=" and the other one for clearing the edit text "C". There are no errors but after running it on AVD on my Android Studios , error is showing->
your app is not responding....... | I am trying to make a simple calculator that can add, subtract, multiply and divide. It has 6 buttons , the two extra for showing the result "=" and the other one for clearing the edit text "C". There are no errors but after running it on AVD on my Android Studios , error is showing-> your app is not responding.....Som... | javascript|android|xml|eclipse | 0 | 2015-02-23T21:48:41.793Z | 2,015 | 2 | 21 | 0 | 27 | 0 | 495 | 33 | 4 | 2 | true | true | false | false | false | false | zero |
28,684,269 | Android Java implement 2 buttons in 1 page | <p>I finally learned about adding a button to a page and actually making it navigate to another activity "XML Page". Anyway, I have been trying to add 2 buttons in the same page which navigate each to a different XML's Pages. All I did was copy the first button which worked and then change the button name and all other... | I finally learned about adding a button to a page and actually making it navigate to another activity "XML Page". Anyway, I have been trying to add 2 buttons in the same page which navigate each to a different XML's Pages. All I did was copy the first button which worked and then change the button name and all other th... | java|android|xml|button | 0 | 2015-02-23T21:57:15.867Z | 2,015 | 2 | 21 | 0 | 189 | 3 | 520 | 42 | 4 | 1 | true | false | false | false | false | false | zero |
28,684,375 | Implement hide()/show() instead of using backStack with Android Fratments | <p>So, I'm still new on Android Fragments, but if I got it correctly, when you remove a Fragment and stack it to the back stack with addBackStack (according to <a href="http://developer.android.com/images/fragment_lifecycle.png" rel="nofollow">Android Developer's Fragment lifecycle</a>) you get this portion of view des... | So, I'm still new on Android Fragments, but if I got it correctly, when you remove a Fragment and stack it to the back stack with addBackStack (according to Android Developer's Fragment lifecycle ) you get this portion of view destroyed and when it pops up to the screen again it has to reload all it's components. I'm s... | android|android-fragments | 0 | 2015-02-23T22:03:52.803Z | 2,015 | 2 | 22 | 0 | 81 | 2 | 879 | 73 | 2 | 0 | false | false | false | false | false | false | zero |
28,684,383 | Service - the service isn't stopping | <p>I'm having some problems with services.</p>
<p>Service:</p>
<pre><code>public class MyService extends Service {
public MyService() {
}
private static final String TAG = "AutoService";
private Timer timer;
private TimerTask task;
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
publi... | I'm having some problems with services. Service: [CODE] MainActivity: [CODE] Manifest file: [CODE] [CODE] I'm just testing, when I try to stop the service, the fuction onDestroy() is called but don't stop the service. The service/android:exported and android:enable both are true. Any help? | android|service | 1 | 2015-02-23T22:04:17.040Z | 2,015 | 2 | 22 | 0 | 100 | 2 | 290 | 36 | 2 | 4 | true | false | false | false | false | false | low |
28,684,384 | Getting java.lang.ExceptionInIntiliazerError in Android | <p>I'm very new to Android programming and I'm trying to write an Android app that would parse an OWL file (.owl file) and display the classes and subclasses. When ever the user clicks the button, the file is read from the <strong>assets</strong> folder of the Eclipse Project, the OWL file is parsed and the names of th... | I'm very new to Android programming and I'm trying to write an Android app that would parse an OWL file (.owl file) and display the classes and subclasses. When ever the user clicks the button, the file is read from the assets folder of the Eclipse Project, the OWL file is parsed and the names of the classes are printe... | java|android|api|owl | 0 | 2015-02-23T22:04:29.320Z | 2,015 | 2 | 22 | 0 | 78 | 1 | 710 | 55 | 4 | 4 | true | false | false | false | false | false | zero |
28,684,401 | SQLiteException near "(" syntax error code 1 | <p>I don't get what I am missing. already tried using sql validators and they keep saying it is fine.</p>
<p>this is the part of the code that is causing the issue. before that I am creating the database and a table like this and it works.</p>
<pre><code>AtividadesDAO.database.execSQL("CREATE TABLE "
... | I don't get what I am missing. already tried using sql validators and they keep saying it is fine. this is the part of the code that is causing the issue. before that I am creating the database and a table like this and it works. [CODE] any ideas? | android|android-sqlite | -1 | 2015-02-23T22:06:00.307Z | 2,015 | 2 | 22 | 0 | 179 | 2 | 247 | 44 | 2 | 1 | true | false | false | false | false | true | negative |
28,684,529 | Buttons don't appear on phone | <p>Take a look at <a href="http://www.granthoneymoon.com/Most_insightful_posts.html" rel="nofollow">this sample site.</a></p>
<p>Under the next button there should be 3 buttons (add, learn more, and report). In both IE and firefox they look great no matter how small the browser. But when I look on my samsung galaxy 3 ... | Take a look at this sample site. Under the next button there should be 3 buttons (add, learn more, and report). In both IE and firefox they look great no matter how small the browser. But when I look on my samsung galaxy 3 those 3 buttons do not appear. Any idea why? Here's the HTML: [CODE] Here's the CSS: [CODE] | android|css|button | 0 | 2015-02-23T22:14:24.557Z | 2,015 | 2 | 22 | 0 | 38 | 0 | 314 | 29 | 3 | 2 | true | true | false | false | false | false | zero |
28,684,564 | Android Failure [INSTALL_FAILED_UID_CHANGED] after adb tries to uninstall | <p>Many times during developing, I will be on an older branch that has a higher version number of the app that I'm developing. Thus, when I run my code on my device, adb will try to uninstall the app (with the higher version) to install my working branch (which has a lower version).</p>
<p>After adb tries to do this, ... | Many times during developing, I will be on an older branch that has a higher version number of the app that I'm developing. Thus, when I run my code on my device, adb will try to uninstall the app (with the higher version) to install my working branch (which has a lower version). After adb tries to do this, I often get... | android|adb | 0 | 2015-02-23T22:16:28.737Z | 2,015 | 2 | 22 | 0 | 104 | 0 | 790 | 73 | 2 | 0 | false | true | false | false | false | false | zero |
28,684,569 | Unable to programmatically lay a brick wall in libgdx | <p>I am trying to recreate a brick wall for a school project. The brick wall would look something like this, but fill the whole screen: <img src="https://i.stack.imgur.com/UmNCJ.png" alt="brick wall"></p>
<p>Currently, I am able to get it to look like this:<img src="https://i.stack.imgur.com/6pH8w.jpg" alt="current im... | I am trying to recreate a brick wall for a school project. The brick wall would look something like this, but fill the whole screen: Currently, I am able to get it to look like this: The texture file I'm using is this: The code I'm using to do this looks like this: Constants file that determines the texture size: [CODE... | java|android|libgdx | 2 | 2015-02-23T22:16:58.240Z | 2,015 | 2 | 22 | 0 | 261 | 0 | 1,813 | 53 | 3 | 5 | true | true | false | false | false | false | low |
28,684,614 | i am getting this error always Unable to execute dex: method ID not in [0, 0xffff]: 65536 | <p>When i am trying to compile my code i am getting this error always<br>
"<strong>Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536</strong>", but i don't know what is this error actually i am not able to generate my APK.</p>
<p>In my project i have used around 4 library p... | When i am trying to compile my code i am getting this error always " Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 ", but i don't know what is this error actually i am not able to generate my APK. In my project i have used around 4 library project. Facebook SDK Google pl... | android|dalvik|dex | 0 | 2015-02-23T22:20:28.400Z | 2,015 | 2 | 22 | 0 | 135 | 1 | 446 | 89 | 3 | 0 | false | false | false | false | false | false | zero |
28,684,647 | Developing a Qt app for Android from the command line | <p>I would like to compile and deploy on an Android device a simple helloworld program written using Qt <strong>purely</strong> using vi/emacs and the OS X command line, without using QtCreator or Android Studio.</p>
<p><a href="http://qt-project.org/wiki/Android" rel="nofollow">This</a> page describes how to fill in ... | I would like to compile and deploy on an Android device a simple helloworld program written using Qt purely using vi/emacs and the OS X command line, without using QtCreator or Android Studio. This page describes how to fill in values for ANDROID_SDK_ROOT , ANDROID_NDK_ROOT , etc, before compiling Qt5. I have in the pa... | android|macos|qt | 4 | 2015-02-23T22:22:19.897Z | 2,015 | 2 | 22 | 0 | 3,957 | 2 | 1,135 | 53 | 3 | 0 | false | false | true | false | false | false | low |
28,684,672 | What are the limitation in EditMode for custom views in Android? | <p>I know how to use the <code>View.isInEditMode</code> method.</p>
<p>What I don't fully understand is <strong>when</strong> should I use it. That is, what should I prevent from running in EditMode.</p>
<p>There are the obvious cases, where the custom view does all kind of crazy things like DB access, networking, th... | I know how to use the View.isInEditMode method. What I don't fully understand is when should I use it. That is, what should I prevent from running in EditMode. There are the obvious cases, where the custom view does all kind of crazy things like DB access, networking, threads etc. where it is clear you should avoid the... | android|android-view|android-custom-view|editmode | 1 | 2015-02-23T22:23:36.633Z | 2,015 | 2 | 22 | 0 | 879 | 1 | 760 | 64 | 4 | 0 | false | false | false | false | false | false | low |
28,684,688 | Android: Show multiple street views (Google Maps Api) | <p>I have an xml file called activity_collage.xml with 2 street view fragments - I would like both fragments to display the street view of a given location - So a total of 2 street views on the screen</p>
<p>Here's my code:</p>
<pre><code>public class Collage extends ActionBarActivity implements OnStreetViewPanoramaR... | I have an xml file called activity_collage.xml with 2 street view fragments - I would like both fragments to display the street view of a given location - So a total of 2 street views on the screen Here's my code: [CODE] Here's where I initialize my 2 StreetViewFragment objects in my onCreate() method [CODE] Here's the... | java|android|google-maps|google-maps-android-api-2|google-street-view | 1 | 2015-02-23T22:24:24.663Z | 2,015 | 2 | 22 | 0 | 700 | 2 | 449 | 53 | 5 | 3 | true | false | false | false | false | false | low |
28,684,752 | Launch Android widget via ADB | <p>I would like to launch the Android weather widget.</p>
<p>The package is:</p>
<pre><code>com.sec.android.widgetapp.ap.hero.accuweather
</code></pre>
<p>I tried many different versions of </p>
<pre><code>adb shell am start .....
</code></pre>
<p>but was not successful.
Does anyone know how to do it?</p> | I would like to launch the Android weather widget. The package is: [CODE] I tried many different versions of [CODE] but was not successful. Does anyone know how to do it? | android|widget|adb | 2 | 2015-02-23T22:28:59.357Z | 2,015 | 2 | 22 | 0 | 2,431 | 1 | 170 | 29 | 3 | 2 | true | false | false | false | false | false | low |
28,684,779 | Gradle Build times are extremely erratic and unproductive | <p>I've already increased memory in the gradle build file and these are my build times with minor changes (no extra dependencies) in the app. <strong>Sometimes the build time is 100% greater</strong></p>
<pre><code>12:01:20 PM Gradle build finished with 4 warnings(s) in 1 min 11 sec
12:01:28 PM Session 'app': running
... | I've already increased memory in the gradle build file and these are my build times with minor changes (no extra dependencies) in the app. Sometimes the build time is 100% greater [CODE] Definitive way to fix this? | android|android-studio|gradle | 0 | 2015-02-23T22:30:23.027Z | 2,015 | 2 | 22 | 0 | 283 | 1 | 214 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
28,684,857 | How can I change the --android-platform in Qt Creator to not be android--1 in debug mode? | <p>I'm trying to run a new Qt Quick application on my android device through Qt Creator. However, Qt Creator keeps using Android API version <em>1</em> whereas I would like it to target an Android API version 10 ( aka Android 2.3.3). </p>
<p>When I run Debug->Start Debugging and then select either an <code>armeabi</... | I'm trying to run a new Qt Quick application on my android device through Qt Creator. However, Qt Creator keeps using Android API version 1 whereas I would like it to target an Android API version 10 ( aka Android 2.3.3). When I run Debug->Start Debugging and then select either an armeabi or armeabi-v7a on my physical ... | android|qt|qt-creator|android-sdk-tools|qt-necessitas | 10 | 2015-02-23T22:34:41.007Z | 2,015 | 2 | 22 | 0 | 6,755 | 1 | 995 | 89 | 5 | 1 | true | false | true | false | true | false | medium |
28,684,858 | Passing byte array between activities android | <p>I am trying to pass a byte[] holding a music file to another activity in my app. But when i do this i get the Failed Binder Error meaning the size of music file is too big (over 2MB). Then i went ahead and tried to compress it with the method below but that still gave me the error. How can i get the file under 1M... | I am trying to pass a byte[] holding a music file to another activity in my app. But when i do this i get the Failed Binder Error meaning the size of music file is too big (over 2MB). Then i went ahead and tried to compress it with the method below but that still gave me the error. How can i get the file under 1MB to p... | java|android | 0 | 2015-02-23T22:34:52.350Z | 2,015 | 2 | 22 | 0 | 831 | 1 | 429 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
28,684,881 | Creating a "closed" shareable project for Android | <p>I've been trying to use @CommonsWare's answer over <a href="https://stackoverflow.com/a/17064024/240795" title="previous SO answer">here</a> to make an Android project (in Eclipse ADT) which I can share without giving all my code to people I share it with (the code has proprietary stuff to connect to our servers and... | I've been trying to use @CommonsWare's answer over here to make an Android project (in Eclipse ADT) which I can share without giving all my code to people I share it with (the code has proprietary stuff to connect to our servers and we don't want to make it easy for people to connect to our servers without this compone... | java|android|eclipse|jar | 0 | 2015-02-23T22:36:01.587Z | 2,015 | 2 | 22 | 0 | 311 | 1 | 1,632 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
28,684,941 | Android default white background hex code | <p>What is the hex code for the default white background that is given to layouts when you create a new project?</p>
<p><img src="https://i.stack.imgur.com/glGUR.png" alt="enter image description here"></p> | What is the hex code for the default white background that is given to layouts when you create a new project? | java|android|xml|colors|hex | 0 | 2015-02-23T22:40:15.790Z | 2,015 | 2 | 22 | 0 | 1,839 | 1 | 109 | 41 | 5 | 0 | false | false | false | false | false | false | zero |
28,684,948 | WiFi Direct Demo | <p>I don't have a lot of knowledge on Java and new to Android development, but I need to use it for a project I am currently working on.<br>
I have changed the WiFi Direct Demo code provided from android studio to send strings...
the problem I have now is that I want to remove the section where the user gets asked to ... | I don't have a lot of knowledge on Java and new to Android development, but I need to use it for a project I am currently working on. I have changed the WiFi Direct Demo code provided from android studio to send strings... the problem I have now is that I want to remove the section where the user gets asked to choose a... | java|android|wifi-direct | 1 | 2015-02-23T22:40:35.910Z | 2,015 | 2 | 22 | 0 | 955 | 1 | 535 | 16 | 3 | 2 | true | false | false | false | false | false | low |
28,684,978 | Populate list view with cursor | <p>I am very new to Android development so please excuse any naivety. </p>
<p>I have created a list view on my activity:</p>
<pre><code><ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/listView"
android:layout_centerVertical="true"
... | I am very new to Android development so please excuse any naivety. I have created a list view on my activity: [CODE] I have extracted all the date from my sqllite table: [CODE] (At least I think I have, Im not sure how to test if there is data in there, if the database exists, if the table exists etc as I don't know ho... | android|sqlite|listview | 2 | 2015-02-23T22:42:39.300Z | 2,015 | 2 | 22 | 0 | 2,874 | 1 | 405 | 30 | 3 | 2 | true | false | true | false | false | false | low |
28,684,992 | Formatting a RetroFit post request for rails API | <p>All,</p>
<p>I'm starting to user <code>RetroFit</code> for the first time, and it's pretty awesome. That said, I'm running into a road block when formatting a POST request.</p>
<p>The API I'm using specifies that to create a user, I need to send the user object like this:</p>
<pre><code>{
"user": {
"first_nam... | All, I'm starting to user RetroFit for the first time, and it's pretty awesome. That said, I'm running into a road block when formatting a POST request. The API I'm using specifies that to create a user, I need to send the user object like this: [CODE] I know that I can send a JsonObject in this form, but I'd instead l... | android|retrofit | 3 | 2015-02-23T22:43:32.227Z | 2,015 | 2 | 22 | 0 | 3,956 | 3 | 569 | 48 | 2 | 4 | true | false | true | false | false | false | low |
28,685,017 | Android In-App Billing please sign in to Google account error | <p>I integrated Google IAP Billing to an Android application.</p>
<p>I published my application in Alpha version on Google Play Store. I copied the public key that I added in my project on Android Studio. So, I use the good Public API Key with my IabHelper instance.</p>
<p>I signed an APK that I use on a device with ... | I integrated Google IAP Billing to an Android application. I published my application in Alpha version on Google Play Store. I copied the public key that I added in my project on Android Studio. So, I use the good Public API Key with my IabHelper instance. I signed an APK that I use on a device with an unique account t... | android|in-app-billing|android-billing | 0 | 2015-02-23T22:44:57.930Z | 2,015 | 2 | 22 | 0 | 298 | 2 | 1,117 | 61 | 3 | 0 | false | false | false | false | false | false | zero |
28,685,020 | Alarm with notification, notification wont pop up | <p>So I don't know why this code is not working. I wanted to make an "alarm" notification that would go off once a day. Just wanted to say I'm new to android. Changed up the code a bit couple of times but still wont work.</p>
<blockquote>
<p>Alarm method executes notification does too but I get this : -248/? D/Power... | So I don't know why this code is not working. I wanted to make an "alarm" notification that would go off once a day. Just wanted to say I'm new to android. Changed up the code a bit couple of times but still wont work. Alarm method executes notification does too but I get this : -248/? D/PowerManagerService﹕ releaseWak... | java|android|android-intent|notifications | 0 | 2015-02-23T22:45:15.950Z | 2,015 | 2 | 22 | 0 | 556 | 2 | 679 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
28,685,027 | Can Media Projection api take a screenshot from my home screen on lollipop? | <p>Still not understanding if this is possible without root or not.I think that if it is possible to record the screen on video, this is also possible, have anyone done it yet?</p>
<p><a href="https://github.com/googlesamples/android-ScreenCapture" rel="nofollow">Been learning some code from this project, but still no... | Still not understanding if this is possible without root or not.I think that if it is possible to record the screen on video, this is also possible, have anyone done it yet? Been learning some code from this project, but still nothing | android|screenshot|android-5.0-lollipop | 2 | 2015-02-23T22:45:34.923Z | 2,015 | 2 | 22 | 0 | 7,309 | 1 | 234 | 75 | 3 | 0 | false | false | true | false | false | false | low |
28,685,130 | java.lang.RuntimeException: Unable to instantiate activity ComponentInfo: java.lang.NullPointerException | <p>When I want to move on on other activity I have this Exception:</p>
<pre><code>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ua.kbv.adviser/ua.kbv.adviser.AdviceWithText}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
... | When I want to move on on other activity I have this Exception: [CODE] Manifest: [CODE] Main Activity: [CODE] Recieving Activity: [CODE] | java|android|android-activity|nullpointerexception | 2 | 2015-02-23T22:53:05.657Z | 2,015 | 2 | 22 | 0 | 1,064 | 1 | 136 | 104 | 4 | 4 | true | false | false | false | false | false | low |
28,685,198 | Communication Android with Arduino Buffer incomplete | <p>i'm trying to send some data from Arduino to Android device, i saw some examples but the communication is from Android to Arduino but i want to receive some data example: </p>
<pre><code>Serial.write("holamundo");
</code></pre>
<p>via OTG, the connection is sucessful but i have some problem with this code.</p>
... | i'm trying to send some data from Arduino to Android device, i saw some examples but the communication is from Android to Arduino but i want to receive some data example: [CODE] via OTG, the connection is sucessful but i have some problem with this code. [CODE] Im receiving in first iteration "hol", then i receive "hol... | java|android|arduino|buffer | 1 | 2015-02-23T22:56:57.153Z | 2,015 | 2 | 22 | 0 | 265 | 1 | 415 | 52 | 4 | 2 | true | false | false | false | false | false | low |
28,685,392 | How can I send my Database and other Objects from MainActivity to my Fragment? | <p>I've just started working with Android and I find this so hard to understand. What I have is three different fragments and I'm using a NavigationDrawerFragment to go between the fragments. I want to display information from my database in these different fragmets in ListViews.</p>
<p>This is the code in my <strong>... | I've just started working with Android and I find this so hard to understand. What I have is three different fragments and I'm using a NavigationDrawerFragment to go between the fragments. I want to display information from my database in these different fragmets in ListViews. This is the code in my MainActivity that c... | android|database|android-fragments | 0 | 2015-02-23T23:12:18.317Z | 2,015 | 2 | 23 | 0 | 125 | 1 | 899 | 78 | 3 | 2 | true | false | false | false | false | false | zero |
28,685,437 | Android: How to get the last id inserted ORMLite? | <p>I am having a problem in executing a query (with ORMLite) that adds a return to 'ultimaConfiguracao' in which to get the last 'id' inserted in the configuration table.</p>
<p>the search method the last configuration is as follows:</p>
<pre><code>public Integer buscaIdUltimaAtualizacao() throws SQLException {
... | I am having a problem in executing a query (with ORMLite) that adds a return to 'ultimaConfiguracao' in which to get the last 'id' inserted in the configuration table. the search method the last configuration is as follows: [CODE] Class using sqlite: [CODE] Context in which I perform operations: [CODE] Logcat: [CODE] | java|android|ormlite | 0 | 2015-02-23T23:15:51.103Z | 2,015 | 2 | 23 | 0 | 1,974 | 1 | 318 | 49 | 3 | 4 | true | false | false | false | false | false | zero |
28,685,446 | Android single fragment on backstack | <p>I have a main fragment (Fragment A) that is my app's home screen. I have a list of Fragments (Fragment B, Fragment C) that replace Fragment A when selected from a drawer. I want to keep the backstack at 1, so that no matter how many times the user navigates between B & C, the back button always takes them back t... | I have a main fragment (Fragment A) that is my app's home screen. I have a list of Fragments (Fragment B, Fragment C) that replace Fragment A when selected from a drawer. I want to keep the backstack at 1, so that no matter how many times the user navigates between B & C, the back button always takes them back to A. My... | android|android-fragments|back-stack | 3 | 2015-02-23T23:16:24.823Z | 2,015 | 2 | 23 | 0 | 183 | 0 | 900 | 36 | 3 | 1 | true | true | false | false | false | false | low |
28,685,500 | Create Deep Link for Mobile App | <p>I want to create a promotional link for my app - which i can distribute via email. When the user clicks on the link from the email, a webpage does this:</p>
<ol>
<li>Determines which OS (iOS or Android)</li>
<li>If app installed on device - opens the app</li>
<li>Else - takes user to AppStore (or) PlayStore (or) a ... | I want to create a promotional link for my app - which i can distribute via email. When the user clicks on the link from the email, a webpage does this: Determines which OS (iOS or Android) If app installed on device - opens the app Else - takes user to AppStore (or) PlayStore (or) a custom URL. I tried using the AppLi... | android|ios|redirect|deep-linking|applinks | 10 | 2015-02-23T23:21:07.223Z | 2,015 | 2 | 23 | 0 | 8,361 | 3 | 626 | 31 | 5 | 2 | true | false | true | false | true | false | medium |
28,685,582 | How to detect when another application is launched in Android | <p>I need to develop an application which prevents other applications from starting. Use case looks like this.</p>
<ol>
<li>User starts the application.</li>
<li>System prevents application from starting and displays a dialog with reason explanation instead.</li>
</ol>
<p>I found this application which does the simil... | I need to develop an application which prevents other applications from starting. Use case looks like this. User starts the application. System prevents application from starting and displays a dialog with reason explanation instead. I found this application which does the similar job, but for a different use case: htt... | android | -1 | 2015-02-23T23:28:15.570Z | 2,015 | 2 | 23 | 0 | 1,069 | 1 | 444 | 61 | 1 | 0 | false | false | false | false | false | true | negative |
28,685,662 | Map Toolbar issue in map v2 Android | <p>I am developing an Android project with a map displaying my current location and many markers on a map version2. My problem is that I cannot display Map Toolbar icon for map directions on my map with:</p>
<pre><code>mMap.getUiSettings().setMapToolbarEnabled(true);
</code></pre>
<p>Instead, I can set Compass, ZoomC... | I am developing an Android project with a map displaying my current location and many markers on a map version2. My problem is that I cannot display Map Toolbar icon for map directions on my map with: [CODE] Instead, I can set Compass, ZoomControls,MyLocationButton. I see that in UiSetting.class there is no method: isM... | java|android|google-maps-api-2 | 0 | 2015-02-23T23:35:25.527Z | 2,015 | 2 | 23 | 0 | 1,111 | 1 | 489 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
28,685,699 | Android Custom View Not Working | <p>Im trying a draw line chart. Accualy i m succed but when i want to show this view inside an activity im getting error (unexplained error) Im using android studio and all codes down here. </p>
<p>My activity is never load. Throwing error.</p>
<p><strong><em>View Class ;</em></strong></p>
<pre><code>import android.... | Im trying a draw line chart. Accualy i m succed but when i want to show this view inside an activity im getting error (unexplained error) Im using android studio and all codes down here. My activity is never load. Throwing error. View Class ; [CODE] Main Activity; [CODE] Main Activity Design Xml; [CODE] AndroidManifest... | java|android|view|android-studio | 0 | 2015-02-23T23:38:45.090Z | 2,015 | 2 | 23 | 0 | 1,047 | 2 | 353 | 31 | 4 | 5 | true | false | false | false | false | false | zero |
28,685,717 | are OEM preinstalled Android Apps automatically updated by Play store? | <p>It looks like an Android device hardware vendor will be shipping a new device with our App pre-installed. Today, we hand to our customer an APK and they publish it to the Play store. In the future, that same App will come pre-installed on this new device.</p>
<p>I don't know how they build their Android image or ho... | It looks like an Android device hardware vendor will be shipping a new device with our App pre-installed. Today, we hand to our customer an APK and they publish it to the Play store. In the future, that same App will come pre-installed on this new device. I don't know how they build their Android image or how they will... | android|google-play|versioning | 0 | 2015-02-23T23:41:03.237Z | 2,015 | 2 | 23 | 0 | 3,125 | 1 | 745 | 70 | 3 | 0 | false | false | true | false | false | false | zero |
28,685,872 | repo for all except some projects not all. is there a repo command to do this? | <p>I have tried googling this but havent found anything relavant to what im looking for.
I have a few projects in android that i have rebased to the tip. After doing that I would like to move all the remaining projects to the tip. </p>
<p>The below command will checkout all the projects to the tag.
repo forall -c "gi... | I have tried googling this but havent found anything relavant to what im looking for. I have a few projects in android that i have rebased to the tip. After doing that I would like to move all the remaining projects to the tip. The below command will checkout all the projects to the tag. repo forall -c "git checkout " ... | android|linux|git|repo | 2 | 2015-02-23T23:55:02.823Z | 2,015 | 2 | 23 | 0 | 12,490 | 2 | 409 | 78 | 4 | 0 | false | false | true | true | false | false | low |
28,685,945 | Difference between adb "install" command and "pm install" command? | <p>What's the difference between installing an app using the <code>install</code> command and using the package manager's <code>pm install</code> command? Do they do the exact same job? Does one command actually call the other in the back?</p>
<pre><code>adb install -r APK_FILE
adb shell pm install APK_FILE
</code></p... | What's the difference between installing an app using the install command and using the package manager's pm install command? Do they do the exact same job? Does one command actually call the other in the back? [CODE] | android|adb|android-package-managers | 18 | 2015-02-24T00:02:27.463Z | 2,015 | 2 | 0 | 1 | 37,624 | 1 | 217 | 66 | 3 | 1 | true | false | true | true | true | false | medium |
28,685,974 | Make a call log with call as option | <p>So here I am learning Android.</p>
<p>I know there is plenty of tutorials on how to make call logs out there. But I'm planning on doing one also, but with the opportunity of calling someone by pressing the on object item.</p>
<p>So I was wondering on how to create this.. Make a list (ListView) out of the call log.... | So here I am learning Android. I know there is plenty of tutorials on how to make call logs out there. But I'm planning on doing one also, but with the opportunity of calling someone by pressing the on object item. So I was wondering on how to create this.. Make a list (ListView) out of the call log. Was thinking from ... | android|listview|call|onclicklistener|calllog | 0 | 2015-02-24T00:04:36.923Z | 2,015 | 2 | 0 | 1 | 73 | 1 | 659 | 35 | 5 | 0 | false | false | false | false | false | false | zero |
28,686,030 | How to remove String from display | <p>I've got a problem.
I don't know how to remove String from my display (only this which state of ToggleButton is Off).</p>
<pre><code>public class Cal extends ActionBarActivity {
TextView display;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);... | I've got a problem. I don't know how to remove String from my display (only this which state of ToggleButton is Off). [CODE] display.setText(" "); removes everything, but I only want to remove clicked String... I tried SharedPreferences but I don't know how to do it right. Can you help me, please? | java|android | 1 | 2015-02-24T00:11:10.390Z | 2,015 | 2 | 0 | 1 | 68 | 2 | 298 | 33 | 2 | 1 | true | false | false | false | false | false | low |
28,686,048 | Make a countdown using TimePicker | <p>II am trying to shutdown the app in a selected hour using the timepicker. I have this code but it doesnt work yet. I press the button and the hour is selected, but it doesnt get power off.</p>
<pre><code> public class ContadorproActivity extends ActionBarActivity {
TimePicker timePicker;
Button contadorpro;
@Ove... | II am trying to shutdown the app in a selected hour using the timepicker. I have this code but it doesnt work yet. I press the button and the hour is selected, but it doesnt get power off. [CODE] And there is java.class: [CODE] } | android|countdown|timepicker | -1 | 2015-02-24T00:12:19.413Z | 2,015 | 2 | 0 | 1 | 536 | 2 | 229 | 33 | 3 | 2 | true | false | false | false | false | true | negative |
28,686,087 | Best Practice to Save GPS Coordinates | <p>I'm developing my first android app and one of the features is tracking the user's route. At another point in the app I'm going to have a review and bring up another map to plot the locations. I implemented the <a href="http://developer.android.com/reference/android/location/LocationListener.html" rel="nofollow">Loc... | I'm developing my first android app and one of the features is tracking the user's route. At another point in the app I'm going to have a review and bring up another map to plot the locations. I implemented the LocationListener and set the minDistance to 50 meter and everything is working correctly. In the onLocationCh... | android|gps|locationlistener | 0 | 2015-02-24T00:15:45.247Z | 2,015 | 2 | 0 | 1 | 869 | 0 | 581 | 37 | 3 | 0 | false | true | false | false | false | false | zero |
28,686,158 | Error using OpenCV Android libs in Android Studio | <p>I've followed <a href="https://stackoverflow.com/questions/17767557/how-to-use-opencv-in-android-studio-using-gradle-build-tool/22427267#22427267">this</a> stack overflow answer to try and get OpenCV android working in Android Studio. I have followed the directions with the following caveats:</p>
<ul>
<li>The build... | I've followed this stack overflow answer to try and get OpenCV android working in Android Studio. I have followed the directions with the following caveats: The build tools version in the opencv build.gradle is 19.1.0 instead of 19.0.1 Instead of looking like the picture provided after a gradle sync, my project structu... | android|opencv | 0 | 2015-02-24T00:21:12.360Z | 2,015 | 2 | 0 | 1 | 116 | 1 | 606 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
28,686,166 | Listview not scrolling in android Custom layout | <p>I am using a custom layout for having rounded corners.Please find the code for the custom layout.</p>
<pre><code>public class RoundedCornerLayout extends FrameLayout {
private final static float CORNER_RADIUS = 20.0f;
private Bitmap maskBitmap;
private Paint paint, maskPaint;
private float cornerRa... | I am using a custom layout for having rounded corners.Please find the code for the custom layout. [CODE] I have included a ListView inside this layout. But the ListView is not scrolling when added inside this layout. But if I change the layout to a FrameLayout the ListView scroll will work. The XML layout I am using, [... | android|android-layout|listview|android-listview|android-scroll | 0 | 2015-02-24T00:21:40.410Z | 2,015 | 2 | 0 | 1 | 214 | 0 | 349 | 47 | 5 | 2 | true | true | false | false | false | false | zero |
28,686,185 | OpenGL Shader Compiles on Desktop, But Not Android | <p>I recently started learning opengl and still don't know very much about it. I was following a tutorial and wrote these two shaders:</p>
<p>Vertex Shader:</p>
<pre><code>#version 400
in vec4 s_vPosition;
in vec4 s_vColor;
out vec4 color;
void main() {
color = s_vColor;
gl_Position = s_vPosition;
}
</code>... | I recently started learning opengl and still don't know very much about it. I was following a tutorial and wrote these two shaders: Vertex Shader: [CODE] Fragment Shader: [CODE] They compile and work just fine on the desktop with OpenGL 3, but don't compile with OpenGL ES 2 on Android. I tried checking the shader outpu... | java|android|opengl-es|shader | 0 | 2015-02-24T00:23:52.913Z | 2,015 | 2 | 0 | 1 | 153 | 1 | 469 | 50 | 4 | 2 | true | false | false | false | false | false | zero |
28,686,277 | Replacing fragment from fragment causes Fragments content to overlap | <p>I have a ListView inside a fragment. When i click an item on the List i want to "start" a new fragment using replace. This is the result. I was supposed to get only the <strong>BUTTON</strong>:</p>
<p><img src="https://i.stack.imgur.com/DOiiI.png" alt="enter image description here"></p>
<p>This is inside <strong>o... | I have a ListView inside a fragment. When i click an item on the List i want to "start" a new fragment using replace. This is the result. I was supposed to get only the BUTTON : This is inside onItemClick: [CODE] Inside VitaminFragment's onCreateView: [CODE] and VitaminFragment XML (supplement_properties_layout) [CODE]... | android|android-layout|android-fragments | 0 | 2015-02-24T00:33:01.807Z | 2,015 | 2 | 0 | 1 | 5,270 | 1 | 434 | 68 | 3 | 4 | true | false | true | false | false | false | zero |
28,686,315 | Android Authentication to PHP Server Methods | <p>I have an app that retrieves and submits tickets back to a PHP server. Each user has to log into the PHP server from the app somehow. I've read a lot of different methods in doing this such as OAUTH 2.0, but my question is why it needs to be so complicated? Why can't I just add the username and password (md5 or s... | I have an app that retrieves and submits tickets back to a PHP server. Each user has to log into the PHP server from the app somehow. I've read a lot of different methods in doing this such as OAUTH 2.0, but my question is why it needs to be so complicated? Why can't I just add the username and password (md5 or somethi... | php|android|authentication | 0 | 2015-02-24T00:36:44.680Z | 2,015 | 2 | 0 | 1 | 166 | 2 | 506 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
28,686,412 | How to Enable buttons when an Item is clicked/selected using AutoCompleteTextView | <p>There are 4 buttons which need to be disabled until an item resourced through an array is selected/clicked using </p>
<blockquote>
<p>AutoCompleteTextView</p>
</blockquote>
<p>I tried using the following code to perform this action. However, the buttons still remain enabled in all instances. Could someone correc... | There are 4 buttons which need to be disabled until an item resourced through an array is selected/clicked using AutoCompleteTextView I tried using the following code to perform this action. However, the buttons still remain enabled in all instances. Could someone correct me where I went wrong? [CODE] | android|android-activity | 0 | 2015-02-24T00:48:14.073Z | 2,015 | 2 | 0 | 1 | 133 | 1 | 302 | 81 | 2 | 1 | true | false | false | false | false | false | zero |
28,686,466 | How to extend ActionBarActivity and ListActivity? | <p>I need use two inheritance in one activity i.e.<code>ActionBarActivity</code> and <code>ListActivity</code>. How can i do? </p>
<p>Note: I have appcompat_v7 library</p>
<p>Here is my some snippet of code : </p>
<pre><code> android.support.v7.app.ActionBar actionBar = getSupportActionBar();
actionBar.setD... | I need use two inheritance in one activity i.e. ActionBarActivity and ListActivity . How can i do? Note: I have appcompat_v7 library Here is my some snippet of code : [CODE] | java|android|multiple-inheritance | 0 | 2015-02-24T00:52:38.213Z | 2,015 | 2 | 0 | 1 | 560 | 1 | 173 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
28,686,520 | Android HttpURLConnection Error | <p>I have an issue on my Android Project,</p>
<p>I want to call php page with get method and I use HttpURLConnection,
when I run this application give an error "app has stopped"</p>
<p>This is my code</p>
<pre><code> public void someFunction() throws IOException {
String inputLine = "";
URL url ... | I have an issue on my Android Project, I want to call php page with get method and I use HttpURLConnection, when I run this application give an error "app has stopped" This is my code [CODE] What should I do? Thanks. | java|android|android-studio | 1 | 2015-02-24T00:59:27.393Z | 2,015 | 2 | 0 | 1 | 1,704 | 2 | 216 | 31 | 3 | 1 | true | false | false | false | false | false | low |
28,686,557 | Java (Android) How to iterate with controls, in a LinearLayout with other LinearLayouts | <p>I have a LinearLayout with another 4 LinearLayouts..And these LinearLayouts have some checkboxes inside. I want to get the state (checked or not) of these checkboxes.. How can i do this?</p>
<p>regards!</p>
<p>Rafael</p> | I have a LinearLayout with another 4 LinearLayouts..And these LinearLayouts have some checkboxes inside. I want to get the state (checked or not) of these checkboxes.. How can i do this? regards! Rafael | java|android|eclipse | -1 | 2015-02-24T01:03:40.327Z | 2,015 | 2 | 1 | 1 | 177 | 1 | 202 | 87 | 3 | 0 | false | false | false | false | false | true | negative |
28,686,604 | Why Unity3D Application.CaptureScreenshot for Android doesn't work? | <p>I have tried all this links bellow:</p>
<p><a href="https://stackoverflow.com/questions/17809173/not-getting-image-from-persistant-path-in-android-using-unity3d">Not getting image from Persistant path in Android using unity3d</a></p>
<p><a href="https://developer.vuforia.com/forum/unity-3-extension-technical-discu... | I have tried all this links bellow: Not getting image from Persistant path in Android using unity3d https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/capture-screen-problem-androidhelp http://answers.unity3d.com/questions/731509/applicationcapturescreenshot-doesnt-save-anything.html I need to s... | c#|android|unity3d | 0 | 2015-02-24T01:08:40.500Z | 2,015 | 2 | 1 | 1 | 4,312 | 1 | 964 | 67 | 3 | 2 | true | false | true | false | false | false | zero |
28,686,721 | NoClassDefFoundError at runtime but class is in classes.dex, what givies? | <p>I have included a JAR file built from an Eclipse Android project, and I am referencing it in my Android Studio project like the following:</p>
<pre><code> compile files('libs/libraryproject.jar')
</code></pre>
<p>This works, and I am able to get auto-complete on code references. When I compile the APK everything ... | I have included a JAR file built from an Eclipse Android project, and I am referencing it in my Android Studio project like the following: [CODE] This works, and I am able to get auto-complete on code references. When I compile the APK everything is fine. I install and run, and then receive a no class def error: [CODE]... | java|android|eclipse|android-studio | 8 | 2015-02-24T01:21:40.367Z | 2,015 | 2 | 1 | 1 | 2,204 | 1 | 827 | 73 | 4 | 2 | true | false | false | false | false | false | medium |
28,686,743 | Tbmp Skeleton toolbar | <p>This is a really strange question but I haven't been able to figure this out.</p>
<p>How do I remove the <code>toolbar</code> in <code>Tbmp Skeleton</code>? I don't see it anywhere.</p>
<p><code>Tbmp Skeleton</code> is part of the downloads available from <code>Google Play Game Services</code>.</p>
<p>I've checke... | This is a really strange question but I haven't been able to figure this out. How do I remove the toolbar in Tbmp Skeleton ? I don't see it anywhere. Tbmp Skeleton is part of the downloads available from Google Play Game Services . I've checked everywhere but see no trace of a toolbar. I wonder if the Google Developers... | android|google-play|google-play-services|toolbar | 0 | 2015-02-24T01:24:21.580Z | 2,015 | 2 | 1 | 1 | 55 | 0 | 369 | 21 | 4 | 0 | false | true | false | false | false | false | zero |
28,686,795 | When using RowsFragment, does ObjectAdapter.setPresenterSelector do anything? | <p>I'm using <a href="https://developer.android.com/reference/android/support/v17/leanback/app/RowsFragment.html" rel="nofollow"><code>RowsFragment</code></a> with an <a href="https://developer.android.com/reference/android/support/v17/leanback/widget/ObjectAdapter.html" rel="nofollow"><code>ObjectAdapter</code></a> an... | I'm using RowsFragment with an ObjectAdapter and I spotted the method ObjectAdapter.setPresenterSelector . However, I've already set my PresenterSelector using RowsFragment.setPresenterSelector , so I'm not sure what ObjectAdapter.setPresenterSelector does. Does it do anything? | android|android-5.0-lollipop|android-support-library|television|android-tv | 2 | 2015-02-24T01:32:07.970Z | 2,015 | 2 | 1 | 1 | 310 | 1 | 278 | 77 | 5 | 0 | false | false | false | false | false | false | low |
28,686,822 | Programmatically switch USB between shared (disk mode) and mounted (charge only) | <p>I have an old HTC Desire S connected to my PC with a USB cable, and am doing development work on both a PC program and an Android app. It is convenient for me to have the PC program write some test data to the Android device's SD card (needs shared mode), and then for the Android app to read this test data from the ... | I have an old HTC Desire S connected to my PC with a USB cable, and am doing development work on both a PC program and an Android app. It is convenient for me to have the PC program write some test data to the Android device's SD card (needs shared mode), and then for the Android app to read this test data from the SD ... | android|usb|storage | 1 | 2015-02-24T01:36:46.427Z | 2,015 | 2 | 1 | 1 | 782 | 1 | 866 | 80 | 3 | 0 | false | false | false | false | false | false | low |
28,686,825 | SSL Handshake fails connecting to Google from Android client | <p>I'm using the standard piece of code </p>
<pre><code>URL url = new URL(sb.toString());
conn = (HttpsURLConnection) url.openConnection();
InputStreamReader in = new InputStreamReader(conn.getInputStream());
</code></pre>
<p>to connect to the Google Places API from an Android client. However I get this exception:</p... | I'm using the standard piece of code [CODE] to connect to the Google Places API from an Android client. However I get this exception: [CODE] Any ideas? I noticed this only happens when I use OkHttp for requests, but not for this particular request but in other parts of my app. So why would okhttp play a role here (as s... | java|android|ssl | 5 | 2015-02-24T01:36:59.310Z | 2,015 | 2 | 1 | 1 | 1,104 | 1 | 344 | 60 | 3 | 2 | true | false | false | false | false | false | low |
28,686,940 | How to check battery level in Android | <p>I'm trying to check the battery life of my phone for an app I'm writing. I'm currently trying to simply display it on the screen.
Whenever I check for the battery life, I always get the same value, which is the value at which the battery level was at when I started. If I waste battery (and I verify that a percentage... | I'm trying to check the battery life of my phone for an app I'm writing. I'm currently trying to simply display it on the screen. Whenever I check for the battery life, I always get the same value, which is the value at which the battery level was at when I started. If I waste battery (and I verify that a percentage po... | android | 0 | 2015-02-24T01:51:14.250Z | 2,015 | 2 | 1 | 1 | 570 | 1 | 496 | 37 | 1 | 1 | true | false | false | false | false | false | zero |
28,686,941 | How to get information from other Fragments in VIewpager | <p>I'm following this tutorial from Android Developers site
<a href="http://developer.android.com/training/animation/screen-slide.html" rel="nofollow">http://developer.android.com/training/animation/screen-slide.html</a></p>
<p>My situation is this...</p>
<p>I have N fragments that represent every page in my viewpage... | I'm following this tutorial from Android Developers site http://developer.android.com/training/animation/screen-slide.html My situation is this... I have N fragments that represent every page in my viewpager, every fragment is different and has its own layout. That's why I have different classes for each type of fragme... | android|android-fragments|android-viewpager | 0 | 2015-02-24T01:51:32.273Z | 2,015 | 2 | 1 | 1 | 385 | 3 | 487 | 56 | 3 | 0 | false | false | false | false | false | false | zero |
28,686,947 | Tap on floating context menu in appium | <p>I use appium to test my mobile app. Using <a href="http://appium.github.io/java-client/io/appium/java_client/TouchAction.html" rel="nofollow noreferrer">TouchAction</a>, I am able to get the appium driver to <a href="http://developer.android.com/design/patterns/gestures.html" rel="nofollow noreferrer">long press</a>... | I use appium to test my mobile app. Using TouchAction , I am able to get the appium driver to long press on edittext to bring up the contextual menu that lets the user "Select All","Copy","Paste" text. But now, I am not able to get the appium driver to tap on any of those options ["Select All","Copy","Paste"]. I tried ... | android|appium | 1 | 2015-02-24T01:52:16.497Z | 2,015 | 2 | 1 | 1 | 995 | 1 | 584 | 38 | 2 | 0 | false | false | false | false | false | false | low |
28,686,975 | Camera Error when after accessing video capture again, MediaStore.ACTION_VIDEO_CAPTURE | <p>I am experimenting on video recording on my project and I am accessing it using this. Also my test device is Nexus 5 version 4.4 KitKat.</p>
<pre><code>Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
takeVideoIntent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION,
ActivityI... | I am experimenting on video recording on my project and I am accessing it using this. Also my test device is Nexus 5 version 4.4 KitKat. [CODE] So, it directs me to the video intent. Then when i press back button to return the app to its main view, and launch the video recording again, I get "Camera Error: Can't c... | android|video|camera|video-recording | 0 | 2015-02-24T01:55:15.390Z | 2,015 | 2 | 1 | 1 | 393 | 1 | 991 | 86 | 4 | 3 | true | false | false | false | false | false | zero |
28,687,123 | Android program to login into Gmail through application | <p>I developed a desktop application using java. In that application, I used the following code to login into Gmail:</p>
<pre><code>Properties props = new Properties();
props.setProperty("mail.store.protocol", "imaps");
Session session = Session.getInstance(props, null);
Store store = session.getStore();
store.connect... | I developed a desktop application using java. In that application, I used the following code to login into Gmail: [CODE] Now I am trying to convert the same desktop application as an Android application. I used the same code for login. I run it in background process. But I am getting the following error: [CODE] Please ... | java|android|ssl|gmail | 0 | 2015-02-24T02:16:11.567Z | 2,015 | 2 | 2 | 1 | 19 | 0 | 356 | 55 | 4 | 2 | true | true | false | false | false | false | zero |
28,687,145 | How to implement ghost button in Android. Do NOT use multi layer. | <p>I'd like to implement Ghost button for Android without using multi layer of item. So I just need to define the stroke and text. The button body will transparent to the background. Anyone get some good solution?</p> | I'd like to implement Ghost button for Android without using multi layer of item. So I just need to define the stroke and text. The button body will transparent to the background. Anyone get some good solution? | android|android-button | 0 | 2015-02-24T02:19:47.123Z | 2,015 | 2 | 2 | 1 | 725 | 2 | 210 | 65 | 2 | 0 | false | false | false | false | false | false | zero |
28,687,161 | How to set margins as percentage of parent layout's size? | <p>I wanna set the margins as percentage.</p>
<p>like this..</p>
<pre><code>ViewGroup.MarginLayoutParams margin = new ViewGroup.MarginLayoutParams(iv_Dot.getLayoutParams());
margin.setMargins(30%, 20%, 0, 0);
</code></pre>
<p>But, setMargins method is to support only int type.</p>
<p>How can i set margins as per... | I wanna set the margins as percentage. like this.. [CODE] But, setMargins method is to support only int type. How can i set margins as percentage?. If, I get parent size. and then, calculate percentage. I can solve this problem. Is there another way? | android|percentage|margins | 0 | 2015-02-24T02:22:09.890Z | 2,015 | 2 | 2 | 1 | 165 | 1 | 250 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
28,687,205 | Font Awesome in Viewpager Previous Next | <p>I'm trying to set Font Awesome Arrows as the 'previous' and 'next' instead of my page titles. How do I accomplish this? I know how to manually add in the words, now How can I change that to the referenced arrows defined in my strings.xml?</p>
<pre><code> Typeface font = Typeface.createFromAsset( getAssets(),... | I'm trying to set Font Awesome Arrows as the 'previous' and 'next' instead of my page titles. How do I accomplish this? I know how to manually add in the words, now How can I change that to the referenced arrows defined in my strings.xml? [CODE] For future readers, this is what worked based on the answer provided: [COD... | java|android|fonts | 2 | 2015-02-24T02:28:24.323Z | 2,015 | 2 | 2 | 1 | 544 | 1 | 322 | 39 | 3 | 2 | true | false | false | false | false | false | low |
28,687,342 | NullPointerException on ArrayList in ArrayAdapter | <p>I have an array adapter for setting messages in a texting app. Upon either sending or receiving one message the app works fine. However, once a second message is sent or received, the app crashes and displays a NullPointerException error:</p>
<pre><code>java.lang.NullPointerException
at com.example.feas... | I have an array adapter for setting messages in a texting app. Upon either sending or receiving one message the app works fine. However, once a second message is sent or received, the app crashes and displays a NullPointerException error: [CODE] on line: holder.countryName.setText(countries.get(position).comment); The ... | android|nullpointerexception|android-arrayadapter | 0 | 2015-02-24T02:46:44.080Z | 2,015 | 2 | 2 | 1 | 149 | 1 | 564 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
28,687,362 | Displaying drawable object on android web app which is returned by PackageManager.getAppIcon("packageid") | <p>I'm trying to write an android web application that detects all installed apps on android.</p>
<pre><code>PackageManager pm = mContext.getPackageManager();
if (pm == null) {
return "can't get pm";
}
Drawable icon = pm.getApplicationIcon(packageName);
</code></pre>
<p>I tried with java imageview and it works f... | I'm trying to write an android web application that detects all installed apps on android. [CODE] I tried with java imageview and it works fine. However, the GUI is HTML code base. I tried to google it but I don't have any idea how to display other apps icon on my webview HTML. Could you please help me to solve this is... | java|javascript|android|html | 0 | 2015-02-24T02:48:46.587Z | 2,015 | 2 | 2 | 1 | 35 | 0 | 332 | 105 | 4 | 1 | true | true | false | false | false | false | zero |
28,687,436 | Can Android in-app purchase modify access permissions | <p>I am curious if it is possible to change an App's access permissions using an in-app purchase?</p>
<p>The App I am developing has access to network / internet and advertising.
To improve user's privacy, there will be an in-app purchase option that will disable ads and remove network / internet support.</p>
<p>I kn... | I am curious if it is possible to change an App's access permissions using an in-app purchase? The App I am developing has access to network / internet and advertising. To improve user's privacy, there will be an in-app purchase option that will disable ads and remove network / internet support. I know that I could do ... | android|permissions|in-app | 0 | 2015-02-24T02:56:40.250Z | 2,015 | 2 | 2 | 1 | 63 | 2 | 469 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
28,687,585 | Android Flip Template | <p>I am writing an Android app that resembles the flipping template of the app Flipboard. I am not allowed to use any public libraries.</p>
<p>I have written up to having a TextView that changes text when swiping in my app but I can't get around to animating the flipping animations.</p>
<ul>
<li>Do I split my canvas ... | I am writing an Android app that resembles the flipping template of the app Flipboard. I am not allowed to use any public libraries. I have written up to having a TextView that changes text when swiping in my app but I can't get around to animating the flipping animations. Do I split my canvas into two? Then scale them... | android|flip|flipview | 2 | 2015-02-24T03:16:24.563Z | 2,015 | 2 | 3 | 1 | 81 | 0 | 548 | 21 | 3 | 0 | false | true | false | false | false | false | low |
28,687,651 | Android Studio: when App is rerun settings do not default | <p>I clicked on "Run 'app'" in Android Studio and proceeded to run it on the emulator. Then I changed the setting of the app. </p>
<p>After a code change I again clicked on "Run 'app'" but the old settings were picked up. This was even the case with debug.</p>
<p>The only way to get settings to default again was to u... | I clicked on "Run 'app'" in Android Studio and proceeded to run it on the emulator. Then I changed the setting of the app. After a code change I again clicked on "Run 'app'" but the old settings were picked up. This was even the case with debug. The only way to get settings to default again was to uninstall from the em... | android|android-studio | 0 | 2015-02-24T03:26:50.470Z | 2,015 | 2 | 3 | 1 | 101 | 2 | 504 | 57 | 2 | 0 | false | false | false | false | false | false | zero |
28,687,680 | Android : can't add view programmatically in linearLayout android | <p>i have fragment that has scrollview as a parent of layout and in scrollview i have a LinearLayout . when i'm trying to programmatically add view to that LinearLayout but i get the error " The specified child already has a parent. You must call removeView() on the child's parent first."</p>
<p>this is my layout</p>
... | i have fragment that has scrollview as a parent of layout and in scrollview i have a LinearLayout . when i'm trying to programmatically add view to that LinearLayout but i get the error " The specified child already has a parent. You must call removeView() on the child's parent first." this is my layout [CODE] and this... | android|view|android-linearlayout|android-scrollview | 1 | 2015-02-24T03:30:55.353Z | 2,015 | 2 | 3 | 1 | 5,409 | 3 | 343 | 65 | 4 | 2 | true | false | true | false | false | false | low |
28,687,681 | MultiSelectListPreference crashes with dependency | <p>I have a CheckBoxPreference(key=time_remaining_vibrate) preference and a MultiSelectListPreference(key=time_remaining_vibrate_times), and I want the MultiSelectListPreference to be dependent on the CheckBoxPreference but whenever I add the "android:dependency="time_remaining_vibrate"" to the XML file, my app crashes... | I have a CheckBoxPreference(key=time_remaining_vibrate) preference and a MultiSelectListPreference(key=time_remaining_vibrate_times), and I want the MultiSelectListPreference to be dependent on the CheckBoxPreference but whenever I add the "android:dependency="time_remaining_vibrate"" to the XML file, my app crashes. O... | java|android|dependencies|preferences|android-multiselectlistpreference | 1 | 2015-02-24T03:31:37.147Z | 2,015 | 2 | 3 | 1 | 700 | 0 | 1,145 | 49 | 5 | 4 | true | true | false | false | false | false | low |
28,687,764 | IllegalStateException: The specified child already has a parent | <p>When switching back to a view that I've already seen, the Activity crashes and throws an IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.</p>
<p>The stacktrace:</p>
<pre><code>02-23 23:59:22.685 9254-9254/ldellabella3.gatech.edu.sustainabil... | When switching back to a view that I've already seen, the Activity crashes and throws an IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. The stacktrace: [CODE] The xml that I pass to setContentView() is simply [CODE] This is the activity that keep... | android|android-fragments | 2 | 2015-02-24T03:41:43.463Z | 2,015 | 2 | 3 | 1 | 6,470 | 1 | 373 | 63 | 2 | 4 | true | false | true | false | false | false | low |
28,687,832 | Universal Image Loader not loading image for specific link | <p>I started to use Universal Image Loader instead of Picasso, to avoid the image-not-loading problem. Now it emerges in Universal Image Loader too. It is the same problem with the same unique image, but not other images.</p>
<p>The problematic Image:</p>
<p><a href="http://luxproperty.kaytami.com/platform/media/image/... | I started to use Universal Image Loader instead of Picasso, to avoid the image-not-loading problem. Now it emerges in Universal Image Loader too. It is the same problem with the same unique image, but not other images. The problematic Image: http://luxproperty.kaytami.com/platform/media/image/jpeg/2015/01/4_4.jpg Other... | android|universal-image-loader | 2 | 2015-02-24T03:48:56.627Z | 2,015 | 2 | 3 | 1 | 3,179 | 2 | 941 | 58 | 2 | 2 | true | false | true | false | false | false | low |
28,687,922 | AutoResume CountDownTimer | <p><b>I have a <code>CountDownTimer</code> in my app. I am developing a game for my school project. And I am having a hard time on how I will autoresume my countdowntimer. </p>
<p>So this is how I want my countdowntimer to do:
Click imageview to trigger countdowntimer start (working) > click an imageview to stop/pause... | I have a CountDownTimer in my app. I am developing a game for my school project. And I am having a hard time on how I will autoresume my countdowntimer. So this is how I want my countdowntimer to do: Click imageview to trigger countdowntimer start (working) > click an imageview to stop/pause countdowntimer > autoresume... | android|eclipse|countdowntimer | 0 | 2015-02-24T04:00:18.283Z | 2,015 | 2 | 4 | 1 | 171 | 1 | 829 | 25 | 3 | 1 | true | false | false | false | false | false | zero |
28,687,935 | Android: how to pop up a modal activity from an background activity, which remains in background | <p>when a notification comes in, the main activity is at the background(not showing)</p>
<p>I want it to pop up a modal/dialog activity, but the main activity always shows as the background of the modal ...</p>
<p>basically what I did is using </p>
<pre><code>onReceiveNotificatioin(){
Intent mIntent = new ... | when a notification comes in, the main activity is at the background(not showing) I want it to pop up a modal/dialog activity, but the main activity always shows as the background of the modal ... basically what I did is using [CODE] how to prevent the main activity from showing itself as well? | android|popup | 0 | 2015-02-24T04:01:23.913Z | 2,015 | 2 | 4 | 1 | 1,080 | 2 | 295 | 96 | 2 | 1 | true | false | false | false | false | false | zero |
28,687,945 | How can I get all images in a page using JSoup then download into ImageView using Picasso? | <p>I'm trying to parse a webpage's images and show them in a grid using Picasso. My grid works fine with dummy data and with the sample that Picasso provided. My code doesn't yield anything in my grid (not even the error message).</p>
<p>I want to parse this particular webpage's image links so that I don't have to man... | I'm trying to parse a webpage's images and show them in a grid using Picasso. My grid works fine with dummy data and with the sample that Picasso provided. My code doesn't yield anything in my grid (not even the error message). I want to parse this particular webpage's image links so that I don't have to manually add t... | android|jsoup|picasso | 1 | 2015-02-24T04:02:50.123Z | 2,015 | 2 | 4 | 1 | 649 | 0 | 558 | 90 | 3 | 2 | true | true | false | false | false | false | low |
28,687,982 | issues on saving current state application data and resume activity | <p>I have a problem saving my application's data state. I want to open the last close state of my application when the continue button is clicked. Meaning when the user plays a game and leaves the game on any stage, the next time they open the game will start where they left off, when the continue button is clicked.
Pl... | I have a problem saving my application's data state. I want to open the last close state of my application when the continue button is clicked. Meaning when the user plays a game and leaves the game on any stage, the next time they open the game will start where they left off, when the continue button is clicked. Pleas... | java|android|xml|eclipse|android-activity | -2 | 2015-02-24T04:06:47.360Z | 2,015 | 2 | 4 | 1 | 41 | 1 | 419 | 67 | 5 | 0 | false | false | false | false | false | true | negative |
28,687,986 | Using a non swipe able viewpager to manage fragments instead of manually managing them | <p>So I recently started using fragments more in Android and I had lots of issues with fragment transactions and back stacks (especially with back navigation) so being the cheap guy that I am I said why not use a non swipeable view pager instead (since a viewpager does all the fragment managment for you). </p>
<p>My f... | So I recently started using fragments more in Android and I had lots of issues with fragment transactions and back stacks (especially with back navigation) so being the cheap guy that I am I said why not use a non swipeable view pager instead (since a viewpager does all the fragment managment for you). My fragments are... | java|android|view|android-viewpager|pager | 0 | 2015-02-24T04:07:39.660Z | 2,015 | 2 | 4 | 1 | 137 | 0 | 647 | 86 | 5 | 0 | false | true | false | false | false | false | zero |
28,688,011 | Remove duplicate library Android Studio | <p>I have multiple libraries in Android Studio. Two of them are Pushbots and Universal Image Loader. After updating the Pushbots library to the latest version it seems that Pushbots also contain Universal Image Loader inside it. So now there are two Universal Image Loader and the classes seems to have been duplicated a... | I have multiple libraries in Android Studio. Two of them are Pushbots and Universal Image Loader. After updating the Pushbots library to the latest version it seems that Pushbots also contain Universal Image Loader inside it. So now there are two Universal Image Loader and the classes seems to have been duplicated and ... | android|android-studio | 0 | 2015-02-24T04:11:43.393Z | 2,015 | 2 | 4 | 1 | 1,301 | 3 | 513 | 39 | 2 | 0 | false | false | false | false | false | false | zero |
28,688,109 | How to differentiate activity launch from launcher or up navigation | <p>I need a method to differentiate between activity launches from the launcher or another activity's up navigation. I have a setting preference to show a tutorial the next time the app is started, but the tutorial is called when I press up on the settings activity. </p>
<p>I've tried the methods described here (using... | I need a method to differentiate between activity launches from the launcher or another activity's up navigation. I have a setting preference to show a tutorial the next time the app is started, but the tutorial is called when I press up on the settings activity. I've tried the methods described here (using intent.getA... | android|android-intent|android-activity | 0 | 2015-02-24T04:21:44.283Z | 2,015 | 2 | 4 | 1 | 568 | 2 | 521 | 67 | 3 | 0 | false | false | false | false | false | false | zero |
28,688,129 | Parse: +1 to a number column for rating | <p>My Android app has a very simple love it or hate it rating system. I am using Parse for the ratings. </p>
<p>All is fine in terms of querying Parse for number of ratings and also putting new ratings into parse. </p>
<p>The problem I'm having is: </p>
<p>I have not found a way on Parse to +1 to a number column, so... | My Android app has a very simple love it or hate it rating system. I am using Parse for the ratings. All is fine in terms of querying Parse for number of ratings and also putting new ratings into parse. The problem I'm having is: I have not found a way on Parse to +1 to a number column, so what I have been doing is get... | android|parse-platform | 0 | 2015-02-24T04:23:13.877Z | 2,015 | 2 | 4 | 1 | 393 | 1 | 1,014 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
28,688,274 | My app freezes crashes when it's supposed to go to the next activity | <p>I don't know why the app crashes whenever it's supposed to go to the next <code>Activity</code>. I made a practice app that works as it should when using the same format. I uploaded the files to <a href="https://gist.github.com/asonofman" rel="nofollow noreferrer">gist.github</a>.</p>
<p><strong>The error is</stron... | I don't know why the app crashes whenever it's supposed to go to the next Activity . I made a practice app that works as it should when using the same format. I uploaded the files to gist.github . The error is [CODE] On line 164 of MainActivity.java: [CODE] EDIT: After Varun helped me, I get a new error which is [CODE] | android|android-activity|nullpointerexception | -4 | 2015-02-24T04:39:25.283Z | 2,015 | 2 | 4 | 1 | 129 | 1 | 320 | 68 | 3 | 3 | true | false | false | false | false | true | negative |
28,688,305 | Android touch continuous pressure logging | <p>I know that there exist the MotionEvent.getPressure() function which would return some pressure value from the touch screen. However, it only returns the pressure at one given time, for one given event. Is it possible to get the pressure with some sampling rate, i.e. no more motion events are triggered, but we still... | I know that there exist the MotionEvent.getPressure() function which would return some pressure value from the touch screen. However, it only returns the pressure at one given time, for one given event. Is it possible to get the pressure with some sampling rate, i.e. no more motion events are triggered, but we still me... | android|touch|pressure | 0 | 2015-02-24T04:42:34.873Z | 2,015 | 2 | 4 | 1 | 152 | 1 | 355 | 41 | 3 | 0 | false | false | false | false | false | false | zero |
28,688,327 | Why is DDMS no longer opening? | <p>Android DDMS was working the other day, but today (after 1.1 update) it always pops up an error message, that says to check the log file. The end of the log file is:</p>
<pre><code>!ENTRY org.eclipse.osgi 4 0 2015-02-23 20:36:49.944
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclip... | Android DDMS was working the other day, but today (after 1.1 update) it always pops up an error message, that says to check the log file. The end of the log file is: [CODE] The SDK seems up-to-date yet no ddms, Ubuntu 14.04. Is this a known bug or is there extra setup required for this update?? | java|eclipse|android-studio|ddms | 8 | 2015-02-24T04:45:01.610Z | 2,015 | 2 | 4 | 1 | 1,394 | 2 | 295 | 30 | 4 | 1 | true | false | false | false | false | false | medium |
28,688,370 | List ImageView repeating same image when shared | <p>I have a listView that is supposed to accept a shared message and image where the image is placed within the ImageView. This feature works for just the first message, but once an image is shared, each message received after that initial one becomes a copy of that same image even though the blank image placeholder wa... | I have a listView that is supposed to accept a shared message and image where the image is placed within the ImageView. This feature works for just the first message, but once an image is shared, each message received after that initial one becomes a copy of that same image even though the blank image placeholder was a... | android|imageview|android-arrayadapter|repeat | 0 | 2015-02-24T04:49:59.827Z | 2,015 | 2 | 4 | 1 | 201 | 1 | 1,248 | 47 | 4 | 2 | true | false | false | false | false | false | zero |
28,688,427 | Should I use an async task on DB Upgrade? - No enclosing instance of type DBAdapter is accessible | <p>I have a database, and I am upgrading the version now. The problem scenario is such that on the DB upgrade I have to read from a file and insert records into a primary database table. Before inserting a record I have to check if this record might already exist and based upon this make a decision of inserting or not ... | I have a database, and I am upgrading the version now. The problem scenario is such that on the DB upgrade I have to read from a file and insert records into a primary database table. Before inserting a record I have to check if this record might already exist and based upon this make a decision of inserting or not ins... | android | 0 | 2015-02-24T04:57:13.367Z | 2,015 | 2 | 4 | 1 | 55 | 1 | 693 | 97 | 1 | 3 | true | false | false | false | false | false | zero |
28,688,447 | Android unable to insert data into Mysql data base but data inserted in logcat | <p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><?php
$con=mysqli_connect("localhost","root","","cleanindia");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_conn... | [CODE] i have a code where i need to send edit text values to server.but no problem with that. but when i post data to server it is not updating in server.it is just updating in logcat.so please help me.thanks [CODE] | java|android|xml|json | 1 | 2015-02-24T04:59:44.040Z | 2,015 | 2 | 4 | 1 | 236 | 1 | 216 | 78 | 4 | 2 | true | false | false | false | false | false | low |
28,688,470 | Android: Google Maps API - Change position of maps toolbar | <p>I'm using the Google Maps API for Android. The following code enables the maps toolbar in the bottom right corner when I click on a Marker</p>
<pre><code>googleMap.getUiSettings().setMapToolbarEnabled(true);
</code></pre>
<p>However, I'd like this maps toolbar to appear in the TOP RIGHT corner of the map, rather ... | I'm using the Google Maps API for Android. The following code enables the maps toolbar in the bottom right corner when I click on a Marker [CODE] However, I'd like this maps toolbar to appear in the TOP RIGHT corner of the map, rather than the default bottom right position. How would I do this? | java|android|google-maps|google-maps-android-api-2 | 3 | 2015-02-24T05:01:42.043Z | 2,015 | 2 | 5 | 1 | 9,513 | 3 | 295 | 58 | 4 | 1 | true | false | true | false | false | false | low |
28,688,582 | retrofit forcing ui to freeze | <p>I recently started using retrofit libraries.. long story short, my UI is getting frozen, until all retrofit calls are completed.. </p>
<p>point to be noted <strong>in the place of retrofit if you are using async task then the UI has no problem there is no freezing..</strong></p>
<p>i tried calling the retrofit me... | I recently started using retrofit libraries.. long story short, my UI is getting frozen, until all retrofit calls are completed.. point to be noted in the place of retrofit if you are using async task then the UI has no problem there is no freezing.. i tried calling the retrofit methods in do in background no change...... | android|android-asynctask|retrofit | 3 | 2015-02-24T05:12:32.390Z | 2,015 | 2 | 5 | 1 | 846 | 0 | 553 | 29 | 3 | 2 | true | true | false | false | false | false | low |
28,688,634 | Sending a message in what's app particular number through my app | <p>Hello Friends i Want to Send a message in what's app particular number define by me in my java file. i followed this <a href="https://stackoverflow.com/questions/15462874/sending-message-through-whatsapp">link</a> and include below code in my project.</p>
<pre><code>public void sendWhatsAppMessageTo(String whatsapp... | Hello Friends i Want to Send a message in what's app particular number define by me in my java file. i followed this link and include below code in my project. [CODE] and it throws the cursorindexoutofboundexception:Index 0 requested with size of 0.please help me to solve this problem | android|android-intent|social-networking|sharing|whatsapp | 1 | 2015-02-24T05:17:21.353Z | 2,015 | 2 | 5 | 1 | 534 | 0 | 285 | 64 | 5 | 1 | true | true | false | false | false | false | low |
28,688,647 | java.lang.IllegalStateException: Could not execute method of the activity caused by Invocation and NPE error | <p>I cant seem to figure out how how to fix the NPE error. Is it because I have not included the ID column when inserting? or is it because the db is returning a data type which is not a long (or int)?</p>
<p>The Activity:</p>
<pre><code>public class CreateActivity extends ActionBarActivity {
Database db;
Sim... | I cant seem to figure out how how to fix the NPE error. Is it because I have not included the ID column when inserting? or is it because the db is returning a data type which is not a long (or int)? The Activity: [CODE] The Database File [CODE] The logcat: [CODE] | java|android|sqlite | 0 | 2015-02-24T05:19:08.397Z | 2,015 | 2 | 5 | 1 | 104 | 3 | 263 | 108 | 3 | 3 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.