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,742,711
After Building and running in Android Studio the scroll and Android Studio working very slow
<p>Actually I'm working in <code>iMac</code>(OS X Yosemite, 2013) in Android Studio(v 1.1.0) I have open only one project, and when I run the app, after the app is running on my device Android Studio start to work very slow for around 1 or 2 minutes for example: scrolling very slow in a class, xml etc, while my app is ...
Actually I'm working in iMac (OS X Yosemite, 2013) in Android Studio(v 1.1.0) I have open only one project, and when I run the app, after the app is running on my device Android Studio start to work very slow for around 1 or 2 minutes for example: scrolling very slow in a class, xml etc, while my app is still running o...
android|performance|android-studio|gradle|android-gradle-plugin
1
2015-02-26T12:38:42.870Z
2,015
2
12
3
441
1
573
92
5
1
true
false
false
false
false
false
low
28,742,716
How to make an android app that can communicate with raspberry pi via internet connection?
<p>there is something i want to ask.</p> <p>Is that possible to make android app which can run/show output from raspberry pi's gpio program remotely by internet communication? I'm making a raspberry program that can detect smoke level with sensor and gpio input. I also want to know the smoke level value from the andro...
there is something i want to ask. Is that possible to make android app which can run/show output from raspberry pi's gpio program remotely by internet communication? I'm making a raspberry program that can detect smoke level with sensor and gpio input. I also want to know the smoke level value from the android app whic...
android|python|linux|gpio
-1
2015-02-26T12:38:59.550Z
2,015
2
12
3
1,929
2
495
90
4
0
false
false
false
false
false
true
negative
28,742,756
Calling a Activity method from BroadcastReceiver in Android when BroadcastReceiver app is not started
<p>I have a Broadcastreceiver in my ReceiverApp, which I call from my SenderApp and this works fine. I would like to call a method of the Activity in my ReceiverApp.</p> <p>How can I do that with the following prerequisites ? :</p> <ul> <li><p>The ReceiverApp was not started and dynamically registering the receiver i...
I have a Broadcastreceiver in my ReceiverApp, which I call from my SenderApp and this works fine. I would like to call a method of the Activity in my ReceiverApp. How can I do that with the following prerequisites ? : The ReceiverApp was not started and dynamically registering the receiver is not possible. I can't call...
android|android-activity|broadcastreceiver
0
2015-02-26T12:40:54.367Z
2,015
2
12
3
1,425
1
775
101
3
1
true
false
false
false
false
false
zero
28,742,767
element RelativeLayout must be declared
<p>I'm getting the error "element <code>RelativeLayout</code> must be declared" and I don't know the reason for its occurrence. How do I get rid of this error, please post suggestions or code snippets. This is my <code>drawer_list_item.xml</code></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Relative...
I'm getting the error "element RelativeLayout must be declared" and I don't know the reason for its occurrence. How do I get rid of this error, please post suggestions or code snippets. This is my drawer_list_item.xml [CODE]
android|xml
18
2015-02-26T12:41:33.227Z
2,015
2
12
3
16,151
1
224
39
2
1
true
false
true
true
true
false
medium
28,742,847
Android Studio, adding multiple images on click
<p>JAVA:</p> <pre><code>package com.example.scott.testapplication; import android.app.Activity; import android.media.Image; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.L...
JAVA: [CODE] In order to insert the image, i'm thinking that I need to use a command like ImageView image = new (image), and then use another command to draw it on the display. I dont know which commands I should use. XML: [CODE] I would like to create the image on the event of the click of a button, I also created the...
android|android-studio|onclicklistener
0
2015-02-26T12:44:45.230Z
2,015
2
12
3
3,623
1
392
47
3
2
true
false
true
false
false
false
zero
28,742,884
How to read "adb shell dumpsys alarm" output
<p>I'm struggling with setting an alarm properly, and understanding the mechanism of cancelling and rescheduling alarms.</p> <p>I have found, that there is an adb command to retrieve all alarms scheduled on device, but I haven't found a documentation, explaining the format of the output.</p> <p>I do understand, that ...
I'm struggling with setting an alarm properly, and understanding the mechanism of cancelling and rescheduling alarms. I have found, that there is an adb command to retrieve all alarms scheduled on device, but I haven't found a documentation, explaining the format of the output. I do understand, that I'm asking a lot of...
android|adb|alarmmanager
84
2015-02-26T12:46:21.933Z
2,015
2
12
3
25,597
3
2,294
44
3
0
false
false
true
true
true
false
high
28,742,951
Android - why the "content://sms/sent" only return one result?
<p>When trying to retrieve the sent sms I see that the uri sms/sent only return 1 sms (although the device has more) and it seems that it's the first sent sms. How can I get all the sms in the sent box? I can't use the Telephony class because it's API level 19.</p>
When trying to retrieve the sent sms I see that the uri sms/sent only return 1 sms (although the device has more) and it seems that it's the first sent sms. How can I get all the sms in the sent box? I can't use the Telephony class because it's API level 19.
android|sms|messaging
0
2015-02-26T12:49:22.677Z
2,015
2
12
3
93
0
258
62
3
0
false
true
false
false
false
false
zero
28,742,975
MapFragment inside frament, when parent activity goes onPause MapFragment becomes null
<p>I have an activity ACTIVITY=>Fragment=>MapFragment</p> <p>On onPause of ACTIVITY MapFragment becomes null. </p> <p>Below is method that I am using:</p> <pre><code> private MapFragment getMapFragment() { FragmentManager fm = null; Log.d("", "sdk: " + Build.VERSION.SDK_INT); Log.d("", "rele...
I have an activity ACTIVITY=>Fragment=>MapFragment On onPause of ACTIVITY MapFragment becomes null. Below is method that I am using: [CODE] any solution or reason why this is happening?
android
0
2015-02-26T12:51:07.463Z
2,015
2
12
3
73
1
185
86
1
1
true
false
false
false
false
false
zero
28,742,981
SearchView in AppCompat distorts icon
<p>I am stuck in a very weird situation, my <strong>SearchView</strong> is working perfectly. I just need to use <strong>OnActionExpandListener</strong> and for that purpose, I have to set <strong>app:showAsAction="ifRoom|collapseActionView"</strong> in my SearchView item in menu layout.</p> <p>What it does is, it d...
I am stuck in a very weird situation, my SearchView is working perfectly. I just need to use OnActionExpandListener and for that purpose, I have to set app:showAsAction="ifRoom|collapseActionView" in my SearchView item in menu layout. What it does is, it distorts my SearchView icon. If I use app:showAsAction="always" ,...
android|menu|android-appcompat|searchview
4
2015-02-26T12:51:33.847Z
2,015
2
12
3
156
1
492
37
4
0
false
false
false
false
false
false
low
28,743,005
How to populate SQLite Data into a TEXT file with tabularised form..?
<p>All My Records are going into Database perfectly.. but My need id when I click button, All data should be fetched from database and then populate all records in <strong>MySample.txt</strong> file within a folder. Please Help me I am very New in Android Domain. Millions Thanks </p> <pre><code>protected void onCreate...
All My Records are going into Database perfectly.. but My need id when I click button, All data should be fetched from database and then populate all records in MySample.txt file within a folder. Please Help me I am very New in Android Domain. Millions Thanks [CODE]
android|android-activity|android-fragments
0
2015-02-26T12:52:37.360Z
2,015
2
12
3
312
0
266
69
3
1
true
true
false
false
false
false
zero
28,743,092
How to Trigger a Button when Enter is Pressed in Android?
<p>I Have a Button which will do a bunch of Stuff when i type some numbers in an EditText.I want to know how to trigger this Button by simply pressing the "Enter" key. For now i only have an onClickListener which the user has to press once he has entered the data into the EditText.I want the Button to remain there and ...
I Have a Button which will do a bunch of Stuff when i type some numbers in an EditText.I want to know how to trigger this Button by simply pressing the "Enter" key. For now i only have an onClickListener which the user has to press once he has entered the data into the EditText.I want the Button to remain there and pro...
android
2
2015-02-26T12:56:56.247Z
2,015
2
12
3
3,692
3
498
57
1
1
true
false
true
false
false
false
low
28,743,093
byte[] of android after conversion form Base64 string differs from c# Base64 equivalence
<p>I am using the folowing code in c# </p> <pre><code>var Bytes = Convert.FromBase64String(mystring); </code></pre> <p>and in the byte[] I get the following values: [3,221,235,121,20,212]</p> <p>but when I run the same conversion in android using :</p> <pre><code>byte[] secretKeyByteArray=Base64.decode(mystring.ge...
I am using the folowing code in c# [CODE] and in the byte[] I get the following values: [3,221,235,121,20,212] but when I run the same conversion in android using : [CODE] I get these values:[3,-35,-21,121,20,-44]. From this what I understand is that android converts byte values greater than 200 to -ve. Any suggestions...
c#|android|string|base64|byte
0
2015-02-26T12:56:56.530Z
2,015
2
12
3
804
2
448
88
5
2
true
false
false
false
false
false
zero
28,743,151
Alignment of layout elements change when using horizontal linear layout manager in Recycler View
<p>I am basically trying to create a recycler view that has a linear layout manager with a horizontal scrolling. When I was using a linear layout manager with vertical scrolling, the design of the recycler view rows was properly aligned as per provided in the layout file but the design elements gets placed in completel...
I am basically trying to create a recycler view that has a linear layout manager with a horizontal scrolling. When I was using a linear layout manager with vertical scrolling, the design of the recycler view rows was properly aligned as per provided in the layout file but the design elements gets placed in completely w...
android|android-layout
3
2015-02-26T12:59:19.107Z
2,015
2
12
3
4,738
1
682
96
2
3
true
false
true
false
false
false
low
28,743,173
taken from android camera image original resolution
<p>This code gives me image taken from android camera ,however,its size and resolution format of the thumnail.</p> <pre><code>Bitmap photo = (Bitmap) data.getExtras().get("data"); </code></pre> <p>How can I get the original image with the original size and resolution Thank you</p>
This code gives me image taken from android camera ,however,its size and resolution format of the thumnail. [CODE] How can I get the original image with the original size and resolution Thank you
android|android-image
1
2015-02-26T13:00:44.270Z
2,015
2
13
3
556
3
195
51
2
1
true
false
false
false
false
false
low
28,743,247
Download, hack, and reupload APK file to Google Play. Is it possible?
<p>I've developed my first Android app in Unity3D and uploaded it to Google Play. And I've just realized: There are services to download apk files from Google Play. There are services to decompress apk files and get all the source files from it. Is it possible?</p> <p>How can developer protect his apps from cloning th...
I've developed my first Android app in Unity3D and uploaded it to Google Play. And I've just realized: There are services to download apk files from Google Play. There are services to decompress apk files and get all the source files from it. Is it possible? How can developer protect his apps from cloning this way? (I'...
android|unity3d|apk
6
2015-02-26T13:04:12.983Z
2,015
2
13
3
1,893
1
574
69
3
0
false
false
false
false
false
false
medium
28,743,254
Android RecyclerView notifyItemRangeChanged vs notifyItemChanged
<p>I have a dataset that possibly changes upon refresh. It's quite unpredictable to determine which entries in the existing dataset has been changed. I read through the recyclerview adapter desciptions and the main question I have is.</p> <p>Is it more efficient figuring out which data-view changed, then use notifyIte...
I have a dataset that possibly changes upon refresh. It's quite unpredictable to determine which entries in the existing dataset has been changed. I read through the recyclerview adapter desciptions and the main question I have is. Is it more efficient figuring out which data-view changed, then use notifyItemRangeChang...
android|performance|android-animation|android-recyclerview
2
2015-02-26T13:04:33.267Z
2,015
2
13
3
5,189
2
758
64
4
0
false
false
true
false
false
false
low
28,743,283
Android Studio -- Active Button when click checkbox
<p>I have a terms of use section in my application and I want to activate a button when a user checks a checkbox.</p>
I have a terms of use section in my application and I want to activate a button when a user checks a checkbox.
android|button|checkbox|android-studio
0
2015-02-26T13:05:58.787Z
2,015
2
13
3
5,676
1
110
51
4
0
false
false
true
false
false
false
zero
28,743,304
I want to add data from my php database into my checkbox how can i do that?
<p>I'm building an app to call, message and email from my My-SQL database. i want to fetch contacts/email from db to a Check box. the app will initiate from a log in screen. its an app for teachers in the college to send important data to students</p>
I'm building an app to call, message and email from my My-SQL database. i want to fetch contacts/email from db to a Check box. the app will initiate from a log in screen. its an app for teachers in the college to send important data to students
android|json|url|android-intent|android-activity
0
2015-02-26T13:06:48.587Z
2,015
2
13
3
19
1
244
75
5
0
false
false
false
false
false
false
zero
28,743,335
400 Bad Request "error" : "invalid_grant" while creating circle in google plus from android
<p>I want to create circle in Google plus from my android app, for this I'm working with Google plus domain APIs then for API authentications i am following these steps and configuring all things that describe here: <a href="https://developers.google.com/+/domains/quickstart/java" rel="nofollow">https://developers.goog...
I want to create circle in Google plus from my android app, for this I'm working with Google plus domain APIs then for API authentications i am following these steps and configuring all things that describe here: https://developers.google.com/+/domains/quickstart/java But when i'm going to create circle as given here h...
java|android|google-admin-settings-api|google-plus-domains
0
2015-02-26T13:08:39.033Z
2,015
2
13
3
1,045
0
626
91
4
3
true
true
false
false
false
false
zero
28,743,347
Is it safe to change the Android Build Tools version of a library?
<p>I imported a (commercial) charting library as a module into my app project.</p> <p>For my app I'm using the latest Build Tools version "21.1.2" but the library still uses "19.1.0".</p> <p>Now I wonder if it's safe to change the version of the library to "21.1.2" in it's build.gradle file or if it would be recommen...
I imported a (commercial) charting library as a module into my app project. For my app I'm using the latest Build Tools version "21.1.2" but the library still uses "19.1.0". Now I wonder if it's safe to change the version of the library to "21.1.2" in it's build.gradle file or if it would be recommended to install the ...
android|android-studio|android-gradle-plugin|android-sdk-tools|android-build
1
2015-02-26T13:09:18.320Z
2,015
2
13
3
943
1
448
66
5
0
false
false
false
false
false
false
low
28,743,396
How can I query based on position to get Edit View displayed based on position
<p>I am trying to build an application which has basic CRUD operations. I am able to display the Detail view w.r.t the position of Item selected from List View. But when I try to display the Edit View from Detail View the same query which was used to display Detail View is producing exception. So I am trying to read al...
I am trying to build an application which has basic CRUD operations. I am able to display the Detail view w.r.t the position of Item selected from List View. But when I try to display the Edit View from Detail View the same query which was used to display Detail View is producing exception. So I am trying to read all c...
android|mysql
0
2015-02-26T13:11:27.837Z
2,015
2
13
3
71
2
939
78
2
3
true
false
false
false
false
false
zero
28,743,439
Updating SDK in an app without effecting client /app
<p>I want to test various marketing analytics or referral tracking SDKs for my app. Is there a solution that will allow me to integrate all these SDKs one by one without having to update my client side app?</p> <p>Essentially I want to ensure users don't have to update the app each time I choose a new service to track...
I want to test various marketing analytics or referral tracking SDKs for my app. Is there a solution that will allow me to integrate all these SDKs one by one without having to update my client side app? Essentially I want to ensure users don't have to update the app each time I choose a new service to track campaigns ...
android|ios|sdk|analytics|ads
0
2015-02-26T13:13:18.607Z
2,015
2
13
3
48
1
427
52
5
0
false
false
false
false
false
false
zero
28,743,457
how to save state of my button with share preferences?
<p>In my application when user click back , I make an alert dialog that included 2 buttons. first button is Exit that allow user to exit the application. the second button is 5 star that allow user to rate me in the market. it works correctly. but the problem is that when I kill the application and I run it again, this...
In my application when user click back , I make an alert dialog that included 2 buttons. first button is Exit that allow user to exit the application. the second button is 5 star that allow user to rate me in the market. it works correctly. but the problem is that when I kill the application and I run it again, this pr...
java|android
0
2015-02-26T13:14:19.627Z
2,015
2
13
3
80
2
671
54
2
1
true
false
false
false
false
false
zero
28,743,502
how to recognize a word like split
<p>I used this code to recognize $ symbol and set bold effect to all lines that have $ at the first of.</p> <pre><code>String[] Splited=mystring.split("\n"); String msg=""; for(int i=0;i&lt;Splited.length;i++){ if(Splited[i].startsWith("$")){ msg=msg+"&lt;b&gt;"...
I used this code to recognize $ symbol and set bold effect to all lines that have $ at the first of. [CODE] my problem is that when I get output of this code using Html.fromHtml() all enters or \n are deleted and my texts are dammaged. is there anything like split() that put texts in an array without deleting the \n an...
java|android|split|textview
0
2015-02-26T13:16:27.400Z
2,015
2
13
3
44
4
418
34
4
1
true
false
false
false
false
false
zero
28,743,556
Viewpager with webview and listview making scrolling very slow
<p>Here I have a ViewPager with fragments having a ListView each, and some of the cells of the ListView, have WebViews that load MathML expression. To load MathML expressions, I am Using MathJAX library.</p> <p>Now I understand that having WebViews as ListView items means eating up of more memory and every cell having...
Here I have a ViewPager with fragments having a ListView each, and some of the cells of the ListView, have WebViews that load MathML expression. To load MathML expressions, I am Using MathJAX library. Now I understand that having WebViews as ListView items means eating up of more memory and every cell having a browser ...
android|listview|webview
1
2015-02-26T13:18:56.403Z
2,015
2
13
3
497
0
576
62
3
0
false
true
false
false
false
false
low
28,743,612
android test alarm - can't activate it
<p>I set an alarm in my app to notify the user. I want to test it but can't figure out how to set it to the current time + 2 minutes. How can I do it?</p> <p>Here's my code</p> <pre><code>Intent myIntent = new Intent(MainActivity.this , PopupWin.class); AlarmManager alarmManager = (AlarmManager)getSystemService(A...
I set an alarm in my app to notify the user. I want to test it but can't figure out how to set it to the current time + 2 minutes. How can I do it? Here's my code [CODE]
android|timer|alert
-1
2015-02-26T13:21:00.697Z
2,015
2
13
3
36
2
169
38
3
1
true
false
false
false
false
true
negative
28,743,639
Texture not rendering properly in openGL ES 2 on Android
<p>I'm having an issue rendering textures in openGL ES 2 on Android. The image is being drawn but the texture ism't wrapping correctly by the look of it.</p> <p>I have tried all the usual things to fix the issue but nothing has worked.</p> <p>Here's how one of the images should look:</p> <p><img src="https://i.stack...
I'm having an issue rendering textures in openGL ES 2 on Android. The image is being drawn but the texture ism't wrapping correctly by the look of it. I have tried all the usual things to fix the issue but nothing has worked. Here's how one of the images should look: But here's how they look on the screen: Ignore the b...
android|textures|opengl-es-2.0
0
2015-02-26T13:22:27.813Z
2,015
2
13
3
333
1
669
56
3
3
true
false
false
false
false
false
zero
28,743,657
How to find the name of a media button on a Bluetooth headset?
<p>I have a Bluetooth headset which has a special button different from the normal media buttons, and I am trying to find how is that button called in order to call a separate application when this button is pressed. I have tried to listen for the Bluetooth headset intents but no luck for the moment. If you guys can g...
I have a Bluetooth headset which has a special button different from the normal media buttons, and I am trying to find how is that button called in order to call a separate application when this button is pressed. I have tried to listen for the Bluetooth headset intents but no luck for the moment. If you guys can give ...
android|bluetooth
0
2015-02-26T13:23:24.690Z
2,015
2
13
3
118
1
394
62
2
0
false
false
false
false
false
false
zero
28,743,755
How to open a second ApplicationWindow on android qml
<p>I have two application windows and I want to open a second one like so in the attached code.</p> <p>I have a couple of questions: 1. by opening a second window would this create the equivalent to an android "Activity"?</p> <ol start="2"> <li><p>if i pressed the back button would it return to the previous applicati...
I have two application windows and I want to open a second one like so in the attached code. I have a couple of questions: 1. by opening a second window would this create the equivalent to an android "Activity"? if i pressed the back button would it return to the previous application window? Like an android activity? i...
android|qt|qml
2
2015-02-26T13:28:11.140Z
2,015
2
13
3
1,099
0
495
53
3
3
true
true
false
false
false
false
low
28,743,799
found index 0, size is 0 in android
<p>"There i found index out of bound exception how can i solve???"</p> <pre><code>public static void addToCart() { ArrayList&lt;ItemData&gt; iArr; if (holdSelection != null) { String categoryID = holdSelection.getCategoryID(); int position = categoriesAddedd.indexOf(holdSelection.getCategoryID()); int itemPosition =ca...
"There i found index out of bound exception how can i solve???" [CODE]
android
-6
2015-02-26T13:30:09.427Z
2,015
2
13
3
51
1
70
35
1
1
true
false
false
false
false
true
negative
28,743,802
Overlaying GlSurfaceView with SlidingPaneLayout
<p>In my application I have <code>GlSurfaceView</code> and I also want to have <code>SlidingPaneLayout</code>, which when expanded would overlay <code>GlSurfaceView</code>. My question is how to do it, so that whenever <code>GlSurfaceView</code> is overlayed by <code>SlidingPaneLayout</code> it would not rerender overl...
In my application I have GlSurfaceView and I also want to have SlidingPaneLayout , which when expanded would overlay GlSurfaceView . My question is how to do it, so that whenever GlSurfaceView is overlayed by SlidingPaneLayout it would not rerender overlayed area?
android|android-layout|opengl-es|surfaceview|glsurfaceview
0
2015-02-26T13:30:16.790Z
2,015
2
13
3
142
0
264
47
5
0
false
true
false
false
false
false
zero
28,743,877
App Inventor: Determine Backward or Forward Orientation
<p>I would like to make a segway robot with my Android phone as the orientation sensor.</p> <p>According to the <a href="http://ai2.appinventor.mit.edu/reference/components/sensors.html#OrientationSensor" rel="nofollow">App Inventor 2 reference documentation</a>:</p> <ul> <li>When the phone is standed up, Pitch is -9...
I would like to make a segway robot with my Android phone as the orientation sensor. According to the App Inventor 2 reference documentation : When the phone is standed up, Pitch is -90. When the phone is a little bit leanback, it may be Pitch is -85 When the phone is a little but forward, it may be Pitch is -85 too.. ...
android|app-inventor
2
2015-02-26T13:33:58.440Z
2,015
2
13
3
415
1
375
55
2
0
false
false
false
false
false
false
low
28,743,898
Android opengl Touch Event
<p>I'm trying to make a program that create a signal base on the position where i'm touching on the screen.That means i can change every point from the horizontally line ,with my finger.<br> But i can't have you do that , beacuse it will be complicated for you , so i want a circle to follow my finger.<br> I'm mentionin...
I'm trying to make a program that create a signal base on the position where i'm touching on the screen.That means i can change every point from the horizontally line ,with my finger. But i can't have you do that , beacuse it will be complicated for you , so i want a circle to follow my finger. I'm mentioning that i'm ...
android|opengl-es|touch-event
0
2015-02-26T13:34:54.763Z
2,015
2
13
3
1,534
1
417
26
3
1
true
false
false
false
false
false
zero
28,743,913
Android - detect switching network manually
<p>Is there any way I can detect if user switched to a different network manually(= not by connecting automatically to a network in PNL)? </p> <p>I know that for automatic + manual connection I can use <code>BroadcastReceiver</code> on <code>android.net.wifi.STATE_CHANGE</code>, but It doesn't say if it happand manual...
Is there any way I can detect if user switched to a different network manually(= not by connecting automatically to a network in PNL)? I know that for automatic + manual connection I can use BroadcastReceiver on android.net.wifi.STATE_CHANGE , but It doesn't say if it happand manually or auto
android|android-wifi
1
2015-02-26T13:35:38.660Z
2,015
2
13
3
182
0
293
43
2
0
false
true
false
false
false
false
low
28,743,916
On Windows, adb connects to wrong port 5037 instead of 5555
<p>Debugging an Android App over WiFi. I am using <a href="https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&amp;hl=en" rel="nofollow">WiFi ADB App</a> to prepare the Android Device for the connection over Wifi. All seems well on that end.</p> <p>Next, I need to connect adb as follows:</p> <pre><code>...
Debugging an Android App over WiFi. I am using WiFi ADB App to prepare the Android Device for the connection over Wifi. All seems well on that end. Next, I need to connect adb as follows: [CODE] Sometimes this works properly. But more often, I get the following message: [CODE] Even though everything seems in order, I h...
windows|android-studio|adb
-1
2015-02-26T13:35:39.973Z
2,015
2
13
3
3,555
1
1,935
59
3
4
true
false
true
false
false
true
negative
28,743,933
Android - gson.toJson throws StackOverFlowError on ArrayList<OverlayItem>
<p>I'm trying to create a JSON string of my <code>ArrayList</code> containing <code>OverlayItems</code> (<code>OverlayItem</code> is a type of osmdroid library that I'm using). The reason I'm doing this is because I want to keep this <code>ArrayList</code> of <code>OverlayItems</code> when the Android app is closed, th...
I'm trying to create a JSON string of my ArrayList containing OverlayItems ( OverlayItem is a type of osmdroid library that I'm using). The reason I'm doing this is because I want to keep this ArrayList of OverlayItems when the Android app is closed, the data must be kept (and the gson-solution seemed like a nice way o...
java|android|json|sharedpreferences|gson
1
2015-02-26T13:36:31.160Z
2,015
2
13
3
2,113
1
1,095
73
5
5
true
false
false
false
false
false
low
28,743,951
Android studio does not show a new created directory
<p>When I create a new directory (example: values-da) in my "res" directory, it does not show my created directory. No matter what the directory is named. it just won't showing. I re-created the directory again and it says that the directory already exist. I closed the program and open it again but my created directory...
When I create a new directory (example: values-da) in my "res" directory, it does not show my created directory. No matter what the directory is named. it just won't showing. I re-created the directory again and it says that the directory already exist. I closed the program and open it again but my created directory is...
android|android-studio
10
2015-02-26T13:37:32.967Z
2,015
2
13
3
6,164
2
339
52
2
0
false
false
true
false
true
false
medium
28,743,967
What sort of gestures that come from the Android API can I translate to a computer using the Java robot class?
<p>I know that mouse movement, clicks, keyboard presses etc. can be translated to the robot class but is it possible to link gestures, specifically the two finger zoom?</p> <p>For context i'm making an android app and desktop app that uses the mouses to translate mouse movement/clicks/gestures to the desktop computer ...
I know that mouse movement, clicks, keyboard presses etc. can be translated to the robot class but is it possible to link gestures, specifically the two finger zoom? For context i'm making an android app and desktop app that uses the mouses to translate mouse movement/clicks/gestures to the desktop computer via bluetoo...
java|android|gestures|pinchzoom|awtrobot
0
2015-02-26T13:38:18.410Z
2,015
2
13
3
37
0
323
110
5
0
false
true
false
false
false
false
zero
28,744,053
VosCast live streaming in android apps
<p>I'm developing an android application for a radio station, they have <a href="http://station.voscast.com/52a87cd4114ca/" rel="nofollow">this</a> live streaming channel on VosCast, i want to put a live stream Button on the ActionBar, and let it stream from the URL when pressed. And of course stop when pressed again.<...
I'm developing an android application for a radio station, they have this live streaming channel on VosCast, i want to put a live stream Button on the ActionBar, and let it stream from the URL when pressed. And of course stop when pressed again. Anybody can help with that ?
android|android-studio|live-streaming|shoutcast
2
2015-02-26T13:41:57.187Z
2,015
2
13
3
508
0
274
38
4
0
false
true
false
false
false
false
low
28,744,116
Why is my listview not updating?
<p>I've cut all the fat out of my problem. Could anyone tell me why the list isn't updating with the new values? I've tried all the refresh commands, perhaps there's something i'm missing?</p> <pre><code>public class DropboxFragment extends ListFragment { String[] values; ArrayAdapter&lt;String&gt; adapter; @Overri...
I've cut all the fat out of my problem. Could anyone tell me why the list isn't updating with the new values? I've tried all the refresh commands, perhaps there's something i'm missing? [CODE]
android|listview
-1
2015-02-26T13:45:38.583Z
2,015
2
13
3
87
4
192
32
2
1
true
false
false
false
false
true
negative
28,744,154
ClassLoader.getResources returns an empty Set
<p>I am developing an Android application that uses the <a href="https://github.com/ronmamo/reflections" rel="nofollow">Reflections</a> library to search for some annotated classes.</p> <p>After some debugging hours spent trying to figure out why this library always returned empty sets to every query I did, I found ou...
I am developing an Android application that uses the Reflections library to search for some annotated classes. After some debugging hours spent trying to figure out why this library always returned empty sets to every query I did, I found out that the method getResources("foo/bar/") of ClassLoader returns an empty Enum...
android|reflections
4
2015-02-26T13:47:59.670Z
2,015
2
13
3
214
0
530
45
2
0
false
true
false
false
false
false
low
28,744,167
Android Deep linking: Use the same link for the app and the play store
<p>I have a website which enables the user to make a search query. The query might take some time to complete (minutes to days), and I would like to enable the user to download an Android app and receive the answer there, by sending an email with a link to the user.</p> <p>I would like this mechanism to work whether t...
I have a website which enables the user to make a search query. The query might take some time to complete (minutes to days), and I would like to enable the user to download an Android app and receive the answer there, by sending an email with a link to the user. I would like this mechanism to work whether the user has...
android|deep-linking
75
2015-02-26T13:48:35.677Z
2,015
2
13
3
70,802
4
834
70
2
0
false
false
true
true
true
false
high
28,744,200
Can't resolve symbol 'setText' error
<p>like the title says I'm getting an error when trying to set a text view text from java in my android project, I can't see why.</p> <pre><code> package com.codeherenow.sicalculator; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import android.widget.SeekBa...
like the title says I'm getting an error when trying to set a text view text from java in my android project, I can't see why. [CODE] }
android|textview|settext
-1
2015-02-26T13:50:10.640Z
2,015
2
13
3
13,871
4
135
36
3
1
true
false
true
true
false
true
negative
28,744,265
Android: DatePicker textview DMY format and want to save it in YMD format
<p>I have a textview clickable and having a datepicker dialog. the datepicker then sets the date in textview as DAY, MONTH, YEAR format. I want to store it in YEAR, MONTH , DAY format. I want it to show as DMY in textview but in SQLITE it must store as YDM. I did the following method but it gives me illegalexception.<...
I have a textview clickable and having a datepicker dialog. the datepicker then sets the date in textview as DAY, MONTH, YEAR format. I want to store it in YEAR, MONTH , DAY format. I want it to show as DMY in textview but in SQLITE it must store as YDM. I did the following method but it gives me illegalexception. [COD...
android|simpledateformat
-1
2015-02-26T13:53:25.160Z
2,015
2
13
3
172
1
361
73
2
2
true
false
false
false
false
true
negative
28,744,278
Removing big amount of data
<p><strong>==========PROBLEM==========</strong></p> <p>I am trying to delete a folder that contains a lot of data (mp3, images, xml, ect.). At the moment I am doing it via <code>FileUtils.removeDirectory()</code> from <code>commons-io</code> library. The problem is that when I'm doing it, it basically freezes my app. ...
==========PROBLEM========== I am trying to delete a folder that contains a lot of data (mp3, images, xml, ect.). At the moment I am doing it via FileUtils.removeDirectory() from commons-io library. The problem is that when I'm doing it, it basically freezes my app. Is there a way to do it more efficient? or less painfu...
android
0
2015-02-26T13:53:53.613Z
2,015
2
13
3
41
1
355
27
1
1
true
false
false
false
false
false
zero
28,744,302
Using raw file when trying to make local SQLite database
<p>Currently I'm working with a SQLite database that will pull <code>.mp3</code>s from the device's external memory (like an SD) that stores all the albums content (like album artwork, track name, ect.) in a <code>MediaPlayer</code> in my <code>DataBase</code>. My goal is to get it to have already preloaded <code>.mp3<...
Currently I'm working with a SQLite database that will pull .mp3 s from the device's external memory (like an SD) that stores all the albums content (like album artwork, track name, ect.) in a MediaPlayer in my DataBase . My goal is to get it to have already preloaded .mp3 s once the .apk is extracted, so I tried to st...
android|mp3|android-sqlite|android-mediaplayer|android-resources
0
2015-02-26T13:55:07.917Z
2,015
2
13
3
141
1
627
56
5
1
true
false
false
false
false
false
zero
28,744,310
Experiences with Intel XDK and Cordova CLI: What is better?
<p>I'm currently planning a cordova app targeting Android, iOS and Windows Phone 8.1. No I'm wondering on which build workflow I should rely on. On the one hand there's builind via the command line interface (CLI) of cordova, on the other one there's Intel XDK (for Linux in my case).</p> <p>Is thre anyone who has expe...
I'm currently planning a cordova app targeting Android, iOS and Windows Phone 8.1. No I'm wondering on which build workflow I should rely on. On the one hand there's builind via the command line interface (CLI) of cordova, on the other one there's Intel XDK (for Linux in my case). Is thre anyone who has experiences wit...
android|ios|cordova|windows-phone-8.1|intel-xdk
1
2015-02-26T13:55:27.513Z
2,015
2
13
3
733
2
597
59
5
0
false
false
false
false
false
false
low
28,744,350
ADB not responding. If you'd like to retry, then please manually kill "adb.exe" and click Restart
<p>I am new to android studio, as i run android studio, this error is poped out.can anyone help me out with this error</p>
I am new to android studio, as i run android studio, this error is poped out.can anyone help me out with this error
android
-4
2015-02-26T13:57:25.813Z
2,015
2
13
3
2,704
1
115
97
1
0
false
false
true
false
false
true
negative
28,744,353
appwarp chatroom not showing
<p>I am using AppWard to adding a chat feature in my android app and i create the app and add a chat room at <a href="https://apphq.shephertz.com/service/deployApp?appwarp=true" rel="nofollow">https://apphq.shephertz.com/service/deployApp?appwarp=true</a></p> <p>i also changed the apikey and secretkey at constants.jav...
I am using AppWard to adding a chat feature in my android app and i create the app and add a chat room at https://apphq.shephertz.com/service/deployApp?appwarp=true i also changed the apikey and secretkey at constants.java but my app did't shows the my chat room package appwarp.example.chatdemo; [CODE] please could som...
android|appwarp
0
2015-02-26T13:57:28.787Z
2,015
2
13
3
73
0
416
28
2
1
true
true
false
false
false
false
zero
28,744,354
android - launch different activities depending on edittext values
<p>I want to launch different activities depending on the values of 2 EditText fields on the start activity, one should start for admins, the other for all other users.</p> <p>I think you 'll understand better seeing the code I 've done so far:</p> <pre><code>package com.example.xxx; import android.app.Activity; imp...
I want to launch different activities depending on the values of 2 EditText fields on the start activity, one should start for admins, the other for all other users. I think you 'll understand better seeing the code I 've done so far: [CODE] The error is at the if statement, on PASSWORD="1234" says "Incompatible operan...
android|android-activity
0
2015-02-26T13:57:29.007Z
2,015
2
13
3
24
0
794
66
2
1
true
true
false
false
false
false
zero
28,744,360
Link2SD - missing apps after reboot
<p>After googling a lot and trying so many sugestions to fix my problem, I decided to ask for your help here.</p> <p>I rooted my THL 5000 using kingo root.</p> <p>After this, I partitioned my 32 Gb SD Card into 2 partitions (1st FAT32 and 2nd as EXT4, both as primary) using Mini Tool Partition and following a tutoria...
After googling a lot and trying so many sugestions to fix my problem, I decided to ask for your help here. I rooted my THL 5000 using kingo root. After this, I partitioned my 32 Gb SD Card into 2 partitions (1st FAT32 and 2nd as EXT4, both as primary) using Mini Tool Partition and following a tutorial guide in rootmyan...
android
3
2015-02-26T13:58:02.773Z
2,015
2
13
3
5,843
2
1,310
35
1
0
false
false
true
false
false
false
low
28,744,383
Testing my ionic app with Instagram API on android device error: net::ERR_CONNECTION_REFUSED
<p>I'm making an app using Ionic framework and AngularJS which uses Instagram API for login. In browser everything works fine when redirect_uri is my localhost. </p> <p>But when I try to test it on Android ("ionic run android"), when Instagram redirects me back to my application it throws an error: ERR_CONNECTION_REFU...
I'm making an app using Ionic framework and AngularJS which uses Instagram API for login. In browser everything works fine when redirect_uri is my localhost. But when I try to test it on Android ("ionic run android"), when Instagram redirects me back to my application it throws an error: ERR_CONNECTION_REFUSED for "loc...
android|angularjs|api|instagram|ionic-framework
0
2015-02-26T13:59:07.033Z
2,015
2
13
3
1,378
2
362
92
5
0
false
false
false
false
false
false
zero
28,744,470
Stop user from making multiple instances of app widget
<p>I have made an widget of my application. Currently user can create multiple instances of the same widget on the home screen. I don't want the user to make multiple instances of the same widget on home screen. Any suggestions ? Thanx in advance.</p>
I have made an widget of my application. Currently user can create multiple instances of the same widget on the home screen. I don't want the user to make multiple instances of the same widget on home screen. Any suggestions ? Thanx in advance.
android|widget
0
2015-02-26T14:03:29.060Z
2,015
2
14
3
228
1
244
54
2
0
false
false
false
false
false
false
zero
28,744,517
PopUp menu will not center horizontal
<p>I instantiate a popup menu in Xamarin studio / C# in this way:</p> <pre><code>PopupMenu puMenu = new PopupMenu(myActivity, view, GravityFlags.CenterHorizontal); </code></pre> <p>With this I expect the puMenu to center horizontal, but this is not the case. The puMenu continues to be left aligned.</p> <p>If i repla...
I instantiate a popup menu in Xamarin studio / C# in this way: [CODE] With this I expect the puMenu to center horizontal, but this is not the case. The puMenu continues to be left aligned. If i replace "CenterHorzontal" with "Right" like this: [CODE] the puMenu is right aligned as I expect. Any clues to whats wrong wit...
c#|android|xamarin
0
2015-02-26T14:05:37.633Z
2,015
2
14
3
658
1
342
37
3
2
true
false
false
false
false
false
zero
28,744,659
Removing the shadow on an android button
<p>I have searched and tryed all found solutions to this. I need to remove the shadow from a button in android. Most of the solutions i found involve using an imagebutton and setting it's background. I tryed that and it works but my button has text so imagebutton is not an option. Unless there is a way to write to an i...
I have searched and tryed all found solutions to this. I need to remove the shadow from a button in android. Most of the solutions i found involve using an imagebutton and setting it's background. I tryed that and it works but my button has text so imagebutton is not an option. Unless there is a way to write to an imag...
android|android-layout|android-button|shadow
22
2015-02-26T14:11:55.133Z
2,015
2
14
3
17,263
4
659
40
4
2
true
false
true
true
true
false
high
28,744,726
Replace the phone number by a contact name in iOS, Android SMS body
<p>We at our website send invitation messages via SMS. Users can specify the number of their friend, and this friend will receive the following SMS message on his/her phone:</p> <pre><code>+37300123456 invited you to join our service, blah blah... </code></pre> <p>Normally this +37300123456 (it's a Moldovan phone num...
We at our website send invitation messages via SMS. Users can specify the number of their friend, and this friend will receive the following SMS message on his/her phone: [CODE] Normally this +37300123456 (it's a Moldovan phone number, non-existing) exists in user's contact list. Our target customers use Android and iO...
android|ios|windows-phone-8|sms|gsm
1
2015-02-26T14:15:23.607Z
2,015
2
14
3
780
1
453
67
5
3
true
false
false
false
false
false
low
28,744,751
How to set include background color in android
<p>How to set background color on an <code>include</code> tag in Android? This does not work:</p> <pre><code> &lt;include android:id="@+id/list_item_section_text" android:layout_width="fill_parent" android:layout_height="match_parent" layout="@android:layout/preference_category" android:background="%MY_BACKGROUND...
How to set background color on an include tag in Android? This does not work: [CODE]
android|android-layout
14
2015-02-26T14:16:06.963Z
2,015
2
14
3
9,004
4
84
46
2
1
true
false
true
false
true
false
medium
28,744,834
PhoneRTC: Send data from Java to Javascript on start
<p>I have included phonertc sample application as part of my Android Native Java Application. On my home activity, I have a button which start the phonertc sample app on click. Here is what button does:</p> <pre><code>Intent i = new Intent(this, CordovaApp.class); startActivity(i); </code></pre> <p>Inside CordovaApp....
I have included phonertc sample application as part of my Android Native Java Application. On my home activity, I have a button which start the phonertc sample app on click. Here is what button does: [CODE] Inside CordovaApp.class, I have the following code taken from the sample app of phonertc: [CODE] This loads the s...
javascript|android|phonertc
1
2015-02-26T14:21:01.087Z
2,015
2
14
3
485
1
745
52
3
2
true
false
false
false
false
false
low
28,744,881
How to set the listview height base on the total height of items?
<p>I have already set the listview height like this, the function work fine, however, when some item in the listview is VIEW.GONE at the beginning, and VISIBLE at later on , the view is <strong>not</strong> update so latter part of the element is exceed the screen and can not show. How to fix the problem? </p> <p><str...
I have already set the listview height like this, the function work fine, however, when some item in the listview is VIEW.GONE at the beginning, and VISIBLE at later on , the view is not update so latter part of the element is exceed the screen and can not show. How to fix the problem? 1. this is the code to set the li...
android|android-layout|listview|android-listview|android-view
0
2015-02-26T14:22:38.363Z
2,015
2
14
3
200
1
590
65
5
3
true
false
false
false
false
false
zero
28,744,935
Android - navigate from main activity to tablets activity
<p>In my app I've to navigate from the login activity (normal activity developed with a RelativeLayout) to an activity in which there are a Tab Host. I created the following xml for Tab Host:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/andro...
In my app I've to navigate from the login activity (normal activity developed with a RelativeLayout) to an activity in which there are a Tab Host. I created the following xml for Tab Host: [CODE] This is the code of the class that control the Tab Host: [CODE] My login activity send a username and a password to a web se...
android|android-intent|android-tabhost
0
2015-02-26T14:25:20.210Z
2,015
2
14
3
171
2
554
57
3
4
true
false
false
false
false
false
zero
28,745,075
GCM data not being passed by AWS SNS
<p>I'm using Amazon SNS to send push notifications to an Android device. If I send the following JSON I can't read the parameters in the data element.</p> <p>{ "default": "message here", "GCM": { "data": { "message": "This is the message" } } }</p> <p>I can read the default ele...
I'm using Amazon SNS to send push notifications to an Android device. If I send the following JSON I can't read the parameters in the data element. { "default": "message here", "GCM": { "data": { "message": "This is the message" } } } I can read the default element but in my broadcastreceiver I can't do this. protected...
android|amazon-web-services|google-cloud-messaging
0
2015-02-26T14:31:41.263Z
2,015
2
14
3
706
1
574
36
3
1
true
false
false
false
false
false
zero
28,745,130
How working system in getView in Android?
<pre><code>@Override public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; if (view == null) { view = layoutInflater.inflate(R.layout.statistics_adapter, parent, false); } textViewLeft= (TextView) view.findViewById(R.id.textView...
[CODE] In my list when you scroll down the first time, the text in the 8 position is changed to red. If you scroll listView 5 times up and down, then my text, will change color on #ff0000. What is wrong I do ?. It seems all right
android|android-layout|android-activity|view|baseadapter
0
2015-02-26T14:34:03.943Z
2,015
2
14
3
45
1
229
41
5
1
true
false
false
false
false
false
zero
28,745,132
Which takes precedence, Gradle build types or flavors?
<p>Say I have a constant defined at both levels: in the build type I set it to "mybuild" and in the flavor I set it to "myflavor".</p> <p>Such as in here:</p> <pre><code>buildTypes { debug { resValue "string", "analytics_key", "XXX_SANDBOX_KEY_XXX" } } productFlavors { appA { resValue "st...
Say I have a constant defined at both levels: in the build type I set it to "mybuild" and in the flavor I set it to "myflavor". Such as in here: [CODE] I want to send the events of the different apps (thta is, flavors) to different accounts in my analytics platform. But, if I'm debugging, I want to send them all to my ...
android|gradle
4
2015-02-26T14:34:09.090Z
2,015
2
14
3
1,340
2
552
54
2
1
true
false
false
false
false
false
low
28,745,205
cannot resolve symbol 'java.time.LocalDate' error in android studio
<p>I am trying to use java.time.LocalDate in my android app, however if I try to import it, then any class from java.time gives a cannot resolve symbol error in Android studio 1.1</p> <p>The only reason I could figure out for this is that it doesn't support java 8. Is that really the case?</p>
I am trying to use java.time.LocalDate in my android app, however if I try to import it, then any class from java.time gives a cannot resolve symbol error in Android studio 1.1 The only reason I could figure out for this is that it doesn't support java 8. Is that really the case?
java|android|android-studio|java-8|java-time
20
2015-02-26T14:37:26.847Z
2,015
2
14
3
16,682
4
280
67
5
0
false
false
true
true
true
false
medium
28,745,209
Unable to receive broadcast from Service
<p>The issue I am having is in regards to receiving a broadcast from a service that is within an android library project.</p> <p><strong>Why am I unable to receive the broadcast? does it have to do with all the service/interface logic being in a seperate android library project?</strong></p> <p>Here is the broadcast ...
The issue I am having is in regards to receiving a broadcast from a service that is within an android library project. Why am I unable to receive the broadcast? does it have to do with all the service/interface logic being in a seperate android library project? Here is the broadcast from the service [CODE] Here is the ...
java|android|android-intent|service|broadcastreceiver
1
2015-02-26T14:37:45.197Z
2,015
2
14
3
501
1
685
40
5
6
true
false
false
false
false
false
low
28,745,228
SharedPreferencesBackupHelper auto restore doesn't work
<p>I'm trying to use SharedPreferencesBackupHelper to save my SharedPreferences value to cloud. </p> <p>AndroidManifest.xml</p> <p> </p> <pre><code>&lt;application android:allowBackup="true" android:backupAgent=".DataBackupAgent" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" ...
I'm trying to use SharedPreferencesBackupHelper to save my SharedPreferences value to cloud. AndroidManifest.xml [CODE] DataBackupAgent.java: public class DataBackupAgent extends BackupAgentHelper { [CODE] } MainActivity.java [CODE] My steps: Write something at the EditText, click Backup button Close app and open again...
android|android-backup-service
6
2015-02-26T14:39:00.170Z
2,015
2
14
3
1,435
1
644
55
2
4
true
false
false
false
false
false
medium
28,745,257
Android textview's view bounds are much larger than content, how to remove it?
<p>My problem is, when i turn on a setting in the developer options to see view bounds, i can see that the orange "20" text wraps much larger space than it is requried. (top and bottom)</p> <p>I tried to set: <code>android:includeFontPadding="false"</code> but it is just simple push up the content, leaving a big empty...
My problem is, when i turn on a setting in the developer options to see view bounds, i can see that the orange "20" text wraps much larger space than it is requried. (top and bottom) I tried to set: android:includeFontPadding="false" but it is just simple push up the content, leaving a big empty space bottom of the tex...
android|textview
1
2015-02-26T14:40:10.973Z
2,015
2
14
3
1,223
1
380
78
2
1
true
false
false
false
false
false
low
28,745,325
Maintain scroll position when prepend ListView
<p>My problem is the following:</p> <p>I have a list of news which is updated every few minutes as follows:</p> <p>Always new messages appear before old ones (Prepend list)</p> <pre><code>// Step 1 - Prepend array list arraylist.add(0, map); // Step 2 - Notify adapter.notifyDataSetChanged(); </code></pre> <p>When...
My problem is the following: I have a list of news which is updated every few minutes as follows: Always new messages appear before old ones (Prepend list) [CODE] When you call "notifyDataSetChanged" scroll position are kept but .. I want to stay at the current position ... to be somewhat lower. eg (Facebook > prepend ...
java|android
0
2015-02-26T14:43:30.450Z
2,015
2
14
3
77
1
433
46
2
3
true
false
false
false
false
false
zero
28,745,339
Error implementing back button on webview fragment android using handler
<p>Here is my code for fragment that contains a webview, I'm trying to implement back button for webview, and my code doesn't work.. Have tried plenty of answers online, but it doesn't seem to work for my code.. Basically I tried it using handlers with the help of this <a href="https://stackoverflow.com/a/10631749/2768...
Here is my code for fragment that contains a webview, I'm trying to implement back button for webview, and my code doesn't work.. Have tried plenty of answers online, but it doesn't seem to work for my code.. Basically I tried it using handlers with the help of this answer , and I see the below error.. [CODE] Many than...
android|android-fragments|webview
0
2015-02-26T14:44:01.483Z
2,015
2
14
3
281
1
336
72
3
1
true
false
false
false
false
false
zero
28,745,395
How to add multiple textviews in android
<p>I am making one chat application in this application I have to display all users names who are connected to login user,so I am showing this data in dialog,actually problem is different text views with different styles in relative layout which wiil be arranged automatically side by side,if layout width occupied by 3 ...
I am making one chat application in this application I have to display all users names who are connected to login user,so I am showing this data in dialog,actually problem is different text views with different styles in relative layout which wiil be arranged automatically side by side,if layout width occupied by 3 tex...
android|textview
0
2015-02-26T14:46:33.663Z
2,015
2
14
3
263
1
447
40
2
0
false
false
false
false
false
false
zero
28,745,428
AngularJS routing on phoneGap
<p>I'm having trouble loading angularJS template on phoneGap. I'm using the android simulator via intellij phonegap Plugin. I went here, <a href="https://stackoverflow.com/questions/15105910/angular-ng-view-routing-not-working-in-phonegap">Angular ng-view/routing not working in PhoneGap</a>, already. </p> <p>My loginR...
I'm having trouble loading angularJS template on phoneGap. I'm using the android simulator via intellij phonegap Plugin. I went here, Angular ng-view/routing not working in PhoneGap , already. My loginRoute.js looks like this: [CODE] Part of my index.html where I insert all my javaScript files: [CODE] The index.js: [CO...
android|angularjs|cordova|intellij-idea|phonegap-build
2
2015-02-26T14:48:12.877Z
2,015
2
14
3
444
0
720
29
5
5
true
true
false
false
false
false
low
28,745,530
Prevent cordova/phonegap camera plugin from refreshing the page
<p>We have a single page app and we have a divs for each page like this:</p> <pre><code>&lt;div id="page1"&gt; &lt;/div&gt; &lt;div id="page2"&gt; &lt;/div&gt; </code></pre> <p>In page2 I have a button to get the image from the gallery and this is my code to get image:</p> <pre><code>function getPhoto() { naviga...
We have a single page app and we have a divs for each page like this: [CODE] In page2 I have a button to get the image from the gallery and this is my code to get image: [CODE] But the problem is after getting image, the page is getting refreshed because of that entire page is reloaded and it is coming to page1 div (th...
javascript|android|jquery|html|cordova
0
2015-02-26T14:52:47.823Z
2,015
2
14
3
301
0
600
63
5
2
true
true
false
false
false
false
zero
28,745,540
How to change color of button when pressed if it already have shape_layout? Android
<p>I want to change color of button when pressed, but for it I already have</p> <pre><code>android:background="@drawable/shape_layout" </code></pre> <p>shape_layout.xml code:</p> <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt; &lt;gradient androi...
I want to change color of button when pressed, but for it I already have [CODE] shape_layout.xml code: [CODE] So how to make a change color of button when pressed?
android|android-studio|android-drawable
1
2015-02-26T14:53:25.827Z
2,015
2
14
3
2,231
2
163
83
3
2
true
false
false
false
false
false
low
28,745,892
Android MediaCodec change resolution
<p>I am passing the output of a MediaExtractor into a MediaCodec decoder, and then passing the decoder's output buffer to an encoder's input buffer. The problem I have is that I need to reduce the resolution from the 1920x1080 output from the decoder to 1280x720 by the time it comes out of the encoder. I can do this us...
I am passing the output of a MediaExtractor into a MediaCodec decoder, and then passing the decoder's output buffer to an encoder's input buffer. The problem I have is that I need to reduce the resolution from the 1920x1080 output from the decoder to 1280x720 by the time it comes out of the encoder. I can do this using...
android|ffmpeg|video-encoding|android-mediacodec
1
2015-02-26T15:07:28.973Z
2,015
2
15
3
2,133
1
532
36
4
0
false
false
false
false
false
false
low
28,745,903
Having problems with the Fragment Tab Host - It doesn't work
<p>What I am trying to do is to create three tabs in my main xml file. and then load up the fragments based on the tabs which has been pressed. </p> <p>I have having problems with the Fragment Tab Host. I have this XML which has ;</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/and...
What I am trying to do is to create three tabs in my main xml file. and then load up the fragments based on the tabs which has been pressed. I have having problems with the Fragment Tab Host. I have this XML which has ; [CODE] In My Main activity I have got this code ; [CODE] When I run this program it says "Unfortunat...
java|android|xml|fragment-tab-host
1
2015-02-26T15:07:47.477Z
2,015
2
15
3
489
1
388
60
4
2
true
false
false
false
false
false
low
28,745,963
Android Sliding Menu from both left and right side
<p>In my android app i am using Sliding Menu <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow">https://github.com/jfeinstein10/SlidingMenu</a>.The drawer should get open from both side.I am having a button at top-right corner of screen. By clicking that button the page should come from right to left...
In my android app i am using Sliding Menu https://github.com/jfeinstein10/SlidingMenu .The drawer should get open from both side.I am having a button at top-right corner of screen. By clicking that button the page should come from right to left but the page is coming from left to right. Here is my code [CODE] Thanks fo...
android|slidingmenu
1
2015-02-26T15:10:19.723Z
2,015
2
15
3
1,881
0
331
50
2
1
true
true
false
false
false
false
low
28,745,966
Android ASyncTask wrong result
<p>Im trying to do a GET request to a server and return the response. Here is my code.</p> <pre><code>@Override protected String doInBackground(String... params) { String url = getBaseUrl() + params[0] + "?" + params[1] + "=" + params[2]; String response = ""; try { HttpClient client = new DefaultH...
Im trying to do a GET request to a server and return the response. Here is my code. [CODE] When debugging response has the right value but when I call the method the response becomes something else. I call it like this: [CODE] The result here is something else than the response in the doInBackground method. How is this...
java|android|asynchronous
-1
2015-02-26T15:10:30.517Z
2,015
2
15
3
176
2
353
30
3
2
true
false
false
false
false
true
negative
28,746,010
Android: show/hide the android soft keyboard
<p>How can I disable and enable the virtual keyboard when the user click on the EditText. If I use the instruction <code>EditText.setInputType(InputType.TYPE_NULL);</code> the cursor does not blink and when I set it not focusable the cursor disappear.</p>
How can I disable and enable the virtual keyboard when the user click on the EditText. If I use the instruction EditText.setInputType(InputType.TYPE_NULL); the cursor does not blink and when I set it not focusable the cursor disappear.
android
0
2015-02-26T15:12:31.350Z
2,015
2
15
3
134
2
235
44
1
0
false
false
false
false
false
false
zero
28,746,027
Minimum hardware requirement for android studio?
<p>My system configuration: Intel Pentiunm dual core 1.3GHz with 2GB RAM. I have installed Android Studio but it is sluggish, I'm new in android development. Is upgrading RAM to 4GB help?</p>
My system configuration: Intel Pentiunm dual core 1.3GHz with 2GB RAM. I have installed Android Studio but it is sluggish, I'm new in android development. Is upgrading RAM to 4GB help?
android|android-studio
21
2015-02-26T15:13:19.947Z
2,015
2
15
3
71,333
6
184
48
2
0
false
false
true
true
true
false
high
28,746,089
Android Studio renaming
<p>I recently renamed my Android app project in Android Studio (1.1b4) project, but am now unable to rebuild. I get this error:</p> <pre><code>Error:Execution failed for task ':app:clean'. &gt; Unable to delete directory: D:\AndroidstudioProjects\PcUpload\app\build\intermediates\res\release\values-sw600dp-v13 </code><...
I recently renamed my Android app project in Android Studio (1.1b4) project, but am now unable to rebuild. I get this error: [CODE] I renamed by right-clicking the top-level in the Project hierarchy, then selecting "Refactor...Rename". Can anyone advise how I can remedy this?
android|android-studio|rename
0
2015-02-26T15:16:19.347Z
2,015
2
15
3
352
1
276
23
3
1
true
false
false
false
false
false
zero
28,746,162
Fragment flashes after removal and animation ends
<p>I've been trying to get a fragment to be inserted and removed from my activity with a circular reveal animation. I found this demo repo <a href="https://github.com/ferdy182/Android-CircularRevealFragment" rel="nofollow">here</a> that does exactly this. The only change I made was to have the fragment removed on a but...
I've been trying to get a fragment to be inserted and removed from my activity with a circular reveal animation. I found this demo repo here that does exactly this. The only change I made was to have the fragment removed on a button click, instead of the fragment touched listener. The problem is, after removal using th...
android|android-fragments|android-animation|material-design
3
2015-02-26T15:18:56.120Z
2,015
2
15
3
2,116
1
1,337
49
4
3
true
false
false
false
false
false
low
28,746,344
Stream sound from android application to a device over wifi
<p>I am building an android music player that can stream all the sound generated by my app to an external IP rather than playing it to speaker/headset over wifi. </p> <p>Basically I want to route all the sound output of my app to an external IP rather than phone's speaker, bluetooth speaker or earphones. </p> <p>I ha...
I am building an android music player that can stream all the sound generated by my app to an external IP rather than playing it to speaker/headset over wifi. Basically I want to route all the sound output of my app to an external IP rather than phone's speaker, bluetooth speaker or earphones. I have read about udp , u...
java|android
2
2015-02-26T15:26:12.380Z
2,015
2
15
3
5,767
1
473
59
2
0
false
false
true
false
false
false
low
28,746,411
Receive push notification in Google Glass
<p>I would like to receive notifications in Google Glass (in my Android smartphone I can do this trough Google Cloud Messaging), but in Glass, Google Play Services are not available...</p> <p>Is there any alternative?</p>
I would like to receive notifications in Google Glass (in my Android smartphone I can do this trough Google Cloud Messaging), but in Glass, Google Play Services are not available... Is there any alternative?
android|push-notification|google-glass|google-cloud-messaging|gdk
0
2015-02-26T15:29:42.127Z
2,015
2
15
3
336
2
207
41
5
0
false
false
false
false
false
false
zero
28,746,426
How do I create individual XML files from the parsed data output of a XML file?
<p>I have written a program (DOM Parser) that parses data from a XMl File. I would like to create an individual file with the corresponding name for each set of data parsed from the xml document. If the parsed output is Single, Double, Triple, I would like to create an individual xml file (Single.xml, Double.xml, Tripl...
I have written a program (DOM Parser) that parses data from a XMl File. I would like to create an individual file with the corresponding name for each set of data parsed from the xml document. If the parsed output is Single, Double, Triple, I would like to create an individual xml file (Single.xml, Double.xml, Triple.x...
java|android|xml|parsing|dom
0
2015-02-26T15:30:03.787Z
2,015
2
15
3
216
1
478
79
5
1
true
false
false
false
false
false
zero
28,746,487
Google Glass Heating Issue
<p>I am developing a <a href="https://glass.google.com/u/0/glassware" rel="noreferrer">glassware</a>, which shows you cards (images + text) from a list. To see all the Cards one by one you just need to move you head around and the information got changed. The application is some where similar to the <a href="https://gl...
I am developing a glassware , which shows you cards (images + text) from a list. To see all the Cards one by one you just need to move you head around and the information got changed. The application is some where similar to the What's Around glassware. I have implemented SensorManager to get the users current orientat...
android|google-glass|sensormanager
3
2015-02-26T15:32:29Z
-1
-1
-1
-1
139
0
776
26
3
0
false
true
false
false
false
false
low
28,746,509
Android Gradle 1.1 - adding a test dependency on another project's tests
<p>I have 2 modules: <em>A</em> and <em>B</em>.</p> <p>-<em>A</em> is a standalone module. Its tests run just fine all by itself.<br> -<em>B</em> is a dependent module. Its tests require a certain file in <em>A</em>'s test folder (one test file in <em>B</em> extends one in <em>A</em>)</p> <p>&nbsp;</p> <p>Here are w...
I have 2 modules: A and B . - A is a standalone module. Its tests run just fine all by itself. - B is a dependent module. Its tests require a certain file in A 's test folder (one test file in B extends one in A ) Here are what I believe to be the relevant parts of B 's build.gradle : [CODE] While this technically work...
android|android-studio|gradle|android-gradle-plugin
7
2015-02-26T15:33:52.407Z
2,015
2
15
3
485
1
1,105
72
4
2
true
false
false
false
false
false
medium
28,746,512
Alphanumeric sorting of ArrayList with HashMap
<p>I have an <code>ArrayList</code> with several objects per index. I want to sort this list alphanumerically by one object in particular. The object is "my_id" and the values for this object can look similar to: 1A, 10B, 11B, 2C, 205Z, etc.</p> <p>I need to sort these to come out: 1A, 2C, 10B, 11B, 205Z. Where the...
I have an ArrayList with several objects per index. I want to sort this list alphanumerically by one object in particular. The object is "my_id" and the values for this object can look similar to: 1A, 10B, 11B, 2C, 205Z, etc. I need to sort these to come out: 1A, 2C, 10B, 11B, 205Z. Where the numeric part is sorted fir...
java|android|sorting|arraylist
0
2015-02-26T15:34:11.683Z
2,015
2
15
3
3,470
2
1,451
46
4
3
true
false
true
false
false
false
zero
28,746,590
Formatting Strings
<p>People often link the following for explaining formatted strings, Can anyone show me a working example of how to use this? </p> <pre><code>&lt;string name="welcome_messages"&gt;Hello, %1$s! You have %2$d new messages.&lt;/string&gt; Resources res = getResources(); String text = String.format(res.getString(R.string....
People often link the following for explaining formatted strings, Can anyone show me a working example of how to use this? [CODE]
android|string-formatting
-6
2015-02-26T15:38:14.897Z
2,015
2
15
3
54
1
129
18
2
1
true
false
false
false
false
true
negative
28,746,728
Application is not offered for "Sony Xperia T2 Ultra" device from Google Play Store
<p>My application is not offered on "Sony Xperia T2 Ultra". Filtering logic with my AndroidManifest is as follows:</p> <pre><code>&lt;uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" /&gt; &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt; &lt;uses-perm...
My application is not offered on "Sony Xperia T2 Ultra". Filtering logic with my AndroidManifest is as follows: [CODE] Please suggest what might be the potential issues those block the application to be get offered on the device.
android|sony-xperia
1
2015-02-26T15:44:41.443Z
2,015
2
15
3
285
0
229
83
2
1
true
true
false
false
false
false
low
28,746,822
Hide "action bar" in lollipop , API 21
<p>For some reason, in API 21, the app crashes every time i use a theme of "no action bar".</p> <p>I saw here in another question that i should add <code>this.getActionBar().hide();</code>, so i tried it with a several different themes but it's not working.</p> <p>Can someone explain to me why this is happening and w...
For some reason, in API 21, the app crashes every time i use a theme of "no action bar". I saw here in another question that i should add this.getActionBar().hide(); , so i tried it with a several different themes but it's not working. Can someone explain to me why this is happening and what's the solution for that?
java|android
0
2015-02-26T15:49:10.413Z
2,015
2
15
3
743
2
317
38
2
0
false
false
false
false
false
false
zero
28,746,919
Android Studio using API from older and newer Android version
<p>While trying to update my Android app to run on Android API level 21 (Lollipop), I've encountered a problem where a method I had used in my app previously is no longer present in the Android source.</p> <p>Specifically, I use this method from API level 19:</p> <pre><code>android.view.IWindowManager.setInputFilter(...
While trying to update my Android app to run on Android API level 21 (Lollipop), I've encountered a problem where a method I had used in my app previously is no longer present in the Android source. Specifically, I use this method from API level 19: [CODE] That method was removed completely in API level 21. I have alre...
android|android-studio
0
2015-02-26T15:53:42.650Z
2,015
2
15
3
142
1
648
61
2
1
true
false
false
false
false
false
zero
28,746,949
Edit row in listView, ArrayAdapter - Android
<p>How can I change color of text in single row? </p> <p>Here is the code where I set adapter and call listView:</p> <pre><code> ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getListView().getContext(), R.layout.row, rez); getListView().setAdapter(adapter); </code></pre>
How can I change color of text in single row? Here is the code where I set adapter and call listView: [CODE]
android|listview|row|android-arrayadapter
-2
2015-02-26T15:55:20.927Z
2,015
2
15
3
497
2
108
44
4
1
true
false
false
false
false
true
negative
28,746,976
Android best practice on how to manage code - in the Activity class or Object class?
<p>I'm new to Android and am developing my first app. I have arrived at a situation where I have two options but am not sure which would be the best practice and was hoping somebody could clarify this.</p> <p>As an example, I have a Contact class. Objects of this class are stored in a database which the user can delet...
I'm new to Android and am developing my first app. I have arrived at a situation where I have two options but am not sure which would be the best practice and was hoping somebody could clarify this. As an example, I have a Contact class. Objects of this class are stored in a database which the user can delete from both...
java|android|eclipse|oop
2
2015-02-26T15:56:49.407Z
2,015
2
15
3
1,047
2
936
84
4
0
false
false
false
false
false
false
low
28,747,066
update Fragment after AsyncTask finishes
<p>I have an activity that hosts 2 tabs fragments. I fetch some data from database and based on that I want to update textviews inside my 2 tab fragments after AsyncTask finishes. However I get <code>java.lang.NullPointerException at computing.gmit.ie.scorerapp.Team1Fragment.update(Team1Fragment.java:36)</code> when I...
I have an activity that hosts 2 tabs fragments. I fetch some data from database and based on that I want to update textviews inside my 2 tab fragments after AsyncTask finishes. However I get java.lang.NullPointerException at computing.gmit.ie.scorerapp.Team1Fragment.update(Team1Fragment.java:36) when I try to update th...
java|android|android-fragments|android-asynctask
2
2015-02-26T16:00:31.140Z
2,015
2
16
3
1,237
1
445
40
4
4
true
false
false
false
false
false
low
28,747,201
SQLite database not created by SQLite Open Helper
<p>I have created this class in my android application. But when I'm going to retrieve data from created database, it's showing the database not available. Please help me to do this. Thanks</p> <pre><code>public class DatabaseHandler extends SQLiteOpenHelper { private static final String DATABASE_NAME = "dbumbers...
I have created this class in my android application. But when I'm going to retrieve data from created database, it's showing the database not available. Please help me to do this. Thanks [CODE] this is retrieval part [CODE]
android|sqlite
0
2015-02-26T16:07:05.743Z
2,015
2
16
3
236
4
223
49
2
2
true
false
false
false
false
false
zero
28,747,212
Android Studio avoid "make" while running
<p>When you press the run button in Android Studio the project is buit again, and as you know this always take long, if e.g. I select Build -> Make Project and then "Run" the make process runs again, I don't understand why? I would expect that it only installs the APK that is already generated. Is there a way I can ach...
When you press the run button in Android Studio the project is buit again, and as you know this always take long, if e.g. I select Build -> Make Project and then "Run" the make process runs again, I don't understand why? I would expect that it only installs the APK that is already generated. Is there a way I can achiev...
android-studio
0
2015-02-26T16:07:31.970Z
2,015
2
16
3
33
1
376
41
1
0
false
false
false
false
false
false
zero
28,747,265
How to discover network services on domain other than .local domain in Android?
<p>I want to use Android Network Service Discovery (NSD) function to discover some local network services advertised on local domain. I read the <a href="http://developer.android.com/training/connect-devices-wirelessly/nsd.html" rel="nofollow">official documentation</a> on Android website about Android NSD. I can find ...
I want to use Android Network Service Discovery (NSD) function to discover some local network services advertised on local domain. I read the official documentation on Android website about Android NSD. I can find the network services advertised on .local domain without problem. But I have some other network services t...
android|zeroconf|avahi|network-service|android-nsd
2
2015-02-26T16:10:14.730Z
2,015
2
16
3
781
0
1,088
79
5
1
true
true
false
false
false
false
low
28,747,379
How to share image from my app on Facebook
<p>I want to allow users to share image from my app on Facebook. Say I already have an image (i.e. file path). How do I go about letting a user share it on Facebook? Basically I want the user to agree once. Then from there on, whenever the user takes a certain action in my app, share a particular image on Facebook on b...
I want to allow users to share image from my app on Facebook. Say I already have an image (i.e. file path). How do I go about letting a user share it on Facebook? Basically I want the user to agree once. Then from there on, whenever the user takes a certain action in my app, share a particular image on Facebook on beha...
android|facebook|facebook-graph-api|share
0
2015-02-26T16:15:26.823Z
2,015
2
16
3
853
2
1,457
42
4
0
false
false
false
false
false
false
zero
28,747,382
Error parsing XML: junk after document element - Building an Icon Pack
<p>I´m currently creating an free Material Design Icon Pack following [this][1] tutorial (I don´t have much experience in coding) in Eclipse. After I added some of my Icons to the applifter.xml and declared them in the iconpack.xml I get this Error when I´m trying to build it:</p> <pre><code>[2015-02-26 16:10:35 - Mat...
I´m currently creating an free Material Design Icon Pack following [this][1] tutorial (I don´t have much experience in coding) in Eclipse. After I added some of my Icons to the applifter.xml and declared them in the iconpack.xml I get this Error when I´m trying to build it: [CODE] It says "the markup in the document fo...
android|xml|eclipse|adt|eclipse-adt
0
2015-02-26T16:15:40.447Z
2,015
2
16
3
540
1
473
70
5
3
true
false
false
false
false
false
zero
28,747,401
android internal memory usage
<p>I am new in Android and I want to find free memory in internal storage. I use two function to find free memory but they show me two different values in long format. I don't know why? Here is my code:</p> <p>1) Result of getTIM() function is 558628864</p> <pre><code>public String getTIM(){ File path = Environme...
I am new in Android and I want to find free memory in internal storage. I use two function to find free memory but they show me two different values in long format. I don't know why? Here is my code: 1) Result of getTIM() function is 558628864 [CODE] 2) Result of ITMStr() function is 914120704 [CODE] Which value is rig...
java|android
1
2015-02-26T16:16:54.027Z
2,015
2
16
3
41
1
323
29
2
2
true
false
false
false
false
false
low