id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
28,786,508
How do you determine the Android wifi startScan method is complete in order to calculate the time taken for the wifi scan?
<p>code for calculating start and end time of scan. Calling scanTime as soon as the scan starts and retTime as soon as the results are received, however, getting two retTimes and the difference between scanTime and retTime is not consistent</p> <pre><code>public void startService() { br = new BroadcastReceiver() ...
code for calculating start and end time of scan. Calling scanTime as soon as the scan starts and retTime as soon as the results are received, however, getting two retTimes and the difference between scanTime and retTime is not consistent [CODE]
android|wifimanager
2
2015-02-28T20:29:08.390Z
2,015
2
20
5
683
1
244
122
2
1
true
false
false
false
false
false
low
28,786,529
ScrollView doesn't work
<p>My Layout has a few complex layouts and they are pretty big. That's why I need a <code>ScrollView</code>. But whatever I try it doesn't work.</p> <p>Here is my layout file:</p> <pre><code> &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" ...
My Layout has a few complex layouts and they are pretty big. That's why I need a ScrollView . But whatever I try it doesn't work. Here is my layout file: [CODE] I have only posted a part of it but all the closing tags are ok and inside my RelativeLayout there are 2 textViews and an image. There are 9 more RelativeLayou...
android|android-scrollview
0
2015-02-28T20:30:58.913Z
2,015
2
20
5
1,873
3
1,010
23
2
1
true
false
false
false
false
false
zero
28,786,558
add shadow to layout programmatically in Android?
<p>So I have many <code>LinearLayouts</code> and <code>RelativeLayouts</code> that I need to apply shadows to. But all these layouts will have different background color. </p> <p>For example, I have 3 LinearLayouts. I need one Blue, One Green and One Red but all will have the same shadows and style (except for the c...
So I have many LinearLayouts and RelativeLayouts that I need to apply shadows to. But all these layouts will have different background color. For example, I have 3 LinearLayouts. I need one Blue, One Green and One Red but all will have the same shadows and style (except for the color). I already have these layouts crea...
android|xml|android-layout|xamarin
0
2015-02-28T20:32:59.897Z
2,015
2
20
5
2,974
2
810
49
4
0
false
false
true
false
false
false
zero
28,786,570
Android - How can I know model of connected android wear device?
<p>Is it <code>moto 360</code>, <code>lg g watch</code> or other... How can I get this information in the code in independent android app?</p> <p>Possible it's duplicate, but I didn't find anything in stackoverflow.</p>
Is it moto 360 , lg g watch or other... How can I get this information in the code in independent android app? Possible it's duplicate, but I didn't find anything in stackoverflow.
android|wear-os
0
2015-02-28T20:34:07.930Z
2,015
2
20
5
65
2
180
64
2
0
false
false
false
false
false
false
zero
28,786,712
Why am I getting "onCreate(Bundle) already defined"?
<p>I'm trying to produce several buttons which open different links but by copying the file over I get an error saying onCreate(Bundle) is already defined? Is it because I have two <code>protected void onCreate(Bundle savedInstanceState) {</code> or something? Please add a description to what is the issue and possibly ...
I'm trying to produce several buttons which open different links but by copying the file over I get an error saying onCreate(Bundle) is already defined? Is it because I have two protected void onCreate(Bundle savedInstanceState) { or something? Please add a description to what is the issue and possibly an answer. [CODE...
java|android|signature|method-signature|method-names
0
2015-02-28T20:46:50.623Z
2,015
2
20
5
1,459
1
321
52
5
1
true
false
false
false
false
false
zero
28,786,737
In Java/Android, do I pass values through Intent or by using getters/setters?
<p>I read that getter and setters are not good for Android programming when using the method in the same class it was created.</p> <p>But would there be any negative effects if using it in another class?</p> <p>I was told not to use many static variables so I'm looking for an alternative and it seems less confusing to ...
I read that getter and setters are not good for Android programming when using the method in the same class it was created. But would there be any negative effects if using it in another class? I was told not to use many static variables so I'm looking for an alternative and it seems less confusing to use getters/sette...
java|android|android-intent|setter|getter
0
2015-02-28T20:49:41.360Z
2,015
2
20
5
1,962
2
391
77
5
0
false
false
false
false
false
false
zero
28,786,759
How to create and interact with a custom grid like sudoku of size m*n in android
<p>I started working on an android project which looks something like the image attached below.<img src="https://i.stack.imgur.com/Nooga.png" alt="enter image description here"></p> <p>I created a relative layout which should now contain two layouts. A linear which has a timer and a custom layout which should have a n...
I started working on an android project which looks something like the image attached below. I created a relative layout which should now contain two layouts. A linear which has a timer and a custom layout which should have a n*n grid layout.(say 8*10) horizontal layout. I need to interact with grids like clicking on t...
java|android|android-layout|android-activity
0
2015-02-28T20:53:03.297Z
2,015
2
20
5
452
1
436
80
4
0
false
false
false
false
false
false
zero
28,786,768
How assign data to layout from adapter in Android
<p>I have a problem when I try to show some data in a layout from an Adapter. </p> <p>I have a Class where I have some data and a listView, but when I try to change the information of the layout from the ListView adapter, the data doesn't show in the screen, I only see the default layout, but not the real data.</p> <...
I have a problem when I try to show some data in a layout from an Adapter. I have a Class where I have some data and a listView, but when I try to change the information of the layout from the ListView adapter, the data doesn't show in the screen, I only see the default layout, but not the real data. I have this in my ...
android|android-layout
0
2015-02-28T20:54:01.963Z
2,015
2
20
5
439
1
657
49
2
3
true
false
false
false
false
false
zero
28,786,775
Navigation Drawer ic_drawer and logo not together on action bar
<p>I'm trying to use NavigationDrawer with appcompat and actionbar. My NavDrawer is working, both by sliding from the left or by touching the actionbar.</p> <p>At <a href="http://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow noreferrer">the navigation drawer sample app</a> the <...
I'm trying to use NavigationDrawer with appcompat and actionbar. My NavDrawer is working, both by sliding from the left or by touching the actionbar. At the navigation drawer sample app the home icon at the Action Bar is shown within the same "container" as the 3-stripes-drawable that indicates there's a side menu. But...
android|android-actionbar|navigation-drawer|android-appcompat
0
2015-02-28T20:54:52.427Z
2,015
2
20
5
2,041
1
877
63
4
3
true
false
false
false
false
false
zero
28,786,786
how to check wether listview footer is scrolled in the screen
<p>Having a ListView, and added a footer view to it.</p> <pre><code>getListView().addFooterView(footerView); </code></pre> <p>So this footer could be scrolled in and out. I'm wondering if there is simple way to check whether the footerView is scrolled in the screen's viewport. Any idea? Thanks!</p>
Having a ListView, and added a footer view to it. [CODE] So this footer could be scrolled in and out. I'm wondering if there is simple way to check whether the footerView is scrolled in the screen's viewport. Any idea? Thanks!
android|listview|scroll|footer
0
2015-02-28T20:55:59.343Z
2,015
2
20
5
39
1
226
61
4
1
true
false
false
false
false
false
zero
28,786,825
How to wake screen from service properly?
<p>I have IntentService where am I creating an notification. I want screen to turn on after the notification is created. How could i do that right since <code>PowerManager.WakeLock screenOn = ((PowerManager)getSystemService(POWER_SERVICE)).newWakeLock(PowerManager.FULL_WAKE_LOCK, "example");</code> is depreciated?</p>
I have IntentService where am I creating an notification. I want screen to turn on after the notification is created. How could i do that right since PowerManager.WakeLock screenOn = ((PowerManager)getSystemService(POWER_SERVICE)).newWakeLock(PowerManager.FULL_WAKE_LOCK, "example"); is depreciated?
android
0
2015-02-28T20:59:56.353Z
2,015
2
20
5
488
1
299
41
1
0
false
false
false
false
false
false
zero
28,787,008
onBindViewHolder position is starting again at 0
<p>Using recyclerview and first initialising the listview it begins to go through each item 1,2,3,4,5 but then suddenly the position value reverts back to 0 and getting the text values from the data items already used., thus my data in the list is looping, to look like:</p> <p>0,1,2,4,5,0,1,2,3,4,5</p> <p>I'm using a...
Using recyclerview and first initialising the listview it begins to go through each item 1,2,3,4,5 but then suddenly the position value reverts back to 0 and getting the text values from the data items already used., thus my data in the list is looping, to look like: 0,1,2,4,5,0,1,2,3,4,5 I'm using a ViewHolder, i'm us...
android|android-recyclerview
2
2015-02-28T21:15:40.527Z
2,015
2
21
5
6,978
2
582
48
2
1
true
false
true
false
false
false
low
28,787,060
How to toast a message unique to each swiping screen of the app in viewpager method?
<p>Problem: I am building an android application where I am using viewpager method to swipe the screens. I need to display the toast message with respect to each screen, for example "msg1" with screen 1, "msg2" with screen 2 and so on. But with my code as below, nothing is displayed: code: </p> <pre><code>ViewPager...
Problem: I am building an android application where I am using viewpager method to swipe the screens. I need to display the toast message with respect to each screen, for example "msg1" with screen 1, "msg2" with screen 2 and so on. But with my code as below, nothing is displayed: code: [CODE] QUESTION 2 In my app, I a...
android|android-viewpager
0
2015-02-28T21:20:46.127Z
2,015
2
21
5
1,181
1
583
84
2
2
true
false
false
false
false
false
zero
28,787,120
Google maps 100vh not working on Android app tablets only
<pre><code>#map-canvas {height: 100vh; width: 100vw;} &lt;ion-view title="Truck Map"&gt; &lt;ion-nav-buttons side="left"&gt; &lt;button menu-toggle="left" class="button button-icon icon ion-navicon"&gt;&lt;/button&gt; &lt;/ion-nav-buttons&gt; &lt;ion-content&gt; &lt;div data-tap-disabled="t...
[CODE] Here is the css and html I use in my angular / ionic / cordova android and ios apps. For some reason I have yet to figure out, android tablets are not able to display the google map with this css, although it works fine on all iOS devices and all Android phones. The map displays if I give it a specific height an...
android|angularjs|cordova|ionic-framework
1
2015-02-28T21:26:06.913Z
2,015
2
21
5
670
2
439
57
4
1
true
false
false
false
false
false
low
28,787,131
onTouchListiner & OnLongClickListener on ImageView didn't work
<p>i add those <code>listeners</code> to an <code>imageView</code> like this :</p> <pre><code>view.setOnTouchListener(clickEvent); view.setLongClickable(true); view.setOnLongClickListener(longclickEvent); </code></pre> <p><code>OnTouch</code> event rises and <code>OnlongClick</code> did not. <code>OnlongClick</code> ...
i add those listeners to an imageView like this : [CODE] OnTouch event rises and OnlongClick did not. OnlongClick work only if i erase OnTouch event. any idea please, thanks in advance.
android|android-event
0
2015-02-28T21:27:20.323Z
2,015
2
21
5
136
1
185
62
2
1
true
false
false
false
false
false
zero
28,787,199
Navigation Drawer list view with 2 type
<p>I have a Navigation Drawer, With a ListView and with a header. When I scorll the drawer up down the items are mixed, the type of the items. Why? </p> <p>My DrawerAdapter.java:</p> <p>public class DrawerAdapter extends BaseAdapter {</p> <pre><code>private Context context; private List&lt;DrawerItem&gt; navDrawerIt...
I have a Navigation Drawer, With a ListView and with a header. When I scorll the drawer up down the items are mixed, the type of the items. Why? My DrawerAdapter.java: public class DrawerAdapter extends BaseAdapter { [CODE] And the Drawer Item : public class DrawerItem { [CODE] Please help me. Thanks.
android|android-listview|navigation-drawer|listviewitem
0
2015-02-28T21:34:14.837Z
2,015
2
21
5
149
1
302
39
4
2
true
false
false
false
false
false
zero
28,787,235
Android layouts and resize
<p>What is the best way to draw a perfect layout that could adapts in every device without problems of density/resolution ? </p> <p>I used buckets (layout-120dpi,layout-160dpi,layout-240dpi,layout-320dpi,layout-480dpi,layout-120dpi). It is correct? I will have problems? If yes what kind of problem and with such device...
What is the best way to draw a perfect layout that could adapts in every device without problems of density/resolution ? I used buckets (layout-120dpi,layout-160dpi,layout-240dpi,layout-320dpi,layout-480dpi,layout-120dpi). It is correct? I will have problems? If yes what kind of problem and with such devices? Thanks in...
android|android-layout|android-drawable|dpi|android-resolution
0
2015-02-28T21:37:29.017Z
2,015
2
21
5
64
0
352
26
5
1
true
true
false
false
false
false
zero
28,787,275
What are common predefined variables in an android-ndk makefile, and how can I see these?
<p>What are common predefined variables in an android-ndk makefile, and how can I see these?</p> <p>For example, <code>TARGET_PLATFORM</code>.</p> <p>What others are there, and how can I output the value?</p>
What are common predefined variables in an android-ndk makefile, and how can I see these? For example, TARGET_PLATFORM . What others are there, and how can I output the value?
android|android-ndk|makefile
1
2015-02-28T21:42:06.377Z
2,015
2
21
5
511
2
175
89
3
0
false
false
false
false
false
false
low
28,787,351
java.lang.NullPointerException at android.support.v7.widget.RecyclerView.onMeasure in Fragment
<p>I am trying to create a RecyclerView in a fragment but I keep getting the java.lang.NullPointerException at android.support.v7.widget.RecyclerView.onMeasure. I looked through the other posting and I tried all the tip. However I keep getting the same error. Here is my code. Any help would be much appreciated.</p> <...
I am trying to create a RecyclerView in a fragment but I keep getting the java.lang.NullPointerException at android.support.v7.widget.RecyclerView.onMeasure. I looked through the other posting and I tried all the tip. However I keep getting the same error. Here is my code. Any help would be much appreciated. Error: [CO...
android-fragments|android-recyclerview
2
2015-02-28T21:51:01.150Z
2,015
2
21
5
1,067
0
437
94
2
6
true
true
false
false
false
false
low
28,787,360
Can't change destination of 'Take bug report'
<p>I have an app that crashes on just one android device running 4.4.2. I turned on 'Settings->Developer options ->Take bug report' on the device and it asked me - just the first time- where to send the bug report: I selected 'android email'. </p> <p>When I reproduced the crash, the device sent an error message: I rec...
I have an app that crashes on just one android device running 4.4.2. I turned on 'Settings->Developer options ->Take bug report' on the device and it asked me - just the first time- where to send the bug report: I selected 'android email'. When I reproduced the crash, the device sent an error message: I received the em...
android|debugging
0
2015-02-28T21:51:42.163Z
2,015
2
21
5
317
2
773
45
2
0
false
false
false
false
false
false
zero
28,787,422
Environment variables in an Android project
<p>Is there a way to set environment variables in an Android project? For example, in a situation where you want to use your app with different webservers in development and production, where could you place the different URLs for this?</p>
Is there a way to set environment variables in an Android project? For example, in a situation where you want to use your app with different webservers in development and production, where could you place the different URLs for this?
android
5
2015-02-28T21:56:50.370Z
2,015
2
21
5
2,189
1
233
43
1
0
false
false
false
false
false
false
low
28,787,468
Do not see any change on runtime eclipse android
<p>I Change an activity background color in eclipse,but I don't any change in run time. why? this is activity XML code,I use android:background="#ff0000" to change background cokor:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/an...
I Change an activity background color in eclipse,but I don't any change in run time. why? this is activity XML code,I use android:background="#ff0000" to change background cokor: [CODE] and java code: [CODE]
android|eclipse
-1
2015-02-28T22:03:01.533Z
2,015
2
22
5
23
1
207
48
2
2
true
false
false
false
false
true
negative
28,787,546
Insert into sqlite database
<p>I have search on the other same problem on stackoverflow but I haven't find my problem. When I want to insert values on my SQLite database, I have an error that say I don't know <strong>firstName</strong> in the table. However, I have create firstName.</p> <p>I give you my code DatabaseHandler:</p> <pre><code>publ...
I have search on the other same problem on stackoverflow but I haven't find my problem. When I want to insert values on my SQLite database, I have an error that say I don't know firstName in the table. However, I have create firstName. I give you my code DatabaseHandler: [CODE] And my login.java [CODE] And to finish my...
java|php|android|sqlite
0
2015-02-28T22:10:42.073Z
2,015
2
22
5
371
1
532
27
4
4
true
false
false
false
false
false
zero
28,787,568
Take a pair of spinners and extract two strings
<p>I have two spinners that are working, i.e. showing the values stored inside when I click on them. </p> <p>I need a string out of each of the spinners that is the selected item from each such as "A", and "min7", and I need to combine the two to make a chord like "Amin7'. Seems simple. </p> <p>Here's my question:...
I have two spinners that are working, i.e. showing the values stored inside when I click on them. I need a string out of each of the spinners that is the selected item from each such as "A", and "min7", and I need to combine the two to make a chord like "Amin7'. Seems simple. Here's my question: The user selects "A", a...
android
0
2015-02-28T22:13:08.113Z
2,015
2
22
5
24
1
683
47
1
1
true
false
false
false
false
false
zero
28,787,606
Swipe left and right in scrollView
<p>I have some layouts inside a scrollView. Those layouts have to be "swipable" in left and right directions but it creates some conflicts with the scrollView.</p> <p>I've tried to disable the scrollView while touching on one of those layouts but in that case my scrollView is almost always disable.</p> <p>This is how...
I have some layouts inside a scrollView. Those layouts have to be "swipable" in left and right directions but it creates some conflicts with the scrollView. I've tried to disable the scrollView while touching on one of those layouts but in that case my scrollView is almost always disable. This is how my layout looks li...
android|scrollview|swipe
1
2015-02-28T22:16:49.003Z
2,015
2
22
5
1,845
1
389
34
3
2
true
false
false
false
false
false
low
28,787,634
Vertical alignment in linearlayout
<p>I have a linear layout,like this:</p> <p><img src="https://i.stack.imgur.com/ell3L.jpg" alt="enter image description here"></p> <p>You can see I have an arrow on the left side.It should point to <code>Message</code> but you see it is top of the <code>Message</code> How can I align it like this :</p> <p><img src="...
I have a linear layout,like this: You can see I have an arrow on the left side.It should point to Message but you see it is top of the Message How can I align it like this : My xml: [CODE]
android
3
2015-02-28T22:19:24.427Z
2,015
2
22
5
45
1
188
34
1
1
true
false
false
false
false
false
low
28,787,736
Unable to start activity ComponentInfo android.view.InflateException: Binary XML file line #63: Error inflating class <unknown>
<p>I'm new to Android, but already created a quite big app. I was working with SharedPreferences and then got this error. I got rid of all lines about SharedPreferences, but still get same eror. I cant get where I shoud look for this #63 line... help me please. If you need some other lines of code, please ask.</p> <bl...
I'm new to Android, but already created a quite big app. I was working with SharedPreferences and then got this error. I got rid of all lines about SharedPreferences, but still get same eror. I cant get where I shoud look for this #63 line... help me please. If you need some other lines of code, please ask. 03-01 01:21...
android|android-layout|android-intent
-3
2015-02-28T22:30:22.847Z
2,015
2
22
5
2,607
1
2,680
127
3
1
true
false
true
false
false
true
negative
28,787,811
lag/slowdown when I try to display many images in a listview?
<p>When I have so many images to display in a listview when I flow to the bottom of a picture to another there is a 1 second pause. I save the file path in the sd card in the database sqlite internal adapter and therefore in each element is taken before and after the sqlite database from SD card. How do I not have that...
When I have so many images to display in a listview when I flow to the bottom of a picture to another there is a 1 second pause. I save the file path in the sd card in the database sqlite internal adapter and therefore in each element is taken before and after the sqlite database from SD card. How do I not have that an...
android|image|sqlite|listview|android-listview
0
2015-02-28T22:40:26.410Z
2,015
2
22
5
175
1
719
61
5
0
false
false
false
false
false
false
zero
28,787,884
SearchView Android JCombobox behaviour
<p>I have a question. I want to use a search view in an application in Android. All the tutorials I found deal with creating activities, setting all kind of metadata, etc, etc. </p> <p>There is any way I could use a simple behavior like JCombobox in Swing ( give the view a list of possible values and have a listener w...
I have a question. I want to use a search view in an application in Android. All the tutorials I found deal with creating activities, setting all kind of metadata, etc, etc. There is any way I could use a simple behavior like JCombobox in Swing ( give the view a list of possible values and have a listener when a choice...
java|android|jcombobox|searchview
2
2015-02-28T22:49:49.310Z
2,015
2
22
5
51
0
605
38
4
0
false
true
false
false
false
false
low
28,787,949
onNotificationPosted never called
<p>I'm trying to implement a feature which would read the notification and it seems that I've a bug in it because the <code>onNotificationPosted()</code> of the <code>NotificationListenerService</code> is never called. I configured the manifest, modified the security settings properly and even started the service manua...
I'm trying to implement a feature which would read the notification and it seems that I've a bug in it because the onNotificationPosted() of the NotificationListenerService is never called. I configured the manifest, modified the security settings properly and even started the service manually but it did nothing. Can i...
android|android-intent|notifications
1
2015-02-28T22:59:13.273Z
2,015
2
22
5
1,811
1
689
33
3
4
true
false
false
false
false
false
low
28,787,994
Android OnChronometerTickListener not being called
<p>I'm creating a simple application that uses a timer in a service. The service will then publish its time updates to the main activity. </p> <p>I've decided to use a Chronometer to implement the stopwatch functionality, however when I try to get the onChronometerTick updates to update the activity, no ticks are bein...
I'm creating a simple application that uses a timer in a service. The service will then publish its time updates to the main activity. I've decided to use a Chronometer to implement the stopwatch functionality, however when I try to get the onChronometerTick updates to update the activity, no ticks are being caught. Th...
android
2
2015-02-28T23:03:59.413Z
2,015
2
23
5
1,315
1
736
50
1
2
true
false
false
false
false
false
low
28,788,073
clicking 'back' on PreferenceScreen closes current activity
<p>I have an activity that opens PreferenceScreen. When I click 'back' - I expect that the preference screen will be closed and I'll go back to the activity, but instead - the current activity is closed and I go back to the previous activity. How can I fix that?</p> <pre><code>public class MyActivity extends Activity ...
I have an activity that opens PreferenceScreen. When I click 'back' - I expect that the preference screen will be closed and I'll go back to the activity, but instead - the current activity is closed and I go back to the previous activity. How can I fix that? [CODE]
android|android-preferences|preferencescreen
0
2015-02-28T23:12:30.280Z
2,015
2
23
5
113
2
266
59
3
1
true
false
false
false
false
false
zero
28,788,104
How to replace cocos2d-x scene from Java?
<p>I want to replace the scene in a cocos2d project from Java. I created the following JNI methods:</p> <pre><code>void cocos_android_app_init (JNIEnv* env, jobject thiz) { LOGD("cocos_android_app_init"); AppDelegate *pAppDelegate = new AppDelegate(); } extern "C" { JNIEXPORT void JNICALL Java_com_example...
I want to replace the scene in a cocos2d project from Java. I created the following JNI methods: [CODE] However, when the method changeScene is called from java, my App crashes because Director::getInstance() seems to be a NULL-pointer. How can the scene be changed correctly from Java?
java|android|java-native-interface|cocos2d-x
1
2015-02-28T23:15:18.600Z
2,015
2
23
5
414
2
286
41
4
1
true
false
false
false
false
false
low
28,788,146
Android toolbar is sizing incorrectly when I try to set translucency
<p>I'm trying to set my app up so I have a translucent status and navigation bar. </p> <p>At first I was having a problem where the status bar would overlap my toolbar. when I had android:fitsSystemWindows="false" in the top level. I found a post that someone said I should put android:fitsSystemWindows="true" not i...
I'm trying to set my app up so I have a translucent status and navigation bar. At first I was having a problem where the status bar would overlap my toolbar. when I had android:fitsSystemWindows="false" in the top level. I found a post that someone said I should put android:fitsSystemWindows="true" not in the top level...
android|android-toolbar
1
2015-02-28T23:20:04.940Z
2,015
2
23
5
760
0
852
68
2
2
true
true
false
false
false
false
low
28,788,153
Centered view pager with secondary page hints
<p>I've read every SO post about centered view pagers with hints but I haven't been able to reproduce it in my own code. The suggestions I've gotten have been either too simple and didn't work or too complex and would take too long to understand (1000+ lines of code).</p> <p>I am using the support library viewpager, a...
I've read every SO post about centered view pagers with hints but I haven't been able to reproduce it in my own code. The suggestions I've gotten have been either too simple and didn't work or too complex and would take too long to understand (1000+ lines of code). I am using the support library viewpager, and I'm able...
android|android-viewpager
0
2015-02-28T23:20:54.157Z
2,015
2
23
5
49
0
1,304
45
2
0
false
true
false
false
false
false
zero
28,788,312
Patterns for custom view initialization compatible with layout preview
<p>I'm wondering if there are any good design pattern for initializing custom views (for example passing in a model/renderer). In particular I'm interested in patterns that allow for Android Studio layout preview to work (or something like <a href="http://jimulabs.com/" rel="nofollow">mirror</a> to work). </p> <p>For ...
I'm wondering if there are any good design pattern for initializing custom views (for example passing in a model/renderer). In particular I'm interested in patterns that allow for Android Studio layout preview to work (or something like mirror to work). For example take a simple game structure: layout.xml [CODE] GameSu...
android|android-layout|android-studio
2
2015-02-28T23:42:48.767Z
2,015
2
23
5
330
0
1,282
70
3
2
true
true
false
false
false
false
low
28,788,318
Continuously control animation of rotation on View
<p>I have an app that needs to update the view <code>setRotation()</code> continuously based on my Cellphone Orientation data.</p> <p>However, since this an easy and really simple app, I don't want to use <code>Canvas</code> nor <code>OpenGL</code> for that simple thing.</p> <p>I wan't to use the System's views and o...
I have an app that needs to update the view setRotation() continuously based on my Cellphone Orientation data. However, since this an easy and really simple app, I don't want to use Canvas nor OpenGL for that simple thing. I wan't to use the System's views and only update the View let's say: every 20ms. What is my best...
java|android|animation|render|timertask
1
2015-02-28T23:43:12.693Z
2,015
2
23
5
59
1
409
50
5
0
false
false
false
false
false
false
low
28,788,341
List Fragment with ActionBarActivity
<p>If I need to use a toolbar in my Activity but I don't know how to use at the same time an <code>ActionBarActivity</code> and a <code>ListFragment</code>. What I must to do to mix these two things (<code>ActionBarActivity</code> and <code>ListFragment</code>?</p>
If I need to use a toolbar in my Activity but I don't know how to use at the same time an ActionBarActivity and a ListFragment . What I must to do to mix these two things ( ActionBarActivity and ListFragment ?
java|android|android-listfragment|android-actionbaractivity
0
2015-02-28T23:46:03.293Z
2,015
2
23
5
119
0
209
36
4
0
false
true
false
false
false
false
zero
28,788,351
Android developer new to ListFragment
<p>So I am sure there is a simple explanation to why this isn't working, but I don't know what it is. I've tried all of the obvious things. Seen several demos and tweaked my code to fit them. I simply cannot get this ListFragement to show. Can someone tell what I am doing wrong? Or do I need to give more details?</...
So I am sure there is a simple explanation to why this isn't working, but I don't know what it is. I've tried all of the obvious things. Seen several demos and tweaked my code to fit them. I simply cannot get this ListFragement to show. Can someone tell what I am doing wrong? Or do I need to give more details? Here is ...
android
2
2015-02-28T23:47:04.600Z
2,015
2
23
5
47
1
515
37
1
2
true
false
false
false
false
false
low
28,788,421
ArrayAdapter unable to update contents
<p>I am trying to update the contents of my ArrayAdapter. I have tried calling the method <code>notifyDataSetChanged()</code> on the adapter and <code>invalidate()</code> on the <code>ListView</code> but I do not see the data within the adapter being changed. I spent two hours searching through every StackOverflow post...
I am trying to update the contents of my ArrayAdapter. I have tried calling the method notifyDataSetChanged() on the adapter and invalidate() on the ListView but I do not see the data within the adapter being changed. I spent two hours searching through every StackOverflow post about this topic, but none of the answers...
android|android-arrayadapter
1
2015-02-28T23:55:44.180Z
2,015
2
23
5
89
1
442
38
2
2
true
false
false
false
false
false
low
28,788,436
Android: getting data from database causes app to stop responding, Stuck on progress dialog
<p>Hey guys im creating an app where it populates a list view with data from mysql, the data that will fill the list view consists of courseid, courseName and lecturerName. However when i click the button to view the list it creates the progress dialog as it should however it gets stuck and then the application stop re...
Hey guys im creating an app where it populates a list view with data from mysql, the data that will fill the list view consists of courseid, courseName and lecturerName. However when i click the button to view the list it creates the progress dialog as it should however it gets stuck and then the application stop respo...
java|android
0
2015-02-28T23:57:46.310Z
2,015
2
23
5
309
3
740
91
2
2
true
false
false
false
false
false
zero
28,788,444
Binding to DataModel in MVVMCross
<p>I have done the intro tutorial online and it works. My question is how does Mvvmcross know which View to associate with the ViewModel? There is nothing I can see in the code where they reference each other.</p>
I have done the intro tutorial online and it works. My question is how does Mvvmcross know which View to associate with the ViewModel? There is nothing I can see in the code where they reference each other.
xamarin|xamarin.android|mvvmcross
0
2015-02-28T23:59:11.480Z
2,015
2
23
5
43
1
206
33
3
0
false
false
false
false
false
false
zero
28,788,445
Unity3d android game adding multiple plugins issues
<p>I am noob in unity3d game development.I wants to add two plugins FB and ADMOB, both individually works fine. But i am not able to keep both together. because both contains its different androidmanifest.xml, I knew it might be problem of android manifest conflict of duplicate jar. Or anything else. How can i solve it...
I am noob in unity3d game development.I wants to add two plugins FB and ADMOB, both individually works fine. But i am not able to keep both together. because both contains its different androidmanifest.xml, I knew it might be problem of android manifest conflict of duplicate jar. Or anything else. How can i solve it? t...
unity3d|android-manifest|facebook-unity-sdk
1
2015-02-28T23:59:25.110Z
2,015
2
23
5
1,331
2
326
51
3
0
false
false
false
false
false
false
low
28,788,668
How to Parse Returned JSON Array from PHP
<p><strong>Json</strong></p> <pre><code>{ "title": "lorem", "image": "ipsum", "0": "dummytext", "1": "printingandtypesetting", "2": "industry", // etc... } </code></pre> <p>I'm returning array from <strong>PHP</strong> file.</p> <p>How to parse this array in my App and use every item in the a...
Json [CODE] I'm returning array from PHP file. How to parse this array in my App and use every item in the array for e.g Title , or loop through them then start a new Activity displaying them.
java|php|android|json
-3
2015-03-01T00:30:24.180Z
2,015
3
0
6
60
1
192
41
4
1
true
false
false
false
false
true
negative
28,788,745
change progress bar style in java for dynamicUI
<p>i want change progressbar style in java for dynamicUI?before this i was set progressbarstyle on xml and there was style option but in java i cant find something like .setProgressbarstyle().</p>
i want change progressbar style in java for dynamicUI?before this i was set progressbarstyle on xml and there was style option but in java i cant find something like .setProgressbarstyle().
android
2
2015-03-01T00:41:56.620Z
2,015
3
0
6
1,088
1
189
47
1
0
false
false
false
false
false
false
low
28,788,850
Why is rendering components inside web views slower?
<p><em>Based on feedback regarding the question being too broad, I am narrowing the scope of the question and keeping the original question in strike-through to preserve the meaning of Jim's answer below, which is extremely useful and informative.</em> </p> <p>Here is a more specific version of the question: </p> <p>...
Based on feedback regarding the question being too broad, I am narrowing the scope of the question and keeping the original question in strike-through to preserve the meaning of Jim's answer below, which is extremely useful and informative. Here is a more specific version of the question: Performing tasks such as rende...
android|ios|performance|mobile
2
2015-03-01T00:57:13Z
-1
-1
-1
-1
1,509
1
3,084
52
4
0
false
false
false
false
false
false
low
28,788,867
Update Rect Position on Canvas, Android
<p>i want to change the position of a Rect that i have added on a Canvas</p> <pre><code>public class RecActivity extends Activity { LinearLayout layout; ImageView view; Bitmap bg; Paint paint = new Paint(); Rect rec = null; Canvas canvas; @Override protected void onCreate(Bundle saved...
i want to change the position of a Rect that i have added on a Canvas [CODE] i want to change the position of a Rect that i have added on a Canvas i have deleted some part of the code to make it legible. thanks in advance.
android|android-canvas|android-imageview
0
2015-03-01T00:59:03.183Z
2,015
3
0
6
1,625
1
222
39
3
1
true
false
false
false
false
false
zero
28,788,897
How to call saved dataItem in Android Wear?
<p>I'm creating a watchface that can have the color customized through an App that is on the phone.</p> <p>I've seen examples use the <code>DataApi</code> and <code>DataItem</code> to save/load settings.</p> <p>The problem I am encountering is that when I change to a different watchface and change back, all the value...
I'm creating a watchface that can have the color customized through an App that is on the phone. I've seen examples use the DataApi and DataItem to save/load settings. The problem I am encountering is that when I change to a different watchface and change back, all the values inside the DataMap seems to be reset to nul...
android|wear-os|android-wear-data-api
0
2015-03-01T01:04:09.107Z
2,015
3
1
6
242
1
841
43
3
2
true
false
false
false
false
false
zero
28,788,909
Last View In GridView Randomly Not Updating
<p>This is a very confusing problem since it seems to happen randomly. I have a GridView in which I am setting the size of and number of columns in onCreate(), I'm then populating the grid with randomly selected drawables from an array that are inside imageViews until the gridView is full. When the user clicks on one o...
This is a very confusing problem since it seems to happen randomly. I have a GridView in which I am setting the size of and number of columns in onCreate(), I'm then populating the grid with randomly selected drawables from an array that are inside imageViews until the gridView is full. When the user clicks on one of t...
android|gridview
0
2015-03-01T01:05:13.663Z
2,015
3
1
6
42
1
1,407
43
2
1
true
false
false
false
false
false
zero
28,788,921
App stop working when I click a image
<p>I created an activity with radio button On and Off. When the user click on On the image appears and with Off the image disappear. Everything works fine but when the user accidentally click on the image the app will stop working. There is no on-click function with the image. Please see the code below. XML file:</p> ...
I created an activity with radio button On and Off. When the user click on On the image appears and with Off the image disappear. Everything works fine but when the user accidentally click on the image the app will stop working. There is no on-click function with the image. Please see the code below. XML file: [CODE] J...
android|image
0
2015-03-01T01:06:33.097Z
2,015
3
1
6
35
1
336
37
2
2
true
false
false
false
false
false
zero
28,789,042
Textview not skipping to next line android
<p>I am a complete beginner in android programming, and I am working with TextViews. I want two TextViews with one on top and one on bottom. But it doesn't work, and I am not sure why. Here is the xml</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas...
I am a complete beginner in android programming, and I am working with TextViews. I want two TextViews with one on top and one on bottom. But it doesn't work, and I am not sure why. Here is the xml [CODE] So I have the first TextView as fill_parent for width to skip a line, but instead it just takes it out. I can't add...
android|xml
1
2015-03-01T01:25:12.663Z
2,015
3
1
6
108
2
465
42
2
1
true
false
false
false
false
false
low
28,789,112
How can I write this code better?
<p>I have this piece of code in my Android app's grid view adapter. Basically what it does is to "fit" the first image in a gridview into a square. The next images are cropped. There are some code omitted before this part. </p> <p>I think I am repeating a whole bunch of stuff unnecessarily. What's a better way to rewr...
I have this piece of code in my Android app's grid view adapter. Basically what it does is to "fit" the first image in a gridview into a square. The next images are cropped. There are some code omitted before this part. I think I am repeating a whole bunch of stuff unnecessarily. What's a better way to rewrite this cod...
android
-1
2015-03-01T01:37:45.980Z
2,015
3
1
6
70
3
329
33
1
1
true
false
false
false
false
true
negative
28,789,247
How to validate date entry on android?
<p>On Android, the date displays as mm/dd/yyyy; which would be fine, but it doesn't validate. I assume android actually sends the date in a different format than it displays. I can't figure out what the format is. If I knew I think could validate it. Currently the input can be m(m)-d(d)-yyyy which the field stipulates,...
On Android, the date displays as mm/dd/yyyy; which would be fine, but it doesn't validate. I assume android actually sends the date in a different format than it displays. I can't figure out what the format is. If I knew I think could validate it. Currently the input can be m(m)-d(d)-yyyy which the field stipulates, bu...
android|validation|date
0
2015-03-01T01:59:27.817Z
2,015
3
1
6
750
1
470
38
3
1
true
false
false
false
false
false
zero
28,789,271
Two buttons showing when only creating one in XML
<p>I am creating my layout entirely in XML. I wish to show a <code>ListView</code> and always have a button at the bottom of the screen like in the default FullScreenActivity. However, the issue is that the button that is at the bottom is also appearing at the top of the screen. </p> <pre><code>&lt;RelativeLayout xmln...
I am creating my layout entirely in XML. I wish to show a ListView and always have a button at the bottom of the screen like in the default FullScreenActivity. However, the issue is that the button that is at the bottom is also appearing at the top of the screen. [CODE]
android|xml
0
2015-03-01T02:03:33.553Z
2,015
3
2
6
26
2
270
49
2
1
true
false
false
false
false
false
zero
28,789,288
Is there anyway to pass Image data through an intent?
<p>I know how to do this converting it to a bitmap, but I want an Image (android.media) on the receiver side. </p> <p>Thanks in advance.</p>
I know how to do this converting it to a bitmap, but I want an Image (android.media) on the receiver side. Thanks in advance.
android|image|android-intent
0
2015-03-01T02:05:37.710Z
2,015
3
2
6
64
2
125
53
3
0
false
false
false
false
false
false
zero
28,789,342
Error java.lang.RuntimeException: Unable to start activity
<p>I'm creating my first Android App so I'm very new at it. Everything has been going ok but now I'm getting an error. The app is very simple. Basically there is an activity with a question and 2 buttons. Depending on the answer to the question you click one of the buttons that takes you to another activity. Basic...
I'm creating my first Android App so I'm very new at it. Everything has been going ok but now I'm getting an error. The app is very simple. Basically there is an activity with a question and 2 buttons. Depending on the answer to the question you click one of the buttons that takes you to another activity. Basically you...
java|android|android-intent
1
2015-03-01T02:14:08.720Z
2,015
3
2
6
1,244
1
1,091
58
3
3
true
false
false
false
false
false
low
28,789,363
Storing an int value in android
<p>I'm making an app that gives players a high score. However, the int for the high score resets when I reset the app. Is there a way to save the int so the high score is saved even when the app is restarted?</p> <p>(I used this code to restart the app):</p> <pre><code>Intent i = getBaseContext().getPackageManager() ...
I'm making an app that gives players a high score. However, the int for the high score resets when I reset the app. Is there a way to save the int so the high score is saved even when the app is restarted? (I used this code to restart the app): [CODE] Thanks in advance!
android|save|int
0
2015-03-01T02:16:26.463Z
2,015
3
2
6
94
1
270
31
3
1
true
false
false
false
false
false
zero
28,789,407
Android Native crash at /system/lib/libskia.so
<p>There's already been post about this here, no answer though: <a href="https://stackoverflow.com/questions/26091282/android-native-crash-at-system-lib-libskia-so-bitmap-processing">Android Native crash at /system/lib/libskia.so (Bitmap processing)</a></p> <p>I too am having problems only with 4.4 phones but can't se...
There's already been post about this here, no answer though: Android Native crash at /system/lib/libskia.so (Bitmap processing) I too am having problems only with 4.4 phones but can't seem to resolve the problem. I also can't find much help online. Some Context: I am working on a game (fairly basic mainly just draws re...
android|bitmap|crash
8
2015-03-01T02:24:42.060Z
2,015
3
2
6
4,574
0
501
46
3
2
true
true
true
false
false
false
medium
28,789,413
How do I serialize the Polyline class?
<p>Is there some easy way to serialize an <code>ArrayList&lt;Polyline&gt;</code>? (<a href="https://developer.android.com/reference/com/google/android/gms/maps/model/Polyline.html" rel="nofollow">Polyline</a> is a class from com.google.android.gms.maps.model. In the snippet below, the array list is called polylines2) ...
Is there some easy way to serialize an ArrayList<Polyline> ? ( Polyline is a class from com.google.android.gms.maps.model. In the snippet below, the array list is called polylines2) I tried using gson.toJson but I get a StackOverflow error. [I haven't done Android or Java development in over 3 years, so apologies if th...
android|gson|android-maps-v2
1
2015-03-01T02:25:49.963Z
2,015
3
2
6
432
1
342
38
3
1
true
false
false
false
false
false
low
28,789,434
Is it possible to block particular Intent exchanges on the Android device?
<ol> <li><p>If <code>app A</code> broadcasts <code>Intent#1</code> and if <code>app B</code>and <code>app C</code> are designed to receive the <code>Intent#1</code>, is it possible to make <code>Intent#1</code> not to be delivered to <code>app C</code>? (In case we cannot modify <code>app A</code>, <code>app B</code>an...
If app A broadcasts Intent#1 and if app B and app C are designed to receive the Intent#1 , is it possible to make Intent#1 not to be delivered to app C ? (In case we cannot modify app A , app B and app C ) If app A sends Intent#1 to start app B , and if app B is designed to receive Intent#1 , is it possible to block In...
android|android-intent
2
2015-03-01T02:29:17.537Z
2,015
3
2
6
644
1
399
74
2
0
false
false
false
false
false
false
low
28,789,472
Stop MediaPlayer In Bacgkround Based on Timer
<p>My goal is to stop a MediaPlayer object based on a timer in an Android application. I would like the sounds to stop even if it the app is in the background. What is the best approach to accomplish this? Should use an <code>AlarmManager</code>?</p> <p>On related question, as I understood it, in order for my <code>Me...
My goal is to stop a MediaPlayer object based on a timer in an Android application. I would like the sounds to stop even if it the app is in the background. What is the best approach to accomplish this? Should use an AlarmManager ? On related question, as I understood it, in order for my MediaPlayer to play int he back...
android|android-service|android-mediaplayer
0
2015-03-01T02:36:37.387Z
2,015
3
2
6
128
1
514
45
3
0
false
false
false
false
false
false
zero
28,789,495
How to tie up data (title, date etc) to a list of files I'm retrieving from a folder?
<p>I save a list of files into a folder through my app, and when I want to retrieve it, I want to show the Title, date and some other information in each row. How do I tie up these information with each file?</p>
I save a list of files into a folder through my app, and when I want to retrieve it, I want to show the Title, date and some other information in each row. How do I tie up these information with each file?
java|android
0
2015-03-01T02:40:02.087Z
2,015
3
2
6
36
2
205
85
2
0
false
false
false
false
false
false
zero
28,789,556
Android studio- "SDK tools directory is missing"
<p>When I start Android Studio, it displays a window entitled &quot;Downloading components&quot; which says:  &quot;Android SDK was installed to: C: / Users / user / AppData / Local / android / SDK2<code>  </code> SDK tools directory is missing &quot; I can not fix it and I need help!!</p>
When I start Android Studio, it displays a window entitled &quot;Downloading components&quot; which says: &quot;Android SDK was installed to: C: / Users / user / AppData / Local / android / SDK2 SDK tools directory is missing &quot; I can not fix it and I need help!!
android|android-studio|sdk
82
2015-03-01T02:51:24.700Z
2,015
3
2
6
367,484
26
267
48
3
0
false
false
true
true
true
false
high
28,789,655
how to solve this GStreamer library java.lang.UnsatisfiedLinkError issue?
<p>i'm trying to use the GStreaming library in my android application, it compile and everything seems to be ok, but when i run the app it gives me the following error :</p> <pre><code>02-28 21:46:41.033 26177-26177/com.sebasdeldihotmail.parkeafit E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.sebasdeldihot...
i'm trying to use the GStreaming library in my android application, it compile and everything seems to be ok, but when i run the app it gives me the following error : [CODE] does anyone know how to solve this problem? my brain is dry, i really don't know what to do Thanks very much for reading. here it is [CODE] and ye...
java|android|gstreamer|live-streaming
1
2015-03-01T03:09:00.087Z
2,015
3
3
6
952
0
390
73
4
2
true
true
false
false
false
false
low
28,789,744
How to send Time Triggered Notification using parse.com in Android?
<p>I have implemented push notification using parse. But I want to send notification to user at specific time in their specific time-zones. I know that we can send notification to all devices at once from the dashboard. But can we trigger the notification from within the app?</p> <p>Right now I just check the system d...
I have implemented push notification using parse. But I want to send notification to user at specific time in their specific time-zones. I know that we can send notification to all devices at once from the dashboard. But can we trigger the notification from within the app? Right now I just check the system date and dis...
android|parse-platform|notifications
0
2015-03-01T03:25:12.650Z
2,015
3
3
6
186
1
654
67
3
3
true
false
false
false
false
false
zero
28,789,763
Call Activity Method from BroadcastReceiver
<p>I am trying to call from my BroadcastReceiver(ReceiverSchedule) to call a method (CancelSchedules) in my Activity(ViewScheduleActivity). The main problem I have is that it the Activity becomes null on the onReceive. I think I'm simply passing it into the intent wrong. I have tried the following link: <a href="https:...
I am trying to call from my BroadcastReceiver(ReceiverSchedule) to call a method (CancelSchedules) in my Activity(ViewScheduleActivity). The main problem I have is that it the Activity becomes null on the onReceive. I think I'm simply passing it into the intent wrong. I have tried the following link: Call an activity m...
android|android-activity|broadcastreceiver|alarmmanager|android-pendingintent
1
2015-03-01T03:28:35.650Z
2,015
3
3
6
351
1
1,329
43
5
6
true
false
false
false
false
false
low
28,789,783
How to solve the error "View not attached to window manager" in android?
<p>In my app, I am calling an async task on a button click and I am using onpreexecute method to start "progress dialog" and onpostexecute to end the same. </p> <p>I am getting this error while implementing the above - "View not attached to window manager."</p> <p>Here is my async code -</p> <pre><code>/** * Async ...
In my app, I am calling an async task on a button click and I am using onpreexecute method to start "progress dialog" and onpostexecute to end the same. I am getting this error while implementing the above - "View not attached to window manager." Here is my async code - [CODE] I There are some solution given in SOF pos...
android|android-asynctask|progressdialog
0
2015-03-01T03:31:06.417Z
2,015
3
3
6
2,918
1
1,620
72
3
1
true
false
true
false
false
false
zero
28,789,801
Error executing select query in sqlite by android
<p>I have write this code for select filtered data from sqlite db through android. But it says there are some error. Can you help me to correct my code please. </p> <pre><code> category = data[0]; district = data[1]; SQLiteDatabase db = openOrCreateDatabase("dbumbers", 1, null); Cursor c = db.ra...
I have write this code for select filtered data from sqlite db through android. But it says there are some error. Can you help me to correct my code please. [CODE]
android|sql|sqlite
1
2015-03-01T03:33:56.957Z
2,015
3
3
6
131
1
163
49
3
1
true
false
false
false
false
false
low
28,789,989
Android WebView inconsistent when activity is in the background
<p>I am using a WebView to receive Google Cloud channel messages using JavaScript (see code below). The WebView is hosted in the Activity that is used during sign-on, which is then kept in the background.</p> <p>compileSdkVersion &lt; 19 (always uses Android's WebView) -> JavaScript keeps running and receives events e...
I am using a WebView to receive Google Cloud channel messages using JavaScript (see code below). The WebView is hosted in the Activity that is used during sign-on, which is then kept in the background. compileSdkVersion < 19 (always uses Android's WebView) -> JavaScript keeps running and receives events even though the...
java|javascript|android|google-chrome|android-webview
0
2015-03-01T04:10:09.907Z
2,015
3
4
6
464
1
1,617
63
5
2
true
false
false
false
false
false
zero
28,790,011
How to pass data between fragments when using tabs and onTabSelected()?
<p>This <a href="http://developer.android.com/training/basics/fragments/communicating.html" rel="nofollow">tutorial</a> refers to the communicating between fragments but doesn't do it for tabs. I want to send data between from my "Daycare" fragment which is a tab to my "You" fragment which is also a tab. I've been stuc...
This tutorial refers to the communicating between fragments but doesn't do it for tabs. I want to send data between from my "Daycare" fragment which is a tab to my "You" fragment which is also a tab. I've been stuck for a week on this. I don't really know how to combine the concept of interfaces with android tabbed fra...
java|android|android-fragments|interface
0
2015-03-01T04:12:43.957Z
2,015
3
4
6
986
2
762
71
4
2
true
false
false
false
false
false
zero
28,790,035
Layout for tablets from 8'' to 10'' inches particularly 8" inch tablet
<p>I am new in android development and I need to design layouts for 8 inch and 10 inch tablets in landscape mode. Reading all the docs it is showing for 7 inch and 10 inch tablets. But what about 8 inch tablet then? And moreover do I need separate drawable for them? </p>
I am new in android development and I need to design layouts for 8 inch and 10 inch tablets in landscape mode. Reading all the docs it is showing for 7 inch and 10 inch tablets. But what about 8 inch tablet then? And moreover do I need separate drawable for them?
android|user-interface
1
2015-03-01T04:17:31.903Z
2,015
3
4
6
527
3
263
70
2
0
false
false
false
false
false
false
low
28,790,038
How to implement a tap to play transition screen?
<p>I have an app that has a ball you have to tilt through gaps in rectangles to gain points. The rectangles approach from the right side of the screen (moving left). The ball is very sensitive and if the player has the phone held anything otherwise than very flat when the game is started then the player will instantly ...
I have an app that has a ball you have to tilt through gaps in rectangles to gain points. The rectangles approach from the right side of the screen (moving left). The ball is very sensitive and if the player has the phone held anything otherwise than very flat when the game is started then the player will instantly die...
java|android|uiviewanimationtransition
0
2015-03-01T04:17:45.193Z
2,015
3
4
6
45
0
959
49
3
0
false
true
false
false
false
false
zero
28,790,055
app namespace not found in styles.xml in res folder
<p>I'm writing my own toolbar with an android.support.v7.widget.Toolbar widget and I want to put as much as possible into a styles.xml in my res folder.</p> <p>Part of a file in /res/layout/$example.xml</p> <pre><code>&lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" ...
I'm writing my own toolbar with an android.support.v7.widget.Toolbar widget and I want to put as much as possible into a styles.xml in my res folder. Part of a file in /res/layout/$example.xml [CODE] my "toolbar_dark" is defined as follows in a /res/values/styles.xml [CODE] When compiling [CODE] If I use the app:* valu...
android|android-studio|android-appcompat
37
2015-03-01T04:21:27.437Z
2,015
3
4
6
16,509
2
440
51
3
3
true
false
true
true
true
false
high
28,790,105
Android NDK profiler for native executable produces no data
<p>I am using the Android NDK to build a native C/C++ binary via <code>include $(BUILD_EXECUTABLE)</code>. I have added the android-ndk-profiler module to my Android.mk according to their instructions and added calls for <code>monstartup</code> and <code>moncleanup</code>.</p> <p>Running the binary on a rooted device ...
I am using the Android NDK to build a native C/C++ binary via include $(BUILD_EXECUTABLE) . I have added the android-ndk-profiler module to my Android.mk according to their instructions and added calls for monstartup and moncleanup . Running the binary on a rooted device produces gmon.out, and everything appears to be ...
android|c|android-ndk|profiling
0
2015-03-01T04:30:38.727Z
2,015
3
4
6
218
1
589
59
4
0
false
false
false
false
false
false
zero
28,790,315
Kivy camera code does not run on android device
<p>I am using Kivy and buildozer on OS X (10.10.1), but I cannot get a Kivy camera application to run on my android device. Kivy aplications that do not use camera are fine. Code is below, and I can also post the buildozer spec file and debug information. Any help is appreciated.</p> <h1>==============================...
I am using Kivy and buildozer on OS X (10.10.1), but I cannot get a Kivy camera application to run on my android device. Kivy aplications that do not use camera are fine. Code is below, and I can also post the buildozer spec file and debug information. Any help is appreciated. ================================ import ki...
android|kivy
1
2015-03-01T05:08:05.917Z
2,015
3
5
6
1,933
1
15,199
47
2
1
true
false
false
false
false
false
low
28,790,331
Data is not retrieving from android SQLite
<p>I am trying to retrieve data from sq lite database in array list in toast message, but showing</p> <p><strong>[ util.AllProfileElement @4b0ae658,util.AllProfileElement @4b0a258c,...........]</strong></p> <p>like something my data is save in database which i confirm through toast message please help me get out...
I am trying to retrieve data from sq lite database in array list in toast message, but showing [ util.AllProfileElement @4b0ae658,util.AllProfileElement @4b0a258c,...........] like something my data is save in database which i confirm through toast message please help me get out of this enter code here Database Helper ...
android|sqlite
0
2015-03-01T05:10:19.387Z
2,015
3
5
6
69
0
385
42
2
2
true
true
false
false
false
false
zero
28,790,334
using Collections.Sort and compare on an object sorted by date
<p>I'm trying to sort a list of objects called dbDatas by earliest date first </p> <p>[please excuse the convoluted way I acquire the dates d1 and d2, it's just how my classes are set up]</p> <p>I found a number of examples on sorting using Collections.sort, but I could not tell if they would sort earlier dates first...
I'm trying to sort a list of objects called dbDatas by earliest date first [please excuse the convoluted way I acquire the dates d1 and d2, it's just how my classes are set up] I found a number of examples on sorting using Collections.sort, but I could not tell if they would sort earlier dates first in the list, or lat...
android|sorting
-1
2015-03-01T05:10:27.643Z
2,015
3
5
6
592
3
509
62
2
1
true
false
false
false
false
true
negative
28,790,406
Android BitmapDrawable results in out of memory
<p>Basically I have 4 <code>ImageView</code> in the UI and I want to set image to them. Following is the related codes:</p> <pre><code>private void showPhoto() { // (re)set the image button's image based on our photo Photo p = mCrime.getPhoto(); BitmapDrawable b = null; if (p != null) { String ...
Basically I have 4 ImageView in the UI and I want to set image to them. Following is the related codes: [CODE] In the console, it is indicated that this line: [CODE] results in such an error: [CODE] I am really new to android ... Any suggestion?
android|android-bitmap|bitmapdrawable
0
2015-03-01T05:21:15.577Z
2,015
3
5
6
549
1
245
47
3
3
true
false
false
false
false
false
zero
28,790,412
List view items changes position when scrolling android?
<p>In my application i used custom list view adapter. In the list view item i added another layout. because in my service one order have any number of order items. For showing the order items i added the order item layout below to custom list view item.it is working fine. but when scroll the list view the data is ch...
In my application i used custom list view adapter. In the list view item i added another layout. because in my service one order have any number of order items. For showing the order items i added the order item layout below to custom list view item.it is working fine. but when scroll the list view the data is changed....
android|android-listview
22
2015-03-01T05:21:54.160Z
2,015
3
5
6
20,705
3
342
56
2
1
true
false
true
true
true
false
high
28,790,467
Creating two or more APIs using Cloud Endpoints in Android Studio
<p>I am trying to create two APIs using Cloud Endpoints module in Android Studio but when I use all the required annotations and run my local development server it does not create any new API but just one API. Is there another method to create more than one API. Please help me create more than one API for the same back...
I am trying to create two APIs using Cloud Endpoints module in Android Studio but when I use all the required annotations and run my local development server it does not create any new API but just one API. Is there another method to create more than one API. Please help me create more than one API for the same backend...
android|api|google-app-engine|google-cloud-endpoints
0
2015-03-01T05:31:00.410Z
2,015
3
5
6
466
1
385
65
4
2
true
false
false
false
false
false
zero
28,790,509
Is it possible to disallow the closing of an android app?
<p>For an app I'm creating, I need a lock screen. For security purposes, the user shouldn't be able to access the app tray or the home button while in this lock screen. </p> <p>Is this possible? How can it be done?</p>
For an app I'm creating, I need a lock screen. For security purposes, the user shouldn't be able to access the app tray or the home button while in this lock screen. Is this possible? How can it be done?
java|android|security
1
2015-03-01T05:36:53.637Z
2,015
3
5
6
56
1
203
57
3
0
false
false
false
false
false
false
low
28,790,547
InputStream from file in internal memory opens incomplete (due to invalid char in file?)
<p>Why the code below works when I parse a StringReader, but not an InputStream from a file located in the internal memory, even though the file has exactly the same data from the String used before (commented in code)? The parser reaches EOF right after the second line. When I use the String, it goes all the way to th...
Why the code below works when I parse a StringReader, but not an InputStream from a file located in the internal memory, even though the file has exactly the same data from the String used before (commented in code)? The parser reaches EOF right after the second line. When I use the String, it goes all the way to the e...
android|xml|inputstream|fileinputstream
0
2015-03-01T05:43:10.113Z
2,015
3
5
6
124
1
741
88
4
3
true
false
false
false
false
false
zero
28,790,581
How can i add a new codec in ffmpeg
<p>I am creating a project in android where I have to increase the performance of the android video player. I need to install some supportive codec with ffmpeg to make my video player better while playing HD video. </p>
I am creating a project in android where I have to increase the performance of the android video player. I need to install some supportive codec with ffmpeg to make my video player better while playing HD video.
android|performance|ffmpeg|video-player
0
2015-03-01T05:47:33.643Z
2,015
3
5
6
1,318
1
211
35
4
0
false
false
false
false
false
false
zero
28,790,629
Sony Xperia M takePicture() always crash
<p>I'm building an Camera application for Sony Xperia M C1905<br/> User press a button to take picture then save.<br/> Problem start when i call takePicture() outside autoFocusCallback<br/></p> <p>Is this Sony specific problem or i am doing something wrong here ?</p> <p>Here's the logcat output :</p> <pre><code>STAC...
I'm building an Camera application for Sony Xperia M C1905 User press a button to take picture then save. Problem start when i call takePicture() outside autoFocusCallback Is this Sony specific problem or i am doing something wrong here ? Here's the logcat output : [CODE] Here's the relevant code : [CODE] This code wor...
android|sony-xperia
0
2015-03-01T05:57:03.393Z
2,015
3
5
6
275
0
513
40
2
4
true
true
false
false
false
false
zero
28,790,652
Point adding mechanism troubles?
<p>I have this game where the goal is to pass a ball through oncoming rectangles with gaps in them. Point gains are registered when the ball's x position falls within a certain margin (plus or minus) from the right of the rectangle being passed by the ball. Since the timer I set up cycles every 10 milliseconds there ar...
I have this game where the goal is to pass a ball through oncoming rectangles with gaps in them. Point gains are registered when the ball's x position falls within a certain margin (plus or minus) from the right of the rectangle being passed by the ball. Since the timer I set up cycles every 10 milliseconds there arise...
java|android|game-physics
1
2015-03-01T06:00:36.560Z
2,015
3
6
6
126
1
1,925
32
3
4
true
false
false
false
false
false
low
28,790,723
How can i run Jacoco in android studio for code coverage
<p>I have a debug flavor in android studio already. My gradle config file for my app module contains the following:</p> <pre><code>debug{ testCoverageEnabled true } </code></pre> <p>then i run the following command in the terminal:</p> <pre><code>gradlew createDebugCoverageReport </code></pre> <p>and indeed I g...
I have a debug flavor in android studio already. My gradle config file for my app module contains the following: [CODE] then i run the following command in the terminal: [CODE] and indeed I get a report but the app also crashes with a read only error and I cannot seem to figure it out. I'm using a mac. Here is the stac...
android|android-studio|code-coverage|jacoco
9
2015-03-01T06:12:53.280Z
2,015
3
6
6
4,680
3
335
56
4
3
true
false
true
false
false
false
medium
28,790,754
Android Lollipop App Notification Settings
<p>In Android Lollipop, when you long press a Notification, it gives you access to settings for that Notification's app, such as priority, or simply blocking it. Is there an intent that I can use to access those settings?</p>
In Android Lollipop, when you long press a Notification, it gives you access to settings for that Notification's app, such as priority, or simply blocking it. Is there an intent that I can use to access those settings?
android|notifications|android-notifications|android-5.0-lollipop|android-settings
4
2015-03-01T06:18:39.800Z
2,015
3
6
6
1,777
2
218
42
5
0
false
false
false
false
false
false
low
28,790,796
android-studio how to set xml theme
<p>I am using android-studio..</p> <p>I am creating <strong>activity.xml</strong> file..There from the <strong>themes</strong> I choose a <strong>Light.NoTitlebar</strong> in graphical view.</p> <p>And then when I run that app..It is showing the default which is in <strong>styles.xml</strong></p> <pre><code> &lt;sty...
I am using android-studio.. I am creating activity.xml file..There from the themes I choose a Light.NoTitlebar in graphical view. And then when I run that app..It is showing the default which is in styles.xml [CODE] And my Manifestfile.xml is [CODE] How can I change the xml theme whatever I want??
android|xml
2
2015-03-01T06:27:14.850Z
2,015
3
6
6
6,615
2
298
35
2
2
true
false
true
false
false
false
low
28,790,800
How to design this layout using Relative or Linear layout?
<p>Hi I am creating weather widget application. I have completed programming part. I am not familiar with layout design. please help me how to design this layout. Thanks in advance.<img src="https://i.stack.imgur.com/r2IAV.jpg" alt="enter image description here"></p>
Hi I am creating weather widget application. I have completed programming part. I am not familiar with layout design. please help me how to design this layout. Thanks in advance.
android|android-layout|android-linearlayout|android-relativelayout
0
2015-03-01T06:28:15.743Z
2,015
3
6
6
594
4
178
58
4
0
false
false
false
false
false
false
zero
28,790,809
Application cannot be exported due to the error(s) below
<p>I get error when export project in android eclipse </p> <p><img src="https://i.stack.imgur.com/1mZA8.png" alt="eclipse Application cannot be exported due to the error(s) below."></p>
I get error when export project in android eclipse
android|eclipse|export|project
-1
2015-03-01T06:29:25.043Z
2,015
3
6
6
1,246
1
50
56
4
0
false
false
false
false
false
true
negative
28,790,838
Android WebView - Choosing a file via html form
<p>i have a web app/Facebook app with a form that requires a user to upload an image. When accessing the site via the Facebook app on android devices, the choose file dialog will not prompt for the file location. </p> <p>This only happens when using the native WebView from the Facebook app. If I choose to use an exte...
i have a web app/Facebook app with a form that requires a user to upload an image. When accessing the site via the Facebook app on android devices, the choose file dialog will not prompt for the file location. This only happens when using the native WebView from the Facebook app. If I choose to use an external browser ...
android|html|facebook|forms|webview
1
2015-03-01T06:35:09.560Z
2,015
3
6
6
101
0
406
47
5
0
false
true
false
false
false
false
low
28,790,944
Adding Google Play Services library to Qt project
<p>I'm creating Android application in Qt and I have to use Qt Android Extras to communicate with java code. In my java file, I'm using Google Play Services lib.</p> <p>I've already done everything that is described <a href="http://doc-snapshot.qt-project.org/qt5-5.4/android3rdpartylibs.html" rel="nofollow">here</a>. ...
I'm creating Android application in Qt and I have to use Qt Android Extras to communicate with java code. In my java file, I'm using Google Play Services lib. I've already done everything that is described here . Build passes, but when i try to use something from this library, wild errors appear: [CODE] ...and believe ...
java|android|qt|google-play-services
3
2015-03-01T06:51:26.823Z
2,015
3
6
6
711
1
418
49
4
1
true
false
false
false
false
false
low
28,790,948
Android android.util.EventLog.writeEvent
<p>How do I see the system written by android.util.EventLog.writeEvent in android? They don't appear in the LogCat because they are system level logs. But how or what interface can I use to see them?</p>
How do I see the system written by android.util.EventLog.writeEvent in android? They don't appear in the LogCat because they are system level logs. But how or what interface can I use to see them?
java|android|logging|build|android-source
0
2015-03-01T06:52:01.270Z
2,015
3
6
6
409
1
196
40
5
0
false
false
false
false
false
false
zero
28,790,985
programmatically update android Vector Drawable
<p>I have a VectorDrawable consists of 9 rectangles. This is defined as an XML in the the drawables folder. I have this set as the background for an ImageView that I have declared in xml. <code>android:src="@drawable/squares00"</code> I would like to change the color of one or more of the squares programatically at r...
I have a VectorDrawable consists of 9 rectangles. This is defined as an XML in the the drawables folder. I have this set as the background for an ImageView that I have declared in xml. android:src="@drawable/squares00" I would like to change the color of one or more of the squares programatically at run time. I know th...
android|android-vectordrawable
32
2015-03-01T06:57:37.473Z
2,015
3
6
6
18,477
3
661
47
2
0
false
false
true
true
true
false
high
28,790,999
image slider on Tab Selection in Android
<p>i want to implement image slider on tab selection in android without using fragment .Already i have created 2 view pager one is home information and another second is only images.Right now i want to show tab and view pager only in single activity.I have create two tabs in activity but i don't understand how to show ...
i want to implement image slider on tab selection in android without using fragment .Already i have created 2 view pager one is home information and another second is only images.Right now i want to show tab and view pager only in single activity.I have create two tabs in activity but i don't understand how to show vie...
android
0
2015-03-01T06:59:45.850Z
2,015
3
6
6
221
0
532
40
1
0
false
true
false
false
false
false
zero
28,791,001
How to use one activity with multiple possible values
<p>So I have one activity with a list of profile names which needs to link to another screen with an extended profile description.</p> <p>So is it possible to use the <code>putExtra()</code> and <code>getExtra()</code> methods of an intent to pass a value that can be used to refer to the <code>android:text</code>(of a...
So I have one activity with a list of profile names which needs to link to another screen with an extended profile description. So is it possible to use the putExtra() and getExtra() methods of an intent to pass a value that can be used to refer to the android:text (of a TextView ) and the android:src (of an ImageView ...
android|android-intent|android-activity
0
2015-03-01T06:59:52.910Z
2,015
3
6
6
46
2
380
53
3
0
false
false
false
false
false
false
zero
28,791,009
In eclipse how to create a new cpp file
<p>I would like to know how to create a new cpp file in my project using Eclipse.</p> <p>I created a new cocos2d-x project and imported android project in Eclipse using "File->New->Project->Android->Android Project From Existing Code"</p> <p>Now when I right click on the classes folder under my project, selecting Ne...
I would like to know how to create a new cpp file in my project using Eclipse. I created a new cocos2d-x project and imported android project in Eclipse using "File->New->Project->Android->Android Project From Existing Code" Now when I right click on the classes folder under my project, selecting New->Class I could see...
android|c++|eclipse
3
2015-03-01T07:00:34.343Z
2,015
3
7
6
232
2
458
39
3
0
false
false
false
false
false
false
low
28,791,067
XML shape android
<p>I have an oval shape that I made rounded, and i want to add a smaller oval in the center of this one with another color. When I try to do this, I can see the smallest and they always have the same size </p> <p>Can i overlay two shapes without masking the other? i did this but I can see the smallest shape :</p> <p...
I have an oval shape that I made rounded, and i want to add a smaller oval in the center of this one with another color. When I try to do this, I can see the smallest and they always have the same size Can i overlay two shapes without masking the other? i did this but I can see the smallest shape : [CODE]
android|xml
0
2015-03-01T07:09:45.720Z
2,015
3
7
6
81
2
306
17
2
1
true
false
false
false
false
false
zero
28,791,094
setter getter on android
<p>maybe its really stupid question. but i stuck 5 hours because this setter getter.</p> <p>i have class Home_Fragment, there is value id_product in there.. this my Home_Fragment class</p> <pre><code>public class Home_Fragment extends ListFragment { private Detail_Produk dp; @Override public void onActivityCreated(...
maybe its really stupid question. but i stuck 5 hours because this setter getter. i have class Home_Fragment, there is value id_product in there.. this my Home_Fragment class [CODE] and in my Detail_Produk class [CODE] when i call activity Detail_Produk from another activity (not Home_Fragment). on line Toast its givin...
java|android|setter|getter
0
2015-03-01T07:13:54.233Z
2,015
3
7
6
468
3
503
24
4
2
true
false
false
false
false
false
zero
28,791,134
Accessing a custom column in Parse.com user table returning me null
<p>I am trying to retrieve a new column called "address" I created in Parse User in my android app. But it returns me nullPointerException error and returns me nothing although I filled the address in the table. <br/> This <a href="https://stackoverflow.com/questions/25474073/custom-column-parse-query">link</a> only sh...
I am trying to retrieve a new column called "address" I created in Parse User in my android app. But it returns me nullPointerException error and returns me nothing although I filled the address in the table. This link only shows the way to store your custom field in the user table but I need to retrieve what I stored ...
android|parse-platform
3
2015-03-01T07:20:45.500Z
2,015
3
7
6
1,423
3
451
67
2
1
true
false
false
false
false
false
low