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,529,382 | Android date format parse throwing an Unhandled Exception | <p>I'm storing dates in a database as a single <code>string</code> in the format "2 15 2015" (presumably "M d yyyy"?). <code>strDate</code> in the code below contains the return value of a method that grabs the date. I want to parse the date so as to set a <code>datepicker</code>. Based on the examples in <a href="ht... | I'm storing dates in a database as a single string in the format "2 15 2015" (presumably "M d yyyy"?). strDate in the code below contains the return value of a method that grabs the date. I want to parse the date so as to set a datepicker . Based on the examples in Java string to date conversion I've created the follow... | java|android|date | 1 | 2015-02-15T18:13:41.300Z | 2,015 | 2 | 18 | 6 | 3,702 | 2 | 455 | 57 | 3 | 2 | true | false | true | false | false | false | low |
28,529,392 | Refresh an Arraylist | <p>I have my <code>arraylist</code> taking my data from my sqlite database, when i deleted the data inside the sqlitedatabase i want to refresh the list i did this but it crash:</p>
<pre><code> SQLiteDatabase db;
ListView lv;
ArrayList<String> your_array_list = new ArrayList<String>();
... | I have my arraylist taking my data from my sqlite database, when i deleted the data inside the sqlitedatabase i want to refresh the list i did this but it crash: [CODE] i think it's because i'am refreshing the adapter but i didn't do anything to it | android | 0 | 2015-02-15T18:14:33.947Z | 2,015 | 2 | 18 | 6 | 1,519 | 1 | 248 | 20 | 1 | 1 | true | false | false | false | false | false | zero |
28,529,474 | RecyclerView hides Toolbar and layout when SoftKeyboard is visible | <p>I've a problem exactly like this <a href="https://stackoverflow.com/questions/27212580/recyclerview-hides-actionbar-when-softkeyboard-is-opened">LINK</a>, same situation and same components in layouts.
The only difference is the toolbar, but obviously i'm using appcompat and the behaviour is the same.</p>
<p>Attent... | I've a problem exactly like this LINK , same situation and same components in layouts. The only difference is the toolbar, but obviously i'm using appcompat and the behaviour is the same. Attention, not only the toolbar is hided, but also the upper part of the recyclerview. Is like if the entire fragment is translated ... | android|toolbar|android-softkeyboard|android-recyclerview | 1 | 2015-02-15T18:22:53.673Z | 2,015 | 2 | 18 | 6 | 2,610 | 2 | 740 | 66 | 4 | 3 | true | false | true | false | false | false | low |
28,529,477 | How detect the devices connected to wif network | <p><strong>Hello</strong></p>
<p><strong>Have you an idea how to detect the devices connected to a wifi network?</strong>
I used this java code source to detect the devices connected to my home network: </p>
<pre><code>import java.io.IOException;
import java.net.ServerSocket;
import android.net.nsd.NsdManager;
imp... | Hello Have you an idea how to detect the devices connected to a wifi network? I used this java code source to detect the devices connected to my home network: [CODE] But I have this result. In this result the port number and the host name is null. [CODE] Please help me. | android|networking|detect|device | 0 | 2015-02-15T18:23:05.670Z | 2,015 | 2 | 18 | 6 | 928 | 1 | 270 | 47 | 4 | 2 | true | false | false | false | false | false | zero |
28,529,495 | Transparent actionbar is not transparent | <p>I would like to have a transparent actionbar with only two button on left and right. </p>
<p>for that I wrote in my Activity : </p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
supportRequestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
super.onCreate(savedInstanceState);
if(get... | I would like to have a transparent actionbar with only two button on left and right. for that I wrote in my Activity : [CODE] in style.xml I have : [CODE] and my action bar layout is : [CODE] But I always have a kind of black / dark grey background even if the overlay setting works correctly. What did I miss? UPDATE Af... | android|android-layout|android-actionbar|android-actionbar-compat | 2 | 2015-02-15T18:24:58.860Z | 2,015 | 2 | 18 | 6 | 372 | 1 | 469 | 40 | 4 | 4 | true | false | false | false | false | false | low |
28,529,661 | Can't get ParseObject values | <p>Followed the online Parse docs to get the value but Android Studio won't recognize the <code>getInt</code> method & says - <code>Cannot resolve method 'getInt(java.lang.String)</code></p>
<p>Shouldn't I be able to access the object inside the done callback? Currently the line is commented out because I can't bu... | Followed the online Parse docs to get the value but Android Studio won't recognize the getInt method & says - Cannot resolve method 'getInt(java.lang.String) Shouldn't I be able to access the object inside the done callback? Currently the line is commented out because I can't build the project due to the error? [CODE] | android|parse-platform | 0 | 2015-02-15T18:39:06.543Z | 2,015 | 2 | 18 | 6 | 301 | 2 | 319 | 28 | 2 | 1 | true | false | false | false | false | false | zero |
28,529,669 | Listview shows duplicated items when scrolling | <p>I am wondering about this problem that I am encountering in Android.</p>
<p>I populate the <code>ArrayAdapter</code> from <code>ArrayList</code>. The entries are fine and unique but when I scroll down the <code>listview</code> it keeps reading the existing elements. </p>
<p>How can I avoid this?</p>
<p>Here is my... | I am wondering about this problem that I am encountering in Android. I populate the ArrayAdapter from ArrayList . The entries are fine and unique but when I scroll down the listview it keeps reading the existing elements. How can I avoid this? Here is my code. [CODE] | android|listview | 2 | 2015-02-15T18:39:39.857Z | 2,015 | 2 | 18 | 6 | 2,022 | 1 | 267 | 46 | 2 | 1 | true | false | false | false | false | false | low |
28,529,701 | Get view of AccessibilityNodeInfo to create overlay | <p>I'm writing a <code>AccessibilityService</code> and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all <code>AccessibilityNodeInfo</code> objects from the current activity, but I have no idea how to get the views from ... | I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overl... | android|service|accessibility|accessibilityservice | 7 | 2015-02-15T18:41:48.307Z | 2,015 | 2 | 18 | 6 | 3,329 | 2 | 957 | 51 | 4 | 0 | false | false | true | false | false | false | medium |
28,529,716 | GCM not sending or receiving - Android | <p>I have uploaded an .apk to the Play Store and have come across the following problem; The GCM is not sending or receiving notifications. </p>
<p>When I run the app from Android Studio, the GCM works fine. It sends and receives notifications. However when I download the release version of my app to my phone, the GCM... | I have uploaded an .apk to the Play Store and have come across the following problem; The GCM is not sending or receiving notifications. When I run the app from Android Studio, the GCM works fine. It sends and receives notifications. However when I download the release version of my app to my phone, the GCM does not wo... | android|google-cloud-messaging|google-play-services | 0 | 2015-02-15T18:42:56.503Z | 2,015 | 2 | 18 | 6 | 440 | 1 | 851 | 38 | 3 | 0 | false | false | false | false | false | false | zero |
28,529,775 | I get 404 response trying to access a jsp page in my localhost server from my Android app | <p>I have an android project with one main activity.
And i want it to access a JSP page inside my localhost server. </p>
<p>I have a tomcat 7 in my pc and, in /webapps/ i have a folder called JSPyDB where my ejemplo.jsp page is stored.(i get to access the jsp page from the browser so i can see that the server runs per... | I have an android project with one main activity. And i want it to access a JSP page inside my localhost server. I have a tomcat 7 in my pc and, in /webapps/ i have a folder called JSPyDB where my ejemplo.jsp page is stored.(i get to access the jsp page from the browser so i can see that the server runs perfectly). So ... | android|jsp|url|localhost | 0 | 2015-02-15T18:48:42.703Z | 2,015 | 2 | 18 | 6 | 121 | 1 | 652 | 89 | 4 | 1 | true | false | false | false | false | false | zero |
28,529,784 | Extra padding in custom actionbar view | <p>Using the new Theme.Material, how do I remove this extra padding in my custom actionbar view?</p>
<p><strong>My custom actionbar layout</strong>
</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_... | Using the new Theme.Material, how do I remove this extra padding in my custom actionbar view? My custom actionbar layout [CODE] My Activity [CODE] | android | 1 | 2015-02-15T18:49:41.493Z | 2,015 | 2 | 18 | 6 | 70 | 0 | 146 | 38 | 1 | 2 | true | true | false | false | false | false | low |
28,529,809 | Having trouble with Parse query in Android | <p>I'm using a Parse query to retrieve a profil pic and a user name, and then adding to a list, but it seems that's not working the list is always Empty.</p>
<p>Why instructions inside the done function works, and when I use them out of the done function it doesn't work</p>
<p>here is my code :</p>
<pre><code>ParseQ... | I'm using a Parse query to retrieve a profil pic and a user name, and then adding to a list, but it seems that's not working the list is always Empty. Why instructions inside the done function works, and when I use them out of the done function it doesn't work here is my code : [CODE] I'm not able to retrieve the user ... | android|parse-platform | 0 | 2015-02-15T18:51:30.787Z | 2,015 | 2 | 18 | 6 | 112 | 0 | 343 | 42 | 2 | 1 | true | true | false | false | false | false | zero |
28,529,870 | How to Zoom a Text View in Scroll View? | <p>I have seen a lots of code here which is helpful to zoom your <code>textview</code> but none of them work with my text because it is within <code>scrollview</code>. How can I get rid of this problem? </p>
<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.MotionEvent;
import android.vi... | I have seen a lots of code here which is helpful to zoom your textview but none of them work with my text because it is within scrollview . How can I get rid of this problem? [CODE] | java|android|textview|scrollview|zooming | 1 | 2015-02-15T18:57:21.640Z | 2,015 | 2 | 18 | 6 | 4,531 | 4 | 181 | 39 | 5 | 1 | true | false | true | false | false | false | low |
28,529,907 | how to customize parse push notification to send uri in android application? | <p>I want to use parse push notification feature in my android application.
I put my parse push notification code in my first activity (splash activity).</p>
<pre><code>import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import com.parse.ParseAnalytics;
impo... | I want to use parse push notification feature in my android application. I put my parse push notification code in my first activity (splash activity). [CODE] and here is my ParseApplication : [CODE] and here is my manifest: [CODE] now I can easily send push notification in application with json like this: [CODE] here I... | java|android|notifications|push | 1 | 2015-02-15T19:01:50.003Z | 2,015 | 2 | 19 | 6 | 2,325 | 1 | 498 | 76 | 4 | 4 | true | false | false | false | false | false | low |
28,529,925 | How is it possible to make this app working with mobile browsers? | <p>I am working on an app for drawing using HTML 5 Canvas the problem that it's working well on computer browser like this picture
<a href="http://s28.postimg.org/z0ytnva98/problem.jpg" rel="nofollow">http://s28.postimg.org/z0ytnva98/problem.jpg</a></p>
<p>I want to make it working on mobile browser (never mind workin... | I am working on an app for drawing using HTML 5 Canvas the problem that it's working well on computer browser like this picture http://s28.postimg.org/z0ytnva98/problem.jpg I want to make it working on mobile browser (never mind working on both, mobile browser is what I want). the problem in my code concerning the Java... | javascript|jquery-mobile|html5-canvas|android-canvas|mobile-browser | 0 | 2015-02-15T19:03:50.233Z | 2,015 | 2 | 19 | 6 | 66 | 1 | 587 | 65 | 5 | 4 | true | false | false | false | false | false | zero |
28,529,961 | Manually select option in Android AlerDialog | <p>I have an AlertDialog with multi selection, which has a default "All" option, whereby if all other options are deselected this option will be selected while the dialog is still open.</p>
<p>However, I'm not sure how to manually select the default option. At the moment I have</p>
<pre><code>List<T> selection ... | I have an AlertDialog with multi selection, which has a default "All" option, whereby if all other options are deselected this option will be selected while the dialog is still open. However, I'm not sure how to manually select the default option. At the moment I have [CODE] Is there a way to do this? | android|android-alertdialog|multi-select | 0 | 2015-02-15T19:07:26.340Z | 2,015 | 2 | 19 | 6 | 94 | 1 | 302 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
28,529,977 | Importing bone animations to android? | <p>Supose i ´ve got a walking character animation, how do i import it from android.
I know that you can do sprite with xml files (although it isnt smooth), but imnot really sure how to do it with bone animations.</p>
<p>Or is there a way to make some basic character animation in android? </p>
<p>If it helps im using... | Supose i ´ve got a walking character animation, how do i import it from android. I know that you can do sprite with xml files (although it isnt smooth), but imnot really sure how to do it with bone animations. Or is there a way to make some basic character animation in android? If it helps im using Unity. | android|animation | 0 | 2015-02-15T19:08:37.203Z | 2,015 | 2 | 19 | 6 | 231 | 1 | 306 | 37 | 2 | 0 | false | false | false | false | false | false | zero |
28,530,036 | Please help: MediaRouteButton could not be instantiated | <p>I'm very new to Android programming, so any suggestions are welcome.</p>
<p>I'm trying to create an app that would work with a Chromecast device. I followed the example (CastHelloText) and that worked fine. I could send message to a custom app as well. Now I'm trying to move the cast button into the layout (instead... | I'm very new to Android programming, so any suggestions are welcome. I'm trying to create an app that would work with a Chromecast device. I followed the example (CastHelloText) and that worked fine. I could send message to a custom app as well. Now I'm trying to move the cast button into the layout (instead of in the ... | android|chromecast|google-cast | 0 | 2015-02-15T19:13:21.850Z | 2,015 | 2 | 19 | 6 | 824 | 1 | 493 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
28,530,044 | sqlite database no columns | <p>I'm trying to make a sqlite data base there is my code </p>
<pre><code>public class SQliteHelper extends SQLiteOpenHelper {
public static final int DATABASE_VERSION = 1;
public static final String DATABASE_NAME = "moneyDB";
public static final String TABLE_MONEY = "money", KEY_DATE = "date", KEY_VALUE =... | I'm trying to make a sqlite data base there is my code [CODE] and this is my add method [CODE] every time I run the app I get an error [CODE] | database|sqlite|android-sqlite | 1 | 2015-02-15T19:14:54.377Z | 2,015 | 2 | 19 | 6 | 37 | 1 | 141 | 26 | 3 | 3 | true | false | false | false | false | false | low |
28,530,112 | Can't read file stored in res/raw | <p>I'm unable to successfully get the contents of a public key file that I have stored in my res/raw directory. </p>
<p>My objective is to read the contents of this file into a <code>File</code> object that I will then pass along to another function that requires a <code>File</code> object as one of its parameters. </... | I'm unable to successfully get the contents of a public key file that I have stored in my res/raw directory. My objective is to read the contents of this file into a File object that I will then pass along to another function that requires a File object as one of its parameters. It's important to note that this file co... | android|android-studio | 0 | 2015-02-15T19:21:48.763Z | 2,015 | 2 | 19 | 6 | 332 | 1 | 565 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
28,530,147 | ViewPager setOffscreenPageLimit | <p>My <code>ViewPager</code> with <code>setOffscreenPageLimit(3)</code> is retarding when user scrolling fragments. I was set <code>setOffscreenPageLimit(8)</code> (maximum limit of pages) <code>ViewPager</code> became scrolling smoothly but <code>Activity</code> with this <code>ViewPager</code> became loading more tha... | My ViewPager with setOffscreenPageLimit(3) is retarding when user scrolling fragments. I was set setOffscreenPageLimit(8) (maximum limit of pages) ViewPager became scrolling smoothly but Activity with this ViewPager became loading more than 3 seconds. Can anyone prompt me how to solve this problem? TraceView Traceview ... | android|android-fragments|android-viewpager | 1 | 2015-02-15T19:25:43.880Z | 2,015 | 2 | 19 | 6 | 1,560 | 1 | 456 | 31 | 3 | 1 | true | false | false | false | false | false | low |
28,530,170 | GCM not working for release .apk - Android | <p>I have been using GCM without problem while debugging my app. Whenever I generate a signed .apk for release, the GCM stops working. It seems as if no data is sent or received by the GCM. I am completely lost because whenever I run the app to debug it to see the problem, it works fine since the GCM works for the debu... | I have been using GCM without problem while debugging my app. Whenever I generate a signed .apk for release, the GCM stops working. It seems as if no data is sent or received by the GCM. I am completely lost because whenever I run the app to debug it to see the problem, it works fine since the GCM works for the debug v... | android|google-cloud-messaging|google-play-services|android-c2dm | 2 | 2015-02-15T19:28:14.713Z | 2,015 | 2 | 19 | 6 | 1,043 | 0 | 690 | 42 | 4 | 0 | false | true | false | false | false | false | low |
28,530,184 | Broadcast Receiver using RINGER_MODE_CHANGED | <p>I am trying to update and log the changed modes for the ringer into a textview. Thanks for the Help!</p>
<p>Here is my receiver Manifest: (no permissions required from what I found)</p>
<pre><code> <receiver android:name="RingTypeMainActivity$RingTypeBroadcastReceiver" >
<intent-filter>
... | I am trying to update and log the changed modes for the ringer into a textview. Thanks for the Help! Here is my receiver Manifest: (no permissions required from what I found) [CODE] I am using a Broadcastreceiver inside my Activity as such: When I run the app nothing gets appended to the textview (txtResults). [CODE] | java|android | 0 | 2015-02-15T19:29:41.600Z | 2,015 | 2 | 19 | 6 | 1,057 | 1 | 318 | 44 | 2 | 2 | true | false | false | false | false | false | zero |
28,530,332 | how to get image from gallery | <p>I'm trying to get image from the gallery of my device ...
I'm having a dialog that has a button that initializes the gallery after the user chooses a photo the path of it should be returned ...</p>
<blockquote>
<p>but the path is returned as null</p>
</blockquote>
<p>that's how I do it - </p>
<pre><code>Inten... | I'm trying to get image from the gallery of my device ... I'm having a dialog that has a button that initializes the gallery after the user chooses a photo the path of it should be returned ... but the path is returned as null that's how I do it - [CODE] In my onActivityResult - [CODE] And that's my getPath function - ... | android|image-gallery|onactivityresult | 1 | 2015-02-15T19:44:36.797Z | 2,015 | 2 | 19 | 6 | 4,426 | 2 | 326 | 29 | 3 | 3 | true | false | true | false | false | false | low |
28,530,385 | Receiving .mp4 over TCP socket (C++/Java) | <p>I'm working on a project which requires transmitting a MP4 video from a Java (Android) server to a C++ (Visual studio) client.</p>
<p>Everything works fine if I use a Java Client, but with the C++ client I receive a file 1 byte larger that the file sent. As a result, the file won't obviously open. I don't know if t... | I'm working on a project which requires transmitting a MP4 video from a Java (Android) server to a C++ (Visual studio) client. Everything works fine if I use a Java Client, but with the C++ client I receive a file 1 byte larger that the file sent. As a result, the file won't obviously open. I don't know if the problem ... | java|android|c++|file|sockets | 0 | 2015-02-15T19:50:01.873Z | 2,015 | 2 | 19 | 6 | 1,066 | 0 | 1,439 | 41 | 5 | 2 | true | true | false | false | false | false | zero |
28,530,429 | Does creating a method for each small functionality in Java deteriorates performance? | <p>I work on Android and Java almost all the time. I am still at an intermediate level of experience in both. But whenever I code, I try follow and implement all the <strong>OOP</strong> concepts while programming even for small applications or programs. </p>
<blockquote>
<p><strong>I have a question that does creat... | I work on Android and Java almost all the time. I am still at an intermediate level of experience in both. But whenever I code, I try follow and implement all the OOP concepts while programming even for small applications or programs. I have a question that does creating a METHOD for each functionality (data passing, d... | java|android|performance|oop|design-patterns | 0 | 2015-02-15T19:53:57.313Z | 2,015 | 2 | 19 | 6 | 40 | 1 | 558 | 85 | 5 | 0 | false | false | false | false | false | false | zero |
28,530,479 | Google IN-APP Billing Error | <p>I just had a weird experience. I was able to purchase a managed InApp item multiple times on the same device and same account. When I went into Google wallet it was showing all 5 charges? Worse Google Play returns the item was not purchased when the app does an inquiry. InApp was working fine when I first published ... | I just had a weird experience. I was able to purchase a managed InApp item multiple times on the same device and same account. When I went into Google wallet it was showing all 5 charges? Worse Google Play returns the item was not purchased when the app does an inquiry. InApp was working fine when I first published it ... | android|in-app-purchase|in-app-billing | 0 | 2015-02-15T19:58:54.920Z | 2,015 | 2 | 19 | 6 | 536 | 1 | 1,101 | 27 | 3 | 0 | false | false | false | false | false | false | zero |
28,530,489 | Open a website inside app using corona | <p>I want the user to open website / web page inside app and not in browser. I have a button, which should open a webpage on click.</p>
<p>I am using native.showWebPopup function for this in main.lua. The problem that I am getting is, a white colored page flashes and disappears immediately. </p>
<p>Below is my code. ... | I want the user to open website / web page inside app and not in browser. I have a button, which should open a webpage on click. I am using native.showWebPopup function for this in main.lua. The problem that I am getting is, a white colored page flashes and disappears immediately. Below is my code. Any help is greatly ... | android|lua|web|coronasdk | 0 | 2015-02-15T19:59:45.227Z | 2,015 | 2 | 19 | 6 | 636 | 1 | 347 | 38 | 4 | 1 | true | false | false | false | false | false | zero |
28,530,563 | Preventation to sleep screen in the service | <p>How can i keep screen awake when application not running ?(in service)<br>
I am using this code but it's not work </p>
<p>Activity : </p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
... | How can i keep screen awake when application not running ?(in service) I am using this code but it's not work Activity : [CODE] Service : [CODE] | android | 0 | 2015-02-15T20:07:42.953Z | 2,015 | 2 | 20 | 6 | 20 | 0 | 144 | 43 | 1 | 2 | true | true | false | false | false | false | zero |
28,530,586 | Google Play Services Version for Android Studio | <p>I'm in the process of switching over to Android Studio from Eclipse. Adding GPServices to my project was pretty straight forward in Eclipse. Just make sure the latest SDK was installed in the SDK manager and copy the library into my workspace from the SDK bundle.</p>
<p>With AS, I have to type the following line ... | I'm in the process of switching over to Android Studio from Eclipse. Adding GPServices to my project was pretty straight forward in Eclipse. Just make sure the latest SDK was installed in the SDK manager and copy the library into my workspace from the SDK bundle. With AS, I have to type the following line into my modul... | android|android-studio|google-play-services | 4 | 2015-02-15T20:09:17.970Z | 2,015 | 2 | 20 | 6 | 3,568 | 2 | 646 | 47 | 3 | 0 | false | false | true | false | false | false | low |
28,530,587 | How to get the External/Public IP Address in android? | <p>I Couldn't get any IP when I run the following method:</p>
<pre><code>System.out.println("IP: " +getIpAddress());
public String getIpAddress()
{
String ip = null;
try
{
HttpClient httpclient = new DefaultHttpClient();
//HttpGet httpget = new HttpGet("http://ip2country.sourceforge.net/ip2c.ph... | I Couldn't get any IP when I run the following method: [CODE] I have already added thw following to the manifest file: [CODE] I just got the following printed out!: [CODE] Can any one tell me why? where is the wrong in this code? Edit: Just for the others, the answer is by using thread as shown bellow: [CODE] To start ... | java|android|ip|external|public | 0 | 2015-02-15T20:09:26.687Z | 2,015 | 2 | 20 | 6 | 25 | 0 | 330 | 53 | 5 | 5 | true | true | false | false | false | false | zero |
28,530,700 | How to insert values in sqlite? | <p>My question is how do I store values in sqlite database that i am receiving from web service. I am new here in Android. I need some help. Thanks in advance. I searched for an appropriate answer for days now with no solution at all. </p>
<p>Below <code>responseStr</code> is the Object I am receiving as a response fr... | My question is how do I store values in sqlite database that i am receiving from web service. I am new here in Android. I need some help. Thanks in advance. I searched for an appropriate answer for days now with no solution at all. Below responseStr is the Object I am receiving as a response from webservice, whose valu... | android|database|sqlite | 0 | 2015-02-15T20:21:00.877Z | 2,015 | 2 | 20 | 6 | 85 | 0 | 409 | 31 | 3 | 2 | true | true | false | false | false | false | zero |
28,530,711 | How to move the graph viewport when adding time-based items to a series at runtime? | <p>I'm trying to create a graph with displays the last n seconds of data arriving by bluetooth. I want to add to the series from within a timer by adding a <code>DataPoint</code> with a <code>Date</code> as X value. All I get is a white screen. I think that the problem lies with the values used in ´graph.getViewport()... | I'm trying to create a graph with displays the last n seconds of data arriving by bluetooth. I want to add to the series from within a timer by adding a DataPoint with a Date as X value. All I get is a white screen. I think that the problem lies with the values used in ´graph.getViewport().setMinX`. What value should I... | android-graphview | 0 | 2015-02-15T20:21:49.063Z | 2,015 | 2 | 20 | 6 | 666 | 1 | 398 | 83 | 1 | 1 | true | false | false | false | false | false | zero |
28,530,719 | static inner class in custom dialogfragment? | <p>If I were to define a dialogfragment like:</p>
<pre><code>public class MyDialogFragment extends DialogFragment implements
DialogInterface.OnClickListener, DialogInterface.OnShowListener,
DialogInterface.OnDismissListener {
private ProgressBar dialogProgressBar;
</code></pre>
<p>and have a custom <code>AsyncTask<... | If I were to define a dialogfragment like: [CODE] and have a custom AsyncTask as an inner class inside MyDialogFragment like: [CODE] what is the best way for MyAsyncTask to access dialogProgressBar ? I could make dialogProgressBar static but that means all my dialogs share the same progressbar, which would not make sen... | android|android-asynctask | 0 | 2015-02-15T20:22:13.810Z | 2,015 | 2 | 20 | 6 | 307 | 1 | 601 | 44 | 2 | 3 | true | false | false | false | false | false | zero |
28,530,787 | Dynamically create one table row or TextView for each SharedPreference? | <p>I have next xml</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/acti... | I have next xml [CODE] I have three editText for Login, Password and Hostname and button Login In top of the screen I have ScrollView and I need save credentials. But I want save all distinct hostname (like a history) every time when user press button login. I mean it need to dynamic create one table row or TextView fo... | android|xml|sharedpreferences|android-relativelayout|tablerow | -1 | 2015-02-15T20:28:37.893Z | 2,015 | 2 | 20 | 6 | 95 | 1 | 349 | 71 | 5 | 1 | true | false | false | false | false | true | negative |
28,530,796 | Android: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity | <p>I still got a crash report because of this Exception</p>
<pre><code>java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
</code></pre>
<p>I have searched about it, still can't figure it out how to fix this.</p>
<p>I have using Theme.AppCompat.Light as base A... | I still got a crash report because of this Exception [CODE] I have searched about it, still can't figure it out how to fix this. I have using Theme.AppCompat.Light as base AppTheme. Here my style.xml [CODE] I only have 1 style.xml inside values folder I'm using crashlytics in my app, I got this problem only from some d... | android|android-appcompat | 1 | 2015-02-15T20:29:25.543Z | 2,015 | 2 | 20 | 6 | 1,374 | 1 | 458 | 116 | 2 | 2 | true | false | false | false | false | false | low |
28,530,821 | NullPointerException at getWriteableDatabase | <p>I'm trying to create simple database app using SQLite, but it looks like I can't manage to get reference to the created database. I keep getting NullPointerException, which points to getWriteableDatabase command.</p>
<p>Database class:</p>
<pre><code>public class DatabaseHelper extends SQLiteOpenHelper {
public S... | I'm trying to create simple database app using SQLite, but it looks like I can't manage to get reference to the created database. I keep getting NullPointerException, which points to getWriteableDatabase command. Database class: [CODE] UI class: [CODE] LogCat: [CODE] | android|sqlite|nullpointerexception|android-sqlite|getwritabledatabase | 1 | 2015-02-15T20:31:56.117Z | 2,015 | 2 | 20 | 6 | 72 | 1 | 267 | 44 | 5 | 3 | true | false | false | false | false | false | low |
28,530,823 | Android Draw Bitmap to Canvas | <p>I'm trying to draw a <code>Bitmap</code> to a <code>Canvas</code> in a custom <code>SurfaceView</code>, but it doesn't show up anywhere.</p>
<p>In the <code>SurfaceView</code>, I'm using:</p>
<pre><code>//in the constructor
Bitmap leftUp = BitmapFactory.decodeResources(R.drawable.leftup);
leftCurrent = leftUp; //i... | I'm trying to draw a Bitmap to a Canvas in a custom SurfaceView , but it doesn't show up anywhere. In the SurfaceView , I'm using: [CODE] It runs OK, no errors, but nothing shows up. Anyone have any ideas? | android|android-canvas | 0 | 2015-02-15T20:32:06.497Z | 2,015 | 2 | 20 | 6 | 1,870 | 1 | 205 | 29 | 2 | 1 | true | false | false | false | false | false | zero |
28,530,833 | Set action bar title corresponding to ActionBar tab title | <p>When the active tab in my app is changed and an other tab gets the active tab, I would like the ActionBar title to be set to a certain text. How can I do that?</p>
<p>Thanks</p> | When the active tab in my app is changed and an other tab gets the active tab, I would like the ActionBar title to be set to a certain text. How can I do that? Thanks | android|android-actionbar|title | -1 | 2015-02-15T20:33:16Z | -1 | -1 | -1 | -1 | 54 | 1 | 166 | 57 | 3 | 0 | false | false | false | false | false | true | negative |
28,530,839 | Using remote sqlite DB with Android App | <p>I am trying to sync a local sqlite DB with a remote sqlite DB, running on my Banana Pi. My objective hereby is to be able to update the DB on my Pi, the App checks by each launch, if some datasets have changed and if so it updates the Data.</p>
<p>Creating a local sqlite DB is no Problem but I just can't find anyth... | I am trying to sync a local sqlite DB with a remote sqlite DB, running on my Banana Pi. My objective hereby is to be able to update the DB on my Pi, the App checks by each launch, if some datasets have changed and if so it updates the Data. Creating a local sqlite DB is no Problem but I just can't find anything to conn... | android|database|sqlite|remote-access | 0 | 2015-02-15T20:33:46.773Z | 2,015 | 2 | 20 | 6 | 981 | 0 | 630 | 39 | 4 | 0 | false | true | false | false | false | false | zero |
28,530,849 | Listen on Switch state change in Tab / Android | <p>How can I recognize if the Switch in the Tab have changed the state?
I tried it with an own Class but I've got no idea from what I should extend them. I thought, I can use the Class also as a Storage if the Orientation is changed.
<a href="https://s3.amazonaws.com/pushbullet-uploads/ujAl3NHbdZY-Z6w8UGrTfeZTdNSltYB2... | How can I recognize if the Switch in the Tab have changed the state? I tried it with an own Class but I've got no idea from what I should extend them. I thought, I can use the Class also as a Storage if the Orientation is changed. Here is a Screenshot of my Application. HomecontrolFragment.java [CODE] My own Class for ... | android|switch-statement|fragment|listener | 1 | 2015-02-15T20:34:27.220Z | 2,015 | 2 | 20 | 6 | 636 | 1 | 358 | 46 | 4 | 3 | true | false | false | false | false | false | low |
28,530,868 | Access to global variable in menu XML file in Android | <p>I'm creating an app in which an user must connect himself. I'm trying to implement a menu, in which the first item text would be the name of the connected user and once clicked on, it would bring to the user profile. To store the connected user information, I created my own subclass of android.app.Application, which... | I'm creating an app in which an user must connect himself. I'm trying to implement a menu, in which the first item text would be the name of the connected user and once clicked on, it would bring to the user profile. To store the connected user information, I created my own subclass of android.app.Application, which co... | android|xml|global-variables | 1 | 2015-02-15T20:36:53.080Z | 2,015 | 2 | 20 | 6 | 687 | 1 | 917 | 53 | 3 | 3 | true | false | false | false | false | false | low |
28,530,948 | Changing navigation drawer icon | <p>I have a problem, I have different activity with different background color (white or blue), also the menu icon need to be white or blue (opposite to activity background), I can't find the correct way for change it after change activity, how can I do this?</p> | I have a problem, I have different activity with different background color (white or blue), also the menu icon need to be white or blue (opposite to activity background), I can't find the correct way for change it after change activity, how can I do this? | android|icons|drawer | 0 | 2015-02-15T20:44:04.460Z | 2,015 | 2 | 20 | 6 | 1,432 | 1 | 256 | 31 | 3 | 0 | false | false | false | false | false | false | zero |
28,531,037 | Contact form doesn't work on phone (works everywhere else) | <p>I've made this php which will send me messages right to my inbox. Even though the script works fine on desktops and laptops I can't use on phones. Why is this happening? Am I doing something wrong? ( I tried the form on iPhone 6+ and Samsung Alpha)</p>
<pre><code><?php $name = $_POST['name'];
$email = $_POST... | I've made this php which will send me messages right to my inbox. Even though the script works fine on desktops and laptops I can't use on phones. Why is this happening? Am I doing something wrong? ( I tried the form on iPhone 6+ and Samsung Alpha) [CODE] And this is the html code for the phone. [CODE] Thank you all in... | php|android|html|ios|contact-form | 1 | 2015-02-15T20:53:15.853Z | 2,015 | 2 | 20 | 6 | 100 | 0 | 343 | 58 | 5 | 2 | true | true | false | false | false | false | low |
28,531,306 | AndroidRuntime﹕ FATAL EXCEPTION: main (libGDX | <p>I am pretty new to programming and I am struggling with the next problem. I am using LibGDX to create a Tiled based game (following tutorials). Now the desktop part is all going fine, and working like it should. But when i try to run the android part it instantly crashes. Below my logcat and the codes. Need any more... | I am pretty new to programming and I am struggling with the next problem. I am using LibGDX to create a Tiled based game (following tutorials). Now the desktop part is all going fine, and working like it should. But when i try to run the android part it instantly crashes. Below my logcat and the codes. Need any more in... | android|crash|libgdx|desktop|program-entry-point | 0 | 2015-02-15T21:20:39.123Z | 2,015 | 2 | 21 | 6 | 410 | 1 | 396 | 45 | 5 | 2 | true | false | false | false | false | false | zero |
28,531,307 | Green Arrow over class icon (Android Studio) | <p>What is the green right arrow over the class icon in the project navigator sidebar in android studio indicate? What does the red left arrow indicate? I'm new to the IDE and just want to get a better understanding.</p>
<p><img src="https://i.stack.imgur.com/z3kBm.png" alt="enter image description here"></p>
<p><img... | What is the green right arrow over the class icon in the project navigator sidebar in android studio indicate? What does the red left arrow indicate? I'm new to the IDE and just want to get a better understanding. | android-studio | 4 | 2015-02-15T21:20:51.227Z | 2,015 | 2 | 21 | 6 | 2,020 | 1 | 213 | 44 | 1 | 0 | false | false | false | false | false | false | low |
28,531,353 | I would need to Set setImageResource, pause and change to different setImageResource | <p>I am trying to set a image and change it to different image after a small pause (like a flashing);
And it should start automatically after app is started. </p>
<pre><code>public class MainActivity extends ActionBarActivity {
ImageView image1;
private void flash(){
Thread flashing=new Thread(){
public ... | I am trying to set a image and change it to different image after a small pause (like a flashing); And it should start automatically after app is started. [CODE] } This causes error and app to stop. | java|android|image | 0 | 2015-02-15T21:25:51.413Z | 2,015 | 2 | 21 | 6 | 126 | 1 | 198 | 84 | 3 | 1 | true | false | false | false | false | false | zero |
28,531,461 | Get Dynamic Local IP Address on Android | <p>In an android application, I want to get my dynamic local ip address that appears when I type "ipconfig" in cmd. Using this code I found somewhere here on stackoverflow, it is returning an ip address but it is not the same as the one from ipconfig. Why is that? How do I get the exact IP address that appeared using i... | In an android application, I want to get my dynamic local ip address that appears when I type "ipconfig" in cmd. Using this code I found somewhere here on stackoverflow, it is returning an ip address but it is not the same as the one from ipconfig. Why is that? How do I get the exact IP address that appeared using ipco... | android|wifi|ip-address | 0 | 2015-02-15T21:36:00.163Z | 2,015 | 2 | 21 | 6 | 545 | 1 | 332 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
28,531,467 | Android - Java ListView Item Order | <p>im currently learning to programm apps for Android. So im trying to programm a little app, that allows u to add and delete items to a ListView.</p>
<p>It currently looks like <img src="https://i.stack.imgur.com/VdHso.png" alt="this">:</p>
<p>I want the items in the ListView to stay at the top, like
<img src="http... | im currently learning to programm apps for Android. So im trying to programm a little app, that allows u to add and delete items to a ListView. It currently looks like : I want the items in the ListView to stay at the top, like Im sorry for my English, thats why i tried to express it with the pictures. I hope u underst... | java|android|listview|android-listview | 0 | 2015-02-15T21:36:44.543Z | 2,015 | 2 | 21 | 6 | 559 | 2 | 550 | 34 | 4 | 2 | true | false | false | false | false | false | zero |
28,531,503 | Toolbar - Switching from drawer to back button with only one Activity | <p>I've been searching for a while on how to change between the drawer open/close icon (going from a hamburger to the arrow) to a simple back arrow. My application at the moment only has one Activity which switches between several fragments. At one point, I want to transition between one of the main fragments (ie, one ... | I've been searching for a while on how to change between the drawer open/close icon (going from a hamburger to the arrow) to a simple back arrow. My application at the moment only has one Activity which switches between several fragments. At one point, I want to transition between one of the main fragments (ie, one of ... | android|android-fragments|navigation | 42 | 2015-02-15T21:39:46.123Z | 2,015 | 2 | 21 | 6 | 36,349 | 6 | 3,087 | 69 | 3 | 4 | true | false | true | true | true | false | high |
28,531,538 | How to display an ImageView on the whole screen on android? | <p>In my app I need to take a pic from the gallery(I have working code for that, that gives me the Uri of the pic) and place the Uri in an ImageView. The problem I'm running into is that the pic is not covering the whole screen like I want it to, even though I have the height and width of the ImageVIew set to match_par... | In my app I need to take a pic from the gallery(I have working code for that, that gives me the Uri of the pic) and place the Uri in an ImageView. The problem I'm running into is that the pic is not covering the whole screen like I want it to, even though I have the height and width of the ImageVIew set to match_parent... | java|android|imageview|uri | 0 | 2015-02-15T21:44:53.887Z | 2,015 | 2 | 21 | 6 | 68 | 1 | 472 | 59 | 4 | 2 | true | false | false | false | false | false | zero |
28,531,671 | Android Manager SDK will not open. Internal IDE Fatal error. Cannot run program | <p>A question exactly like this was posted 3 months ago, with no responses or answers. Please Help. I've tried reinstalling Android Studio itself as well and that's a no-go. </p>
<p>This is the error it provides: </p>
<pre><code>Cannot run program "C:\Users\Donavan\AppData\Local\Android\sdk\tools\android.bat": Create... | A question exactly like this was posted 3 months ago, with no responses or answers. Please Help. I've tried reinstalling Android Studio itself as well and that's a no-go. This is the error it provides: [CODE] | java|android|batch-file|fatal-error | 0 | 2015-02-15T21:59:29.597Z | 2,015 | 2 | 21 | 6 | 742 | 0 | 208 | 79 | 4 | 1 | true | true | false | false | false | false | zero |
28,531,672 | Google maps V2 - Authorization failure, I can't display map | <p>I'm trying display a map on my app but I can't display, I's impossible for me...</p>
<h2>My steps:</h2>
<ol>
<li>Install "Google play services" from SDKManager.</li>
</ol>
<p><img src="https://i.stack.imgur.com/Eldka.png" alt="dib1"></p>
<ol start="2">
<li>Add library from Project</li>
</ol>
<p><strong>build.gr... | I'm trying display a map on my app but I can't display, I's impossible for me... My steps: Install "Google play services" from SDKManager. Add library from Project build.gradle apply plugin: 'com.android.application' [CODE] Add Library to AndroidManifest.xml too. Manifest (part) [CODE] Get SHA1 Go to " https://code.goo... | android|google-maps|android-studio | 4 | 2015-02-15T21:59:34.343Z | 2,015 | 2 | 21 | 6 | 4,772 | 3 | 1,020 | 59 | 3 | 4 | true | false | true | false | false | false | low |
28,531,756 | Obtaining an array element based on a random value | <p>Suppose we have an array of 100 Strings, which you get them from R.string.xml.</p>
<pre><code>private String lapi[]={"R.string.lapi0", "R.string.lapi1", "R.string.lapi2", "R.string.lapi3"..."R.string.lapi99};
</code></pre>
<p>Also we have a TextView and a Button:</p>
<pre><code>pelicula=(TextView)findViewById(R.i... | Suppose we have an array of 100 Strings, which you get them from R.string.xml. [CODE] Also we have a TextView and a Button: [CODE] and we want that when we click the button get us a random value between 0 and 100: [CODE] The problem: what would be the easiest way to edit the TextView with the array value to which the r... | java|android|arrays|random | 0 | 2015-02-15T22:08:06.857Z | 2,015 | 2 | 22 | 6 | 33 | 1 | 599 | 50 | 4 | 4 | true | false | false | false | false | false | zero |
28,531,757 | What is the order and meaning of WindowManager.LayoutParams constructor parameters? | <p>I cannot find a description of the order and meaning of LayoutParams'
constructor parameters. This is all I can find on developer.android.com:</p>
<pre><code>WindowManager.LayoutParams()
WindowManager.LayoutParams(int _type)
WindowManager.LayoutParams(int _type, int _flags)
WindowManager.LayoutParams(int _type... | I cannot find a description of the order and meaning of LayoutParams' constructor parameters. This is all I can find on developer.android.com: [CODE] ..........with no further description. I assume, for example, "int w" is setting the width parameter. Does anyone know where there is a good description of this? | android|parameters|constructor|layoutparams|window-managers | 3 | 2015-02-15T22:08:08.770Z | 2,015 | 2 | 22 | 6 | 807 | 1 | 311 | 83 | 5 | 1 | true | false | false | false | false | false | low |
28,531,785 | NullPointerException when creating onClickListener | <p>Okay, I've created a very basic Android game. The simple idea is that when the user clicks the jump button, it calls the jump method. I'm using a XML file to declare the button, but I'm finding it throws a NullPointerException.</p>
<p>I've looked at other answers, and I realise that the most likely reason is becaus... | Okay, I've created a very basic Android game. The simple idea is that when the user clicks the jump button, it calls the jump method. I'm using a XML file to declare the button, but I'm finding it throws a NullPointerException. I've looked at other answers, and I realise that the most likely reason is because the butto... | java|android|xml | 1 | 2015-02-15T22:11:33.610Z | 2,015 | 2 | 22 | 6 | 46 | 2 | 832 | 50 | 3 | 2 | true | false | false | false | false | false | low |
28,531,789 | Did Google stop supporting Android Eclipse Plugin? | <p>If the question is not for here, I will remove it.</p>
<p>Does someone knows if Android has stopped supporting the Eclipse Plugin?
Now when you enter their site from googling "Android SDK" you get to download Android Studio, and I can't find where is the Eclipse plugin...
I remember they said they won't stop suppor... | If the question is not for here, I will remove it. Does someone knows if Android has stopped supporting the Eclipse Plugin? Now when you enter their site from googling "Android SDK" you get to download Android Studio, and I can't find where is the Eclipse plugin... I remember they said they won't stop supporting it, bu... | android|eclipse|android-studio|eclipse-plugin | 8 | 2015-02-15T22:11:43.557Z | 2,015 | 2 | 22 | 6 | 3,193 | 3 | 369 | 50 | 4 | 0 | false | false | true | false | false | false | medium |
28,531,822 | Android decompression of compressed string | <p>For my android application it will retrieve data from the server in JSON format that has been compressed.</p>
<p>I use:</p>
<pre><code>InputStream stream = new GZIPInputStream(entity.getContent());
</code></pre>
<p>To read the stream, this should decompress the data as I read it.</p>
<p>The problem is no matter ... | For my android application it will retrieve data from the server in JSON format that has been compressed. I use: [CODE] To read the stream, this should decompress the data as I read it. The problem is no matter what Gz algorithm I use on the server side(PHP) I get "Unknown format (Magic Number ____)" in my android appl... | java|php|android|gzip | 0 | 2015-02-15T22:15:09.033Z | 2,015 | 2 | 22 | 6 | 460 | 1 | 434 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
28,531,871 | Project analysis fails after upgrading to SonarQube 5.0 | <p>We are executing SonarQube analysis for Android Java projects using Jenkins Plugin, everything was working fine with SonarQube version 4.0 but after upgrade to 5.0 I'm seeing the following messages in the console output:</p>
<pre><code>16:07:06 16:07:05.662 INFO - Sensor ScmStatsSensor done: 576 ms
16:07:06 16:07:... | We are executing SonarQube analysis for Android Java projects using Jenkins Plugin, everything was working fine with SonarQube version 4.0 but after upgrade to 5.0 I'm seeing the following messages in the console output: [CODE] On the other Android Project job log output is slightly different: [CODE] We are using Postg... | android|jenkins|sonarqube|sonar-runner | 4 | 2015-02-15T22:19:57.710Z | 2,015 | 2 | 22 | 6 | 491 | 0 | 427 | 55 | 4 | 2 | true | true | false | false | false | false | low |
28,531,937 | RecyclerView keeps repeating cached (?) subview and not looking to onBindViewHolder | <p>I have RecyclerView where every list item has an ImageButton, thee image of which I define in the adapter's onBindViewHolder():</p>
<pre><code> int myVote = getMyVote();
if (myVote != 0) {
Log.d("dbg", myVote + "");
holder.ratingButton.setImageResource(R.drawable.ic_star_grey600_36dp);
}
... | I have RecyclerView where every list item has an ImageButton, thee image of which I define in the adapter's onBindViewHolder(): [CODE] So ratingButton is a star in the right bottom corner of the list item layout. Its shape is filled with gray color (and accordingly, a log record is pushed) if the condition (myVote != 0... | android|android-recyclerview | 2 | 2015-02-15T22:25:41.460Z | 2,015 | 2 | 22 | 6 | 5,304 | 3 | 817 | 83 | 2 | 2 | true | false | true | false | false | false | low |
28,531,974 | write after su command ROOT not working on android lollipop | <p>i have a piece of code that works on Android 4.4.2 and below Android versions, but not in lollipop.</p>
<p>I knew that when lollipop came out, a lot off apps that needed ROOT permission stop working, but i don't know how they solved its problem.</p>
<p>This is the code:</p>
<pre><code>System.out.println("Running... | i have a piece of code that works on Android 4.4.2 and below Android versions, but not in lollipop. I knew that when lollipop came out, a lot off apps that needed ROOT permission stop working, but i don't know how they solved its problem. This is the code: [CODE] All phones tested are ROOT. In the line: [CODE] Throws t... | root|android-5.0-lollipop|ioexception|epipe | 1 | 2015-02-15T22:29:14.827Z | 2,015 | 2 | 22 | 6 | 844 | 1 | 424 | 59 | 4 | 3 | true | false | false | false | false | false | low |
28,531,996 | Android Recyclerview GridLayoutManager column spacing | <p>How do you set the column spacing with a RecyclerView using a GridLayoutManager?
Setting the margin/padding inside my layout has no effect.</p> | How do you set the column spacing with a RecyclerView using a GridLayoutManager? Setting the margin/padding inside my layout has no effect. | android|gridview|android-recyclerview|gridlayoutmanager | 310 | 2015-02-15T22:31:17.890Z | 2,015 | 2 | 22 | 6 | 301,236 | 33 | 139 | 53 | 4 | 0 | false | false | true | true | true | false | high |
28,532,054 | Android Toolbar instead of action bar | <p>I'm trying to use Toolbar instead of ActionBar. In Android 5.0.+ it works but in 4.4 the status bar is placed on top of the Toolbar.</p>
<p>Screenshot:</p>
<p><img src="https://i.stack.imgur.com/5gl17.png" alt="Screenshot"></p>
<p>Layout:</p>
<pre><code><android.support.v7.widget.Toolbar
xmlns:app="http:/... | I'm trying to use Toolbar instead of ActionBar. In Android 5.0.+ it works but in 4.4 the status bar is placed on top of the Toolbar. Screenshot: Layout: [CODE] Adding Toolbar in OnCreate(): [CODE] Full layout: [CODE] | android|android-actionbar|android-toolbar | 2 | 2015-02-15T22:36:50.603Z | 2,015 | 2 | 22 | 6 | 11,450 | 6 | 216 | 37 | 3 | 3 | true | false | true | false | false | false | low |
28,532,114 | Hybrid mobile application development using Cordova | <p>What are the pros and cons of creating hybrid mobile applications compaired to writing native IOS and Android Apps?</p>
<p>I'm considering writing hybrid mobile apps using Javascript and HTML. Then generate the IOS and Android deployment packages from the same code. I'm considering using Cordova Javascript to gener... | What are the pros and cons of creating hybrid mobile applications compaired to writing native IOS and Android Apps? I'm considering writing hybrid mobile apps using Javascript and HTML. Then generate the IOS and Android deployment packages from the same code. I'm considering using Cordova Javascript to generate calls t... | android|ios|cordova|native|hybrid-mobile-app | -1 | 2015-02-15T22:43:38.830Z | 2,015 | 2 | 22 | 6 | 253 | 1 | 451 | 51 | 5 | 0 | false | false | false | false | false | true | negative |
28,532,206 | Google OAuth 2.0 and debug key for Google Drive API | <p>I've set up 2 Client IDs for Android application in the <code>GoogleDriveAPI</code> console: the first for the release APK and the second for Debug purposes. Everything ok with the released app, but my issue is only related to the second Client ID.
I'm getting this exception: <code>com.google.api.client.googleapis.... | I've set up 2 Client IDs for Android application in the GoogleDriveAPI console: the first for the release APK and the second for Debug purposes. Everything ok with the released app, but my issue is only related to the second Client ID. I'm getting this exception: com.google.api.client.googleapis.extensions.android.gms.... | android|google-oauth|google-drive-android-api | 2 | 2015-02-15T22:52:23.040Z | 2,015 | 2 | 22 | 6 | 2,010 | 1 | 711 | 51 | 3 | 1 | true | false | false | false | false | false | low |
28,532,215 | How to build ionic application using cocoonjs webview+? | <p>The webview+ from cocoonjs gives a huge performance boost to my ionic application that uses a good amount css3 animations. I want to be able to build my application using webview+ from cocoonjs.</p>
<p>The <a href="https://github.com/ludei/webview-plus" rel="nofollow">instructions</a> are straight forward and the c... | The webview+ from cocoonjs gives a huge performance boost to my ionic application that uses a good amount css3 animations. I want to be able to build my application using webview+ from cocoonjs. The instructions are straight forward and the commands don't throw an error but once I load the application on the device it'... | javascript|android|ionic-framework|cocoonjs | 0 | 2015-02-15T22:53:20.830Z | 2,015 | 2 | 22 | 6 | 649 | 1 | 428 | 55 | 4 | 0 | false | false | false | false | false | false | zero |
28,532,233 | Line Divider in Android AppWidget | <p>I have a <code>LinearLayout</code> in my <code>AppWidget</code> and it loads just fine. But when I add a line divider in between the elements within the <code>LinearLayout</code> it says "<code>Problem loading Widget</code>". The LogCat doesn't seem to be showing any errors for it though. Here's the xml:</p>
<pr... | I have a LinearLayout in my AppWidget and it loads just fine. But when I add a line divider in between the elements within the LinearLayout it says " Problem loading Widget ". The LogCat doesn't seem to be showing any errors for it though. Here's the xml: [CODE] | android|view|android-appwidget | 1 | 2015-02-15T22:55:37.083Z | 2,015 | 2 | 22 | 6 | 411 | 1 | 262 | 33 | 3 | 1 | true | false | false | false | false | false | low |
28,532,243 | Receiving preference changes in main activity in android | <p>I'm having an issue with my android app. It is a simple application that is going to draw a rectangle of the specified size overtop of an image view in the main Activity. The issue is receiving the value of the changed preference that is the size of either the width or height of the rectangle. I have tried multip... | I'm having an issue with my android app. It is a simple application that is going to draw a rectangle of the specified size overtop of an image view in the main Activity. The issue is receiving the value of the changed preference that is the size of either the width or height of the rectangle. I have tried multiple app... | java|android | 0 | 2015-02-15T22:56:58.203Z | 2,015 | 2 | 22 | 6 | 505 | 1 | 1,660 | 56 | 2 | 3 | true | false | false | false | false | false | zero |
28,532,307 | USB hub + android device | <p>developers!</p>
<p>I have to connect active (powered from the outlet) hub to android device that supports otg. Actually there will be not one hub, but the cascade of 5 hubs connected one by another. So there will be several usb busses.</p>
<p>I'd like to ask if it's possible to monitor the bus in the USB accessory... | developers! I have to connect active (powered from the outlet) hub to android device that supports otg. Actually there will be not one hub, but the cascade of 5 hubs connected one by another. So there will be several usb busses. I'd like to ask if it's possible to monitor the bus in the USB accessory mode? This is pref... | android|usb|host|accessory | 2 | 2015-02-15T23:04:31.177Z | 2,015 | 2 | 23 | 6 | 804 | 0 | 830 | 24 | 4 | 0 | false | true | false | false | false | false | low |
28,532,327 | Background-attachment:fixed Not Working - Android Chrome (v40) | <h1>Background</h1>
<p><em>( This has been <a href="https://stackoverflow.com/questions/19028851/background-attachmentfixed-not-working-in-chrome">asked</a> <a href="https://stackoverflow.com/questions/17664927/background-attachment-fixed-not-working-on-android-mobile">before</a>, <a href="https://stackoverflow.com/que... | Background ( This has been asked before , many times , I know. However, it seems to have been caused by different things each time. I have gone through about four different StackOverflow answer threads and tried everything. Nothing seems to be working anymore, so I believe this is a new problem. ) Anyway, I have an HMT... | android|css|google-chrome|background-attachment | 18 | 2015-02-15T23:08:15.523Z | 2,015 | 2 | 23 | 6 | 15,368 | 5 | 1,010 | 62 | 4 | 2 | true | false | true | true | true | false | medium |
28,532,340 | Duplicate files copied in Android | <p>I added two libraries into my android project they are called:</p>
<pre><code>commons-jexl-2.1.1.jar
commons-logging-1.2.jar
</code></pre>
<p>And i defined them in <code>build.gradle</code> as :</p>
<ol>
<li><code>compile files ('libs/commons-jexl-2.1.1.jar')</code></li>
<li><code>compile files ('libs/commons-log... | I added two libraries into my android project they are called: [CODE] And i defined them in build.gradle as : compile files ('libs/commons-jexl-2.1.1.jar') compile files ('libs/commons-logging-1.2.jar') When i run my program i get this error, although i deleted LICENSE.txt File. Maybe someone else had this problem befo... | java|android | 1 | 2015-02-15T23:10:24.083Z | 2,015 | 2 | 23 | 6 | 276 | 1 | 628 | 33 | 2 | 1 | true | false | false | false | false | false | low |
28,532,374 | Accessing resource in Java/Gradle Environment | <p>My question is similar to <a href="https://stackoverflow.com/questions/24940815/accessing-gradle-resources-from-java?rq=1">this</a> question but unfortunately, their answer didn't work for me. I have a gradle-based java project too with the following structure</p>
<pre><code>.
├── myproject
│ ├── src
│ | ... | My question is similar to this question but unfortunately, their answer didn't work for me. I have a gradle-based java project too with the following structure [CODE] Since I want to run my code on Android and Windows, I'm accessing the resources with the following [CODE] This worked previously with Eclipse, because I ... | java|android|android-studio|gradle|resources | 2 | 2015-02-15T23:13:31.353Z | 2,015 | 2 | 23 | 6 | 1,176 | 1 | 1,170 | 45 | 5 | 2 | true | false | false | false | false | false | low |
28,532,465 | Destroying activity and calling it again by clicking notification | <p>I issue the a notification with an <code>action</code> that opens <strong>mainactivity</strong>. This is the first time the activity is called, <em>created</em> and everything works perfectly. After I pause the activity I automatically call <strong>onDestroy()</strong> of the activity and it is destroyed with succes... | I issue the a notification with an action that opens mainactivity . This is the first time the activity is called, created and everything works perfectly. After I pause the activity I automatically call onDestroy() of the activity and it is destroyed with success. When I click the notification for the second time, howe... | java|android | 0 | 2015-02-15T23:26:27.327Z | 2,015 | 2 | 23 | 6 | 46 | 1 | 578 | 65 | 2 | 0 | false | false | false | false | false | false | zero |
28,532,520 | How to extract text from a WebPage | <p>First off, yes, I have done research on this question. And yes, I have found an answer <a href="https://stackoverflow.com/questions/14418021/get-text-from-web-page-to-string">here</a>. But the whole process still isn't working for me. All I need to do is grab text off of a webpage like Google, and create a string fr... | First off, yes, I have done research on this question. And yes, I have found an answer here . But the whole process still isn't working for me. All I need to do is grab text off of a webpage like Google, and create a string from the text it grabs. Here is my code with the aforementioned tutorials code in it: [CODE] And... | javascript|android | 1 | 2015-02-15T23:33:03.257Z | 2,015 | 2 | 23 | 6 | 359 | 1 | 495 | 34 | 2 | 1 | true | false | false | false | false | false | low |
28,532,575 | How to import openCV samples into Android Studio | <p>Just as the title says. I tried "Import Project" then selected this file:</p>
<p>C:...\OpenCV-2.4.10-android-sdk\samples\tutorial-1-camerapreview</p>
<p>Then selected this folder as the location for the full copy of the project:</p>
<p>C:...\AndroidStudioProjects\tutorial-1-camerapreview4</p>
<p>I then get the f... | Just as the title says. I tried "Import Project" then selected this file: C:...\OpenCV-2.4.10-android-sdk\samples\tutorial-1-camerapreview Then selected this folder as the location for the full copy of the project: C:...\AndroidStudioProjects\tutorial-1-camerapreview4 I then get the following warnings: Project OpenCV T... | android|opencv|android-studio | 1 | 2015-02-15T23:41:03.540Z | 2,015 | 2 | 23 | 6 | 9,002 | 1 | 736 | 48 | 3 | 0 | false | false | true | false | false | false | low |
28,532,583 | How to show XML files in Android TextView | <p>I need to show an XML file inside a TextView in Android. I just want the code highlighter effect, which shows the various XML keywords or tag with specific colors.</p>
<p>Is there any library I can use or I have to built it up myself?</p>
<p>Thank you guys.</p> | I need to show an XML file inside a TextView in Android. I just want the code highlighter effect, which shows the various XML keywords or tag with specific colors. Is there any library I can use or I have to built it up myself? Thank you guys. | android|xml|tags|textview | 0 | 2015-02-15T23:41:27.323Z | 2,015 | 2 | 23 | 6 | 484 | 0 | 243 | 41 | 4 | 0 | false | true | false | false | false | false | zero |
28,532,588 | My intel xdk project works when i emulate but no when i generate my apk | <p>I'm trying to create an app in intel xdk, i'm in the beggining, my code works when i'm emmulating or debugging, but when i generate the apk doesn't work. I just want for a while that when i click in an button my connection type appears down bellow, but this doesn't work in my real device when i install the apk.</p>
... | I'm trying to create an app in intel xdk, i'm in the beggining, my code works when i'm emmulating or debugging, but when i generate the apk doesn't work. I just want for a while that when i click in an button my connection type appears down bellow, but this doesn't work in my real device when i install the apk. I tryie... | android|cordova|intel|intel-xdk | 0 | 2015-02-15T23:41:49.933Z | 2,015 | 2 | 23 | 6 | 1,682 | 1 | 605 | 71 | 4 | 2 | true | false | false | false | false | false | zero |
28,532,599 | No resource found when building AOSP's Dialer | <p>I cloned the dialer code from Google (<a href="https://android.googlesource.com/platform/packages/apps/Dialer/" rel="nofollow">https://android.googlesource.com/platform/packages/apps/Dialer/</a>), imported the project to Android studio, I am getting the following error while making the project.</p>
<pre><code>C:\Us... | I cloned the dialer code from Google ( https://android.googlesource.com/platform/packages/apps/Dialer/ ), imported the project to Android studio, I am getting the following error while making the project. [CODE] other stackoverflow thread suggested to change compileSdkVersion to 21 in the gradle, but mine already is ! ... | android|android-studio | 0 | 2015-02-15T23:42:38.910Z | 2,015 | 2 | 23 | 6 | 446 | 1 | 349 | 45 | 2 | 2 | true | false | false | false | false | false | zero |
28,532,680 | How do I make the data values to be in three decimal places? | <p>This app is almost over, but I need the output data values to be in three decimal places for the output file. So far, the final output is the one I need (square rooted of the data values from the asset file). Here is the code that I wrote for the app:</p>
<pre><code>public void srAndSave(View view)
{
EditText e... | This app is almost over, but I need the output data values to be in three decimal places for the output file. So far, the final output is the one I need (square rooted of the data values from the asset file). Here is the code that I wrote for the app: [CODE] | java|android|eclipse | 1 | 2015-02-15T23:53:33.560Z | 2,015 | 2 | 23 | 6 | 56 | 1 | 258 | 60 | 3 | 1 | true | false | false | false | false | false | low |
28,532,714 | Android line path morphing animation | <p>I basically have two lines, drawn by two paths on my canvas. Each one has only two points, one is supposed to remain standstill and the other one moves. I realized this simply by creating a Path and then call moveTo(x1, y1) and lineTo(x2, y2).</p>
<p>(x1, y1) never changes during time, I'd like to realize an animat... | I basically have two lines, drawn by two paths on my canvas. Each one has only two points, one is supposed to remain standstill and the other one moves. I realized this simply by creating a Path and then call moveTo(x1, y1) and lineTo(x2, y2). (x1, y1) never changes during time, I'd like to realize an animation when (x... | android|android-animation|android-canvas|android-view | 0 | 2015-02-15T23:58:03.733Z | 2,015 | 2 | 23 | 6 | 1,053 | 1 | 659 | 36 | 4 | 1 | true | false | false | false | false | false | zero |
28,532,787 | step without breakpoints in android studio? | <p>I want to get a better idea how a program I have operates, and rather than print the code out and try to see which method calls which method, it'd be easier to just run a debugger that steps through every line.</p>
<p>But manually putting a breakpoint on every line seems a bit laborious.</p>
<p>Is there any option... | I want to get a better idea how a program I have operates, and rather than print the code out and try to see which method calls which method, it'd be easier to just run a debugger that steps through every line. But manually putting a breakpoint on every line seems a bit laborious. Is there any option to step through ev... | android-studio | 1 | 2015-02-16T00:06:54.257Z | 2,015 | 2 | 0 | 0 | 558 | 1 | 667 | 43 | 1 | 0 | false | false | false | false | false | false | low |
28,532,829 | Multi-user app and Parse push notifications | <p>I'm working on a multi-user Android app, and I'm trying to implement Parse Push Notifications, I've never used them before, so i'm really confused about what's the aproach for handling multiple user. I don't want a user receiving another user's notifications.</p>
<p>Right now i'm getting the deviceToken:</p>
<pre>... | I'm working on a multi-user Android app, and I'm trying to implement Parse Push Notifications, I've never used them before, so i'm really confused about what's the aproach for handling multiple user. I don't want a user receiving another user's notifications. Right now i'm getting the deviceToken: [CODE] First, i thoug... | android|parse-platform|push-notification | 1 | 2015-02-16T00:13:22.240Z | 2,015 | 2 | 0 | 0 | 357 | 0 | 726 | 43 | 3 | 2 | true | true | false | false | false | false | low |
28,532,952 | plugin to receive Audio file | <p>I'm fairly new to Java and Android and I'm trying to make an Android plugin for Unity using Eclipse.</p>
<p>The goal is to let the plugin play audio files, effectively bypassing the Unity Engine's audio playback since a mobile build of the unity project introduces lag in calling the audio playback.</p>
<p>I've see... | I'm fairly new to Java and Android and I'm trying to make an Android plugin for Unity using Eclipse. The goal is to let the plugin play audio files, effectively bypassing the Unity Engine's audio playback since a mobile build of the unity project introduces lag in calling the audio playback. I've seen it implemented on... | java|android|eclipse|plugins|unity3d | 0 | 2015-02-16T00:34:01Z | -1 | -1 | -1 | -1 | 466 | 3 | 627 | 28 | 5 | 0 | false | false | false | false | false | false | zero |
28,532,957 | How to show onFling is at last entry/page? | <p>When scrolling/flinging in some apps, reaching the end of the list (or other items) shows a graphical representation that you've reached the end. I'm not sure what to call this but on 5.0, it looks like a partial filled-in curve.</p>
<p>What is this feature called and how can I find out how to implement it?</p>
<p... | When scrolling/flinging in some apps, reaching the end of the list (or other items) shows a graphical representation that you've reached the end. I'm not sure what to call this but on 5.0, it looks like a partial filled-in curve. What is this feature called and how can I find out how to implement it? Thanks in advance ... | android|user-interface|graphic | 1 | 2015-02-16T00:34:59.867Z | 2,015 | 2 | 0 | 0 | 15 | 0 | 380 | 42 | 3 | 0 | false | true | false | false | false | false | low |
28,532,979 | Does supported android apps in Delphi XE6 with Qualcomm-Snapdragon-800-MSM8974? | <p>Android Devices Supported for Application Development
<a href="http://docwiki.embarcadero.com/RADStudio/XE7/en/Android_Devices_Supported_for_Application_Development" rel="nofollow">http://docwiki.embarcadero.com/RADStudio/XE7/en/Android_Devices_Supported_for_Application_Development</a> and</p>
<p>•Processor: 2,2 GH... | Android Devices Supported for Application Development http://docwiki.embarcadero.com/RADStudio/XE7/en/Android_Devices_Supported_for_Application_Development and •Processor: 2,2 GHz X 4 (Snapdragon 800) http://www.generalmobile.com/discoveryElite.html but http://system-on-a-chip.findthebest.com/compare/34-297/ARM-Cortex-... | android|delphi|arm|firemonkey|delphi-xe6 | 0 | 2015-02-16T00:38:04.973Z | 2,015 | 2 | 0 | 0 | 320 | 1 | 502 | 79 | 5 | 0 | false | false | false | false | false | false | zero |
28,533,003 | MotionEvent.Action_UP is always called | <p>Here is the code for my onTouchEvent(MotionEvent event):</p>
<pre><code>@Override
public boolean onTouchEvent(MotionEvent event){
int action = event.getAction();
int x = Math.round(event.getX());
int y = Math.round(event.getY());
//play is an imageView
int viewLeft = play.getLeft();
int view... | Here is the code for my onTouchEvent(MotionEvent event): [CODE] The problem here is that ACTION_UP is always called, regardless of whether or not I actually lift my finger off the screen. I ran it in debugging mode while placing a breakpoint on case MotionEvent.ACTION_UP, and when I pressed down (and didn't release), i... | android|motionevent | 1 | 2015-02-16T00:43:18.847Z | 2,015 | 2 | 0 | 0 | 827 | 1 | 371 | 38 | 2 | 1 | true | false | false | false | false | false | low |
28,533,014 | Which android in-app billing is right? | <p>I am implementing in-app billing in an android game. I found that the developer web pages have two completely different guides on different pages. This one seems to work:
<a href="http://developer.android.com/training/in-app-billing/preparing-iab-app.html" rel="nofollow">Preparing Your In-app Billing Application</... | I am implementing in-app billing in an android game. I found that the developer web pages have two completely different guides on different pages. This one seems to work: Preparing Your In-app Billing Application This one I have not been able to make work: Implementing In-app Billing I don't know why they show two diff... | android|billing|in-app | -1 | 2015-02-16T00:44:23.500Z | 2,015 | 2 | 0 | 0 | 35 | 1 | 444 | 38 | 3 | 0 | false | false | false | false | false | true | negative |
28,533,064 | Unable to index file BUILD | <p>I'm trying to move over a project from Maven into Gradle, however after forking and moving things around to get it to build I'm unable to commit my changes.</p>
<p>I'm getting this error every time:</p>
<pre><code>Error:error: unable to index file BUILD
fatal: updating files failed
during executing git commit --a... | I'm trying to move over a project from Maven into Gradle, however after forking and moving things around to get it to build I'm unable to commit my changes. I'm getting this error every time: [CODE] Quite long as you can tell, is there any way to fix this? | android|git|android-studio | 2 | 2015-02-16T00:52:29.830Z | 2,015 | 2 | 0 | 0 | 444 | 0 | 256 | 26 | 3 | 1 | true | true | false | false | false | false | low |
28,533,067 | Can't find resource identifiers from AAR in XML | <p>I developed a custom Preference for an application. It has two custom attributes. I'm trying to move the Preference to a library project to reuse in other projects. I moved the Java file along with the corresponding layout and attr XML files. Here's the attr file in the library project:</p>
<pre><code><?xml ... | I developed a custom Preference for an application. It has two custom attributes. I'm trying to move the Preference to a library project to reuse in other projects. I moved the Java file along with the corresponding layout and attr XML files. Here's the attr file in the library project: [CODE] Here's the manifest: [COD... | android|android-studio|android-library|aar | 10 | 2015-02-16T00:52:43.977Z | 2,015 | 2 | 0 | 0 | 8,517 | 1 | 1,747 | 47 | 4 | 5 | true | false | true | false | true | false | medium |
28,533,080 | Issue Android Studio 1.0.2: Fatal Exception: main Process java.lang.NullPointerException | <p>So, I am doing this project that includes an intro activity that switches to a menu activity with navigation drawer. Couple of days ago, I had an issue switching from intro to menu (<a href="https://stackoverflow.com/questions/28513926/android-studio-1-0-2-java-lang-runtimeexception-unable-to-start-activity-compo">A... | So, I am doing this project that includes an intro activity that switches to a menu activity with navigation drawer. Couple of days ago, I had an issue switching from intro to menu ( Android Studio 1.0.2: java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.NullPointerException ) and it was sol... | java|android|nullpointerexception|android-theme | 0 | 2015-02-16T00:55:36.980Z | 2,015 | 2 | 0 | 0 | 7,566 | 1 | 1,100 | 88 | 4 | 4 | true | false | true | false | false | false | zero |
28,533,205 | Android Studio Emulator Panic Could not Find | <p>I'm trying to run the emulator for Android Studio and am getting this error.</p>
<p>PANIC: Could not find Nexus_S_Main_activity_API_21.ini file in $ANDROID_AVD_HOME nor in $HOME/.android/avd</p>
<p>How can I fix this? Keep in mind that I am a complete beginner so please try to explain each step clearly.</p> | I'm trying to run the emulator for Android Studio and am getting this error. PANIC: Could not find Nexus_S_Main_activity_API_21.ini file in $ANDROID_AVD_HOME nor in $HOME/.android/avd How can I fix this? Keep in mind that I am a complete beginner so please try to explain each step clearly. | android|android-studio|android-emulator|panic | 0 | 2015-02-16T01:13:21.723Z | 2,015 | 2 | 1 | 0 | 495 | 1 | 290 | 44 | 4 | 0 | false | false | false | false | false | false | zero |
28,533,217 | android setOnItemClickListener can't use intent to pass data | <p>I use listview and rewrite setOnItemClickListener.In setOnItemClickListener(),I use intent to pass data to another activity. But another activity receive null.
The code is:</p>
<ol>
<li>QuerBook.java (send data)</li>
</ol>
<p>public class QueryBook extends Activity {</p>
<pre><code>private List<BookItem> bo... | I use listview and rewrite setOnItemClickListener.In setOnItemClickListener(),I use intent to pass data to another activity. But another activity receive null. The code is: QuerBook.java (send data) public class QueryBook extends Activity { [CODE] } 2.BookDetail.java (receive data) public class BookDetail extends Activ... | android|android-intent|android-activity | 1 | 2015-02-16T01:15:11.167Z | 2,015 | 2 | 1 | 0 | 368 | 1 | 332 | 60 | 3 | 2 | true | false | false | false | false | false | low |
28,533,279 | Android code folding the Switch block | <p>Under Android Studio 1.0.2 is there a way to fold the block of code for a Switch conditional statement? I could not find how to do it online or in File > Settings.</p> | Under Android Studio 1.0.2 is there a way to fold the block of code for a Switch conditional statement? I could not find how to do it online or in File > Settings. | android|ide|folding | 8 | 2015-02-16T01:23:26.317Z | 2,015 | 2 | 1 | 0 | 2,689 | 2 | 163 | 37 | 3 | 0 | false | false | true | false | false | false | medium |
28,533,302 | cocos2d-x flash import crash | <p>I wanted to use flash with cocos2d using this example.</p>
<p><a href="https://github.com/splhack/Hello-LWF-Cocos2d-x" rel="nofollow">https://github.com/splhack/Hello-LWF-Cocos2d-x</a></p>
<p>I compiled it and run it for android but after first screen appear i receive a crash :</p>
<pre><code>create rendererRecre... | I wanted to use flash with cocos2d using this example. https://github.com/splhack/Hello-LWF-Cocos2d-x I compiled it and run it for android but after first screen appear i receive a crash : [CODE] I tested in 2 real android device , result is same. I dnt know what;s wrong . If somebody have any experience please help. U... | android|cocos2d-x | -1 | 2015-02-16T01:27:06.517Z | 2,015 | 2 | 1 | 0 | 511 | 1 | 348 | 28 | 2 | 2 | true | false | false | false | false | true | negative |
28,533,304 | Activity transition with shared TextView elements fail | <p>I'm trying to share one TextView with an Activity but the text of the TextView doesn't appear.
The CardView is in a Fragment and when clicked some card, call a method on the corresponding Activity attach of this Fragment and start a new Activity. </p>
<p>Here are some sniplets:</p>
<p>RepositoriesActivity.java</p>... | I'm trying to share one TextView with an Activity but the text of the TextView doesn't appear. The CardView is in a Fragment and when clicked some card, call a method on the corresponding Activity attach of this Fragment and start a new Activity. Here are some sniplets: RepositoriesActivity.java [CODE] card_repositorie... | android|android-fragments|android-recyclerview|android-cardview|activity-transition | 2 | 2015-02-16T01:27:25.137Z | 2,015 | 2 | 1 | 0 | 682 | 0 | 442 | 54 | 5 | 4 | true | true | false | false | false | false | low |
28,533,345 | How to Use the sheets API | <p>Hi I am from a robotics team and trying to use the sheets API to put data into google sheets but at the competition we have no internet connection so we save the data locally then we want to upload it into a sheet that is stored on the tablet and then it will be in so that when the tablet connects to the internet th... | Hi I am from a robotics team and trying to use the sheets API to put data into google sheets but at the competition we have no internet connection so we save the data locally then we want to upload it into a sheet that is stored on the tablet and then it will be in so that when the tablet connects to the internet the t... | android|google-sheets | 0 | 2015-02-16T01:32:40.183Z | 2,015 | 2 | 1 | 0 | 152 | 1 | 502 | 25 | 2 | 1 | true | false | false | false | false | false | zero |
28,533,532 | Messing with ListView in Android | <p>Good day to everyone, I am new to Android, I keep on messing with ListView. The code below wont work! I dont know why. Please let me know where's the mistake.</p>
<p>Main Activity.java</p>
<pre><code>public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState){
super.onCreat... | Good day to everyone, I am new to Android, I keep on messing with ListView. The code below wont work! I dont know why. Please let me know where's the mistake. Main Activity.java [CODE] activity_main.xml: [CODE] After running the above code, my adroid device will show a dialogue saying: "Sorry! The application CodeGener... | android | 1 | 2015-02-16T02:02:15.203Z | 2,015 | 2 | 2 | 0 | 50 | 2 | 426 | 32 | 1 | 2 | true | false | false | false | false | false | low |
28,533,557 | Custom adapter and click on item in ListView | <p>I have a problem with click on image in item in ListView. When I click I want to show layout which is gone. This is my code:</p>
<pre><code>public class MyActualOffers extends BaseActivity {
private IResponse iResponse = null;
private ListView actualOffersList;
private ActualOffersListAdapter actualOffe... | I have a problem with click on image in item in ListView. When I click I want to show layout which is gone. This is my code: [CODE] No when I click on holder.expandIcon in first item, expand layout show in last item of list. How can I create list with my item and properly working click on image in every item? | android | 0 | 2015-02-16T02:04:37.427Z | 2,015 | 2 | 2 | 0 | 91 | 1 | 310 | 44 | 1 | 1 | true | false | false | false | false | false | zero |
28,533,609 | HashMap Odd Behavior in Android | <p>I have created a HashMap for an Android application and add objects as needed with the addVaue() function below. When adding a new value the Hash table containing 3 prior additions the table in memory changes which end up dropping the most recently inserted value (name in the sample). I have included the debugger i... | I have created a HashMap for an Android application and add objects as needed with the addVaue() function below. When adding a new value the Hash table containing 3 prior additions the table in memory changes which end up dropping the most recently inserted value (name in the sample). I have included the debugger image... | java|android | 2 | 2015-02-16T02:14:14.273Z | 2,015 | 2 | 2 | 0 | 57 | 2 | 740 | 31 | 2 | 3 | true | false | false | false | false | false | low |
28,533,660 | EditText is missing in eclipse | <p>in my Android guide the instructor chooses to add EditText field into the Graphical Layout. In the video i can see that it's listed under "From Widgets" but i don't see EditText option in the list of widgets in my eclipse.</p>
<p>i succeeded in adding the EditText manually into the XML with the following code:</p>
... | in my Android guide the instructor chooses to add EditText field into the Graphical Layout. In the video i can see that it's listed under "From Widgets" but i don't see EditText option in the list of widgets in my eclipse. i succeeded in adding the EditText manually into the XML with the following code: [CODE] but i do... | java|android|eclipse | 0 | 2015-02-16T02:23:36.567Z | 2,015 | 2 | 2 | 0 | 104 | 0 | 534 | 30 | 3 | 1 | true | true | 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.