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
36,956,420
Eclipse importing android project, error in xml, but works in java code
<p>I'm trying to import this android project in eclipse. </p> <p><a href="https://github.com/Pkmmte/CircularImageView" rel="nofollow">https://github.com/Pkmmte/CircularImageView</a></p> <p>In xml, when I'm trying to use the ImageView</p> <pre><code>&lt;com.pkmmte.view.CircularImageView android:layout_width="...
I'm trying to import this android project in eclipse. https://github.com/Pkmmte/CircularImageView In xml, when I'm trying to use the ImageView [CODE] I'm getting error error: Error parsing XML: unbound prefix But I'm able to use the CircularImageView in Java code. When I type in Circular, suggestion opens as ..... com....
android|eclipse
0
2016-04-30T14:59:00.847Z
2,016
4
14
5
45
0
585
71
2
4
true
true
false
false
false
false
zero
36,956,453
Add map by react native
<p>I need to add map to my application as google maps when I choose place from input or what ever , to show maps or filter component on maps due to this choice , what I exactly need is how to start maps on my app by react native . I try to install this <code>npm install react-native-maps --save</code> using this plugin...
I need to add map to my application as google maps when I choose place from input or what ever , to show maps or filter component on maps due to this choice , what I exactly need is how to start maps on my app by react native . I try to install this npm install react-native-maps --save using this plugin https://www.npm...
android|google-maps|github|npm|react-native
1
2016-04-30T15:01:34.043Z
2,016
4
15
5
640
2
501
23
5
1
true
false
false
false
false
false
low
36,956,596
How do I get the currentPlayTime of an ObjectAnimator while it is playing?
<p>This is my ObjectAnimator:</p> <pre><code>public void startSimulateProgressAnimator() { simulateProgressAnimator = ObjectAnimator.ofFloat(this, "currentProgress", 0, 100).setDuration(2000); simulateProgressAnimator.setInterpolator(new AccelerateInterpolator()); simulateProgressAnimator.start(); } </code...
This is my ObjectAnimator: [CODE] During the 2 seconds that it is playing, I want to get the currentPlayTime so that I can find the percentage completion of the animation by saying: [CODE] Just to put this into context, the ObjectAnimator draws a circle on the screen and I want to put a percentage in the centre of the ...
android|animation|objectanimator
0
2016-04-30T15:15:35.790Z
2,016
4
15
5
395
0
640
74
3
3
true
true
false
false
false
false
zero
36,956,643
Partial update of RecyclerView.ViewHolder
<p>I'm trying to change the field with time in my <code>RecyclerView</code>. Each individual <code>ViewHolder</code> contains a <code>CardView</code> and a few more views inside. The only view I want to animate is the one with time. As you can see, there is no animation:</p> <pre><code>adapter.notifyDataSetChanged(); ...
I'm trying to change the field with time in my RecyclerView . Each individual ViewHolder contains a CardView and a few more views inside. The only view I want to animate is the one with time. As you can see, there is no animation: [CODE] Updating items one by one doesn't help because then the whole CardView flashes: [C...
android|animation|android-recyclerview
36
2016-04-30T15:20:36.237Z
2,016
4
15
5
12,612
1
437
41
3
2
true
false
true
true
true
false
high
36,956,672
Cannot Save and Retrieve Data from SharedPreferences in Android
<p>I cannot save and Retrieve Data using SharedPreferences... this app was working fine before i added database to this ..</p> <p>i cannot understand what should i pass to 2nd argument of shared Preference . getString("key","value"); .. is value has to same as i passed in putString method ?</p> <p>here is my code..<...
I cannot save and Retrieve Data using SharedPreferences... this app was working fine before i added database to this .. i cannot understand what should i pass to 2nd argument of shared Preference . getString("key","value"); .. is value has to same as i passed in putString method ? here is my code.. [CODE]
android|sharedpreferences
0
2016-04-30T15:23:05.203Z
2,016
4
15
5
57
1
306
63
2
1
true
false
false
false
false
false
zero
36,956,730
Android - support.v7.PreferenceCategory fill the whole screen
<p>I am using support preference library and every <code>PreferenceCategory</code> fill the whole screen with blank space and then show the preferences that it contains. I have tried changing <code>PreferenceCategory</code> style attribute - layout_height to wrap_content and it didn't work. </p> <p>My preference style...
I am using support preference library and every PreferenceCategory fill the whole screen with blank space and then show the preferences that it contains. I have tried changing PreferenceCategory style attribute - layout_height to wrap_content and it didn't work. My preference styles: [CODE] My prefernce xml: [CODE] Thi...
java|android|android-support-library
2
2016-04-30T15:28:51.450Z
2,016
4
15
5
691
1
338
61
3
2
true
false
false
false
false
false
low
36,956,804
android datepicker animation jerking because of poor performance
<p>I have crated an activity with scrollView which holds several buttons and textviews. Before I add the DatePicker into my scrollView, the FPS can keep 60fps. But I don't understand why the FPS drops dramaticly when I added the DatePicker. And I have not find out other widget have such bad performance. </p> <p>Why I ...
I have crated an activity with scrollView which holds several buttons and textviews. Before I add the DatePicker into my scrollView, the FPS can keep 60fps. But I don't understand why the FPS drops dramaticly when I added the DatePicker. And I have not find out other widget have such bad performance. Why I am concernin...
android|datepicker|android-widget|android-animation
0
2016-04-30T15:34:02.267Z
2,016
4
15
5
1,162
1
1,331
64
4
2
true
false
false
false
false
false
zero
36,956,810
Changing image dynamically on a dynamic list on Android
<p>I have created an app with a listview with arrayadapter that the user can dynamically populate. I store the info entered as a json string in the preferences and when I refresh the app, I get the list with the entries. The thing is that I want the image next to each entry to change after a network operation. The prob...
I have created an app with a listview with arrayadapter that the user can dynamically populate. I store the info entered as a json string in the preferences and when I refresh the app, I get the list with the entries. The thing is that I want the image next to each entry to change after a network operation. The problem...
java|android|list|layout|dynamic
0
2016-04-30T15:34:36.503Z
2,016
4
15
5
59
2
703
55
5
3
true
false
false
false
false
false
zero
36,956,969
How to use spinner created in a fragment layout to an activity
<p>I have a spinner created in fragment_tab.xml . I tried to populate the spinner from an arrayadapter in MainActivity but it is giving null pointer exception. My question is, what is the specific way to do that? After searching a lot, i failed to find the way. Here is my MainActivity:</p> <pre><code>public class Mai...
I have a spinner created in fragment_tab.xml . I tried to populate the spinner from an arrayadapter in MainActivity but it is giving null pointer exception. My question is, what is the specific way to do that? After searching a lot, i failed to find the way. Here is my MainActivity: [CODE] Here is my TabFragment class(...
android|android-fragments
0
2016-04-30T15:50:06.063Z
2,016
4
15
5
559
2
423
62
2
4
true
false
false
false
false
false
zero
36,957,129
How to load images and hide text (styganography)
<p>In my Algorithm I hide text successfully but only when I load small png image When I load large image (for example 547 ko) the app stopped And this is my code:</p> <p>this is th onCreat</p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); s...
In my Algorithm I hide text successfully but only when I load small png image When I load large image (for example 547 ko) the app stopped And this is my code: this is th onCreat [CODE] i load image in this fonction [CODE] and this for desplying image [CODE] and finely is the code how to hide text [CODE] }
java|android|bitmap
0
2016-04-30T16:04:47.393Z
2,016
4
16
5
273
0
307
48
3
4
true
true
false
false
false
false
zero
36,957,318
Android Navigation Drawer proper handling activities
<p>When you enter my app, you always go to the main screen with some quick details/information. There is a navigation drawer which contains 3 items: Recordings, Videos, Settings. I would prefer navigation work where Recordings and Videos are the top activity actions, so if you navigate down either and press Up/Home o...
When you enter my app, you always go to the main screen with some quick details/information. There is a navigation drawer which contains 3 items: Recordings, Videos, Settings. I would prefer navigation work where Recordings and Videos are the top activity actions, so if you navigate down either and press Up/Home or Bac...
android|navigation-drawer
0
2016-04-30T16:22:59.263Z
2,016
4
16
5
33
1
1,037
52
2
0
false
false
false
false
false
false
zero
36,957,353
Android: RecyclerView adapter longClickListener not working
<p>I am trying to use <code>longClickListener</code> in my <code>Fragment</code> but for some reason it is just not working. If I do a long click, event is received by <code>onItemClickListener</code></p> <p>This is my code</p> <pre><code>import android.support.v7.widget.RecyclerView; import android.view.LayoutInflat...
I am trying to use longClickListener in my Fragment but for some reason it is just not working. If I do a long click, event is received by onItemClickListener This is my code [CODE] This is how I use it inside my Fragment . This onLongClick and onItemClickListener both are placed in onResume function of the Fragment . ...
android|android-recyclerview|onitemlongclicklistener
0
2016-04-30T16:26:35.043Z
2,016
4
16
5
2,052
1
501
59
3
2
true
false
false
false
false
false
zero
36,957,368
FirebaseUI RecyclerView random items added to listitems
<p>When a button is pressed, a dialog appears asking user for message, with the option of attaching an image (from url). The problem I'm having is once the recyclerview is filled with enough items to scroll, when the user scrolls quickly for some reason random images start popping up in seemingly random list items.</p>...
When a button is pressed, a dialog appears asking user for message, with the option of attaching an image (from url). The problem I'm having is once the recyclerview is filled with enough items to scroll, when the user scrolls quickly for some reason random images start popping up in seemingly random list items. I know...
android|firebase
0
2016-04-30T16:28:14.833Z
2,016
4
16
5
335
1
1,126
55
2
3
true
false
false
false
false
false
zero
36,957,382
Alarm ringing stops when cleared from ram
<p>I am making an alarm clock which asks user to do a particular work in order to close the alarm when it rings. It is working fine but the problem is that if the user closes the alarm app from the recent activities while the alarm is ringing, the alarm stops ringing. I want that even if the user clears the app while i...
I am making an alarm clock which asks user to do a particular work in order to close the alarm when it rings. It is working fine but the problem is that if the user closes the alarm app from the recent activities while the alarm is ringing, the alarm stops ringing. I want that even if the user clears the app while its ...
java|android|service|alarmmanager|android-alarms
2
2016-04-30T16:29:41.160Z
2,016
4
16
5
53
1
493
41
5
1
true
false
false
false
false
false
low
36,957,466
How to Load Json in Endless Recycler Veiw with Retrofit
<p>I try to implement Endless Recycler View with my Json Response .</p> <p>This is My Json Response <a href="http://www.aparat.com/etc/api/categoryvideos" rel="nofollow">Link</a></p> <p>I Generate my models with jsonschema2pojo.org and I load the data in my recyclerview successfully .</p> <p>But I need to implement ...
I try to implement Endless Recycler View with my Json Response . This is My Json Response Link I Generate my models with jsonschema2pojo.org and I load the data in my recyclerview successfully . But I need to implement endless recycler view : This is my RecyclerAdapter : [CODE] And This is the activity where i load the...
android|json|pagination|retrofit2
0
2016-04-30T16:37:29.717Z
2,016
4
16
5
1,053
1
496
55
4
2
true
false
false
false
false
false
zero
36,957,494
TabLayout overlaps ViewPager Fragment
<p>i habe an TabLayout in my Application where each Tab has its own Fragment. But i cannot see the full content of my Fragment because the TabLayout overlaps the bottom of the fragment. How can i solve the problem?</p> <p>activity_main.xml</p> <pre><code>&lt;RelativeLayout android:id="@+id/main_layout" xmlns:...
i habe an TabLayout in my Application where each Tab has its own Fragment. But i cannot see the full content of my Fragment because the TabLayout overlaps the bottom of the fragment. How can i solve the problem? activity_main.xml [CODE] fragment.xml [CODE]
android|android-layout|android-fragments
0
2016-04-30T16:39:50.073Z
2,016
4
16
5
774
1
256
37
3
2
true
false
false
false
false
false
zero
36,957,521
Android: Make phone ring after clicking Volume Key Pattern
<p>android: I want phone to ring and display contact info (Like a real phone call). when the user clicks the volume up key 3 times, and holds on 3rd click. I want this to be possible even from lock screen. Is this possible?</p> <p>Thanks! </p> <p>I made that change, I am trying to run on my galaxy s6 right now and th...
android: I want phone to ring and display contact info (Like a real phone call). when the user clicks the volume up key 3 times, and holds on 3rd click. I want this to be possible even from lock screen. Is this possible? Thanks! I made that change, I am trying to run on my galaxy s6 right now and the app is crashing. I...
android
0
2016-04-30T16:42:35.263Z
2,016
4
16
5
60
1
392
58
1
1
true
false
false
false
false
false
zero
36,957,529
I can't replace my default fragment(home fragment) to other fragments using button click event?
<p>i'm new to Android and struggling with my fragments project, pls help me out! here i cant replace my default fragment(containing three buttons) to other fragments using button click event. ps: => problem : my code works fine and compiles too, but button is not responding here's my code</p> <p>activity_main.xml </p...
i'm new to Android and struggling with my fragments project, pls help me out! here i cant replace my default fragment(containing three buttons) to other fragments using button click event. ps: => problem : my code works fine and compiles too, but button is not responding here's my code activity_main.xml [CODE] and here...
java|android|android-layout|android-fragments|buttonclick
-2
2016-04-30T16:43:29.487Z
2,016
4
16
5
170
1
453
95
5
3
true
false
false
false
false
true
negative
36,957,569
9 path not stretch correctly
<p>I know there is a lots of other questions about this but I try all of them and nothing works for me. I want to create a button with 9 patch background. This is my 9 patch image :</p> <p><a href="https://i.stack.imgur.com/W1poq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W1poq.png" alt="enter i...
I know there is a lots of other questions about this but I try all of them and nothing works for me. I want to create a button with 9 patch background. This is my 9 patch image : I create this with draw9patch.bat in android sdk : And I use this xml to create my button : [CODE] But the result is weird : For test purpose...
android|nine-patch
-1
2016-04-30T16:48:37.757Z
2,016
4
16
5
75
1
466
28
2
1
true
false
false
false
false
true
negative
36,957,660
onItemClickListener doesnt work for a list view that is in a Navigation drawer
<p>i have a Navigation Drawer that it is a Fragment. now I want to set onitemclickListener for the items in the ListView of the navDrawer. But i cannot do it. Java Class:</p> <pre><code>public class Welcome extends AppCompatActivity { private drawer_navigation dn; private ListView lv; private List&lt;HashMap&lt;Strin...
i have a Navigation Drawer that it is a Fragment. now I want to set onitemclickListener for the items in the ListView of the navDrawer. But i cannot do it. Java Class: [CODE] XML file: ` [CODE] catrgory_list_drawer.XML: [CODE] ` I will be so grateful if someone helps me!:)
java|android|xml|android-layout|android-fragments
0
2016-04-30T16:58:34.897Z
2,016
4
16
5
40
0
273
78
5
3
true
true
false
false
false
false
zero
36,957,683
Android Studio, keeps loading the same fragment
<p>I'm doing a simple Login Application, where the user simply logs in and when so, all the details are displayed. This is done through a php file, and a SQL datahost database.</p> <p>When I input the incorrect credentials the app, it works fine by prompting the user with a error to retry, but when I give it the corre...
I'm doing a simple Login Application, where the user simply logs in and when so, all the details are displayed. This is done through a php file, and a SQL datahost database. When I input the incorrect credentials the app, it works fine by prompting the user with a error to retry, but when I give it the correct username...
php|android|android-fragments|android-activity
0
2016-04-30T17:00:59.240Z
2,016
4
17
5
105
2
791
47
4
5
true
false
false
false
false
false
zero
36,957,802
Togglebutton state with shared preferences not changable via asynctask
<p>Ok I have a togglebutton in my main activity. I want the state of this button to be saved if I switch to another activity, minimize the app and a service should be able to set the button state to false (not clicked). Everything worked fine, but for some reason when I started Android Studio again it didn´t work anymo...
Ok I have a togglebutton in my main activity. I want the state of this button to be saved if I switch to another activity, minimize the app and a service should be able to set the button state to false (not clicked). Everything worked fine, but for some reason when I started Android Studio again it didn´t work anymore?...
android
0
2016-04-30T17:10:53.787Z
2,016
4
17
5
41
2
747
70
1
4
true
false
false
false
false
false
zero
36,957,817
converting sqlite database to excel in android
<p>I am trying to take the data from my database and create an excel csv file from this data. I have looked at some tutorials but am not sure how to go about this. any advice? I have made some progess but got lots of errors.</p> <p>I'm not sure where to start but here's my dbadapter class:</p> <pre><code>public class...
I am trying to take the data from my database and create an excel csv file from this data. I have looked at some tutorials but am not sure how to go about this. any advice? I have made some progess but got lots of errors. I'm not sure where to start but here's my dbadapter class: [CODE] here is my exportData Class:I ha...
android|excel|sqlite
0
2016-04-30T17:12:19.953Z
2,016
4
17
5
114
0
357
46
3
2
true
true
false
false
false
false
zero
36,957,963
Error building player for Android in Unity?
<pre><code>Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\Users\4story\AppData\Local\Android\sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/4story/AppData/Local/Android/sdk\...
[CODE] Please help me fix this. Why can't I build my project? I'm new to unity. EDIT: UNITY VERSION: 5.3.4f1 64 bit Minimum api 10 aka 2.3.3 gingerbread (Note on sdk manager downloading sdk platform for gingerbread is not available for windows so I didnt download it... should I use higher api?) android sdk tools 25.1.1...
android|unity3d|build
2
2016-04-30T17:25:10.683Z
2,016
4
17
5
15,366
1
1,619
43
3
2
true
false
true
true
false
false
low
36,957,979
Vector image is stretched
<p>I need to make a layout like this here form:</p> <p><a href="https://i.stack.imgur.com/jidf0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jidf0.png" alt="enter image description here"></a></p> <p>I use vector (dialog.xml):</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;vecto...
I need to make a layout like this here form: I use vector (dialog.xml): [CODE] Then: [CODE] But the image is stretched and looks not nice. In addition, vector requires API level 21, my app min API is 15. How can I make the layout of this form in another way?
java|android|android-layout
1
2016-04-30T17:26:56.173Z
2,016
4
17
5
160
0
258
25
3
2
true
true
false
false
false
false
low
36,958,023
Android Cannot anchor FAB button to BottomSheet
<p>I'm trying to attach a FAB button to the BottomSheet view like Google Maps does. However I cannot make it work, </p> <p>this is the code of the FAB button:</p> <pre><code> &lt;android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_hei...
I'm trying to attach a FAB button to the BottomSheet view like Google Maps does. However I cannot make it work, this is the code of the FAB button: [CODE] and this is the code of the BottomSheet View [CODE]
android|button|floating-action-button
9
2016-04-30T17:31:10.303Z
2,016
4
17
5
3,957
1
206
47
3
2
true
false
true
false
false
false
medium
36,958,037
get textview from custom item in listvew
<p>I have a <code>ListView</code> and this custom row:</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="match_parent"&gt; &lt;TextView android:textAppearance="?android:attr/te...
I have a ListView and this custom row: [CODE] I want to get the TextView : [CODE] but it returns null. How can I fix this?
android|listview|android-custom-view
-1
2016-04-30T17:32:47.723Z
2,016
4
17
5
50
1
122
40
3
2
true
false
false
false
false
true
negative
36,958,211
Android client only connecting once to server with LipeRMI
<p>I have an Android client connecting to a Java server with LipeRMI (<a href="http://lipermi.sourceforge.net/" rel="nofollow">http://lipermi.sourceforge.net/</a>).</p> <p>To test this communication I have a button in my interface that when clicked sends a String "Test". It gets to the server and the server returns th...
I have an Android client connecting to a Java server with LipeRMI ( http://lipermi.sourceforge.net/ ). To test this communication I have a button in my interface that when clicked sends a String "Test". It gets to the server and the server returns the String. It works fine, the problem is that it only works once. The s...
java|android|rmi
1
2016-04-30T17:48:32.427Z
2,016
4
17
5
250
1
658
58
3
2
true
false
false
false
false
false
low
36,958,240
Android: oval shape looks bad
<p>I have a button with a oval background and it doesn't look like a perfect circle, I can notice at every distance "breaks" in the circunfrence, this is how it looks</p> <p><a href="https://i.stack.imgur.com/Jcu0E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jcu0E.png" alt="enter image descripti...
I have a button with a oval background and it doesn't look like a perfect circle, I can notice at every distance "breaks" in the circunfrence, this is how it looks the background: [CODE] Edit: Creating the button [CODE] Is this normal? If not how can i fix it? Note: I have more than one button created like this
java|android
2
2016-04-30T17:51:10.563Z
2,016
4
17
5
2,225
5
312
29
2
2
true
false
false
false
false
false
low
36,958,273
How can i check user really enabled the google voice typing service
<p>i am implementing voice recognize demo, and i want to check if google voice typing service is enabled then open my activity otherwise open language and input setting window, how to apply this condition, help me to achieve this, aarigato in advance</p> <pre><code>Intent intent = new Intent(Intent.ACTION_MAIN); inten...
i am implementing voice recognize demo, and i want to check if google voice typing service is enabled then open my activity otherwise open language and input setting window, how to apply this condition, help me to achieve this, aarigato in advance [CODE] i found this soution to open setting windows but i dont know the ...
android
1
2016-04-30T17:54:28.550Z
2,016
4
17
5
65
0
461
67
1
2
true
true
false
false
false
false
low
36,958,295
Genymotion - Unable to start the Virtual Device / Cannot create COM object
<p>I'm sorry to bring this up again, I know there's about 20 more questions about this, read through all of them and all the answers and I still can't get this to work</p> <h2>What I tried so far is,</h2> <p>Using an older version of VirtualBox (4.2), with this version, old android versions (4.1 and 4.3) worked fine,...
I'm sorry to bring this up again, I know there's about 20 more questions about this, read through all of them and all the answers and I still can't get this to work What I tried so far is, Using an older version of VirtualBox (4.2), with this version, old android versions (4.1 and 4.3) worked fine, but nothing over 4.3...
android|virtual-machine|genymotion
1
2016-04-30T17:55:32.900Z
2,016
4
17
5
213
1
1,119
74
3
0
false
false
false
false
false
false
low
36,958,369
Could not find com.android.support:design-23.2.1 and Could not find com.android.support.appcompat-v7-23.2.1 error
<p>I can not compile an android project that is written in another computer.</p> <p>The errors I get:</p> <pre><code>Error:A problem occurred configuring project ':app'. &gt; Could not resolve all dependencies for configuration ':app:_debugCompile'. &gt; Could not find com.android.support:appcompat-v7-23.2.1:. ...
I can not compile an android project that is written in another computer. The errors I get: [CODE] Here is the build.gradle dependencies [CODE] sdkSettings
android|android-gradle-plugin|build.gradle|android-appcompat
1
2016-04-30T18:03:36.627Z
2,016
4
18
5
4,834
4
155
113
4
2
true
false
true
false
false
false
low
36,958,385
write & read textfiles on external micro-sd card with project tango developer tablet
<p>I want to read and write textfiles on the external micro-sd card from my project tango developer tablet.</p> <p>This is my code for reading (it works):</p> <pre><code> /* Checks if external storage is available for read and write */ String state = Environment.getExternalStorageState(); ...
I want to read and write textfiles on the external micro-sd card from my project tango developer tablet. This is my code for reading (it works): [CODE] And this is my code for writing (it doesn't work yet): [CODE] What am I doing wrong? Or is there still an error with the tango tablet? I found these two links, but tryi...
java|android|google-project-tango
1
2016-04-30T18:05:42.090Z
2,016
4
18
5
111
1
456
84
3
2
true
false
false
false
false
false
low
36,958,479
Declare a common onClick attribute for all buttons in styles.xml file
<p>My layout involves a lot of Buttons with all attributes absolutely same except the <code>android:text="button_name"</code> attribute. </p> <p>The theme for these buttons is defines as follows in styles.xml</p> <pre><code>&lt;style name="Core.ButtonStyleSmall"&gt; &lt;item name="android:layout_width"&gt;16sp&lt...
My layout involves a lot of Buttons with all attributes absolutely same except the android:text="button_name" attribute. The theme for these buttons is defines as follows in styles.xml [CODE] What I want to achieve is a common onClick statement for all of these buttons and thus I have added it here but it doesn't seem ...
java|android|xml|buttonclick
1
2016-04-30T18:15:42.883Z
2,016
4
18
5
653
1
506
69
4
1
true
false
false
false
false
false
low
36,958,558
i want to decrease count when already checked checkbox is unchecked. how do i do this?
<p>i was trying to make a list that will select only 3 symptoms. for which i put a while loop that stops when count becomes 3. count increases when a checkbox is checked but it doesn't decrease when it is unchecked again. How do i solve this. here is what i have done so far:-</p> <p><strong>JAVA CODE</strong></p> <pr...
i was trying to make a list that will select only 3 symptoms. for which i put a while loop that stops when count becomes 3. count increases when a checkbox is checked but it doesn't decrease when it is unchecked again. How do i solve this. here is what i have done so far:- JAVA CODE [CODE] XML CODE [CODE] Any help will...
android|xml|loops|checkbox|count
0
2016-04-30T18:22:27.463Z
2,016
4
18
5
323
1
348
86
5
2
true
false
false
false
false
false
zero
36,958,609
Android shared element transition: hero view gets drawn in front of other
<p>Please look at this video showing a shared elements activity transition. It's a transition from a list activity to a detail activity.</p> <p>[Video link no longer works]</p> <p>As you can see the imageview gets drawn in front of the tabs.</p> <p>What I would expect is the tabs being drawn in font on the imageview...
Please look at this video showing a shared elements activity transition. It's a transition from a list activity to a detail activity. [Video link no longer works] As you can see the imageview gets drawn in front of the tabs. What I would expect is the tabs being drawn in font on the imageview and fading out throughout ...
android|shared-element-transition
13
2016-04-30T18:26:57.610Z
2,016
4
18
5
2,319
3
774
73
2
1
true
false
false
false
true
false
medium
36,958,683
Xml Custom ListView only show one element
<p>I have xml layout which will display the element that i get from database. When i put all the element to the ListView, only the last element will be shown. I had tested my java class with <code>System.out.println(bookList);</code> and all my data were shown. So I guess the problem should be on my xml file but I coul...
I have xml layout which will display the element that i get from database. When i put all the element to the ListView, only the last element will be shown. I had tested my java class with System.out.println(bookList); and all my data were shown. So I guess the problem should be on my xml file but I could not find out w...
java|android|xml|listview
-1
2016-04-30T18:33:07.100Z
2,016
4
18
5
46
1
433
41
4
3
true
false
false
false
false
true
negative
36,958,800
RecyclerView getMenuInfo always null
<p>I've try to setup a ContextMenu for my RecyclerView when i do a longClick this work perfectly but when i tried to access at <code>getMenuInfo</code> his always null even in the <code>onCreateContextMenu</code></p> <p>i have already try this link :</p> <ul> <li><a href="https://stackoverflow.com/a/31478593/1893220"...
I've try to setup a ContextMenu for my RecyclerView when i do a longClick this work perfectly but when i tried to access at getMenuInfo his always null even in the onCreateContextMenu i have already try this link : https://stackoverflow.com/a/31478593/1893220 https://stackoverflow.com/a/17207576/1893220 etc ... For the...
android|android-recyclerview|contextmenu
3
2016-04-30T18:44:31.833Z
2,016
4
18
5
1,709
2
482
36
3
4
true
false
false
false
false
false
low
36,958,815
How to settext with Map<String, Object>?
<p>ORIGINAL POST:</p> <p>How do you set a textview with an object? I am pulling data from a webservice database and setting it to an object. I am then attempting to set the data in the object to a textview.</p> <p>What I need help with:</p> <p>1) setting a textview with Map String, Object </p> <p>Previous post rega...
ORIGINAL POST: How do you set a textview with an object? I am pulling data from a webservice database and setting it to an object. I am then attempting to set the data in the object to a textview. What I need help with: 1) setting a textview with Map String, Object Previous post regarding webservice database: Populatin...
java|android|listview|kumulos
0
2016-04-30T18:45:56.577Z
2,016
4
18
5
715
1
831
40
4
2
true
false
false
false
false
false
zero
36,958,827
how to move marker in android step by step from source to destination
<p>I have problem with marker. I want to move my marker from source to destination. I have calculated steps to go through coordinates. I tried to make counter down during each step,but i failed. My following code :</p> <pre><code> if (direction.isOK()) { // Do something //Toast.makeText(MapsActivity.this, "w...
I have problem with marker. I want to move my marker from source to destination. I have calculated steps to go through coordinates. I tried to make counter down during each step,but i failed. My following code : [CODE] I appreciate your help if you can help me. Thanks in advance.
java|android|google-maps
0
2016-04-30T18:46:46.290Z
2,016
4
18
5
175
0
280
69
3
1
true
true
false
false
false
false
zero
36,958,835
Back navigation button no functionality
<p>i have browsed through many stack overflow q/a but i am not able give my back navigation button a functionality. what can be the error</p> <p>if anyone can help me , cuz i have to submit my project tommorow</p> <p>my java code:</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { supe...
i have browsed through many stack overflow q/a but i am not able give my back navigation button a functionality. what can be the error if anyone can help me , cuz i have to submit my project tommorow my java code: [CODE]
android|eclipse|android-studio
1
2016-04-30T18:47:28.017Z
2,016
4
18
5
41
3
220
39
3
1
true
false
false
false
false
false
low
36,958,946
Database won't updated using android volley
<p>I tried to update database on server with calling API by using Google Volley. But somehow the database won't updated. The issue doesn't exist while retrieving data (Method.GET)</p> <p>Here my snipet code :</p> <pre><code> HashMap&lt;String, String&gt; params = new HashMap&lt;&gt;(); params.put(.....); ...
I tried to update database on server with calling API by using Google Volley. But somehow the database won't updated. The issue doesn't exist while retrieving data (Method.GET) Here my snipet code : [CODE] Then i tried update database manually by using PostMan to make sure that the problem not on my API side and my dat...
android|database|android-volley
0
2016-04-30T18:58:53.963Z
2,016
4
18
5
91
2
423
43
3
1
true
false
false
false
false
false
zero
36,959,103
Erased polylines shows on google maps
<p>I need a little bit of help. I'm building a GPS tracking app where the app draws polylines of my movement and when I stop the tracking of my movement and click start again the app would erase all of the previously drawed polylines and start drawing newones. Bud everytime I start the polylinedrawing again the app aft...
I need a little bit of help. I'm building a GPS tracking app where the app draws polylines of my movement and when I stop the tracking of my movement and click start again the app would erase all of the previously drawed polylines and start drawing newones. Bud everytime I start the polylinedrawing again the app after ...
android|google-maps|polyline
0
2016-04-30T19:13:21.083Z
2,016
4
19
5
64
2
399
37
3
1
true
false
false
false
false
false
zero
36,959,156
BasicNetwork.performRequest: Unexpected response code 429 (android)
<p>I m using Volley library for sending a request to server for Login to an app. it doesn't have any problem until couple of hours ago. but without any reason, i m getting this error "<strong>BasicNetwork.performRequest: Unexpected response code 429</strong>" </p> <p>the code is this:</p> <pre><code> public void l...
I m using Volley library for sending a request to server for Login to an app. it doesn't have any problem until couple of hours ago. but without any reason, i m getting this error " BasicNetwork.performRequest: Unexpected response code 429 " the code is this: [CODE] I have searched in Wikipedia for this error (429) and...
android|android-volley
2
2016-04-30T19:17:52.907Z
2,016
4
19
5
4,992
2
916
67
2
1
true
false
true
false
false
false
low
36,959,200
how can i read a SharedPreferences from another activity?
<pre><code> sharedPreferences = getSharedPreferences("HTTP_HELPER_PREFS", Context.MODE_PRIVATE); editor = sharedPreferences.edit(); // get the IP address and port number from the last time the user used the app, // put an empty string "" is this is the first time. editTextIPAddress.setText(sharedPre...
[CODE] that's my code i created a second Activity to get the ip adresse and the port number now i need to read that SharedPreferencesin the main activity
android-studio|sharedpreferences
0
2016-04-30T19:22:13.100Z
2,016
4
19
5
520
1
153
57
2
1
true
false
false
false
false
false
zero
36,959,217
Two-way binding cannot resolve a setter for java.lang.String property
<p>I am playing with the two-way binding of the data binding API which was introduced in Android Studio 2.1 AFIK.</p> <p>I get this interesting error:</p> <blockquote> <p>Error:Execution failed for task ':app:compileDebugJavaWithJavac'.<br> &gt; java.lang.RuntimeException: Found data binding errors.<br> ****/ d...
I am playing with the two-way binding of the data binding API which was introduced in Android Studio 2.1 AFIK. I get this interesting error: Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > java.lang.RuntimeException: Found data binding errors. ****/ data binding error ****msg:The expression address....
android|android-databinding|two-way
8
2016-04-30T19:24:06.500Z
2,016
4
19
5
8,091
3
854
69
3
2
true
false
true
false
false
false
medium
36,959,219
How to get data from an intent fired from an adapter?
<p>I have a class, <code>ExpandableListAdapter</code> that fires an intent that opens the camera</p> <pre><code>ImageView itemImage = (ImageView) convertView.findViewById(R.id.itemImage); itemImage.setImageBitmap(childItem.Image); itemImage.setOnClickListener(new View.OnClickListener() { @Override public void ...
I have a class, ExpandableListAdapter that fires an intent that opens the camera [CODE] The childItem is an object from this class: [CODE] The camera takes a picture and stores it on the memory card. I have overridden void onActivityResult(int requestCode, int resultCode, Intent data) in the activity that uses the adap...
java|android|android-intent
0
2016-04-30T19:24:47.140Z
2,016
4
19
5
396
2
465
53
3
4
true
false
false
false
false
false
zero
36,959,272
Map is not shown in android
<p>I have created a MapActivity in android studio to open map (Google Map) but when I open the activity by clicking button, white screen is shown instead of Map. There is no error/exception given by the android studio.</p> <p><strong>Map.java</strong></p> <pre><code>package com.example.abc.project1; import android.s...
I have created a MapActivity in android studio to open map (Google Map) but when I open the activity by clicking button, white screen is shown instead of Map. There is no error/exception given by the android studio. Map.java [CODE] activity_map.xml [CODE]
android
0
2016-04-30T19:29:35.377Z
2,016
4
19
5
31
2
255
27
1
2
true
false
false
false
false
false
zero
36,959,389
AsyncTask connection timeout
<p>I wanna put timeout on connection attempt, for instance 10 seconds. But I'm not really good with threading or anything with the web technologies. And I don't know what should I do next.</p> <p>This is my class:</p> <pre><code> class JSONAsyncTask extends AsyncTask&lt;String, Void, Boolean&gt; { ProgressDialog...
I wanna put timeout on connection attempt, for instance 10 seconds. But I'm not really good with threading or anything with the web technologies. And I don't know what should I do next. This is my class: [CODE]
android|multithreading|asynchronous
0
2016-04-30T19:39:33.593Z
2,016
4
19
5
829
1
210
28
3
1
true
false
false
false
false
false
zero
36,959,409
Duplicate class MultiDex$V14.class
<p>My Android gradle build is failing during the ProGuard phase with a duplicate class error for MultiDex$V14.class (see below). I understand what a duplicate class is and I know what MultiDex is but I still don't understand how it's a duplicate.</p> <p>Questions:</p> <ol> <li>I see one definition is in multidex.jar,...
My Android gradle build is failing during the ProGuard phase with a duplicate class error for MultiDex$V14.class (see below). I understand what a duplicate class is and I know what MultiDex is but I still don't understand how it's a duplicate. Questions: I see one definition is in multidex.jar, of course. How can I tel...
android|proguard|android-proguard|android-multidex
2
2016-04-30T19:41:42.417Z
2,016
4
19
5
720
1
540
34
4
1
true
false
false
false
false
false
low
36,959,430
Can't install cordova plugin
<p>I am trying to use AdMob in my app. </p> <p>I am using this : <a href="https://github.com/appfeel/admob-google-cordova" rel="nofollow noreferrer">https://github.com/appfeel/admob-google-cordova</a></p> <p>Following this tutorial : <a href="https://github.com/appfeel/admob-google-demo" rel="nofollow noreferrer">htt...
I am trying to use AdMob in my app. I am using this : https://github.com/appfeel/admob-google-cordova Following this tutorial : https://github.com/appfeel/admob-google-demo I have downloaded the zip. Run it on device and got the following error message : cordova-admob plugin not ready. Are you in desktop browser ? It w...
android|cordova|admob|phonegap-plugins|phonegap-cli
2
2016-04-30T19:44:45.040Z
2,016
4
19
5
1,121
1
1,683
28
5
1
true
false
false
false
false
false
low
36,959,549
error on kernel compilation for Sony Z3 tablet compact - board-8974-gpiomux.c - 'gpio_spi_config'
<p>I' trying to build a kernel for a Sony Xperia Z3 Tablet compact following this guide:</p> <p><a href="http://developer.sonymobile.com/knowledge-base/open-source/open-devices/how-to-build-and-flash-a-linux-kernel/how-to-build-and-flash-a-linux-kernel-for-aosp-supported-devices/" rel="nofollow">http://developer.sonym...
I' trying to build a kernel for a Sony Xperia Z3 Tablet compact following this guide: http://developer.sonymobile.com/knowledge-base/open-source/open-devices/how-to-build-and-flash-a-linux-kernel/how-to-build-and-flash-a-linux-kernel-for-aosp-supported-devices/ The error I receive is the following upon make ARCH=arm CR...
android|c|makefile|linux-kernel|sony
0
2016-04-30T19:55:38.983Z
2,016
4
19
5
192
1
1,025
97
5
1
true
false
false
false
false
false
zero
36,959,594
No resource identifier found for attribute '' in package Android Layout
<p>I have the following layout in Android Studio 2.1</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:mapbox="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_heig...
I have the following layout in Android Studio 2.1 [CODE] It displays the following error: No resource identifier found for attribute 'accessToken' in package 'com.example.myapp' In this case, the error is generated building a simple Mapbox application. I'm developing mapbox from source (yes, I need the source build, no...
android|android-library|android-studio-2.0|mapbox-gl
0
2016-04-30T20:00:05.823Z
2,016
4
20
5
644
1
983
71
4
1
true
false
false
false
false
false
zero
36,959,622
How to align center item in an Action bar on Android
<p>i got an action bar with 3 menu items, sadly those are aligned on the left and i would have aligned in center. I've been looking around and tried some stuff but nothing is working.</p> <p>Here's my code so far :</p> <pre><code>public class Layout extends AppCompatActivity { @Override protected void onCreate(Bundl...
i got an action bar with 3 menu items, sadly those are aligned on the left and i would have aligned in center. I've been looking around and tried some stuff but nothing is working. Here's my code so far : [CODE] and here's my R.layout.action : [CODE]
java|android
0
2016-04-30T20:01:59.190Z
2,016
4
20
5
756
2
250
52
2
2
true
false
false
false
false
false
zero
36,959,628
Android App transfer to other developer
<p>There's a developer interested in purchasing one of my apps (the only one that actually have users), meaning I would need to send him the original source code, the keystore and request Google for a transfer following this link: <a href="https://support.google.com/googleplay/android-developer/answer/6230247?hl=en">ht...
There's a developer interested in purchasing one of my apps (the only one that actually have users), meaning I would need to send him the original source code, the keystore and request Google for a transfer following this link: https://support.google.com/googleplay/android-developer/answer/6230247?hl=en The issue is : ...
android|google-play|keytool
13
2016-04-30T20:02:44.470Z
2,016
4
20
5
1,806
3
1,048
39
3
0
false
false
false
false
true
false
medium
36,959,636
android php org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject
<p>I'm very new to php, i'm trying to insert data into a mysql database using php but i'm getting the following error:</p> <pre><code> org.json.JSONException: Value &lt;br of type java.lang.String cannot be converted to JSONObject </code></pre> <p>Here is my php code:</p> <pre><code>&lt;?php $con = mysqli_conne...
I'm very new to php, i'm trying to insert data into a mysql database using php but i'm getting the following error: [CODE] Here is my php code: [CODE] and here is my logcat: [CODE] The error i think is happening in this part of my code where the jsonobject is being pulled from the response : [CODE]
php|android|mysql|json
0
2016-04-30T20:03:34.580Z
2,016
4
20
5
342
0
299
104
4
4
true
true
false
false
false
false
zero
36,959,639
avoid fullscreen alert dialog
<p>I have made an <code>AlertDialog</code> with a custom view which is defined in xml. the problem is that the <code>AlertDialog</code> is shown in fullscreen however I do not want such behavior and I have set the dimensions of my view in xml. how to avoid fullscreen <code>AlertDialog</code>?</p> <pre><code> ...
I have made an AlertDialog with a custom view which is defined in xml. the problem is that the AlertDialog is shown in fullscreen however I do not want such behavior and I have set the dimensions of my view in xml. how to avoid fullscreen AlertDialog ? [CODE] and the layout: [CODE]
android|android-alertdialog
0
2016-04-30T20:03:50.210Z
2,016
4
20
5
149
0
282
29
2
2
true
true
false
false
false
false
zero
36,959,721
Android Testing Frameworks clarification
<p>Trying to learn instrumentation testing scenarios. While going over the relevant documentation for the <code>ActivityInstrumentationTestCase2</code>, i learned that we can use the <code>ActivityInstrumentationTestCase2</code> in conjunction with <code>Espresso</code> to write so called &quot;functional&quot; tests. ...
Trying to learn instrumentation testing scenarios. While going over the relevant documentation for the ActivityInstrumentationTestCase2 , i learned that we can use the ActivityInstrumentationTestCase2 in conjunction with Espresso to write so called &quot;functional&quot; tests. Or at least that is what i understood fro...
java|android|unit-testing|junit
0
2016-04-30T20:11:19.310Z
2,016
4
20
5
78
1
1,789
40
4
0
false
false
false
false
false
false
zero
36,959,767
Unity3D - Audio playing getting muted after getting any call/notification on Android
<p>I have audio playing issue on Android build. I'm using Unity 5.4.0b15, but I had same issue on 5.3.4p3.</p> <p>I have simple component for playing background music added to "AudioPlayer" GameObject in my scene.</p> <pre><code>public AudioClip clip; private AudioSource _musicAudioSource; private void Awake() { ...
I have audio playing issue on Android build. I'm using Unity 5.4.0b15, but I had same issue on 5.3.4p3. I have simple component for playing background music added to "AudioPlayer" GameObject in my scene. [CODE] After running game on Android devices the music starts playing perfectly. But while it running I'm getting an...
android|unity3d|audio|phone-call
4
2016-04-30T20:14:56.417Z
2,016
4
20
5
4,827
2
719
84
4
1
true
false
true
false
false
false
low
36,959,955
how to disable already selected item in bottombar
<h2>menu_bottom.xml</h2> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"&gt; &lt;item android:id="@+id/checkin_item" android:icon="@drawable/ic_nearby" android:title="Chec...
menu_bottom.xml [CODE] Activiy [CODE] Problem Bottombar is coming already selected first item. I want to disable this. So when application runs nothing is selected. https://github.com/roughike/BottomBar/blob/master/README.md#common-problems-and-solutions This bottombar is used.
android|menu|android-actionbar
1
2016-04-30T20:34:11.433Z
2,016
4
20
5
3,040
2
278
49
3
2
true
false
true
false
false
false
low
36,959,956
"unfortuntely myapp has stopped"
<p>this is what the logcat says</p> <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NullPointerException at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116) at org.json.JSONTokener.nextValue(JSONTokener.java:94) ...
this is what the logcat says [CODE] and this is the area of the code that the navigation goes to when pressing the underlined part [CODE]
java|android|android-studio
0
2016-04-30T20:34:12.653Z
2,016
4
20
5
32
0
137
32
3
2
true
true
false
false
false
false
zero
36,960,058
Cling Upnp scan causes ClassDefNotFoundError Jetty
<p>I am working on an Android app, which is using Cling to perform an UPNP scan. Its logging that it receives packets but then it crashes with a NoClassDefFound exception for Jetty. </p> <p>Below is the code I am using to perform the scan</p> <pre><code>ServiceConnection serviceConnection = new ServiceConnection() ...
I am working on an Android app, which is using Cling to perform an UPNP scan. Its logging that it receives packets but then it crashes with a NoClassDefFound exception for Jetty. Below is the code I am using to perform the scan [CODE] Below is my gradle build file dependencies [CODE] It compiles fine but then I get the...
java|android|jetty|android-cling
2
2016-04-30T20:44:36.727Z
2,016
4
20
5
297
1
358
50
4
3
true
false
false
false
false
false
low
36,960,060
Android get data from Listview and show in a new activity
<p>I am new to Android. I called <code>lv.setOnItemClickListener</code> to pick a selected item from ListView and show the data in a new activity through a new intent. But I don't know the could to do this works. I need some help.</p> <p>MainActivity</p> <pre><code>public class MainActivity extends Activity implement...
I am new to Android. I called lv.setOnItemClickListener to pick a selected item from ListView and show the data in a new activity through a new intent. But I don't know the could to do this works. I need some help. MainActivity [CODE] Country public class Country { [CODE] Custom Adapter [CODE]
android|listview
0
2016-04-30T20:45:10.747Z
2,016
4
20
5
176
3
294
57
2
3
true
false
false
false
false
false
zero
36,960,079
AHBottomNavigation Not Changing Color Android
<p>I am trying to implement the bottom navigation bar, using the AHBottomNavigation library at: <a href="https://github.com/aurelhubert/ahbottomnavigation" rel="nofollow">https://github.com/aurelhubert/ahbottomnavigation</a> </p> <p>The color of my navigation bar doesn't change - the ripple effect happens, and the tex...
I am trying to implement the bottom navigation bar, using the AHBottomNavigation library at: https://github.com/aurelhubert/ahbottomnavigation The color of my navigation bar doesn't change - the ripple effect happens, and the text is perfect. My app bar stays one color. Here is the code: [CODE] I am not sure what I am ...
android|android-layout
2
2016-04-30T20:47:35.357Z
2,016
4
20
5
1,727
4
433
45
2
1
true
false
false
false
false
false
low
36,960,120
All threads get suspended
<p>I am building an app which will continuously get screenshots of my laptop screen and transfer it to my android app but there is some problem within the while loop, when I put a for loop to a limit then my program runs but as it goes till infinity or I replace it with infinite while loop my code suspends all the thre...
I am building an app which will continuously get screenshots of my laptop screen and transfer it to my android app but there is some problem within the while loop, when I put a for loop to a limit then my program runs but as it goes till infinity or I replace it with infinite while loop my code suspends all the threads...
android|sockets
0
2016-04-30T20:51:40.737Z
2,016
4
20
5
190
1
505
25
2
1
true
false
false
false
false
false
zero
36,960,154
socket-io on Android httpConnection memory leak
<p>I'm using socket-io on android . ('com.github.nkzawa:socket.io-client:0.3.0')</p> <p>While testing my app on Nexus 10 device (Android 4.2.1) i discovered that after calling mSocket.connect() a libcore.net.http.HttpConnection Object is created every 12.7 seconds or so by libcore.net.http.HttpConnectionPool. that ...
I'm using socket-io on android . ('com.github.nkzawa:socket.io-client:0.3.0') While testing my app on Nexus 10 device (Android 4.2.1) i discovered that after calling mSocket.connect() a libcore.net.http.HttpConnection Object is created every 12.7 seconds or so by libcore.net.http.HttpConnectionPool. that causes "Too ma...
android|ssl|memory-leaks|socket.io
3
2016-04-30T20:54:49.490Z
2,016
4
20
5
638
1
1,448
47
4
3
true
false
false
false
false
false
low
36,960,160
How to List Drawable Images in Array XML in Android
<p>hello guy i am new with Android and java and i am trying to list drawable images in arry but i can't i am using this code for xml </p> <p>res/vslues/db.xml.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;string-array name="foodname"&gt; &lt;item&gt;2&lt;/it...
hello guy i am new with Android and java and i am trying to list drawable images in arry but i can't i am using this code for xml res/vslues/db.xml. [CODE] [CODE] [CODE] im using this java code to show textview in my layout.xml how i can fix it to show pictures insted of text ? [CODE] 321321321321321321 space [CODE]
java|android|arrays|xml
1
2016-04-30T20:55:09.577Z
2,016
4
20
5
495
0
317
51
4
5
true
true
false
false
false
false
low
36,960,210
How to update the UI in OnDateSet method when implement a DatePicker class?
<p>I have <code>DatePicker</code> class like as:</p> <pre><code>package datepicker; import android.app.DatePickerDialog; import android.content.Context; import android.text.InputType; import android.text.format.DateFormat; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.EditTe...
I have DatePicker class like as: [CODE] In the MainActivity extend DatePicker class. And I have to override the OnDateSet() method, so how to update the UI such as TextView in the onDateSet() method of MainActivity ? After debugged it always run cursor to onDateSet() of DatePicker class? Please help me clear the reason...
android|datepicker
3
2016-04-30T21:01:15.717Z
2,016
4
21
5
168
0
325
75
2
1
true
true
false
false
false
false
low
36,960,298
Wrong Mime-Type when downloading binary file on mobile data (Android)
<p>I'm trying to download a binary file using:</p> <pre><code>URL url = new URL(urlStr); HttpURLConnection ucon = (HttpURLConnection) url.openConnection(); ucon.connect(); InputStream is = new BufferedInputStream(ucon.getInputStream()); </code></pre> <p>When run via mobile data (on Samsung Galaxy 4, Android 5.0.1) I ...
I'm trying to download a binary file using: [CODE] When run via mobile data (on Samsung Galaxy 4, Android 5.0.1) I receive the following response [CODE] Which means "The content requested cannot be loaded" in Bulgarian (the server I download from is Bulgaria). But more informative seems " Wrong MIME-Type " at the end o...
java|android
0
2016-04-30T21:12:10.503Z
2,016
4
21
5
641
1
811
69
2
2
true
false
false
false
false
false
zero
36,960,313
Android: checking a view's background
<p>I have 3 buttons, all of them have the same background drawable by default (<code>subject_button</code>)</p> <p><strong>What I want to do:</strong> </p> <p>When I click one button his background changes ( to <code>clicked_subject</code>), all the others remain with the default background, if I click one button aft...
I have 3 buttons, all of them have the same background drawable by default ( subject_button ) What I want to do: When I click one button his background changes ( to clicked_subject ), all the others remain with the default background, if I click one button after clicking another, the button I just clicked changes his b...
java|android|logic
0
2016-04-30T21:14:25.500Z
2,016
4
21
5
142
4
755
37
3
1
true
false
false
false
false
false
zero
36,960,417
Continuous network call from intent service in background
<p>I have created an Intent Service and I am calling it from NotificationChecker.java which extends Broadcast receiver.What I want to do is in background at a fixed interval of time I want to download text from a URL and toast that string.In intent service I am reading data from the URL but It is not receiving any data...
I have created an Intent Service and I am calling it from NotificationChecker.java which extends Broadcast receiver.What I want to do is in background at a fixed interval of time I want to download text from a URL and toast that string.In intent service I am reading data from the URL but It is not receiving any data.He...
java|android|android-intent
0
2016-04-30T21:25:04.543Z
2,016
4
21
5
797
0
384
57
3
2
true
true
false
false
false
false
zero
36,960,510
Android : Set multiple repeating alarms
<p>I am new to android programming. I want to set different repeating alarms. I wrote a code, but it is not working. It is not generating any alarms. Please help me. Here is my code</p> <pre><code>public void setAlarm(int hour, int min,String am_pm){ if(hour == 12 &amp;&amp; am_pm.equals("am")){ hour=00; ...
I am new to android programming. I want to set different repeating alarms. I wrote a code, but it is not working. It is not generating any alarms. Please help me. Here is my code [CODE] } For above I am passing setAlarm(8,30,"am")
java|android
0
2016-04-30T21:33:47.543Z
2,016
4
21
5
278
0
230
39
2
1
true
true
false
false
false
false
zero
36,960,590
Android Studio Error: "Caused by: java.lang.NullPointerException: Attempt to invoke virtual method"
<p>I have been using Android Studio for a while now and it has never given me problems before this. I have tried everything from re-writing code to re-installing the software. I would greatly appreciate any help... Even this simple code does not work.</p> <p>MainActivity.java</p> <pre><code>package com.example.ravinm...
I have been using Android Studio for a while now and it has never given me problems before this. I have tried everything from re-writing code to re-installing the software. I would greatly appreciate any help... Even this simple code does not work. MainActivity.java [CODE] content_main.xml [CODE] AndroidManifest.xml [C...
android|android-studio
0
2016-04-30T21:44:56.097Z
2,016
4
21
5
3,502
2
338
99
2
4
true
false
true
false
false
false
zero
36,960,627
Android Retrofit Design Patterns
<p>I am using Retrofit to interact with my REST API, and was wondering whether anybody has any design suggestions.</p> <p>My app has the following packages:</p> <ol> <li>models</li> <li>services</li> <li>activities</li> <li>fragments</li> </ol> <p>The <strong>services</strong> package contains the interfaces for Ret...
I am using Retrofit to interact with my REST API, and was wondering whether anybody has any design suggestions. My app has the following packages: models services activities fragments The services package contains the interfaces for Retrofit. For example: [CODE] Models contains...well, the different models. For example...
java|android|retrofit2
5
2016-04-30T21:48:39.030Z
2,016
4
21
5
7,991
2
811
32
3
3
true
false
true
false
false
false
low
36,960,652
Android - How to add to ViewFlipper 2 different layouts s.t each has one YouTubePlayerView?
<p>Is it possible to add to ViewFlipper 2 different layouts one YouTubePlayerView ? I tried to do something like the code I added, but the player collapses.Is there any way to initialize the player again after the ViewFlipper shows the next view? </p> <pre><code> &lt;ViewFlipper android:id="@+id/view_flippe...
Is it possible to add to ViewFlipper 2 different layouts one YouTubePlayerView ? I tried to do something like the code I added, but the player collapses.Is there any way to initialize the player again after the ViewFlipper shows the next view? [CODE]
android|youtube-api|embedded|viewflipper
0
2016-04-30T21:50:33.790Z
2,016
4
21
5
95
0
250
91
4
1
true
true
false
false
false
false
zero
36,960,684
Android how to open fragment from listview element
<p>In <code>MainActivity</code> is FrameLayout <code>MainContainer</code>. I load there a fragment <code>TrainerMyGroups</code>, there is a Listview where I add a few elements (each element has some strings) by use <code>TrainerGroupsAdapter</code>. Actually I want to replace fragment <code>TrainerMyGroups</code> by an...
In MainActivity is FrameLayout MainContainer . I load there a fragment TrainerMyGroups , there is a Listview where I add a few elements (each element has some strings) by use TrainerGroupsAdapter . Actually I want to replace fragment TrainerMyGroups by another (for example TrainersInfo ) by click on list's element. My ...
android|android-fragments
6
2016-04-30T21:54:07.173Z
2,016
4
21
5
5,086
2
1,054
50
2
2
true
false
true
false
false
false
medium
36,960,686
How can I post a parameter through JsonObjectRequest
<p>I asked this before but I did not get a solution, </p> <p>I am trying to post a parameter to the php script and get its results as json array however every time I try I get all of the columns in my table. At first I though there is something wrong with my php, however I tried from postman and see that my php works....
I asked this before but I did not get a solution, I am trying to post a parameter to the php script and get its results as json array however every time I try I get all of the columns in my table. At first I though there is something wrong with my php, however I tried from postman and see that my php works. So there is...
android
0
2016-04-30T21:54:22.003Z
2,016
4
21
5
33
2
653
52
1
2
true
false
false
false
false
false
zero
36,960,727
Schedule a function to run at a future time with Cordova on Android
<p>I have an ionic app and I'd like to schedule a notification at a later time, and also calling some other function at a later time as well.</p> <p>What I have now:</p> <pre><code> var now = new Date(); var _10SecondsFromNow = new Date(now.getTime() + (10 * 1000)); $cordovaLocalNotification.schedule({ ...
I have an ionic app and I'd like to schedule a notification at a later time, and also calling some other function at a later time as well. What I have now: [CODE] The .then promise runs right away instead of when the notification occurs 10 seconds later. I also noticed in the docs that there is a callback you can pass ...
android|cordova|ionic-framework|localnotification
2
2016-04-30T22:01:19.240Z
2,016
4
22
5
1,466
1
471
67
4
1
true
false
false
false
false
false
low
36,960,825
Not able to show individual Marker Information from HashMap
<p>I have saved am Object to the HashMap called Memories which I want to pull a BitMap and a Title etc and set it to the Markers InfoWindow when I click on it. I have the InfoWindow showing the Image and Titles etc, but when I add another Marker and create another Memories object. Both Markers show the newest data.</p>...
I have saved am Object to the HashMap called Memories which I want to pull a BitMap and a Title etc and set it to the Markers InfoWindow when I click on it. I have the InfoWindow showing the Image and Titles etc, but when I add another Marker and create another Memories object. Both Markers show the newest data. [CODE]...
java|android|google-maps|google-maps-markers
1
2016-04-30T22:13:05.963Z
2,016
4
22
5
58
1
459
59
4
1
true
false
false
false
false
false
low
36,960,910
PHP Code with POST to get data from MYSQL returns undefined Variable
<p>I am using PHP file to send variable of android application to MYSQLi request and return the output in shape of string.</p> <p>I tried many php codes especially the below one (as I read MSQLI doesn't permit using variable directly in quires for security). but the app reads the output as MYSQL error"undifined Variab...
I am using PHP file to send variable of android application to MYSQLi request and return the output in shape of string. I tried many php codes especially the below one (as I read MSQLI doesn't permit using variable directly in quires for security). but the app reads the output as MYSQL error"undifined Variable in Line ...
php|android|post|mysqli|httpurlconnection
0
2016-04-30T22:22:42.687Z
2,016
4
22
5
102
0
619
68
5
2
true
true
false
false
false
false
zero
36,960,978
Getting Location With getLastKnownLocation() does not get the right location
<p>i'm developing Android application that's deal with Google Maps Api , i tried to get my current location with using <code>mMap.getLastKnownLocation();</code> then get <code>latitude</code> and <code>longitude</code> after that' a pass to a method that's move the camera to my location</p> <p><strong>This is the par...
i'm developing Android application that's deal with Google Maps Api , i tried to get my current location with using mMap.getLastKnownLocation(); then get latitude and longitude after that' a pass to a method that's move the camera to my location This is the part of getting my location [CODE] this is the part of moving ...
android|google-maps|android-maps-v2
3
2016-04-30T22:33:34.163Z
2,016
4
22
5
1,891
1
486
76
3
2
true
false
false
false
false
false
low
36,960,985
java.lang.IllegalStateException: The ad size and ad unit ID must be set before loadAd is called
<p>I am not sure why, but for some reason in my app when I call AdView.loadAd(AdRequest), my app outputs <code>W/Ads: Required XML attribute "adSize" was missing.</code> and then crashes with the <code>java.lang.IllegalStateException: The ad size and ad unit ID must be set before loadAd is called.</code> even though i...
I am not sure why, but for some reason in my app when I call AdView.loadAd(AdRequest), my app outputs W/Ads: Required XML attribute "adSize" was missing. and then crashes with the java.lang.IllegalStateException: The ad size and ad unit ID must be set before loadAd is called. even though in my xml layout file I have de...
java|android|xml|admob
2
2016-04-30T22:34:21.940Z
2,016
4
22
5
2,449
1
391
95
4
2
true
false
false
false
false
false
low
36,960,990
Can't manage to have service trigger onServiceConnected call
<p>I have this problem where the onServiceConnected method is not called, and I have tried multiple solutions but none of them worked...</p> <p>My service management code boil down to this:</p> <pre><code>public class BackgroundMediaManagerCommunicator { private Messenger service = null; private boolean isBound...
I have this problem where the onServiceConnected method is not called, and I have tried multiple solutions but none of them worked... My service management code boil down to this: [CODE] and my service: [CODE] And is called like this from the main activity: [CODE] and my manifest relating to the service: [CODE] (pkg na...
java|android|android-service|android-service-binding
2
2016-04-30T22:35:06.713Z
2,016
4
22
5
206
0
842
60
4
4
true
true
false
false
false
false
low
36,961,150
How to remove the background of Layout completely
<p>In my main Activity i have created a<code>FrameLayout</code>. I have added a <code>Button</code> and a <code>Background Image</code> it it. </p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="56dp" androi...
In my main Activity i have created a FrameLayout . I have added a Button and a Background Image it it. [CODE] In multiple fragments i am using this header. But in one of the Fragment, I only need button without background image. I have tried almost everything from opacity to alpha(0) but in every case it does not take ...
android|android-layout|android-fragments
1
2016-04-30T22:57:50.523Z
2,016
4
22
5
1,274
2
919
49
3
3
true
false
false
false
false
false
low
36,961,376
How to set onClickListener for all fields through one loop using reflection?
<p>I would like to set the same onClickListener for all items in my activity. Is it possible to do it with loop? I was trying with reflection, unfortunately without success. My code:</p> <pre><code>private void setUpOnClickListeners() { Field[] fields = viewHolder.getClass().getDeclaredFields(); for (Field field...
I would like to set the same onClickListener for all items in my activity. Is it possible to do it with loop? I was trying with reflection, unfortunately without success. My code: [CODE] It would be facilitation due to many fields in layout...
android|loops|reflection|onclicklistener|butterknife
0
2016-04-30T23:33:51.830Z
2,016
4
23
5
116
0
243
76
5
1
true
true
false
false
false
false
zero
36,961,596
"File upload onError,Incorrect content type" in quickblox
<p>I am trying to upload images in quickblox, i already did it once, but I receiving now this message of error.</p> <p>My file for example is this one: "/data/user/0/dinidiniz.tradersmtg/app_Traders MTG Images/Sat Apr 30 20:58:36 GMT-03:00 2016.png". I tested, it exists and works just fine to get the bitmap.</p> <p>W...
I am trying to upload images in quickblox, i already did it once, but I receiving now this message of error. My file for example is this one: "/data/user/0/dinidiniz.tradersmtg/app_Traders MTG Images/Sat Apr 30 20:58:36 GMT-03:00 2016.png". I tested, it exists and works just fine to get the bitmap. When i upload using:...
java|android|quickblox|quickblox-android
1
2016-05-01T00:07:43.253Z
2,016
5
0
6
317
1
356
57
4
2
true
false
false
false
false
false
low
36,961,655
Coordinator layout and transparent status bar
<p>I'm currently trying to use coordinator layout in order to collapse an image - in a theme with transparent status bar -, however three issues are bothering me:</p> <ol> <li>When Activity is started, image is not being displayed behind the status bar (if I remove the coordinatorlayout, it works);</li> <li>When I scr...
I'm currently trying to use coordinator layout in order to collapse an image - in a theme with transparent status bar -, however three issues are bothering me: When Activity is started, image is not being displayed behind the status bar (if I remove the coordinatorlayout, it works); When I scroll up, I would like to ch...
android|android-layout|android-design-library
1
2016-05-01T00:19:13.193Z
2,016
5
0
6
3,166
1
803
45
3
2
true
false
true
false
false
false
low
36,961,733
Android App crashed in onCreate(); Main Activity
<p>I'm trying to start another activity, but when i change between main's activity and velocidad's activity a few times, the main's activity crash in onCreate.</p> <p>The only solution i was found is putting "finish();" when i go from main to velocidad, but i need to keep main online.</p> <p><strong>Error:</strong></...
I'm trying to start another activity, but when i change between main's activity and velocidad's activity a few times, the main's activity crash in onCreate. The only solution i was found is putting "finish();" when i go from main to velocidad, but i need to keep main online. Error: [CODE] Error Line: [CODE] Main.java: ...
java|android|xml
0
2016-05-01T00:32:13.810Z
2,016
5
0
6
525
0
489
48
3
9
true
true
false
false
false
false
zero
36,961,848
Streaming live camera feed in app using android studio
<p>I'm creating an app that I want to stream my <code>foscam</code> live feed in. I'm pretty new to coding and some of this code is over my head. I found some help getting this far but now am hitting a snag. The app runs but only displays a black screen. I believe i have the manifest and XML code all correct. The probl...
I'm creating an app that I want to stream my foscam live feed in. I'm pretty new to coding and some of this code is over my head. I found some help getting this far but now am hitting a snag. The app runs but only displays a black screen. I believe i have the manifest and XML code all correct. The problem lies in my co...
java|android|surfaceview
2
2016-05-01T00:50:24.550Z
2,016
5
0
6
4,491
2
361
54
3
1
true
false
true
false
false
false
low
36,961,919
cross compile gdisk for arm
<p>My build machine is <code>android@builduntu-VM:~/gdisk-0.8.10$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.04 Release: 15.04 Codename: vivid </code> </p> <p>I am trying to compile for armeabi-v7a (Android) and so i have downloaded the arm-linux-android...
My build machine is android@builduntu-VM:~/gdisk-0.8.10$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.04 Release: 15.04 Codename: vivid I am trying to compile for armeabi-v7a (Android) and so i have downloaded the arm-linux-androideabi tool chain located at /usr/arm... andr...
android|arm|cross-compiling
1
2016-05-01T01:02:28.763Z
2,016
5
1
6
442
0
1,410
27
3
2
true
true
false
false
false
false
low
36,962,015
Making CardView width match parent even when elevation > 0
<p>I wanted a cardview similar to this:</p> <p><a href="https://i.stack.imgur.com/zJVAh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zJVAh.png" alt="enter image description here"></a></p> <p>I wanted my CardView separated like that. The problem is, I don't know how to make CardView go edge to ed...
I wanted a cardview similar to this: I wanted my CardView separated like that. The problem is, I don't know how to make CardView go edge to edge or match the width of the CardView to its parent. If I put shadows or setting the elevation at 4dp/8dp, the entire CardView adjusts to show the shadows on both end. Which is n...
android|android-layout
1
2016-05-01T01:18:19.560Z
2,016
5
1
6
670
0
801
58
2
2
true
true
false
false
false
false
low
36,962,136
android - textView textColor not taking effect on device
<p>I have a layout like this. Here I set the textColor to red.</p> <p>When I run this on emulator, everything works as expected. However, when I run on device, textColor is white. It used to work on device.</p> <p>I did lot of code refactoring with emulator. I might have changed something that could lead to this issu...
I have a layout like this. Here I set the textColor to red. When I run this on emulator, everything works as expected. However, when I run on device, textColor is white. It used to work on device. I did lot of code refactoring with emulator. I might have changed something that could lead to this issue. I was hoping if ...
android
1
2016-05-01T01:42:24.863Z
2,016
5
1
6
100
1
404
56
1
2
true
false
false
false
false
false
low
36,962,298
Android/Chrome jQuery AJAX Request fails with parsererror before getting to server
<p>I have a web app with lots of jQuery AJAX requests that work on all platforms except Android (Chrome v 50). I'm using jQuery 2.1.4</p> <p>Here's the code:</p> <pre><code>var createRequest = $.ajax({ type: 'POST', url: '/api/item/?', data: { u_id: uid, title: title, text: text,...
I have a web app with lots of jQuery AJAX requests that work on all platforms except Android (Chrome v 50). I'm using jQuery 2.1.4 Here's the code: [CODE] When I trigger the createRequest, I get a 200 response in the network console, but the request fails, and in fact never gets to the server at all. The response sent ...
javascript|android|jquery|ajax
0
2016-05-01T02:06:46.257Z
2,016
5
2
6
1,147
2
740
82
4
2
true
false
false
false
false
false
zero
36,962,393
MPAndroid does not show the pie chart
<p>I want to display a pie chart using the data from the sqlite. I out the data into the list to have the entries for the pie chart. But it seems something is wrong with the code and I don;t know what is wrong with it.Below is the code.</p> <pre><code>public class chart extends Activity { SQLiteDatabase SQ; @Overrid...
I want to display a pie chart using the data from the sqlite. I out the data into the list to have the entries for the pie chart. But it seems something is wrong with the code and I don;t know what is wrong with it.Below is the code. [CODE] Aboce is the code I tried , but there are errors, mainly chart.queryYData(chart...
android|sqlite|pie-chart|mpandroidchart
0
2016-05-01T02:23:26.043Z
2,016
5
2
6
911
1
587
37
4
1
true
false
false
false
false
false
zero
36,962,470
How can ProGuard keep class implements clause(class signature)
<p>I have a class implementing Android <code>Parcelable</code>, and it has a field named <code>CREATOR</code> which implementing <code>Parcelable.Creator</code>. I could let ProGuard keep the <code>CREATOR</code> field by following config:</p> <pre><code>-keepclassmembers class * implements android.os.Parcelable { ...
I have a class implementing Android Parcelable , and it has a field named CREATOR which implementing Parcelable.Creator . I could let ProGuard keep the CREATOR field by following config: [CODE] But I don't know how to let ProGuard keep the CREATOR anonymous class signature, because of that, the obfuscated class of the ...
android|proguard|parcelable
1
2016-05-01T02:39:25.610Z
2,016
5
2
6
1,720
1
799
62
3
3
true
false
false
false
false
false
low
36,962,696
How to get XML data from https url in Android
<p>I want to get XML data from the web server <a href="https://ruralfire.qld.gov.au/bushfirealert/bushfireAlert.xml" rel="nofollow">https://ruralfire.qld.gov.au/bushfirealert/bushfireAlert.xml</a></p> <p>However, I can't do it because my codes always have an error "javax.net.ssl.SSLHandshakeException: Connection close...
I want to get XML data from the web server https://ruralfire.qld.gov.au/bushfirealert/bushfireAlert.xml However, I can't do it because my codes always have an error "javax.net.ssl.SSLHandshakeException: Connection closed by peer". And my InputStream is always null, so I can't do anything with it (such as parsing). I en...
android|xml-parsing|httpsurlconnection|sslhandshakeexception
0
2016-05-01T03:20:38.430Z
2,016
5
3
6
143
0
510
45
4
1
true
true
false
false
false
false
zero
36,962,808
Android: how do I increment SQLite INTEGER PRIMARY KEY AUTOINCREMENT Column?
<p>In my activity I have a Save button that upon clicking will save a bunch of user input data to a SQLite table. On the same click, I want to also increment an integer counter in another table. The counter is set up as "cardnum".</p> <p>What am I missing here?</p> <p><strong>Activity file:</strong></p> <pre><code...
In my activity I have a Save button that upon clicking will save a bunch of user input data to a SQLite table. On the same click, I want to also increment an integer counter in another table. The counter is set up as "cardnum". What am I missing here? Activity file: [CODE] DBContract.java [CODE] DBHelper file: [CODE]
android|sqlite|android-edittext
2
2016-05-01T03:42:26.343Z
2,016
5
3
6
539
2
318
76
3
3
true
false
false
false
false
false
low
36,962,881
Facebook login crashes for app-release.apk
<p>I integrated Google signin and Facebook login to my app. Everything works fine in debug mode, but in release mode it crashes.</p> <pre><code> 04-30 11:15:12.113 28773-28788/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2 Process: com.cs442.Team14, PID: 28773 ...
I integrated Google signin and Facebook login to my app. Everything works fine in debug mode, but in release mode it crashes. [CODE] I have already added the Application ID in my Manifest file. [CODE] (Since I support multiple languages, I was getting an error if I used @string/facebook_app_id. So instead I directly pa...
android|facebook|android-studio|google-signin
3
2016-05-01T03:55:12.973Z
2,016
5
3
6
676
2
841
42
4
2
true
false
false
false
false
false
low
36,962,884
Cordova CLI command returns nothing even "cordova --version", installation issue?
<p>Recently, I needed to try developing a cordova application. I installed android studio with no problem. Then I went on for Nodejs. I got <strong>Nodejs 6.0</strong> installed on my <strong>Windows 7</strong> system. </p> <p>It worked fine. Then I tried to install cordova with npm command : </p> <pre><code>npm ins...
Recently, I needed to try developing a cordova application. I installed android studio with no problem. Then I went on for Nodejs. I got Nodejs 6.0 installed on my Windows 7 system. It worked fine. Then I tried to install cordova with npm command : [CODE] It seemed finally ok. The verbose message appeared and the graph...
android|node.js|cordova|npm
1
2016-05-01T03:55:36.253Z
2,016
5
3
6
130
1
1,180
81
4
1
true
false
false
false
false
false
low
36,963,036
Is there a viewDidAppear for Tabhost with fragments? Want to run code when user comes back to the tab
<p>Is there a way to run code when you go to a tab? For example you go to the second tab (runs code) and then leave it. You go back to the second tab (runs code). I'm porting my iOS app to android and in Xcode you'd just put the code in viewdidappear, is there something similar in Android?</p> <p>How my fragment looks...
Is there a way to run code when you go to a tab? For example you go to the second tab (runs code) and then leave it. You go back to the second tab (runs code). I'm porting my iOS app to android and in Xcode you'd just put the code in viewdidappear, is there something similar in Android? How my fragment looks like: [COD...
android|listview|android-fragments|android-studio
0
2016-05-01T04:24:58.383Z
2,016
5
4
6
149
1
322
101
4
1
true
false
false
false
false
false
zero