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,720,200
Make ArrayList<ArrayList<Integer>> parcelable
<p>I am trying to make the following Class parcelable. Usually, I do this by using the parcelabler website. But the website seems to have problems with the ArrayList> part. Does anybody know how to do it properly? Thanks in advance!</p> <pre><code>package com.example.stoos.data; import java.util.ArrayList; import an...
I am trying to make the following Class parcelable. Usually, I do this by using the parcelabler website. But the website seems to have problems with the ArrayList> part. Does anybody know how to do it properly? Thanks in advance! [CODE]
android|parcelable
1
2015-02-25T13:25:52.647Z
2,015
2
13
2
2,821
3
236
45
2
1
true
false
true
false
false
false
low
28,720,229
How associated Pending Intent with method
<p>I try to work with pending intent, I read documentation, examples on the net and questions/answers here. But still I'm confused about possibilities of pending intent. All examples I found work with NotificationManager, AlarmManager, Home Screen AppWidgetManager. </p> <p><strong>Is there method/operation how to ass...
I try to work with pending intent, I read documentation, examples on the net and questions/answers here. But still I'm confused about possibilities of pending intent. All examples I found work with NotificationManager, AlarmManager, Home Screen AppWidgetManager. Is there method/operation how to associated own code(func...
android|android-intent|android-pendingintent
0
2015-02-25T13:26:56.813Z
2,015
2
13
2
745
1
758
41
3
4
true
false
false
false
false
false
zero
28,720,233
Android Emulator is (very) distorted
<p>I guess a picture explains more than 1000 words...</p> <p><img src="https://i.stack.imgur.com/bfjy3.png" alt="enter image description here"></p> <p>This is the screen I get after booting - but the boot animation itself is already distorted. It's possible to interact with the emulator at the elements usual position...
I guess a picture explains more than 1000 words... This is the screen I get after booting - but the boot animation itself is already distorted. It's possible to interact with the emulator at the elements usual positions - in the screenshot, for example, if I'm clicking in the middle of the lower bar, the home button ge...
android|emulation
0
2015-02-25T13:27:06.267Z
2,015
2
13
2
758
1
794
36
2
1
true
false
false
false
false
false
zero
28,720,260
Error: Could not get the Java version. Is Java installed?
<p>I run Appium server:</p> <pre><code>➜ ~ appium info: Welcome to Appium v1.3.5 (REV a124a15677e26b33db16e81c4b3b34d9c6b8cac9) info: Appium REST http interface listener started on 0.0.0.0:4723 info: Console LogLevel: debug info: --&gt; POST /wd/hub/session {"desiredCapabilities":{"appPackage":"com.grindrapp.and...
I run Appium server: [CODE] I try to run this code to post to Appium server: [CODE] but as you can see I get this error: [CODE] how can I fix this? I'm trying to automatically open an app which i downloaded from the google play and I don't have its apk.
android|testing|ui-automation|appium
0
2015-02-25T13:28:38.400Z
2,015
2
13
2
1,820
3
253
57
4
3
true
false
false
false
false
false
zero
28,720,378
Play a song onActivityResult using mediaplayer from mediaStore
<p>I want to play a song after picking it from MediaStore.Audio. I get the URi and also test after toasting it. but it is not playing using mediaplayer. </p> <pre><code> Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI); startActivityForResult(intent, 1234);...
I want to play a song after picking it from MediaStore.Audio. I get the URi and also test after toasting it. but it is not playing using mediaplayer. [CODE] And on ActivityResult [CODE] And i also try to getRealPath using [CODE]
android|mediastore
1
2015-02-25T13:34:23.650Z
2,015
2
13
2
530
1
228
62
2
3
true
false
false
false
false
false
low
28,720,428
Is there an alternative to HTML's classes in Android layouts?
<p>In web development, it is possible to set a <code>class</code> attribute to some HTML elements (e.g. buttons), so that you can couple some commands to the elements that have this class only (e.g. js listeners, css styles etc..). </p> <p>I want to do something similar in Android. I have a couple of Buttons and I wan...
In web development, it is possible to set a class attribute to some HTML elements (e.g. buttons), so that you can couple some commands to the elements that have this class only (e.g. js listeners, css styles etc..). I want to do something similar in Android. I have a couple of Buttons and I want to set some listeners t...
android|android-layout
1
2015-02-25T13:36:31.683Z
2,015
2
13
2
235
2
846
61
2
2
true
false
false
false
false
false
low
28,720,436
Android webview login
<p>I'm new to android programming and I'm trying to build an android application for my web site. </p> <p>The web site consists of the web server and a mysql database and has a user login system. I wanted to avoid messing with php and json to build the authentication system in my app so I thought I could use a webview...
I'm new to android programming and I'm trying to build an android application for my web site. The web site consists of the web server and a mysql database and has a user login system. I wanted to avoid messing with php and json to build the authentication system in my app so I thought I could use a webview instead. I'...
android|webview
0
2015-02-25T13:36:48.617Z
2,015
2
13
2
619
2
540
21
2
0
false
false
false
false
false
false
zero
28,720,449
How do I parse this PHP to Java using JSON?
<p>I am pulling my hair out over this. I still don't fully understand how JSON works. I am trying to return a number (formatted as a string) from a PHP script to java. I keep getting the following error: </p> <pre><code>Error parsing data org.json.JSONException: Value http of type java.lang.String cannot be converted ...
I am pulling my hair out over this. I still don't fully understand how JSON works. I am trying to return a number (formatted as a string) from a PHP script to java. I keep getting the following error: [CODE] This is a snippet from the PHP code: [CODE] This returns: {"value":"1"} I am trying to store the '1' in a string...
java|php|android|json|parsing
1
2015-02-25T13:37:07.763Z
2,015
2
13
2
6,492
3
521
43
5
3
true
false
true
false
false
false
low
28,720,577
Websocket lifecycle in Android's applications
<p>I'm using websocket (socketIO) on my app for a notification center. It Will be reopened everytime the app come to foreground, but when It goes on background the webSocket remains open, unless I Kill the app on task manager. How to link the webSocket lifecycle only when the app is active on foreground? Actually I've ...
I'm using websocket (socketIO) on my app for a notification center. It Will be reopened everytime the app come to foreground, but when It goes on background the webSocket remains open, unless I Kill the app on task manager. How to link the webSocket lifecycle only when the app is active on foreground? Actually I've a S...
android|websocket|android-lifecycle
2
2015-02-25T13:43:45.453Z
2,015
2
13
2
486
0
585
45
3
0
false
true
false
false
false
false
low
28,720,588
Android Proguard Obfuscation of serialized object
<p>I have a serialized object which is saved in DB. This is in the previous version.</p> <pre><code>public class Book implements Serializable{ String id; } </code></pre> <p>In my current version I have changed the data type of <code>id</code> to <code>int</code>. When I update my app, I get the deserialized objec...
I have a serialized object which is saved in DB. This is in the previous version. [CODE] In my current version I have changed the data type of id to int . When I update my app, I get the deserialized object back from DB but the id is 0 . I have tried to use applymapping to map to the older version. But of no use. I hav...
android|serialization|proguard
1
2015-02-25T13:44:21.383Z
2,015
2
13
2
730
1
406
49
3
2
true
false
false
false
false
false
low
28,720,621
How to provide different resolutions for header image?
<p>This is a follow up question to this <a href="https://stackoverflow.com/questions/18077325/scale-image-to-fill-imageview-width-and-keep-aspect-ratio">post</a>. I have a header image on one of my screens and want to scale it to the full width but keeping the aspect ratio. So it should do something like this: <img src...
This is a follow up question to this post . I have a header image on one of my screens and want to scale it to the full width but keeping the aspect ratio. So it should do something like this: I can do that, but now I have the problem that the image scales relatively bad. (Imagine some text on the picture above, this i...
android|scale
0
2015-02-25T13:45:48.657Z
2,015
2
13
2
138
1
510
54
2
0
false
false
false
false
false
false
zero
28,720,679
WindowManager.addView ontop(overlay) of soft key OR nav bar
<p>I saw an app that overlays whole screen including nav bar (or soft-key that has back, home, etc.) today. it's CF.Lumen(requires android 4.4+) by chainfire.</p> <p>I just remembered this is NOT POSSIBLE on general approach and many SO answers told me. So I looked down smali codes from Lumens apk(sorry chainfire), fou...
I saw an app that overlays whole screen including nav bar (or soft-key that has back, home, etc.) today. it's CF.Lumen(requires android 4.4+) by chainfire. I just remembered this is NOT POSSIBLE on general approach and many SO answers told me. So I looked down smali codes from Lumens apk(sorry chainfire), found 0x7d6 a...
android|overlay|android-view|android-windowmanager|android-layoutparams
0
2015-02-25T13:48:13.690Z
2,015
2
13
2
2,372
2
1,154
59
5
1
true
false
false
false
false
false
zero
28,720,703
Android Studio gets stucked in Starting screen?
<p>Starting Screen showing "powered by IntelliJ Platform" appears and just stays on the screen. I have no idea what to do with it. Eclipse worked fine on my previous PC</p>
Starting Screen showing "powered by IntelliJ Platform" appears and just stays on the screen. I have no idea what to do with it. Eclipse worked fine on my previous PC
android|android-studio
0
2015-02-25T13:49:22.617Z
2,015
2
13
2
33
0
165
47
2
0
false
true
false
false
false
false
zero
28,720,712
Why is "@android:id/tabs" not being able to be found?
<p>I am following a tutorial: <a href="https://www.youtube.com/watch?v=irDdBxamuZs" rel="nofollow noreferrer">https://www.youtube.com/watch?v=irDdBxamuZs</a> I'm trying to implement these tabs for the first time. When I drag a tab host over, it just gives me this red straight away in the XML saying it can't find them:...
I am following a tutorial: https://www.youtube.com/watch?v=irDdBxamuZs I'm trying to implement these tabs for the first time. When I drag a tab host over, it just gives me this red straight away in the XML saying it can't find them: In the sample project: Can anyone shine some light on why this could be? Sorry if it's ...
android|tabs
1
2015-02-25T13:49:46.897Z
2,015
2
13
2
37
0
437
53
2
0
false
true
false
false
false
false
low
28,720,792
Dropbox Sync api using multiple Activities
<h2>I want to use an Activity to verificate the current used dropbox Account:</h2> <p>Therefor the first Activity initializes the dbxAccount Object. This instance is than passed on to the second Activity which "should" use this to upload data.</p> <p>Every time the dbxFileSystem is used, the Application crashed down ...
I want to use an Activity to verificate the current used dropbox Account: Therefor the first Activity initializes the dbxAccount Object. This instance is than passed on to the second Activity which "should" use this to upload data. Every time the dbxFileSystem is used, the Application crashed down showing a: disk I/O e...
android|dropbox-api
1
2015-02-25T13:53:51.090Z
2,015
2
13
2
110
1
885
42
2
3
true
false
false
false
false
false
low
28,720,865
fetch apps from google play store and show them in list
<p>How I can fetch a free application list from google play store and show them in a list view? Is it possible or not? I searched a lot from google but found nothing related to this.If anybody knows this answer please tell.</p> <p>I will be very thankful.</p>
How I can fetch a free application list from google play store and show them in a list view? Is it possible or not? I searched a lot from google but found nothing related to this.If anybody knows this answer please tell. I will be very thankful.
android|google-play|google-play-services
0
2015-02-25T13:57:16.927Z
2,015
2
13
2
201
0
245
55
3
0
false
true
false
false
false
false
zero
28,720,951
Parsing JSON in Android not retrieving all JSON array
<p>in Android while parsing JSON, it parse only 10 items of JSON array. for example <a href="http://www.example.com/recent_summary/?count=20" rel="nofollow">http://www.example.com/recent_summary/?count=20</a> it doesnot matter if i decrease the count to 5 it still return 10 items. but, when i browse the URL in browner...
in Android while parsing JSON, it parse only 10 items of JSON array. for example http://www.example.com/recent_summary/?count=20 it doesnot matter if i decrease the count to 5 it still return 10 items. but, when i browse the URL in browner. it return all 20 items ... Please help me out. [CODE]
android|android-json
0
2015-02-25T14:01:16.047Z
2,015
2
14
2
121
0
294
53
2
1
true
true
false
false
false
false
zero
28,720,952
TableLayout not receive background if i use HorizontalScrollView
<p>I'm trying use TableLayout to make a table and is much informations to screen of smartphone, so i need of a Horizontal Scroll, but if i use HorizontalScrollView, the TableLayout and my button of the screen have the background blank, the background simply disappears. I try use ScrollView (vertical) in test and all wo...
I'm trying use TableLayout to make a table and is much informations to screen of smartphone, so i need of a Horizontal Scroll, but if i use HorizontalScrollView, the TableLayout and my button of the screen have the background blank, the background simply disappears. I try use ScrollView (vertical) in test and all work ...
android|android-layout|scrollview|android-tablelayout|horizontalscrollview
0
2015-02-25T14:01:28.740Z
2,015
2
14
2
116
1
1,093
64
5
1
true
false
false
false
false
false
zero
28,720,994
Android ORMLite DbHelper onCreate() not called even after uninstall
<p>I'm getting this error when I run my app for the first time after re-install: android.database.sqlite.SQLiteException: no such table</p> <p>(This error happens when my app tries to read from the database)</p> <p>For some reason the onCreate() method in DBHelper is not getting called and therefore the tables are n...
I'm getting this error when I run my app for the first time after re-install: android.database.sqlite.SQLiteException: no such table (This error happens when my app tries to read from the database) For some reason the onCreate() method in DBHelper is not getting called and therefore the tables are not getting created. ...
android|ormlite
3
2015-02-25T14:03:01.140Z
2,015
2
14
2
703
1
839
67
2
1
true
false
false
false
false
false
low
28,721,040
Alarm manager not working without internet connection
<p>I have scheduled an alarm like this </p> <pre><code>private void startAlarm() { alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); Intent intent = new Intent(this, LocationBrodcastReceiver.class); alarmIntent = PendingIntent.getBroadcast(this, 0, intent, 0); alarmManager.setRepeating(Ala...
I have scheduled an alarm like this [CODE] And I have WakefulBroadcastReceiver for it [CODE] In service, I sent coordinates to the server, but the problem is that if I turn the internet connection off, the alarm stops repeating.
android|connection|alarmmanager
1
2015-02-25T14:05:17.113Z
2,015
2
14
2
415
0
228
53
3
2
true
true
false
false
false
false
low
28,721,042
Android : Thread not passing data to Handler
<p>I am working on an Android project in which I have to connect to a server, retrieve a list of restaurants and display it in a ListView. The situation is when the app is started, for testing, I am starting another Intent and running a thread inside it. Inside the thread, I am retrieving data from a server which I wou...
I am working on an Android project in which I have to connect to a server, retrieve a list of restaurants and display it in a ListView. The situation is when the app is started, for testing, I am starting another Intent and running a thread inside it. Inside the thread, I am retrieving data from a server which I would ...
java|android|multithreading
0
2015-02-25T14:05:23.343Z
2,015
2
14
2
1,010
4
728
44
3
2
true
false
false
false
false
false
zero
28,721,136
Android - update listview after AsyncTask
<p>I apologize for my English but translated with google. I need help for my application, I'm using a <code>ExpandableListView</code> with <strong>3 different</strong> groups, 2 groups with <strong>static</strong> items and a group with items that it should to <strong>update</strong> after a <code>AsyncTask</code>. Whe...
I apologize for my English but translated with google. I need help for my application, I'm using a ExpandableListView with 3 different groups, 2 groups with static items and a group with items that it should to update after a AsyncTask . When I run the application the first time, the group with dynamic items is empty ,...
android|listview|android-asynctask|expandablelistview|android-adapter
0
2015-02-25T14:09:33.077Z
2,015
2
14
2
762
1
1,002
41
5
3
true
false
false
false
false
false
zero
28,721,143
How to change volume of key click?
<p>I need to modify the volume of key clicks (not music).</p> <p>I tried this:</p> <pre><code>AudioManager layout = (AudioManager) getSystemService(Context.AUDIO_SERVICE); layout.setStreamVolume( AudioManager.FX_KEY_CLICK, volumeValue ,0); </code></pre> <p>But it doesn't change it.</p> <p>I succeeded changing only ...
I need to modify the volume of key clicks (not music). I tried this: [CODE] But it doesn't change it. I succeeded changing only the music sound, by: [CODE] I found here that FX_KEY_CLICK is responsible for the sound of key clicks. Yet, it's not working for me. However, playing a key click sound does work by using FX_KE...
java|android
0
2015-02-25T14:09:42.107Z
2,015
2
14
2
275
1
336
34
2
3
true
false
false
false
false
false
zero
28,721,153
Multiple push notifications is redirecting to the same page using Android Google Cloud Messaging
<p>I am using Google Cloud Messaging to send push notifications in android application.I have an activity page in which i maintained the tab bar layouts.For example,If I received five notifications means and from the five, i have clicked the fourth one, it will go to the first received notification page instead of four...
I am using Google Cloud Messaging to send push notifications in android application.I have an activity page in which i maintained the tab bar layouts.For example,If I received five notifications means and from the five, i have clicked the fourth one, it will go to the first received notification page instead of fourth ...
android|push-notification|google-cloud-messaging|urbanairship.com
0
2015-02-25T14:10:09.490Z
2,015
2
14
2
572
0
410
96
4
1
true
true
false
false
false
false
zero
28,721,192
Android-One clicklistener for many CheckBoxPreference
<p>I have some CheckBoxPreference elements for which I would like to use one onClickListener for all the CheckBoxPreference in my page. Here is what I'm trying to do:</p> <pre><code> CheckBoxPreference checkboxPref = (CheckBoxPreference)getPreferenceManager().findPreference("preference1"); CheckBoxPreference ch...
I have some CheckBoxPreference elements for which I would like to use one onClickListener for all the CheckBoxPreference in my page. Here is what I'm trying to do: [CODE] How can i make this onPreferenceClick() be executed for the checkboxPref1? Any ideas? Thanks!
android|onclick|onclicklistener|checkboxpreference
0
2015-02-25T14:11:32.753Z
2,015
2
14
2
958
3
264
53
4
1
true
false
false
false
false
false
zero
28,721,226
GoogleMaps Directions API limitations
<p>In this document (<a href="https://developers.google.com/maps/documentation/javascript/directions?hl=en" rel="nofollow">https://developers.google.com/maps/documentation/javascript/directions?hl=en</a>) Google explains that the limitations of the Directions API is set to 2500 requests by day, but I'm not specifying a...
In this document ( https://developers.google.com/maps/documentation/javascript/directions?hl=en ) Google explains that the limitations of the Directions API is set to 2500 requests by day, but I'm not specifying a key in the query (and can't locate a key field name in the query params). How is Google calculating the li...
android|google-maps-api-3
1
2015-02-25T14:12:59.007Z
2,015
2
14
2
126
1
368
37
2
0
false
false
false
false
false
false
low
28,721,379
LibGdx - Android - Sprite allocation during render
<p>I have a routine that draws a Sprite in every loop of the render method. My first approach was to create a Sprite every loop but this leads to garbage and when the gc ocurrs it may affect the game performance (FPS goes from 60 to 5* or worse). So, I removed all the heap allocation during the render loop, but I coudn...
I have a routine that draws a Sprite in every loop of the render method. My first approach was to create a Sprite every loop but this leads to garbage and when the gc ocurrs it may affect the game performance (FPS goes from 60 to 5* or worse). So, I removed all the heap allocation during the render loop, but I coudn't ...
android|garbage-collection|libgdx
0
2015-02-25T14:20:05.540Z
2,015
2
14
2
62
1
729
50
3
1
true
false
false
false
false
false
zero
28,721,383
Android push notification message not being displayed
<p>I'm working with push notifications and I'm having trouble to understand a bug that I recently discovered.</p> <p>I receive push messages just fine on Galaxy S4 Mini, Nexus 4, Galaxy Note 2, MOTO E and MOTO G.</p> <p>But on Galaxy S5, I receive the push notification, I can see the message on status bar, but when I...
I'm working with push notifications and I'm having trouble to understand a bug that I recently discovered. I receive push messages just fine on Galaxy S4 Mini, Nexus 4, Galaxy Note 2, MOTO E and MOTO G. But on Galaxy S5, I receive the push notification, I can see the message on status bar, but when I pull down the scre...
android|notifications|google-cloud-messaging
2
2015-02-25T14:20:19.110Z
2,015
2
14
2
4,147
1
458
53
3
1
true
false
true
false
false
false
low
28,721,509
Unable to start activity ComponentInfo Parse
<p>I'm developing an app that uses Parse to store and retrieve some data. I followed the setup guide on the website but it´s crashing!</p> <p>These are the files:</p> <p>MainActivity.java:</p> <pre><code>package apps.XXXXXX.test; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import andr...
I'm developing an app that uses Parse to store and retrieve some data. I followed the setup guide on the website but it´s crashing! These are the files: MainActivity.java: [CODE] Frag.java [CODE] The app is able to retrieve data form Parse. But when I press the Back Button and go back to the app (icon or trough the rec...
java|android|parse-platform|onbackpressed
1
2015-02-25T14:25:35.623Z
2,015
2
14
2
2,447
1
357
44
4
3
true
false
false
false
false
false
low
28,721,512
Accessing an array inside an array in json response
<p>I'm using the below code to take the values of price. I can get the value for price. However, when it comes to crust it runs to the exception.</p> <pre><code>@Override public void onTaskCompleted(JSONArray responseJson) { try { List&lt;String&gt; crust = new ArrayList&lt;String&gt;(); ...
I'm using the below code to take the values of price. I can get the value for price. However, when it comes to crust it runs to the exception. [CODE] this is the json response [CODE] Crust is positioned in, array inside an array, how can i access crust in my above coding. any help will be appreciated.
android|jsonresponse
0
2015-02-25T14:25:45.243Z
2,015
2
14
2
1,577
2
302
51
2
2
true
false
false
false
false
false
zero
28,721,584
NullPointerException error in android with json
<p>I know there are many great explanations in StackOverFlow regarding this error. But I have spent countless hours trying to solve this error in my code but I couldn't. I am new to android programming. Hopefully you guys can help.</p> <p>I am trying to store data in MySQL using PHP in this android app.</p> <p>Here i...
I know there are many great explanations in StackOverFlow regarding this error. But I have spent countless hours trying to solve this error in my code but I couldn't. I am new to android programming. Hopefully you guys can help. I am trying to store data in MySQL using PHP in this android app. Here is my MainActivity [...
java|android
1
2015-02-25T14:28:40.953Z
2,015
2
14
2
443
0
382
47
2
3
true
true
false
false
false
false
low
28,721,733
Removing Multiple Activities from History After a Certain Point
<p>I would like to be able to remove activities from history but only after a certain threshold has been reached. The structure of my application goes like this:</p> <pre><code>Home --&gt; User Input --&gt; User Input --&gt; User Input --&gt; Posting in DB </code></pre> <p>I would like to make it so that while the u...
I would like to be able to remove activities from history but only after a certain threshold has been reached. The structure of my application goes like this: [CODE] I would like to make it so that while the user is giving data in the input pages, they can easily go back and make a change if necessary, but once they ha...
java|android|android-activity
0
2015-02-25T14:35:52.003Z
2,015
2
14
2
49
1
659
63
3
1
true
false
false
false
false
false
zero
28,721,751
Make background inherit from selectableItemBackground
<p>Right now my view (framelayout) has </p> <pre><code> android:background="?android:attr/selectableItemBackground" </code></pre> <p>I want to add a bottom border to it (when it's activated). One option is to add 1 more layer inside with </p> <pre><code> android:background="@drawable/my_bgr" </code><...
Right now my view (framelayout) has [CODE] I want to add a bottom border to it (when it's activated). One option is to add 1 more layer inside with [CODE] but that's kinda lame - grows view hierarchy for no reason. Another option is to put my drawable as a bgr of the view but change it to handle ripple effect: [CODE] T...
android|layout
2
2015-02-25T14:36:44.227Z
2,015
2
14
2
3,240
2
548
53
2
3
true
false
true
false
false
false
low
28,721,762
Android Json Response Caching
<p>I use volley framework to fetch the json responses from the server and update the View elements, I use Volley, as it handles the caching.</p> <p>Whenever activity loads, volley always fetches response from server, and it does not loading any data from cached response, so I cannot use that cached response to load co...
I use volley framework to fetch the json responses from the server and update the View elements, I use Volley, as it handles the caching. Whenever activity loads, volley always fetches response from server, and it does not loading any data from cached response, so I cannot use that cached response to load content in of...
android|json|caching|android-volley|offline-caching
1
2015-02-25T14:37:09.467Z
2,015
2
14
2
861
2
759
29
5
1
true
false
false
false
false
false
low
28,721,798
APK does not install on device
<p>I've recently copy and paste an old android application project in Eclipse. Thereafter I made some changes to the project including refactor>rename the project, both the project name and the package name as well. All seems ok so far when running this modified duplicate project in the emulator without any problems.</...
I've recently copy and paste an old android application project in Eclipse. Thereafter I made some changes to the project including refactor>rename the project, both the project name and the package name as well. All seems ok so far when running this modified duplicate project in the emulator without any problems. But ...
android|eclipse|apk|duplication
0
2015-02-25T14:38:38.577Z
2,015
2
14
2
1,002
3
1,763
30
4
0
false
false
false
false
false
false
zero
28,721,830
Import project source code developed in eclipse ADT into android studio without exporting
<p>I am very novice to android studio, today only I set up android studio. </p> <ol> <li>I developed an android project/app in eclipse ADT.</li> <li><p>As Google now recommends android studio for android development,I set up android studio today. But before that I deleted all eclipse ADT installation stuff.</p></li> <...
I am very novice to android studio, today only I set up android studio. I developed an android project/app in eclipse ADT. As Google now recommends android studio for android development,I set up android studio today. But before that I deleted all eclipse ADT installation stuff. Now I wants to import all the source cod...
android|import|android-studio|project|adt
0
2015-02-25T14:40:08.337Z
2,015
2
14
2
471
0
1,509
89
5
0
false
true
false
false
false
false
zero
28,721,898
How can I enable AVD buttons and controls in Android Studio 1.0.1
<p>Here's a screenshot from Android Studio 0.5 that has the controls. I want these virtual controls to be visible in Android Studio 1.0.1 as well.</p> <p><a href="http://i58.tinypic.com/1gcag.jpg" rel="nofollow">Screenshot showing the controls</a></p>
Here's a screenshot from Android Studio 0.5 that has the controls. I want these virtual controls to be visible in Android Studio 1.0.1 as well. Screenshot showing the controls
android|avd
0
2015-02-25T14:42:50.847Z
2,015
2
14
2
39
1
175
65
2
0
false
false
false
false
false
false
zero
28,721,944
Asus Memo pad 7 (ME170c) eclipse not picking device
<p>I have bought Asus Memo Pad 7 (ME170c) today. I am not able to use it for debugging because system is not recognizing it. I also search for it's usb driver but i didn't found it even on their official site. </p> <p><img src="https://i.stack.imgur.com/7ihvE.jpg" alt="enter image description here"></p>
I have bought Asus Memo Pad 7 (ME170c) today. I am not able to use it for debugging because system is not recognizing it. I also search for it's usb driver but i didn't found it even on their official site.
android
0
2015-02-25T14:44:28.457Z
2,015
2
14
2
431
1
206
51
1
0
false
false
false
false
false
false
zero
28,721,955
Can i visualise image url in some widget?
<p>Can i visualise image url in some android widget like ImageView or something like this? I do not want to use hard coded images like this <code>android:src="@drawable/ic_launcher"</code> i want to get the image from some url like this for example <code>http://i.forbesimg.com/media/lists/companies/google_416x416.jpg<...
Can i visualise image url in some android widget like ImageView or something like this? I do not want to use hard coded images like this android:src="@drawable/ic_launcher" i want to get the image from some url like this for example http://i.forbesimg.com/media/lists/companies/google_416x416.jpg
android|xml|image|url
-2
2015-02-25T14:44:46.487Z
2,015
2
14
2
102
1
296
41
4
0
false
false
false
false
false
true
negative
28,722,091
Robolectric InflateException when parsing android:background="@android:drawable/alert_dark_frame"
<pre><code>&lt;LinearLayout android:paddingLeft="15dp" android:paddingRight="15dp" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="70dp" xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;!-- MORE BUTTONS HERE --&gt; &lt;Button ...
[CODE] Here is actual test code: [CODE] When im trying to execute tests it fails with a following exception: [CODE] I found out that removing following line fixes the problem: [CODE] Any idea how to fix that problem without removing android:backgorund styling from view ? I would appreciate any help.
java|android|junit|robolectric
1
2015-02-25T14:50:32.640Z
2,015
2
14
2
462
1
300
97
4
4
true
false
false
false
false
false
low
28,722,125
why does mediastore take the last-1th picture from the gallery
<p><strong>Hello!</strong> I have a problem between the picture gallery and the mediastore in my android application when i use the camera intent in my fragment. I checked on the android website to learn how to take a picture in a fragment and on some forums to know how to get the last picture took but the media store ...
Hello! I have a problem between the picture gallery and the mediastore in my android application when i use the camera intent in my fragment. I checked on the android website to learn how to take a picture in a fragment and on some forums to know how to get the last picture took but the media store always give me the l...
android|android-fragments|android-camera|mediastore
0
2015-02-25T14:52:08.320Z
2,015
2
14
2
79
1
668
62
4
2
true
false
false
false
false
false
zero
28,722,143
Android: Universal Image Loader and the blank space issue
<p>i have a string that contains <code>HTML</code> contents (text and images), i'm using the <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow noreferrer">UIL</a> to translate the <code>&lt;img&gt;</code> html tags to be displayed correctly in a TextView, each image in its original pla...
i have a string that contains HTML contents (text and images), i'm using the UIL to translate the <img> html tags to be displayed correctly in a TextView, each image in its original place in the paragraph. Everything works fine except that i get a blank extra space at the end of the TextView after the images get render...
java|android|html|universal-image-loader
0
2015-02-25T14:53:04.447Z
2,015
2
14
2
367
1
718
57
4
3
true
false
false
false
false
false
zero
28,722,174
Android android:buttonStyle not applied
<p>I have the following code in my styles.xml:</p> <pre><code>&lt;!-- Base application theme. --&gt; &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt; &lt;item name="android:buttonStyle"&gt;@style/ButtonStyle&lt;/item&gt; &lt;/style&gt; &lt;style name="ButtonStyle" parent="@android:style/...
I have the following code in my styles.xml: [CODE] This is supposed to print the button background in Pink (#FF00FF) and text in teal, but it not applies to my buttons. I had two kind of views, normal Button () and ButtonLinearLayout, that gets the current them default Button backgroundm, and apply it to LinearLayout. ...
android|button|styles
1
2015-02-25T14:54:32.090Z
2,015
2
14
2
389
1
393
39
3
1
true
false
false
false
false
false
low
28,722,225
DownloadManager setVisibleInDownloadsUi not working
<p>I'm using DownloadManager in order to download and it is working great. However when I set setVisibleInDownloadsUi(false) the progress notification is still displayed.</p> <pre><code>Request request = new Request(Uri.parse(url)); request.setVisibleInDownloadsUi(false); mDownloadManager.enqueue(request); </code></pr...
I'm using DownloadManager in order to download and it is working great. However when I set setVisibleInDownloadsUi(false) the progress notification is still displayed. [CODE] In my Manifest I've added the following permissions: [CODE]
android|android-notifications|android-download-manager
2
2015-02-25T14:56:33.980Z
2,015
2
14
2
2,028
1
234
51
3
2
true
false
false
false
false
false
low
28,722,239
properties file not found after migrating Android project from eclipse to Android Studio
<p>My Android project contains some property files in the package structure. To read this property I use <code>MyClass.getResourceAsStream("someProperties.xml")</code>. MyClass has no access to a Context. After migrating to Android Studio the <code>someProperties.xml</code> is not moved into the resulting package struc...
My Android project contains some property files in the package structure. To read this property I use MyClass.getResourceAsStream("someProperties.xml") . MyClass has no access to a Context. After migrating to Android Studio the someProperties.xml is not moved into the resulting package structure. Therefore my code can'...
android|eclipse|android-studio|gradle|resources
2
2015-02-25T14:57:27.667Z
2,015
2
14
2
263
1
552
88
5
0
false
false
false
false
false
false
low
28,722,251
Double Pressed needed when using DrawerLayout
<p>Okey, my problem is that I need to double tab everything on the screen to do something. Like if I press the back button only once I can’t see that anything happens. Anyone know something about this problem? </p> <p>It’s the same with all buttons on the screen, but if I click all the buttons once I’m able to just cl...
Okey, my problem is that I need to double tab everything on the screen to do something. Like if I press the back button only once I can’t see that anything happens. Anyone know something about this problem? It’s the same with all buttons on the screen, but if I click all the buttons once I’m able to just click once on ...
android|drawerlayout
0
2015-02-25T14:58:01.990Z
2,015
2
14
2
43
0
722
45
2
1
true
true
false
false
false
false
zero
28,722,268
Fatal Exception: java.lang.IllegalStateException Can not perform this action after onSaveInstanceState
<p>I'm getting a crash that I can't reproduce. Here's the stack trace:</p> <pre><code>android.support.v4.app.FragmentManagerImpl.checkStateLoss (FragmentManager.java:1343) android.support.v4.app.FragmentManagerImpl.popBackStackImmediate (FragmentManager.java:486) android.support.v4.app.FragmentActivity.onBackPressed (...
I'm getting a crash that I can't reproduce. Here's the stack trace: [CODE] And here's the relevant code in RadioPlayer.java: [CODE] Any help is appreciated.
java|android
1
2015-02-25T14:58:49.090Z
2,015
2
14
2
645
0
156
102
2
2
true
true
false
false
false
false
low
28,722,287
Networking app architecture
<p>I'm building an android app similar to a facebook app, aimed to display various information stored in a database. I'm using on the server-side a REST API, which returns responses based on various POST requests, with a facebook token authentification.</p> <p>And on the client-side, I'm using the volley library to de...
I'm building an android app similar to a facebook app, aimed to display various information stored in a database. I'm using on the server-side a REST API, which returns responses based on various POST requests, with a facebook token authentification. And on the client-side, I'm using the volley library to deal with net...
android|facebook|rest|network-programming|android-volley
0
2015-02-25T14:59:26.653Z
2,015
2
14
2
904
1
1,807
27
5
0
false
false
false
false
false
false
zero
28,722,290
Setting up Bundle and addExtras Vs passing string directy
<p>What is the difference? I am learning from tutorial how to pass a string from one to another activity and this person uses following code in order to take info from EditText of Data and pass it to TextView of OpenedClass:</p> <pre><code>public class Data { EditText sendET; @Override protected void on...
What is the difference? I am learning from tutorial how to pass a string from one to another activity and this person uses following code in order to take info from EditText of Data and pass it to TextView of OpenedClass: [CODE] //end here is the other class [CODE] Can't I just replace last 3 lines in OpenedClass with:...
android|android-activity|parameter-passing
0
2015-02-25T14:59:39.870Z
2,015
2
14
2
30
2
499
57
3
3
true
false
false
false
false
false
zero
28,722,322
Map positioned, but not zooming
<p>From a Thread I start some code on UI in order to zoom a map and to position it. While the positioning works fine (New York), the zoom is ignored (always half of the globe). I have tried with all possible zoomOld values, but it's all the time the same. What is wrong in my code?</p> <pre><code>runOnUiThread(new Runn...
From a Thread I start some code on UI in order to zoom a map and to position it. While the positioning works fine (New York), the zoom is ignored (always half of the globe). I have tried with all possible zoomOld values, but it's all the time the same. What is wrong in my code? [CODE]
android|google-maps
0
2015-02-25T15:01:01.737Z
2,015
2
15
2
35
1
285
31
2
1
true
false
false
false
false
false
zero
28,722,372
Open File downloaded
<p>I am working at a app which is started from a browser - I am trying with FireFox - I get the file Uri from the Intent but I can not open the file in this path :</p> <pre><code>java.io.FileNotFoundException: /file:/storage/emulated/0/Download/baningmyheadreallyhard.txt: open failed: ENOENT (No such file or directory...
I am working at a app which is started from a browser - I am trying with FireFox - I get the file Uri from the Intent but I can not open the file in this path : [CODE] Any idea about why ?
android
0
2015-02-25T15:03:47.783Z
2,015
2
15
2
39
0
188
20
1
1
true
true
false
false
false
false
zero
28,722,447
Add more YouTubeThumbnailView at the END of the list Android
<p>I am developing an app which shows Grid view of youTubeThumbnailView , I want to load more youTubeThumbnailView when user reach at the end of the list. Suppose I have 2 list of video, I want to load 1st list at the beginning and load the 2nd list if user goes the bottom of the list. <br><br>My Custom Adapter for sho...
I am developing an app which shows Grid view of youTubeThumbnailView , I want to load more youTubeThumbnailView when user reach at the end of the list. Suppose I have 2 list of video, I want to load 1st list at the beginning and load the 2nd list if user goes the bottom of the list. My Custom Adapter for showing Grid V...
android|gridview|scroll|youtube-api|adapter
0
2015-02-25T15:06:49.863Z
2,015
2
15
2
183
1
545
60
5
2
true
false
false
false
false
false
zero
28,722,496
Control over the Share option when a +1 button is clicked in Android
<p>If you click a the +1 button on an app on the Play Store you get the option to share what you've +1'd with a lovely pre-filled link to the game, as follows.</p> <p><img src="https://i.stack.imgur.com/tM32bm.png" alt="enter image description here"></p> <p>I've added a +1 button to the game itself. The button displa...
If you click a the +1 button on an app on the Play Store you get the option to share what you've +1'd with a lovely pre-filled link to the game, as follows. I've added a +1 button to the game itself. The button displays Google's +1 dialog. This includes a "Share" button which I was hoping would do the same thing. The s...
android|google-play|google-plus|google-play-services|google-plus-one
1
2015-02-25T15:09:01.360Z
2,015
2
15
2
263
0
705
68
5
1
true
true
false
false
false
false
low
28,722,523
Accessing cursor while iterating through another cursor fails to deliver data in time
<p>I have a database with foods that are displayed in a tablelayout with up to 20 lines of foods. The foods may have different measurement units that are retrieved through a union select query among three tables, and displayed in a spinner for each food in the table. When the user selects a unit of measurement in the s...
I have a database with foods that are displayed in a tablelayout with up to 20 lines of foods. The foods may have different measurement units that are retrieved through a union select query among three tables, and displayed in a spinner for each food in the table. When the user selects a unit of measurement in the spin...
android|cursor|spinner
0
2015-02-25T15:10:43.263Z
2,015
2
15
2
24
1
1,477
85
3
2
true
false
false
false
false
false
zero
28,722,529
Android - fragment onActivityCreated() not getting called after .replace
<p>My main application has a blanck FrameLayout the reason for this is so that I can on the go, add and replace fragments to it...</p> <p>I have had no issue with this until now. I have successfully added the first fragment and the onCreate gets called etc, then in my code using a button I replace the FrameLayout with...
My main application has a blanck FrameLayout the reason for this is so that I can on the go, add and replace fragments to it... I have had no issue with this until now. I have successfully added the first fragment and the onCreate gets called etc, then in my code using a button I replace the FrameLayout with my second ...
android|android-fragments
0
2015-02-25T15:11:14.620Z
2,015
2
15
2
1,749
1
979
72
2
2
true
false
false
false
false
false
zero
28,722,553
How to close the timer in android?
<p>Hi in my coding I need to create a timer task for execution some function this function called multiple times so before running the same task i need to cacel the old running task and start this timer again. I have used the <code>featuredCouponRotationTimer.cancel();</code> but it is not working, I'm getting some err...
Hi in my coding I need to create a timer task for execution some function this function called multiple times so before running the same task i need to cacel the old running task and start this timer again. I have used the featuredCouponRotationTimer.cancel(); but it is not working, I'm getting some error in logcate [C...
java|android|timer|timertask
0
2015-02-25T15:12:12.420Z
2,015
2
15
2
185
2
389
34
4
2
true
false
false
false
false
false
zero
28,722,578
Download an APK from a website and prompt the installation to the user
<p>My approach is simple, I have an APK hosted on my site and when the user completes the download I would like to present the installation wizard instead of having to look for the file in downloads or even using a file manager for older devices etc.</p> <p>Is that possible to be achieved for non-PlayStore apps?</p> ...
My approach is simple, I have an APK hosted on my site and when the user completes the download I would like to present the installation wizard instead of having to look for the file in downloads or even using a file manager for older devices etc. Is that possible to be achieved for non-PlayStore apps? Has anybody done...
android|download|google-play|apk|google-play-services
3
2015-02-25T15:13:33Z
-1
-1
-1
-1
378
1
385
70
5
0
false
false
false
false
false
false
low
28,722,590
Querying SMS messages returns null cursor
<p>We need to read both the inbound and outbound text messages from a phone. I have done much googling and have found a number of sources, such as:</p> <p><a href="https://stackoverflow.com/questions/2735571/detecting-sms-incoming-and-outgoing">Detecting SMS incoming and outgoing</a> <a href="https://stackoverflow.com...
We need to read both the inbound and outbound text messages from a phone. I have done much googling and have found a number of sources, such as: Detecting SMS incoming and outgoing How to use SMS content provider? Where are the docs? Android read SMS messages to name a few. From my research, I have written the followin...
android|sms
0
2015-02-25T15:14:02.183Z
2,015
2
15
2
974
1
468
41
2
2
true
false
false
false
false
false
zero
28,722,611
Android ParseQueryAdapter pagination with RecyclerView.Adapter
<p>I am trying to implement <code>CardView</code> in a list using <code>RecyclerView.Adapter</code>. Creating cards in a list was pretty straightforward using RecyvlerView.Adapter. I am using <code>parse.com</code> as my back end so queries for cards data are made using its APIs. Now I want to add pagination to this li...
I am trying to implement CardView in a list using RecyclerView.Adapter . Creating cards in a list was pretty straightforward using RecyvlerView.Adapter. I am using parse.com as my back end so queries for cards data are made using its APIs. Now I want to add pagination to this list. If I use Parse's ParseQueryAdapter , ...
android|parse-platform|pagination|android-5.0-lollipop|parse-android-sdk
5
2015-02-25T15:16:01.140Z
2,015
2
15
2
2,725
1
780
62
5
0
false
false
true
false
false
false
low
28,722,637
Disable Crashlytics in Android library project for debug
<p>I have a project with multiple modules. The common code of the modules is in a library module. The problem is that we added recently Crashlytics to our project (in the library module), and we keep receiving error reports even when we are in Debug mode.</p> <p>I searched on the internet and I found out that a librar...
I have a project with multiple modules. The common code of the modules is in a library module. The problem is that we added recently Crashlytics to our project (in the library module), and we keep receiving error reports even when we are in Debug mode. I searched on the internet and I found out that a library is always...
android|module|crashlytics
3
2015-02-25T15:16:56.580Z
2,015
2
15
2
3,677
2
414
56
3
0
false
false
true
false
false
false
low
28,722,650
Android Studio doesn't have the permission to install apk copied on /data/local/tmp
<p>While running my android application on my device Android Studio shows the device with its name properly and while selecting the device to run it gives the error:-</p> <p><code>Installing com.example.android.borderlessbuttons DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.android.borderlessbuttons...
While running my android application on my device Android Studio shows the device with its name properly and while selecting the device to run it gives the error:- Installing com.example.android.borderlessbuttons DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.android.borderlessbuttons" pkg: /data/loca...
android|android-studio|permissions|usb-debugging
0
2015-02-25T15:17:33.297Z
2,015
2
15
2
1,769
1
921
83
4
0
false
false
false
false
false
false
zero
28,722,724
GMSGeometryLength in Android
<p>I am porting a iOS code on Android, and I need to get the length of a polyline, which I have as an Array of LatLng's.</p> <p>This is the code of the IOS app that I'm trying to replicate:</p> <pre><code> GMSPath *pathOfStep = nextDict[@"path"]; double progressOnStep = GMSGeometryLength(pathOfSte...
I am porting a iOS code on Android, and I need to get the length of a polyline, which I have as an Array of LatLng's. This is the code of the IOS app that I'm trying to replicate: [CODE] Now how could I get the same length on android? I could do a for that goes through the list of LatLng's and create Location for each ...
android|ios|path|location|distance
0
2015-02-25T15:20:40.227Z
2,015
2
15
2
97
1
455
28
5
1
true
false
false
false
false
false
zero
28,722,757
OpenCV Android implementing ORB in AndroidStudio
<p>Where can I find a demo/tutorial of using ORB with OpenCV in AndroidStudio. I searched the web any way I could but I did not find anything that would help me.</p> <p>I want to write an Android app that will detect multiple flat objects in a live video stream from the camera, and Log their appearance in a logfile.</...
Where can I find a demo/tutorial of using ORB with OpenCV in AndroidStudio. I searched the web any way I could but I did not find anything that would help me. I want to write an Android app that will detect multiple flat objects in a live video stream from the camera, and Log their appearance in a logfile. After resear...
android|opencv|orb|opencv4android
0
2015-02-25T15:22:16.610Z
2,015
2
15
2
1,012
1
644
48
4
0
false
false
false
false
false
false
zero
28,722,764
Android: Writing and Reading from a File
<p>I'm trying to write and read a <code>Hashmap&lt;String, Integer&gt;</code> with the Help of <code>ObjectOutPutStream</code> and<code>ObjectInputStream</code>. These 2 are my methods for doing this:</p> <pre><code> protected void saveHashMap(HashMap&lt;String, Integer&gt; newIDs){ if (fileIDs == null){fileIDs = ...
I'm trying to write and read a Hashmap<String, Integer> with the Help of ObjectOutPutStream and ObjectInputStream . These 2 are my methods for doing this: [CODE] The problem I have at the moment is that readHashMap() throws an IOEXception "File not found". Through a bad implementation I have to call readHashmap() befor...
java|android|file
0
2015-02-25T15:22:27.177Z
2,015
2
15
2
59
0
514
40
3
1
true
true
false
false
false
false
zero
28,722,817
Proper way to handle no network with Retrofit and RX-java
<p>I want to check if the mobile is connected to internet before invoking my rx retrofit service. If not connected I want to return a fake Response that contains an error.</p> <p>I ended with the solution below, using defer(), but I think it can be better, any hints ?</p> <pre><code>private Observable&lt;Response&gt;...
I want to check if the mobile is connected to internet before invoking my rx retrofit service. If not connected I want to return a fake Response that contains an error. I ended with the solution below, using defer(), but I think it can be better, any hints ? [CODE]
android|retrofit|rx-java
9
2015-02-25T15:24:04.187Z
2,015
2
15
2
9,586
1
265
57
3
1
true
false
true
false
false
false
medium
28,722,907
How to Split the menu like chrome
<p>How to split a menu like chrome browser as shown in the image:</p> <p><a href="https://i.stack.imgur.com/sTzQH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sTzQH.jpg" alt="image"></a></p> <p>This is my actual code</p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/andr...
How to split a menu like chrome browser as shown in the image: This is my actual code [CODE]
android|android-menu
4
2015-02-25T15:28:13.927Z
2,015
2
15
2
899
1
92
33
2
1
true
false
false
false
false
false
low
28,722,931
What should my UUID be?
<p>I'm relatively new to Android and am creating a Bluetooth App on a Nexus 9 that will connect to a Bluetooth device application my coworker has written on an Arduino processor. I'm following this doc, which is very helpful:</p> <p><a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html" rel="...
I'm relatively new to Android and am creating a Bluetooth App on a Nexus 9 that will connect to a Bluetooth device application my coworker has written on an Arduino processor. I'm following this doc, which is very helpful: http://developer.android.com/guide/topics/connectivity/bluetooth.html However, to connect as a cl...
android|bluetooth
1
2015-02-25T15:29:18.640Z
2,015
2
15
2
3,187
2
1,473
23
2
2
true
false
true
false
false
false
low
28,722,972
Replacing symbol in URL won't Work
<p>I am trying to display an image in android by receiving the url from the web server and then turning it to a bitmap image but getting the following error as the symbol %5C is in it.</p> <pre><code>E/Error﹕ http:%5C/%5C/thumbs3.ebaystatic.com%5C/pict%5C/3007385805144040_5.jpg </code></pre> <p>I have tried <code>url...
I am trying to display an image in android by receiving the url from the web server and then turning it to a bitmap image but getting the following error as the symbol %5C is in it. [CODE] I have tried url2.replaceAll("%5C",""); to get rid of the symbol but this has no effect at all. How can I get rid of it so I have a...
java|android|http|replaceall
2
2015-02-25T15:30:45.037Z
2,015
2
15
2
971
2
331
34
4
1
true
false
false
false
false
false
low
28,723,066
Open internal PhoneGap page from external page in view (using native android menu)
<p>In my phonegap project I created native android menu according to <a href="http://simonmacdonald.blogspot.in/2012/11/building-native-menu-with-phonegap.html" rel="nofollow">this tutorial</a>. Required page (such as settings.html) is displayed with calling view javascript (<code>this.appView.sendJavascript</code>).</...
In my phonegap project I created native android menu according to this tutorial . Required page (such as settings.html) is displayed with calling view javascript ( this.appView.sendJavascript ). How to display internal phonegap page (such as settings.html) when in view is external page (displayed with window.location=E...
android|cordova
0
2015-02-25T15:35:33.467Z
2,015
2
15
2
180
1
720
82
2
0
false
false
false
false
false
false
zero
28,723,075
Proguard in Android Studio: Running proguardRelease complains of unresolved references
<p>I'm trying to use Proguard for my release in Android Studio.</p> <p>I have the classic problem that everyone has which is the "Unresolved references to classes or interfaces".</p> <p>Like I read everywhere, I tried to add <code>-dontwarn</code> command to the proguard-project.txt file but it doesn't change anythin...
I'm trying to use Proguard for my release in Android Studio. I have the classic problem that everyone has which is the "Unresolved references to classes or interfaces". Like I read everywhere, I tried to add -dontwarn command to the proguard-project.txt file but it doesn't change anything. Maybe my setup just ignore th...
android|android-studio|proguard|android-gradle-plugin
0
2015-02-25T15:35:56.540Z
2,015
2
15
2
1,285
1
582
86
4
3
true
false
false
false
false
false
zero
28,723,223
Error:No such property: bootClasspath for class: com.android.build.gradle.LibraryPlugin
<p>The moment I updated <code>classpath 'com.android.tools.build:gradle:1.0.0'</code> to <code>classpath 'com.android.tools.build:gradle:1.1.0'</code>, I get this error message</p> <blockquote> <p>Gradle 'Project' project refresh failed</p> <p>Error:No such property: bootClasspath for class: com.android.build.gradle.Li...
The moment I updated classpath 'com.android.tools.build:gradle:1.0.0' to classpath 'com.android.tools.build:gradle:1.1.0' , I get this error message Gradle 'Project' project refresh failed Error:No such property: bootClasspath for class: com.android.build.gradle.LibraryPlugin Anyone else having this issue and seems to ...
android|android-studio|gradle
4
2015-02-25T15:42:27.140Z
2,015
2
15
2
2,757
1
442
87
3
0
false
false
true
false
false
false
low
28,723,242
Get phone number of android device when connect wifi?
<p>i make an application android to get phone number when the device connects to wifi in LAN network, but i cannot. How can i get phone number of android device when connect to wifi?</p>
i make an application android to get phone number when the device connects to wifi in LAN network, but i cannot. How can i get phone number of android device when connect to wifi?
android|wifi
-3
2015-02-25T15:43:14.720Z
2,015
2
15
2
3,612
1
179
53
2
0
false
false
true
false
false
true
negative
28,723,280
BattleShips game for android. Two pass connected component ship collision
<p>I'm currently tasked with making a battleships game for college. So for, I've managed to get the ships down within the confines of the grid. My only problem now is validating the ship layout with regards to the ships colliding with other ships. I've read around, and presumably the best course of action is a two pass...
I'm currently tasked with making a battleships game for college. So for, I've managed to get the ships down within the confines of the grid. My only problem now is validating the ship layout with regards to the ships colliding with other ships. I've read around, and presumably the best course of action is a two pass co...
java|android|collision|connected-components
0
2015-02-25T15:44:43.303Z
2,015
2
15
2
97
0
482
73
4
1
true
true
false
false
false
false
zero
28,723,375
Unable to change build tools version to compile android app
<p>I want to compile an android app using build tools 21.1+ since I need to use multidex support. I installed the build tools 21.1.2 from the SDK manager. After that I changed ALL my build.gradle files to include the buildToolsVersion:</p> <pre><code> android { ... buildToolsVersion "21.1.2" ... ...
I want to compile an android app using build tools 21.1+ since I need to use multidex support. I installed the build tools 21.1.2 from the SDK manager. After that I changed ALL my build.gradle files to include the buildToolsVersion: [CODE] Since the app depends on several other projects, there are several build.gradle ...
android|android-studio|android-gradle-plugin|android-build|android-multidex
1
2015-02-25T15:48:38.033Z
2,015
2
15
2
3,106
1
1,693
59
5
4
true
false
true
false
false
false
low
28,723,407
Android Eclipse - Database Login Issue
<p>Good afternoon,</p> <p>I am trying to create a simple user profile and allow user's to log in once they have created their account to login with their saved username and password.</p> <p>The account details arent successfully saving and I am getting the error message which I have set that username and password do ...
Good afternoon, I am trying to create a simple user profile and allow user's to log in once they have created their account to login with their saved username and password. The account details arent successfully saving and I am getting the error message which I have set that username and password do not match? I cannot...
android|database|eclipse|sqlite|authentication
0
2015-02-25T15:49:41.207Z
2,015
2
15
2
808
2
675
38
5
5
true
false
false
false
false
false
zero
28,723,432
Subclasses and inheritance
<p>Let's have I have 3 classes. The First one is the parent class, The second one is a subclass of the Parent class. And the third class is a extends the 2nd class, which is a subclass itself. Will the 3rd class inherit the methods from the parent class?</p>
Let's have I have 3 classes. The First one is the parent class, The second one is a subclass of the Parent class. And the third class is a extends the 2nd class, which is a subclass itself. Will the 3rd class inherit the methods from the parent class?
android|inheritance|subclass|superclass
-1
2015-02-25T15:50:44.280Z
2,015
2
15
2
35
1
251
26
4
0
false
false
false
false
false
true
negative
28,723,461
save button in android programing
<p>hey guys I'm working on an android project and I want to add a button in my app that when user click on it,it save an image in res to sdcard and it shows a toast "image saved in sdcard" please help me</p>
hey guys I'm working on an android project and I want to add a button in my app that when user click on it,it save an image in res to sdcard and it shows a toast "image saved in sdcard" please help me
android|button|layout|save
0
2015-02-25T15:51:43.150Z
2,015
2
15
2
3,135
2
200
33
4
0
false
false
true
false
false
false
zero
28,723,550
How do I ensure that the layout on android studio matches the output on the emulator?
<p>I don't know the answer to the question posted at <a href="https://code.google.com/p/android/issues/detail?can=2&amp;start=0&amp;num=100&amp;q=&amp;colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&amp;groupby=&amp;sort=&amp;id=155879" rel="nofollow">https://code.google.com/p/android/issues/detail?can=2&amp;start...
I don't know the answer to the question posted at https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=155879 . How do i sort it out please as I was kindly asked to refer this and other questions here?
android
-3
2015-02-25T15:55:11.047Z
2,015
2
15
2
25
1
292
85
1
0
false
false
false
false
false
true
negative
28,723,560
GridView items not displaying correct images or backgrounds
<p>I have a grid view which is being populated by a custom adapter (below). So I am passing an array list of object to the adapter, results of tests. The results of the tests are based on the variables in each object. So for example if object type is x then check if y==1, if so it passes etc... My logic is included...
I have a grid view which is being populated by a custom adapter (below). So I am passing an array list of object to the adapter, results of tests. The results of the tests are based on the variables in each object. So for example if object type is x then check if y==1, if so it passes etc... My logic is included below....
android|gridview|android-arrayadapter|android-gridview
0
2015-02-25T15:55:43.927Z
2,015
2
15
2
39
1
719
59
4
2
true
false
false
false
false
false
zero
28,723,613
List of voice commands which trigger heart rate check
<p>What is the list of all existing voice commands which create an intent with <code>vnd.google.fitness.VIEW</code> action and <code>vnd.google.fitness.data_type/com.google.heart_rate.bpm</code> mime type?</p> <p><a href="https://developer.android.com/training/wearables/apps/voice.html">The documentation shows</a> onl...
What is the list of all existing voice commands which create an intent with vnd.google.fitness.VIEW action and vnd.google.fitness.data_type/com.google.heart_rate.bpm mime type? The documentation shows only two of them: "OK Google, what’s my heart rate?" "OK Google, what’s my bpm?" but I've discovered more, for example:...
android|wear-os|voice-recognition|google-now|google-fit
6
2015-02-25T15:57:41.450Z
2,015
2
15
2
205
1
349
53
5
0
false
false
false
false
false
false
medium
28,723,640
share via (Gallery )activity not getting closed after sharing the image
<p>I have added my app option in share via option that comes when we share any image in gallery through share via option. I am able to see my app in share via option. But the problem is once the image is shared and after that the gallery is opened then the gallery still shows the app activity which means gallery activi...
I have added my app option in share via option that comes when we share any image in gallery through share via option. I am able to see my app in share via option. But the problem is once the image is shared and after that the gallery is opened then the gallery still shows the app activity which means gallery activity ...
android|android-intent|android-activity
0
2015-02-25T15:59:09.827Z
2,015
2
15
2
67
0
474
71
3
1
true
true
false
false
false
false
zero
28,723,747
Android app - providing *.kml with app or downloading it? (how to provide data with app)
<p>I have made an app that works ok, but only for ideal case of downloading <em>.kml to /sdcard/download/</em>.kml.</p> <p>I would like to make it proper. So the current code is:</p> <pre><code>public void dwnldKmlKorculaOrlandusa(View v) { Intent dwnldKmlKorculaOrlandusa = new Intent(); dwnldKmlKorculaOrland...
I have made an app that works ok, but only for ideal case of downloading .kml to /sdcard/download/ .kml. I would like to make it proper. So the current code is: [CODE] The app downloads *.kml from link (ideally, if it's the older Maps on phone it opens kml in it than) to download folder. On other click it opens it with...
android|download|android-download-manager
0
2015-02-25T16:04:03.827Z
2,015
2
16
2
148
2
597
88
3
1
true
false
false
false
false
false
zero
28,723,769
Android: Bring back last activity with notification
<p>Is there a way to bring back the latest activity when the user clicks on the notification? I don't want to start a new activity, just bring back the last/current activity. Is this even possible or is this maybe a bad idea?</p> <p>My problem is my activity in the background starts an alarm sound (under specific cond...
Is there a way to bring back the latest activity when the user clicks on the notification? I don't want to start a new activity, just bring back the last/current activity. Is this even possible or is this maybe a bad idea? My problem is my activity in the background starts an alarm sound (under specific conditions) and...
android|android-activity|notifications
0
2015-02-25T16:05:02.657Z
2,015
2
16
2
69
1
386
51
3
0
false
false
false
false
false
false
zero
28,723,879
Android ssh connection JSch
<p>I try to open ssh connection via JSch. I added com.jcraft.jsch and com.jcraft.jzlib package in my src folder. But when I try to run my application I had an error org.ietf.jgss package. That package I successfully found and added but at this moment I have a problem with package sun.security.jgss.spi and package sun.s...
I try to open ssh connection via JSch. I added com.jcraft.jsch and com.jcraft.jzlib package in my src folder. But when I try to run my application I had an error org.ietf.jgss package. That package I successfully found and added but at this moment I have a problem with package sun.security.jgss.spi and package sun.secu...
java|android|ssh|jsch
0
2015-02-25T16:09:46.933Z
2,015
2
16
2
271
0
444
27
4
0
false
true
false
false
false
false
zero
28,723,959
Cannot resolve 'query(java.lang.String,java.lang.String[],null, null, null, null)'
<p>I am trying to create a film database in an Android application, but it is returning with error. Any ideas what this means?</p> <pre><code>public Cursor returnData() { return db.query(TABLE_NAME, new String[] {FILM, ACTOR, ACTOR2, DIRECTOR, DESCRIPTION}, null, null, null, null); } </code></pre>
I am trying to create a film database in an Android application, but it is returning with error. Any ideas what this means? [CODE]
java|android|sql|android-studio
1
2015-02-25T16:12:45.417Z
2,015
2
16
2
2,162
1
130
82
4
1
true
false
false
false
false
false
low
28,723,986
Android: Can't delete an item in Listview because of PrimaryKey
<p>I'm trying to delete an item in a listview when a button is clicked. I can't do it because the primary key to all items are the same (zero). The primary key is _id and it's an autoincrement value. When I insert an item the id isn't incremented and when I try to get it from database it returns to all objects id=0. I ...
I'm trying to delete an item in a listview when a button is clicked. I can't do it because the primary key to all items are the same (zero). The primary key is _id and it's an autoincrement value. When I insert an item the id isn't incremented and when I try to get it from database it returns to all objects id=0. I tri...
android|android-sqlite
0
2015-02-25T16:14:07.603Z
2,015
2
16
2
112
0
555
63
2
4
true
true
false
false
false
false
zero
28,723,993
FFMPEG HLS stream for Android and IOS
<p>I'm trying to stream to mobile devices with ffmpeg and apache2.2 but I haven't been successful.</p> <p>I used this command to create the segments and the playlist:</p> <pre><code>ffmpeg -i http://x.x.x.x:8080 -codec:v libx264 -r 25 -pix_fmt yuv420p -profile:v baseline -level 3 -b:v 500k -s 640x480 -codec:a aac -st...
I'm trying to stream to mobile devices with ffmpeg and apache2.2 but I haven't been successful. I used this command to create the segments and the playlist: [CODE] The source is a http stream which is streamed by VLC media player. Example content of the list.m3u8 file: [CODE] I created another playlist file - playlist....
android|ios|ffmpeg|m3u8|http-live-streaming
3
2015-02-25T16:14:26.667Z
2,015
2
16
2
8,767
2
733
37
5
5
true
false
true
false
false
false
low
28,724,160
Android Firmware 4.4.2 Bluetooth keep disconnecting
<p>I have a problem in Android Bluetooth connection. I have a bluetooth device connected to the phone. The device will send data to the phone every 10 seconds.</p> <p><strong>Android Firmware version below 4.4.2</strong> has no problem in sending data and bluetooth connection. <strong>Android Firmware version above 4...
I have a problem in Android Bluetooth connection. I have a bluetooth device connected to the phone. The device will send data to the phone every 10 seconds. Android Firmware version below 4.4.2 has no problem in sending data and bluetooth connection. Android Firmware version above 4.4.2 keep disconnecting every 10 seco...
android|bluetooth|disconnected
0
2015-02-25T16:21:42.760Z
2,015
2
16
2
695
1
388
51
3
0
false
false
false
false
false
false
zero
28,724,189
TabHost in a fragment with NavigationDrawer
<p>Well, I'm trying to create a <code>TabHostFragment</code> inside a <code>Fragment</code>, the problem that I'm facing is that I can't implement it because I'm using already a drawer navigation. I was looking for some answers here in SO, but I didn't find the best way to do it. I'm using this <a href="http://www.andr...
Well, I'm trying to create a TabHostFragment inside a Fragment , the problem that I'm facing is that I can't implement it because I'm using already a drawer navigation. I was looking for some answers here in SO, but I didn't find the best way to do it. I'm using this Navigation drawer example , but I've added more frag...
java|android|android-fragments|tabs
1
2015-02-25T16:22:39.923Z
2,015
2
16
2
1,938
1
1,926
43
4
9
true
false
false
false
false
false
low
28,724,203
Android: how to make key-click sound
<p>I am using an ontouch listener to catch key up and key down events. for a repeat function. I'd like to also have a click sound when the button is pressed. I tried adding an onClick method and setting clickable true but the ontouchlistener seems to override the onclicklistener.</p> <p>How can I make a key-click so...
I am using an ontouch listener to catch key up and key down events. for a repeat function. I'd like to also have a click sound when the button is pressed. I tried adding an onClick method and setting clickable true but the ontouchlistener seems to override the onclicklistener. How can I make a key-click sound and also ...
android|onclick|ontouch
0
2015-02-25T16:23:16.570Z
2,015
2
16
2
1,399
3
658
36
3
1
true
false
false
false
false
false
zero
28,724,343
Google Developer Console... no promote to prod action?
<p>This is my first ever Android app and it has just completed the beta testing phase and now ready to go live. When I go the 'PRODUCTION' tab under the APK menu, it says:</p> <blockquote> <p>You currently don't have the necessary rights to make changes to APKs in production. Please ask the account owner to grant ...
This is my first ever Android app and it has just completed the beta testing phase and now ready to go live. When I go the 'PRODUCTION' tab under the APK menu, it says: You currently don't have the necessary rights to make changes to APKs in production. Please ask the account owner to grant you access. The contact emai...
java|android|google-play|google-play-console
1
2015-02-25T16:29:51.257Z
2,015
2
16
2
844
1
841
54
4
0
false
false
false
false
false
false
low
28,724,347
How to configure the Genymotion emulator to the appium?
<p>Through eclipse I have configured the Genymotion path &amp; also I have downloaded the virtual devices in the Genymotion. </p> <p>In Appium, those downloaded virtual devices are visible in the"Launch Device" dropdown menu. Then I set the apk path &amp; try to start the Appium 1.3.4.1.</p> <p>By that time I am gett...
Through eclipse I have configured the Genymotion path & also I have downloaded the virtual devices in the Genymotion. In Appium, those downloaded virtual devices are visible in the"Launch Device" dropdown menu. Then I set the apk path & try to start the Appium 1.3.4.1. By that time I am getting an error message like [C...
eclipse|android-emulator|appium|genymotion
1
2015-02-25T16:29:58.773Z
2,015
2
16
2
7,801
2
614
55
4
1
true
false
true
false
false
false
low
28,724,356
How to reduce the size of Google Play Services in Xamarin?
<p>Is there any way to reduce the size of Google Play Services? After I install Google Play Services the size of my User code size has increased to 6,7 Mb , the maximum of free edition being 128 kb so it don't let me compile .. </p> <p>PS: I need just Admob from Google Play Services</p> <p>Thank you in advance!</p>
Is there any way to reduce the size of Google Play Services? After I install Google Play Services the size of my User code size has increased to 6,7 Mb , the maximum of free edition being 128 kb so it don't let me compile .. PS: I need just Admob from Google Play Services Thank you in advance!
c#|android|xamarin|admob|google-play-services
0
2015-02-25T16:30:16.290Z
2,015
2
16
2
275
0
294
58
5
0
false
true
false
false
false
false
zero
28,724,410
Emulator keep showing "Android"
<p>I am new to android application. i have downloaded Android Studio from <a href="http://developer.android.com/" rel="nofollow noreferrer">http://developer.android.com/</a></p> <p>I just created one project and click on run button.</p> <p>but it just keep showing me from past 2 hours</p> <p>what should i do now ??...
I am new to android application. i have downloaded Android Studio from http://developer.android.com/ I just created one project and click on run button. but it just keep showing me from past 2 hours what should i do now ?? is there any step by step instruction that i can follow?
android
0
2015-02-25T16:31:50.183Z
2,015
2
16
2
95
1
279
31
1
0
false
false
false
false
false
false
zero
28,724,420
Android: writing string to SharedPreferences does not work
<p>I want to convert a HashMap to an JSON so I can write it to my apps Shared Preferences as a string.</p> <p>So this is what I got so far:</p> <pre><code> HashMap&lt;String, String&gt; colorHashMap = new HashMap&lt;String, String&gt;(); colorHashMap.put("test", "test"); colorHashMap.put("ROT","#FF0000"); ...
I want to convert a HashMap to an JSON so I can write it to my apps Shared Preferences as a string. So this is what I got so far: [CODE] at JSONString I get the correct value. but at JSONcolorStringFromSP I only get the standard value. So something happens when I try to write my String to my SharedPreferences. But I ca...
android|json|hashmap|sharedpreferences
0
2015-02-25T16:32:15.603Z
2,015
2
16
2
68
3
354
58
4
1
true
false
false
false
false
false
zero
28,724,439
Crop image from surfaceview
<p>I have to take a photo and crop it in my own camera view. So I created custom surfaceview and draw a rectangle on it ( in onDraw() ). Then, I have to crop image by that rectangle. The problem is that bitmap dimension is not the same as surface view dimension. How can i scale my rectangle to crop from bitmap?</p> <...
I have to take a photo and crop it in my own camera view. So I created custom surfaceview and draw a rectangle on it ( in onDraw() ). Then, I have to crop image by that rectangle. The problem is that bitmap dimension is not the same as surface view dimension. How can i scale my rectangle to crop from bitmap? Camera pre...
android|surfaceview|crop
1
2015-02-25T16:33:14.250Z
2,015
2
16
2
626
0
339
27
3
0
false
true
false
false
false
false
low
28,724,455
Adding item to listview through a dialog
<p>I'm using a custom listview which I want to add an item to my listview. But it seems to be skipping all the code to add the item. Can someone please tell me how I should adjust my code to achieve this.</p> <p>Thank you in advance.</p> <p>This is my Main Activity in which I call a custom Dialog</p> <pre><code>pub...
I'm using a custom listview which I want to add an item to my listview. But it seems to be skipping all the code to add the item. Can someone please tell me how I should adjust my code to achieve this. Thank you in advance. This is my Main Activity in which I call a custom Dialog [CODE] This is my custom Dialog [CODE]
android
0
2015-02-25T16:33:43.143Z
2,015
2
16
2
355
1
319
40
1
2
true
false
false
false
false
false
zero
28,724,595
How can I use the Gesture detector within a Framelayout to initiate left and right animations on the cardview it is part of?
<p>I am using this framelayout to hold each of my textviews etc. and I would like, if possible when my gesturedetector detects either a left or right swipe to initiate the appropriate left or right animations on that particular cardview. </p> <p>But I can't find any information online for how to accomplish this.</p> ...
I am using this framelayout to hold each of my textviews etc. and I would like, if possible when my gesturedetector detects either a left or right swipe to initiate the appropriate left or right animations on that particular cardview. But I can't find any information online for how to accomplish this. Code: MyFrameLayo...
java|android|xml|android-layout|android-activity
0
2015-02-25T16:40:04.887Z
2,015
2
16
2
1,385
1
342
124
5
2
true
false
false
false
false
false
zero
28,724,626
Update ListView in Viewpager
<p>Forgive my ignorance of Android. I'm just learning. I'm building an app that uses Google's SlidingTabsColors sample code for the main layout <a href="https://developer.android.com/samples/SlidingTabsColors/index.html" rel="nofollow noreferrer">(The developer website)</a> .</p> <p>I've got the layout working the way ...
Forgive my ignorance of Android. I'm just learning. I'm building an app that uses Google's SlidingTabsColors sample code for the main layout (The developer website) . I've got the layout working the way I want it to with dummy data. The idea is each tab will store a user's score for each round and then display their to...
java|android|android-fragments|android-listview|android-viewpager
0
2015-02-25T16:41:38.140Z
2,015
2
16
2
894
2
1,397
28
5
2
true
false
false
false
false
false
zero
28,724,635
Listview using JSON from RESTApi Android
<p>I'm trying to fill a listviews content with JSON Objects obtained from a REST service I've made.</p> <pre><code>JSONArray users = new JSONArray(result); jsonList = users; </code></pre> <p>I retrieve the JSONArray and convert that array into an <code>ArrayList&lt;String&gt;</code>, which I'm using to fill my listvi...
I'm trying to fill a listviews content with JSON Objects obtained from a REST service I've made. [CODE] I retrieve the JSONArray and convert that array into an ArrayList<String> , which I'm using to fill my listview with. [CODE] But when I run the application, there is no data at all in the listview. I don't really kno...
android|json|listview
1
2015-02-25T16:41:52.803Z
2,015
2
16
2
2,375
2
528
40
3
3
true
false
false
false
false
false
low