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
37,791,734
Setting gap/margin between radiobuttons that are created by run time
<p>I am creating custom radiobuttons in code. Here is the custom radioButton class</p> <pre><code>public class SurveyRadioButton extends RadioButton { private int value; private int questionId; public SurveyRadioButton(Context context) { super(context); setBackgroundResource(R.drawable.selector_checkbox); ...
I am creating custom radiobuttons in code. Here is the custom radioButton class [CODE] } and there goes creating script [CODE] These codes makes that views, but i want to add gap between radiobuttons. Setting margin into the layout params does not work. I am wondering what will be ?
android|android-radiobutton
1
2016-06-13T14:01:38.763Z
2,016
6
14
0
35
1
283
68
2
2
true
false
false
false
false
false
low
37,824,380
What is the correct way of positioning UI components
<p>I am wondering, when creating a UI (such as main menu) and you need to position buttons around the screen, do you position things using margins(by using exact dp values) or do you align things in reference to the screen boundaries (left and right to screen..etc)</p> <p>I am not asking about opinion here. I am askin...
I am wondering, when creating a UI (such as main menu) and you need to position buttons around the screen, do you position things using margins(by using exact dp values) or do you align things in reference to the screen boundaries (left and right to screen..etc) I am not asking about opinion here. I am asking about the...
android|android-layout
0
2016-06-15T00:44:49.690Z
2,016
6
0
2
35
1
601
52
2
0
false
false
false
false
false
false
zero
37,864,095
Issue with pressed state of icon buttons on ActionBar - AppCompat 24.0.0
<p><a href="https://i.stack.imgur.com/50P2u.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/50P2u.jpg" alt="enter image description here"></a></p> <p>It seems that the issue is caused by 9patch background image?</p>
It seems that the issue is caused by 9patch background image?
android
1
2016-06-16T15:59:38.570Z
2,016
6
15
3
35
1
61
72
1
0
false
false
false
false
false
false
low
37,904,853
Why do I have so many LogCat messages while receive call?
<p>I'm trying to detect when user receive call,call to somebody, when call ended. Can somebody explain me why do I have so many Log messages while receiving a phone call and calling?</p> <p>My receiver in Android Manifest </p> <pre><code>&lt;receiver android:name="com.prjct3.amadey.myapplication3.MyReceiver"&gt; ...
I'm trying to detect when user receive call,call to somebody, when call ended. Can somebody explain me why do I have so many Log messages while receiving a phone call and calling? My receiver in Android Manifest [CODE] This is my code. [CODE] And my LogCat [CODE] Thanks.
android
1
2016-06-19T07:18:04.437Z
2,016
6
7
6
35
1
271
57
1
3
true
false
false
false
false
false
low
37,925,806
How to run a project checked out from git android
<p>I was running my android project on windows but now i have installed studio on linux.I checked out my project from git and now trying to run it on my studio in linux.The gradle build is running but noting is happening I dont know how to solve this.I think it is the problem with the version. Maybe the studio on my wi...
I was running my android project on windows but now i have installed studio on linux.I checked out my project from git and now trying to run it on my studio in linux.The gradle build is running but noting is happening I dont know how to solve this.I think it is the problem with the version. Maybe the studio on my windo...
android|gradle|build
-1
2016-06-20T15:03:45.733Z
2,016
6
15
0
35
1
397
49
3
0
false
false
false
false
false
true
negative
37,958,355
Where is my Cordova app stored on Android 5?
<p>I want to view my app files using file browser such as ES File Explorer. Where is it stored?</p> <p>I'm using Android 5.1 on Nexus 10.</p>
I want to view my app files using file browser such as ES File Explorer. Where is it stored? I'm using Android 5.1 on Nexus 10.
android|cordova
0
2016-06-22T04:04:55.913Z
2,016
6
4
2
35
1
127
44
2
0
false
false
false
false
false
false
zero
37,960,879
prevention of clear data of an application
<p>I am using android phone I have an app that records phone calls and hide it as temporary files. </p> <p>it is being deleted by using app manager from clear data option. ho can I prevent temporary files to delete. from app manager.</p>
I am using android phone I have an app that records phone calls and hide it as temporary files. it is being deleted by using app manager from clear data option. ho can I prevent temporary files to delete. from app manager.
android
-2
2016-06-22T07:08:46.283Z
2,016
6
7
2
35
1
222
42
1
0
false
false
false
false
false
true
negative
37,994,316
Which function do I have to call to crossfade the pane
<p>i have a problem with the @mikepenz crossfader.</p> <p>I like to open the crossfader additionally with an onClick method.</p> <p>In XML layout I use the GmailStyleCrossFadeSlidingPaneLayout. This works perfect with swiping but I don't know how to do it by onClick.</p> <p>so thanks for your help :) <a href="http:/...
i have a problem with the @mikepenz crossfader. I like to open the crossfader additionally with an onClick method. In XML layout I use the GmailStyleCrossFadeSlidingPaneLayout. This works perfect with swiping but I don't know how to do it by onClick. so thanks for your help :) http://mikepenz.github.io/Crossfader/
android|cross-fade
-2
2016-06-23T14:18:48.693Z
2,016
6
14
3
35
1
315
54
2
0
false
false
false
false
false
true
negative
38,024,711
Locate a line that a word is on in textedit
<p>I am trying to figure out how to locate the line a word or phrase is on from an <code>EditText</code>. For example, lets say I have the following in an <code>EditText</code>:</p> <p>This is line 0</p> <p>This is line 1</p> <p>This is line 2</p> <p>Line that I want and I want to get all this information</p> <p>T...
I am trying to figure out how to locate the line a word or phrase is on from an EditText . For example, lets say I have the following in an EditText : This is line 0 This is line 1 This is line 2 Line that I want and I want to get all this information This is line 4 Since the user can add or remove lines of text, the l...
android|android-edittext|textview
0
2016-06-25T03:41:23.823Z
2,016
6
3
5
35
1
565
43
3
1
true
false
false
false
false
false
zero
37,918,517
Create Here API Android Request Id?
<p>I'm using the Here API for Android and I'm trying to calculate multiple routes. I'm using <strong>RouteManager</strong>'s <strong>calculateRoute</strong> method in order to do this.</p> <p>The problem is that when using this method for multiple route calculations, the response is async and I want to be able to ide...
I'm using the Here API for Android and I'm trying to calculate multiple routes. I'm using RouteManager 's calculateRoute method in order to do this. The problem is that when using this method for multiple route calculations, the response is async and I want to be able to identify which response is for which request. I ...
android|here-api
1
2016-06-20T09:06:35.153Z
2,016
6
9
0
291
1
677
35
2
0
false
false
false
false
false
false
low
37,764,578
Xamarin SignalR - using the same connection proxy in a different Fragment/Activity
<p>Is it possible to pass the hub connection to different fragments and activities so I can use the same connection throughout the application? For example the proxy connection is setup like this:</p> <pre><code>var chatHubProxy = hubConnection.CreateHubProxy("ChatHub"); </code></pre> <p>I want to use the client met...
Is it possible to pass the hub connection to different fragments and activities so I can use the same connection throughout the application? For example the proxy connection is setup like this: [CODE] I want to use the client method chatHubProxy.On<string, int, string>("UpdateChatMessage", (message, color, user) in ano...
android|xamarin|signalr
0
2016-06-11T13:57:46.490Z
2,016
6
13
5
547
1
442
82
3
1
true
false
false
false
false
false
zero
37,784,739
Socket.io connection not work when the application is Dead
<p>I have a socket connection in my app, when i minimize app and open other application then my app is dead (maybe Android OS did optimization) but app is not killed in minimize state and when i open app with task window then my socket connection gives an log this messages:</p> <pre><code>I/SOCKET_CON: io.socket.clien...
I have a socket connection in my app, when i minimize app and open other application then my app is dead (maybe Android OS did optimization) but app is not killed in minimize state and when i open app with task window then my socket connection gives an log this messages: [CODE]
android|sockets
-1
2016-06-13T08:14:46.990Z
2,016
6
8
0
547
1
278
58
2
1
true
false
false
false
false
true
negative
37,955,139
Is there a way, in Android Studio to use a Style Theme Color like colorPrimary for my Item Background intsted of @color/"whateverColorYouWant"
<p>Is there a way, in Android Studio to use a Style Theme Color like <code>colorPrimary</code> for my Item Background instead of <code>@color/"whateverColorYouWant"</code></p> <p>I would like to change the theme during the game and the colors of everything in the view. Is there a way I could assign objects a variable ...
Is there a way, in Android Studio to use a Style Theme Color like colorPrimary for my Item Background instead of @color/"whateverColorYouWant" I would like to change the theme during the game and the colors of everything in the view. Is there a way I could assign objects a variable @styles/colorPrimary ? This would all...
java|android|xml|android-theme|android-color
0
2016-06-21T21:47:09.927Z
2,016
6
21
1
803
1
537
142
5
0
false
false
false
false
false
false
zero
37,965,789
android databinding in custom controls
<p>In official android docs - there is some guidance how to use databinding in fragments and activities. However I have pretty complex picker with high ammount of settings. Something like:</p> <pre><code>class ComplexCustomPicker extends RelativeLayout{ PickerViewModel model; } </code></pre> <p>So my question is ...
In official android docs - there is some guidance how to use databinding in fragments and activities. However I have pretty complex picker with high ammount of settings. Something like: [CODE] So my question is what method of the picker I need to override to be able use binding inside it and not seting/checking individ...
java|android|data-binding|android-databinding
3
2016-06-22T10:48:00.037Z
2,016
6
10
2
1,059
1
469
38
4
1
true
false
false
false
false
false
low
37,834,259
Real Time Graph is inconsistent in GraphView Library Android
<p>I am using GraphView Library. I am plotting real time graph through some third party device via bluetooth.</p> <p>It sends continnously 50 samples per sec . I need to plot it continuously.</p> <p>However i need to display around 360 samples on a screen regardless of any screen size .</p> <p>for that my code is as...
I am using GraphView Library. I am plotting real time graph through some third party device via bluetooth. It sends continnously 50 samples per sec . I need to plot it continuously. However i need to display around 360 samples on a screen regardless of any screen size . for that my code is as follows: [CODE] It works f...
android|graph|out-of-memory|real-time|android-graphview
0
2016-06-15T11:32:41.540Z
2,016
6
11
2
1,315
1
793
60
5
3
true
false
false
false
false
false
zero
37,842,675
Webview scrolling on Android not working properly
<p>In the webview.xml, I only have a frame layout as a wrapper for the webView as the following,</p> <pre><code>&lt;FrameLayout android:id="@+id/scroll_wrapper" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;WebView android:id="@+id/web_view" android:l...
In the webview.xml, I only have a frame layout as a wrapper for the webView as the following, [CODE] As a little background of the webview, it's basically a mobile web page that displays pictures, and allows for horizontal scrolling(either swiping or clicking the 'next' button). Right now, I'm able to scroll to the nex...
android|webview|attributes|scrollview
0
2016-06-15T18:04:37.063Z
2,016
6
18
2
2,339
1
825
49
4
1
true
false
false
false
false
false
zero
37,970,358
Proguard not obfuscating the code in Android
<p>I was trying to obfuscate my code using proguard. When build a release apk it is generating the apk but code is not been obfuscated. Please check my code and provide solution.</p> <p>build.gradle</p> <pre><code>buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } depen...
I was trying to obfuscate my code using proguard. When build a release apk it is generating the apk but code is not been obfuscated. Please check my code and provide solution. build.gradle [CODE] Here is my proguard-rules.pro file [CODE]
android|android-proguard
3
2016-06-22T14:01:27.633Z
2,016
6
14
2
3,107
1
237
44
2
2
true
false
true
false
false
false
low
37,626,365
Newbie questtion : Inflating xml files with and without using the actually layout
<p>This always confused me. Let's say I have these two scenarios :</p> <p>First scenario : my_layout.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout ..&gt; &lt;CardView id="@+id/myCardView" ../&gt; // or any other view &lt;/RelativeLayout&gt; </code></pre> <p>In code :</...
This always confused me. Let's say I have these two scenarios : First scenario : my_layout.xml: [CODE] In code : [CODE] Second scenario : my_layout.xml [CODE] In code : [CODE] To inflate and get a CardView object, when should one use first scenario and when the second ? Note that in first scenario, I never do anything ...
android|layout|android-inflate
0
2016-06-04T04:29:21.437Z
2,016
6
4
5
36
1
947
81
3
5
true
false
false
false
false
false
zero
37,651,509
Initialising objects in a fragment of viewpager
<p>I have an application which initiates from a viewPager somewhat like snapchat for reference. Based on the current pattern, which is: Initialising all the content on fragment is created; the UI thread is being clogged and the application takes a considerable amount of time to initiate.</p> <p>How do I do it? Since ...
I have an application which initiates from a viewPager somewhat like snapchat for reference. Based on the current pattern, which is: Initialising all the content on fragment is created; the UI thread is being clogged and the application takes a considerable amount of time to initiate. How do I do it? Since I need to wo...
android|performance|android-fragments
-1
2016-06-06T07:13:18.303Z
2,016
6
7
0
36
1
366
47
3
0
false
false
false
false
false
true
negative
37,765,146
Cannot deploy app React-Native missing organization in Manifest
<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.db3" android:versionCode="1" android:versionName="1.0"&gt; </code></pre> <p>Note that the package is "com.db3". Of course this would not be unique because the organization (url) isn't included. In my past Andr...
[CODE] Note that the package is "com.db3". Of course this would not be unique because the organization (url) isn't included. In my past Android programming, the package would be: [CODE] where <myCompany> is my organization making the package unique. The guide to deployment is sparse, is there a way to set this up from ...
deployment|package|react-native|android-manifest
0
2016-06-11T15:00:31.160Z
2,016
6
15
5
36
1
331
63
4
2
true
false
false
false
false
false
zero
37,813,287
Emulator shows loading
<p>My code in MainActivityListFragment states that the method OnActivityCreated(android.os.Bundle) is never used' and it turns out grey. I also can't add @Override before it. When I run the app, it keeps on loading instead of showing the list. I would really appreciate your help as I am doing this for a project :)</p> ...
My code in MainActivityListFragment states that the method OnActivityCreated(android.os.Bundle) is never used' and it turns out grey. I also can't add @Override before it. When I run the app, it keeps on loading instead of showing the list. I would really appreciate your help as I am doing this for a project :) content...
android|xml|emulation
0
2016-06-14T13:20:09.120Z
2,016
6
13
1
36
1
368
22
3
2
true
false
false
false
false
false
zero
37,828,680
Project selection tab can not find the referenced library
<p>I tried to add an external jar file in my app and my system identified this and created the referenced library folder. But in properties>android of my project project selection tab can not find my library.</p> <p><a href="https://i.stack.imgur.com/gvn7L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur...
I tried to add an external jar file in my app and my system identified this and created the referenced library folder. But in properties>android of my project project selection tab can not find my library.
java|android|jar
0
2016-06-15T07:23:23.530Z
2,016
6
7
2
36
1
205
57
3
0
false
false
false
false
false
false
zero
37,859,144
Nested Fragment
<p>Is there any possibility to make this below UI ? Activity->Fragment->Multi Fragment.</p> <p>i.e : A fragment inside of an Activity which have multi fragment.</p> <p>If it is then please give me an example. </p>
Is there any possibility to make this below UI ? Activity->Fragment->Multi Fragment. i.e : A fragment inside of an Activity which have multi fragment. If it is then please give me an example.
android|android-fragments|android-activity|fragment
1
2016-06-16T12:24:04.777Z
2,016
6
12
3
36
1
191
15
4
0
false
false
false
false
false
false
low
37,913,630
IntelliJ/AndroidStudio requiring device/VM for unit tests
<p>I started a new project in IntelliJ and out of the box it doesn't quite work. Currently the problem is that when I try to run a unit test it prompts me to pick a device/VM for the code to run on. Except that these are jUnit classes and shouldn't need a device. It really doesn't need anything:</p> <pre><code>public ...
I started a new project in IntelliJ and out of the box it doesn't quite work. Currently the problem is that when I try to run a unit test it prompts me to pick a device/VM for the code to run on. Except that these are jUnit classes and shouldn't need a device. It really doesn't need anything: [CODE] Any thoughts? The p...
android-studio|intellij-idea|junit
0
2016-06-20T01:44:50.337Z
2,016
6
1
0
36
1
385
57
3
1
true
false
false
false
false
false
zero
37,940,102
how to store app's data online which can be updated
<p>I want to ask that how can i store data on cloud freely so that it can be restored back even after user clears memory of app?</p> <p>what is good for this purpose firebase ? can it be used.</p>
I want to ask that how can i store data on cloud freely so that it can be restored back even after user clears memory of app? what is good for this purpose firebase ? can it be used.
java|android|backup
0
2016-06-21T09:10:14.120Z
2,016
6
9
1
36
1
182
51
3
0
false
false
false
false
false
false
zero
37,940,811
How to stop and start a Asynctask.(Android)
<p>I have button Start and Stop, and textview I want click button Start textview countdown 100->0. When I click button Stop countdown stop, then I click button Start again countdown continue. Sorry my English not good. </p>
I have button Start and Stop, and textview I want click button Start textview countdown 100->0. When I click button Stop countdown stop, then I click button Start again countdown continue. Sorry my English not good.
android|android-asynctask
-3
2016-06-21T09:40:10.390Z
2,016
6
9
1
36
1
215
43
2
0
false
false
false
false
false
true
negative
37,993,297
Will my app consume more memory and battery if I keep a service Idly running?
<p>I have a service for sending regular GPS location updates to a server.</p> <p>Now, when someone is tracking their trip with the App the will loose connectivity many times for significant periods of time. If app is not connected to internet it just persists the GPS data and sends it later when we are connected. I ha...
I have a service for sending regular GPS location updates to a server. Now, when someone is tracking their trip with the App the will loose connectivity many times for significant periods of time. If app is not connected to internet it just persists the GPS data and sends it later when we are connected. I have register...
android|broadcastreceiver|android-service
1
2016-06-23T13:38:07.883Z
2,016
6
13
3
36
1
862
77
3
0
false
false
false
false
false
false
low
38,001,043
Physical Android devices connections
<p>My question is that can we attach multiple physical devices via Bluetooth or by any other technique to test our app on multiple devices simultaneously?</p>
My question is that can we attach multiple physical devices via Bluetooth or by any other technique to test our app on multiple devices simultaneously?
android|eclipse|android-layout|android-studio
-1
2016-06-23T20:17:58.453Z
2,016
6
20
3
36
1
151
36
4
0
false
false
false
false
false
true
negative
38,001,466
Android Tablet freezing because of download
<p>I have a Samsung Galaxy Note. I was downloading a pdf file and after that my tablet is acting weirdly. Whenever I turn it off and back on, the screen would be unresponsive except for the back button and power button. Restarting doesn't work. Sometimes, when there is a prompt like choosing a browser, it sends me stra...
I have a Samsung Galaxy Note. I was downloading a pdf file and after that my tablet is acting weirdly. Whenever I turn it off and back on, the screen would be unresponsive except for the back button and power button. Restarting doesn't work. Sometimes, when there is a prompt like choosing a browser, it sends me straigh...
android
0
2016-06-23T20:41:49.770Z
2,016
6
20
3
36
1
535
43
1
0
false
false
false
false
false
false
zero
38,011,910
Call ProgressDialog loader in fragment when service is finished
<p>I have a specific situation with my fragment. It's settings fragment where user can choose to enable or disable push notifications. If he choose to enable push notifications this is happening:</p> <pre><code> getActivity().startService(new Intent(getActivity(),RegistrationIntentService.class)); </code></pre> ...
I have a specific situation with my fragment. It's settings fragment where user can choose to enable or disable push notifications. If he choose to enable push notifications this is happening: [CODE] RegistrationIntentService.class is class from GCM tutorial modified to send my details and register app within GCM. How ...
android|android-layout|android-fragments|google-cloud-messaging
0
2016-06-24T11:04:09.587Z
2,016
6
11
4
36
1
655
63
4
1
true
false
false
false
false
false
zero
38,038,642
Retrieve data from database in Uri form?
<p>i have an image uri using this uri i insert image in the sqlite DataBase but the problem is how can i retrieve image .</p> <p>this is code:</p> <pre><code>if(data!=null){ Uri uri = data.getData(); try { InputStream inputStream = getContentResolver().openInputStream(uri); BufferedInputStre...
i have an image uri using this uri i insert image in the sqlite DataBase but the problem is how can i retrieve image . this is code: [CODE] i want to retrive image??
android|sqlite
-1
2016-06-26T12:48:25.783Z
2,016
6
12
6
36
1
165
40
2
1
true
false
false
false
false
true
negative
37,660,146
Sharing data with custom list of intent display an Android System
<p>I try to share some data only via facebook, twitter and g+, so I create a custom list of intent and I can send some text, everything works fine. But I got a display problem with twitter see below <a href="https://i.stack.imgur.com/4MxMO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4MxMO.png" a...
I try to share some data only via facebook, twitter and g+, so I create a custom list of intent and I can send some text, everything works fine. But I got a display problem with twitter see below You can see this Systeme Android and if i click on it, i got this : See the code : In this first function I just put the pac...
android|android-intent|twitter|share|social-networking
0
2016-06-06T14:32:39.313Z
2,016
6
14
0
292
1
878
65
5
2
true
false
false
false
false
false
zero
37,778,653
Backendless - Persist Current User Login Information
<p>I have two Activities. The first one checks if a user is currently logged in using the Backendless API....</p> <pre><code> public void checkLogStatusOnSite(){ AsyncCallback&lt;Boolean&gt; isValidLoginCallBack = new AsyncCallback&lt;Boolean&gt;() { @Override public void handleResponse(Boolean ...
I have two Activities. The first one checks if a user is currently logged in using the Backendless API.... [CODE] If they are, the 2nd Activity is launched. If they are not, then a Login Fragment is launched. The user types in their info and is brought to the 2nd Activity. Everything works fine when I use the app once....
android|backendless
1
2016-06-12T20:14:08.727Z
2,016
6
20
6
292
1
741
52
2
1
true
false
false
false
false
false
low
37,650,319
React Native some style causes view to not render
<p>Hi i am a newbie in React Native, and trying to create an android app using the same. If i change the style of my view -> (backgroundColor or borrderBottom) it just doesn't render. There is no error anywhere, but on reloading the js bundle, the view and all its children fail to render. More than solving this particu...
Hi i am a newbie in React Native, and trying to create an android app using the same. If i change the style of my view -> (backgroundColor or borrderBottom) it just doesn't render. There is no error anywhere, but on reloading the js bundle, the view and all its children fail to render. More than solving this particular...
javascript|android|reactjs|react-native
0
2016-06-06T05:48:52.613Z
2,016
6
5
0
548
1
868
49
4
2
true
false
false
false
false
false
zero
37,997,042
Unable to mount obb file created with JOBB
<p>I'm trying to mount either an encrypted or non-encrypted obb file I created with the JOBB tool using the <code>mountExpansion()</code> method found in this question: <a href="https://stackoverflow.com/questions/20298809/mounting-an-encrypted-obb-apk-expansion-file-in-android">Mounting an encrypted obb apk expansion ...
I'm trying to mount either an encrypted or non-encrypted obb file I created with the JOBB tool using the mountExpansion() method found in this question: Mounting an encrypted obb apk expansion file in Android . What is interesting is that when I try this with an encrypted file, I get the state 21 which according to htt...
android|apk-expansion-files
6
2016-06-23T16:25:22.830Z
2,016
6
16
3
804
1
1,077
42
2
0
false
false
false
false
false
false
medium
37,798,724
How know if mediaplayer controls on notification are playing music or not?
<p>I'm doing a sound app that contains a main activity and 2 services, in the mainActivity I can control if the music is played or paused manually with a button on the main activity(so you can see it on the screen) that starts a service which active/stop mediaplayer. Moreover, I have a media player control on notificat...
I'm doing a sound app that contains a main activity and 2 services, in the mainActivity I can control if the music is played or paused manually with a button on the main activity(so you can see it on the screen) that starts a service which active/stop mediaplayer. Moreover, I have a media player control on notification...
android|audio|notifications|media-player
0
2016-06-13T20:37:47.460Z
2,016
6
20
0
1,060
1
963
74
4
1
true
false
false
false
false
false
zero
37,815,732
Unable to register token in mysql database, using firebase cloud messaging
<p>I was working a little with push notifications, which I managed to put working so far and with the Firebase Cloud Messaging Api, now I was trying to save the Token in the database, was following a tutorial and the token doesn't seem to register.</p> <p>MainActivity.java <a href="http://prntscr.com/bgadg6" rel="nofo...
I was working a little with push notifications, which I managed to put working so far and with the Firebase Cloud Messaging Api, now I was trying to save the Token in the database, was following a tutorial and the token doesn't seem to register. MainActivity.java http://prntscr.com/bgadg6 MyFirebaseInstanceIDService.ja...
java|php|android|database|firebase-cloud-messaging
1
2016-06-14T15:04:59.683Z
2,016
6
15
1
1,060
1
454
74
5
3
true
false
false
false
false
false
low
37,826,344
Json from Retrofit to SQLite Database
<p>Just wondering how you would send Json Data from Retrofit to a SQLite Database (via a ContentProvider)?</p> <p>Before Retrofit, I used to do my Request, get the Json and send it to the ContentProvider in an IntentService. So the Calls to the Server and then write to the Database are done in a worker Thread.</p> <p...
Just wondering how you would send Json Data from Retrofit to a SQLite Database (via a ContentProvider)? Before Retrofit, I used to do my Request, get the Json and send it to the ContentProvider in an IntentService. So the Calls to the Server and then write to the Database are done in a worker Thread. But starting to us...
android|json|sqlite|android-contentprovider|retrofit2
2
2016-06-15T04:46:48.733Z
2,016
6
4
2
2,084
1
666
37
5
0
false
false
false
false
false
false
low
37,894,669
How to get byte array of each ZipFile entry from ZipInputStream
<p>I have a byte array that its contents is filled from a zip file.I want to get each files in that zip archive as a separate byte array in memory to access them randomly. I don't want to write anything in sdcard and keep the arrays in memory.</p> <p>I've searched and found <a href="https://stackoverflow.com/questions...
I have a byte array that its contents is filled from a zip file.I want to get each files in that zip archive as a separate byte array in memory to access them randomly. I don't want to write anything in sdcard and keep the arrays in memory. I've searched and found this . Here is my code: [CODE] my problem is when the w...
android|arrays|unzip
2
2016-06-18T07:55:30.953Z
2,016
6
7
5
3,364
1
554
63
3
2
true
false
true
false
false
false
low
37,620,074
Establishing a TCP connection to remote server using App Inventor
<p>My university mates and I have to work with a sailing team for a month. The sailing team has started designing an app using the <a href="http://appinventor.mit.edu/explore/" rel="nofollow">App Inventor</a>. They do not have computer science education (probably that is why they are using this platform). But we do.</p...
My university mates and I have to work with a sailing team for a month. The sailing team has started designing an app using the App Inventor . They do not have computer science education (probably that is why they are using this platform). But we do. We now need to embed TCP connection with the server, so that whenever...
android|tcp|app-inventor
0
2016-06-03T17:12:53.957Z
2,016
6
17
4
4,388
1
1,114
65
3
0
false
false
true
false
false
false
zero
37,744,333
How to dynamically add preferences into preferences screen and bind their values?
<p>I'm new in Android. In my app i want to do something like this: I have a container and i want to add item dynamically to it, in one item there may be some fields, so tree would be like this:</p> <pre><code>main container - item 1 --field 1 --field 2 ... --field n - item 2 --field 1 --filed 2 .....
I'm new in Android. In my app i want to do something like this: I have a container and i want to add item dynamically to it, in one item there may be some fields, so tree would be like this: [CODE] I want to do this using preferences, cause i need store user's info in app, but don't know how. Can you help me, please?
android|preferences
9
2016-06-10T09:12:09.170Z
2,016
6
9
4
6,180
1
318
81
2
1
true
false
true
false
false
false
medium
37,652,388
Game field (Android)
<p>Could you please help me? How to make game field like in Miner or Sea Battle, or Tic Tac Toe? I tried to do this using buttons, but the result was terrible. Could anybody help me, which approach is better for this? Thanks in advance.</p>
Could you please help me? How to make game field like in Miner or Sea Battle, or Tic Tac Toe? I tried to do this using buttons, but the result was terrible. Could anybody help me, which approach is better for this? Thanks in advance.
java|android
0
2016-06-06T08:06:03.600Z
2,016
6
8
0
37
1
233
20
2
0
false
false
false
false
false
false
zero
37,766,117
Triggering An Event At Certain Dates Android
<p>i am currently developing an auction app. each item will have a time frame before the auction ends on that item. i was wondering if anyone can give me an idea on how to listen to each item and check if the auction time has ended on that given item. should i use a Service and build in it a trigger every second that ...
i am currently developing an auction app. each item will have a time frame before the auction ends on that item. i was wondering if anyone can give me an idea on how to listen to each item and check if the auction time has ended on that given item. should i use a Service and build in it a trigger every second that chec...
android
0
2016-06-11T16:35:28.843Z
2,016
6
16
5
37
1
371
44
1
0
false
false
false
false
false
false
zero
37,776,700
Dialog box does not appear after method call
<p>I am trying to build a dialog box in android but it does not appear after calling the method.</p> <p><strong>This is how I declare the method:</strong></p> <pre><code>public Dialog onCreateDialog() { // Use the Builder class for convenient dialog construction AlertDialog.Builder builder = new AlertDialog.B...
I am trying to build a dialog box in android but it does not appear after calling the method. This is how I declare the method: [CODE] This is how I call the method: [CODE] Any idea why it won't work ?
android|dialog
0
2016-06-12T16:42:05.447Z
2,016
6
16
6
37
1
201
44
2
2
true
false
false
false
false
false
zero
37,836,548
Android Imageview ontop of each other with rotation
<p>This is my situation. I have a one imageview that's being place as the background and a second imageview that's being placed on top of it. In the imageview that's being used as the background it rotates so I would like the imageview ontop of it to follow the rotation translation that is done. How would I do that?...
This is my situation. I have a one imageview that's being place as the background and a second imageview that's being placed on top of it. In the imageview that's being used as the background it rotates so I would like the imageview ontop of it to follow the rotation translation that is done. How would I do that? Essen...
java|android
0
2016-06-15T13:14:55.367Z
2,016
6
13
2
37
1
464
51
2
1
true
false
false
false
false
false
zero
37,928,124
Does Android allow users to supply their own fonts?
<p>I created an Android app that includes custom fonts (i.e., Google Fonts). I include these by adding them to the APK at build time. However, I would like to allow users to supply their own TTF files at run-time in order to add greater flexibility to my app. Is this possible? If so, how do I do it?</p>
I created an Android app that includes custom fonts (i.e., Google Fonts). I include these by adding them to the APK at build time. However, I would like to allow users to supply their own TTF files at run-time in order to add greater flexibility to my app. Is this possible? If so, how do I do it?
android|fonts
0
2016-06-20T17:06:59.377Z
2,016
6
17
0
37
1
297
51
2
0
false
false
false
false
false
false
zero
38,035,228
Adding new contact fails
<p>I have to create a method that will add contacts to the phone's contact list. Following the advice of many different posts, I've come up with this scheme:</p> <pre><code> private void addContact() { mContentValues = new ContentValues(); mContentResolver = getContentResolve...
I have to create a method that will add contacts to the phone's contact list. Following the advice of many different posts, I've come up with this scheme: [CODE] This runs to completion with no errors, warnings, or console output. But the contact is never added. I think that the most likely place it went wrong is in as...
android|android-contentprovider|android-permissions|android-contentresolver
0
2016-06-26T04:35:07.120Z
2,016
6
4
6
37
1
428
24
4
1
true
false
false
false
false
false
zero
37,757,779
qemu: hardware error: Can't set isa irqs with no isa bus present
<p>My English is not good. Firstly I'm sorry for this. I have a problem about Android Studio. My operating system is LinuxMint. After updating v2.1.2, my AVD doesn't work. Error output is like this:</p> <pre><code>Cannot launch AVD in emulator. Output: qemu: hardware error: Can't set isa irqs with no isa bus present. ...
My English is not good. Firstly I'm sorry for this. I have a problem about Android Studio. My operating system is LinuxMint. After updating v2.1.2, my AVD doesn't work. Error output is like this: [CODE] Before updating everything was OK. How can i solve this problem? Thanks...
android|android-studio|qemu|linux-mint|avd
1
2016-06-10T22:08:03.097Z
2,016
6
22
4
293
1
277
64
5
1
true
false
false
false
false
false
low
37,908,044
Calling measure() on child views more than once
<p>There's something in android docs:</p> <blockquote> <p>A parent View may call measure() more than once on its children. For example, the parent may measure each child once with unspecified dimensions to find out how big they want to be, then call measure() on them again with actual numbers if the sum of all the c...
There's something in android docs: A parent View may call measure() more than once on its children. For example, the parent may measure each child once with unspecified dimensions to find out how big they want to be, then call measure() on them again with actual numbers if the sum of all the children's unconstrained si...
android|layout
1
2016-06-19T14:02:19.033Z
2,016
6
14
6
293
1
707
47
2
0
false
false
false
false
false
false
low
37,706,727
layer-list dosen't display correctly below android m
<p>I wanna draw a cross like "x" and this is my code: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:gravity="center"&gt; &lt;rotate android:fromDegrees="45" android:pivotX="50%" ...
I wanna draw a cross like "x" and this is my code: [CODE] It is ok on device running android m (api >= 22) but error on other devices (api < 22). Is it the bug of android?
android|layer-list
0
2016-06-08T15:23:47.500Z
2,016
6
15
2
549
1
171
52
2
1
true
false
false
false
false
false
zero
37,609,970
How to acceleration animation when its about to end
<p>Here is my code</p> <pre><code>final ObjectAnimator transAnimation = ObjectAnimator.ofFloat(image, "y", image.getY(), 20); transAnimation.setDuration(duration); transAnimation.start(); </code></pre> <p>Right now the animation slows down when animation about to comple...
Here is my code [CODE] Right now the animation slows down when animation about to complete. I want it to accelerate instead. Please help me.
java|android|animation
1
2016-06-03T08:50:50.833Z
2,016
6
8
4
1,573
1
140
51
3
1
true
false
false
false
false
false
low
37,788,731
How to use Android AutoCompleteTextView on Xamarin.Forms
<p>I'm working on a <code>Xamarin.forms</code> project but i need to use <code>Android.Widget.AutoCompleteTextView</code> how can i apply that? When i am trying to add <code>AutoCompleteTextView UserNameAutoComplete;</code> to <code>ContentPage</code> i get the following error:</p> <pre class="lang-cs prettyprint-ove...
I'm working on a Xamarin.forms project but i need to use Android.Widget.AutoCompleteTextView how can i apply that? When i am trying to add AutoCompleteTextView UserNameAutoComplete; to ContentPage i get the following error: [CODE] cannot convert from 'Android.Widget.AutoCompleteTextView' to 'Xamarin.Forms.View'
xamarin|xamarin.android|xamarin.forms
6
2016-06-13T11:31:53.463Z
2,016
6
11
0
2,085
1
312
56
3
1
true
false
false
false
false
false
medium
37,934,882
OnRequestPermissionsResultCallback not triggering in PreferenceFragment
<pre><code>import android.preference.PreferenceFragment; import android.support.v13.app.FragmentCompat; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; public class Preferences extends PreferenceFragment implements OnPreferenceClickListener, FragmentCompat.OnRequestPermis...
[CODE] I'm trying to get the new permissions. The dialog shows up requesting the permission when it should, but onRequestPermissionResult it's never called, be it rejection or acceptance. Any idea? The examples are all using Activity and not a Fragment, so that might be the problem. Also, I'm not sure which Compat I sh...
java|android|permissions|android-permissions
1
2016-06-21T03:02:04.700Z
2,016
6
3
1
4,901
1
361
71
4
1
true
false
true
false
false
false
low
37,913,796
bluetooth error no advertisable device
<pre><code>#! /usr/bin/python import bluetooth import uuid server_socket = bluetooth.BluetoothSocket( bluetooth.RFCOMM ) port = 1 server_socket.bind(("",port)) server_socket.listen(1) uuID = ##generated uuid bluetooth.advertise_service( server_socket, "test", service_id=uuID ) client_socket, client_address = serv...
[CODE] If anyone could help with this, that would be great. I've tried going through the instructions listed here about 5 times: Python code for Bluetooth throws error after I had to reset the adapter I keep getting an error saying "bluetooth.btcommon.BluetoothError: error no advertisable device" The line number points...
android|python|sockets|bluetooth|raspberry-pi3
5
2016-06-20T02:15:06.097Z
2,016
6
2
0
7,205
1
1,230
38
5
4
true
false
true
false
false
false
low
37,641,618
Selecting picture from phone's memory and setting it as background
<p>I have repeated the methodology described by the answers founds in this website, but my app is not working properly. </p> <p>When I press the button to select the image new window opens that shows all the folders containing the pictures. When I select one image by just tapping on it, the window for selecting the pi...
I have repeated the methodology described by the answers founds in this website, but my app is not working properly. When I press the button to select the image new window opens that shows all the folders containing the pictures. When I select one image by just tapping on it, the window for selecting the pictures disap...
android|android-imageview
0
2016-06-05T11:58:22.167Z
2,016
6
11
6
38
1
538
66
2
2
true
false
false
false
false
false
zero
37,653,953
Nullpointer in Volley
<p>i´m getting a NullPointerException when i do the connection to my API using Volley, this is the method i'm using:</p> <pre><code> List&lt;Empresas&gt; empresas = rellenar(); private List&lt;Empresas&gt; rellenar() { final List&lt;Empresas&gt; empresas2 = null; JsonObjectRequest jsonObjectRequest = new...
i´m getting a NullPointerException when i do the connection to my API using Volley, this is the method i'm using: [CODE] When the activity starts the List<Empresas> empresas calls the method in the onCreateView of the fragment and after a few seconds i get a NullPointerException in empresas2.add(negocio) it's the first...
java|android|android-volley
-1
2016-06-06T09:32:11.083Z
2,016
6
9
0
38
1
379
21
3
1
true
false
false
false
false
true
negative
37,711,271
How display image once?
<p>May be need to keep some value in SharedPreferences?</p> <p><strong>XML</strong></p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:id="@+id/fragment2_bacground" android:foreground="@...
May be need to keep some value in SharedPreferences? XML [CODE] Class [CODE] This method does not work [CODE] Any help is appreciated.
java|android
0
2016-06-08T19:28:59.650Z
2,016
6
19
2
38
1
134
23
2
3
true
false
false
false
false
false
zero
37,806,364
Project Structure form in Android Studio doesn't have librareis
<p>I want in Android Studio to add JUnit library but in Project Structure form it doesn't exist. I work in android studio version 2.1.2.</p> <p><a href="https://i.stack.imgur.com/mWdf0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mWdf0.png" alt="enter image description here"></a></p>
I want in Android Studio to add JUnit library but in Project Structure form it doesn't exist. I work in android studio version 2.1.2.
android-studio|junit
0
2016-06-14T08:06:47.700Z
2,016
6
8
1
38
1
133
63
2
0
false
false
false
false
false
false
zero
37,817,234
Deploying in android
<p>I have developped a worklight application (worklight 7.1 sdk) with adapter authentication. I have added an android environment. After building the android app I copied the apk to my development tablet and run it. I'm now facing 2 issues: 1) I can see that at startup time worklight queries cordova api in order to get...
I have developped a worklight application (worklight 7.1 sdk) with adapter authentication. I have added an android environment. After building the android app I copied the apk to my development tablet and run it. I'm now facing 2 issues: 1) I can see that at startup time worklight queries cordova api in order to get th...
android|ibm-mobilefirst
0
2016-06-14T16:14:28.730Z
2,016
6
16
1
38
1
1,396
20
2
0
false
false
false
false
false
false
zero
37,821,802
How to make the cellphone's screen show the alarm when it is locked
<p>I'm learning about AlarmManager; making a simple alarm app. At the moment it's working, but only when the cellphone is unlocked. When I've used an alarm app, the alarm doesn't unlock the cellphone but it is shown on the screen although the cellphone is locked. How can I do this?.</p>
I'm learning about AlarmManager; making a simple alarm app. At the moment it's working, but only when the cellphone is unlocked. When I've used an alarm app, the alarm doesn't unlock the cellphone but it is shown on the screen although the cellphone is locked. How can I do this?.
java|android
0
2016-06-14T20:48:13.673Z
2,016
6
20
1
38
1
280
67
2
0
false
false
false
false
false
false
zero
37,901,760
android listview outofmemory - ImageBitmaps
<p>I have a <code>ListView</code> and a <code>GridView</code> both causing me problems and <code>OutOfMemory</code> errors when scrolling, I read online about the issue and saw <a href="https://stackoverflow.com/questions/18376147/out-of-memory-exception-while-scroll-listview">this</a> question so I used Sunil's first ...
I have a ListView and a GridView both causing me problems and OutOfMemory errors when scrolling, I read online about the issue and saw this question so I used Sunil's first solution and implemented it in my code. the images for the GridView and ListView are at "/res/drawable/image1.png" and so on, I passed to the Custo...
android|listview|gridview
0
2016-06-18T21:22:59.473Z
2,016
6
21
5
38
1
806
43
3
2
true
false
false
false
false
false
zero
37,991,086
Sorting queries with operations (Android - Parse.com)
<p>Treat the provided as pseudo-code.</p> <pre><code> query.orderByDescending(0.25 * "likesCount" + 0.75 * "reblogsCount"); </code></pre> <p>Why can't I run an operation on a query in such a way so as to sort a list by the weighted average of two different columns?</p> <p>Do I really need to produce a new column, le...
Treat the provided as pseudo-code. [CODE] Why can't I run an operation on a query in such a way so as to sort a list by the weighted average of two different columns? Do I really need to produce a new column, let's say "score", update it upon each like or reblog event, and then sort by that column? Is there a way to ac...
java|android|parse-platform
-1
2016-06-23T12:02:52.867Z
2,016
6
12
3
38
1
403
53
3
1
true
false
false
false
false
true
negative
38,003,230
How to add four timestamps together
<p>Have this tiny question. I am taking the hours and minutes using a timepicker and are setting the time in four different edittexts. Now I wonder how I can add these times together and get a total value.</p>
Have this tiny question. I am taking the hours and minutes using a timepicker and are setting the time in four different edittexts. Now I wonder how I can add these times together and get a total value.
android|date|timestamp
-2
2016-06-23T22:58:59.717Z
2,016
6
22
3
38
1
202
35
3
0
false
false
false
false
false
true
negative
38,038,435
Single function to retrive data from Broadcast receiver
<p>I have a function ReadConfig in non activity class which is invoked by a Service. This function uses IntentService to read data from a file.</p> <p><strong>Function in non activity class</strong></p> <pre><code>//Start of globalVariables public static boolean received; public static String actionID = "ACTION_ID"; ...
I have a function ReadConfig in non activity class which is invoked by a Service. This function uses IntentService to read data from a file. Function in non activity class [CODE] Intent Service [CODE] The intent service is getting invoked and broadcasts the data but the receiver however doesn't receive any data from Br...
java|android
0
2016-06-26T12:16:25.520Z
2,016
6
12
6
38
1
374
55
2
2
true
false
false
false
false
false
zero
37,703,947
Rotate 3d vector value into a single axis using a rotation quaternion
<p>I want to rotate the whole value of a 3d vector into one axis using quaternion rotations.</p> <p>The reason behind is that I want to align the X and Y Axis of my smartphone with the X and Y Axis of my vehicle in order to detect lateral and longitudinal acceleration separated on these two axis. Therefore I want to d...
I want to rotate the whole value of a 3d vector into one axis using quaternion rotations. The reason behind is that I want to align the X and Y Axis of my smartphone with the X and Y Axis of my vehicle in order to detect lateral and longitudinal acceleration separated on these two axis. Therefore I want to detect the f...
android|rotation|android-sensors|quaternions
0
2016-06-08T13:30:25.857Z
2,016
6
13
2
294
1
500
69
4
0
false
false
false
false
false
false
zero
37,772,371
Account settings crash on Marshmallow
<p>I have an app working on JB (API 18) with my own account authenticator and sync adapter. When i run the app on Marshmallow, the app itself is running good, but when i trying to enter my account and sync settings - it crashes. I mean when i go to phone's Settings->Accounts - the settings app crashes. When i uninstall...
I have an app working on JB (API 18) with my own account authenticator and sync adapter. When i run the app on Marshmallow, the app itself is running good, but when i trying to enter my account and sync settings - it crashes. I mean when i go to phone's Settings->Accounts - the settings app crashes. When i uninstall my...
android|android-6.0-marshmallow|android-syncadapter|accountmanager
0
2016-06-12T08:50:23.593Z
2,016
6
8
6
294
1
436
37
4
1
true
false
false
false
false
false
zero
37,940,378
Fragments / Navigation Drawer Overlapping TableLayout?
<p>I need help with my code. I'm trying to use the Navigation Drawer code Android Studio gives you by default. The starting screen is the content_main.xml and the problem is if I put a textview or anything else on the content_main, it appears on the other fragment/activities when switching.</p> <p>My Code (I have two ...
I need help with my code. I'm trying to use the Navigation Drawer code Android Studio gives you by default. The starting screen is the content_main.xml and the problem is if I put a textview or anything else on the content_main, it appears on the other fragment/activities when switching. My Code (I have two fragments, ...
android|android-layout|android-fragments|navigation-drawer
0
2016-06-21T09:21:08.070Z
2,016
6
9
1
294
1
554
54
4
4
true
false
false
false
false
false
zero
37,713,054
Stretch space between views in RecyclerView
<p>I have a RecyclerView with a dynamic number of elements (The heights of the elements is not known in advance). If the heights of all elements is less than the screen height, I want to add equal spaces between the elements. Is there a simple way to do something like this?</p> <p>Thanks!</p> <p>CraniumRat</p>
I have a RecyclerView with a dynamic number of elements (The heights of the elements is not known in advance). If the heights of all elements is less than the screen height, I want to add equal spaces between the elements. Is there a simple way to do something like this? Thanks! CraniumRat
android|android-layout|android-recyclerview
0
2016-06-08T21:15:23.457Z
2,016
6
21
2
550
1
290
43
3
0
false
false
false
false
false
false
zero
37,793,640
How to call startActivityForResult from static method?
<p>My question seems to be duplicated but it is not. I have searched hours to find a solution but I found no help.</p> <p>I need call startActivityForResult from static method.</p> <p>Please help me. Thank you.</p>
My question seems to be duplicated but it is not. I have searched hours to find a solution but I found no help. I need call startActivityForResult from static method. Please help me. Thank you.
android
-1
2016-06-13T15:26:23.287Z
2,016
6
15
0
806
1
193
54
1
0
false
false
false
false
false
true
negative
37,831,913
Views inside CoordinatorLayout are overlapped by system buttons
<p>How to solve this problem so LinearLayout will be adjacent to or fitted right to system buttons? Does replacing of GridView to RecycleView solve it? Currently I've solved this by adding some margin for the last element in the GridView adapter but I think there should be a better, more straightforward way.</p> <p><a...
How to solve this problem so LinearLayout will be adjacent to or fitted right to system buttons? Does replacing of GridView to RecycleView solve it? Currently I've solved this by adding some margin for the last element in the GridView adapter but I think there should be a better, more straightforward way. Here is the c...
android|xml|android-layout|material-design|android-support-library
2
2016-06-15T09:50:57.427Z
2,016
6
9
2
1,062
1
398
63
5
3
true
false
false
false
false
false
low
37,941,400
Fixed Dialing Number (FDN) how to create list of allowed numbers programmatically
<p>I would like to create/update the FDN list programmatically. Any idea where this journey should begin? </p> <p>Maybe somebody before me had similar issue and can help me with this. For any code examples which will push my work forward I will be very greatful.</p> <p>I am adding the screenshot (android emulator API...
I would like to create/update the FDN list programmatically. Any idea where this journey should begin? Maybe somebody before me had similar issue and can help me with this. For any code examples which will push my work forward I will be very greatful. I am adding the screenshot (android emulator API17) to make it clear...
android|xamarin|fixed|phone-number|dialing
1
2016-06-21T10:04:41.757Z
2,016
6
10
1
1,318
1
470
81
5
0
false
false
false
false
false
false
low
37,780,134
How to store and read text on android project?
<p>I'm pharmD student and newly in android development. I create an app to calculate the doses for patient upon specific calculation. now PharmD will input the data then calc.. etc. I need to make the user can save the patient case in the internal sd then in any time he need to see it can go back for it So <strong>firs...
I'm pharmD student and newly in android development. I create an app to calculate the doses for patient upon specific calculation. now PharmD will input the data then calc.. etc. I need to make the user can save the patient case in the internal sd then in any time he need to see it can go back for it So firstly ; how t...
android|android-edittext|storage
-1
2016-06-12T23:34:11.237Z
2,016
6
23
6
39
1
529
46
3
1
true
false
false
false
false
true
negative
37,867,505
android imagebutton onclick doesnt change resource
<p><strong><em>I want 3 things to change when i click on my imagbutton if boolean is true:</em></strong></p> <ul> <li>backgroundcolor</li> <li>set edittext: focusable, clickable</li> <li>backgroundresource</li> </ul> <p><strong>But only the</strong> <em>backgroundcolor</em> <strong>is working. The resource doesnt cha...
I want 3 things to change when i click on my imagbutton if boolean is true: backgroundcolor set edittext: focusable, clickable backgroundresource But only the backgroundcolor is working. The resource doesnt change and the focusable and clickable of the edittext is always false [CODE]
android|imagebutton
0
2016-06-16T19:08:02.197Z
2,016
6
19
3
39
1
284
50
2
1
true
false
false
false
false
false
zero
37,881,991
Android Studio When I press debug it runs tests instead of Compiling Projects
<p>For some reason whenever I press the debug button in android studio it runs tests from one of my libraries instead of compiling the project.</p>
For some reason whenever I press the debug button in android studio it runs tests from one of my libraries instead of compiling the project.
android|android-studio
1
2016-06-17T12:49:13.197Z
2,016
6
12
4
39
1
140
77
2
0
false
false
false
false
false
false
low
37,979,577
Draw background height depending on a given value Android
<p>I would like to have a background on my app that changes color depending on a given number. Let me elaborate some more. For example, I pass the number 40 out of 100, 2/5s of the screen should be x color, and the other 3/5s should be the other color. Here are two little diagrams:</p> <pre><code>40 / 100 ...
I would like to have a background on my app that changes color depending on a given number. Let me elaborate some more. For example, I pass the number 40 out of 100, 2/5s of the screen should be x color, and the other 3/5s should be the other color. Here are two little diagrams: [CODE] So I was thinking I could go abou...
android
1
2016-06-22T22:58:37.567Z
2,016
6
22
2
39
1
657
57
1
1
true
false
false
false
false
false
low
37,987,017
Is there any option to debug xamarin android application quickly?
<p>I am new with xamarin development, debugging too time to get ready with view. After made tiny changes, need to build the application it takes 2-4 minutes get ready with view on Simulator or Emulator. </p> <p>Secondly, if we are using xaml view and we want to made changes in design, after change or add the propertie...
I am new with xamarin development, debugging too time to get ready with view. After made tiny changes, need to build the application it takes 2-4 minutes get ready with view on Simulator or Emulator. Secondly, if we are using xaml view and we want to made changes in design, after change or add the properties we can not...
android|xaml|xamarin|xamarin.android
1
2016-06-23T09:05:54.537Z
2,016
6
9
3
39
1
391
65
4
0
false
false
false
false
false
false
low
37,662,715
Hybrid application development (PhoneGap, Cordova, Ionic) under the hood
<p>I am trying to understand how everything works, but have some questions about this topic. </p> <p>I will explain how I understand this stuff. </p> <p>First of all lets start from <code>Cordova</code> this is platform that translates <code>JS</code>,<code>CSS</code>,<code>HTML</code> files into native app. But ...
I am trying to understand how everything works, but have some questions about this topic. I will explain how I understand this stuff. First of all lets start from Cordova this is platform that translates JS , CSS , HTML files into native app. But stop this is not exactly the true. Really it just puts all html, css file...
android|html|css|cordova
4
2016-06-06T16:41:19.650Z
2,016
6
16
0
295
1
2,029
72
4
0
false
false
false
false
false
false
low
37,748,712
Deferred deep linking in android
<p>How can we get deferred deep linking work when the android app is installed from any third party location other than Play Store, say GDrive or S3 bucket. How to pass intent data in this case? Thanks in advance.</p>
How can we get deferred deep linking work when the android app is installed from any third party location other than Play Store, say GDrive or S3 bucket. How to pass intent data in this case? Thanks in advance.
android|deep-linking
0
2016-06-10T12:47:58.943Z
2,016
6
12
4
1,831
1
210
32
2
0
false
false
false
false
false
false
zero
37,623,391
GoogleApiClient wont even ask for a singup
<p>im trying to create a game. I want to implement that you gotta singup on start. Even if I call the mGoogleApiClient.connect() Method I won't get a request for signin in: Heres the Code.</p> <pre><code>MediaPlayer song1; MediaPlayer buttonSound; int brainEfficiency = 0; //sound boolean muted = true; // int lengt...
im trying to create a game. I want to implement that you gotta singup on start. Even if I call the mGoogleApiClient.connect() Method I won't get a request for signin in: Heres the Code. [CODE] How you can see I'm calling a log in after the login I'm calling a log method which just puts out FALSE. So I actually dont kno...
java|android|android-studio|google-api|google-api-client
0
2016-06-03T21:05:37.473Z
2,016
6
21
4
40
1
341
42
5
1
true
false
false
false
false
false
zero
37,646,953
Does FragmentTabHost need TabWidget to be defined explicitly
<p>I'm trying to implement an Activity with 3 tabs on it. I decided to use FragmentTabHost for this purpose. I've found some code examples with following layout file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layo...
I'm trying to implement an Activity with 3 tabs on it. I decided to use FragmentTabHost for this purpose. I've found some code examples with following layout file: [CODE] But I was surprised when understood that previous code sample works the same way without TabWidget: [CODE] I just see my tabs as intended. According ...
android|android-support-library|android-tabs
0
2016-06-05T21:27:33.527Z
2,016
6
21
6
40
1
518
60
3
2
true
false
false
false
false
false
zero
37,688,394
Resize image before sharing (insert canvas)
<p>I currently have a few images (all 100x100 in dimension, very small) that are pulled from a MySQL DB server and displayed in my app. Everything works and behaves as I want. However, I noticed that when I share the images to WhatsApp, Messenger or other social media apps (I have buttons in my app that share the image...
I currently have a few images (all 100x100 in dimension, very small) that are pulled from a MySQL DB server and displayed in my app. Everything works and behaves as I want. However, I noticed that when I share the images to WhatsApp, Messenger or other social media apps (I have buttons in my app that share the image) t...
java|android|android-layout
0
2016-06-07T20:08:14.960Z
2,016
6
20
1
40
1
858
43
3
1
true
false
false
false
false
false
zero
37,704,650
Data duplication in horizontal listView in android
<p>I am working on a demo in that i have used a horizontal listView for displaying some images and texts ,I have done it successfully but my issue is at time when images are loading it displays same image twice(in two listitems).All times my last image is showing in my 4th listitem of my horizontal ListView in android,...
I am working on a demo in that i have used a horizontal listView for displaying some images and texts ,I have done it successfully but my issue is at time when images are loading it displays same image twice(in two listitems).All times my last image is showing in my 4th listitem of my horizontal ListView in android,Can...
android|listview|android-adapter
0
2016-06-08T13:58:20.387Z
2,016
6
13
2
40
1
412
50
3
2
true
false
false
false
false
false
zero
37,769,811
I have difficulty in making a fragment trigger an alarm. here is my Activity and the fragment
<p>Here is my Activity Class that initiate the Alarm Manager and on pressing the button found on my fragment gives error!</p> <p>Activity -</p> <pre><code>public class Schedule extends AppCompatActivity { CardView cardView = null; private Toolbar toolbar; private TabLayout tabLayout; private ViewPager v...
Here is my Activity Class that initiate the Alarm Manager and on pressing the button found on my fragment gives error! Activity - [CODE] //here is the Fragment class for the Alarm [CODE]
java|android
0
2016-06-12T00:53:51.150Z
2,016
6
0
6
40
1
186
93
2
2
true
false
false
false
false
false
zero
37,838,179
Using child from layout that is included multiple times in activity
<p>This is layout that I want to reuse multiple times in activity:</p> <p>reusable_layout.xml</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight...
This is layout that I want to reuse multiple times in activity: reusable_layout.xml [CODE] This is the activity layout where I want to include reusable_layout.xml multiple times: [CODE] Here is some code from activity: [CODE] When starting activity, app crashes (java.lang.NullPointerException). Any idea how to get to c...
java|android-layout|nullpointerexception|include|parent-child
0
2016-06-15T14:22:41.853Z
2,016
6
14
2
40
1
353
67
5
3
true
false
false
false
false
false
zero
37,851,821
Identify when DrawerLayout scroll is positioned at last item in NavigationDrawer
<p>I have a <code>DrawerLayout</code> side menu with 15 items. I want to know when the user scrolls the side menu and reached the last item of side menu. ie., I want to do an action when user has scrolled to the 15th item of the side menu. Is there any way to achieve that?</p>
I have a DrawerLayout side menu with 15 items. I want to know when the user scrolls the side menu and reached the last item of side menu. ie., I want to do an action when user has scrolled to the 15th item of the side menu. Is there any way to achieve that?
android|navigation-drawer|drawerlayout
0
2016-06-16T06:52:10.697Z
2,016
6
6
3
40
1
257
80
3
0
false
false
false
false
false
false
zero
37,997,701
How to refer to a randomly generated button's elements
<p>I need to randomly generate a button and then grab elements from it from the activity that the button opens. Specifically the universal ID of a "character" that I have specified in PersistentData. (That whole class works fine, though. The problem is between this activity and the next.) The child activity has multipl...
I need to randomly generate a button and then grab elements from it from the activity that the button opens. Specifically the universal ID of a "character" that I have specified in PersistentData. (That whole class works fine, though. The problem is between this activity and the next.) The child activity has multiple a...
java|android|button|android-intent|random
0
2016-06-23T17:01:12.297Z
2,016
6
17
3
40
1
1,683
54
5
3
true
false
false
false
false
false
zero
38,019,614
How to pass a value from a listview loaded from MYSQL using the onclick function?
<p>I've had troubles passing a value from a <em>ListView</em> filled from a <strong>MYSQL</strong> database using JSON, the array fills with a <code>for</code> cycle, and I can't use the value to pass the code to another activity. Here is the code:</p> <pre><code>public class SubCategoria extends ActionBarActivity { ...
I've had troubles passing a value from a ListView filled from a MYSQL database using JSON, the array fills with a for cycle, and I can't use the value to pass the code to another activity. Here is the code: [CODE] In the code, I did write this: [CODE] But I can't get any form to pass the Sub-Category code to the Other ...
java|android|mysql|json|listview
0
2016-06-24T18:07:30.593Z
2,016
6
18
4
40
1
454
81
5
2
true
false
false
false
false
false
zero
37,633,591
Libgdx how to create new objects of body to draw dynimcally
<p>I am trying to make a game where apples will fall from sky and allow boy to eat them I had already made the environment and the boy and one apple falling correctly but I want to make more objects of the apple to fall from sky at specific time how can I repeat the calling of apple class, where I have to call it I bu...
I am trying to make a game where apples will fall from sky and allow boy to eat them I had already made the environment and the boy and one apple falling correctly but I want to make more objects of the apple to fall from sky at specific time how can I repeat the calling of apple class, where I have to call it I built ...
java|android|libgdx
0
2016-06-04T18:20:24.117Z
2,016
6
18
5
552
1
467
59
3
2
true
false
false
false
false
false
zero
37,864,591
Long Press Material Design Button Allows Pasting into Button Label
<p><strong>Background</strong></p> <p>I have a standard Material Design button, as per below</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v7.widget.AppCompatButton xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" a...
Background I have a standard Material Design button, as per below [CODE] The style applied to it is as follows [CODE] The Problem When the button is long pressed, the system paste button appears and allows the user to paste content into the Button's label. Then after pasting: I cannot see a way to stop this from an XML...
android|material-design|android-appcompat
4
2016-06-16T16:23:31.590Z
2,016
6
16
3
552
1
482
66
3
2
true
false
false
false
false
false
low
37,686,630
Canvas to .jpg file with Cordova Phonegap
<p>I'm trying to store a canvas in my divice, reading in internet i found that i have to convert my canvas to <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL" rel="nofollow noreferrer">Base64</a>, nice, i did it... </p> <p>Then i searched a function to store a base64 with cordova ...
I'm trying to store a canvas in my divice, reading in internet i found that i have to convert my canvas to Base64 , nice, i did it... Then i searched a function to store a base64 with cordova and just found a function that stores a Blob object, so i searched again and found a function that converts my base64 to Blob, a...
javascript|android|cordova|canvas
1
2016-06-07T18:23:24.350Z
2,016
6
18
1
808
1
683
41
4
1
true
false
false
false
false
false
low
37,757,599
How to stop music when user exits the app
<p>I was reading many tips and answers to similar questions but can't get it done with my piece of code. The isse is that music is played in background even when you exit the app. Can you help me to fix this? I have the button which clicked starts the music and clicked the second time pause it. This works what I want ...
I was reading many tips and answers to similar questions but can't get it done with my piece of code. The isse is that music is played in background even when you exit the app. Can you help me to fix this? I have the button which clicked starts the music and clicked the second time pause it. This works what I want to a...
android-mediaplayer|playback|background-music
1
2016-06-10T21:48:40.097Z
2,016
6
21
4
808
1
424
41
3
1
true
false
false
false
false
false
low
37,970,551
OpenCV resize failing
<p>I have an application using A <code>JavaCameraView</code> from OpenCV for android that uses the following callback</p> <pre><code>CameraBridgeViewBase.CvCameraViewListener cvListener = new CameraBridgeViewBase.CvCameraViewListener() { @Override public void onCameraViewStarted(int width, int height) { }...
I have an application using A JavaCameraView from OpenCV for android that uses the following callback [CODE] However, when the resizing happens, an error occurs saying [CODE] Nothing happens in the actual UI. I'm not sure why I'm seeing this error, since I'm never calling Utils.bitmapToMat or Utils.matToBitmap . When I...
android|opencv
1
2016-06-22T14:09:29.737Z
2,016
6
14
2
2,088
1
431
21
2
2
true
false
false
false
false
false
low
37,627,772
Getting geo coordinates from Google map
<p>In my app,I enable the user to enter a new Marker or Markers in the google map. This is how I do it.</p> <pre><code> public void onMapReady(GoogleMap googleMap) { ready = true; mMap = googleMap; //UiSettings ui=mMap.getUiSettings(); //ui.setZoomGesturesEnabled(false); MarkerOptions mo = new Ma...
In my app,I enable the user to enter a new Marker or Markers in the google map. This is how I do it. [CODE] With the help of the debugger I get the geo coordinates in the following form [CODE] Up to this to this point everything works ok,but I want to decouble the above response as [CODE] This is where I am stuck. Any ...
android|google-maps|coordinates
-3
2016-06-04T07:47:37.553Z
2,016
6
7
5
41
1
340
39
3
3
true
false
false
false
false
true
negative
37,645,097
Android managging monitors concurrency with buttons
<h1>Context</h1> <p>I need to manage the concurrency of an app. I declared a <code>Object sync</code> to use monitors on that object.</p> <p>The main goal is that the first button, <code>A</code>, will execute some code, but, when reaching some points, it needs button <code>B</code> to be clicked to be able to continue...
Context I need to manage the concurrency of an app. I declared a Object sync to use monitors on that object. The main goal is that the first button, A , will execute some code, but, when reaching some points, it needs button B to be clicked to be able to continue. Something like this: Issues The issue is that the B but...
android|multithreading|user-interface|concurrency
1
2016-06-05T18:02:15.717Z
2,016
6
18
6
41
1
725
51
4
0
false
false
false
false
false
false
low
37,700,769
Using Parse Server on Linux (Webpanel)
<p>I have installed <code>MongoDB</code> and <code>Parse</code> (open Source), all running on my <code>Linux Server</code>. How can i create <code>Application ID</code>? Does <code>Parse</code> have an web interface?!</p>
I have installed MongoDB and Parse (open Source), all running on my Linux Server . How can i create Application ID ? Does Parse have an web interface?!
android|parse-platform|debian|parse-server
0
2016-06-08T11:06:42.770Z
2,016
6
11
2
41
1
151
38
4
0
false
false
false
false
false
false
zero
37,719,234
unable to filter text in list-view in android
<p>Adapter Class: </p> <pre><code> public class ListViewAdapter extends ArrayAdapter&lt;Datamodel&gt; { // Declare Variables Context context; LayoutInflater inflater; List&lt;Datamodel&gt; datamodel; ArrayList&lt;Datamodel&gt; productlist; public ListViewAdapter(Cont...
Adapter Class: [CODE] Actvity Class: [CODE] I want to filter listview on text basis I want filter list-view or search listview name wise i have write code but when I try to search it give exception arraylistthrogh index out of bound exception at holder.name.setText(datamodel.get(position).getName()); this line please t...
android
0
2016-06-09T07:16:50.127Z
2,016
6
7
3
41
1
413
45
1
2
true
false
false
false
false
false
zero
37,720,371
Xamarin.Android CrossPlatform Application not Run
<p>I have Installed Xamarin with Visual Studio. Xamarin Forms Application Run well on Ios and Windows Platform but it does not run on Android Phone. I am getting Error </p> <pre><code>Severity Code Description Project File Line Suppression StateError Please install package: 'Xamarin.Android.Support....
I have Installed Xamarin with Visual Studio. Xamarin Forms Application Run well on Ios and Windows Platform but it does not run on Android Phone. I am getting Error [CODE] Please Help me to solve this problem.Thanks in advance.
xamarin|xamarin.ios|xamarin.android|xamarin-studio
0
2016-06-09T08:14:49.107Z
2,016
6
8
3
41
1
227
49
4
1
true
false
false
false
false
false
zero
37,768,963
Bundle disappearing from fragment after commit?
<p>I have an Activity whose sole purpose to to host a fragment. I'm starting this activity with an Intent, then using information from the Intent to add args to a Fragment which I'd like to add to the new Activity.</p> <p>Here is the onCreate in SingleClickerActivity (this Activity is started by the Intent). When step...
I have an Activity whose sole purpose to to host a fragment. I'm starting this activity with an Intent, then using information from the Intent to add args to a Fragment which I'd like to add to the new Activity. Here is the onCreate in SingleClickerActivity (this Activity is started by the Intent). When stepping throug...
java|android-fragments|android-intent|android-activity|bundle
1
2016-06-11T22:17:18.100Z
2,016
6
22
5
41
1
664
47
5
2
true
false
false
false
false
false
low
37,818,984
Next item, nextButton,
<p>I have an Activity (MainWordsActivity) that has a ListView populated by data from database, when one of its items is clicked I pass that row of database and its position on the ListView to another activity (DetailActivity). I also have a next button in the DetailActivity, each time it is clicked, I want the next ite...
I have an Activity (MainWordsActivity) that has a ListView populated by data from database, when one of its items is clicked I pass that row of database and its position on the ListView to another activity (DetailActivity). I also have a next button in the DetailActivity, each time it is clicked, I want the next item i...
android|listview
0
2016-06-14T17:55:45.427Z
2,016
6
17
1
41
1
613
22
2
2
true
false
false
false
false
false
zero
37,835,993
how to display an answer from dominant radiobutton that checked in every questio*?
<p>i'v 3 radiobuttons in every question in my program, but i dont know how to display the answer based on how many radiobutton selected. pls help</p> <p><strong>here is the xml :</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/a...
i'v 3 radiobuttons in every question in my program, but i dont know how to display the answer based on how many radiobutton selected. pls help here is the xml : [CODE] here's the database.java : [CODE] the other .java: [CODE]
java|android
0
2016-06-15T12:50:10.997Z
2,016
6
12
2
41
1
225
82
2
3
true
false
false
false
false
false
zero