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,764,035
Trying to change the Background color of the Activity using Preference Framework
<p>hi i am new to android i have this small app that changes the background color of the main Activity to red..using the Preference framework.but it is not working please Help</p> <p>Note : I am using Genymotion emulator</p> <p>code in Main Activity</p> <pre><code>package com.example.prefactivity; import android.ap...
hi i am new to android i have this small app that changes the background color of the main Activity to red..using the Preference framework.but it is not working please Help Note : I am using Genymotion emulator code in Main Activity [CODE] code in Settings Activity [CODE] logcat file [CODE]
android|preferenceactivity
0
2015-02-27T11:27:27.683Z
2,015
2
11
4
360
1
291
80
2
3
true
false
false
false
false
false
zero
28,764,041
how to move an image up, down, left or right as the player wants?
<p>I have project this semester and it is an Android Game with 2 players (user and device), What i want is if the user selected and object (image) on the screen and moved it using his finger to any side it moves to the side and save the new coordinators in array ?</p> <p>Shall i use <code>OnDragListener</code>, <code>...
I have project this semester and it is an Android Game with 2 players (user and device), What i want is if the user selected and object (image) on the screen and moved it using his finger to any side it moves to the side and save the new coordinators in array ? Shall i use OnDragListener , GestureListener or what ? Tha...
android
0
2015-02-27T11:27:43.133Z
2,015
2
11
4
395
1
323
65
1
0
false
false
false
false
false
false
zero
28,764,073
Custom ViewGroup (compound view) onMeasure and onLayout calls in ViewPager
<p>I have developed custom compound view which extends <code>FrameLayout</code> and includes several ui elements.</p> <p>After all children are measured I want so resize some elements and set paddings depending on other element size.</p> <p>As I understand the right place to do it is <code>onMeasure</code> after call...
I have developed custom compound view which extends FrameLayout and includes several ui elements. After all children are measured I want so resize some elements and set paddings depending on other element size. As I understand the right place to do it is onMeasure after calling super.onMeasure(widthMeasureSpec, heightM...
android-layout|android-view|android-custom-view|android-ui
0
2015-02-27T11:29:08.183Z
2,015
2
11
4
1,006
1
890
74
4
0
false
false
false
false
false
false
zero
28,764,093
Calabash - My device won't rotate
<p>I'm discovering Calabash, using it with cucumber and I'm having an issue.</p> <p>I started some code to test my basic app : </p> <pre><code>Scenario: I can see a button Test Button When I enter "Something" into input field number 1 Then I wait Then I press the "Test Button" button Then I wait Then I shou...
I'm discovering Calabash, using it with cucumber and I'm having an issue. I started some code to test my basic app : [CODE] Everything works fine and everything is passed until I arrive on the device rotation step. It just doesn't work (doesn't rotate) and is treated as an " undefined " instead of passed and the very l...
android|calabash|calabash-android
1
2015-02-27T11:29:59.887Z
2,015
2
11
4
80
1
468
33
3
1
true
false
false
false
false
false
low
28,764,222
Using Android location updates efficiently
<p>I have just started playing with the location services that android provides, I was thinking about the following code:</p> <pre><code>LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); LocationListener locationListener = new LocationListener() { public void onL...
I have just started playing with the location services that android provides, I was thinking about the following code: [CODE] When the location updates I was going to update a text view with the speed using the getSpeed() method that is available. My question is, does this nuke the battery life of the phone? if so, are...
android|location
0
2015-02-27T11:36:55.853Z
2,015
2
11
4
197
1
543
42
2
1
true
false
false
false
false
false
zero
28,764,256
Appium .getPageSources xml encoding
<p>If I try to get <strong>driver.getPageSource()</strong> in Android Appium, it gives me XML with bad encoding like:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; ... &lt;android.widget.TextView index="1" text="Florbal - mu?i" class="android.widget.TextView" ... bounds="[68,655][712,696]" resource-id...
If I try to get driver.getPageSource() in Android Appium, it gives me XML with bad encoding like: [CODE] But text should be "Florbal - muži" I can see right encoding in UI Automator Viewer. And its not caused by Ëclipse console encoding.
android|xml|encoding|appium
0
2015-02-27T11:39:10.223Z
2,015
2
11
4
756
1
237
35
4
1
true
false
false
false
false
false
zero
28,764,322
Trying to stop storage data
<p>I wrote this code to save sensors data in sd by .txt file. It works but when I press the "stop" button it doesn't stop storing data. Anyone can tell me why? About me the problem is in the LongOperation class or in the stop button, but I can't find the solution. This is the code:</p> <p>Here is the "stop" button:...
I wrote this code to save sensors data in sd by .txt file. It works but when I press the "stop" button it doesn't stop storing data. Anyone can tell me why? About me the problem is in the LongOperation class or in the stop button, but I can't find the solution. This is the code: Here is the "stop" button: [CODE] Here t...
java|android|save|sensors
0
2015-02-27T11:43:06.303Z
2,015
2
11
4
31
0
469
27
4
3
true
true
false
false
false
false
zero
28,764,339
List of countries and their cities in android
<p>I have a form in which user has to select his country from a spinner and later user has to select the city from another spinner. So is there anyway to where I can get all the countries in my spinner and the corresponding cities as well? Please help as it will be really impossible to make an array of all the countrie...
I have a form in which user has to select his country from a spinner and later user has to select the city from another spinner. So is there anyway to where I can get all the countries in my spinner and the corresponding cities as well? Please help as it will be really impossible to make an array of all the countries a...
android
-1
2015-02-27T11:43:53.910Z
2,015
2
11
4
5,936
1
343
45
1
0
false
false
true
false
false
true
negative
28,764,351
Record video and audio from a GLSurfaceView and export it to .mp4
<p>I am a newbie in OpenGL. I want to record video and audio from a GLSurfaceView and export it to .mp4 (or other formats). I have a <code>GlsurfaceView</code> that implement <code>Renderer</code></p> <p>I've tried using fadden examples's in <a href="http://bigflake.com/mediacodec/" rel="noreferrer">bigflake.com</a> l...
I am a newbie in OpenGL. I want to record video and audio from a GLSurfaceView and export it to .mp4 (or other formats). I have a GlsurfaceView that implement Renderer I've tried using fadden examples's in bigflake.com like EncodeAndMuxTest.java ,or RecordFBOActivity.java in google/grafika but without success because I...
android|android-mediacodec|mediamuxer
6
2015-02-27T11:44:37.100Z
2,015
2
11
4
4,263
2
416
65
3
0
false
false
true
false
false
false
medium
28,764,390
Using Samsung S-Pen in Canvas
<p>I am working on a web application where the user should be abled to sign a document on a tablet. We use the Galaxy Tab 12.2 because the S-Pen has the desired precision. The canvas where i draw on uses listens to the <code>touch</code> events to draw on the canvas.</p> <pre><code> canvas.addEventListener('to...
I am working on a web application where the user should be abled to sign a document on a tablet. We use the Galaxy Tab 12.2 because the S-Pen has the desired precision. The canvas where i draw on uses listens to the touch events to draw on the canvas. [CODE] The problem here is, that if the user touches the canvas with...
javascript|android|html|canvas
4
2015-02-27T11:46:56.320Z
2,015
2
11
4
2,452
3
554
29
4
1
true
false
false
false
false
false
low
28,764,392
What is absolute path of built in System DropBox folder in android
<p>I need to copy some files from sdcard to system dropbox folder from a shell script, for that i need to hardcode the absolute path of the system dropbox folder. </p>
I need to copy some files from sdcard to system dropbox folder from a shell script, for that i need to hardcode the absolute path of the system dropbox folder.
android
0
2015-02-27T11:46:59.280Z
2,015
2
11
4
459
0
159
66
1
0
false
true
false
false
false
false
zero
28,764,414
how can I set a ringtone for a specific contact in android in API level 21?
<p>I know how to change phone ringtone, also how to get contacts, but how can I set a ringtone for a specific contact?</p> <pre><code>Uri contactData = ContactsContract.Contacts.CONTENT_URI; String contactId = contactData.getLastPathSegment(); Cursor localCursor = managedQuery(contactData, PROJECTION, null, null, nul...
I know how to change phone ringtone, also how to get contacts, but how can I set a ringtone for a specific contact? [CODE]
android|android-contacts
3
2015-02-27T11:47:53.347Z
2,015
2
11
4
1,257
1
122
75
2
1
true
false
false
false
false
false
low
28,764,494
ScrollTo doesn't work correctly in Android emulator
<p>I created some Appium tests and successfuly run them on my real Android device. Then I prepared Android emulator and run the tests again.</p> <p>It seems that ScrollTo doesn't work correctly in the emulator - it doesn't go down through all "pages" to the certain text.</p> <p>Is there any way to make Appium to list...
I created some Appium tests and successfuly run them on my real Android device. Then I prepared Android emulator and run the tests again. It seems that ScrollTo doesn't work correctly in the emulator - it doesn't go down through all "pages" to the certain text. Is there any way to make Appium to list down all the scree...
java|android|appium
0
2015-02-27T11:51:50.910Z
2,015
2
11
4
96
0
345
51
3
0
false
true
false
false
false
false
zero
28,764,501
super.onStop() called without an explicit call from the inherited class
<p>I have an abstract class which is the base class for all the activities in my app:</p> <pre><code>public abstract class BaseActivity extends Activity { // class content } </code></pre> <p>In this class, I have the onStop() method:</p> <pre><code>@Override protected void onStop(){ super.onStop(); Log....
I have an abstract class which is the base class for all the activities in my app: [CODE] In this class, I have the onStop() method: [CODE] And, when I want to override the onStop method in a inherit activity, I do: [CODE] Now, the strange thing is: in every inherit activity the onStop() method from BaseActivity is cal...
java|android|inheritance|android-activity|android-lifecycle
0
2015-02-27T11:52:18.997Z
2,015
2
11
4
112
1
492
71
5
4
true
false
false
false
false
false
zero
28,764,512
ContentResolver.insert returns null EVENTUALLY
<p>I have an App which inserts data from activity and background servicer from multiply threads into 4-5 tables using custom ContentProvider.</p> <p>this is AndroidManifest.xml (I don't declare <code>android:read(write)Permission</code> and <code>&lt;uses-permission&gt;</code> for provider):</p> <pre><code>&lt;applic...
I have an App which inserts data from activity and background servicer from multiply threads into 4-5 tables using custom ContentProvider. this is AndroidManifest.xml (I don't declare android:read(write)Permission and <uses-permission> for provider): [CODE] this is insert() implementation inside DefaultProvider class: ...
android|sqlite|android-contentprovider|android-contentresolver
4
2015-02-27T11:52:52.240Z
2,015
2
11
4
1,176
0
964
46
4
3
true
true
false
false
false
false
low
28,764,530
android ImageView adjustViewBounds not working. Whitespace
<p>I have this problem that when I run application I get undesired white space on top of and below my image views.</p> <p>I have tried to use adjustViewBounds and different scale types, the thing is I want to keep my pictures, exactly as they are, but just remove the whitespace.</p> <p>The Imageviews changes to a src...
I have this problem that when I run application I get undesired white space on top of and below my image views. I have tried to use adjustViewBounds and different scale types, the thing is I want to keep my pictures, exactly as they are, but just remove the whitespace. The Imageviews changes to a src picture in my java...
android|xml|touchimageview|adjustviewbounds
0
2015-02-27T11:53:47.467Z
2,015
2
11
4
1,058
4
1,007
58
4
1
true
false
false
false
false
false
zero
28,764,546
Video Playing in horizontal list view
<p>I am using horizontal list view <a href="https://github.com/sephiroth74/HorizontalVariableListView" rel="nofollow">https://github.com/sephiroth74/HorizontalVariableListView</a> for showing video thumbnail using Adapter. Now i want to play video on every thumbnail, For this i inflated my custom video player and its w...
I am using horizontal list view https://github.com/sephiroth74/HorizontalVariableListView for showing video thumbnail using Adapter. Now i want to play video on every thumbnail, For this i inflated my custom video player and its working fine. But my problem is that when i clicked more then one video then , all clicked ...
android|android-video-player|horizontallist
1
2015-02-27T11:54:35.113Z
2,015
2
11
4
398
0
543
37
3
1
true
true
false
false
false
false
low
28,764,559
how to know when other app is launched in android
<p>Hi friend<br> I am developing an app in android and i want to know when other application is launched . <br> for example i want when users run -viber- i running some code in my app . (for example silent the phone or anything) <br> DRAW ON OTHER APPLICATION can help me or i should to run a service or broadcastReciver...
Hi friend I am developing an app in android and i want to know when other application is launched . for example i want when users run -viber- i running some code in my app . (for example silent the phone or anything) DRAW ON OTHER APPLICATION can help me or i should to run a service or broadcastReciver for this ? for e...
android|service|android-broadcast
1
2015-02-27T11:55:18.807Z
2,015
2
11
4
172
0
410
49
3
1
true
true
false
false
false
false
low
28,764,588
how to convert activity to fragment
<p>I am trying to use navigation drawer, I have an <code>Activity</code> code which contains a <code>ListView</code>. I want to convert all the <code>Activity</code> to <code>Fragment</code>, how can I do this?</p> <p>Please can someone post my code converted into <code>Fragment</code> ?</p> <p>This is my <code>activ...
I am trying to use navigation drawer, I have an Activity code which contains a ListView . I want to convert all the Activity to Fragment , how can I do this? Please can someone post my code converted into Fragment ? This is my activity code: [CODE] I have converted my code: [CODE] But when I click on the Navigation Dra...
android|android-activity|android-fragments|fragment
0
2015-02-27T11:56:52.453Z
2,015
2
11
4
2,350
1
383
35
4
3
true
false
false
false
false
false
zero
28,764,679
Cannot create an object for SQLiteOpenHelper from AsyncTask thread?
<p>I have to create an object for SQLiteOpenHelper from AsyncTask thread. If I use <code>this</code> as the <code>Context</code> parameter, I'm getting an error - <code>it cannot be applied</code>.</p> <p>Here are my classes :</p> <p><strong>MySQLiteHelper.java</strong></p> <pre><code>public class MySQLiteHelper ex...
I have to create an object for SQLiteOpenHelper from AsyncTask thread. If I use this as the Context parameter, I'm getting an error - it cannot be applied . Here are my classes : MySQLiteHelper.java [CODE] Parsing.java [CODE] AlarmReceiver.java [CODE] Answer to my question : The method suggested by ZygoteInit as in mar...
java|android|android-asynctask|android-sqlite
0
2015-02-27T12:01:07.213Z
2,015
2
12
4
517
4
1,450
67
4
3
true
false
false
false
false
false
zero
28,764,687
Android: how to launch activity from notification when task is already running?
<p>I've inherited this (Xamarin) Android application. It consists of several activities and it also has a <code>BroadcastReceiver</code> that responds to GCM messages. Whenever a GCM message is received, the <code>BroadcastReceiver</code> puts a notification in the notification area (e.g. <em>"There are promotions avai...
I've inherited this (Xamarin) Android application. It consists of several activities and it also has a BroadcastReceiver that responds to GCM messages. Whenever a GCM message is received, the BroadcastReceiver puts a notification in the notification area (e.g. "There are promotions available at some store or another" )...
android|xamarin.android|android-notifications|android-pendingintent
0
2015-02-27T12:01:49.247Z
2,015
2
12
4
1,584
1
1,484
79
4
1
true
false
false
false
false
false
zero
28,764,833
It is possible to stop a thread until a dialog option has been chosed?
<p>As all we know android dialogs can be only created and show under main UI thread. </p> <p>The problem is that i have a progress bar and a lot of work being done in a thread and in some part of the progress i must display a dialog and the user must select an option to get the work continuing.</p> <p>So.. i need to ...
As all we know android dialogs can be only created and show under main UI thread. The problem is that i have a progress bar and a lot of work being done in a thread and in some part of the progress i must display a dialog and the user must select an option to get the work continuing. So.. i need to display a dialog in ...
android|multithreading|dialog|android-dialog|hardware-acceleration
0
2015-02-27T12:10:51.903Z
2,015
2
12
4
2,296
2
488
70
5
2
true
false
false
false
false
false
zero
28,764,990
String to Image convertion in php and store in mysql database
<p>I want to store an image(which is passed by an android developer) into mysql database. I'm working in PHP. Plz help me someone to script php code.</p> <p>Actualy I asked half question. Main problem area is that how to store image in upload folder?</p>
I want to store an image(which is passed by an android developer) into mysql database. I'm working in PHP. Plz help me someone to script php code. Actualy I asked half question. Main problem area is that how to store image in upload folder?
php|android|mysql|string|image
0
2015-02-27T12:20:05.673Z
2,015
2
12
4
631
3
240
61
5
0
false
false
false
false
false
false
zero
28,765,024
Return string from Asynctask
<p>i am trying to parse a jsonObject, but i cant get the result out of <strong>doInBackground</strong> into <strong>onPostExecute</strong></p> <p>Here is my AsyncTask code:</p> <pre><code>private class GetContacts extends AsyncTask&lt;Void, Void, Void&gt; { @Override protected void onPreExecute() { ...
i am trying to parse a jsonObject, but i cant get the result out of doInBackground into onPostExecute Here is my AsyncTask code: [CODE] I know its propably because i have return null there, but when i make return string then i get error. I know in fact that jsonStr holds json data, i can see it in log: Response:﹕ > {"u...
android|json|android-asynctask
2
2015-02-27T12:22:08.823Z
2,015
2
12
4
8,358
2
461
28
3
1
true
false
true
false
false
false
low
28,765,065
Get current displayed text in textview
<p>I have a textView with a max linenumber. When the text extends the max linenumber, I want to show a toggle button to expand the text. </p> <p>Is there any way to see if the text extends the max linenumbers?</p>
I have a textView with a max linenumber. When the text extends the max linenumber, I want to show a toggle button to expand the text. Is there any way to see if the text extends the max linenumbers?
android|textview
0
2015-02-27T12:25:00.393Z
2,015
2
12
4
106
2
198
38
2
0
false
false
false
false
false
false
zero
28,765,075
How to stop shortcut already exists message in android
<p>I have code snippet for the creating shortcut icon in home page of android device.</p> <pre><code>private void addShortcut() { Intent shortcutIntent = new Intent(getApplicationContext(),MainActivity.class); shortcutIntent.setAction(Intent.ACTION_MAIN); shortcutIntent.addCategory(Intent.CATEGORY_LAU...
I have code snippet for the creating shortcut icon in home page of android device. [CODE] Then call it in this way: [CODE] I don't want to show this message when application start.How to remove this icon duplicate message or how to mitigate icon duplication ?
android
0
2015-02-27T12:25:33.720Z
2,015
2
12
4
3,023
1
259
54
1
2
true
false
true
false
false
false
zero
28,765,082
Visibility scope project/module
<p>I have two projects/modules linked in Android Studio. One of them acts as an Api/Core, and I need that certain classes can by accessible only from this module but accesibles from all its packages (so “default” in this case is useless).</p> <p>But it seems that in Java it isn’t a modifier like internal (c#, swift). ...
I have two projects/modules linked in Android Studio. One of them acts as an Api/Core, and I need that certain classes can by accessible only from this module but accesibles from all its packages (so “default” in this case is useless). But it seems that in Java it isn’t a modifier like internal (c#, swift). “Module” mo...
java|c#|android|scope|jvm
7
2015-02-27T12:25:45.680Z
2,015
2
12
4
3,684
3
517
31
5
0
false
false
true
false
false
false
medium
28,765,142
Fetching Phone Number from android is not properly working
<p>Using phone.NUMBER for fetching the contacts also return brackets. I am testing it on emulator my Emulator stores contact in (XXX)XXX-XXXX so when I use</p> <pre><code>int phoneIdx = c.getColumnIndex(Phone.NUMBER); int nameid = c.getColumnIndex(Phone.DISPLAY_NAME); number = c.getString(phoneIdx)...
Using phone.NUMBER for fetching the contacts also return brackets. I am testing it on emulator my Emulator stores contact in (XXX)XXX-XXXX so when I use [CODE] number returns (XXX)XXX-XXXX instead of XXXXXXXXXX
android|android-contacts
0
2015-02-27T12:28:26.193Z
2,015
2
12
4
59
3
210
58
2
1
true
false
false
false
false
false
zero
28,765,199
What kind of syntax is this in Makefile? (A := $(B.$(C).D))
<pre><code>TARGET_DEVICE := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEVICE) </code></pre> <p>It comes from the Android makefile. The using of dot(.) is confusing me, What kind of syntax is this? Any keyword related to this syntax?</p>
[CODE] It comes from the Android makefile. The using of dot(.) is confusing me, What kind of syntax is this? Any keyword related to this syntax?
android|makefile|gnu-make
1
2015-02-27T12:31:27.753Z
2,015
2
12
4
123
1
144
59
3
1
true
false
false
false
false
false
low
28,765,312
Does a Webview have separate Surface?
<p>I am confused with my understanding related to webview and surface and request someone to clarify me on this:</p> <p>If I have a webview in a layout which I inflate on top of my activity layout, in the same activity context, does it have its own separate surface for drawing things or it uses the same surface of the...
I am confused with my understanding related to webview and surface and request someone to clarify me on this: If I have a webview in a layout which I inflate on top of my activity layout, in the same activity context, does it have its own separate surface for drawing things or it uses the same surface of the window, th...
android|android-webview
1
2015-02-27T12:37:30.167Z
2,015
2
12
4
88
0
479
37
2
0
false
true
false
false
false
false
low
28,765,346
android - inserting to a google spreadsheet faster
<p>I have an android app which writes to a google spreadsheet using the sheets API.</p> <p>I am writing to a specific column, for example - 4</p> <p><strong>here is the code of the writing:</strong></p> <pre><code>URL practiceToUpdateFeedUrl = null; CellFeed practiceToUpdateCellFeed = null; int ROWS_NUMBER = 20; pr...
I have an android app which writes to a google spreadsheet using the sheets API. I am writing to a specific column, for example - 4 here is the code of the writing: [CODE] My question is - is there a faster way to do this? In this way I make about 20 calls to the API, is there a faster way? thanks in advance
android|google-api|google-sheets|cell|google-spreadsheet-api
0
2015-02-27T12:39:50.010Z
2,015
2
12
4
175
1
309
50
5
1
true
false
false
false
false
false
zero
28,765,357
How to open one fragment as a Page from another fragment using button without activity
<p>I am using drawer navigation where all pages are fragments.How to open fragment page using button on another fragment ?</p>
I am using drawer navigation where all pages are fragments.How to open fragment page using button on another fragment ?
android|android-fragments
0
2015-02-27T12:40:21.360Z
2,015
2
12
4
513
1
119
86
2
0
false
false
false
false
false
false
zero
28,765,362
Q: SlidingDrawer is Not Scrolling Up
<p>My SlidingDrawer is working but not Scrolling Up enough. Handle when come to bottom of the "MENÜYE DÖN" button, stopping! I can't scroll more. I know SlidingDrawer is deprecated but I do not know the alternative.</p> <p>I can see in Preview, SlidingDrawer's border is narrow.</p> <p>Here is XML</p> <pre><code>&lt...
My SlidingDrawer is working but not Scrolling Up enough. Handle when come to bottom of the "MENÜYE DÖN" button, stopping! I can't scroll more. I know SlidingDrawer is deprecated but I do not know the alternative. I can see in Preview, SlidingDrawer's border is narrow. Here is XML [CODE]
java|android|xml|android-linearlayout|slidingdrawer
-1
2015-02-27T12:40:33.043Z
2,015
2
12
4
49
1
287
36
5
1
true
false
false
false
false
true
negative
28,765,401
Android: QCMediaPlayer could not be located
<p>i have a problem with the mediaplayer since i updatet my android -version to 5.0.2 on my lg-smartphone.</p> <p>i have a separate class to play the music</p> <pre><code>public class MediaPlayerService { public static MediaPlayer mediaPlayer; private static SoundPool soundPool; public static boolean isp...
i have a problem with the mediaplayer since i updatet my android -version to 5.0.2 on my lg-smartphone. i have a separate class to play the music [CODE] I want to play a soundfile over the Mainactivity with [CODE] but i became the following log-message: [CODE] With soundpool it works fine, but not with the mediaplayer....
android|android-mediaplayer
19
2015-02-27T12:42:42.060Z
2,015
2
12
4
10,796
1
416
43
2
3
true
false
true
false
true
false
medium
28,765,409
Extending Titanium WebViewProxy for Android - Build error
<p>I need to extend Titanium's Android Webview with some additional functionality, however I'm not able to build my titanium project after including my created module.</p> <p>My module has the titanium-ui.jar on it's build path and I have copied the original Titanium WebViewProxy.java into my module project. I haven't...
I need to extend Titanium's Android Webview with some additional functionality, however I'm not able to build my titanium project after including my created module. My module has the titanium-ui.jar on it's build path and I have copied the original Titanium WebViewProxy.java into my module project. I haven't added any ...
titanium|titanium-modules|titanium-proxy|titanium-android
0
2015-02-27T12:43:11.180Z
2,015
2
12
4
159
1
1,178
57
4
0
false
false
false
false
false
false
zero
28,765,423
View recycling in listview causes postDelayed() issue
<p>I have a list of user tasks/to-dos which have deadlines associated with it. Every minute on the minute I update the <code>TextView</code> that shows the time remaining for these task.</p> <p>The problem I have is that some times when the textview gets updated the wrong time remaining gets displayed, especially if I...
I have a list of user tasks/to-dos which have deadlines associated with it. Every minute on the minute I update the TextView that shows the time remaining for these task. The problem I have is that some times when the textview gets updated the wrong time remaining gets displayed, especially if I scroll up and down then...
android|runnable|android-handler|postdelayed
0
2015-02-27T12:43:58.117Z
2,015
2
12
4
427
1
849
53
4
1
true
false
false
false
false
false
zero
28,765,450
How to delete the first 10 row from database SQlite in android?
<p>I am building an android application where I am using data helper class to store the data.</p> <p>Now the problem I am facing is How can I delete top old 10 data from table.</p> <p>I am using below query but my application crashed.</p> <pre><code> public void deleteRec() { String ALTER_TBL ="delete from " ...
I am building an android application where I am using data helper class to store the data. Now the problem I am facing is How can I delete top old 10 data from table. I am using below query but my application crashed. [CODE] And calling using - [CODE]
android|sqlite
1
2015-02-27T12:45:20.697Z
2,015
2
12
4
1,631
3
251
63
2
2
true
false
false
false
false
false
low
28,765,469
Android drawArc irregular arc
<p><a href="http://imageshack.com/a/img538/4559/7YkH2h.png" rel="nofollow">Illustration</a></p> <p>I am drawing multiple segments of an arc using the same RectF, however the arcs do not line up properly. I tried all CAP Options, but it never looks symmetrical.</p> <pre><code> private void initPaint(TypedArray a){ ...
Illustration I am drawing multiple segments of an arc using the same RectF, however the arcs do not line up properly. I tried all CAP Options, but it never looks symmetrical. [CODE] I also tried using a static RectF, that is not changed by any resizing events, so that is not the problem. [CODE] My guess would be, that ...
android|canvas|draw
1
2015-02-27T12:46:25.270Z
2,015
2
12
4
374
1
517
29
3
2
true
false
false
false
false
false
low
28,765,533
Style DatePicker on a android tablet on lollipop
<p>I have an application which use a DatePicker &amp; TimePicker.</p> <p>On my nexus 7 2013 on lollipop, I've another layout :</p> <p><img src="https://i.stack.imgur.com/2XWQ1.png" alt="layout on the nexus 7 2013 lollipop"></p> <p>but i expect that layout (which is on a galaxy tab 2 on ics) :</p> <p><img src="https...
I have an application which use a DatePicker & TimePicker. On my nexus 7 2013 on lollipop, I've another layout : but i expect that layout (which is on a galaxy tab 2 on ics) : my xml ressource is : [CODE] how can I correct that layout ? Regards
java|android|datepicker
0
2015-02-27T12:49:42.260Z
2,015
2
12
4
740
0
244
48
3
1
true
true
false
false
false
false
zero
28,765,546
Android - TTS set language to Locale.getDefault not possible without internet?
<p>I'm trying to set the language of my <code>TextToSpeech</code>-object to Dutch. This is the default language of my Android tablet on which the app will run, and when I log <code>Locale.getDefault()</code> I get "nl_NL"so this is correct. </p> <p>I've read that for TTS you need to supply the ISO Language Code and IS...
I'm trying to set the language of my TextToSpeech -object to Dutch. This is the default language of my Android tablet on which the app will run, and when I log Locale.getDefault() I get "nl_NL"so this is correct. I've read that for TTS you need to supply the ISO Language Code and ISO Country Code when setting the langu...
java|android|locale|text-to-speech
2
2015-02-27T12:50:34.167Z
2,015
2
12
4
4,176
2
1,139
78
4
1
true
false
true
false
false
false
low
28,765,613
Call a fragmentMethod from another fragment, but can't refer to them in parentFragmentActivity's View pager
<p>I m new to android and i m having trouble with fragment communication, reading about it discovered the standard method of creating an interface and implementing it from the parentActivity which doesn't work in my case which is as follows.</p> <p><em>I have an Activity named as ActivityA which extends fragment activ...
I m new to android and i m having trouble with fragment communication, reading about it discovered the standard method of creating an interface and implementing it from the parentActivity which doesn't work in my case which is as follows. I have an Activity named as ActivityA which extends fragment activity,in which i ...
java|android|android-fragments|android-viewpager
0
2015-02-27T12:53:12.963Z
2,015
2
12
4
42
0
1,506
107
4
3
true
true
false
false
false
false
zero
28,765,667
how to make android layout which is scrollable and zoomable?
<p>I want to make a layout like shown in images below. it's like googlemap and you can zoom in/out with multi finger touch, and also scrolling in four way. is there any library supporting this layout?</p> <p>zoomed out image: [<a href="http://i57.tinypic.com/2hoz6rl.png][1]" rel="nofollow">http://i57.tinypic.com/2hoz6...
I want to make a layout like shown in images below. it's like googlemap and you can zoom in/out with multi finger touch, and also scrolling in four way. is there any library supporting this layout? zoomed out image: [ http://i57.tinypic.com/2hoz6rl.png][1] zoomed in and scrolled: [ http://i58.tinypic.com/zxnqqb.png][2]...
android|android-layout
-1
2015-02-27T12:56:06.863Z
2,015
2
12
4
157
2
352
60
2
0
false
false
false
false
false
true
negative
28,765,721
FrameLayout stealing TextView's touch event
<p>I have this simple code:</p> <pre><code>public class MainActivity extends ActionBarActivity { public TextView textView; StringBuilder builder = new StringBuilder(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ...
I have this simple code: [CODE] ...and this simple layout: [CODE] My problem is that my TextView's onTouchListener is not receiving the touch events, instead I see this in Logcat: ViewRoot's Touch event: ACTION_UP It seems that my FrameLayout is stealing the touch events. How can I make this work? Should the child get ...
android|events|textview|touch
0
2015-02-27T12:59:07.537Z
2,015
2
12
4
953
2
372
43
4
2
true
false
false
false
false
false
zero
28,765,741
How click in necessary coordinate x,y by Espresso in test?
<p>I need click by Espresso testing in x, y. </p> <p>I have view:</p> <pre><code>&lt;view xmlns:android="http://schemas.android.com/apk/res/android" class="uk.co.senab.actionbarpulltorefresh.extras.actionbarcompat.PullToRefreshLayout" android:layout_width="match_parent" android:layout_height="match_paren...
I need click by Espresso testing in x, y. I have view: [CODE] So, in panel view: in top drawing date, under strings: text1 and text2 on one line, under some content, under - button. I draw text1 and text2 on canvas. I need click on text1 and text2 by Espresso. But, if I write: onView(withText(String.valueOf(R.string.te...
android|testing|canvas|android-espresso|coordinate
0
2015-02-27T13:00:15.277Z
2,015
2
13
4
2,450
2
610
58
5
2
true
false
false
false
false
false
zero
28,765,744
Bad Inheritance
<p>I'm doing an Android App and for some reason my inheritance is not working.</p> <h3>WITBase:</h3> <pre><code>public class WITBase extends Activity { public static List &lt;History&gt; searches = new ArrayList&lt;History&gt;(); public int index; public boolean newHistory(History history){ searches...
I'm doing an Android App and for some reason my inheritance is not working. WITBase: [CODE] and here's the problem: WITInfo: [CODE] I don't know if this informations will be enough for you to help me, so if you need something more i'll write here.
android|inheritance
-1
2015-02-27T13:00:32.423Z
2,015
2
13
4
54
1
247
15
2
2
true
false
false
false
false
true
negative
28,765,783
How to disable or avoid the language translation option on Android webview?
<p>I'd like to embed a webwiew in my app, but I would like to avoid the language translate option that sometimes appears when loading a web. I've seen that if you are browsing whit Chrome there is a setting option to disable (<a href="http://en.kioskea.net/faq/12336-google-chrome-disable-the-translation-of-foreign-lang...
I'd like to embed a webwiew in my app, but I would like to avoid the language translate option that sometimes appears when loading a web. I've seen that if you are browsing whit Chrome there is a setting option to disable ( http://en.kioskea.net/faq/12336-google-chrome-disable-the-translation-of-foreign-language-websit...
android|webview|translate
0
2015-02-27T13:02:26.173Z
2,015
2
13
4
793
0
527
75
3
0
false
true
false
false
false
false
zero
28,765,787
Is there a constant part in GCM's regId?
<p>Can I use a part of the registration id in Google Cloud Messaging to recognize a device, if it sends a new registration id to the App-Server?</p>
Can I use a part of the registration id in Google Cloud Messaging to recognize a device, if it sends a new registration id to the App-Server?
android|google-cloud-messaging
0
2015-02-27T13:02:35.280Z
2,015
2
13
4
41
1
141
40
2
0
false
false
false
false
false
false
zero
28,765,866
InputType data type in xml layout
<p>How the string representation of InputType in xml layout is converted to integer values in code? For example in xml layout this assignment</p> <pre><code>android:inputType="number" </code></pre> <p>will be converted to</p> <pre><code>InputType.TYPE_CLASS_NUMBER </code></pre> <p>I cannot find the conversion funct...
How the string representation of InputType in xml layout is converted to integer values in code? For example in xml layout this assignment [CODE] will be converted to [CODE] I cannot find the conversion function. Actually the story is as follows: I am creating a new component containing some other components including ...
android|android-edittext|components
2
2015-02-27T13:06:09.707Z
2,015
2
13
4
646
0
746
33
3
3
true
true
false
false
false
false
low
28,765,905
How to store an integer in an activity for calculation
<p>I'm currently creating an application that adds together values to give an overall total, like so. oldValue + newValue = textView1... </p> <p>MainActivity, this is where the overall value is to be stored in textView1</p> <pre><code> String calorie = getIntent().getStringExtra("calorie"); TextView textView...
I'm currently creating an application that adds together values to give an overall total, like so. oldValue + newValue = textView1... MainActivity, this is where the overall value is to be stored in textView1 [CODE] The problem is that the textview is forgetting the old value and just inserting the new value... so carr...
java|android|android-studio|sharedpreferences|calculator
-2
2015-02-27T13:08:45.060Z
2,015
2
13
4
68
2
544
54
5
1
true
false
false
false
false
true
negative
28,765,959
Reopen facebook session using Android SDK
<p>I am trying to be able to handle this situation:</p> <ol> <li>User presses Login with Facebook:</li> <li>User presses Cancel in the Facebook Login page;</li> <li>User presses Login with Facebook again;</li> </ol> <p>The problem I have is that I can't feed the application id as a resource, so instead I use this to ...
I am trying to be able to handle this situation: User presses Login with Facebook: User presses Cancel in the Facebook Login page; User presses Login with Facebook again; The problem I have is that I can't feed the application id as a resource, so instead I use this to create the facebook session: [CODE] To open the se...
android|facebook-android-sdk
0
2015-02-27T13:11:16.610Z
2,015
2
13
4
69
1
935
41
2
4
true
false
false
false
false
false
zero
28,766,018
Toolbar with Immersive Full-Screen Mode
<p>Is it possible to use <code>Immersive Mode</code> on Android KitKat and Lollipop in combination with a Toolbar?</p> <p><strong>Toolbar</strong></p> <pre><code> &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/toolbar" android:layout_width="ma...
Is it possible to use Immersive Mode on Android KitKat and Lollipop in combination with a Toolbar? Toolbar [CODE] hide Action Bar (Toolbar) [CODE] This works fine. But the Toolbar doesn't appear again.
android|android-actionbar|android-toolbar
6
2015-02-27T13:14:30.643Z
2,015
2
13
4
5,067
3
201
39
3
2
true
false
true
false
false
false
medium
28,766,027
Changing text color of PlusOneButton on Android
<p>I have a plus one button on my xml file :</p> <pre><code>&lt;com.google.android.gms.plus.PlusOneButton xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" android:id="@+id/plus_one_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:la...
I have a plus one button on my xml file : [CODE] This PlusOneButton is using a default text color which is a grey. I would like to change this text color to black. I tried to add to my styles.xml this line, but it doesn't work. [CODE] I tried with this code too but doesn't work. [CODE] Is there a way to achieve this ?
android|google-plus|introspection|google-plus-one
2
2015-02-27T13:14:49.013Z
2,015
2
13
4
242
0
319
47
4
3
true
true
false
false
false
false
low
28,766,029
MotionEvent position offsets from finger position
<p>I am just trying to paint a point with canvas.drawPoint where my finger is inside a canvas. Everything works but the problem is that the position retrieved from MotionEvent offsets more and more as my finger moves toward the botton of the screen from my real finger position(the view covers all the screen). Could any...
I am just trying to paint a point with canvas.drawPoint where my finger is inside a canvas. Everything works but the problem is that the position retrieved from MotionEvent offsets more and more as my finger moves toward the botton of the screen from my real finger position(the view covers all the screen). Could anybod...
android|view|imageview
0
2015-02-27T13:14:56.213Z
2,015
2
13
4
197
0
372
49
3
1
true
true
false
false
false
false
zero
28,766,033
AsyncTask forever loop in Android
<p>Currently I use this code for execute a task :</p> <pre><code>AsyncTask&lt;Object, Integer, Void&gt; task = new Task(getApplicationContext(), this.findViewById(android.R.id.content)); task.execute(); </code></pre> <p>Now, I would like repeat this task forever in while loop, when the task is finished I would launc...
Currently I use this code for execute a task : [CODE] Now, I would like repeat this task forever in while loop, when the task is finished I would launch a new task.. How can I proceed ? I know for get the status of task I can use : task.getStatus(); But after ?
java|android|android-asynctask
-1
2015-02-27T13:15:02.327Z
2,015
2
13
4
1,030
2
261
33
3
1
true
false
false
false
false
true
negative
28,766,064
c++ vector<string> to jstring [] (the thava String[]) conversion
<p>from a c++ source code, I'm invoking a java method that takes as argument a String []. (More exactly is the "EXTRA_MAIL field of the JIntent ACTION_SEND). How can I convert a vector (or just two char*) into a Java "String[]" object? I know that in order to convert a c++ string to a "Java String" (just one string) th...
from a c++ source code, I'm invoking a java method that takes as argument a String []. (More exactly is the "EXTRA_MAIL field of the JIntent ACTION_SEND). How can I convert a vector (or just two char*) into a Java "String[]" object? I know that in order to convert a c++ string to a "Java String" (just one string) there...
java|android|c++builder
0
2015-02-27T13:17:11.273Z
2,015
2
13
4
789
1
516
64
3
1
true
false
false
false
false
false
zero
28,766,081
Android MediaCodec encode and decode using vp8 format
<p>I want to develop an app, which will have 2 buttons and SurfaceView(Actually a class extends SurfaceView implements SurfaceHolder.Callback).</p> <p>When user click on button1 - with ScreenCapture, I will get an image and using mediacodec, I will do vp8 encoding and the output saving in bytebuffer.(I am not saving i...
I want to develop an app, which will have 2 buttons and SurfaceView(Actually a class extends SurfaceView implements SurfaceHolder.Callback). When user click on button1 - with ScreenCapture, I will get an image and using mediacodec, I will do vp8 encoding and the output saving in bytebuffer.(I am not saving in a file lo...
android|surfaceview|android-mediacodec|vp8
2
2015-02-27T13:18:03.937Z
2,015
2
13
4
1,497
1
695
53
4
0
false
false
false
false
false
false
low
28,766,221
I m not receiving real time stream because receivePacket is the most 1024 bytes
<p>i want to do real time stream from my pc to android device with WIFI. Server code is written by Java. My codes is running true. when I clicked the button in android, in server, sendPacket is actived and it sends packet. I send 65000 bytes(sendPacket) from server, but client receive is 1024 bytes(receivePacket). that...
i want to do real time stream from my pc to android device with WIFI. Server code is written by Java. My codes is running true. when I clicked the button in android, in server, sendPacket is actived and it sends packet. I send 65000 bytes(sendPacket) from server, but client receive is 1024 bytes(receivePacket). that' s...
android|sockets|video-streaming|byte
0
2015-02-27T13:26:06.973Z
2,015
2
13
4
56
0
475
79
4
3
true
true
false
false
false
false
zero
28,766,235
how to manage button views from BroadcastReceiver
<p>In MainActivity I have few buttons like start,stop and runInBackground..</p> <p>I am using a service to send location updates..If the phone is restarted then my app will start automatically,I've achieved this by broadcastreceiver.</p> <p>Now,I need to disable the start button of my app after restarting phone as be...
In MainActivity I have few buttons like start,stop and runInBackground.. I am using a service to send location updates..If the phone is restarted then my app will start automatically,I've achieved this by broadcastreceiver. Now,I need to disable the start button of my app after restarting phone as because service is al...
android|broadcastreceiver
0
2015-02-27T13:26:38.147Z
2,015
2
13
4
55
1
728
49
2
2
true
false
false
false
false
false
zero
28,766,286
ThreadException - Event most of the time occurs on UI Thread but sometimes on another Thread
<p>I have a method that gets an <code>Object</code> from network and then update the <code>UI</code> with this data.</p> <p>I use third-party API to fetch data and also to receive the data. The download process done in a new <code>Thread</code> and getting and updating the data done in <code>UI Thread</code>.</p> <p>...
I have a method that gets an Object from network and then update the UI with this data. I use third-party API to fetch data and also to receive the data. The download process done in a new Thread and getting and updating the data done in UI Thread . in my main Thread: [CODE] In 85% this code runs on UI thread, but some...
java|android|multithreading|thread-safety
1
2015-02-27T13:29:15.613Z
2,015
2
13
4
82
1
885
92
4
2
true
false
false
false
false
false
low
28,766,329
‘abstract method not implemented’ on start android app with Crashlytics (Fabric)
<p>I added Crashlytics to my android app (via Idea plugin).</p> <p>When my app starts I get next error:</p> <pre><code> java.lang.AbstractMethodError: abstract method not implemented at io.fabric.sdk.android.ActivityLifecycleManager$ActivityLifecycleCallbacksWrapper$1.onActivityStarted(ActivityLifecycleManage...
I added Crashlytics to my android app (via Idea plugin). When my app starts I get next error: [CODE] I completely can't figure out why this happens. Maybe someone faced with this issue?
android|intellij-idea|gradle|crashlytics
0
2015-02-27T13:32:11.780Z
2,015
2
13
4
549
1
185
80
4
1
true
false
false
false
false
false
zero
28,766,334
Rotation of layout changes the co-ordinate of the motion event
<p>i am cropping a image by the help of a child relative layout and i am moving it by motion event over a parent relative layout(containing image-view to be cropped). ..but when i rotate parent layout (in which i have the image view ) by 90 deg. the behavior of motion event co-ordinate changes,and does not work(drag...
i am cropping a image by the help of a child relative layout and i am moving it by motion event over a parent relative layout(containing image-view to be cropped). ..but when i rotate parent layout (in which i have the image view ) by 90 deg. the behavior of motion event co-ordinate changes,and does not work(drag and z...
android|image-rotation|motionevent
2
2015-02-27T13:32:29.077Z
2,015
2
13
4
56
0
541
62
3
0
false
true
false
false
false
false
low
28,766,365
show int variables in a AlertDialog and show as message
<p>I need to display in a AlertDialog the following message and show it. using this code I already have done it on this way :</p> <pre><code>AlertDialog dialog; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.pic_time + " qntpic" +//This is one variable i must call from...
I need to display in a AlertDialog the following message and show it. using this code I already have done it on this way : [CODE] but i don't know how to proceed to call this variables, i try already some methods but no results. This variables are int, and private on PreviewCamera.
java|android|integer|android-alertdialog
2
2015-02-27T13:34:31.600Z
2,015
2
13
4
593
3
282
55
4
1
true
false
false
false
false
false
low
28,766,418
Can't get EditText to get focus and popup keyboard
<p>I am not able to set the focus on the <code>EditText</code> box at the end. I have tried almost every trick on google! I am not able to get it to focus nor am I able to bring the keyboard. </p> <p>I have also tried setting the <code>android:windowSoftInputMode="adjustResize"</code> but this also didn't solve the pr...
I am not able to set the focus on the EditText box at the end. I have tried almost every trick on google! I am not able to get it to focus nor am I able to bring the keyboard. I have also tried setting the android:windowSoftInputMode="adjustResize" but this also didn't solve the problem. Please help [CODE]
android|android-edittext
1
2015-02-27T13:37:24.793Z
2,015
2
13
4
1,815
3
307
50
2
1
true
false
false
false
false
false
low
28,766,451
My button is not displayed in Android Studio
<p>I am trying to do my very first application on Android Studio, so I began with an Hello World that worked perfectly, then I tried to add a button with a simple onClick function which changes the button's name. I want the button "New Button" to change into "Clicked" once clicked.</p> <p>Here is my main class : </p> ...
I am trying to do my very first application on Android Studio, so I began with an Hello World that worked perfectly, then I tried to add a button with a simple onClick function which changes the button's name. I want the button "New Button" to change into "Clicked" once clicked. Here is my main class : [CODE] This only...
java|button|android-studio|onclick
1
2015-02-27T13:39:08.110Z
2,015
2
13
4
3,776
1
436
44
4
1
true
false
true
false
false
false
low
28,766,465
Android BitmapFactory.decodeResource takes too much memory
<p>I have question about loading Bitmap from resources. My code:</p> <pre><code>public void onClick(View view) { if (mainButton == view) { Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.test); } } </code></pre> <p>The test.jpg image resolution is 3288 x 4936px. It is jpeg (3,9MB /...
I have question about loading Bitmap from resources. My code: [CODE] The test.jpg image resolution is 3288 x 4936px. It is jpeg (3,9MB / 48,7MB when uncompressed). While this function work (on my Nexus 7 2013 device), following exception occurs: [CODE] Why application tries to allocate as much as 248MB? I wrote similar...
java|android|image|memory|bitmap
3
2015-02-27T13:39:49.180Z
2,015
2
13
4
6,918
3
752
58
5
2
true
false
true
false
false
false
low
28,766,521
Why is not center this layout?
<p>This is my layout that is an action bar that I have built:</p> <pre><code>&lt;LinearLayout android:orientation="horizontal" android:id="@+id/Layout1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/button_blue_no_border"&g...
This is my layout that is an action bar that I have built: [CODE] Unfortunely the image is on the left and the textview is near the image. I want that the second linear Layout is centered in the first layout. What have I to do?
android|android-layout
0
2015-02-27T13:43:00.227Z
2,015
2
13
4
66
5
227
30
2
1
true
false
false
false
false
false
zero
28,766,589
Using expandableheadergridview working fine on Android L but crashes on Devices<=4.4
<p>I am using the expandableheadergridview in my app for adding gridview inside scrollview. It works completely fine on Android L but the app crashes on Devices &lt;= 4.4.4. Cant figure out why is this happening. My Layout file</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout xmlns:...
I am using the expandableheadergridview in my app for adding gridview inside scrollview. It works completely fine on Android L but the app crashes on Devices <= 4.4.4. Cant figure out why is this happening. My Layout file [CODE] ExpandableHeaderGridView file [CODE] } It crashes in ExpandableHeightGridView at line [CODE...
android|android-listview
0
2015-02-27T13:46:52.290Z
2,015
2
13
4
233
1
515
84
2
5
true
false
false
false
false
false
zero
28,766,647
What can I do about losing reference to a progress bar which is in a fragment?
<p>I have three fragments, Play, Dropbox and Settings inside a tab host.</p> <p>Inside the Dropbox fragment, I have a class variable, 'progressBar'. I allocate it in the onActivityCreated.</p> <pre><code> if(progressBar == null) { progressBar = (ProgressBar) getActivity().findViewById(R.id.progressbar_...
I have three fragments, Play, Dropbox and Settings inside a tab host. Inside the Dropbox fragment, I have a class variable, 'progressBar'. I allocate it in the onActivityCreated. [CODE] I update it with this: [CODE] This works perfectly, however, when I move to another fragment and come back it stays stuck on where it ...
android|android-fragments|android-asynctask|android-progressbar
0
2015-02-27T13:50:22.193Z
2,015
2
13
4
94
1
828
78
4
2
true
false
false
false
false
false
zero
28,766,683
Close cordova app on back button
<p>I have the following logic for my mobile app using cordova and angular.js</p> <p>Process my logic in mobile.js included in index.html like saving the files on sdcard then redirect the user to the second html page using</p> <pre><code>window.location.href="main.html"; </code></pre> <p>which will use the files put ...
I have the following logic for my mobile app using cordova and angular.js Process my logic in mobile.js included in index.html like saving the files on sdcard then redirect the user to the second html page using [CODE] which will use the files put in sdcard by mobile.js The issue I'm facing is that when I am on the hom...
android|angularjs|cordova
6
2015-02-27T13:52:01.883Z
2,015
2
13
4
5,029
1
884
32
3
4
true
false
true
false
false
false
medium
28,766,709
how to run a function which calling in Handler after this function completly executed
<p>i want my SyncMessageFromServer() execute after delay of 5000 when SyncMessageFromServer() executed successfully;</p> <p>my function is as below</p> <pre><code>final Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { S...
i want my SyncMessageFromServer() execute after delay of 5000 when SyncMessageFromServer() executed successfully; my function is as below [CODE] i want this function regularly executed after completed execution if i am giving it the delay of 5000 milisecond then it dsn't download my videos completly it download only ho...
java|android|android-asynctask
0
2015-02-27T13:53:34.780Z
2,015
2
13
4
36
1
362
85
3
1
true
false
false
false
false
false
zero
28,766,790
Holo theme dont work
<p>I create empty app. ActionBar: set icon and title. Content: TextView with text "Hello!". In style.xml </p> <pre class="lang-html prettyprint-override"><code>&lt;style name="AppBaseTheme" parent="Theme.AppCompat.Light"&gt; &lt;/style&gt; &lt;style name="AppTheme" parent="AppBaseTheme"&gt; &lt;/style&gt; </code><...
I create empty app. ActionBar: set icon and title. Content: TextView with text "Hello!". In style.xml [CODE] SDK [CODE] Android 4.4.4 in my phone. First proble it is that when start app with theme Appcompat logo didnt show. Secod problem it is that I cant set Holo theme. manifest [CODE] style.xml [CODE]
android
-1
2015-02-27T13:57:20.580Z
2,015
2
13
4
65
1
304
20
1
4
true
false
false
false
false
true
negative
28,766,860
Display the notification number Android
<p>i want to show the notification icon number but nothing showed, there is my code :</p> <pre><code>private static void generateNotification(Context context, String message, String title, String url) { mContext = context; int icon = R.drawable.ic_launcher; long when = System.curren...
i want to show the notification icon number but nothing showed, there is my code : [CODE] did i miss something ??
android|notifications|cgm
0
2015-02-27T14:00:40.287Z
2,015
2
14
4
2,109
1
113
39
3
1
true
false
false
false
false
false
zero
28,766,881
Want to start service in android and run untill app uninstalled
<p>I have an android app in which i execute some task every 24 hours (a day). For that I have registered a service and it runs first time and I have also used <code>Timer</code> class in it to execute my method after a fix interval. It works perfect for first time but when I start the app next time, service starts from...
I have an android app in which i execute some task every 24 hours (a day). For that I have registered a service and it runs first time and I have also used Timer class in it to execute my method after a fix interval. It works perfect for first time but when I start the app next time, service starts from scratch and tim...
android|service|timer|timestamp|sharedpreferences
-2
2015-02-27T14:01:58.433Z
2,015
2
14
4
150
1
504
63
5
0
false
false
false
false
false
true
negative
28,766,896
How to make a custom action bar for just copy the text?
<p>I have an edit text as output of my results and it's editable text, so the user by long click can cut, copy, and paste the text.. So i need to code my app to show action bar for long click so the user can only copy the text !! i see this code in the questions, but some functions are missed in the code :</p> <pre><c...
I have an edit text as output of my results and it's editable text, so the user by long click can cut, copy, and paste the text.. So i need to code my app to show action bar for long click so the user can only copy the text !! i see this code in the questions, but some functions are missed in the code : [CODE]
java|android|android-actionbar|android-edittext|custom-controls
0
2015-02-27T14:03:03.723Z
2,015
2
14
4
76
2
311
55
5
1
true
false
false
false
false
false
zero
28,766,900
Scroll only on scrollbar's thumb touch in Android
<p>I am using a HorizontalScrollView and I want to allow the user to scroll only when the user taps on the scrollbar's thumb or on the track. I don't want to allow scrolling when users taps inside the view. </p> <p>The reason for this, is because inside the the ScrollView there is a FrameLayout for painting purposes...
I am using a HorizontalScrollView and I want to allow the user to scroll only when the user taps on the scrollbar's thumb or on the track. I don't want to allow scrolling when users taps inside the view. The reason for this, is because inside the the ScrollView there is a FrameLayout for painting purposes and if scroll...
android|scrollview|horizontalscrollview
4
2015-02-27T14:03:21.183Z
2,015
2
14
4
516
0
417
49
3
0
false
true
false
false
false
false
low
28,766,920
SQLite updating a row and updating listview created by cursor
<p>I have a from that a user fills in and their data is stored in a row using SQLite, a cursor gets their details from the table and outputs it in a listView. I want the user to be able to fill in that form again so as to update their details and display the new details in the listview in replace of the old details th...
I have a from that a user fills in and their data is stored in a row using SQLite, a cursor gets their details from the table and outputs it in a listView. I want the user to be able to fill in that form again so as to update their details and display the new details in the listview in replace of the old details that a...
android|sqlite|android-cursor
-1
2015-02-27T14:04:19.240Z
2,015
2
14
4
4,185
2
616
61
3
3
true
false
true
false
false
true
negative
28,766,946
R.java file in Android Studio
<p>I'm doing my first projects with Android Studio and I've found that I get an error with the R.java file, because in every class when I make a reference to R.id.X it turns red and it says that it cannot resolve the symbol R..does anyone can help me with this?</p> <p><img src="https://i.stack.imgur.com/WsHlH.png" alt...
I'm doing my first projects with Android Studio and I've found that I get an error with the R.java file, because in every class when I make a reference to R.id.X it turns red and it says that it cannot resolve the symbol R..does anyone can help me with this?
java|android|android-studio
1
2015-02-27T14:05:09.683Z
2,015
2
14
4
1,163
2
258
29
3
0
false
false
false
false
false
false
low
28,767,007
Access violation when opening form 2th time on Android in Delphi XE7
<p>When I open my form for the first time I get no violation, but when I first select a TEdit field and then close the form and then recreate the form and open it I get the Violation.</p> <p><strong>Code for creating the form:</strong></p> <pre><code>procedure TfrmNocoreDKS.actConfigExecute(Sender: TObject); var co...
When I open my form for the first time I get no violation, but when I first select a TEdit field and then close the form and then recreate the form and open it I get the Violation. Code for creating the form: [CODE] I've also tried this for creating the form: [CODE] Code for Closing the form: [CODE] Because the violati...
android|forms|delphi|firemonkey|delphi-xe7
3
2015-02-27T14:08:03.333Z
2,015
2
14
4
2,355
3
526
68
5
3
true
false
false
false
false
false
low
28,767,019
Android Studio does not show sourcefiles any more
<p>Android Studio 1.0 and 1.1, running on Windows 8.1 and 10: In the project tree, the Java node is visible, however it cannot be opened any more by clicking it. The sorucefiles cannot be displayed or reached from the project tree any more. The sourcefiles still exists in an intermediate... folder and can only be displ...
Android Studio 1.0 and 1.1, running on Windows 8.1 and 10: In the project tree, the Java node is visible, however it cannot be opened any more by clicking it. The sorucefiles cannot be displayed or reached from the project tree any more. The sourcefiles still exists in an intermediate... folder and can only be displaye...
android
2
2015-02-27T14:09:07.273Z
2,015
2
14
4
62
1
388
49
1
0
false
false
false
false
false
false
low
28,767,080
NullPointerException in DialogFragment
<p>I'm having some trouble with NullPointerException showing up when I click on the positive button of my <code>DialogFragment</code>. I set a layout mainly composed of EditText and I am using their contents in my app. The problems appears when the app tries to retrieve the contents of the <code>EditText</code></p> <p...
I'm having some trouble with NullPointerException showing up when I click on the positive button of my DialogFragment . I set a layout mainly composed of EditText and I am using their contents in my app. The problems appears when the app tries to retrieve the contents of the EditText In my MainActivity , I set a Listen...
android|android-alertdialog|android-dialogfragment
1
2015-02-27T14:11:55.410Z
2,015
2
14
4
564
6
485
38
3
1
true
false
false
false
false
false
low
28,767,164
How to display part of XML file while downloading the rest of the XML
<p>I'm creating a new Android application. I have a big XML file which is basically a big RelativeLayout with multiple ScrollView inside it.</p> <p>&lt; RelativeLayout ></p> <pre><code>&lt; ScrollView ... android:visibilty="visible"&gt; &lt;/ScrollView&gt; &lt;ScrollView ... android:visibilty="gone...
I'm creating a new Android application. I have a big XML file which is basically a big RelativeLayout with multiple ScrollView inside it. < RelativeLayout > [CODE] < /RelativeLayout> The problem is that this activity takes forever to load (several seconds). As this XML is only composed of several ScrollView and only on...
android|xml
0
2015-02-27T14:16:17.063Z
2,015
2
14
4
43
0
907
69
2
1
true
true
false
false
false
false
zero
28,767,357
Prevent closing by hardware back button in xamarin forms on android
<p>I want to prevent closing the app by pressing the hardware back button in xamarin forms on android.</p> <p>I want, that you can navigate with the hardware back button in the app (what is working), but do not want to exit, when the first page in navigation stack is reached.</p> <p>I tried to use the <a href="http:/...
I want to prevent closing the app by pressing the hardware back button in xamarin forms on android. I want, that you can navigate with the hardware back button in the app (what is working), but do not want to exit, when the first page in navigation stack is reached. I tried to use the OnSleep event in xamarin forms, bu...
android|xamarin|xamarin.forms
21
2015-02-27T14:27:25.637Z
2,015
2
14
4
24,744
7
545
67
3
1
true
false
true
true
true
false
high
28,767,402
Google play game services show sign in screen from google+ again
<p>i am developing a realtime multiplayer game for android and an user requested this feature: She wants to see the sign-in screen from google+ account again, even after she was already signed in from another app. </p> <p>How can i call that sign-in screen from google+ again? Even after an user has already signed in?<...
i am developing a realtime multiplayer game for android and an user requested this feature: She wants to see the sign-in screen from google+ account again, even after she was already signed in from another app. How can i call that sign-in screen from google+ again? Even after an user has already signed in?
android|google-play-services|google-play-games
0
2015-02-27T14:29:28.217Z
2,015
2
14
4
127
1
307
64
3
0
false
false
false
false
false
false
zero
28,767,413
How to open a different activity on recyclerView item onclick
<p>i am using a <code>recyclerView</code> to show my <code>listitems</code> in the <code>navigation drawer</code>.I have implemented the <code>onclickListener</code> but i have been stuck on how to open a different <code>activity</code> when <strong>items</strong> are <code>clicked</code>. All my items do on item click...
i am using a recyclerView to show my listitems in the navigation drawer .I have implemented the onclickListener but i have been stuck on how to open a different activity when items are clicked . All my items do on item click as of now as per the code is to display a toast with the item position . I would appreciate the...
android|android-recyclerview
46
2015-02-27T14:29:55.237Z
2,015
2
14
4
131,810
10
358
61
2
2
true
false
true
true
true
false
high
28,767,466
How to check if a Bitmap is empty (blank) on Android
<p>How can I check if a <code>Bitmap</code> object is completely blank, i.e. all its pixels are transparent, without a x-y loop on every pixel?</p>
How can I check if a Bitmap object is completely blank, i.e. all its pixels are transparent, without a x-y loop on every pixel?
android|bitmap|android-bitmap
24
2015-02-27T14:32:08.853Z
2,015
2
14
4
20,420
2
127
52
3
0
false
false
true
true
true
false
high
28,767,515
How to hide and show the Android ActionBar like in Google Inbox app?
<p>I wnat to show and hide the Android ActionBar when the user scrolls the screen. I found some examples, like <a href="https://stackoverflow.com/questions/25500353/android-actionbar-hide-show-when-scrolling-list-view">this</a> question in SO. But the code showed in this question and its answer makes the action hides a...
I wnat to show and hide the Android ActionBar when the user scrolls the screen. I found some examples, like this question in SO. But the code showed in this question and its answer makes the action hides after the list have scrolled some pixels, and I want to make this scroll like the Inbox App by Google, that is the a...
android|android-listview|scroll|android-actionbar|google-inbox
0
2015-02-27T14:34:30.577Z
2,015
2
14
4
1,611
2
544
68
5
0
false
false
false
false
false
false
zero
28,767,523
Can anyone explain me why is this KEY_ID needed in SQLite Database?
<p>I'm following this <a href="http://hmkcode.com/android-simple-sqlite-database-tutorial/" rel="nofollow">tutorial</a>.</p> <p><strong>onCreate()</strong>: What does that INTEGER PRIMARY KEY AUTOINCREMENT mean?</p> <p>I can infer that it is the primarykey and it is auto incremented.</p> <pre><code>public void onCre...
I'm following this tutorial . onCreate() : What does that INTEGER PRIMARY KEY AUTOINCREMENT mean? I can infer that it is the primarykey and it is auto incremented. [CODE] Then in update() : [CODE] 1) I cannot understand how that ID works? What does KEY_ID=? mean? 2) How it is incremented and 3) what initial value does ...
java|android|mysql|android-sqlite
-2
2015-02-27T14:35:06.093Z
2,015
2
14
4
459
4
363
67
4
2
true
false
false
false
false
true
negative
28,767,643
Is there something like Android's match parent in Delphi?
<p>I want to have components in my android app that will match their parent's size, but I can't find it in the object inspector.</p> <p>If I use align and anchors it works almost similar, but it's still not as good as android's design.</p> <p><img src="https://i.stack.imgur.com/gneCb.png" alt="Object Inspector of Rad...
I want to have components in my android app that will match their parent's size, but I can't find it in the object inspector. If I use align and anchors it works almost similar, but it's still not as good as android's design.
android|delphi|user-interface
0
2015-02-27T14:41:52.740Z
2,015
2
14
4
142
1
225
57
3
0
false
false
false
false
false
false
zero
28,767,683
NumberPicker Display more than 3 values. Modify Android Internal Class
<p>I have a number picker that displays 3 values at a time. Although there is plenty of space between these values. Is there any way to change that?</p> <p>Inside Android's internal number picker class there is this variable:</p> <pre class="lang-java prettyprint-override"><code>public class NumberPicker extends Line...
I have a number picker that displays 3 values at a time. Although there is plenty of space between these values. Is there any way to change that? Inside Android's internal number picker class there is this variable: [CODE] How can someone modify that?
java|android
3
2015-02-27T14:43:36.257Z
2,015
2
14
4
3,101
0
251
70
2
1
true
true
true
false
false
false
low
28,767,817
Android Studio 1.1.0 + Robolectric 2.4 causes java.lang.annotation.AnnotationFormatError
<p>I'm trying run Robolectric tests within my projects. </p> <p>I'm using Andriod Studio 1.1.0 with unit testing support (<a href="http://tools.android.com/tech-docs/unit-testing-support" rel="nofollow">http://tools.android.com/tech-docs/unit-testing-support</a>) and I'm doing everything similar to <a href="https://gi...
I'm trying run Robolectric tests within my projects. I'm using Andriod Studio 1.1.0 with unit testing support ( http://tools.android.com/tech-docs/unit-testing-support ) and I'm doing everything similar to https://github.com/robolectric/deckard-gradle project. When I try to run tests from within Android Studio I'm gett...
java|android|testing|android-studio|robolectric
2
2015-02-27T14:49:22.953Z
2,015
2
14
4
2,193
2
1,072
88
5
1
true
false
false
false
false
false
low
28,767,853
Unable to extend Main Activity with CustomHashMap
<p>Ref: <a href="https://stackoverflow.com/questions/7200940/android-how-to-make-dynamic-hashmap-accessible-in-whole-application">Android:- How to Make dynamic HashMap Accessible in whole application?</a> I have set up a CustomHashMap (just a collection of 3 LinkedHashMaps) so that I can access it from 2 Activities, bu...
Ref: Android:- How to Make dynamic HashMap Accessible in whole application? I have set up a CustomHashMap (just a collection of 3 LinkedHashMaps) so that I can access it from 2 Activities, but I am unable to access it from the SecondActivity! The only way to remove red errors in Manifest.xml is to set the lines below. ...
android
0
2015-02-27T14:51:02.110Z
2,015
2
14
4
27
1
638
49
1
1
true
false
false
false
false
false
zero
28,767,855
How to convert a Base64 string to Bitmap on Android?
<p>I'm having this problem for converting several Base64 string to Bitmap images, in my android application. Now I've looked for solutions for quite a while, but nothing seems to solve my problem. My application gets JSON data from a server, containing several images in base64. the json code received from the server c...
I'm having this problem for converting several Base64 string to Bitmap images, in my android application. Now I've looked for solutions for quite a while, but nothing seems to solve my problem. My application gets JSON data from a server, containing several images in base64. the json code received from the server can b...
android|json|base64|decode
0
2015-02-27T14:51:07.550Z
2,015
2
14
4
1,472
1
820
52
4
3
true
false
false
false
false
false
zero
28,767,871
Http session is always created on android version ModernHttpClient(okHttp1.5)
<p>Note that both platform are using HttpClient code below. However the native message handler change depending on device : Android using OKhttp1.5 and IOS NSurlSession which is handle from ModernHttpClient library.</p> <p>My problem is on the android device, a session is always created on the server each time a reque...
Note that both platform are using HttpClient code below. However the native message handler change depending on device : Android using OKhttp1.5 and IOS NSurlSession which is handle from ModernHttpClient library. My problem is on the android device, a session is always created on the server each time a request is calle...
android|xamarin|xamarin.android|httpclient|okhttp
4
2015-02-27T14:51:48.390Z
2,015
2
14
4
595
0
550
77
5
1
true
true
false
false
false
false
low
28,767,917
android build Failure [INSTALL_FAILED_POLICY_REJECTED_PERMISSION]
<p>I have got an apk and tried to install in my android device through the command prompt and finally ended up with this message. Don't know whats the problem. Any suggestions</p> <p>Failure [INSTALL_FAILED_POLICY_REJECTED_PERMISSION]</p>
I have got an apk and tried to install in my android device through the command prompt and finally ended up with this message. Don't know whats the problem. Any suggestions Failure [INSTALL_FAILED_POLICY_REJECTED_PERMISSION]
android|apk|android-install-apk
0
2015-02-27T14:54:33.387Z
2,015
2
14
4
1,025
1
224
65
3
0
false
false
false
false
false
false
zero
28,767,963
Round User Image size in G+ Android app
<p>I posted this question on google plus but never got a response. I'm creating an app with a nav drawer that displays user info. I'm trying to mimic the drawer header found on the google plus or hangouts android apps.</p> <p>I've got it all down. Only thing I need is the size of the round user image they use. I'v...
I posted this question on google plus but never got a response. I'm creating an app with a nav drawer that displays user info. I'm trying to mimic the drawer header found on the google plus or hangouts android apps. I've got it all down. Only thing I need is the size of the round user image they use. I've googled for i...
android
0
2015-02-27T14:56:57.153Z
2,015
2
14
4
32
0
359
39
1
0
false
true
false
false
false
false
zero
28,767,979
Send android apk to multiple devices
<p>I have 150 android devices (all same brand and model) in a school environment (each student has one). I would like to be able to install one or more apps to all of them with no or minimal actions from the students. </p> <p>The devices have google play installed, but most of the students don't have google accounts.<...
I have 150 android devices (all same brand and model) in a school environment (each student has one). I would like to be able to install one or more apps to all of them with no or minimal actions from the students. The devices have google play installed, but most of the students don't have google accounts. Something li...
android|deployment
0
2015-02-27T14:57:49.763Z
2,015
2
14
4
53
1
369
36
2
0
false
false
false
false
false
false
zero
28,767,983
PendingIntent Doesn't Keep Intent Extras After App is Killed
<p>We're having an issue where the extras Bundle from a PendingIntent's Intent are not stored if the app is killed due to low memory.</p> <p>We create a notificiation:</p> <pre><code>// ... final Intent intent = new Intent(this, ControllerActivity.class); intent.putExtra(KEY_PUSH_NOTIFICATION, notification); Pending...
We're having an issue where the extras Bundle from a PendingIntent's Intent are not stored if the app is killed due to low memory. We create a notificiation: [CODE] This works fine when the app has not been killed by the OS... We added some code to our onCreate and onNewIntent methods to log the extras: [CODE] Here's t...
java|android|android-intent|android-notifications|android-pendingintent
2
2015-02-27T14:57:58.777Z
2,015
2
14
4
1,259
1
884
60
5
4
true
false
false
false
false
false
low
28,768,020
Jenkins Build fails with error
<p>When i try to run a task in Jenkins to build my app from source codes (deployer from Git server) - build fails with the following output</p> <pre><code>Started by user anonymous Building in workspace /var/lib/jenkins/jobs/Amway/workspace &gt; /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching change...
When i try to run a task in Jenkins to build my app from source codes (deployer from Git server) - build fails with the following output [CODE] I tried to use different versions of gradle, building with a wrapper - and none helped. Ca
android|git|jenkins|gradle
1
2015-02-27T14:59:52.367Z
2,015
2
14
4
911
0
234
30
4
1
true
true
false
false
false
false
low
28,768,026
Starting another Activity from an Alertdialog
<p>I want to start an activity from my AlertDialog "ShowEditDialog" but get "Non-static method cannot be referenced from a static context" when I try to pass an intent to start the new activity. </p> <p>One of the reasons I can't just make my AlertDialog non-static is because I reference it from a static method in my ...
I want to start an activity from my AlertDialog "ShowEditDialog" but get "Non-static method cannot be referenced from a static context" when I try to pass an intent to start the new activity. One of the reasons I can't just make my AlertDialog non-static is because I reference it from a static method in my AccountManag...
android|android-intent|static|android-alertdialog|non-static
1
2015-02-27T15:00:03.370Z
2,015
2
15
4
319
1
686
45
5
2
true
false
false
false
false
false
low
28,768,077
Toolbar Android L Custom TextView Font not applying
<p>I have a problem with the new Toolbar in android. </p> <p>I have a similar layout: </p> <pre><code>&lt;android.support.v7.widget.Toolbar android:id="@+id/tlb_wineoox_login" android:layout_height="wrap_content" android:layout_width="match_parent" android:elevation="1dp" android:minHeight="?attr/...
I have a problem with the new Toolbar in android. I have a similar layout: [CODE] And the class of the custom TextView is like this: [CODE] In this way my code doesn't seem to change the font type. But if i make the custom text view with an thread that wait's for one second before changing the typeface than it works: [...
android|android-layout|textview|toolbar
0
2015-02-27T15:03:10.643Z
2,015
2
15
4
189
1
592
51
4
3
true
false
false
false
false
false
zero