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,189,789
Use more than one SurfaceTexture on a shader
<p>Just a quick question: I'm using a shader that admits a video as a GL_TEXTURE_EXTERNAL_OES from a SurfaceTexture, but now I want to modify it to accept two videos as 2 GL_TEXTURE_EXTERNAL_OES from two different SurfaceTextures.</p> <p>Is there a way to do this? I'm following this code as an example: <a href="https:...
Just a quick question: I'm using a shader that admits a video as a GL_TEXTURE_EXTERNAL_OES from a SurfaceTexture, but now I want to modify it to accept two videos as 2 GL_TEXTURE_EXTERNAL_OES from two different SurfaceTextures. Is there a way to do this? I'm following this code as an example: https://github.com/mstorsj...
android|textures|shader|opengl-es-2.0
1
2016-05-12T14:22:03.160Z
2,016
5
14
3
596
1
549
44
4
1
true
false
false
false
false
false
low
37,189,914
Android - customize "your recent screens appear here" / "your recent apps" screen
<p>I realy dint know how this screen is named :/ i called it after the message it shows when no app is running "your recent screens appear here". It basicly shows all apps currently runnning on the device.</p> <p>So you know what im talking about here screens (sry big and spammy) with and without running apps. The sec...
I realy dint know how this screen is named :/ i called it after the message it shows when no app is running "your recent screens appear here". It basicly shows all apps currently runnning on the device. So you know what im talking about here screens (sry big and spammy) with and without running apps. The second screen ...
android|android-launcher|device-admin
2
2016-05-12T14:26:53.750Z
2,016
5
14
3
12,827
1
1,222
81
3
0
false
false
true
true
false
false
low
37,190,076
Building Native Extension for Android - createExtensionContext returns null
<p>I've been trying to build a Native Extension in Adobe AIR for Android and stumbled across some issues. Looks like something is wrong with the configuration or the steps I take to build it.</p> <p>I've created an ANEBoilerplate project so I can get down to the very basis of the problem. Here is the test code I use f...
I've been trying to build a Native Extension in Adobe AIR for Android and stumbled across some issues. Looks like something is wrong with the configuration or the steps I take to build it. I've created an ANEBoilerplate project so I can get down to the very basis of the problem. Here is the test code I use for it: [COD...
android|actionscript-3|air|air-native-extension
1
2016-05-12T14:33:51.933Z
2,016
5
14
3
270
0
967
75
4
4
true
true
false
false
false
false
low
37,190,159
Android NDK Gradle setting error
<p>With Android Studio, I'm trying to include Android NDK following guidance but the application cannot built.</p> <p>Experimental Plugin User Guide - Android Studio Project Site <a href="http://tools.android.com/tech-docs/new-build-system/gradle-experimental" rel="nofollow">http://tools.android.com/tech-docs/new-buil...
With Android Studio, I'm trying to include Android NDK following guidance but the application cannot built. Experimental Plugin User Guide - Android Studio Project Site http://tools.android.com/tech-docs/new-build-system/gradle-experimental I got an error: [CODE] I cannot find where to fix. Android Studio and Gradle Ve...
android|android-ndk
1
2016-05-12T14:37:26.393Z
2,016
5
14
3
228
0
493
32
2
4
true
true
false
false
false
false
low
37,190,225
Data between activity and fragment
<p>I have a fragment which shows a list of taken pictures, and allows me to take a new one by clicking a button; however, after taken a picture it goes to a PreviewActivity to accept or cancel the picture taken, and also add a description.</p> <p>After that, I want to comeback to the fragment with the information. To ...
I have a fragment which shows a list of taken pictures, and allows me to take a new one by clicking a button; however, after taken a picture it goes to a PreviewActivity to accept or cancel the picture taken, and also add a description. After that, I want to comeback to the fragment with the information. To clarify: My...
android|android-fragments|pass-data
0
2016-05-12T14:40:10.260Z
2,016
5
14
3
271
2
646
34
3
2
true
false
false
false
false
false
zero
37,190,231
Why android ViewPager OnTouchListener not called at all
<p>Why my ViewPager <code>OnTouchListener</code> doesn't fire at all !!</p> <p>Here is my code below:</p> <p>I'm using <code>ViewPager</code> to automatically slide photos but when i tap on the <code>ViewPager</code> I need to stop the auto sliding but the problem is that my <code>OnTouchListener</code> doesn't fire ...
Why my ViewPager OnTouchListener doesn't fire at all !! Here is my code below: I'm using ViewPager to automatically slide photos but when i tap on the ViewPager I need to stop the auto sliding but the problem is that my OnTouchListener doesn't fire at all. JAVA man_fragment.java [CODE] View Pager Adapter ImageSlideAdap...
java|android|android-viewpager|ontouchlistener
1
2016-05-12T14:40:21.643Z
2,016
5
14
3
1,028
1
379
55
4
2
true
false
false
false
false
false
low
37,190,243
Why Log.d() print nothing when running Android Local Unit Test?
<p>I'm trying to print something when running <strong>Android Local Unit Test</strong>, but nothing's happening. What's the matter? How can I fix it?</p> <p>I consulted some documents on <a href="http://developer.android.com" rel="noreferrer">http://developer.android.com</a>, found that Android Local Unit Test just ru...
I'm trying to print something when running Android Local Unit Test , but nothing's happening. What's the matter? How can I fix it? I consulted some documents on http://developer.android.com , found that Android Local Unit Test just run on my machine's JVM, the android.jar file that is used to run unit tests does not co...
android|unit-testing|junit
32
2016-05-12T14:40:57.920Z
2,016
5
14
3
18,873
5
489
63
3
1
true
false
true
true
true
false
high
37,190,464
How do I get all the rows from the table SQLite?
<p>Hey guys I've been trying to work on an android project for my college but I am stuck at this point. I want to fetch all the rows from the table <code>students</code>, populate them into the <code>ArrayList</code> and then use <code>ListView</code> or <code>CardView</code> to display each student's record. This is t...
Hey guys I've been trying to work on an android project for my college but I am stuck at this point. I want to fetch all the rows from the table students , populate them into the ArrayList and then use ListView or CardView to display each student's record. This is the code I'm using: [CODE] It's not returning anything....
java|android|sqlite|arraylist
2
2016-05-12T14:50:19.423Z
2,016
5
14
3
52
2
520
48
4
2
true
false
false
false
false
false
low
37,190,465
Keep connectivity broadcast receiver running after application is closed
<p>When I need to use Internet connection and it is not posible I want to set a broadcast receiver which keeps working if the app is closed.</p> <p>I am using a service for that, but that it is not working. It works fine when the app is on screen or paused but it stops working if I close it. I am not pretty sure if I ...
When I need to use Internet connection and it is not posible I want to set a broadcast receiver which keeps working if the app is closed. I am using a service for that, but that it is not working. It works fine when the app is on screen or paused but it stops working if I close it. I am not pretty sure if I should use ...
java|android
1
2016-05-12T14:50:19.573Z
2,016
5
14
3
3,490
2
723
72
2
4
true
false
true
false
false
false
low
37,190,532
Views are overflowed or disappeared in Android 5
<p>As you can see in my screenshot, views like an EditText are overflowed or disappeared. That's why I can't see the scrollbar on the right side of a multiline EditText.</p> <p>How can I fix that? I tried match_parent and fill_parent, but can't see a difference. 'wrap_content' isn't nice for a form.</p> <p><a href="h...
As you can see in my screenshot, views like an EditText are overflowed or disappeared. That's why I can't see the scrollbar on the right side of a multiline EditText. How can I fix that? I tried match_parent and fill_parent, but can't see a difference. 'wrap_content' isn't nice for a form. Screenshot Android Studio, Ed...
android|android-layout|android-studio|android-edittext
0
2016-05-12T14:52:44.707Z
2,016
5
14
3
88
1
359
48
4
1
true
false
false
false
false
false
zero
37,190,552
Display GoogleMaps in other fragment gives error , Missing an expected resource: 'R.string.google_app_id'
<p>I create a new project with a Google Maps activity, generate the key and everything works fine. The problem is that I want to create the map in another fragment, so here is the code: The <code>MapsActivity</code></p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
I create a new project with a Google Maps activity, generate the key and everything works fine. The problem is that I want to create the map in another fragment, so here is the code: The MapsActivity [CODE] The Fragment1 class [CODE] And now is getting to me the error GoogleService failed to initialize, status: 10, Mis...
android|google-maps
1
2016-05-12T14:53:31.817Z
2,016
5
14
3
83
0
502
105
2
2
true
true
false
false
false
false
low
37,190,935
How to implement void OnFragmentInteractionListener?
<p>When I launch my app I get following exception: </p> <p><em>java.lang.RuntimeException: com.demo.mtin.mtin.MainActivity must implement OnFragmentInteractionListener</em></p> <p>Can someone help me with this? What code I need to add in MainActivity and where?</p> <p>I have two blank fragments: PopularFragment and ...
When I launch my app I get following exception: java.lang.RuntimeException: com.demo.mtin.mtin.MainActivity must implement OnFragmentInteractionListener Can someone help me with this? What code I need to add in MainActivity and where? I have two blank fragments: PopularFragment and RatedFragment MainActivity bellow: [C...
java|android
-1
2016-05-12T15:09:58.637Z
2,016
5
15
3
389
1
324
52
2
1
true
false
false
false
false
true
negative
37,190,942
IBM MobileFirst 7.1 Server connection fails in Android after migrating from WL6.3
<p>I have an IBM Worklight 6.3 project which works without any problem. I received a ticket from Google, telling me that I need to update to the most recent version or the app will be taken down from the PlayStore. </p> <p>After doing the corresponding update to MobileFirst7.1 on Eclipse without manually changing any ...
I have an IBM Worklight 6.3 project which works without any problem. I received a ticket from Google, telling me that I need to update to the most recent version or the app will be taken down from the PlayStore. After doing the corresponding update to MobileFirst7.1 on Eclipse without manually changing any file, I am t...
android|ibm-mobilefirst|mobilefirst-server
1
2016-05-12T15:10:20.470Z
2,016
5
15
3
334
1
6,333
81
3
2
true
false
false
false
false
false
low
37,190,998
How to align Material buttons with other UI elements
<p>I have trouble to align default material buttons with other elements of the UI. In fact I have looked at the Android source code and the background for the buttons contains insets to be able to draw the shadow and deal with the elevation of the button when clicked:</p> <pre><code>&lt;inset xmlns:android="http://sch...
I have trouble to align default material buttons with other elements of the UI. In fact I have looked at the Android source code and the background for the buttons contains insets to be able to draw the shadow and deal with the elevation of the button when clicked: [CODE] So, I have the very basic layout below: [CODE] ...
android|button|material-design
3
2016-05-12T15:12:41.330Z
2,016
5
15
3
1,265
2
607
52
3
2
true
false
false
false
false
false
low
37,191,233
How can set Hint Text in code?
<p>I have:</p> <pre><code>&lt;android.support.design.widget.TextInputLayout android:id="@+id/ti_amount_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" ...
I have: [CODE] And I need add Hint Text , If I added hint text in xml, in EditText: [CODE] all nice, but if I add etAmount.setHint(R.string.s_amount); in code - String (hint text) does not popup ((, Why?
java|android|hint|textinputlayout
1
2016-05-12T15:21:48.443Z
2,016
5
15
3
1,155
1
203
30
4
2
true
false
false
false
false
false
low
37,191,264
Why does ListView need its container item in a sperate layout file
<p>My questions stems from doing the tutorials for Android development, namely the Sunshine application. The specific code is <a href="https://github.com/udacity/Sunshine-Version-2/pull/1/files#diff-4787e6090d7a34f046f62575488c5cff" rel="nofollow">here</a> (a github pull request diff). </p> <p>I have a ListView inside...
My questions stems from doing the tutorials for Android development, namely the Sunshine application. The specific code is here (a github pull request diff). I have a ListView inside a FrameLayout in one layout XML file. Now, to use the ListView with an ViewAdapter (ArrayAdapter in my case) I need to have a layout spec...
java|android|android-layout|listview
0
2016-05-12T15:23:08.687Z
2,016
5
15
3
40
1
797
66
4
2
true
false
false
false
false
false
zero
37,191,342
Activity to fragment using intent getting error
<p>I am trying to display Activity to fragment using intent but I am getting error:</p> <pre><code>Unable to find explicit activity class {com.sl.demo.android.navigationtemplate/com.sl.demo.android.navigationtemplate.presentation.activity.SampleFra}; have you declared this activity </code></pre> <p>Here is my code:</...
I am trying to display Activity to fragment using intent but I am getting error: [CODE] Here is my code: [CODE] and my manifest file: [CODE] Please any one can help me to resolve this?
android|android-fragments|android-intent
0
2016-05-12T15:26:58.093Z
2,016
5
15
3
42
2
184
47
3
3
true
false
false
false
false
false
zero
37,191,343
Title not displaying in notification
<p>This is my code to send Notification :</p> <pre><code>$msg = array ( "title" =&gt; "Portugal vs. Denmark", "message" =&gt; "5 to 1" ); $fields = array ( "to" =&gt; $deviceToken, "data" =&gt; $msg ); $headers = array ( 'Authorization: key=' . API_ACCESS_KEY, 'Content-Type: application/json...
This is my code to send Notification : [CODE] I receive the "5 to 1" message but the title "Portugal vs. Denmark" is not displayed. Does anyone have an idea ? In the data field I tried alert , subtitle and they did not change anything. Thank's EDIT Screenshot of the notification I have
php|android|google-cloud-messaging
2
2016-05-12T15:26:58.640Z
2,016
5
15
3
530
2
286
36
3
1
true
false
false
false
false
false
low
37,191,352
Google's BottomSheet appears at top of screen
<p>I'm using android's new BottomSheet inside Design Library. Problem is that I'm using it inside a Fragment and It cause that it appear at top of screen instead of appearing at bottom.</p> <p>This is my Activity xml:</p> <pre class="lang-xml prettyprint-override"><code>&lt;RelativeLayout xmlns:android="http://schema...
I'm using android's new BottomSheet inside Design Library. Problem is that I'm using it inside a Fragment and It cause that it appear at top of screen instead of appearing at bottom. This is my Activity xml: [CODE] And This Is My Fragment xml: [CODE] So after Replacing Fragment in Layout with this code: [CODE] I adde t...
android|android-fragments|android-support-library|android-design-library|bottom-sheet
4
2016-05-12T15:27:29.637Z
2,016
5
15
3
948
1
450
45
5
4
true
false
false
false
false
false
low
37,191,402
Preserve activity stack when notification is clicked
<p>Using just the default way of displaying GCM notifications (and not using onMessageReceived() and GcmListenerService), is it possible to have the activity stack remain as it was and just bring the app to the foreground when a notification is touched? I'd like to get the same behavior as when the app icon is touched....
Using just the default way of displaying GCM notifications (and not using onMessageReceived() and GcmListenerService), is it possible to have the activity stack remain as it was and just bring the app to the foreground when a notification is touched? I'd like to get the same behavior as when the app icon is touched. Cu...
android|android-activity|android-notifications
0
2016-05-12T15:29:49.387Z
2,016
5
15
3
106
1
877
52
3
3
true
false
false
false
false
false
zero
37,191,420
Style Android toolbar action buttons
<p>I'm using the Android Suppport Library Toolbar in my activity, and for some reason I can't seem to adjust the colour of the action buttons, as shown on the right of the following screenshot:</p> <p><a href="https://i.stack.imgur.com/yxYfV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yxYfV.png"...
I'm using the Android Suppport Library Toolbar in my activity, and for some reason I can't seem to adjust the colour of the action buttons, as shown on the right of the following screenshot: These stubbornly remain black regardless of what I do. The toolbar is defined as follows in my layout.xml: [CODE] The TopToolbarT...
android|toolbar
0
2016-05-12T15:30:44.857Z
2,016
5
15
3
450
0
469
36
2
2
true
true
false
false
false
false
zero
37,191,557
Android Picasso - Clear cache but image remains
<p>So at certain times I need to clear the Picasso cache within my application, however when I clear it, the image is the same. If the image URL changes, then it pulls the new image but if the image url is the same, then the old image remains.</p> <p>Can anyone help me clear the cache so that the image is removed?</p>...
So at certain times I need to clear the Picasso cache within my application, however when I clear it, the image is the same. If the image URL changes, then it pulls the new image but if the image url is the same, then the old image remains. Can anyone help me clear the cache so that the image is removed? This is how I ...
java|android|caching|memory|picasso
0
2016-05-12T15:37:32.300Z
2,016
5
15
3
802
2
517
47
5
3
true
false
false
false
false
false
zero
37,191,658
ScrollTo not working on Appium for Android
<p>I'm new to appium and trying to write some test scripts in Java for my android app. On this view I have a scrollview with elements inside it. I haven't been able to use the javascript command "scrollTo" on the scrollview or TouchAction. I'm using version 1.4.13 of appium and android 5.0.1. Below is snippets of my co...
I'm new to appium and trying to write some test scripts in Java for my android app. On this view I have a scrollview with elements inside it. I haven't been able to use the javascript command "scrollTo" on the scrollview or TouchAction. I'm using version 1.4.13 of appium and android 5.0.1. Below is snippets of my code....
java|android|appium
3
2016-05-12T15:42:11.550Z
2,016
5
15
3
1,551
2
691
42
3
4
true
false
false
false
false
false
low
37,191,869
How to avoid DEX 64K LIMIT by importing the right library
<p>I had this issue where I overflow the <strong>64k method limit in Dalvik</strong> when compiling all the library I used. I started to have this issue when I imported the Support Library, as some are already contained in others, it ended up overflowing the limit.</p> <h2>Is there a way to verify if a library is unus...
I had this issue where I overflow the 64k method limit in Dalvik when compiling all the library I used. I started to have this issue when I imported the Support Library, as some are already contained in others, it ended up overflowing the limit. Is there a way to verify if a library is unused in the current project or ...
android|gradle|android-support-library|android-appcompat|android-multidex
11
2016-05-12T15:52:33.357Z
2,016
5
15
3
4,302
5
2,027
57
5
5
true
false
true
false
true
false
medium
37,192,341
method "onClick" in butterknife is not work?
<p>This is the MainActicity:</p> <pre><code>package com.example.a10648.demo; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.Button; import android.widget.Toast; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; public class Mai...
This is the MainActicity: [CODE] This is the xml file: [CODE] and I have compile 'com.jakewharton:butterknife:8.0.1' this is build.gradle in app [CODE] the method onClick in bufferknife is not work, when I clicked the button ,there is no Toast to appear? I don't know why happen like this ?
java|android|butterknife
3
2016-05-12T16:14:06.273Z
2,016
5
16
3
4,276
3
290
44
3
3
true
false
true
false
false
false
low
37,192,342
How to pass argument from activity to fragment
<p>I am trying to pass the address of a web url from pageradapter to my fragment but in that process i am getting a null object reference error. <strong><em>This is my pageradapter</em></strong></p> <pre><code>public class TabPagerAdapter extends FragmentStatePagerAdapter { int tabCount; public TabPagerAdap...
I am trying to pass the address of a web url from pageradapter to my fragment but in that process i am getting a null object reference error. This is my pageradapter [CODE] This is my fragment . I am not sure why can't I get it to work.I tried to put the same thing in onCreate method as well but the error still exists....
android|android-fragments
-2
2016-05-12T16:14:09.873Z
2,016
5
16
3
233
1
327
46
2
2
true
false
false
false
false
true
negative
37,192,400
onDraw() not being called in custom View
<p>I've already searched on Stackoverflow for a suitable answer but couldn't find anything that would help me.</p> <p>I've got a Fragment which contains a ListView. This ListView should display an array of custom views. The problem is, that the custom views' onDraw() method won't be called. They get initialized but n...
I've already searched on Stackoverflow for a suitable answer but couldn't find anything that would help me. I've got a Fragment which contains a ListView. This ListView should display an array of custom views. The problem is, that the custom views' onDraw() method won't be called. They get initialized but not drawn. Ev...
android|android-layout|listview
0
2016-05-12T16:17:40.653Z
2,016
5
16
3
492
1
545
40
3
4
true
false
false
false
false
false
zero
37,192,611
Navigation drawer header textview nullpointerexception
<p>I have an 2 activity and a service, in first I have navigation drawer, and 2 textviews in its header, and I must change their text sometimes, in service there is some data that i need<br> On first run everything is perfect, but when I go to the first activity from second, I have nullpointerexception in textviews. Wh...
I have an 2 activity and a service, in first I have navigation drawer, and 2 textviews in its header, and I must change their text sometimes, in service there is some data that i need On first run everything is perfect, but when I go to the first activity from second, I have nullpointerexception in textviews. What caus...
java|android|nullpointerexception|textview|navigation-drawer
5
2016-05-12T16:29:38.403Z
2,016
5
16
3
3,720
2
384
54
5
4
true
false
true
false
false
false
low
37,192,690
KitKat color problems
<p>I have an app which is using a black background. I've been developing and testing it on Lollipop, yet minSDK is 19. When I use a KitKat device (or emulator), I run into a problem with the white text I see on my Lollipop device - it is black and thus invisible.</p> <p>I define the text color like this:</p> <pre><co...
I have an app which is using a black background. I've been developing and testing it on Lollipop, yet minSDK is 19. When I use a KitKat device (or emulator), I run into a problem with the white text I see on my Lollipop device - it is black and thus invisible. I define the text color like this: [CODE] Then, in (all) my...
android|android-4.4-kitkat|android-styles
0
2016-05-12T16:33:14.667Z
2,016
5
16
3
1,086
1
680
21
3
3
true
false
false
false
false
false
zero
37,192,742
android HTTP post php script issue
<p>android http post data from android to web i have make app which send data from android to web android app send data perfact but i dont know how to code in php to recived data from android. i am using xampp server for php script. this is mt app code.</p> <pre><code> public class Main extends Activity implements ...
android http post data from android to web i have make app which send data from android to web android app send data perfact but i dont know how to code in php to recived data from android. i am using xampp server for php script. this is mt app code. [CODE] this my xml file [CODE] this is php script code reciver.php [C...
java|php|android|http
1
2016-05-12T16:35:50.140Z
2,016
5
16
3
77
1
414
34
4
3
true
false
false
false
false
false
low
37,192,769
Android APP, crashes Catlog provided, Thread exception
<p>I started on my android app again, and now it shows this error below. I can provide any information needed to fix the problem.</p> <blockquote> <p>05-12 12:26:30.858 3799-3845/amh.communication.testapp E/AndroidRuntime﹕<br> FATAL EXCEPTION: AsyncTask #1<br> Process: amh.communication.testapp, PID: 379...
I started on my android app again, and now it shows this error below. I can provide any information needed to fix the problem. 05-12 12:26:30.858 3799-3845/amh.communication.testapp E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1 Process: amh.communication.testapp, PID: 3799 java.lang.RuntimeException: An error occured...
java|android|multithreading|android-asynctask
0
2016-05-12T16:37:47.270Z
2,016
5
16
3
145
0
1,598
54
4
0
false
true
false
false
false
false
zero
37,192,888
SQLite db not returning any rows
<p>For my app i am trying to save highscores to a database stored on my android device named "highscores.db". Now I am having a problem that the mysql is not returning any rows at al, so i would guess that either my inserting is going wrong or my retrieving is going on. I have no idea at all what is wrong (first time s...
For my app i am trying to save highscores to a database stored on my android device named "highscores.db". Now I am having a problem that the mysql is not returning any rows at al, so i would guess that either my inserting is going wrong or my retrieving is going on. I have no idea at all what is wrong (first time sqli...
android|mysql|sqlite
1
2016-05-12T16:44:00.740Z
2,016
5
16
3
116
1
728
32
3
4
true
false
false
false
false
false
low
37,193,068
How to animate when deleting item from list in NativeScript
<p>The delete occurs when the user taps the trash icon (android). When this icon is tapped the delete method is triggered on the item, updating the model, however, I am trying to add a fade out effect when an item is deleted but it seems to apply the effect twice. Once on the deleted item, and again on the item that is...
The delete occurs when the user taps the trash icon (android). When this icon is tapped the delete method is triggered on the item, updating the model, however, I am trying to add a fade out effect when an item is deleted but it seems to apply the effect twice. Once on the deleted item, and again on the item that is be...
javascript|android|mobile|nativescript
1
2016-05-12T16:54:12.013Z
2,016
5
16
3
802
1
532
59
4
3
true
false
false
false
false
false
low
37,193,273
Getting a NullPointerException when accessing a Fragment using findFragmentByTag()
<p>I have a main activity that extends FragmentActivity. When my app starts, this main activity places a fragment "HomeFragment" in the layout: </p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); FragmentTransaction ft =...
I have a main activity that extends FragmentActivity. When my app starts, this main activity places a fragment "HomeFragment" in the layout: [CODE] I also need to be able to access this fragment on a button click in a different Fragment, but I don't want to put "new HomeFragment" in the container. I want to access Home...
java|android|android-fragments
-1
2016-05-12T17:05:36.300Z
2,016
5
17
3
292
2
786
82
3
3
true
false
false
false
false
true
negative
37,193,515
Change the language of voice recognizer in android wear action
<p>In my android app, I create a notification with wear features and add an action to recognize the voice input and send the voice text to another activity. My problem is it just recognize the selected language in google now settings (English) and I want to get voice from the Persian language. This my code:</p> <pre><...
In my android app, I create a notification with wear features and add an action to recognize the voice input and send the voice text to another activity. My problem is it just recognize the selected language in google now settings (English) and I want to get voice from the Persian language. This my code: [CODE] Also I ...
android|localization|wear-os|voice-recognition
2
2016-05-12T17:17:03.100Z
2,016
5
17
3
511
1
456
62
4
2
true
false
false
false
false
false
low
37,193,598
How to record (and process?) a video that is streamable from Android
<p>My company's app relies heavily on video recording and playback of web-based videos. I use the <code>MediaRecorder</code> API to record videos, through this library designed by me: <a href="https://github.com/afollestad/material-camera" rel="nofollow">https://github.com/afollestad/material-camera</a>. </p> <p>For p...
My company's app relies heavily on video recording and playback of web-based videos. I use the MediaRecorder API to record videos, through this library designed by me: https://github.com/afollestad/material-camera . For playback, I use this library which is basically a wrapper around Google's ExoPlayer library: https:/...
android|video|encoding|ffmpeg|streaming
2
2016-05-12T17:21:12.800Z
2,016
5
17
3
910
1
1,082
68
5
0
false
false
false
false
false
false
low
37,193,627
Confusion about fragments and their activities
<p>I have a TabLayout and ViewPager to hold and navigate between my fragments (3 of them) and that is working fine however I'm getting confused as to how I interact with each fragment for example button clicks or edit texts. Here is my main activity xml.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas....
I have a TabLayout and ViewPager to hold and navigate between my fragments (3 of them) and that is working fine however I'm getting confused as to how I interact with each fragment for example button clicks or edit texts. Here is my main activity xml. [CODE] This is the activity for it. [CODE] And here is a fragment ac...
android|android-fragments
1
2016-05-12T17:22:41.493Z
2,016
5
17
3
27
2
558
46
2
3
true
false
false
false
false
false
low
37,193,705
Putting a String ArrayList into SQLite Database
<p>I am having trouble getting the entire string put into my arraylist correctly. I am assuming the error has something to do with my custom textwatcher or how I am looping through the array list. Here is my code:</p> <pre><code> case R.id.action_add: Workout workout = new Workout("", "", "", "");...
I am having trouble getting the entire string put into my arraylist correctly. I am assuming the error has something to do with my custom textwatcher or how I am looping through the array list. Here is my code: [CODE] The cases are buttons. So when I click the add button I am trying to add my custom list view to my pag...
java|android|sqlite|arraylist
1
2016-05-12T17:26:58.670Z
2,016
5
17
3
149
1
499
47
4
2
true
false
false
false
false
false
low
37,193,793
How to align textview in wrap content right for bigger screen in android studio?
<p>[My Layout]</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://...
[My Layout] [CODE] My Layout 1 Want to remove space between "Username" textview and "Name" edittext in Landscape. My layout is looking proper in portrait but gives space in between textview and edittext in landscape.
android|xml
0
2016-05-12T17:31:40.007Z
2,016
5
17
3
97
0
216
80
2
1
true
true
false
false
false
false
zero
37,193,817
Unable to create sign up page by extending ArrayAdapter with ListView
<p>Here is the code for extended ArrayAdapter class:</p> <pre><code>public class MultiAdapter extends ArrayAdapter&lt;String&gt; { private final Activity a1; private final String[] s1; public MultiAdapter(Activity a, String[] s){ super(a,R.layout.loginlist,s); s1=s; a1=a; } @Override public Vie...
Here is the code for extended ArrayAdapter class: [CODE] loginlist.xml: [CODE] What's happening is that whenever I click on the "Name", "Company" or "User Name" edittext's the cursor automatically jumps to the password and then re-type password edittext field. This does not happen on any other fields. What's causing th...
android|android-arrayadapter
0
2016-05-12T17:32:59.810Z
2,016
5
17
3
19
1
323
69
2
2
true
false
false
false
false
false
zero
37,193,926
Python Kivy Screen Inheritance
<p>Background: I am using solely Python to implement the Kivy screens. I have two screens that both contain a list, and two rows of buttons. I thought it would be good programming practice to create a screen class that has those layouts, and then use inheritance to create the two screens and add buttons to the layouts ...
Background: I am using solely Python to implement the Kivy screens. I have two screens that both contain a list, and two rows of buttons. I thought it would be good programming practice to create a screen class that has those layouts, and then use inheritance to create the two screens and add buttons to the layouts as ...
android|python|inheritance|screen|kivy
0
2016-05-12T17:38:50.353Z
2,016
5
17
3
929
1
707
30
5
1
true
false
false
false
false
false
zero
37,194,117
android service method call invokes null reference error
<p>I am receiving an error when ever I try to call any method of the service on the main activity class.</p> <p>Error log</p> <pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String in.ac.iitkgp.alpha.dbService.getUser()' on a null object reference ...
I am receiving an error when ever I try to call any method of the service on the main activity class. Error log [CODE] I have two activities first activity passes the input to the service and starts it using startService(intent); and calls the next activity. Next activity then binds to the service and reads the input d...
java|android
0
2016-05-12T17:49:01.870Z
2,016
5
17
3
530
1
728
56
2
4
true
false
false
false
false
false
zero
37,194,185
java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.IllegalStateException: GoogleApiClient is not connected yet
<p>I am trying to implement Google login and and logout for my app. The logout seems to be giving the following error; java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.IllegalStateException: GoogleApiClient is no...
I am trying to implement Google login and and logout for my app. The logout seems to be giving the following error; java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.IllegalStateException: GoogleApiClient is not connected yet. LogoutActivity: [CODE] Pls can someone help
android|google-account
0
2016-05-12T17:53:08.713Z
2,016
5
17
3
425
2
298
137
2
1
true
false
false
false
false
false
zero
37,194,316
How to check if permissions are allocated by the user using compile sdk 22?
<p><strong>Note:</strong> I know how the permission model works in <code>Marshmallow</code>. Please don't give answers regarding that.</p> <p>My application uses <code>compileSdk</code> 22. I want to write a utility to detect what permissions are allocated by the user. If the user has a <code>Marshmallow</code> device...
Note: I know how the permission model works in Marshmallow . Please don't give answers regarding that. My application uses compileSdk 22. I want to write a utility to detect what permissions are allocated by the user. If the user has a Marshmallow device, then he can disable the permissions at any time. I tried the fol...
android|permissions
0
2016-05-12T18:00:21.653Z
2,016
5
18
3
93
1
782
75
2
1
true
false
false
false
false
false
zero
37,194,396
ListView leaderboard is too spaced out, can I make the rows closer?
<p>Right now I have a ListView that shows high scores in a database. My rows right now are very spaced out, and I'd like them to be closer. However I can't figure this out. Here's what my tables look like on the emulator:</p> <p><a href="https://i.stack.imgur.com/p1Jba.png" rel="nofollow noreferrer"><img src="https://...
Right now I have a ListView that shows high scores in a database. My rows right now are very spaced out, and I'd like them to be closer. However I can't figure this out. Here's what my tables look like on the emulator: Here's my code: Here is Leaderboard xml: [CODE] Here is Leaderboard_row xml: [CODE] Is there somethin...
java|android|xml
0
2016-05-12T18:04:52.500Z
2,016
5
18
3
98
2
366
67
3
2
true
false
false
false
false
false
zero
37,194,658
?android:attr/actionBarSize not working in only one device. Why?
<p><strong>Android experience level: Novice.</strong></p> <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="?android:attr/a...
Android experience level: Novice. [CODE] I have applied top margin to the ScrollView which is the height of actionBar . That works well in two of my physical devices properly but not in one. Why the one device does not utilize the value? Screenshots attached. Lenovo A7000 with Marshmallow 6.0 Stock ROM: Below the actio...
android|android-actionbar|scrollview|android-scrollview
2
2016-05-12T18:20:46.487Z
2,016
5
18
3
1,053
1
445
64
4
1
true
false
false
false
false
false
low
37,194,755
Android tablet can't connect to MagTek USB card reader after device reboot
<p>I have an Android tablet (custom commercial tablet by a company called Glory Star) that is running on Android 5.1.1. With it I am using a MagTek Dynamag card reader (model #21073075), that is usable with the mtscra.jar library provided by MagTek (<a href="https://www.magtek.com/support/dynamag?tab=software" rel="nof...
I have an Android tablet (custom commercial tablet by a company called Glory Star) that is running on Android 5.1.1. With it I am using a MagTek Dynamag card reader (model #21073075), that is usable with the mtscra.jar library provided by MagTek ( https://www.magtek.com/support/dynamag?tab=software ). The library/card ...
java|android|usb|cardreader
3
2016-05-12T18:26:48.760Z
2,016
5
18
3
385
0
1,491
74
4
0
false
true
false
false
false
false
low
37,194,766
How to retrieve database row in a soap web service?
<p>I am developing a mobile application in android.The application gets data from a database(in SQL Server) using a soap web service(in java). Now i have been stuck into a problem and it is as follows- the android application retrieves a row (all the columns) from the database and sets the column values to the respecti...
I am developing a mobile application in android.The application gets data from a database(in SQL Server) using a soap web service(in java). Now i have been stuck into a problem and it is as follows- the android application retrieves a row (all the columns) from the database and sets the column values to the respective ...
android|web-services|soap
0
2016-05-12T18:27:10.550Z
2,016
5
18
3
76
0
752
51
3
2
true
true
false
false
false
false
zero
37,194,963
Android Studio: proguard line numbers wrong, not completly obfuscating
<p><em>NEW:</em> the main thing I'm looking for is a fix for the wrong line numbers. That is making it next to impossible to pinpoint various crashes.</p> <p>At some point in the past, my proguard obfuscation stopped working properly, or so it seems. In the following log file snip, notice that my identifiers BasicLis...
NEW: the main thing I'm looking for is a fix for the wrong line numbers. That is making it next to impossible to pinpoint various crashes. At some point in the past, my proguard obfuscation stopped working properly, or so it seems. In the following log file snip, notice that my identifiers BasicList and ImageClick are ...
android-studio|proguard
7
2016-05-12T18:38:08.337Z
2,016
5
18
3
1,035
1
656
70
2
2
true
false
false
false
false
false
medium
37,195,039
How to launch Login Activity for once after successful login?
<p>I have a <strong>splash screen</strong>, which, after few m-seconds opens a <strong>Login Activity</strong>. I would like that, when the user clicks the <strong>login button</strong>, and the login is successful, the next time the user opens the app the <strong>splash screen</strong> should open <strong>Main Activi...
I have a splash screen , which, after few m-seconds opens a Login Activity . I would like that, when the user clicks the login button , and the login is successful, the next time the user opens the app the splash screen should open Main Activity instead of Login Activity . How can I do that? SplashScreen [CODE] LoginAc...
android
0
2016-05-12T18:42:19.653Z
2,016
5
18
3
2,637
4
333
61
1
2
true
false
true
false
false
false
zero
37,195,152
Mongodb Java cmd find().pretty() not working
<p>I have Mongo set up and running. I have a problem where I cannot see any data being created in Mongo client in cmd prompt.</p> <p>I am using Mongo 3.2.1 Java driver and Android Studio.</p> <p>I have connected the port, address and working. Using the code below to create a database and collection works. But when I ...
I have Mongo set up and running. I have a problem where I cannot see any data being created in Mongo client in cmd prompt. I am using Mongo 3.2.1 Java driver and Android Studio. I have connected the port, address and working. Using the code below to create a database and collection works. But when I save the data it's ...
java|android|mongodb
0
2016-05-12T18:48:34.783Z
2,016
5
18
3
340
1
788
44
3
2
true
false
false
false
false
false
zero
37,195,184
Change color of imageview in custom gridview child item when clicked on another child item
<p>I have a custom gridview.</p> <p>In that, am using a frame layout which contains a image button, textview and a view. I need to change the background color of imageview/ text color of textview and drawable of view when an item is pressed.</p> <p>In order to achieve that, I performed <code>setOnClickListener</code>...
I have a custom gridview. In that, am using a frame layout which contains a image button, textview and a view. I need to change the background color of imageview/ text color of textview and drawable of view when an item is pressed. In order to achieve that, I performed setOnClickListener inside that adapter. And to und...
android|gridview|android-gridview
0
2016-05-12T18:50:29.723Z
2,016
5
18
3
558
1
737
90
3
1
true
false
false
false
false
false
zero
37,195,393
MvxCachingFragmentCompatActivity refresh cached fragment
<p>I have a project based off the <a href="https://github.com/MvvmCross/MvvmCross-Samples/tree/master/XPlatformMenus" rel="nofollow">XPlatformMenus</a> MvvmCross sample. The app is using one activity inherited from <code>MvxCachingFragmentCompatActivity</code>. The app uses a <code>NavigationView</code> sliding drawe...
I have a project based off the XPlatformMenus MvvmCross sample. The app is using one activity inherited from MvxCachingFragmentCompatActivity . The app uses a NavigationView sliding drawer to allow navigation to different fragments that are swapped out at runtime. I have one fragment which displays a list using Recycle...
c#|android|android-fragments|xamarin|mvvmcross
1
2016-05-12T19:01:23.633Z
2,016
5
19
3
923
1
893
56
5
0
false
false
false
false
false
false
low
37,195,557
How can I successfully pass on information to the messaging app that runs on my "Nexus One" emulator device with api 23?
<p>My app contains an activity, named sendMms, where information concerning recipient number, subject, message and image attachment are specified. The image is always a jpg-file and the code that runs, when the send button, in the activity sendMms, is pressed, is presented below:</p> <pre><code>public void sendMms(Vie...
My app contains an activity, named sendMms, where information concerning recipient number, subject, message and image attachment are specified. The image is always a jpg-file and the code that runs, when the send button, in the activity sendMms, is pressed, is presented below: [CODE] The code above works very well when...
android|android-emulator|android-6.0-marshmallow|android-mms
0
2016-05-12T19:11:15.537Z
2,016
5
19
3
66
0
2,842
120
4
1
true
true
false
false
false
false
zero
37,195,573
PreferenceFragmentCompat won't load in AppCompatPreferenceActivity - Trying to instantiate a class that is not a Fragment
<p>I'm trying to use PreferenceFragmentCompat from the v7 support library. When I try to add it, it always returns the following exception</p> <pre><code>Process: com.sample.preferencetest, PID: 14444 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sample.preferencetest/com.sample.preferencetes...
I'm trying to use PreferenceFragmentCompat from the v7 support library. When I try to add it, it always returns the following exception [CODE] When I try to use a PreferenceFragment with this, everything works fine. It's only when I try to use the PreferenceFragmentCompat that it fails The reason I want to use this, is...
android|android-fragments|android-support-library|android-appcompat|android-preferences
5
2016-05-12T19:12:05.023Z
2,016
5
19
3
2,812
2
559
121
5
4
true
false
true
false
false
false
low
37,195,594
Android OpenSL ES crashes while initialization
<p>so I am stuck with porting Polycode to Android.<br> I am trying to implement an audio inteface via OpenSL ES. I read some articles, tried to copy as much as possible from the android ndk examples and so on but nothing worked - reliably - for me..</p> <p>I am using the latest Android Studio (2.1.1) and hence the lat...
so I am stuck with porting Polycode to Android. I am trying to implement an audio inteface via OpenSL ES. I read some articles, tried to copy as much as possible from the android ndk examples and so on but nothing worked - reliably - for me.. I am using the latest Android Studio (2.1.1) and hence the latest NDK (12RC1)...
c++|android-ndk|opensl
1
2016-05-12T19:13:24.713Z
2,016
5
19
3
533
1
1,493
46
3
2
true
false
false
false
false
false
low
37,195,818
How to change a button's background color, which's background was preset with a drawable?
<p>I need to create some round shaped buttons, and I ended up creating a drawable to support the material design's ripple effect.</p> <p>My problem is, that in the drawable file below, I have to set a default color for the button, and I can't change it later, at least I didn't find the way to do that.</p> <p>I tried ...
I need to create some round shaped buttons, and I ended up creating a drawable to support the material design's ripple effect. My problem is, that in the drawable file below, I have to set a default color for the button, and I can't change it later, at least I didn't find the way to do that. I tried it with backgroundT...
android|button|rounding|drawable|ripple
0
2016-05-12T19:27:05.187Z
2,016
5
19
3
284
0
678
89
5
3
true
true
false
false
false
false
zero
37,196,061
how to fit button size equally
<p>I have following layout which contains buttons:</p> <p><a href="https://i.stack.imgur.com/VXtfn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VXtfn.png" alt="enter image description here"></a></p> <p>I'm facing next problems:</p> <ol> <li>First two buttons on the left side are not equal of th...
I have following layout which contains buttons: I'm facing next problems: First two buttons on the left side are not equal of the size to buttons on the right side of the layout. Why did the buttons on the right side change background color? I want them to have default background color, like the one on the left, or how...
android|android-layout
0
2016-05-12T19:41:09.913Z
2,016
5
19
3
133
3
600
30
2
1
true
false
false
false
false
false
zero
37,196,099
Android Studio Not Installing on OSX PC
<p>I have been waiting for over 2 hours for Android Studio to be reinstalled on a mac. I have attempted to reinstall this application more than 20 times now for the last week, and the application just hangs every time. I even let it sit for a whole day but still nothing. I'm not getting any error message. I checked the...
I have been waiting for over 2 hours for Android Studio to be reinstalled on a mac. I have attempted to reinstall this application more than 20 times now for the last week, and the application just hangs every time. I even let it sit for a whole day but still nothing. I'm not getting any error message. I checked the ac...
android-studio
0
2016-05-12T19:43:14.240Z
2,016
5
19
3
933
2
1,465
39
1
1
true
false
false
false
false
false
zero
37,196,284
Android support library 23.4.0: android.support.v7.widget.TintContextWrapper cannot be cast to Activity
<p>So I updated to the latest support libraries, and got a crash I am not able to fix. My build.gradle now has these dependencies:</p> <pre><code>dependencies { compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:gridlayout-v7:23.4.0' compile 'com.android.support:support-v4:23.4....
So I updated to the latest support libraries, and got a crash I am not able to fix. My build.gradle now has these dependencies: [CODE] I had a working listener that is used to catch clicks and start a new Activity. This was working fine in support libraries v. 23.1.0, but not in 23.4.0 (and 23.3.0): [CODE] This listene...
android|android-support-library
8
2016-05-12T19:54:32.237Z
2,016
5
19
3
11,636
7
1,305
103
2
6
true
false
true
true
false
false
medium
37,196,388
Map doesn't work on device
<p>I spent a lot of time trying to figure this out. I have a map on my application and this map loads the actual location once it is loaded.</p> <p>For some reason on my viewer (using Ionic Viewer) it works on my local device and on my localhost, but When I test it on my iPhone directly from Xcode, the map don't load...
I spent a lot of time trying to figure this out. I have a map on my application and this map loads the actual location once it is loaded. For some reason on my viewer (using Ionic Viewer) it works on my local device and on my localhost, but When I test it on my iPhone directly from Xcode, the map don't load. If I compi...
android|ios|angularjs|google-maps|ionic-framework
0
2016-05-12T20:01:07.107Z
2,016
5
20
3
504
1
398
26
5
1
true
false
false
false
false
false
zero
37,196,571
Android clipboard.getText() is deprecated; how then to get the text item that's in it?
<p>This works fine, showing me exactly what was the last string put into Android clipboard, which happens to be <code>euswcnmst</code>.</p> <p><code>Log.w("clip", clipboard.getText().toString());</code></p> <p>But <code>getText</code> is deprecated for <code>clipboard</code> objects.</p> <p>Meanwhile, if I do <code...
This works fine, showing me exactly what was the last string put into Android clipboard, which happens to be euswcnmst . Log.w("clip", clipboard.getText().toString()); But getText is deprecated for clipboard objects. Meanwhile, if I do Log.w("clip", clipboard.getPrimaryClip().toString()); , I get this, exactly as shown...
android|clipboard
7
2016-05-12T20:13:20.720Z
2,016
5
20
3
2,926
2
942
86
2
2
true
false
true
false
false
false
medium
37,196,714
Tabs Swipe direction in Right to Left Android app
<p>I have an Android app that has tabs. I want the app to be Right to Left.<br> I put android:supportsRtl="true" in the manifest file, and changed some of the elements to be android:layoutDirection="rtl".</p> <p>It changes everything to right to left, which is what I want, except that it reversed the swiping direction...
I have an Android app that has tabs. I want the app to be Right to Left. I put android:supportsRtl="true" in the manifest file, and changed some of the elements to be android:layoutDirection="rtl". It changes everything to right to left, which is what I want, except that it reversed the swiping direction in the tabs- w...
android|android-layout|xamarin|xamarin.android|android-tabs
9
2016-05-12T20:21:16.393Z
2,016
5
20
3
13,540
8
514
49
5
1
true
false
true
true
false
false
medium
37,196,863
How to smoothly go back to the first fragment on backpress
<p>I am using navigation drawer in my app, each item in the drawer starts a fragment. If a fragment is in view, and the back button is pressed I want the activity to start the first fragment.</p> <p>To expatiate, If I am looking at <strong>AbtFragment</strong> or <strong>ContaFragment</strong> and the back button is p...
I am using navigation drawer in my app, each item in the drawer starts a fragment. If a fragment is in view, and the back button is pressed I want the activity to start the first fragment. To expatiate, If I am looking at AbtFragment or ContaFragment and the back button is pressed, I want the activity to start or go ba...
android|android-fragments|navigation-drawer
1
2016-05-12T20:30:19.140Z
2,016
5
20
3
1,286
1
853
58
3
1
true
false
false
false
false
false
low
37,196,886
IllegalArgumentException: Parse error java.util.Date
<p>I'm getting low rating on the app I published recently. The app crashes sometimes and users report this type of error: </p> <pre><code>java.lang.IllegalArgumentException: Parse error: Mon, 09 May at java.util.Date.parseError(Date.java:364) at java.util.Date.parse(Date.java:560) at java.util.Date.&lt;init&gt;(Date....
I'm getting low rating on the app I published recently. The app crashes sometimes and users report this type of error: [CODE] I'm getting reported this same error pretty frequently: [CODE] I really don't know how to handle this problem. I'm trying to display the time a news article was published. NestedListView : [CODE...
java|android|date|parse-error
2
2016-05-12T20:31:33.157Z
2,016
5
20
3
2,248
3
775
52
4
5
true
false
false
false
false
false
low
37,196,960
How to create an Android AVD without HAXM?
<p>I'm trying to setup an Android development environment on my computer, and I'm having trouble setting up an AVD, so I can test my applications without having to have a physical device all the time. However, I'm running into a problem. The first problem is that when I create an AVD in AVD Manager, it doesn't show u...
I'm trying to setup an Android development environment on my computer, and I'm having trouble setting up an AVD, so I can test my applications without having to have a physical device all the time. However, I'm running into a problem. The first problem is that when I create an AVD in AVD Manager, it doesn't show up on ...
android|android-studio|avd|haxm|amd-processor
0
2016-05-12T20:36:06.390Z
2,016
5
20
3
2,339
0
1,437
42
5
1
true
true
false
false
false
false
zero
37,196,970
Building a RESTful http client for a PCL
<p><strong>Context</strong></p> <p>Recently I started working on a mobile project using Xamarin which works with C#/.NET. I came from developing android apps and Java development in general. I always use the same scheme when I build the http client in an app which is <a href="https://stackoverflow.com/a/19393551/14039...
Context Recently I started working on a mobile project using Xamarin which works with C#/.NET. I came from developing android apps and Java development in general. I always use the same scheme when I build the http client in an app which is this . I like the concept of overriding only if It's neccesary. I'd like to tra...
java|c#|android|rest
-1
2016-05-12T20:36:47.867Z
2,016
5
20
3
117
1
698
40
4
2
true
false
false
false
false
true
negative
37,197,151
Unable to reconnect to a BLE device after BluetoothGatt.disconnect() in android
<p>I'm developing an app that can connect and disconnect to a BLE device. I'm able to connect to a device and disconnect from that device. But when i try to reconnect to the same device it doesn´t work anymore.</p> <p>I am using two classes, the MainActivity and the second one that extends from service.</p> <p>My sec...
I'm developing an app that can connect and disconnect to a BLE device. I'm able to connect to a device and disconnect from that device. But when i try to reconnect to the same device it doesn´t work anymore. I am using two classes, the MainActivity and the second one that extends from service. My second activity: [CODE...
java|android|bluetooth-lowenergy
2
2016-05-12T20:49:26.653Z
2,016
5
20
3
1,300
1
1,049
79
3
2
true
false
false
false
false
false
low
37,197,235
Change status bar color in Android
<p>I'm building an Android application and right now I want to change the status bar (the one on top of the screen that show wireless and area signals, battery status, etc) but it is not working.</p> <p>On the preview of the XML file it shows a different color (the shade of orange I want to use) for the bar but when I...
I'm building an Android application and right now I want to change the status bar (the one on top of the screen that show wireless and area signals, battery status, etc) but it is not working. On the preview of the XML file it shows a different color (the shade of orange I want to use) for the bar but when I run the ap...
android|xml|colors|statusbar
9
2016-05-12T20:54:53.947Z
2,016
5
20
3
33,376
5
650
34
4
3
true
false
true
true
false
false
medium
37,197,399
FAB not moving down on Snackbar dismiss
<p>On my phone and that of a friend, the FAB in the default Android Studio Activity does not move down after the Snackbar dismisses.</p> <p>On the emulator and a few other friends' phones, it does animate down.</p> <p>The first friend and I have changed animation scale to 0.5, but setting it to 1.0 and rebooting hasn...
On my phone and that of a friend, the FAB in the default Android Studio Activity does not move down after the Snackbar dismisses. On the emulator and a few other friends' phones, it does animate down. The first friend and I have changed animation scale to 0.5, but setting it to 1.0 and rebooting hasn't fixed the issue....
android|android-animation|floating-action-button|android-snackbar
0
2016-05-12T21:06:58.010Z
2,016
5
21
3
550
1
566
39
4
3
true
false
false
false
false
false
zero
37,197,518
Passing Future object between activities
<p>Coming from Java EE to an Android application (i'm not Guru in Java EE), For a fatest load of the application, we decided to process a files asynchronously, when the application starts, we launch some asynchronous channels to read the files, then we open the main activity, the idea is the user may not go directly to...
Coming from Java EE to an Android application (i'm not Guru in Java EE), For a fatest load of the application, we decided to process a files asynchronously, when the application starts, we launch some asynchronous channels to read the files, then we open the main activity, the idea is the user may not go directly to th...
java|android|asynchronous
1
2016-05-12T21:15:41.547Z
2,016
5
21
3
112
1
1,033
40
3
0
false
false
false
false
false
false
low
37,197,592
save fragment state/data on android when app stopped/device turned off
<p>I'm looking for a way to have my Fragment "resume" it's previous State before I turned my device off (since I had images saved into it). I see whats causing the error but can't find a solution (similar questions didn't seem to be answered on how to go about the OnCreate when you first open the App/Fragment is loaded...
I'm looking for a way to have my Fragment "resume" it's previous State before I turned my device off (since I had images saved into it). I see whats causing the error but can't find a solution (similar questions didn't seem to be answered on how to go about the OnCreate when you first open the App/Fragment is loaded). ...
java|android|android-fragments|save|resume
-1
2016-05-12T21:20:27.810Z
2,016
5
21
3
398
2
912
70
5
2
true
false
false
false
false
true
negative
37,197,610
How To gone (not invisible) NavigationBar?
<p>I try to hide NavigationBar by this code:</p> <pre><code>public static void setFullscreen(final View decorView) { decorView.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener() { @Override public void onSystemUiVisibilityChange(int visibility) { if ((vi...
I try to hide NavigationBar by this code: [CODE] And for each Activity: [CODE] And theme of activities : [CODE] I success to hide NavifationBar , but NavigationBar just invisible , not gone! So real question is How to gone Navigation bar? sorry for my poor English.
java|android|uinavigationbar|fullscreen|navigationbar
-4
2016-05-12T21:21:41.433Z
2,016
5
21
3
124
2
265
42
5
3
true
false
false
false
false
true
negative
37,197,739
Delete all SQLite rows NOT IN specific rows
<p>I have a database for my leaderboard. Currently, I insert all scores into my leaderboard, and select the 5 highest scores to show on my app. I think it would take up too much room to never delete the other scores, so I would like to delete them. How can I do this?</p> <p>Here's how I select the top 5 scores, ranked...
I have a database for my leaderboard. Currently, I insert all scores into my leaderboard, and select the 5 highest scores to show on my app. I think it would take up too much room to never delete the other scores, so I would like to delete them. How can I do this? Here's how I select the top 5 scores, ranked first by s...
android|sqlite|android-sqlite
0
2016-05-12T21:29:51.353Z
2,016
5
21
3
141
1
596
43
3
4
true
false
false
false
false
false
zero
37,197,776
Use EditText for TextView
<p>I have a question, i want to create a random sentense. At my first activity i have 4 EditText (for the name of player).</p> <p>I have make the code for generate a random sentense but i didn't know how add the value of EditText.</p> <p>MainActivity : 4 EditText RandomActivity : Show somes sentenses from my String.<...
I have a question, i want to create a random sentense. At my first activity i have 4 EditText (for the name of player). I have make the code for generate a random sentense but i didn't know how add the value of EditText. MainActivity : 4 EditText RandomActivity : Show somes sentenses from my String. I want make a sente...
android
0
2016-05-12T21:32:13.823Z
2,016
5
21
3
49
1
499
25
1
3
true
false
false
false
false
false
zero
37,197,811
Android image overlay effect
<p>I want to create overlay effect with two images. One image is loading from gallery and second image with noise effect must applying when first is loaded. This my code in onViewCreated in Fragment:</p> <pre><code>@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view...
I want to create overlay effect with two images. One image is loading from gallery and second image with noise effect must applying when first is loaded. This my code in onViewCreated in Fragment: [CODE] For example, i have this image (i can't load more than 2 images) and have image with noise: Image with effect and i ...
java|android|image|overlay
0
2016-05-12T21:34:20.313Z
2,016
5
21
3
477
0
413
28
4
1
true
true
false
false
false
false
zero
37,197,891
value org.json.jsonobject cannot be converted to jsonarray
<p>I try to add the markers from my database but i have an error value org.json.jsonobject cannot be converted to jsonarray</p> <pre><code>05-12 22:30:18.300 2926-2926/com.example.getgpslocation W/System.err: org.json.JSONException: Value {"markers":[{"lat":"-0.6092131","lng":"35.2236078"},{"lat":"-0.6340827","lng":"3...
I try to add the markers from my database but i have an error value org.json.jsonobject cannot be converted to jsonarray [CODE] this is my code : [CODE]
android|mysql|json|google-maps
0
2016-05-12T21:40:27.330Z
2,016
5
21
3
163
1
152
58
4
2
true
false
false
false
false
false
zero
37,198,063
Android fragment twice when setRefreshing(false) on swipeRefreshLayout during fragment transaction
<p>I have two fragments in my activity (I navigate between them using fragment transaction):</p> <ol> <li>list of subjects</li> <li>subject detail - list of grades</li> </ol> <p>Subject Fragment layout:</p> <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/...
I have two fragments in my activity (I navigate between them using fragment transaction): list of subjects subject detail - list of grades Subject Fragment layout: [CODE] The listener for the swipeRefreshLayout is the activity. It triggers an AsyncTask which downloads new data, notifies fragments that the data has chan...
android|android-fragments|swiperefreshlayout
2
2016-05-12T21:52:50.397Z
2,016
5
21
3
1,255
3
828
98
3
3
true
false
false
false
false
false
low
37,198,069
Kivy on Android: urlopen error [Errno 4] non-recoverable failure in name resolution
<p>This Kivy program works on my Windows computer but not when I package it with buildozer and run it on Android. On Android it gives the error:</p> <pre><code>I/python ( 2173): &lt;urlopen error [Errno 4] non-recoverable failure in name resolution.&gt; </code></pre> <p>Here is the program:</p> <pre><code>from kiv...
This Kivy program works on my Windows computer but not when I package it with buildozer and run it on Android. On Android it gives the error: [CODE] Here is the program: [CODE] buildozer.spec has requirements = fysom, uuid, dropbox, six, kivy, pytz, requests Full adb log: [CODE]
android|python|kivy
2
2016-05-12T21:53:14.043Z
2,016
5
21
3
833
1
279
83
3
3
true
false
false
false
false
false
low
37,198,236
Send Notification only if Fragment is visible
<p>I am making a Chat App (just for fun). I am using Pushy API for sending message between two users. Following the tutorial available in pushy.me site, the Push Messages are received in a Broadcast Receiver. Well, this part is working fine, but now I am making a notification system like Whats App, that launches a noti...
I am making a Chat App (just for fun). I am using Pushy API for sending message between two users. Following the tutorial available in pushy.me site, the Push Messages are received in a Broadcast Receiver. Well, this part is working fine, but now I am making a notification system like Whats App, that launches a notific...
android|android-fragments|push-notification|android-notifications
0
2016-05-12T22:05:09.963Z
2,016
5
22
3
543
1
885
45
4
1
true
false
false
false
false
false
zero
37,198,301
Android draw circle around circular button
<p>I'm trying to create a custom joystick using a button that I will (hopefully) center inside of circular view. Problem is, I can't figure out how to center them on each other.</p> <p>Here's what I'm working with:</p> <pre><code>&lt;Button android:layout_width="80dp" android:layout_height="80dp" android...
I'm trying to create a custom joystick using a button that I will (hopefully) center inside of circular view. Problem is, I can't figure out how to center them on each other. Here's what I'm working with: [CODE] This makes them display as Since there's apparently no alignCenter I'm not sure how to center them. Anyone k...
android|xml|view
1
2016-05-12T22:11:15.997Z
2,016
5
22
3
331
0
328
42
3
1
true
true
false
false
false
false
low
37,198,371
Https get vs post
<p>I have been doing a lot of backend as well as front end development using java and restful services. My (company's) app is, lets say similar to an email app. </p> <p>I am making an Android client and many of the requests will have some or other parameter attached. We have enough security in place but I was wonderin...
I have been doing a lot of backend as well as front end development using java and restful services. My (company's) app is, lets say similar to an email app. I am making an Android client and many of the requests will have some or other parameter attached. We have enough security in place but I was wondering, would it ...
android|web-services|rest|security|post
0
2016-05-12T22:17:10.477Z
2,016
5
22
3
570
2
1,060
17
5
0
false
false
false
false
false
false
zero
37,198,425
ANDROID : Modification of my layout in real time
<p>I experience some trouble to update my layout in real time on my application.</p> <p>I would like to show a first screen with a button "Load Data". When I press the button, I want to change the text to "Loading..." and make a progress bar appear while the app is loading the data. When it's done, I'd like to change ...
I experience some trouble to update my layout in real time on my application. I would like to show a first screen with a button "Load Data". When I press the button, I want to change the text to "Loading..." and make a progress bar appear while the app is loading the data. When it's done, I'd like to change again the t...
java|android|layout
1
2016-05-12T22:22:30.127Z
2,016
5
22
3
147
3
654
48
3
1
true
false
false
false
false
false
low
37,198,570
If Statement Not Executed in AutocompleteTextView
<p>I'm new to Android Studio and currently working on my first app. Thanks to numerous examples on here i have managed to catch up on the basics very quickly. I now have a problem with my autocompletetextview, i want to get the text selected then use it in a if statement to determine what is shown on the "results" text...
I'm new to Android Studio and currently working on my first app. Thanks to numerous examples on here i have managed to catch up on the basics very quickly. I now have a problem with my autocompletetextview, i want to get the text selected then use it in a if statement to determine what is shown on the "results" textvie...
android-studio|autocompletetextview
0
2016-05-12T22:36:54.207Z
2,016
5
22
3
136
0
584
49
2
2
true
true
false
false
false
false
zero
37,198,605
android https connection times out more frequently (self-signed certificate) than http connection does not
<p>I have an app that uses a third-party server. Server supports both https/http requests.</p> <p>For my app, I created a self-signed certificate to make an https connection to the server. However, I <strong>frequently</strong> get "request timed out" with</p> <p><code>"SSL handshake timeout"</code> being dominant.<...
I have an app that uses a third-party server. Server supports both https/http requests. For my app, I created a self-signed certificate to make an https connection to the server. However, I frequently get "request timed out" with "SSL handshake timeout" being dominant. However, I switch over to HTTP connection, then ti...
android|ssl
0
2016-05-12T22:41:07.167Z
2,016
5
22
3
95
0
526
106
2
1
true
true
false
false
false
false
zero
37,198,623
Android Studios cannot resolve symbol 'R'
<p>Ok guys, I know that this has already been posted countless times before, but I have tried everything in the other posts that are related to the android studios program saying that it cannot resolve the symbol 'R', not one thing has worked for me. </p> <p>I have tried: </p> <ul> <li>cleaning my project</li> <li>Re...
Ok guys, I know that this has already been posted countless times before, but I have tried everything in the other posts that are related to the android studios program saying that it cannot resolve the symbol 'R', not one thing has worked for me. I have tried: cleaning my project Resynching my project reinstalling and...
java|android|xml|android-studio-2.1
0
2016-05-12T22:42:30.237Z
2,016
5
22
3
254
0
1,596
41
4
0
false
true
false
false
false
false
zero
37,198,665
VideoCastManager crashes after failing on FetchBitmapTask
<p>While the app is receiving metadata updates, VideoCastManager will begin repeatedly posting the following error, eventually crashing.. Our receiver sends metadata updates every second while ads are playing. This is how the SDK implements it and there's not much we can do about it. I'm looking for a way to suppress t...
While the app is receiving metadata updates, VideoCastManager will begin repeatedly posting the following error, eventually crashing.. Our receiver sends metadata updates every second while ads are playing. This is how the SDK implements it and there's not much we can do about it. I'm looking for a way to suppress this...
android|google-cast
0
2016-05-12T22:46:36.293Z
2,016
5
22
3
111
0
453
57
2
2
true
true
false
false
false
false
zero
37,198,716
Coordinator Layout - Toolbar animation, Toolbar doesn't collapse
<p>I am using below <code>Layout</code> in the <code>Activity</code>, but the <code>Toolbar</code> wouldn't hide no matter how many changes I do. </p> <p>The <code>Toolbar</code> has to hide as I scroll down the <code>RecyclerView</code>.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support...
I am using below Layout in the Activity , but the Toolbar wouldn't hide no matter how many changes I do. The Toolbar has to hide as I scroll down the RecyclerView . [CODE]
android|android-toolbar|android-coordinatorlayout
1
2016-05-12T22:51:32.290Z
2,016
5
22
3
365
1
171
64
3
1
true
false
false
false
false
false
low
37,198,863
Android Preferences to Layout
<p>How to use this code <code>Preferences.xml</code></p> <pre><code>&lt;PreferenceCategory android:title="Remote Proxy" android:key="plugin"&gt; &lt;CheckBoxPreference android:title="Use Remote Proxy" android:key="remote" android:defaultValue="false" /&gt; &lt;ListPreference android:entries="@array/ent...
How to use this code Preferences.xml [CODE] In Layout.xml , How can I activate my SharedPreferences without using Android ID ?
android|android-studio|sharedpreferences|android-preferences
0
2016-05-12T23:08:13.147Z
2,016
5
23
3
202
1
126
29
4
1
true
false
false
false
false
false
zero
37,198,946
Choose from list, then Draw a line Android Studio
<p>My project is about drawing a line on picture, but the user has to choose from the list that provide, then the line will be draw. the line is not similar, so every time the user choose from the list, it has to show different line. </p> <p>I done with drawing the line, how to read the image, and how to show the list...
My project is about drawing a line on picture, but the user has to choose from the list that provide, then the line will be draw. the line is not similar, so every time the user choose from the list, it has to show different line. I done with drawing the line, how to read the image, and how to show the list. The proble...
android|android-canvas|android-spinner
1
2016-05-12T23:17:41.350Z
2,016
5
23
3
106
0
576
49
3
1
true
true
false
false
false
false
low
37,199,388
Sqlite: how do I increment a row value by +1?
<p>I have a TOTALCOUNT table with a PK _id column and an integer column "CARDNUM". I want to set the default value of CARDNUM to zero. And then increment CARDNUM by +1 each time a new row is inserted into the database. So 5 row inserts would produce 1,2,3,4,5 for rowids 1 to 5. When I push the data to the individua...
I have a TOTALCOUNT table with a PK _id column and an integer column "CARDNUM". I want to set the default value of CARDNUM to zero. And then increment CARDNUM by +1 each time a new row is inserted into the database. So 5 row inserts would produce 1,2,3,4,5 for rowids 1 to 5. When I push the data to the individual CardV...
sqlite|android-cursor|content-values
2
2016-05-13T00:16:54.610Z
2,016
5
0
4
2,466
1
533
45
3
2
true
false
false
false
false
false
low
37,199,432
Android Studio onTouchListener crashes app when pressed for split second
<p>I use an ontouch listener that detects when the user holds down a button and starts recording audio. However, I discovered that if the user just clicks on the button, the app crashes with this error</p> <pre><code>05-13 10:17:52.193 5370-5370/? E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.amosang...
I use an ontouch listener that detects when the user holds down a button and starts recording audio. However, I discovered that if the user just clicks on the button, the app crashes with this error [CODE] From what I discovered, it is either because the audio isn't recorded so there is nothing to stop, or because it i...
java|android
0
2016-05-13T00:23:04.027Z
2,016
5
0
4
302
0
533
72
2
2
true
true
false
false
false
false
zero
37,199,450
Android BTLE -> Cannot find callback wrapper
<p>I am using Android Beacon Library in my app and I copied, word for word, their example for ranging but I keep getting the error you see below the code. Any help would be greatly appreciated, I am just now getting into BTLE/beacons</p> <pre><code>package com.example.josh.beacons; import android.os.Bundle; import a...
I am using Android Beacon Library in my app and I copied, word for word, their example for ranging but I keep getting the error you see below the code. Any help would be greatly appreciated, I am just now getting into BTLE/beacons [CODE] Errors I get: [CODE]
android|altbeacon|android-ibeacon
13
2016-05-13T00:25:10.400Z
2,016
5
0
4
12,302
4
258
44
3
2
true
false
true
true
true
false
medium
37,199,563
Android Button click
<p>I want to know if their is way to check if a button is clicked X times do something. For example i have a button in my android app and if a user clicks it more than 3 times i want to show an ad. The code for my project is below. I believe their is a way to implement it on my onlcicklistener but not sure how to go ab...
I want to know if their is way to check if a button is clicked X times do something. For example i have a button in my android app and if a user clicks it more than 3 times i want to show an ad. The code for my project is below. I believe their is a way to implement it on my onlcicklistener but not sure how to go about...
java|android|button|onclicklistener
-4
2016-05-13T00:40:43.323Z
2,016
5
0
4
65
1
333
20
4
1
true
false
false
false
false
true
negative
37,199,579
Why are the button links in "hacker" GitHub template so small on mobile devices?
<p>GitHub has several nice page templates. One of them, AFAIK called "Hacker", has <code>&lt;a&gt;</code> links styled as buttons for download and github link.</p> <p>This is how the buttons look like compared to page title on desktop:</p> <p><img src="https://i.stack.imgur.com/BrC9N.png" alt="image description"></p>...
GitHub has several nice page templates. One of them, AFAIK called "Hacker", has <a> links styled as buttons for download and github link. This is how the buttons look like compared to page title on desktop: This is how it looks on android with landscape view: You can see that on second image, the buttons are smaller th...
android|css|responsive-design
1
2016-05-13T00:43:05.833Z
2,016
5
0
4
1,009
0
736
80
3
2
true
true
false
false
false
false
low
37,199,619
Helper function interfacing different libraries on native Java vs Android?
<p>How do I cleanly write a helper function that uses different libraries (with different interfaces) on Java versus Android? This must have been asked before, but all I've found are a hundred people being told that #ifdef still doesn't exist.</p> <p>I'm working on an in-house utility library. Nearly all of the libr...
How do I cleanly write a helper function that uses different libraries (with different interfaces) on Java versus Android? This must have been asked before, but all I've found are a hundred people being told that #ifdef still doesn't exist. I'm working on an in-house utility library. Nearly all of the library runs clea...
java|android|gradle
0
2016-05-13T00:47:46.153Z
2,016
5
0
4
25
0
1,142
74
3
0
false
true
false
false
false
false
zero
37,199,749
Service does not stops on calling stopService()
<p>I have created a <code>Service</code> in my Android application which is working fine. But I want to stop it (completely killed) when I click <code>stopButton</code>. For this I have written this code, but this code does not stops the service when I click <code>stopButton</code>. So please help.</p> <p><strong>Serv...
I have created a Service in my Android application which is working fine. But I want to stop it (completely killed) when I click stopButton . For this I have written this code, but this code does not stops the service when I click stopButton . So please help. Service [CODE] MainActivity [CODE]
android
1
2016-05-13T01:08:40.780Z
2,016
5
1
4
109
2
294
47
1
2
true
false
false
false
false
false
low
37,200,126
Unity Cardboard demo, build for Android, apk fails
<p>I'm trying to simply build the Cardboard demo found here: <a href="https://developers.google.com/cardboard/unity/download#cardboard_sdk_for_unity_and_demo" rel="nofollow">https://developers.google.com/cardboard/unity/download#cardboard_sdk_for_unity_and_demo</a></p> <p>I've followed all the instructions rigorously,...
I'm trying to simply build the Cardboard demo found here: https://developers.google.com/cardboard/unity/download#cardboard_sdk_for_unity_and_demo I've followed all the instructions rigorously, I have all the right SDKs and their paths, I have an old LG E Android phone 4.1.2, which my computer is able to connect to, and...
android|unity3d|build
0
2016-05-13T02:04:40.030Z
2,016
5
2
4
1,430
1
1,034
50
3
1
true
false
false
false
false
false
zero
37,200,296
NavigationView with multiple group hide & show group based on Condition
<p>I have <code>NavigationView</code> with multiple Groups which is based on some condition I need to hide &amp; show the group. How I can achieve this.</p> <p>My Sample <code>NavigationView</code> menu </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/ap...
I have NavigationView with multiple Groups which is based on some condition I need to hide & show the group. How I can achieve this. My Sample NavigationView menu [CODE] This is the my NavigationView file. I just want to show only one group view at a time hide all others group .
android|navigationview|android-support-design|android-navigationview
8
2016-05-13T02:26:27.900Z
2,016
5
2
4
2,344
2
279
71
4
1
true
false
false
false
false
false
medium
37,200,384
btn.performClick() Unable mock Object,but Activity call the function is able
<p>I have try test button function using Mockito. The code include Layout/SampleActivity/UnitTest major Content:</p> <p><strong>layout file define:</strong></p> <pre><code>android:text="testbtnmock" android:id="@+id/btn_testbtnmock" android:onClick="testBtnMock" </code></pre> <p><strong>SampleActivity file define</s...
I have try test button function using Mockito. The code include Layout/SampleActivity/UnitTest major Content: layout file define: [CODE] SampleActivity file define [CODE] UnitTest file define [CODE] My questions are: why using spySampleActivity.testBtnMock(mock(View.class)); to trigger the function of testBtnMock(View ...
android|unit-testing|mockito|robolectric|activityunittestcase
3
2016-05-13T02:38:23.087Z
2,016
5
2
4
961
1
439
76
5
3
true
false
false
false
false
false
low