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,561,346 | How to timed events work? | <p>I'm working on an app and I'd like to program timed activities. For example, if you've played games like 'The Simpsons: Tapped Out', 'Clash of Clans', 'Sim City: Build It' and many others, you'll know the user can set up an activity (eg, build a house/set the character to complete a task) and return later to find it... | I'm working on an app and I'd like to program timed activities. For example, if you've played games like 'The Simpsons: Tapped Out', 'Clash of Clans', 'Sim City: Build It' and many others, you'll know the user can set up an activity (eg, build a house/set the character to complete a task) and return later to find it co... | android|android-intent|android-activity | -1 | 2015-02-17T12:20:50.537Z | 2,015 | 2 | 12 | 1 | 60 | 1 | 732 | 25 | 3 | 0 | false | false | false | false | false | true | negative |
28,561,361 | DBFlow using JSONModel throws InvalidDBconfiguration: JSONModel is not registered with a Database | <p>I'm starting to use DBFlow and following the documentation. I have a huge JSON and I don't wanna upload all in memory so I'm using JSONModel approach that they've implemented.</p>
<pre><code> admissionJSONModel = new JSONModel<Admission>(jsonObject, Admission.class);
</code></pre>
<p>The admission class:<... | I'm starting to use DBFlow and following the documentation. I have a huge JSON and I don't wanna upload all in memory so I'm using JSONModel approach that they've implemented. [CODE] The admission class: [CODE] Ant the database class: [CODE] The stack trace of the exception that I have is: [CODE] Thank you so much in a... | android|orm | 0 | 2015-02-17T12:21:33.977Z | 2,015 | 2 | 12 | 1 | 1,557 | 2 | 329 | 97 | 2 | 4 | true | false | false | false | false | false | zero |
28,561,401 | How to upgrade database on users device? | <p>it is the first time that I need to change database structure of my app (that has been already published on Google play).
This is my database class:</p>
<pre><code>public class Database extends SQLiteOpenHelper {
private static final String DB_NAME = "db";
private static final int DB_VERSION = 1;
publi... | it is the first time that I need to change database structure of my app (that has been already published on Google play). This is my database class: [CODE] I have added the following table: [CODE] and then add this: [CODE] So now, what have i to add in onUpgrade method to make users have the updated database on their d... | android|database|add|upgrade | 0 | 2015-02-17T12:23:16.957Z | 2,015 | 2 | 12 | 1 | 44 | 1 | 504 | 40 | 4 | 3 | true | false | false | false | false | false | zero |
28,561,410 | Video upload eats up all the bandwidth in android | <p>I am have a functionality to upload a video in android. For that I have taken the entire code in a service and inside that used an AsyncTask to call upload video function in doInBackground(). Below is the code to upload video:</p>
<pre><code> private String uploadFile(String filePath, String proid, String procat... | I am have a functionality to upload a video in android. For that I have taken the entire code in a service and inside that used an AsyncTask to call upload video function in doInBackground(). Below is the code to upload video: [CODE] Hence AndroidMultiPartEntity uploads entire video. But the issue is that if in between... | android|multithreading|video|android-asynctask|android-service | 0 | 2015-02-17T12:24:03.370Z | 2,015 | 2 | 12 | 1 | 89 | 1 | 803 | 49 | 5 | 1 | true | false | false | false | false | false | zero |
28,561,494 | How to open incoming sms from notification directly to my application's intent as textview or listview? | <p>I want to open incoming sms from notification directly to my application's intent , Please help I tried following code to read sms from inbox</p>
<pre><code>public class SmsReceiver extends BroadcastReceiver
{
public static String BODY = "Test";
public static String ADDRESS = "5556";
@Ov... | I want to open incoming sms from notification directly to my application's intent , Please help I tried following code to read sms from inbox [CODE] | android|android-intent|broadcast|smsmanager | 0 | 2015-02-17T12:27:34.503Z | 2,015 | 2 | 12 | 1 | 1,022 | 1 | 148 | 103 | 4 | 1 | true | false | false | false | false | false | zero |
28,561,523 | how to arrange 2*2 radiogroup | <p>I am making an app in which I want to design the options in 2*2 radio buttons.For this I am doing the following thing but getting "android.widget.RelativeLayout cannot be cast to android.widget.RadioButton" error</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schem... | I am making an app in which I want to design the options in 2*2 radio buttons.For this I am doing the following thing but getting "android.widget.RelativeLayout cannot be cast to android.widget.RadioButton" error [CODE] Please help in this I am stuck since morning. | android|android-tablelayout|android-relativelayout|android-radiogroup | 0 | 2015-02-17T12:29:22.623Z | 2,015 | 2 | 12 | 1 | 1,317 | 3 | 265 | 29 | 4 | 1 | true | false | false | false | false | false | zero |
28,561,551 | How can I set LongClick on group in ExpandableListView [Android] | <p>I have a ExanpdableLisView, and I have to implement the methods setOnChildClickListener for the childs and the "LongClick" for the group/parent.</p>
<p>I have donde the childs one, but I don't know how to achive the LongClick.</p>
<p>This is the code for <code>setOnChildClickListener</code> </p>
<pre><code>expLis... | I have a ExanpdableLisView, and I have to implement the methods setOnChildClickListener for the childs and the "LongClick" for the group/parent. I have donde the childs one, but I don't know how to achive the LongClick. This is the code for setOnChildClickListener [CODE] But I have no idea how to do LongClick on Group/... | java|android|android-listview|expandablelistview | 2 | 2015-02-17T12:30:41.690Z | 2,015 | 2 | 12 | 1 | 3,278 | 2 | 327 | 64 | 4 | 1 | true | false | true | false | false | false | low |
28,561,568 | Pass variable to php to download mysql csv file to Android | <p>My aplication downloads a file, through a php script which is all doing fine.
However, I can only download the file to Android if I use ACTION_PICK intent, which opens the browser but I can't pass any parameters/variables to the php.</p>
<p>I would like to do 2 things:</p>
<ol>
<li><p>Download the file through php... | My aplication downloads a file, through a php script which is all doing fine. However, I can only download the file to Android if I use ACTION_PICK intent, which opens the browser but I can't pass any parameters/variables to the php. I would like to do 2 things: Download the file through php without open Android Browse... | php|android|mysql | 1 | 2015-02-17T12:31:51.143Z | 2,015 | 2 | 12 | 1 | 195 | 0 | 408 | 58 | 3 | 0 | false | true | false | false | false | false | low |
28,561,675 | android Bluetooth-LowEnergy not stable connection | <p>I am developing a BLE based android app in which my app will send data to all the paired devices that may be IOS/Android based.My app is successfully getting connected with and sending data to multiple connected devices (one at a time), but the issue i am facing is my device (containing my app) starts connecting and... | I am developing a BLE based android app in which my app will send data to all the paired devices that may be IOS/Android based.My app is successfully getting connected with and sending data to multiple connected devices (one at a time), but the issue i am facing is my device (containing my app) starts connecting and di... | android|bluetooth-lowenergy|android-bluetooth|ios-bluetooth | 2 | 2015-02-17T12:37:09.740Z | 2,015 | 2 | 12 | 1 | 561 | 0 | 461 | 49 | 4 | 0 | false | true | false | false | false | false | low |
28,561,687 | DialogFragment doesn't play exit animation | <p>I have a DialogFragment with a enter and exit animation. Enter plays, exit does not. </p>
<p>I've tried both of these methods in <code>OnStart()</code>;</p>
<pre><code>getDialog().getWindow()
.getAttributes().windowAnimations = R.style.DialogAnimation;
getDialog().getWindow().setWindowAnimat... | I have a DialogFragment with a enter and exit animation. Enter plays, exit does not. I've tried both of these methods in OnStart() ; [CODE] | android|android-fragments|android-animation | 1 | 2015-02-17T12:37:45.317Z | 2,015 | 2 | 12 | 1 | 387 | 1 | 139 | 42 | 3 | 1 | true | false | false | false | false | false | low |
28,561,698 | Loading items to a extendable list view using adapter | <p>Im trying to transfer data between 2 activities and then display using a adapter. Earlier I have used same adapter to display List, but this gives couple of errors in my adapter and i have showed them in my code below. </p>
<p>Can anyone figure what should i do to correct it. any help would be appreciated.</p>
<p>... | Im trying to transfer data between 2 activities and then display using a adapter. Earlier I have used same adapter to display List, but this gives couple of errors in my adapter and i have showed them in my code below. Can anyone figure what should i do to correct it. any help would be appreciated. 1st activity passing... | android|adapter|android-viewholder | 0 | 2015-02-17T12:38:11.647Z | 2,015 | 2 | 12 | 1 | 240 | 1 | 423 | 53 | 3 | 4 | true | false | false | false | false | false | zero |
28,561,712 | Using Android Database for to-do list | <p>guys.</p>
<p>I am making a simple to-do list app.</p>
<p>My app need to have two kinds of to-do list.</p>
<p>Do I need to create another database for another list?</p>
<p>If so, please help me.</p>
<p>And I created my app with this tutorial;
<a href="http://www.sitepoint.com/starting-android-development-creatin... | guys. I am making a simple to-do list app. My app need to have two kinds of to-do list. Do I need to create another database for another list? If so, please help me. And I created my app with this tutorial; To-do List App Example | java|android|database|sqlite | 1 | 2015-02-17T12:38:41.723Z | 2,015 | 2 | 12 | 1 | 1,642 | 2 | 229 | 37 | 4 | 0 | false | false | false | false | false | false | low |
28,561,725 | Set Nexus repository in build.gradle for android studio | <p>I would like to set a nexus repo in my gralde config to access some local libraries.</p>
<p>Do I need to set the nexus repo in my gradle config like following ?</p>
<pre><code>repositories {
mavenLocal()
maven {
url "http://mySuperRepo/nexus/content/groups/public/"
}
jcenter()
}
</code></p... | I would like to set a nexus repo in my gralde config to access some local libraries. Do I need to set the nexus repo in my gradle config like following ? [CODE] I have already set the nexus in the maven config file (settings.xml in m2) [CODE] My problem is that AndroidStudio seems to download all the nexus repo in my l... | android-studio|gradle|maven-2|nexus|sonatype | 0 | 2015-02-17T12:39:54.827Z | 2,015 | 2 | 12 | 1 | 3,488 | 1 | 489 | 55 | 5 | 2 | true | false | true | false | false | false | zero |
28,561,778 | How to use CellIdentityGsm | <p>I'm trying to use <em><code>CellIdentityGsm</code></em> by using the following code:</p>
<pre><code>final TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
CellInfoGsm cellInfoGsm = (CellInfoGsm) tm.getAllCellInfo().get(0);
CellIdentityGsm cellIdentityGsm = cellInfoGsm.getCellIde... | I'm trying to use CellIdentityGsm by using the following code: [CODE] It works on emulator but for actual device, the application crashes. API level is ok and permissions also ok ***********************Log|cat****************** [CODE] | android | 0 | 2015-02-17T12:42:14.317Z | 2,015 | 2 | 12 | 1 | 483 | 1 | 234 | 26 | 1 | 2 | true | false | false | false | false | false | zero |
28,561,811 | Background image not responsive when viewed on mobile or iPad | <p>I am having an issue with the background image for my site.</p>
<p>When re-sizing in the browser (chrome) it responds how it should, however when I upload it to my server and open the site from my mobile device, it does not re-size. The image just stays the original size and is zoomed into one area of the image.</... | I am having an issue with the background image for my site. When re-sizing in the browser (chrome) it responds how it should, however when I upload it to my server and open the site from my mobile device, it does not re-size. The image just stays the original size and is zoomed into one area of the image. Can anyone he... | android|html|css|mobile|background | 0 | 2015-02-17T12:43:35.257Z | 2,015 | 2 | 12 | 1 | 245 | 1 | 355 | 61 | 5 | 1 | true | false | false | false | false | false | zero |
28,561,899 | ActionBar Menu Items Icon sizes are not working properly | <p>I have re-sized the icon according to drawables like: 32px, 48px,96px, etc.</p>
<p>But when running the app it is showing the bigger image. Is there anything else that I have to do?</p>
<p>Thank you.</p> | I have re-sized the icon according to drawables like: 32px, 48px,96px, etc. But when running the app it is showing the bigger image. Is there anything else that I have to do? Thank you. | android|android-drawable | -3 | 2015-02-17T12:48:35.590Z | 2,015 | 2 | 12 | 1 | 106 | 1 | 185 | 56 | 2 | 0 | false | false | false | false | false | true | negative |
28,561,964 | Reading image from private storage android | <p>I have stored some image in the device private storage like:</p>
<pre><code> InputStream inputStream = response.getEntity().getContent();
FileOutputStream fileOutputStream = openFileOutput("someImage.jpeg", cont.MODE_PRIVATE);
int read = 0;
byte[] buffer = new byte[32768];
while((read = inputStre... | I have stored some image in the device private storage like: [CODE] Then I want to read that image and store it as bitmap to show it to the user, I don't know what to do to accomplish this! I want to read the image again from the private storage, then convert it to bitmap. any experience? | android|image|bitmap|fileinputstream|fileoutputstream | 2 | 2015-02-17T12:52:03.243Z | 2,015 | 2 | 12 | 1 | 255 | 1 | 289 | 42 | 5 | 1 | true | false | false | false | false | false | low |
28,561,986 | Android Studio import project (Folder Structure) | <p>Hi Stackoverflow Community,</p>
<p>I have get one Android App Project. It was made with Android Studios. But now I have a problem after importing that project. After importing I can not launch the Application. The "Error Box" shows the following:</p>
<pre><code>Error:(5, 0) Cause: startup failed:
build file 'C:\U... | Hi Stackoverflow Community, I have get one Android App Project. It was made with Android Studios. But now I have a problem after importing that project. After importing I can not launch the Application. The "Error Box" shows the following: [CODE] Also I see that the folder Structure is diffrent. I can not understand wh... | android|import|structure|directory|project | 1 | 2015-02-17T12:52:49.347Z | 2,015 | 2 | 12 | 1 | 462 | 0 | 663 | 48 | 5 | 1 | true | true | false | false | false | false | low |
28,562,022 | How to fix the bind value at index 1 is null in android | <p>I am creating an android application that consists of registration form using sqlite database and forgot password field after clicking forgot password field security check to show password with reset button.When i click the reset password field it is <strong>showing the bind value at index 1 is null</strong> please ... | I am creating an android application that consists of registration form using sqlite database and forgot password field after clicking forgot password field security check to show password with reset button.When i click the reset password field it is showing the bind value at index 1 is null please help me to fix this.... | android|android-sqlite | 3 | 2015-02-17T12:55:07.693Z | 2,015 | 2 | 12 | 1 | 12,352 | 2 | 445 | 55 | 2 | 3 | true | false | true | true | false | false | low |
28,562,053 | Collision detection in a java based 2D space shooter game | <p>The context behind the this question is that I am part of a small group working to create a small game on Android. The game we have chosen to develop is a top-down 2D shooter where the player controls a spaceship that must defend itself from alien creatures that move towards the player from the top of the gamescreen... | The context behind the this question is that I am part of a small group working to create a small game on Android. The game we have chosen to develop is a top-down 2D shooter where the player controls a spaceship that must defend itself from alien creatures that move towards the player from the top of the gamescreen, s... | java|android | 0 | 2015-02-17T12:56:30.297Z | 2,015 | 2 | 12 | 1 | 860 | 1 | 1,765 | 57 | 2 | 4 | true | false | false | false | false | false | zero |
28,562,071 | Protocol https not supported | <p>I built libcurl from sources, for android with a prebuilt openssl lib (using <code>--with-ssl=$OPENSSPATH</code>). The build was succeeded with no errors.</p>
<p>When I'm trying to make a https request I receive "Protocol https not supported or disabled in libcurl". But in <code>curl_version_info</code> https is co... | I built libcurl from sources, for android with a prebuilt openssl lib (using --with-ssl=$OPENSSPATH ). The build was succeeded with no errors. When I'm trying to make a https request I receive "Protocol https not supported or disabled in libcurl". But in curl_version_info https is contained in the protocols list: [CODE... | android|c++|curl|openssl|libcurl | 0 | 2015-02-17T12:57:06.647Z | 2,015 | 2 | 12 | 1 | 234 | 0 | 377 | 28 | 5 | 1 | true | true | false | false | false | false | zero |
28,562,172 | java.lang.NoClassDefFoundError: android.support.v4.app.NavUtilsJB error when adding new module in Android Studio | <p>I have a strange error adding new module (<a href="https://github.com/lomza/android-color-picker" rel="nofollow">https://github.com/lomza/android-color-picker</a>) to my project. Without this module project runs fine, but if add this project as module to my main project and compile it - everything looks good, but ap... | I have a strange error adding new module ( https://github.com/lomza/android-color-picker ) to my project. Without this module project runs fine, but if add this project as module to my main project and compile it - everything looks good, but app starts and force closes instantly giving me this error: [CODE] ActivityWel... | java|android|android-studio|noclassdeffounderror | 2 | 2015-02-17T13:02:37.003Z | 2,015 | 2 | 13 | 1 | 2,680 | 2 | 620 | 112 | 4 | 1 | true | false | true | false | false | false | low |
28,562,258 | how do i have to change my code to apply this customized library? | <p>im making a fork about audio recording in real time and in addition to adding audio effect(delay(echo), reverb, ...), and im new to the audio programming world</p>
<p>i got some trouble like below</p>
<p>i got the library(be.tarsos.dsp) by joren
i want to apply delay effect to my application</p>
<p>it works wel... | im making a fork about audio recording in real time and in addition to adding audio effect(delay(echo), reverb, ...), and im new to the audio programming world i got some trouble like below i got the library(be.tarsos.dsp) by joren i want to apply delay effect to my application it works well defaultly before i added th... | java|android|audio-recording|audioeffect|tarsosdsp | 0 | 2015-02-17T13:06:52.183Z | 2,015 | 2 | 13 | 1 | 354 | 0 | 846 | 65 | 5 | 2 | true | true | false | false | false | false | zero |
28,562,286 | Android EditText 3.5 lines | <blockquote>
<p>I have to show max 3.5 lines in my EditText if lines are more then 3.
I tried lots of property but still not able to implement that. </p>
<p>If a set android:layout_height="wrap_content" it will show N number of
lines. </p>
<p>Do we have any property combination or I'll have to do it
m... | I have to show max 3.5 lines in my EditText if lines are more then 3. I tried lots of property but still not able to implement that. If a set android:layout_height="wrap_content" it will show N number of lines. Do we have any property combination or I'll have to do it manually. Say I fixed some height to android:layout... | android|android-edittext|lines | 0 | 2015-02-17T13:08:25.623Z | 2,015 | 2 | 13 | 1 | 124 | 2 | 501 | 26 | 3 | 1 | true | false | false | false | false | false | zero |
28,562,304 | Android: NullPointerException when trying to access a TextView from other class | <p>i'm trying to learn android development at the moment. Now i have problem i can't find a solution.</p>
<p>The app should get the gps position and write the coordinates in a textview.</p>
<p>But when the gps get's a signal i get a NullPointerException. </p>
<p>The following code is from my MainActitvity. GetLocati... | i'm trying to learn android development at the moment. Now i have problem i can't find a solution. The app should get the gps position and write the coordinates in a textview. But when the gps get's a signal i get a NullPointerException. The following code is from my MainActitvity. GetLocation is my class to get the gp... | java|android|gps|android-context | 1 | 2015-02-17T13:09:28.387Z | 2,015 | 2 | 13 | 1 | 460 | 4 | 574 | 79 | 4 | 3 | true | false | false | false | false | false | low |
28,562,354 | Android studio interface does not redraw after connecting a device | <p>Android studio interface does not redraw after I connect an ADB device, and it doesn't matter if it's an AVD or a hardware phone/tablet. After device is connected, Studio window becomes grey, and then some (but not all) areas become apparent if I drag mouse over them (see screenshots below).</p>
<p>Event log shows ... | Android studio interface does not redraw after I connect an ADB device, and it doesn't matter if it's an AVD or a hardware phone/tablet. After device is connected, Studio window becomes grey, and then some (but not all) areas become apparent if I drag mouse over them (see screenshots below). Event log shows multiple Ar... | java|android|android-studio | 3 | 2015-02-17T13:11:54.997Z | 2,015 | 2 | 13 | 1 | 394 | 1 | 601 | 66 | 3 | 2 | true | false | false | false | false | false | low |
28,562,362 | How to avoid using AppCompat for minSDK > 16 in Android Studio? | <p>I'm using Android Studio 1.0.2 (fresh standard install, switching from Eclipse/ADT). </p>
<p>When I create a new project with minSDK = 17, AS still create the project using AppCompat:</p>
<pre><code>import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.... | I'm using Android Studio 1.0.2 (fresh standard install, switching from Eclipse/ADT). When I create a new project with minSDK = 17, AS still create the project using AppCompat: [CODE] The gradle.file shows: [CODE] How do I configure AS to NOT generate code using AppCompat? I will run my code only in Android 4.2.2 (sdk 1... | android|android-studio|android-appcompat | 0 | 2015-02-17T13:12:37.703Z | 2,015 | 2 | 13 | 1 | 597 | 1 | 441 | 63 | 3 | 2 | true | false | false | false | false | false | zero |
28,562,400 | Is Intellij IDEA obsolete like Eclipse for Android development? | <p>Google officially <a href="http://developer.android.com/tools/sdk/eclipse-adt.html" rel="nofollow">announced</a> that Eclipse should no longer be used for Android development and we should move to Android Studio. </p>
<p>Does the same apply to IntelliJ IDEA? I have multiple projects in Eclipse format which will not... | Google officially announced that Eclipse should no longer be used for Android development and we should move to Android Studio. Does the same apply to IntelliJ IDEA? I have multiple projects in Eclipse format which will not be ported to Gradle yet, so I am not sure if I can use IntelliJ IDEA for maintaining those proje... | android|intellij-idea | 0 | 2015-02-17T13:14:28.470Z | 2,015 | 2 | 13 | 1 | 249 | 3 | 644 | 63 | 2 | 0 | false | false | false | false | false | false | zero |
28,562,438 | Do a gradle task that tests, do connectedAndroidTest, builds and executes a script in GRADLE | <p>I've got a Gradle project, right now I can:</p>
<pre><code>test it : rootdir$gradle test
build it : rootdir$gradle build
run android instrumental tests : rootdir$gradle connectedAndroidTest
execute a script : rootdir$gradle app:uploadArchives
</code></p... | I've got a Gradle project, right now I can: [CODE] I'd like to do a task that tests, do the connected android tests, build the apk and finally run the uploadArchives task. I've placed this code into build.gradle: [CODE] but it doesn't works when I do [CODE] It says: Could not determine the dependencies of task ':doAll'... | java|android|gradle | 0 | 2015-02-17T13:16:16.947Z | 2,015 | 2 | 13 | 1 | 1,153 | 1 | 383 | 92 | 3 | 3 | true | false | false | false | false | false | zero |
28,562,463 | Android: Dialog fragments and retaining the values selected the first time the dialog is opened when the user opens the dialog for a second time | <p>This is (conceptually) what I am looking for and I am finding it difficult to find an answer. Please ask for clarity if needed but I will do my best.</p>
<ol>
<li><p>A user clicks on a TextView which uses the onClick method (along with listener) to open up a dialog fragment (the dialog fragment is custom dialog wit... | This is (conceptually) what I am looking for and I am finding it difficult to find an answer. Please ask for clarity if needed but I will do my best. A user clicks on a TextView which uses the onClick method (along with listener) to open up a dialog fragment (the dialog fragment is custom dialog with three number picke... | android|android-alertdialog|android-dialogfragment | 1 | 2015-02-17T13:17:58.120Z | 2,015 | 2 | 13 | 1 | 679 | 2 | 1,058 | 144 | 3 | 0 | false | false | false | false | false | false | low |
28,562,479 | How to share POJO between GAE and Android app when using Objectify | <p>I have created a separate module where i store POJO and use them in GAE Cloud Endpoints module as well as in Android App. </p>
<p>I want to store one of the objects in GAE Datastore. Now to mark this class as objectify i need to use annotations to identify Entity and Id. This would mean that my POJO Module would no... | I have created a separate module where i store POJO and use them in GAE Cloud Endpoints module as well as in Android App. I want to store one of the objects in GAE Datastore. Now to mark this class as objectify i need to use annotations to identify Entity and Id. This would mean that my POJO Module would now need to im... | android|google-app-engine|google-cloud-datastore|objectify | 0 | 2015-02-17T13:18:35.180Z | 2,015 | 2 | 13 | 1 | 99 | 1 | 548 | 66 | 4 | 0 | false | false | false | false | false | false | zero |
28,562,496 | Measure final ImageView width in GridView row | <p>When adding an ImageView to a GridView item (Adapter), I would like to know the final width of the ImageView as it is rendered on the screen, so I can adapt the TextView to the exact size of the ImageView. However, when adding the ImageView as GridView item, based on the available width of the GridView the ImageView... | When adding an ImageView to a GridView item (Adapter), I would like to know the final width of the ImageView as it is rendered on the screen, so I can adapt the TextView to the exact size of the ImageView. However, when adding the ImageView as GridView item, based on the available width of the GridView the ImageView wi... | android|gridview | 0 | 2015-02-17T13:19:19.467Z | 2,015 | 2 | 13 | 1 | 314 | 2 | 731 | 45 | 2 | 2 | true | false | false | false | false | false | zero |
28,562,551 | How account password could be plain text visible in account settings? | <p>It seems that no one has encountered this problem or doesn't talk about it. I implemented authenticator "concept" for an enterprise application. And in a random way, when I navigate to the account settings, instead of account name in the left menu I can see the password in clear text !! It's very strange and I actua... | It seems that no one has encountered this problem or doesn't talk about it. I implemented authenticator "concept" for an enterprise application. And in a random way, when I navigate to the account settings, instead of account name in the left menu I can see the password in clear text !! It's very strange and I actually... | android|security|settings|account|authenticator | 0 | 2015-02-17T13:22:20.590Z | 2,015 | 2 | 13 | 1 | 119 | 0 | 584 | 69 | 5 | 3 | true | true | false | false | false | false | zero |
28,562,590 | Character style / span to set letter spacing | <p>The <a href="http://developer.android.com/reference/android/widget/TextView.html#setLetterSpacing(float)" rel="nofollow"><code>TextView.setLetterSpacing</code></a> allows the letter spacing / character spacing to be set.</p>
<p>Is there a corresponding <a href="http://developer.android.com/reference/android/text/st... | The TextView.setLetterSpacing allows the letter spacing / character spacing to be set. Is there a corresponding CharacterStyle / span class that allows the letter spacing to be set on a subset of the text in a TextView ? | android|textview | 4 | 2015-02-17T13:24:27.843Z | 2,015 | 2 | 13 | 1 | 5,514 | 3 | 220 | 44 | 2 | 0 | false | false | true | false | false | false | low |
28,562,595 | getApplicationContext() error Android | <p>I have a fragment that allows a user to enter in a message and a phone number to which the message will be delivered. I am getting an error "cannot resolve method getApplicationContext()" I have looked at the answer here <a href="https://stackoverflow.com/questions/16678763/the-method-getapplicationcontext-is-undefi... | I have a fragment that allows a user to enter in a message and a phone number to which the message will be delivered. I am getting an error "cannot resolve method getApplicationContext()" I have looked at the answer here the method getApplicationContext() is undefined but it didn't help me, maybe I am implementing it w... | android|android-fragments | 9 | 2015-02-17T13:24:44.413Z | 2,015 | 2 | 13 | 1 | 50,630 | 7 | 428 | 37 | 2 | 1 | true | false | true | true | false | false | medium |
28,562,627 | How to set OpenCV's camera to display preview in both portrait orientation and full screen | <p>I'm trying to create an Android app. which displays a camera preview in portrait mode at all times and performs some heavy image processing operations on (some of) it's frames. Hence, I'm using OpenCV (both of it's OpenCV4Android and native C/C++ components). The problem is that when using CameraBridgeViewBase or Ja... | I'm trying to create an Android app. which displays a camera preview in portrait mode at all times and performs some heavy image processing operations on (some of) it's frames. Hence, I'm using OpenCV (both of it's OpenCV4Android and native C/C++ components). The problem is that when using CameraBridgeViewBase or JavaC... | android|opencv|camera|opencv4android | 5 | 2015-02-17T13:26:14.480Z | 2,015 | 2 | 13 | 1 | 10,057 | 1 | 1,539 | 90 | 4 | 2 | true | false | true | false | false | false | low |
28,562,641 | Android service doesn't works at boot | <p>I've made my first android service, I want that service to be launched at boot but doesn't work</p>
<p>Here is the service class</p>
<pre><code> package service.com.serviceboot;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widge... | I've made my first android service, I want that service to be launched at boot but doesn't work Here is the service class [CODE] This is the broadcast receiver [CODE] and the manifest [CODE] I rebbot the phone but the service is not lanched | android|service | 1 | 2015-02-17T13:26:51.520Z | 2,015 | 2 | 13 | 1 | 279 | 2 | 240 | 37 | 2 | 3 | true | false | false | false | false | false | low |
28,562,662 | Slow build with android studio | <p>I can't comment on any answer because my reputation isn't 50 so i have ask a question here.
I have just started learning android development with java android studio and when ever i compile even few line of code the android studio take forever to build and execute. My android emulator is already running. So I looked... | I can't comment on any answer because my reputation isn't 50 so i have ask a question here. I have just started learning android development with java android studio and when ever i compile even few line of code the android studio take forever to build and execute. My android emulator is already running. So I looked on... | android-studio|gradle|android-gradle-plugin | 1 | 2015-02-17T13:27:32.027Z | 2,015 | 2 | 13 | 1 | 242 | 1 | 2,045 | 30 | 3 | 0 | false | false | false | false | false | false | low |
28,562,703 | Android Ndk & FFMPEG - Not able to compile on ubuntu x86 | <p>I am following this:
<a href="http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9" rel="nofollow">roman10's android ndk r9d - ffmpeg tutorial</a>
I am able to run build_android.sh script.. but its not creating that ‘android’ folder in my source/ffmpeg folder !!
what should I do? Plz help me.</p>
<p>Another Doubt... | I am following this: roman10's android ndk r9d - ffmpeg tutorial I am able to run build_android.sh script.. but its not creating that ‘android’ folder in my source/ffmpeg folder !! what should I do? Plz help me. Another Doubt: The thing ‘arm’ in that .sh file is supposed to be changed according to machine env???? If th... | android-ndk|ffmpeg | 0 | 2015-02-17T13:29:47.190Z | 2,015 | 2 | 13 | 1 | 1,118 | 1 | 469 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
28,562,793 | Android In-app Billing condition? | <p>I wanted to know how do I create a condition (eg. If the user buys an item can show a specific activity if not, no.) So how can i write, checking to see if a user has purchased the item. Do you think the code can work for items that you can buy only once?</p>
<p>I followed a guide for writing it. This is my code.</... | I wanted to know how do I create a condition (eg. If the user buys an item can show a specific activity if not, no.) So how can i write, checking to see if a user has purchased the item. Do you think the code can work for items that you can buy only once? I followed a guide for writing it. This is my code. [CODE] | android|conditional-statements|in-app-billing | 0 | 2015-02-17T13:35:23.453Z | 2,015 | 2 | 13 | 1 | 81 | 1 | 314 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
28,562,827 | Unable to run c++ executable from Android terminal emulator | <p>Following the instruction of <a href="https://stackoverflow.com/questions/9460251/how-do-i-build-a-native-command-line-executable-to-run-on-android">How do I build a native (command line) executable to run on Android?</a>, I can build a C++ command line program that can run in Android. I use <code>adb push ./hello_w... | Following the instruction of How do I build a native (command line) executable to run on Android? , I can build a C++ command line program that can run in Android. I use adb push ./hello_world /data/local/tmp/hello_world to install the program on Android device. It seems to work fine when I run the following commands i... | android|c++ | 1 | 2015-02-17T13:38:58.313Z | 2,015 | 2 | 13 | 1 | 401 | 0 | 566 | 59 | 2 | 2 | true | true | false | false | false | false | low |
28,562,893 | Android - default messaging app SMSs time is recieved time not sent | <p>first of all this is my first time asking a question here so sorry in advance if i'm a bit off the guidelines... i'll try to make it as clear as possible:</p>
<p>I'm writing an application that transfers SMSs from one device to another (both devices are android devices). i noticed that on some devices, when i enter... | first of all this is my first time asking a question here so sorry in advance if i'm a bit off the guidelines... i'll try to make it as clear as possible: I'm writing an application that transfers SMSs from one device to another (both devices are android devices). i noticed that on some devices, when i enter the defaul... | android|database|sqlite | 0 | 2015-02-17T13:43:42.537Z | 2,015 | 2 | 13 | 1 | 97 | 1 | 1,977 | 67 | 3 | 0 | false | false | false | false | false | false | zero |
28,562,894 | How to loop an MPEG TS stream | <p>I'm looking for a way to stream a TS file as an infinitely looping http stream. I've tried just concatenating the file but that results in playback corruption.</p>
<p>I have basic code to read the TS packet headers, but I'm not sure how packets relate to the underlying video stream. Are frames aligned to packets (s... | I'm looking for a way to stream a TS file as an infinitely looping http stream. I've tried just concatenating the file but that results in playback corruption. I have basic code to read the TS packet headers, but I'm not sure how packets relate to the underlying video stream. Are frames aligned to packets (so potential... | android|ffmpeg|stream|mpeg|mpeg2-ts | 1 | 2015-02-17T13:43:44.853Z | 2,015 | 2 | 13 | 1 | 2,348 | 1 | 685 | 29 | 5 | 0 | false | false | false | false | false | false | low |
28,562,986 | Transparent ListView not working | <p>In main activity i have one lisview ..i want to make the listview transparent such that image on main activity is shown as background of listview.I have tried to make the backgroung of listview android:background="@color/transparent" android:cacheColorHint="#00000000"
but no change</p> | In main activity i have one lisview ..i want to make the listview transparent such that image on main activity is shown as background of listview.I have tried to make the backgroung of listview android:background="@color/transparent" android:cacheColorHint="#00000000" but no change | android | -2 | 2015-02-17T13:50:26.087Z | 2,015 | 2 | 13 | 1 | 87 | 1 | 282 | 32 | 1 | 0 | false | false | false | false | false | true | negative |
28,563,051 | MPAndroidChart setting chart padding / offset | <p>I'm using the MPAndroidChart for my bar graph and I'm struggling with removing the padding of the graph (see pic below)</p>
<p><img src="https://i.stack.imgur.com/3bw0C.png" alt="enter image description here"></p>
<p>My approaches regarding this problem were:</p>
<ol>
<li><pre><code>chart.setDrawLegend(false);
ch... | I'm using the MPAndroidChart for my bar graph and I'm struggling with removing the padding of the graph (see pic below) My approaches regarding this problem were: [CODE] [CODE] And nothing has worked so far. Do you know another approach for this problem? | android|mpandroidchart | 14 | 2015-02-17T13:54:20.763Z | 2,015 | 2 | 13 | 1 | 14,505 | 3 | 254 | 45 | 2 | 2 | true | false | true | true | true | false | medium |
28,563,093 | Android Studio: Images do not show up while debugging app on phone, but do on the emulator | <p>I have inserted an image on a blank activity:</p>
<pre><code> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView4"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:src="@drawable/h2ua" />
... | I have inserted an image on a blank activity: [CODE] The image works just fine while viewing in Design, and while testing the app using a Nexus 5 emulator on my Mac. But when i transfer it to my phone, it doesn't show up. I have the exact same setup in another activity where it works just fine on my phone. I have tried... | java|android|android-studio|android-emulator | 1 | 2015-02-17T13:56:38.607Z | 2,015 | 2 | 13 | 1 | 2,964 | 1 | 448 | 90 | 4 | 1 | true | false | true | false | false | false | low |
28,563,160 | Android Material Themes/Colors: ListView, cursors | <p>With the introduction of <code>Lollipop</code> and Material Design it has become easier to customize the color pallete of an app through setting the Theme style items <code>colorPrimary</code>, <code>colorPrimaryDark</code>, <code>colorAccent</code>, etc...
However, as far as I see this doesn't cover <code>ListView<... | With the introduction of Lollipop and Material Design it has become easier to customize the color pallete of an app through setting the Theme style items colorPrimary , colorPrimaryDark , colorAccent , etc... However, as far as I see this doesn't cover ListView (selector and overscroll glow) and text selection cursor a... | android|android-listview|android-5.0-lollipop|android-support-library|material-design | 4 | 2015-02-17T14:00:00.057Z | 2,015 | 2 | 14 | 1 | 809 | 0 | 755 | 49 | 5 | 0 | false | true | false | false | false | false | low |
28,563,214 | How to check new posts in a facebook group | <p>I am trying to make simplified application for my student group, i am stuck at an idea. Everything is done except notification for new posts in this group. I don't know how to check if there is a new post. Should I compare dates? Or check store first appearing post if its changed. There are also pinned posts, they s... | I am trying to make simplified application for my student group, i am stuck at an idea. Everything is done except notification for new posts in this group. I don't know how to check if there is a new post. Should I compare dates? Or check store first appearing post if its changed. There are also pinned posts, they seem... | java|android|facebook-graph-api|restfb | 0 | 2015-02-17T14:04:05.593Z | 2,015 | 2 | 14 | 1 | 108 | 1 | 491 | 42 | 4 | 0 | false | false | false | false | false | false | zero |
28,563,240 | UI not refreshed after first toggle the sliding menu on Android 5.0 lollipop | <p>I have a <code>ResponsiveUIActivity</code> which extends <code>SlidingFragmentActivity</code>. My application works perfectly below android version 5.0. But my UI is not refreshed and not clickable when I first toggle the sliding menu. For example, I can not scroll the <code>ListView</code> or write something on <co... | I have a ResponsiveUIActivity which extends SlidingFragmentActivity . My application works perfectly below android version 5.0. But my UI is not refreshed and not clickable when I first toggle the sliding menu. For example, I can not scroll the ListView or write something on EditText after first toggle. If I toggle the... | android|android-fragments|slidingmenu | 6 | 2015-02-17T14:05:12.427Z | 2,015 | 2 | 14 | 1 | 895 | 3 | 494 | 76 | 3 | 4 | true | false | false | false | false | false | medium |
28,563,264 | Android phone call including comma and hash # | <p>I need to make automatic phone call app with this two character (comma and hash). </p>
<p>I try with this method. If so, all character behind hash is not called.</p>
<pre><code> Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +"131#3131,,,44"));
startActivity(intent);
</code></pre>
<p>So, I... | I need to make automatic phone call app with this two character (comma and hash). I try with this method. If so, all character behind hash is not called. [CODE] So, I try with this method again. Then, all number behind comma is not called. May I know how to do? [CODE] | android|hash|tel | 3 | 2015-02-17T14:06:17.397Z | 2,015 | 2 | 14 | 1 | 1,907 | 1 | 268 | 45 | 3 | 2 | true | false | false | false | false | false | low |
28,563,380 | Get Data from Database. Using Getters & Setters Methods...! | <p>I have created one App. In this app I want to get Data from Database using <code>Getter</code> and <code>Setter</code> method. I don't Know how can I do that. Please help me. Necessary Code is here:</p>
<p>DisplayMedia.java</p>
<pre><code>public class DisplayMedia extends Activity {
ImageView displayImage;
... | I have created one App. In this app I want to get Data from Database using Getter and Setter method. I don't Know how can I do that. Please help me. Necessary Code is here: DisplayMedia.java [CODE] DataBaseHelper.java [CODE] In this app I inserted data in data base successfully. In my data base following data has store... | android|database|android-sqlite | 0 | 2015-02-17T14:12:52.843Z | 2,015 | 2 | 14 | 1 | 1,474 | 1 | 404 | 59 | 3 | 3 | true | false | false | false | false | false | zero |
28,563,385 | Android LibVlc integration and streaming issues (slow stream, stuttering, only audio play etc) | <p>I want to integrate libvlc in my Android app to play live video stream that is in m3u8 format. To achieve that I have downloaded a sample source code from <a href="https://bitbucket.org/edwardcw/libvlc-android-sample/src" rel="nofollow">here</a> that is a demo to play videos. It is mentioned that we have to first co... | I want to integrate libvlc in my Android app to play live video stream that is in m3u8 format. To achieve that I have downloaded a sample source code from here that is a demo to play videos. It is mentioned that we have to first compile vlc for android to run this sample code. For that we must follow this process andro... | android|video-streaming|http-live-streaming|libvlc|audiovideoplayback | 3 | 2015-02-17T14:13:11.940Z | 2,015 | 2 | 14 | 1 | 1,704 | 0 | 1,381 | 94 | 5 | 0 | false | true | false | false | false | false | low |
28,563,387 | Landscape app and onConfigurationChanged never called | <p>I need to handle device <strong>rotation</strong> in my app.
At the same time, I need to have the app in landscape mode.
If in the manifest file I've:</p>
<pre><code>android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize"
</code></pre>
<p>the onConfigurationChanged metho... | I need to handle device rotation in my app. At the same time, I need to have the app in landscape mode. If in the manifest file I've: [CODE] the onConfigurationChanged method is never called. How to handle this ? [CODE] | android|rotation|landscape|portrait | 0 | 2015-02-17T14:13:14.307Z | 2,015 | 2 | 14 | 1 | 338 | 1 | 219 | 53 | 4 | 2 | true | false | false | false | false | false | zero |
28,563,390 | Unable to give style to action bar in android studio 1.0.1 | <p>I am trying to give colour/image as background to the action bar in android studio (), max sdk ver 21, but with no success. What is wrong with the below code and or else how to do it:</p>
<pre><code><resources>
<style name="CustomActionBarTheme" parent="Theme.AppCompat.Light">
<item name="android... | I am trying to give colour/image as background to the action bar in android studio (), max sdk ver 21, but with no success. What is wrong with the below code and or else how to do it: [CODE] | android|android-studio|android-actionbar|android-5.0-lollipop | 0 | 2015-02-17T14:13:21.213Z | 2,015 | 2 | 14 | 1 | 392 | 2 | 190 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
28,563,391 | Android Studio - Run and install the app with lower API | <p>I usually use 3 emulator to test the apps (JB, KK and Lollipop). But now I am using my Surface Pro and I can't use a lot of emulator. Then I only use my real nexus 5 device but it is a problem because I am using code for v21 and v19, and I can't test v19.</p>
<p>Is it possible to install the app forcing the v19 in ... | I usually use 3 emulator to test the apps (JB, KK and Lollipop). But now I am using my Surface Pro and I can't use a lot of emulator. Then I only use my real nexus 5 device but it is a problem because I am using code for v21 and v19, and I can't test v19. Is it possible to install the app forcing the v19 in my Nexus 5 ... | android|android-api-levels | 0 | 2015-02-17T14:13:27.440Z | 2,015 | 2 | 14 | 1 | 1,206 | 3 | 334 | 55 | 2 | 0 | false | false | false | false | false | false | zero |
28,563,401 | Listview with CursorAdapter getCheckedItemIds not returning _ids | <p>Listview with CursorAdapter
SetchoiceMode is multiple</p>
<p>getCheckedItemIds is returning position rather than _ids
and my adapter is also stable</p>
<p>do you know the reason ?</p> | Listview with CursorAdapter SetchoiceMode is multiple getCheckedItemIds is returning position rather than _ids and my adapter is also stable do you know the reason ? | android-cursoradapter | 0 | 2015-02-17T14:13:53.023Z | 2,015 | 2 | 14 | 1 | 39 | 1 | 165 | 64 | 1 | 0 | false | false | false | false | false | false | zero |
28,563,470 | Android sending request to server on background | <p>I'm try to make my Android App that send an HTTPRequest to a server repeatedly even when the App is not running (much like chat).The server will return a JSON file and if there is any update at the file, the app will send a notification to the user.<br>
How can I do that? </p>
<p>Thnks.</p> | I'm try to make my Android App that send an HTTPRequest to a server repeatedly even when the App is not running (much like chat).The server will return a JSON file and if there is any update at the file, the app will send a notification to the user. How can I do that? Thnks. | android|push-notification|server | 0 | 2015-02-17T14:17:48.003Z | 2,015 | 2 | 14 | 1 | 1,301 | 2 | 275 | 47 | 3 | 0 | false | false | false | false | false | false | zero |
28,563,543 | Using Job Scheduler in Android API <21 | <p>I was looking at a scheduling tutorial by <a href="http://www.vogella.com/tutorials/AndroidTaskScheduling/article.html#schedulestasks_jobschedulerintro">Vogella</a>. It mentions the <i>Job Scheduler </i> API that was introduced in API 21 of Android. My question is can it be implemented in APIs lower than 21 (Lollipo... | I was looking at a scheduling tutorial by Vogella . It mentions the Job Scheduler API that was introduced in API 21 of Android. My question is can it be implemented in APIs lower than 21 (Lollipop) but not less than Android version 3 (Honeycomb)? | android|android-service | 41 | 2015-02-17T14:21:36.467Z | 2,015 | 2 | 14 | 1 | 27,593 | 7 | 246 | 38 | 2 | 0 | false | false | true | true | true | false | high |
28,563,604 | CardListView filter | <p>I'm using CardListView from <a href="https://github.com/gabrielemariotti/cardslib" rel="nofollow">https://github.com/gabrielemariotti/cardslib</a>.
So assume I have simple cardListView with its adapter </p>
<pre><code>CardListView cardListView = (CardListView) findViewById(R.id.card_list);
ArrayList cards = new Arr... | I'm using CardListView from https://github.com/gabrielemariotti/cardslib . So assume I have simple cardListView with its adapter [CODE] What I want to do is to filter my cardListView according to CardHeader. The CardArrayAdapter has the method [CODE] But I don't get the idea how it filters cards. In my case, I placed i... | android|listview|android-filter | 0 | 2015-02-17T14:24:31.883Z | 2,015 | 2 | 14 | 1 | 235 | 2 | 556 | 19 | 3 | 3 | true | false | false | false | false | false | zero |
28,563,632 | Common code for different android flavors | <p>I am building 4 different flavors of my Android app.</p>
<p>I have a class <code>Customization.java</code> that is the same for 3 of them and different for 1.</p>
<p>Since I cannot put the same class both in the main folder and in the flavor folder, I now have to maintain 3 copies of the exact same class for those... | I am building 4 different flavors of my Android app. I have a class Customization.java that is the same for 3 of them and different for 1. Since I cannot put the same class both in the main folder and in the flavor folder, I now have to maintain 3 copies of the exact same class for those 3 flavors. Is there any way tha... | android|gradle|android-gradle-plugin | 74 | 2015-02-17T14:26:02.103Z | 2,015 | 2 | 14 | 1 | 19,706 | 3 | 639 | 41 | 3 | 0 | false | false | true | true | true | false | high |
28,563,655 | Errors with Tizen IDE and HelloAccessoryProvider | <p>I am trying a sample app for Tizen Wearable SDK but the IDE does not seem to be configured properly. It reports imports could not be resolved library and the samsung android libraries. My guess is these dependencies need to be added to the project's path somehow.</p>
<p><img src="https://i.stack.imgur.com/wv5L0.png... | I am trying a sample app for Tizen Wearable SDK but the IDE does not seem to be configured properly. It reports imports could not be resolved library and the samsung android libraries. My guess is these dependencies need to be added to the project's path somehow. I tried adding external classes from the Tizen Wearable ... | android|eclipse|tizen|tizen-wearable-sdk | 0 | 2015-02-17T14:27:37.403Z | 2,015 | 2 | 14 | 1 | 220 | 2 | 407 | 48 | 4 | 0 | false | false | false | false | false | false | zero |
28,563,673 | Creating an object with realm createObjectFromJson throws exception if the model contains a Date | <p>I have the following classes for two models:</p>
<pre><code>public class A extends RealmObject {
private String field1;
private B field2;
//getters and setters
//...
}
public class B extends RealmObject {
private String field3;
private Date field4;
//getters and setters
//...
}
</... | I have the following classes for two models: [CODE] I am receiving the following JSON that corresponds to the models: [CODE] I am trying to create an A object from the JSON, using createObjectFromJson(A.class, jsonString) , but I am getting an exception java.lang.NumberFormatException: Invalid long: "2015-02-17T00:00:0... | android|realm | 1 | 2015-02-17T14:28:25.727Z | 2,015 | 2 | 14 | 1 | 2,235 | 1 | 448 | 96 | 2 | 2 | true | false | false | false | false | false | low |
28,563,683 | Clustering - How to handle markers with the same location? | <p>In my crurrent project I'm using <a href="https://github.com/googlemaps/android-maps-utils" rel="nofollow noreferrer">android-maps-utils</a>. I would like to know how to handle markers with the same location when using clustering? Is it possible to decluster them with some offset? If yes, how?</p>
<p>I'm adding pic... | In my crurrent project I'm using android-maps-utils . I would like to know how to handle markers with the same location when using clustering? Is it possible to decluster them with some offset? If yes, how? I'm adding picture which shows my problem. Max zoom, no way to see markers. | android|google-maps-android-api-2 | 2 | 2015-02-17T14:28:51.243Z | 2,015 | 2 | 14 | 1 | 464 | 1 | 282 | 58 | 2 | 0 | false | false | false | false | false | false | low |
28,563,700 | delete external library in Android Studio | <p>how can I delete an external library from Android Project using Android Studio ? In my gradle script I have :</p>
<pre><code>def neo4jVersion = "2.1.7"
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile "org.neo4j:neo4j:${neo4jVersion}"
}
</code></pre>
<p>This is pulling about 15 j... | how can I delete an external library from Android Project using Android Studio ? In my gradle script I have : [CODE] This is pulling about 15 jars but I need to delete one of them, each time I do it, it deletes it but when I run the project again it reappears ! How to delete it permanently ? This is screenshot | android|android-studio | 1 | 2015-02-17T14:29:37.280Z | 2,015 | 2 | 14 | 1 | 3,449 | 1 | 311 | 41 | 2 | 1 | true | false | true | false | false | false | low |
28,563,710 | Can't install vt-x haxm for Android studio 1.0.1 on Windows 8.1 (after trying google solutions) | <p>I can't install haxm that is required for vt-x to run Android emulator in Android studio.
I enabled <strong>Virtualization Technology</strong> on BIOS, after it I enabled <strong>Hyper-V</strong> in windows features. When trying to install the Intel <a href="https://software.intel.com/android/articles/intel-hardware... | I can't install haxm that is required for vt-x to run Android emulator in Android studio. I enabled Virtualization Technology on BIOS, after it I enabled Hyper-V in windows features. When trying to install the Intel HAXM I got message that my laptop doesn't support vt-x technology. But it suppose to according to this: ... | android|android-studio|virtualization|haxm | 1 | 2015-02-17T14:30:02.790Z | 2,015 | 2 | 14 | 1 | 2,280 | 2 | 602 | 95 | 4 | 0 | false | false | false | false | false | false | low |
28,563,768 | Espresso with hamcrest 1.3 | <p>Is there a way to use Espresso with Hamcrest 1.3? I can get it to compile, but I end up with runtime exceptions:</p>
<pre><code>java.lang.NoClassDefFoundError: android/support/test/espresso/Espresso
</code></pre>
<p>Everything is fine when I use hamcrest 1.1</p>
<p>The root of the problem is this stuff:</p>
<pre... | Is there a way to use Espresso with Hamcrest 1.3? I can get it to compile, but I end up with runtime exceptions: [CODE] Everything is fine when I use hamcrest 1.1 The root of the problem is this stuff: [CODE] the only solution I see at the moment is to comile espresso with hamcrest 1.3 - but I would love to use the sto... | android|android-espresso|hamcrest | 1 | 2015-02-17T14:32:47.543Z | 2,015 | 2 | 14 | 1 | 294 | 2 | 392 | 26 | 3 | 2 | true | false | false | false | false | false | low |
28,563,803 | Android Proguard - ClassNotFoundException | <p>I enabled proguard for my android app. I can build the project successfully but it crashes on startup with classNotFoundException. It doesn't even find the launcher activity. Here is my proguard rules file</p>
<pre><code>-libraryjars libs
-keep public class * extends android.app.Activity
-keep public class * exten... | I enabled proguard for my android app. I can build the project successfully but it crashes on startup with classNotFoundException. It doesn't even find the launcher activity. Here is my proguard rules file [CODE] and here is my build.gradle file if that helps but it doesn't include all the dependencies. I have some jar... | android|proguard|obfuscation|android-proguard | 6 | 2015-02-17T14:34:32.507Z | 2,015 | 2 | 14 | 1 | 12,713 | 3 | 453 | 41 | 4 | 4 | true | false | true | true | false | false | medium |
28,563,835 | Use mock db when testing with Robolectric and ORMLite | <p>I am working on an Android app that uses <strong>OrmLiteSqliteOpenHelper</strong> to connect to the SQLite db.</p>
<pre><code>public class MyDatabaseHelper extends OrmLiteSqliteOpenHelper {
...
private static final String DATABASE_NAME = "mydb.sqlite";
private static MyDatabaseHelper helper = null;
... | I am working on an Android app that uses OrmLiteSqliteOpenHelper to connect to the SQLite db. [CODE] To fetch data from the db, I have some provider classes, they use some DAO. [CODE] I have in place Robolectric to test my code, but I am having hard time to understand how to use together Robolectric with ORMLite. My id... | android|sqlite|gradle|ormlite|robolectric | 1 | 2015-02-17T14:35:40.657Z | 2,015 | 2 | 14 | 1 | 1,611 | 2 | 836 | 53 | 5 | 3 | true | false | false | false | false | false | low |
28,563,910 | Google Maps API v2 with API 21 | <p>I'm updating my app to support API 21 - Android 5.0.But Google maps do not work. I changed the getMap() to getMapAsync() and Google map is loaded but it doesn't display the pin. I can see only oceans:) but not coordinates specified on my code. Why can't I see the pin on the map?
My code is below:</p>
<pre><code>Lat... | I'm updating my app to support API 21 - Android 5.0.But Google maps do not work. I changed the getMap() to getMapAsync() and Google map is loaded but it doesn't display the pin. I can see only oceans:) but not coordinates specified on my code. Why can't I see the pin on the map? My code is below: [CODE] [CODE] I'm debu... | android|api|google-maps|marker | 0 | 2015-02-17T14:38:41.600Z | 2,015 | 2 | 14 | 1 | 544 | 1 | 485 | 30 | 4 | 3 | true | false | false | false | false | false | zero |
28,563,961 | removing cursor based items in RecyclerView | <p>This is how my recyclerView is coded (partially):</p>
<pre><code>expensesListCursor = dbc.listExpenses(selectedDate);
mLayoutManager = new LinearLayoutManager(getActivity());
rvExpenses.setLayoutManager(mLayoutManager);
rvExpenses.setItemAnimator(new DefaultItemAnimator());
mAda... | This is how my recyclerView is coded (partially): [CODE] here's how my dbc.ListExpenses is written [CODE] and here's how AdapterExpensesList is written [CODE] As you can probably see above, the items in my RecyclerView is taken directly from cursor. My problem is now, I'd like to implement the feature to remove some of... | android|android-recyclerview | 8 | 2015-02-17T14:41:39.400Z | 2,015 | 2 | 14 | 1 | 719 | 1 | 749 | 43 | 2 | 4 | true | false | false | false | false | false | medium |
28,563,966 | Unable to read directories or files from a sd card | <p>I am new to android development and I have tried to read a directory from my sd card but didn't got succeeded. Below is the code which I wrote to achieve it</p>
<pre><code>File sdcard = Environment.getExternalStorageDirectory();
if(sdcard.exists()) {
Log.d("Sd card", "Sd card exist");
File[] file... | I am new to android development and I have tried to read a directory from my sd card but didn't got succeeded. Below is the code which I wrote to achieve it [CODE] Control passed the if condition and then I got an NullPointerException at "for each" loop line. Probably function sdcard.listFiles() is returning null. I ha... | android|android-sdcard | 0 | 2015-02-17T14:41:48.180Z | 2,015 | 2 | 14 | 1 | 631 | 1 | 855 | 50 | 2 | 4 | true | false | false | false | false | false | zero |
28,564,051 | HTTP response being cached in Android client | <p>I have following situation:</p>
<ol>
<li>Sending http post (post data contains json string) request to my remote server.</li>
<li>Getting http post response from my server in json: {"result":true}</li>
<li>Disconnecting all internet connections in my tablet.</li>
<li>Repeating post request described in step 1.</li>... | I have following situation: Sending http post (post data contains json string) request to my remote server. Getting http post response from my server in json: {"result":true} Disconnecting all internet connections in my tablet. Repeating post request described in step 1. Getting the same cached "response" - {"result":t... | java|android|json|apache|http | 1 | 2015-02-17T14:46:26.720Z | 2,015 | 2 | 14 | 1 | 574 | 1 | 542 | 44 | 5 | 1 | true | false | false | false | false | false | low |
28,564,085 | Android FragmentTabHost | <p>I've already implemented FragmentTabHost, but my Fragments are going outside the tabhost.
Here is my Activity:</p>
<pre><code>public class MainActivity extends ActionBarActivity {
private FragmentTabHost mTabHost;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(sa... | I've already implemented FragmentTabHost, but my Fragments are going outside the tabhost. Here is my Activity: [CODE] And here is my fragment: [CODE] activity_main.xml [CODE] And fragment_main.xml [CODE] The problem is that the fragment goes outside it's tab. Here's the photo | android|android-fragments|android-studio|android-tabhost | 4 | 2015-02-17T14:47:56.497Z | 2,015 | 2 | 14 | 1 | 8,254 | 1 | 276 | 23 | 4 | 4 | true | false | true | false | false | false | low |
28,564,094 | Libpng error at :app:mergeDebugResources - Gradle Error 42 | <p>When compiling my app for debug in Android Studio, I get the following error(s):</p>
<pre><code>Failed to run command:
C:\Users\Farbod\Android-SDK\build-tools\21.1.2\aapt.exe s -i C:\Users\Farbod\AndroidStudioProjects\MyApp\app\src\main\res\drawable-hdpi\img_myImage.png -o C:\Users\Me\AndroidStudioProjects\MyApp\ap... | When compiling my app for debug in Android Studio, I get the following error(s): [CODE] I've checked that all my files are in a .png format, and I'm not sure what could be wrong. | android|android-studio|android-gradle-plugin|libpng | 5 | 2015-02-17T14:48:15.027Z | 2,015 | 2 | 14 | 1 | 5,045 | 1 | 178 | 58 | 4 | 1 | true | false | true | false | false | false | low |
28,564,155 | Back stack fragments limit | <p>How to make the maximum stack size in 5 fragments. Adding 6 fragment, 1 fragment should be deleted, but quietly, without showing screen.</p>
<p>[Fragment1]->[Fragment2]->[Fragment3]->[Fragment4]->[Fragment5]</p>
<p>Added 6 fragment</p>
<p><s>[Fragment1]</s>[Fragment2]->[Fragment3]->[Fragment4]->[Fragment5]->[Fra... | How to make the maximum stack size in 5 fragments. Adding 6 fragment, 1 fragment should be deleted, but quietly, without showing screen. [Fragment1]->[Fragment2]->[Fragment3]->[Fragment4]->[Fragment5] Added 6 fragment [Fragment1] [Fragment2]->[Fragment3]->[Fragment4]->[Fragment5]->[Fragment6] when the user will come ba... | android-fragments | 8 | 2015-02-17T14:50:34.600Z | 2,015 | 2 | 14 | 1 | 621 | 1 | 505 | 26 | 1 | 0 | false | false | false | false | false | false | medium |
28,564,163 | Android layouts inside an HorizontalScrollView with all the same width | <p>I have a vertical layout that at the bottom I have an <code>HorizontalScrollView</code>. Inside that <code>ScrollView</code> I want to display four containers and these containers should have the exactly same width.
Each one of these containers is loaded with a fragment that inflates an layout with width and height ... | I have a vertical layout that at the bottom I have an HorizontalScrollView . Inside that ScrollView I want to display four containers and these containers should have the exactly same width. Each one of these containers is loaded with a fragment that inflates an layout with width and height match_parent. I only populat... | android | 1 | 2015-02-17T14:50:54.250Z | 2,015 | 2 | 14 | 1 | 438 | 1 | 709 | 70 | 1 | 2 | true | false | false | false | false | false | low |
28,564,162 | Delete a row from Parse Table | <p>I have a table called Favourite tags. it has fields - Tag, User( Pointer- respectiv user objectid).where User can store a tag and along with user-objectid as pointer in user filed and user remove the tag from favourite </p>
<p>For Storing/Updating: it is working fine .</p>
<pre><code> ParseObject favtago... | I have a table called Favourite tags. it has fields - Tag, User( Pointer- respectiv user objectid).where User can store a tag and along with user-objectid as pointer in user filed and user remove the tag from favourite For Storing/Updating: it is working fine . [CODE] For removing/deleting the tag from table: Below cod... | android|parse-platform | 5 | 2015-02-17T14:50:54.907Z | 2,015 | 2 | 14 | 1 | 5,617 | 2 | 429 | 29 | 2 | 2 | true | false | true | false | false | false | low |
28,564,185 | Android with SDL 2.0, setting a picture as background | <p>I'm experimenting with android SDL 2.0, however I encountered a problem that I just can't solve. My problem is that I try to make a 1080*1920 picture as the background of my application. I create it in photoshop, but whenever I try to start the app on my phone, the image quality is much worse.</p>
<p>Here's an exam... | I'm experimenting with android SDL 2.0, however I encountered a problem that I just can't solve. My problem is that I try to make a 1080*1920 picture as the background of my application. I create it in photoshop, but whenever I try to start the app on my phone, the image quality is much worse. Here's an example.You can... | android|sdl|sdl-2|blurry|sdl-image | 2 | 2015-02-17T14:51:58.333Z | 2,015 | 2 | 14 | 1 | 279 | 1 | 733 | 53 | 5 | 1 | true | false | false | false | false | false | low |
28,564,204 | Adding annotation to MuPDF android | <p>I have implemented pdf using MuPDF lib.I am trying to draw over pdf after googling a bit I found <code>MuPDFCore.addInkAnnotation(int page, PointF[][] arcs)</code> will add Ink annotation to the pdf. Its crashing when I call <code>addInkAnnotation</code> method.
Here is my sample code with which I am trying to see s... | I have implemented pdf using MuPDF lib.I am trying to draw over pdf after googling a bit I found MuPDFCore.addInkAnnotation(int page, PointF[][] arcs) will add Ink annotation to the pdf. Its crashing when I call addInkAnnotation method. Here is my sample code with which I am trying to see something annotated on Pdf But... | android|pdf|mupdf|pdf-reader | 1 | 2015-02-17T14:52:42.403Z | 2,015 | 2 | 14 | 1 | 1,463 | 1 | 386 | 34 | 4 | 2 | true | false | false | false | false | false | low |
28,564,206 | Refreshing Google Map Android (API 2) | <p>Is it possible to auto refresh google maps after every couple of minutes to view any changes that have been made. (Also, refresh if a action is done, such as if a button is pressed.)</p>
<p>For example, in my app I am displaying a text when a user comes near a river, however because the map does not refresh the mes... | Is it possible to auto refresh google maps after every couple of minutes to view any changes that have been made. (Also, refresh if a action is done, such as if a button is pressed.) For example, in my app I am displaying a text when a user comes near a river, however because the map does not refresh the message is not... | android|google-maps|refresh | 0 | 2015-02-17T14:52:48.090Z | 2,015 | 2 | 14 | 1 | 135 | 1 | 538 | 37 | 3 | 0 | false | false | false | false | false | false | zero |
28,564,230 | Encoding of umlauts with the android pdf writer lib | <p>I'm using the <a href="http://sourceforge.net/projects/apwlibrary/" rel="nofollow">Android PDF Writer</a> and I'm still confused. My PDF Renderer have to write words with umlauts ('ß', 'Ä', 'Ü') and they doesn't appear correctly in the pdf.</p>
<p>I think the issue is with the method <code>getBytes(String encoding)... | I'm using the Android PDF Writer and I'm still confused. My PDF Renderer have to write words with umlauts ('ß', 'Ä', 'Ü') and they doesn't appear correctly in the pdf. I think the issue is with the method getBytes(String encoding) from the String class. [CODE] When I inspect the pdfWriter.asString() the umlauts are pre... | java|android|pdf|encoding|character-encoding | 1 | 2015-02-17T14:53:50.983Z | 2,015 | 2 | 14 | 1 | 1,393 | 1 | 387 | 51 | 5 | 2 | true | false | false | false | false | false | low |
28,564,312 | Performance analysis of HorizontalScrollView on PowerVR G6230 | <p>I tested the performance of HorizontalScrollView on a few devices and I noticed something I didn't expect. On a GPU that should perform pretty good, like 64-core PowerVR G6230, the scrolling is not as fluid as I'd expect in 1080p. What I see by inspecting with dumpsys is something like this while scrolling:</p>
<pr... | I tested the performance of HorizontalScrollView on a few devices and I noticed something I didn't expect. On a GPU that should perform pretty good, like 64-core PowerVR G6230, the scrolling is not as fluid as I'd expect in 1080p. What I see by inspecting with dumpsys is something like this while scrolling: [CODE] Whic... | android|performance|scrollview|gpu | 0 | 2015-02-17T14:57:44.430Z | 2,015 | 2 | 14 | 1 | 144 | 1 | 921 | 61 | 4 | 2 | true | false | false | false | false | false | zero |
28,564,343 | Need for popBackStack in onBackPressed | <p>Please help me understand how back stack works natively when "onBackPressed" is called. I noticed that even though visually it went back to the previous fragment, the fragment that was supposedly popped (that I exited from) is still in the back stack. Why is that?
I will then have to resort to </p>
<pre><code> ... | Please help me understand how back stack works natively when "onBackPressed" is called. I noticed that even though visually it went back to the previous fragment, the fragment that was supposedly popped (that I exited from) is still in the back stack. Why is that? I will then have to resort to [CODE] which seems counte... | android|android-fragments|android-fragmentactivity | 4 | 2015-02-17T14:59:23.297Z | 2,015 | 2 | 14 | 1 | 4,753 | 3 | 653 | 38 | 3 | 1 | true | false | true | false | false | false | low |
28,564,370 | Better packages structure in my Android library | <p>I'm writing (for the first time) an Android library (with its own Activities) that will be imported in other Android projects using Android aar package.</p>
<p>My goal would be to publish only one class (let's call it <code>MyPlugin</code>) that does all the stuff (calling activities etc.) offering public methods; ... | I'm writing (for the first time) an Android library (with its own Activities) that will be imported in other Android projects using Android aar package. My goal would be to publish only one class (let's call it MyPlugin ) that does all the stuff (calling activities etc.) offering public methods; but it seems, to me, th... | java|android|package|android-library | 3 | 2015-02-17T15:00:12.693Z | 2,015 | 2 | 15 | 1 | 753 | 2 | 993 | 47 | 4 | 1 | true | false | false | false | false | false | low |
28,564,466 | Downloading PDF file from sql database using C# web service in android application | <p>I need help with this issue : i have an android application which should connect to a .NET web service and get a PDF file from SQL database,my question is:</p>
<ol>
<li>what is the datatype of the PDF file should i use to store it in the SQL database?</li>
</ol>
<p>2.how to get the PDF file using my web service to... | I need help with this issue : i have an android application which should connect to a .NET web service and get a PDF file from SQL database,my question is: what is the datatype of the PDF file should i use to store it in the SQL database? 2.how to get the PDF file using my web service to download it to android applicat... | android|sql|.net | 0 | 2015-02-17T15:05:00.717Z | 2,015 | 2 | 15 | 1 | 221 | 1 | 344 | 82 | 3 | 0 | false | false | false | false | false | false | zero |
28,564,489 | Push Plugin notification | <p>Why can't I receive push notification when my app is already running or opened? I'm using push plugin.
Here is my code:</p>
<pre><code><script>
var tokenID = "";
document.addEventListener("deviceready", function(){
//Unregister the previous token because it might have become invalid. Unregiste... | Why can't I receive push notification when my app is already running or opened? I'm using push plugin. Here is my code: [CODE] | android|push-notification|google-cloud-messaging|phonegap-pushplugin | 1 | 2015-02-17T15:06:06.740Z | 2,015 | 2 | 15 | 1 | 387 | 2 | 126 | 24 | 4 | 1 | true | false | false | false | false | false | low |
28,564,564 | Why does Load image work on emulator but not on s4? | <p>I'm trying to get an image to load onto my app in an imageview. However whenever I try it on my S4 (running 4.4.2) once I tap on the image I want to load. it says 'Unfortunately, E-textHome has stopped.'. But when I try the app on my emulator, which is a Nexus7 (running 4.1.3) It works perfectly fine. So I was wonde... | I'm trying to get an image to load onto my app in an imageview. However whenever I try it on my S4 (running 4.4.2) once I tap on the image I want to load. it says 'Unfortunately, E-textHome has stopped.'. But when I try the app on my emulator, which is a Nexus7 (running 4.1.3) It works perfectly fine. So I was wonderin... | java|android|xml|imageview | 0 | 2015-02-17T15:09:38.310Z | 2,015 | 2 | 15 | 1 | 76 | 1 | 420 | 51 | 4 | 2 | true | false | false | false | false | false | zero |
28,564,635 | Widget onclick pending intent doesn't fire when using flag FLAG_UPDATE_CURRENT | <p>I've got a simple widget that displays a random number. When tapped it refreshes and displays another random number. This is the code for the onUpdate method of the AppWidgetProvider </p>
<pre><code>public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
super.onUpdate(con... | I've got a simple widget that displays a random number. When tapped it refreshes and displays another random number. This is the code for the onUpdate method of the AppWidgetProvider [CODE] With this the widget does its first update when placed but then doesn't update again when clicked. If i just change the pending in... | android|android-intent|android-widget | 3 | 2015-02-17T15:12:59.590Z | 2,015 | 2 | 15 | 1 | 632 | 1 | 584 | 78 | 3 | 3 | true | false | false | false | false | false | low |
28,564,636 | How do I get the correct output for the try/catch statement? | <p>I want to add a new item in the list by inputting the number for the position of the list. When I run this code for the app, even without inputting a number, only the catch statement is executed. How do I get the try statement executed? Here is the code that I typed (Please ignore the lines of the code for manually ... | I want to add a new item in the list by inputting the number for the position of the list. When I run this code for the app, even without inputting a number, only the catch statement is executed. How do I get the try statement executed? Here is the code that I typed (Please ignore the lines of the code for manually add... | java|android|eclipse | 0 | 2015-02-17T15:13:10.427Z | 2,015 | 2 | 15 | 1 | 71 | 1 | 396 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
28,564,640 | Why I can't create a file in the internal directory? | <p>I'm trying to create a new file by:</p>
<p><code>File file = new File(this.getFilesDir(), "test.tmp");</code></p>
<p>After that I have the follwing code:</p>
<pre><code>try {
fis = new BufferedInputStream(new FileInputStream(file));
ObjectInputStream ois = new ObjectInputStream(fis);
..... othe... | I'm trying to create a new file by: File file = new File(this.getFilesDir(), "test.tmp"); After that I have the follwing code: [CODE] And it throws the following error: android.system.ErrnoException: open failed: ENOENT (No such file or directory) regarding this line: fis = new BufferedInputStream(new FileInputStream(f... | java|android|file-io | 0 | 2015-02-17T15:13:28.370Z | 2,015 | 2 | 15 | 1 | 49 | 1 | 523 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
28,564,655 | Eclipse (Error retrieving parent for item ) | <p>I have been creating a android project for college. My teacher insists that we use eclipse i dont know why. It works fine in school but when i try use it at home i have noting but problem. I have been trying to fix this problem with two days now .My target API is 19</p>
<p>Thank you</p>
<p><img src="https://i.stac... | I have been creating a android project for college. My teacher insists that we use eclipse i dont know why. It works fine in school but when i try use it at home i have noting but problem. I have been trying to fix this problem with two days now .My target API is 19 Thank you And the console [CODE] | android|eclipse | -1 | 2015-02-17T15:14:02.760Z | 2,015 | 2 | 15 | 1 | 359 | 1 | 299 | 43 | 2 | 1 | true | false | false | false | false | true | negative |
28,564,677 | Android Studio error 13=permission denied in linux | <p>i am using android studio latest version in linux(elementary luna to be specific). I installed jdk, android studio and sdk successfully, android studio opens us perfectly and even i can work on my app. but when i bulid app it gives error 13: permission denied and it opens a black circle image png in new tab.</p>
<p... | i am using android studio latest version in linux(elementary luna to be specific). I installed jdk, android studio and sdk successfully, android studio opens us perfectly and even i can work on my app. but when i bulid app it gives error 13: permission denied and it opens a black circle image png in new tab. [CODE] i d... | android|linux|android-studio | 9 | 2015-02-17T15:15:20.990Z | 2,015 | 2 | 15 | 1 | 40,240 | 14 | 1,095 | 50 | 3 | 3 | true | false | true | true | false | false | medium |
28,564,687 | How to run my android application with connection to the ADB? | <p>When I try running my application using Android Studio with an USB connection to a physical android phone, it says it's waiting for adb and then it displays the following message:</p>
<pre><code>ADB not responding. If you'd like to retry, then please manually kill "adb.exe" and click 'Restart'
Errors from ADB:
adb:... | When I try running my application using Android Studio with an USB connection to a physical android phone, it says it's waiting for adb and then it displays the following message: [CODE] I tried to kill it on terminal using the command: [CODE] And then starting it using the command: [CODE] But I am still having the sam... | android|android-studio|terminal|adb | 0 | 2015-02-17T15:15:40.417Z | 2,015 | 2 | 15 | 1 | 104 | 1 | 531 | 61 | 4 | 3 | true | false | false | false | false | false | zero |
28,564,713 | Can't successfully load image from Assets folder in Android | <p>In my code I have no errors, no warnings at all but when I load a layout trying to display a thumbnail photo, located in Assets folder I can't see my image("25.png")displayed in my layout.</p>
<p>My Java file is :</p>
<pre><code>import android.app.Activity;
import android.os.Bundle;
import java.io.IOException;
im... | In my code I have no errors, no warnings at all but when I load a layout trying to display a thumbnail photo, located in Assets folder I can't see my image("25.png")displayed in my layout. My Java file is : [CODE] And my xml file is : [CODE] I truly don't understand what the problem is. My Logcat is (from launching my ... | android|xml|eclipse|image|android-assets | 0 | 2015-02-17T15:16:38.213Z | 2,015 | 2 | 15 | 1 | 1,679 | 1 | 348 | 59 | 5 | 3 | true | false | false | false | false | false | zero |
28,564,724 | Why do I have duplicated items in GridView in Android | <p>Im getting the first 9 items at first of the page and only after those 9, im getting the all 16 items that suppose to appear in the list.
How can I move these 9 duplicate items? </p>
<p><strong>That's my java code (SearchCategories.java)</strong> </p>
<pre><code>package com.example.zygy1;
public class SearchCate... | Im getting the first 9 items at first of the page and only after those 9, im getting the all 16 items that suppose to appear in the list. How can I move these 9 duplicate items? That's my java code (SearchCategories.java) [CODE] And here the xml file [CODE] Here is the xml of each item: [CODE] String array from String,... | android|gridview | 0 | 2015-02-17T15:16:51.397Z | 2,015 | 2 | 15 | 1 | 590 | 1 | 356 | 53 | 2 | 4 | true | false | false | false | false | false | zero |
28,564,773 | An extra character '\' is added while adding object to JSON String | <p>Below is my jsonString:</p>
<pre><code>jsonString= {"date_of_birth":"17-2-1989 ","email_id":"s@s.a","fullname":"a","hp_id":"Wellcare","password":"a","phone_no":"12345","ss_no":"12345","username":"a"}
</code></pre>
<p>I wants to add "User" object to it</p>
<p>so I did this:</p>
<pre><code>JSONObject jsonObj=new J... | Below is my jsonString: [CODE] I wants to add "User" object to it so I did this: [CODE] but I am getting this: [CODE] An extra character '\' is added. So I want to remove it. Please help removing it. | android|json | 1 | 2015-02-17T15:19:31.963Z | 2,015 | 2 | 15 | 1 | 2,029 | 1 | 199 | 66 | 2 | 3 | true | false | false | false | false | false | low |
28,564,841 | Android : How to save an Object class in bundle before screen rotate? | <p><pre>package com.explorateurfichier;</p>
<p>import java.util.ArrayList;
import java.io.File;</p>
<p>public class PileFile
{
private int pos; // position dans le tableau
private File [] p;</p>
<code>public PileFile () // creation d’une pile vide de taille 10
{
p = new File[10];
pos = -1;
}
public ... | [CODE] } | android-activity | 0 | 2015-02-17T15:22:22.557Z | 2,015 | 2 | 15 | 1 | 34 | 1 | 8 | 69 | 1 | 1 | true | false | false | false | false | false | zero |
28,564,880 | Android Correct Fragment BackStack | <p>I'm trying to make a correct <code>BackStack</code>. I have tried to implement <a href="https://stackoverflow.com/questions/18305945/how-to-resume-fragment-from-backstack-if-exists">this decision</a>. But it does not work for me.</p>
<p>I have one list in navigation drawer and other navigation. So, when I select d... | I'm trying to make a correct BackStack . I have tried to implement this decision . But it does not work for me. I have one list in navigation drawer and other navigation. So, when I select different fragment lists a few times, I want one-touch return to the main menu instead of returning to BackStack . [CODE] | android|android-fragments|back-stack | 0 | 2015-02-17T15:24:19.310Z | 2,015 | 2 | 15 | 1 | 204 | 1 | 310 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
28,564,908 | Delay a command while showing a toast | <p>In my App, I want to display random numbers and I have a delay between them of 3 seconds. While the command has being delayed, I want to show a toast.</p>
<pre><code>public void random(View v)
{
Toast myToast = Toast.makeText(this, "Wait...", Toast.LENGTH_LONG);
myToast.show();
try{
Thread.sleep(3000);... | In my App, I want to display random numbers and I have a delay between them of 3 seconds. While the command has being delayed, I want to show a toast. [CODE] I tried this code but it delays first and then shows the Toast. I want the Toast to be shown between the numbers. Can anyone help me, please? Thanks, Marco | android | 0 | 2015-02-17T15:25:15.757Z | 2,015 | 2 | 15 | 1 | 144 | 2 | 313 | 37 | 1 | 1 | true | false | false | false | false | false | zero |
28,564,974 | Retrieving images using json in android | <p>I am trying to build an android application. I want to retrieve data from a website (.php) using JSON. So far I am able to get the recent post's title, URL and the the respective content but how can I retrieve image of that particular post? Thank you.</p>
<p>this is a piece of the code:</p>
<pre><code>private Text... | I am trying to build an android application. I want to retrieve data from a website (.php) using JSON. So far I am able to get the recent post's title, URL and the the respective content but how can I retrieve image of that particular post? Thank you. this is a piece of the code: [CODE] | android|json | -1 | 2015-02-17T15:28:27.840Z | 2,015 | 2 | 15 | 1 | 229 | 2 | 287 | 39 | 2 | 1 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.