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,648,198
Android how receive more data with onActivityResult
<p>i start my Dialog Activity with <code>startActivityForResult(myIntent, 1);</code> for take back some data. The <code>protected void onActivityResult(int requestCode, int resultCode, Intent data)</code> can take back only one type of data?</p> <p>I need to take back a string(from an EditText) and a resource color(Ba...
i start my Dialog Activity with startActivityForResult(myIntent, 1); for take back some data. The protected void onActivityResult(int requestCode, int resultCode, Intent data) can take back only one type of data? I need to take back a string(from an EditText) and a resource color(Background of a RadioButton) Can i put ...
android|onactivityresult
0
2015-02-21T16:38:29.400Z
2,015
2
16
5
550
1
657
51
2
2
true
false
false
false
false
false
zero
28,648,261
Get View from Listview to String
<p>I have a Listview and I need to get the String values of each row when I click the List view.</p> <p><strong>This is my code</strong></p> <pre><code>public void ListDrwaer() { List&lt;Map&lt;String, String&gt;&gt; employeeList = new ArrayList&lt;Map&lt;String, String&gt;&gt;(); try { JSONObject jsonResponse =...
I have a Listview and I need to get the String values of each row when I click the List view. This is my code [CODE] I Managed to get output like this. [CODE] My Question is how to get output like this [CODE] Thats all. I am new in programming and not know much. Do i need to change my code completly. If it is, How? Tha...
java|android|regex|string|listview
0
2015-02-21T16:43:15.277Z
2,015
2
16
5
139
2
327
32
5
3
true
false
false
false
false
false
zero
28,648,390
Android - how to repeat game
<p>I'm an absolute beginner with Java/Android and for learning purposes, I try to develop a simple game, it's is a very simple number-guessing game :<br><br> 1.the App generates a random number between 1 and 100<br> 2.the player enters a numbers and the App tells the player if his number is too small, too big or correc...
I'm an absolute beginner with Java/Android and for learning purposes, I try to develop a simple game, it's is a very simple number-guessing game : 1.the App generates a random number between 1 and 100 2.the player enters a numbers and the App tells the player if his number is too small, too big or correct. 3.if the ent...
android
0
2015-02-21T16:53:59.043Z
2,015
2
16
5
92
1
796
28
1
1
true
false
false
false
false
false
zero
28,648,408
Parse compound query with location
<p>Is there a way to have a compound query with location in one of the queries. I need to have posting from within 3 miles and also have some posts that can be seen by everyone that have a specific boolean true.</p> <p>The problem is, when I try to do this, it gives me a parse exception saying something like "geo quer...
Is there a way to have a compound query with location in one of the queries. I need to have posting from within 3 miles and also have some posts that can be seen by everyone that have a specific boolean true. The problem is, when I try to do this, it gives me a parse exception saying something like "geo queries not sup...
android|parse-platform
0
2015-02-21T16:56:16.257Z
2,015
2
16
5
87
1
333
34
2
0
false
false
false
false
false
false
zero
28,648,441
Suggestions to show my action-bar in ListActivity
<p>Hello my application takes a picture/video or choose one from gallery and then try to send to a contact, the taking part works fine the problem is to send i have a ListActivity which indeed shows my contacts and i cand do single select o multiple select, when i select 1 or more a Send Image (Button) should appear in...
Hello my application takes a picture/video or choose one from gallery and then try to send to a contact, the taking part works fine the problem is to send i have a ListActivity which indeed shows my contacts and i cand do single select o multiple select, when i select 1 or more a Send Image (Button) should appear in th...
android|listview|android-actionbar
0
2015-02-21T16:58:40.700Z
2,015
2
16
5
571
3
721
49
3
2
true
false
false
false
false
false
zero
28,648,471
Can't fix small error on the GoogleDrive Android API
<p>I have imported everything, compiled all the files in gradle, and implemented methods correctly. But, I can not get this code to work! I keep getting one compile error after compilation. This is my code:</p> <pre><code>package com.example.googleapi; import android.os.Bundle; import android.support.v7.app.ActionBar...
I have imported everything, compiled all the files in gradle, and implemented methods correctly. But, I can not get this code to work! I keep getting one compile error after compilation. This is my code: [CODE] this is the error I get: [CODE] Could someone please tell me why this is happening?
java|android|android-studio|google-drive-api|google-drive-android-api
2
2015-02-21T17:00:17.350Z
2,015
2
17
5
326
2
294
52
5
2
true
false
false
false
false
false
low
28,648,508
how to add if condition (string match) in fragments (Android)
<p>I have a login page, which on correct entry leads me to a page(dashboardactivity.java) with a one time passord(OTP) and a button 'proceed' to go to the home page. now i have the home page where i have used fragments. I have used sliding menu (like in facebook app).</p> <p>For now i just have four options(i.e four f...
I have a login page, which on correct entry leads me to a page(dashboardactivity.java) with a one time passord(OTP) and a button 'proceed' to go to the home page. now i have the home page where i have used fragments. I have used sliding menu (like in facebook app). For now i just have four options(i.e four fragment pag...
android|if-statement|android-fragments|conditional-statements
0
2015-02-21T17:02:55.150Z
2,015
2
17
5
626
0
854
61
4
0
false
true
false
false
false
false
zero
28,648,581
Datagramsocket only sends N-1th packet
<p>In my Android App I'm using DatagramSockets to send messages to a server like this: </p> <pre><code>InetAddress address = InetAddress.getByName(host); byte[] byteMessage = (" " + message + "\r\n##!!##").getBytes(); DatagramPacket packet = new DatagramPacket(byteMessage, byteMessage.length, address, port); Datagr...
In my Android App I'm using DatagramSockets to send messages to a server like this: [CODE] But only every N-1th packet is sent. Meaning if I send 1 packet, nothing is sent. If I send the second, the first one gets send. If I send the third, the second gets send etc etc. EDIT: So after the first comments I a) got rid of...
java|android|datagram
0
2015-02-21T17:08:34.383Z
2,015
2
17
5
94
0
694
38
3
2
true
true
false
false
false
false
zero
28,648,593
How to put and get the current date by using simple database
<p>I'm a beginner and don't know how to insert and get the current date by using database.</p> <p>For an insert into the database, I use a button for adding the information. Here is the full code:</p> <pre><code>public void Badd_Click(View view) { db.execSQL("INSERT INTO Demo (event, venue, amount, textView) ...
I'm a beginner and don't know how to insert and get the current date by using database. For an insert into the database, I use a button for adding the information. Here is the full code: [CODE] Then, for showing the information inserted into the database, I also use a button: [CODE] I have searched for many solutions, ...
android|mysql|database|sqlite|datetime
0
2015-02-21T17:09:10.913Z
2,015
2
17
5
92
1
373
60
5
2
true
false
false
false
false
false
zero
28,648,613
Exporting a writable database to the SD card and importing to Visual Studio
<p>I have an app that exports its database to the SD card of my phone. But when I try to import my database using the Visual Studio app, I get an error saying:</p> <pre><code>An unhandled exception of type 'System.Data.SQLite.SQLiteException' occurred in System.Data.SQLite.dll Additional information: attempt to write...
I have an app that exports its database to the SD card of my phone. But when I try to import my database using the Visual Studio app, I get an error saying: [CODE] Here is the export database function: [CODE] How can I make my database writable/readable by my Visual Studio app?
android|database|visual-studio
0
2015-02-21T17:10:57.543Z
2,015
2
17
5
83
1
278
75
3
2
true
false
false
false
false
false
zero
28,648,639
MVC Web API Call From Android Application
<p>I have an MVC Web API application running in VS 2012. It is connected to a SQL Server Database with some data. I want to output this data to a textview on my android application but I cannot find any good tutorials that does exactly that. If you could guide me in the direction of one that would be much appreciated.<...
I have an MVC Web API application running in VS 2012. It is connected to a SQL Server Database with some data. I want to output this data to a textview on my android application but I cannot find any good tutorials that does exactly that. If you could guide me in the direction of one that would be much appreciated.
android|sql|eclipse|api|model-view-controller
1
2015-02-21T17:13:51.773Z
2,015
2
17
5
1,355
1
316
41
5
0
false
false
false
false
false
false
low
28,648,664
ANDROID Rendering problems NullException
<p>I am a newbie in android programming. I tried to create a stopwatch application, but recently i got an error in the layout. I have been debugging this layout error for 2 days and still cannot find the solution. I do not think this is IDE problem because when i tested it using my phone, the program stopped(error).</p...
I am a newbie in android programming. I tried to create a stopwatch application, but recently i got an error in the layout. I have been debugging this layout error for 2 days and still cannot find the solution. I do not think this is IDE problem because when i tested it using my phone, the program stopped(error). Pleas...
android|xml|android-layout|android-xml
3
2015-02-21T17:15:47.153Z
2,015
2
17
5
3,589
1
1,670
40
4
1
true
false
true
false
false
false
low
28,648,688
Clarification regarding Pending Intent
<p>Say I have an application A that uses an intent to launch an application B's component. Then if I wrap that intent into a pending intent and pass it to an application C, does this mean that app C will launch app B's component, using app A's permissions?</p>
Say I have an application A that uses an intent to launch an application B's component. Then if I wrap that intent into a pending intent and pass it to an application C, does this mean that app C will launch app B's component, using app A's permissions?
android|android-intent|android-pendingintent
0
2015-02-21T17:17:50.273Z
2,015
2
17
5
21
1
253
38
3
0
false
false
false
false
false
false
zero
28,648,690
LocationServices.FusedLocationApi.requestLocationUpdates not setting location
<p>I am trying to get real-time location updates using the <code>GoogleAPIClient</code>. While <code>GoogleAPIClient</code> is connected but the location object is null and it complains that <code>location.getProvider()</code> is null. Can someone please help?</p> <p>This is my code :</p> <pre><code>public void onCon...
I am trying to get real-time location updates using the GoogleAPIClient . While GoogleAPIClient is connected but the location object is null and it complains that location.getProvider() is null. Can someone please help? This is my code : [CODE] The main problem after debugging I found was with: [CODE] This is not setti...
java|android
1
2015-02-21T17:18:02.800Z
2,015
2
17
5
9,340
3
394
77
2
3
true
false
true
false
false
false
low
28,648,751
How do I change/replace fragment on button press?
<p>While learning about fragments, I tried to make a simple program that would change the fragment within the activity on a button click. Though my program compiles without error, I am unable to change the fragment within the FrameLayout on button click. Any advice as to how to change the current fragment with a button...
While learning about fragments, I tried to make a simple program that would change the fragment within the activity on a button click. Though my program compiles without error, I am unable to change the fragment within the FrameLayout on button click. Any advice as to how to change the current fragment with a button cl...
java|android|android-fragments
0
2015-02-21T17:23:09.830Z
2,015
2
17
5
1,945
1
741
49
3
3
true
false
false
false
false
false
zero
28,648,754
Android SMS URI locator
<p>I have made the app to display all text messages that are currently in my inbox in a <code>textview</code>. In order to do this I had to include the URI. I am trying to test other phones that I have but are not registered through my celluar carrier (Version) as they do not support the phones I have as they did not...
I have made the app to display all text messages that are currently in my inbox in a textview . In order to do this I had to include the URI. I am trying to test other phones that I have but are not registered through my celluar carrier (Version) as they do not support the phones I have as they did not come from Verizo...
java|android
0
2015-02-21T17:23:25.480Z
2,015
2
17
5
2,031
1
535
23
2
1
true
false
false
false
false
false
zero
28,648,814
Android Action Bar Logo Home Button
<p>I'm currently developing an android application and i'm looking to make the logo on the left of the action bar a menu button. I have enabled the logo using the code</p> <pre><code>ActionBar actionBar = getActionBar(); actionBar.setHomeButtonEnabled(true); actionBar.setDisplayUseLogoEnabled(true); actionBar.setDispl...
I'm currently developing an android application and i'm looking to make the logo on the left of the action bar a menu button. I have enabled the logo using the code [CODE] from my research I should be able to make this a a menu button by using the code [CODE] in onOptionsItemSelected but this is not working for me. Is ...
android|android-actionbar
0
2015-02-21T17:28:34.670Z
2,015
2
17
5
399
1
425
35
2
2
true
false
false
false
false
false
zero
28,648,997
ExoPlayer - how to play local mp3 file
<p>I'm trying to use ExoPlayer instead of MediaPlayer because it's a common bug that MediaPlayer returns wrong getCurrentPosition() and I need a substitute.</p> <p>But I can't find an info anywhere how to open a local file through the file path to the file same as MediaPlayer's <code>.setDataSource(String filepath)</c...
I'm trying to use ExoPlayer instead of MediaPlayer because it's a common bug that MediaPlayer returns wrong getCurrentPosition() and I need a substitute. But I can't find an info anywhere how to open a local file through the file path to the file same as MediaPlayer's .setDataSource(String filepath) Google doesn't have...
android|exoplayer
14
2015-02-21T17:41:49.933Z
2,015
2
17
5
10,778
4
421
38
2
0
false
false
true
false
true
false
medium
28,649,046
Android: Generate Background shape with specified color bottom
<p>I want to generate background drawable shape which has grey color and bottom is 2dp thick and of black color.</p> <p>I have tried the following</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item&gt; &lt;shape an...
I want to generate background drawable shape which has grey color and bottom is 2dp thick and of black color. I have tried the following [CODE] But unable to generate the desired shape. How can it be done?
android|android-background|android-shape
0
2015-02-21T17:45:15.443Z
2,015
2
17
5
130
1
205
62
3
1
true
false
false
false
false
false
zero
28,649,070
Stop buffering data after some time with Media Player
<p>I'm using Media Player to streamming. Sometimes because the connection is slow or because others factors the buffering is taken too much time to call the <code>onPrepared</code> method. I would like to stop buffering data after some time in Media Player. </p> <p>For example:</p> <pre><code>public void play() { ...
I'm using Media Player to streamming. Sometimes because the connection is slow or because others factors the buffering is taken too much time to call the onPrepared method. I would like to stop buffering data after some time in Media Player. For example: [CODE] What could be the best way to do it?
java|android|media-player
0
2015-02-21T17:48:02.740Z
2,015
2
17
5
632
1
298
53
3
1
true
false
false
false
false
false
zero
28,649,154
Concatenating an Android's string resource with a hard-coded string
<p>I am working in an Android project in which I created a string resource in the <em>values/strings.xml</em> file. Let's say this is the string:</p> <pre><code>&lt;string name="some_text"&gt;HELLO WORLD&lt;/string&gt; </code></pre> <p>I can call this string from anywhere inside my project like so:</p> <pre><code>To...
I am working in an Android project in which I created a string resource in the values/strings.xml file. Let's say this is the string: [CODE] I can call this string from anywhere inside my project like so: [CODE] This generates a Toast with the text "HELLO WORLD" in it. But if I try to concatenate this string with some ...
java|android|string
0
2015-02-21T17:53:34.467Z
2,015
2
17
5
926
1
480
67
3
3
true
false
false
false
false
false
zero
28,649,271
Find rejected call state code in Android
<p>For rejected call in Android what will be the state code from Call logger.</p> <p><a href="http://developer.android.com/reference/android/provider/CallLog.Calls.html" rel="nofollow">http://developer.android.com/reference/android/provider/CallLog.Calls.html</a></p> <p>for INCOMING 1, MISSED 3, OUTGOING 2 are the st...
For rejected call in Android what will be the state code from Call logger. http://developer.android.com/reference/android/provider/CallLog.Calls.html for INCOMING 1, MISSED 3, OUTGOING 2 are the states, [CODE] When i query like this what will be the TYPE for rejected calls?
android
0
2015-02-21T18:02:10.547Z
2,015
2
18
5
258
1
274
40
1
1
true
false
false
false
false
false
zero
28,649,328
Work with Radxa GPIO in Android Shell
<p>I want to control GPIOs in my Radxa Lite, currently I am using below codes to set value of my desired GPIO but it doesn't work:</p> <pre><code>adb shell echo 192 &gt; /sys/class/gpio/export echo "out" &gt; /sys/class/gpio/gpio192/direction echo 0 &gt; /sys/class/gpio/gpio192/value echo 1 &gt; /sys/class/gpio/gpio1...
I want to control GPIOs in my Radxa Lite, currently I am using below codes to set value of my desired GPIO but it doesn't work: [CODE] It doesn't work, I tried with gpio 162 and 198, same results. I am following the tutorial in this page. Even the same codes (making the green LED blink, with gpio 172) does not work! ho...
android|gpio
0
2015-02-21T18:06:51.710Z
2,015
2
18
5
1,049
1
642
37
2
1
true
false
false
false
false
false
zero
28,649,341
Is there a way to only parse EditTexts that is not empty?
<p>I am creating an app that solves for the missing parts of an oblique triangle if it is solvable but I am having a hard time in parsing the data from EditTexts. Here is a sample of my code:</p> <pre><code>Double A, B, C, a, b, c; aa = (EditText)findViewById(R.id.angleA); ab = (EditText)findViewById(R.id.angl...
I am creating an app that solves for the missing parts of an oblique triangle if it is solvable but I am having a hard time in parsing the data from EditTexts. Here is a sample of my code: [CODE] I am wondering if there is a shorter way of coding this.
android
0
2015-02-21T18:07:31.107Z
2,015
2
18
5
69
3
252
57
1
1
true
false
false
false
false
false
zero
28,649,393
How to display another text from the edittext when the button is clicked?
<p>I have here my button onclick listener. I just want to ask if how will I modify my onclick listener everytime the button was clicked? It's like you're going to display again the text from the edittext after displaying the another one. And when the time comes that the layout become full of textview it will automatica...
I have here my button onclick listener. I just want to ask if how will I modify my onclick listener everytime the button was clicked? It's like you're going to display again the text from the edittext after displaying the another one. And when the time comes that the layout become full of textview it will automatically...
android|button
0
2015-02-21T18:11:20.113Z
2,015
2
18
5
40
1
392
73
2
1
true
false
false
false
false
false
zero
28,649,451
Proguard returned with error code 1. See console,'-jar' is not recognized as an internal or external command,
<p>I cant export the android project to apk file</p> <p>[2015-02-21 23:36:24 - GoMax] Proguard returned with error code 1. See console [2015-02-21 23:36:24 - GoMax] '-jar' is not recognized as an internal or external command, [2015-02-21 23:36:24 - GoMax] operable program or batch file.</p> <p>my proguard.cfg</p> <p...
I cant export the android project to apk file [2015-02-21 23:36:24 - GoMax] Proguard returned with error code 1. See console [2015-02-21 23:36:24 - GoMax] '-jar' is not recognized as an internal or external command, [2015-02-21 23:36:24 - GoMax] operable program or batch file. my proguard.cfg [CODE]
java|android|eclipse|proguard
0
2015-02-21T18:16:07.457Z
2,015
2
18
5
215
0
300
109
4
1
true
true
false
false
false
false
zero
28,649,493
Charging for digital goods in Google Docs Addon (apps script) now that Wallet for digital goods is retired?
<p>Any tips for charging for digital goods now that Google Wallet for digital goods is retired? <a href="https://support.google.com/wallet/business/answer/6107573" rel="nofollow">https://support.google.com/wallet/business/answer/6107573</a> Could we use the Chrome Web Store API? <a href="https://developer.chrome.com/we...
Any tips for charging for digital goods now that Google Wallet for digital goods is retired? https://support.google.com/wallet/business/answer/6107573 Could we use the Chrome Web Store API? https://developer.chrome.com/webstore/payments-iap
google-apps-script|android-pay
0
2015-02-21T18:20:07.900Z
2,015
2
18
5
628
1
240
107
2
0
false
false
false
false
false
false
zero
28,649,504
android Gps code toast
<p>I made a simple app to make a toast of the latitude. I ran the code on my nexus 5 and it works but when I run it on the Samsung galaxy s4 it does not show a toast. Why? </p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout...
I made a simple app to make a toast of the latitude. I ran the code on my nexus 5 and it works but when I run it on the Samsung galaxy s4 it does not show a toast. Why? [CODE]
android|android-context|android-toast
0
2015-02-21T18:20:37.123Z
2,015
2
18
5
145
1
175
22
3
1
true
false
false
false
false
false
zero
28,649,545
Click on index layout works only during list scrolling
<p>i created a list with an index on the right side, thanks to <a href="https://github.com/woozzu/IndexableListView" rel="nofollow noreferrer">IndexableListView</a> files. Here is my activity:</p> <pre><code>public class FindByname extends Activity { private Database db = new Database(this); private IndexableL...
i created a list with an index on the right side, thanks to IndexableListView files. Here is my activity: [CODE] I get something like this: The problem is that since my items are clickable the click on the index doesn't work. The letters on the index are clickable only during list scrolling! If i stop scrolling when i ...
android|listview|indexing|scroll
0
2015-02-21T18:24:04.937Z
2,015
2
18
5
332
1
578
54
4
2
true
false
false
false
false
false
zero
28,649,549
Select an id in php script from a DB (Android)
<p>I'm developing an app for android that uses a DB on a server. I wrote some script php to create new rows in some tables and get all elements from a table (using JSON to exchange data between android and mysql). Now I have a problem: i need to select an id from a table and then use this to insert a row in anothere ta...
I'm developing an app for android that uses a DB on a server. I wrote some script php to create new rows in some tables and get all elements from a table (using JSON to exchange data between android and mysql). Now I have a problem: i need to select an id from a table and then use this to insert a row in anothere table...
php|android|mysql
0
2015-02-21T18:24:24.133Z
2,015
2
18
5
656
2
790
46
3
1
true
false
false
false
false
false
zero
28,649,571
Google books api limit per user
<p>We want to build a mobile application that, as part of it's functionality, could search for books using the Google Books API; however since all users will be using the same application's API key to make requests, we believe the 1000 quota will be over pretty quickly. Is there a way to make something like this vi...
We want to build a mobile application that, as part of it's functionality, could search for books using the Google Books API; however since all users will be using the same application's API key to make requests, we believe the 1000 quota will be over pretty quickly. Is there a way to make something like this viable? I...
android|api|limit|google-books
1
2015-02-21T18:26:22.727Z
2,015
2
18
5
390
0
488
31
4
0
false
true
false
false
false
false
low
28,649,576
Configure Theme / Style in Gradle on Android Studio
<p>In the manifest, I have <code>minSdkVersion="8"</code> and <code>targetSdkVersion="19"</code>. I have set these <code>minSdkVersion="8"</code> and <code>targetSdkVersion="19"</code> on Gradle build too.</p> <p>Previously on Eclipse, all the color theme and pop up dialog will appear correctly to targetSdkVersion.</p...
In the manifest, I have minSdkVersion="8" and targetSdkVersion="19" . I have set these minSdkVersion="8" and targetSdkVersion="19" on Gradle build too. Previously on Eclipse, all the color theme and pop up dialog will appear correctly to targetSdkVersion. Now on Android Studio, the color theme and pop up dialog style l...
android|android-gradle-plugin|android-theme
0
2015-02-21T18:26:41.800Z
2,015
2
18
5
398
0
635
51
3
0
false
true
false
false
false
false
zero
28,649,585
Using Open Weather Map APi
<p>I have contacted Open Weather Map support team last week and their forum is dead. Hopefully get some help on here.</p> <p>I am currently building a weather app for android.</p> <p>when I send the lat and long for Birmingham UK which are lat 52.4447615﹕ lon -1.9292798</p> <p>it returns Vietnam as the country with...
I have contacted Open Weather Map support team last week and their forum is dead. Hopefully get some help on here. I am currently building a weather app for android. when I send the lat and long for Birmingham UK which are lat 52.4447615﹕ lon -1.9292798 it returns Vietnam as the country with a completely different lat ...
android|json|weather-api
0
2015-02-21T18:27:47.260Z
2,015
2
18
5
1,357
2
473
26
3
1
true
false
false
false
false
false
zero
28,649,586
How does the GDK android camera example work?
<p>So I'm a little confused about what is going on towards the end of this code (inside <code>processPictureWhenReady()</code>). Before this method is called (within <code>onActivityResult()</code>) we have the image file path... So a file has already been stored. We then have the file declaration <code>pictureFile</co...
So I'm a little confused about what is going on towards the end of this code (inside processPictureWhenReady() ). Before this method is called (within onActivityResult() ) we have the image file path... So a file has already been stored. We then have the file declaration pictureFile using the filepath of the image ( pi...
android|google-glass|google-gdk|abstraction|android-file
0
2015-02-21T18:27:47.467Z
2,015
2
18
5
166
1
560
45
5
1
true
false
false
false
false
false
zero
28,649,613
how I can mange my text in child-listview?
<p>In my application I have a listview and my child-listview is included an ImageButton and a Textview. I have two problems: first problem is that my textview's text appears behind the Imageview.and it doesn't show the whole text cause part of text is behind the imagebutton. and the second one is that , although I used...
In my application I have a listview and my child-listview is included an ImageButton and a Textview. I have two problems: first problem is that my textview's text appears behind the Imageview.and it doesn't show the whole text cause part of text is behind the imagebutton. and the second one is that , although I used ma...
java|android
0
2015-02-21T18:30:02.553Z
2,015
2
18
5
34
1
453
42
2
1
true
false
false
false
false
false
zero
28,649,699
android save bitmap without compression
<p>I'm working on android. I need to save a bitmap without quality lost.</p> <p>I have tried it using <code>compress()</code> method of Bitmap, setting quality to 100. This not works for me, the bitmap loses too much quality. I have tested with JPEG and PNG formats.</p> <p>I have tested to copy the bitmap to a <code>...
I'm working on android. I need to save a bitmap without quality lost. I have tried it using compress() method of Bitmap, setting quality to 100. This not works for me, the bitmap loses too much quality. I have tested with JPEG and PNG formats. I have tested to copy the bitmap to a ByteBuffer , then extract the byte[] a...
java|android|bitmap
5
2015-02-21T18:37:03.770Z
2,015
2
18
5
5,774
2
945
39
3
1
true
false
true
false
false
false
low
28,649,715
Android: OnEditorActionListener is not being fired for EditText
<p>When I press a button, is makes the EditText visible. When I start typing into the EditText, it never prints out anything to the logcat. I am using the built in soft keyboard on a samsung galaxy nexus.</p> <p><code>textbox_group_name</code> is the <code>EditText</code>. Why is the function not being called?</p> <...
When I press a button, is makes the EditText visible. When I start typing into the EditText, it never prints out anything to the logcat. I am using the built in soft keyboard on a samsung galaxy nexus. textbox_group_name is the EditText . Why is the function not being called? [CODE]
android|android-edittext
0
2015-02-21T18:38:09.107Z
2,015
2
18
5
385
0
283
63
2
1
true
true
false
false
false
false
zero
28,649,716
Downloads of .apk files in android browsers from my webapp unsuccessful ( ClientAbortException )
<p>I need to host .apk files, in a website, to be downloaded from android devices browsers. I'm using a servlet on the server side. To request the download,i use this url <a href="http://xxx.xxx.xxx.xxx:8080/root/AppsServlet.do?id=arg" rel="nofollow">http://xxx.xxx.xxx.xxx:8080/root/AppsServlet.do?id=arg</a> which i ty...
I need to host .apk files, in a website, to be downloaded from android devices browsers. I'm using a servlet on the server side. To request the download,i use this url http://xxx.xxx.xxx.xxx:8080/root/AppsServlet.do?id=arg which i typed in the a tag of the download page I have set the content type as vnd.android.packag...
android|download|server|ioexception|apk-expansion-files
0
2015-02-21T18:38:15.893Z
2,015
2
18
5
753
0
5,096
96
5
2
true
true
false
false
false
false
zero
28,649,779
Not overwrite string using drawString on canvas android
<p>I am writing a string on imageview. Right now when the finger is touched on imageview , the previous string is overwritten. I would like to not overwrite the previous string every time the finger is touched on different place in imageview. How can I accomplish that.Thanks</p> <pre><code>imageview.setOnTouchListener...
I am writing a string on imageview. Right now when the finger is touched on imageview , the previous string is overwritten. I would like to not overwrite the previous string every time the finger is touched on different place in imageview. How can I accomplish that.Thanks [CODE]
android
0
2015-02-21T18:42:42.967Z
2,015
2
18
5
43
0
279
55
1
1
true
true
false
false
false
false
zero
28,649,842
how to set an alert dialog to be shown correctly?
<p>I have a button in my app and I want to show a Alert Dialog when I press that button. I tried to do it but didn't work.I'll be tankful if anyone can help me. here's my code </p> <pre><code> cancelBtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { A...
I have a button in my app and I want to show a Alert Dialog when I press that button. I tried to do it but didn't work.I'll be tankful if anyone can help me. here's my code [CODE]
android|android-activity
1
2015-02-21T18:47:49.257Z
2,015
2
18
5
36
1
179
49
2
1
true
false
false
false
false
false
low
28,649,860
Android eclipse - Button drawable issue
<p>first, sorry if my english is not correct, (i'm french) and I've not find the solution for my problem in french websites, so i try here !</p> <p>In my app, I want to show 7 Buttons with graphisms I created with the GIMP. So I use, in the XML code for my Buttons (here for my first button) :</p> <pre><code>android:b...
first, sorry if my english is not correct, (i'm french) and I've not find the solution for my problem in french websites, so i try here ! In my app, I want to show 7 Buttons with graphisms I created with the GIMP. So I use, in the XML code for my Buttons (here for my first button) : [CODE] -change_my_button1 is an XML ...
android|xml|eclipse|button|drawable
0
2015-02-21T18:49:05.940Z
2,015
2
18
5
221
1
1,040
39
5
3
true
false
false
false
false
false
zero
28,649,872
Out Of Memory Error in Android Studio
<p>I'm trying to create my first android app, so I'm really new to android development. I'm trying to make a nice background image for my app. I made an image that is the exact dimensions of the device, but when I try to load it, i get the error "Failed to allocate a 218748 byte allocation with 217220 free bytes and 21...
I'm trying to create my first android app, so I'm really new to android development. I'm trying to make a nice background image for my app. I made an image that is the exact dimensions of the device, but when I try to load it, i get the error "Failed to allocate a 218748 byte allocation with 217220 free bytes and 212KB...
android|bitmap|out-of-memory
0
2015-02-21T18:49:53.437Z
2,015
2
18
5
7,440
2
468
37
3
1
true
false
true
false
false
false
zero
28,649,959
The slower FPS on the faster Android devices
<p>I use <code>SurfaceView</code> for my 2D Android game which I have almost completed. It's based on JBox2D. It is perfectly running on Samsung Galaxy S2, its FPS is 60. It is also running smoothly on HTC Explorer, its FPS is about 54. I thought that if my game was working well in these relatively old devices, it woul...
I use SurfaceView for my 2D Android game which I have almost completed. It's based on JBox2D. It is perfectly running on Samsung Galaxy S2, its FPS is 60. It is also running smoothly on HTC Explorer, its FPS is about 54. I thought that if my game was working well in these relatively old devices, it would be working bet...
android|opengl-es|surfaceview|frame-rate
2
2015-02-21T18:56:33.707Z
2,015
2
18
5
739
1
1,494
44
4
0
false
false
false
false
false
false
low
28,649,983
Android database - curser and adapter
<p>Quite new to Android development, can manage the more simple tasks but never dealt with databases before. I have managed to get so far, however, when trying to output all results from the databases, which has been created, i am only receiving references to the record not the actual values. Debugging shows that the v...
Quite new to Android development, can manage the more simple tasks but never dealt with databases before. I have managed to get so far, however, when trying to output all results from the databases, which has been created, i am only receiving references to the record not the actual values. Debugging shows that the valu...
android
0
2015-02-21T18:58:25.513Z
2,015
2
18
5
69
3
687
37
1
1
true
false
false
false
false
false
zero
28,650,044
Android ImageButton setOnClickListener NullPointerException
<p>I have a java.lang.NullPointerException error with this code:</p> <pre><code>A= (ImageButton) findViewById( R.id.button); A.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setContentView(R.layout.activity_prof); } }); </code></pre> <p>The app works in my...
I have a java.lang.NullPointerException error with this code: [CODE] The app works in my phone, Samsung Galaxy Ace Plus S7500, but it crashes in the emulator with Nexus 5 and Samsung Galaxy S4. Could anyone help me? logcat: [CODE]
java|android|android-studio|nullpointerexception
-3
2015-02-21T19:03:35.747Z
2,015
2
19
5
803
1
230
59
4
2
true
false
false
false
false
true
negative
28,650,095
What is the primary layout if you have many layout files defined in an android app?
<p>In an android project with many layouts how can I find what is the primary one without needing to actually run the app? By "primary" I mean what the user sees when he starts the application in his phone. The "main" UI.</p>
In an android project with many layouts how can I find what is the primary one without needing to actually run the app? By "primary" I mean what the user sees when he starts the application in his phone. The "main" UI.
java|android
-2
2015-02-21T19:09:14.270Z
2,015
2
19
5
43
1
218
83
2
0
false
false
false
false
false
true
negative
28,650,142
onListItemClick not triggering, Override notation creates an error
<p>I am a very new programmer in general, and have been reading "Beginning Android 4 Games Development" in order to be able to make a simple game for the app store. However, when running this code, the onListItemClick does not trigger when I try to click an the first element in my list, and when I try to insert an over...
I am a very new programmer in general, and have been reading "Beginning Android 4 Games Development" in order to be able to make a simple game for the app store. However, when running this code, the onListItemClick does not trigger when I try to click an the first element in my list, and when I try to insert an overrid...
android
0
2015-02-21T19:14:01.830Z
2,015
2
19
5
53
1
508
66
1
1
true
false
false
false
false
false
zero
28,650,220
R Console pumpkin hat android, swirl unable to load courses
<p>Attempting to load swirl courses on android R Console premium. Fails to load course with message "Sorry, but I'm unable to fetch 'R Programming: The basics of programming in | R' right now. Are you sure you have an internet connection?"</p> <p>Steps to recreate problem:</p> <ol> <li>library (swirl)</li> <li>swirl...
Attempting to load swirl courses on android R Console premium. Fails to load course with message "Sorry, but I'm unable to fetch 'R Programming: The basics of programming in | R' right now. Are you sure you have an internet connection?" Steps to recreate problem: library (swirl) swirl () Select option 1 "1: R Programmi...
android|r|swirl
1
2015-02-21T19:21:15.240Z
2,015
2
19
5
77
0
530
59
3
0
false
true
false
false
false
false
low
28,650,221
How to determine orientation of home screen
<p>Is there a way to determine programmatically the orientation of the home screen? I've toyed with the following:</p> <pre><code>WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); int rotation = windowManager.getDefaultDisplay().getRotation(); </code></pre> <p>and</p> <...
Is there a way to determine programmatically the orientation of the home screen? I've toyed with the following: [CODE] and [CODE] But neither seems particularly suitable because, as I understand it, the home screen may well be locked in a particular orientation, even if the screen orientation is changing. Most notably,...
android|screen-orientation|android-appwidget|android-orientation|homescreen
0
2015-02-21T19:21:19.923Z
2,015
2
19
5
193
1
940
43
5
2
true
false
false
false
false
false
zero
28,650,259
How to get the amplitude with specific frequency in FFT?
<p>I am working on an audio analysis project and I get a problem in getting the amplitude with specific frequency in FFT?</p> <p>I have searched in the Internet. Most of FFT working on audio return a single frequency only. Can we let the frequency be the input and get the relative amplitude?</p> <p>Thank you</p>
I am working on an audio analysis project and I get a problem in getting the amplitude with specific frequency in FFT? I have searched in the Internet. Most of FFT working on audio return a single frequency only. Can we let the frequency be the input and get the relative amplitude? Thank you
java|android
2
2015-02-21T19:24:02.490Z
2,015
2
19
5
247
0
292
56
2
0
false
true
false
false
false
false
low
28,650,261
Connect to WinForm server using SignalR?
<p>I have downloaded the official example of <code>SignalR</code> and it works fine when I try to connect from WinFormsClient to WinFormsServer. Everything just fine...</p> <p>I downloaded the SignalR for android and tried to make a connection using the code below, but no success what so ever...I only get <code>Socke...
I have downloaded the official example of SignalR and it works fine when I try to connect from WinFormsClient to WinFormsServer. Everything just fine... I downloaded the SignalR for android and tried to make a connection using the code below, but no success what so ever...I only get SocketTimeoutException . Here is my ...
java|android|signalr|signalr.client
0
2015-02-21T19:24:11.290Z
2,015
2
19
5
242
1
443
40
4
1
true
false
false
false
false
false
zero
28,650,329
Android - get list of cities per country
<p>I need to get the list of cities (in English) as Google Maps/places knows them in order for the user to enter his location (not his current one so I can't use the GPS).</p> <p>I tried using this <a href="https://developers.google.com/places/documentation/autocomplete" rel="nofollow">https://developers.google.com/pl...
I need to get the list of cities (in English) as Google Maps/places knows them in order for the user to enter his location (not his current one so I can't use the GPS). I tried using this https://developers.google.com/places/documentation/autocomplete but it doesn't work smoothly, the user needs to enter several charac...
android|autocomplete|geolocation|google-places-api
0
2015-02-21T19:30:34.470Z
2,015
2
19
5
1,428
1
798
40
4
0
false
false
false
false
false
false
zero
28,650,465
How to check clicked element in custom listview row?
<p>I have a custom ListView and this is it's row :</p> <pre><code>--------------------------- |--[ RelativeLayout 1 ]--| |--[ RelativeLayout 2 ]--| |--[ RelativeLayout 3 ]--| --------------------------- </code></pre> <p>I can use <code>setOnClickListener()</code> method in <code>BaseAdapter</code> for <code>RelativeL...
I have a custom ListView and this is it's row : [CODE] I can use setOnClickListener() method in BaseAdapter for RelativeLayout , but I want to check which RelativeLayout is clicked, in Activity Class , and : [CODE] How can I do this?
android|listview|android-activity
0
2015-02-21T19:43:18.917Z
2,015
2
19
5
74
1
233
52
3
2
true
false
false
false
false
false
zero
28,650,472
Can't disable android.widget.Button
<p>I have a button inside Android widget, declared like this:</p> <pre><code>&lt;Button android:id="@+id/newWorkBtnWidget" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/ts_on_repair"/&gt; </code></pre> <p>Every time I try to enable or disable this button via RemoteVie...
I have a button inside Android widget, declared like this: [CODE] Every time I try to enable or disable this button via RemoteViews I get an error android.widget.RemoteViews$ActionException: view: android.widget.Button can't use method with RemoteViews: setEnabled(boolean) My code: [CODE] How to fix it?
android
7
2015-02-21T19:44:14.097Z
2,015
2
19
5
1,255
2
304
35
1
2
true
false
false
false
false
false
medium
28,650,492
How to set up a custom ListView in a Fragment (Android)?
<p>I have set up 3 swipe view tabs/screens and in one of them I want to display a custom ListView. For some reason, when I reach that particular tab, the app crashes. My code is as follows:</p> <p>Snippet for the swipeview</p> <pre><code>public Fragment getItem(int position) { switch (position) { ca...
I have set up 3 swipe view tabs/screens and in one of them I want to display a custom ListView. For some reason, when I reach that particular tab, the app crashes. My code is as follows: Snippet for the swipeview [CODE] Code for Onstage() --- my class to setup the custom listview [CODE] I cannot extend this to ListFrag...
android|android-layout|android-fragments|android-listview|android-xml
0
2015-02-21T19:45:48.037Z
2,015
2
19
5
8,103
2
488
56
5
6
true
false
true
false
false
false
zero
28,650,650
How to know if line intersects with a circle on google map using location points
<p>Lets say I have the locations (Lat/Lng) A,B and C. Locations A and B are the end points of a line. C is the center of the circle with Radius R. How can I know if Line A-B intersects with the circle (regardless of the number of points or intersections)? I just need to know if there is intersection or not</p> <p>Tha...
Lets say I have the locations (Lat/Lng) A,B and C. Locations A and B are the end points of a line. C is the center of the circle with Radius R. How can I know if Line A-B intersects with the circle (regardless of the number of points or intersections)? I just need to know if there is intersection or not Thank you
android|android-mapview
0
2015-02-21T19:59:31.923Z
2,015
2
19
5
805
0
314
80
2
0
false
true
false
false
false
false
zero
28,650,687
How to create a method and use it in another class?
<p>I'm a new developer in Android and I have a question:</p> <p>I want to create a class <strong>xMetodos.java</strong> that has all my methods and after that, use the method that I just created on class <strong>TelaCadastroRestaurante.java.</strong></p> <p>PS.: I know I have to create an object <strong>xMetodos abc...
I'm a new developer in Android and I have a question: I want to create a class xMetodos.java that has all my methods and after that, use the method that I just created on class TelaCadastroRestaurante.java. PS.: I know I have to create an object xMetodos abc = new xMetodos(); and then call abc.NameOfMethod , or declare...
java|android
-1
2015-02-21T20:03:24.953Z
2,015
2
20
5
41
1
538
51
2
0
false
false
false
false
false
true
negative
28,650,772
"ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE" - when does it gets fired, and what are the consequences?
<h2>Background</h2> <p>The documentation of the "<a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE" rel="nofollow"><strong>ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE</strong></a>" intent action says:</p> <blockquote> <p>Broadcast Action: Resources for...
Background The documentation of the " ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE " intent action says: Broadcast Action: Resources for a set of packages are currently unavailable since the media on which they exist is unavailable. The extra data EXTRA_CHANGED_PACKAGE_LIST contains a list of packages whose availability ch...
android|android-intent|android-package-managers
1
2015-02-21T20:11:23.777Z
2,015
2
20
5
140
0
1,669
100
3
0
false
true
false
false
false
false
low
28,650,930
MinifiedEnabled breaks app in release mode
<p>The issue i'm having is only occuring in release mode. When the process reach an async task the app always stop unexpectedly with this error :</p> <pre><code>02-21 21:07:02.913 13084-13409/com.dimtion.app E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2 Process: com.dimtion.app, PID: 13084 java.lang.RuntimeExceptio...
The issue i'm having is only occuring in release mode. When the process reach an async task the app always stop unexpectedly with this error : [CODE] In the doInBackground() method there is only a Jsoup connection and parsing : [CODE] The matter is that because the code is compressed there is no way to put break points...
android|android-asynctask|jsoup
0
2015-02-21T20:27:45.543Z
2,015
2
20
5
131
1
437
42
3
2
true
false
false
false
false
false
zero
28,650,941
Split a SurfaceView - Android/Java
<p>I'd like to split up a SurfaceView in order to update one part of the screen and not the other one. Is there any way to accomplish that or I need to do two SurfaceView's?</p>
I'd like to split up a SurfaceView in order to update one part of the screen and not the other one. Is there any way to accomplish that or I need to do two SurfaceView's?
java|android|surfaceview
0
2015-02-21T20:28:39.383Z
2,015
2
20
5
225
1
170
34
3
0
false
false
false
false
false
false
zero
28,651,031
Android:Copy database in assets folder null pointer exception
<p>I have read almost all the topics related to my problem in here so please do not say it is duplicate or has been questioned before.</p> <p>I created the tables and the database in Sqlite Expert Personal 3. I copied it in assets folder. Right now I want to tell the android to check if there isnt already a database, ...
I have read almost all the topics related to my problem in here so please do not say it is duplicate or has been questioned before. I created the tables and the database in Sqlite Expert Personal 3. I copied it in assets folder. Right now I want to tell the android to check if there isnt already a database, copy the da...
android|database|sqlite|nullpointerexception
0
2015-02-21T20:37:05.237Z
2,015
2
20
5
146
0
1,242
61
4
4
true
true
false
false
false
false
zero
28,651,038
Android reverse playing pcm file
<p>I have a pcm audio file, or byte array of this file. And i need to reverse it and play it. </p> <p>If i just reverse byte array like this I'm getting noise, so i should reverse only raws or sample raws of pcm. </p> <pre><code>public void reverse(byte[] array) { if (array == null) { return; ...
I have a pcm audio file, or byte array of this file. And i need to reverse it and play it. If i just reverse byte array like this I'm getting noise, so i should reverse only raws or sample raws of pcm. [CODE] I read a lot, but I didn't find any info of how i can do this. Data in byte array stores like this(at oneDrive,...
android|audio|bytearray|pcm
3
2015-02-21T20:37:37.340Z
2,015
2
20
5
683
1
411
32
4
1
true
false
false
false
false
false
low
28,651,102
Make action bar bigger
<p>I have the following gradle <code>AppCompat</code> and activity definitions:</p> <pre><code>compile 'com.android.support:appcompat-v7:21.0.3' &lt;activity android:name="MainActivity" android:label="@string/app_name" android:hardwareAccelerated="true" android:screenOrientation="portrait" android...
I have the following gradle AppCompat and activity definitions: [CODE] Action bar currently looks like this: I'd like to make title and subtitle fonts bigger and also adjust an image size, how can I do that? After some searching I've found out I should start with defining a custom Toolbar in activity XML like this: [CO...
android|android-toolbar|android-appcompat
0
2015-02-21T20:42:04.737Z
2,015
2
20
5
1,322
1
730
22
3
3
true
false
false
false
false
false
zero
28,651,107
Difference in hours of two Calendar objects
<p>I have two <code>Calendar</code> objects, and I want to check what is the difference between them, in hours.</p> <p>Here is the first <code>Calendar</code></p> <pre><code>Calendar c1 = Calendar.getInstance(); </code></pre> <p>And the second <code>Calendar</code></p> <pre><code>Calendar c2 = Calendar.getInstance(...
I have two Calendar objects, and I want to check what is the difference between them, in hours. Here is the first Calendar [CODE] And the second Calendar [CODE] Now lets say that c1.getTime() is: Fri Feb 20 20:00:00 CET 2015 and c2.getTime() is Sun Feb 22 20:00:00 CET 2015 . So is there any code that would return the d...
java|android|calendar|simpledateformat
13
2015-02-21T20:42:33.500Z
2,015
2
20
5
9,322
2
406
43
4
2
true
false
true
false
true
false
medium
28,651,151
How can I send data to an already running thread with a loop in python?
<p>So here I got a question! How can I send and receive data from a simple thread who's job is to keep playing songs!? I want a way to send data to the thread to stop iterating a list of songs. It can be a file descriptor, variable(global), properties/options, database entry, or even an event.</p> <p>Here is the code:...
So here I got a question! How can I send and receive data from a simple thread who's job is to keep playing songs!? I want a way to send data to the thread to stop iterating a list of songs. It can be a file descriptor, variable(global), properties/options, database entry, or even an event. Here is the code: [CODE] I m...
android|python|multithreading
0
2015-02-21T20:47:12.587Z
2,015
2
20
5
69
0
677
71
3
1
true
true
false
false
false
false
zero
28,651,169
Fatal signal 11 (SIGSEGV), code 1, fault addr (RenderThread)
<p>I'm trying to stop a service when an element attached to the windowmanager gets double clicked.</p> <pre><code> @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: // Get current ...
I'm trying to stop a service when an element attached to the windowmanager gets double clicked. [CODE] But as soon as the element gets double clicked the app crashes with following in logcat: swapBuffers encountered EGL_BAD_SURFACE on 0xb8f18fb0, halting rendering... 02-22 01:38:26.189 7191-7213/fr.anthonyfernandez.flo...
android|service|crash
4
2015-02-21T20:48:45.543Z
2,015
2
20
5
5,893
0
961
60
3
1
true
true
true
false
false
false
low
28,651,231
Context Menu doesn't work with there is Switch in row layout
<p>I have a ListView in my fragment with custom adapter (extended from ArrayAdapter). list.xml:</p> <pre><code>... &lt;ListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; ... </code></pre> <p>rowlayout.xml:</p> <pre><code>&lt;?xml version=...
I have a ListView in my fragment with custom adapter (extended from ArrayAdapter). list.xml: [CODE] rowlayout.xml: [CODE] fragment.java: [CODE] If there isn't switch in rowlayout than all work fine. But if it added than nothing happened when click on row. How to solve this problem and use context menu and switch at the...
android|android-contextmenu
0
2015-02-21T20:55:50.320Z
2,015
2
20
5
146
1
331
60
2
3
true
false
false
false
false
false
zero
28,651,290
Dragging a sprite in Android
<p>I'm simply trying to drag a sprite around using my finger. I'm doing this by detecting the distance the finger that is touching the screen has moved by and then moving the sprite by the same amount.</p> <p>This is an openGL ES 2.0 app, so my rendering and logic updating takes place on my GL Rendering thread, and o...
I'm simply trying to drag a sprite around using my finger. I'm doing this by detecting the distance the finger that is touching the screen has moved by and then moving the sprite by the same amount. This is an openGL ES 2.0 app, so my rendering and logic updating takes place on my GL Rendering thread, and obviously tou...
android|scroll|touch-event|touchscreen
0
2015-02-21T21:03:19.880Z
2,015
2
21
5
197
1
2,370
28
4
3
true
false
false
false
false
false
zero
28,651,312
Element LinearLayout doesn't have required attribute layout_height
<p>Each TextView and Button as well as the LinearLayout tag complain</p> <pre><code>'layout_height' attribute should be defined 'layout_width' attribute should be defined </code></pre> <p>This is my activity_main.xml:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/rest/android" andro...
Each TextView and Button as well as the LinearLayout tag complain [CODE] This is my activity_main.xml: [CODE] I'm running Android Studio 1.1.0
android|android-layout
3
2015-02-21T21:06:11.213Z
2,015
2
21
5
3,123
1
142
66
2
2
true
false
true
false
false
false
low
28,651,333
Breakpoint on exception seems broken in Android Studio
<p>According to <a href="http://www.restlessprogrammer.com/2013/09/triggered-breakpoints-in-android-studio.html" rel="nofollow noreferrer">this</a> and <a href="https://stackoverflow.com/questions/24718958/android-studio-ide-break-on-exception">this</a>, it should be easy to have Android Studio break on an uncaught exc...
According to this and this , it should be easy to have Android Studio break on an uncaught exception. However, whatever I try, I seem not to get it working. I set the "Class Filter" on my Activity, but the app just crashes on an uncaught exception, no breakpoint triggered.
exception|android-studio|breakpoints
1
2015-02-21T21:08:08.237Z
2,015
2
21
5
934
2
273
54
3
0
false
false
false
false
false
false
low
28,651,418
How to add floating action button on top of scrollview
<p>I have a floating action button that I would like to add on top of a scrollview so that the button stays, even if you scroll. I want it on the top of the scrollview and in the bottom right corner of the screen. What combination of views do I need to use to accomplish this?</p> <p>Here is the xml file:</p> <pre><co...
I have a floating action button that I would like to add on top of a scrollview so that the button stays, even if you scroll. I want it on the top of the scrollview and in the bottom right corner of the screen. What combination of views do I need to use to accomplish this? Here is the xml file: [CODE]
android|user-interface|android-studio|scrollview|floating-action-button
18
2015-02-21T21:15:24.223Z
2,015
2
21
5
28,901
4
302
54
5
1
true
false
true
true
true
false
medium
28,651,474
Injecting field into module using dagger
<p>I am trying to inject my android context from one module into another. This is my code so far:</p> <p>UserProfileModule.java</p> <pre><code>@Module( library = true ) public class UserProfileModule { @Inject Context _context; @Provides public AccountUtils.UserProfile provideUserProfile() { ...
I am trying to inject my android context from one module into another. This is my code so far: UserProfileModule.java [CODE] RootModule.java [CODE] Anytime it tries to get the user profile it fails saying the object is null.] EDIT: PizzaApplication.java [CODE] MainActivity.java [CODE]
java|android|dagger
4
2015-02-21T21:20:19.330Z
2,015
2
21
5
6,100
2
285
40
3
4
true
false
true
false
false
false
low
28,651,487
xml drawable not being drawn properly in android
<p>I want a non-veg icon to drawn using drawable xml resource in android. I'm using Android Studio 1.1.0</p> <p>The preview is being shown perfectly in my android studio. but it's not beind displayed correctly in my devices. Please help me.</p> <p><strong>Here is what I want</strong></p> <p><img src="https://i.stack...
I want a non-veg icon to drawn using drawable xml resource in android. I'm using Android Studio 1.1.0 The preview is being shown perfectly in my android studio. but it's not beind displayed correctly in my devices. Please help me. Here is what I want Here is what I'm getting Android 5.0.0 Android 4.4.4 Android 4.3 Here...
android|xml|android-drawable
1
2015-02-21T21:21:37.740Z
2,015
2
21
5
408
1
337
48
3
1
true
false
false
false
false
false
low
28,651,509
Unicode in java to call
<p>Here below is a sample of my code, so what i am trying to do is to place a call using the number below. when i run the application it shows me sent, then after it places a call to *155 instead of *155#.</p> <p>Thanks in advance.</p> <pre><code>String tel = "tel:" + '\u002A' + 155 + '\u0023'; Intent callIntent = ne...
Here below is a sample of my code, so what i am trying to do is to place a call using the number below. when i run the application it shows me sent, then after it places a call to *155 instead of *155#. Thanks in advance. [CODE]
java|android|unicode|urlencode|phone-number
1
2015-02-21T21:23:54.820Z
2,015
2
21
5
115
1
228
23
5
1
true
false
false
false
false
false
low
28,651,538
quick start parse not working on android
<p>I'm really new at using android studio and parse. I was making an app and using parse quick start to store data but whenever i run the app, the log cat shows this message.</p> <blockquote> <p>02-21 09:32:58.440 2492-2492/com.parse.starter D/CrashReporting﹕ Generating report file for crash 02-21 09:32:58.560<...
I'm really new at using android studio and parse. I was making an app and using parse quick start to store data but whenever i run the app, the log cat shows this message. 02-21 09:32:58.440 2492-2492/com.parse.starter D/CrashReporting﹕ Generating report file for crash 02-21 09:32:58.560 2492-2492/com.parse.starter D/C...
android|parse-platform
-1
2015-02-21T21:26:08.413Z
2,015
2
21
5
707
3
3,463
40
2
2
true
false
false
false
false
true
negative
28,651,553
Android dalvik errors with Cordova 3.7 plugin, Good Dynamics
<p>working on a project running API 19, Cordova 3.7 plugin on Android.</p> <p>Seeing these messages in logcat but not sure what could be cauing them. I have never seen these kinds of errors in regular Java dev.</p> <p>Can someone shed some light what some of these errors could mean and how I could possible correct th...
working on a project running API 19, Cordova 3.7 plugin on Android. Seeing these messages in logcat but not sure what could be cauing them. I have never seen these kinds of errors in regular Java dev. Can someone shed some light what some of these errors could mean and how I could possible correct them?? Thank you much...
java|android|sqlite|cordova|good-dynamics
1
2015-02-21T21:27:38.833Z
2,015
2
21
5
153
0
335
60
5
1
true
true
false
false
false
false
low
28,651,699
Sharing Bluetooth connectivity over wifi
<p>My computer does not have any Bluetooth capability, however it has WI-Fi capability. My phone has both.</p> <p>I was asking myself if there is anyway to "stream" Bluetooth over WI-Fi? Thanks!</p>
My computer does not have any Bluetooth capability, however it has WI-Fi capability. My phone has both. I was asking myself if there is anyway to "stream" Bluetooth over WI-Fi? Thanks!
android|bluetooth|linux-kernel|wifi|sharing
0
2015-02-21T21:41:13.887Z
2,015
2
21
5
64
2
184
40
5
0
false
false
false
false
false
false
zero
28,651,713
Android Rounded Bitmap not ANTI-ALIASED, nor filtered. Resulting image with pixelated margins (Screenshot provided)
<p>I am making an app that among functionalities, it takes an image from Facebook through URL, decodes it through Bitmap, then rounds the Bitmap in a circle, and puts it in an imageView.</p> <p>The problem is that it continues to be pixelated, as shown here:</p> <p><img src="https://i.stack.imgur.com/Y2lCL.png" alt="...
I am making an app that among functionalities, it takes an image from Facebook through URL, decodes it through Bitmap, then rounds the Bitmap in a circle, and puts it in an imageView. The problem is that it continues to be pixelated, as shown here: Here is my code: Layout of the imageView: [CODE] Here is rounding bitma...
java|android|canvas|bitmap
2
2015-02-21T21:43:17.283Z
2,015
2
21
5
289
1
593
115
4
2
true
false
false
false
false
false
low
28,651,761
Choice Mode in a RecyclerView?
<p>I'm trying to figure out how to achieve the same effect of </p> <p><code>mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);</code></p> <p>in a RecyclerView implementation. Please help.</p>
I'm trying to figure out how to achieve the same effect of mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in a RecyclerView implementation. Please help.
android|listview|android-recyclerview|android-checkbox
28
2015-02-21T21:48:31.863Z
2,015
2
21
5
25,424
3
159
30
4
0
false
false
true
true
true
false
high
28,651,764
I am creating a simple reverse string android application, please confirm me whether the way I'm proceeding is right or not
<pre><code>package com.example.desktop.mirror; import android.content.Intent; import android.provider.Settings; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.view.MenuItem; import android.view.MenuItem; import android.widge...
[CODE] I'm new to both Java and Android, so I can not be more specific. My question might be a silly one, since it's a simple one to be implemented in Java, but coming to implementation on Android, i'm struggling a lot with the code.
java|android
-4
2015-02-21T21:48:55.030Z
2,015
2
21
5
8,972
3
233
123
2
1
true
false
true
false
false
true
negative
28,651,823
Can't call method in another class - ANDROID
<p>recently i opened a question about how to call a method in another class... ok, i did call the example method, but the method i really want to call isn't working:</p> <p>I have 2 classes: </p> <p>I want to call the method here: <code>TelaCadastroRestaurante.java</code></p> <p>I have the method here: <code>Metodos...
recently i opened a question about how to call a method in another class... ok, i did call the example method, but the method i really want to call isn't working: I have 2 classes: I want to call the method here: TelaCadastroRestaurante.java I have the method here: Metodos.java http://i.imgur.com/JVMjz8J.png http://i.i...
java|android
-3
2015-02-21T21:55:57.687Z
2,015
2
21
5
329
2
456
44
2
2
true
false
false
false
false
true
negative
28,651,830
Java boolean array instantiating as null
<p>I'm creating a boolean array pre-populated with false values. I understand that I don't have to declare false values as they are automatically assigned however I've been trying different methods to try and solve the problem.</p> <pre><code>package com.bignerdranch.android.geoquiz; import android.app.ActionBar; imp...
I'm creating a boolean array pre-populated with false values. I understand that I don't have to declare false values as they are automatically assigned however I've been trying different methods to try and solve the problem. [CODE] I have a breakpoint on the last line, and when the program breaks here the mCheatedAnswe...
java|android|boolean
0
2015-02-21T21:57:03.697Z
2,015
2
21
5
233
1
548
40
3
1
true
false
false
false
false
false
zero
28,651,833
Chromecast - Album Art doesn't change
<p>I'm using a styled receiver for my chromecast receiver. When I select my first song to cast, the song and album art correctly shows up on the chromecast. However, when I changed the song, the album art stays the same. The song correctly changes, but the album art will not change. I upload the song and album art to a...
I'm using a styled receiver for my chromecast receiver. When I select my first song to cast, the song and album art correctly shows up on the chromecast. However, when I changed the song, the album art stays the same. The song correctly changes, but the album art will not change. I upload the song and album art to a lo...
android|chromecast
0
2015-02-21T21:57:53.290Z
2,015
2
21
5
135
0
805
37
2
1
true
true
false
false
false
false
zero
28,651,857
Where is @drawable/new_logo defined?
<p>I see in a project <code>android:src="@drawable/new_logo"/&gt;</code> but I can not see where this <code>new_logo</code> is defined. By googling I see this pattern in other examples e.g. <a href="https://stackoverflow.com/questions/7571917/adding-image-to-toast">add image to toast</a> in the accepted answer.<br> Wh...
I see in a project android:src="@drawable/new_logo"/> but I can not see where this new_logo is defined. By googling I see this pattern in other examples e.g. add image to toast in the accepted answer. What is this new_logo? I tried to copy paste this to a new project but I get: error: Error: No resource found that matc...
java|android
0
2015-02-21T22:01:23.540Z
2,015
2
22
5
39
1
597
36
2
0
false
false
false
false
false
false
zero
28,651,923
using SIFT/SURF for feature extraction using opencv on android using Android Studio
<p>I'm working on a feature extraction/matching app using opencv on android using android studio .. I followed <a href="https://stackoverflow.com/questions/17767557/how-to-use-opencv-in-android-studio-using-gradle-build-tool/22427267#22427267">these steps</a> for using native code in order to use SIFT or SURF algorithm...
I'm working on a feature extraction/matching app using opencv on android using android studio .. I followed these steps for using native code in order to use SIFT or SURF algorithms.. I have copied the folders (armeabi, armeabi-v7a, ...etc) to the jniLibs folder and here is my code for the main methods [CODE] when I co...
android|opencv|native|sift|surf
0
2015-02-21T22:07:37.117Z
2,015
2
22
5
2,680
2
481
83
5
1
true
false
true
false
false
false
zero
28,652,027
How to fix Permission Denial from Yahoo Mail Provider when opening an attachment?
<p>My application accepts certain files to be opened with the application but I've seen a couple crashes recently that say </p> <pre><code>java.lang.RuntimeException: Unable to start activity java.lang.SecurityException: Permission Denial: opening provider com.yahoo.mobile.client.android.mail.provider.MailProvider fr...
My application accepts certain files to be opened with the application but I've seen a couple crashes recently that say [CODE] In my AndroidManifest.XML I have the following permissions [CODE] Is there any permission that I might be missing for specifically Yahoo? I'm getting the feeling that it's specifically blocked....
android|permissions|android-securityexception
1
2015-02-21T22:16:10.307Z
2,015
2
22
5
1,390
2
414
81
3
2
true
false
false
false
false
false
low
28,652,076
Detect if another app is running
<p>Is it possible on Android to detect if another app is running? I need to trigger some action in my app when a Map application (like Waze or Google Maps) is running.</p>
Is it possible on Android to detect if another app is running? I need to trigger some action in my app when a Map application (like Waze or Google Maps) is running.
android|activity-manager|activity-monitor
2
2015-02-21T22:21:26.333Z
2,015
2
22
5
4,598
1
164
32
3
0
false
false
true
false
false
false
low
28,652,113
where can i download mxquery-android.jar from?
<p>I would like to download mxquery for android - the jar that contains the package "ch.ethz.mxquery.android.MXQueryService" and other android packages. I tried but the links within mxquery.org do not work. mxquery.org does have mxquery.jar which is the regular jar and does not contain android specific packages. mxquer...
I would like to download mxquery for android - the jar that contains the package "ch.ethz.mxquery.android.MXQueryService" and other android packages. I tried but the links within mxquery.org do not work. mxquery.org does have mxquery.jar which is the regular jar and does not contain android specific packages. mxquery.o...
android
-1
2015-02-21T22:25:39.143Z
2,015
2
22
5
59
1
639
46
1
0
false
false
false
false
false
true
negative
28,652,115
Google Map API v3: Remove Default start/end markers
<p>So I am building a route using the GoogleMap API v3, I have custom markers in place, with a route going between the two. However, the routes and markers are considered separate from a programmatic standpoint. Everything is going well, except for: <img src="https://i.stack.imgur.com/HXSeH.jpg" alt="this:"> I'd like t...
So I am building a route using the GoogleMap API v3, I have custom markers in place, with a route going between the two. However, the routes and markers are considered separate from a programmatic standpoint. Everything is going well, except for: I'd like to remove the start A and end B markers. Any ideas and keep the ...
javascript|android|google-maps|google-maps-api-3
1
2015-02-21T22:25:49.677Z
2,015
2
22
5
887
1
346
51
4
0
false
false
false
false
false
false
low
28,652,131
Getting java.lang.UnsupportedOperationException: JsonNull reports
<p>I am getting crash report from some users.Report:</p> <pre><code>java.lang.UnsupportedOperationException: JsonNull at com.google.gson.JsonElement.getAsString(JsonElement.java:191) at com.impact.ribony.LoginActivity$1.onCompleted(LoginActivity.java:115) at com.impact.ribony.LoginActivity$1.onCompleted(LoginActivity....
I am getting crash report from some users.Report: [CODE] My code: [CODE] I am sure my anonid is not null.Why I am getting this reports ?
java|android
2
2015-02-21T22:27:18.340Z
2,015
2
22
5
9,549
2
136
65
2
2
true
false
true
false
false
false
low
28,652,136
Does rerunning your application in android studio restart services?
<p>I'm building an android app. It includes an intent service to do some background work. Does rerunning the app from android studio (on a phone) also restart the service? In other words, can I be sure to be using the most recent version of the service?</p>
I'm building an android app. It includes an intent service to do some background work. Does rerunning the app from android studio (on a phone) also restart the service? In other words, can I be sure to be using the most recent version of the service?
java|android
0
2015-02-21T22:27:45.617Z
2,015
2
22
5
586
2
250
67
2
0
false
false
false
false
false
false
zero
28,652,180
Save pictures from Android to Windows PC in DelphiXE5
<p>I have an <strong>Android</strong> application built in <strong>DelphiXE5</strong> which captures <strong>pictures</strong> from camera using the StandardAction <strong>TTakePhotoFromCameraAction</strong> of <strong>TActionList</strong>:</p> <pre><code>procedure TF_EdCamara.TakePhotoFromCameraAction1DidFinishTaking...
I have an Android application built in DelphiXE5 which captures pictures from camera using the StandardAction TTakePhotoFromCameraAction of TActionList : [CODE] Now, i need to store that Image from Android to a Windows PC via wireless. ¿How can I achieve this from DelphiXE5 ? Note: My app also uses DataSnap/Rest techno...
android|windows|camera|delphi-xe5|datasnap
0
2015-02-21T22:32:53.007Z
2,015
2
22
5
113
1
385
53
5
1
true
false
false
false
false
false
zero
28,652,249
Imported Android Studio Project no Build.gradle or settings.gradle file
<p>I have imported an Android Studio project into Android Studio yet the error appears: </p> <pre><code>Error:(1, 0) Plugin with id 'android' not found. </code></pre> <p>It appears on import that the Build.gradle file for the project and the settings.gradle file were not created:</p> <p><img src="https://i.stack.img...
I have imported an Android Studio project into Android Studio yet the error appears: [CODE] It appears on import that the Build.gradle file for the project and the settings.gradle file were not created: as it should be given my other app: There is not a tutorial or source for creating these files, how can I these files...
android|android-studio|android-gradle-plugin
4
2015-02-21T22:41:05.333Z
2,015
2
22
5
3,478
0
358
71
3
1
true
true
true
false
false
false
low
28,652,277
How do I text an image (MMS) in one of my project's folders?
<p>Say I have an image at <code>app/images/image.png</code>.</p> <p>How do I text that image to another phone?</p> <p>In other words, how do I send an MMS?</p> <p>I've written some SMS-sending code, but it doesn't work when I replace "Sms" with "Mms":</p> <pre><code> try { SmsManager smsManager =...
Say I have an image at app/images/image.png . How do I text that image to another phone? In other words, how do I send an MMS? I've written some SMS-sending code, but it doesn't work when I replace "Sms" with "Mms": [CODE]
java|android|mms
3
2015-02-21T22:44:56.893Z
2,015
2
22
5
109
0
222
60
3
1
true
true
false
false
false
false
low
28,652,299
How to create Media Player in runnable thread
<p>I want to create a Media Player in Runnable Thread but while creating i am getting this warning message <strong>"Should have subtitle controller already set error (-19, 0)"</strong>. I don't know actually what is this warning message.</p> <p>I am posting my Code please kindly go through it and suggest some solution...
I want to create a Media Player in Runnable Thread but while creating i am getting this warning message "Should have subtitle controller already set error (-19, 0)" . I don't know actually what is this warning message. I am posting my Code please kindly go through it and suggest some solution. [CODE]
android|media-player|runnable
4
2015-02-21T22:47:10.123Z
2,015
2
22
5
499
0
301
45
3
1
true
true
false
false
false
false
low
28,652,349
Extend a custom ArrayAdapter
<p>I have a custom <code>ArrayAdapter</code> that is used to place icons within lists</p> <pre><code>public class IconArrayAdapter extends ArrayAdapter&lt;IconListItem&gt; { protected int resource; public IconArrayAdapter(Context context, int resource, ArrayList&lt;IconListItem&gt; items) { super(con...
I have a custom ArrayAdapter that is used to place icons within lists [CODE] This is a generic adapter I use in multiple part of my app that I need to extend a little bit in one spot for a more specific purpose. I started building the extended class but immediatley ran into a problem [CODE] Despite TeamListItem extendi...
java|android|android-arrayadapter
0
2015-02-21T22:54:33.613Z
2,015
2
22
5
491
3
711
28
3
3
true
false
false
false
false
false
zero
28,652,438
Rename Android Studio package error: Not a valid identifier name
<p>Renaming from com.example.test to org.example.test: I have only found examples of changing the <em>example</em> part of this, but I need to change the <em>com</em> one. </p> <p>I have tried Refactor then select Rename package, but I get the message <em>Not a valid identifier name</em> when I enter <em>org.example.t...
Renaming from com.example.test to org.example.test: I have only found examples of changing the example part of this, but I need to change the com one. I have tried Refactor then select Rename package, but I get the message Not a valid identifier name when I enter org.example.test. Does anyone know the correct way?
android
3
2015-02-21T23:04:31.923Z
2,015
2
23
5
4,759
2
315
64
1
0
false
false
true
false
false
false
low
28,652,453
How to Create Text Link in Pure XML Without setMovementMethod()?
<p>I want to link to an out-of-app resource on Android with pure HTML in XML without having to call setMovementMethod. Setting:</p> <pre><code> &lt;TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/the_message" ...
I want to link to an out-of-app resource on Android with pure HTML in XML without having to call setMovementMethod. Setting: [CODE] Does not work. Help?
java|android|xml|textview
4
2015-02-21T23:06:54.437Z
2,015
2
23
5
268
0
152
64
4
1
true
true
false
false
false
false
low
28,652,513
retrieve value from second activity
<p>In my MainActivity, I launch a second activity:</p> <pre><code> Button button = (Button) findViewById(R.id.btnPush); button.setOnClickListener(new View.OnClickListener(){ public void onClick(View view){ Intent nowStart = new Intent(getApplicationContext(), AddPillScheduleActivity...
In my MainActivity, I launch a second activity: [CODE] Then inside my Second Activity, I would like to return a value back to the main activity. [CODE] That seems to execute fine, but back in my MainActivity, I would like to grab the value. This is where I am having trouble. My debugger never stops on my onActivityResu...
java|android
1
2015-02-21T23:14:05.233Z
2,015
2
23
5
30
2
381
35
2
3
true
false
false
false
false
false
low
28,652,528
I have no idea what's wrong with my code, but my program keeps crashing
<p>There are no syntax errors, and logically, everything seems fine to me. I've been trying to debug this code for days and I don't understand why it's crashing. I have an if/else section of code that does the majority of the work, and this is the only section that it keeps crashing in, the others work fine.</p> <pre>...
There are no syntax errors, and logically, everything seems fine to me. I've been trying to debug this code for days and I don't understand why it's crashing. I have an if/else section of code that does the majority of the work, and this is the only section that it keeps crashing in, the others work fine. [CODE] What t...
java|android
-2
2015-02-21T23:15:23.807Z
2,015
2
23
5
67
1
462
71
2
1
true
false
false
false
false
true
negative