id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
37,656,148
Get Drawable id for dynamically generated Resource Name/String
<p>the .setBackgroundResource can only accept an int and not a string, but it would look much nicer if it wouldnt be so fat and ugly for every 'levelup' for fabrik, so is there a way to simplify this:</p> <pre><code> datafab1 = getSharedPreferences("datafab1", MODE_PRIVATE); if (datafab1.getInt("Level", 1) == 3) ...
the .setBackgroundResource can only accept an int and not a string, but it would look much nicer if it wouldnt be so fat and ugly for every 'levelup' for fabrik, so is there a way to simplify this: [CODE] to something like this: [CODE]
java|android|performance
0
2016-06-06T11:23:31.773Z
2,016
6
11
0
548
2
235
62
3
2
true
false
false
false
false
false
zero
38,038,801
Couchbase Lite filtered pull replication
<p>I've got android and web apps. Android app uses Couchbase Lite, web app uses Couchbase. I'm using Couchbase Sync Gateway to enable data replication between those two databases.</p> <p>When user logs in to mobile app for the first time I'd like to pull replicate the document with data on this specific user (based on...
I've got android and web apps. Android app uses Couchbase Lite, web app uses Couchbase. I'm using Couchbase Sync Gateway to enable data replication between those two databases. When user logs in to mobile app for the first time I'd like to pull replicate the document with data on this specific user (based on username)....
android|couchbase|couchbase-lite|couchbase-sync-gateway
1
2016-06-26T13:09:26.783Z
2,016
6
13
6
548
2
1,292
40
4
5
true
false
false
false
false
false
low
37,680,025
From notification to fragment when app is in the background?
<p>I am building an app with fragments and I am using Firebase notifications. I want, when user click on notification, to send him to the Fragment1 on MainActivity. And, I've done it, but the problem is that works only when app is in the foreground. When app is in background notification sends me to the MainActivity no...
I am building an app with fragments and I am using Firebase notifications. I want, when user click on notification, to send him to the Fragment1 on MainActivity. And, I've done it, but the problem is that works only when app is in the foreground. When app is in background notification sends me to the MainActivity not t...
android|android-fragments|firebase-notifications
0
2016-06-07T12:55:23.093Z
2,016
6
12
1
2,084
2
433
60
3
2
true
false
false
false
false
false
zero
37,691,953
AlertDialog with ArrayAdapter for a dinamic ListView
<p>I want to generate an AlertDialog that contains a ListView. Searching, I found that the better way to do this, is with ArrayAdapter.</p> <p>I try on entire Web and it just doesn't work. The following code don't do some significantly stuff, because I don't know how to proceed.</p> <p><strong>I have to update the li...
I want to generate an AlertDialog that contains a ListView. Searching, I found that the better way to do this, is with ArrayAdapter. I try on entire Web and it just doesn't work. The following code don't do some significantly stuff, because I don't know how to proceed. I have to update the listView or the adapter? Wher...
android|listview|android-arrayadapter|android-alertdialog
-1
2016-06-08T01:36:54.343Z
2,016
6
1
2
2,852
2
425
52
4
1
true
false
true
false
false
true
negative
37,911,531
is it possible to get mipmap image by id?
<p>I have stored image icons in res/mipmap folder of my android project. Each of them have their own image id. I want to check if I have image there by image id. I want to do something like,</p> <pre><code>String input_id = "blue_image"; ImageView image; if (image.getImageByID(input_id)){ ## if image with blue_image ...
I have stored image icons in res/mipmap folder of my android project. Each of them have their own image id. I want to check if I have image there by image id. I want to do something like, [CODE] If I know that blue_image exists then I usually get it like [CODE] There seems to be 2 problems in this question. One is abou...
java|android|mipmaps
3
2016-06-19T20:29:35.507Z
2,016
6
20
6
3,620
2
504
41
3
2
true
false
true
false
false
false
low
37,705,293
Error in Alert dialog
<p>There is an error in 'return view' at listview.setOnItemLongClickListener method. The error says cannot return a value from a method with void result type. I am trying to create an alert dialog where it will notify the user whether it wants to delete.</p> <pre><code>package com.example.user.swen; import android.a...
There is an error in 'return view' at listview.setOnItemLongClickListener method. The error says cannot return a value from a method with void result type. I am trying to create an alert dialog where it will notify the user whether it wants to delete. [CODE]
android
0
2016-06-08T14:25:51.600Z
2,016
6
14
2
37
2
258
21
1
1
true
false
false
false
false
false
zero
37,709,360
Why google play showing support for just 40 to 45 percent devices
<p>I have searched through the google but could not find any reason why google play showing support for only 45% devices it support to 90 to 92 percent devices on the play store</p> <p>here my manifest permissions </p> <pre><code> &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt; &lt;uses-permi...
I have searched through the google but could not find any reason why google play showing support for only 45% devices it support to 90 to 92 percent devices on the play store here my manifest permissions [CODE] but google play showing some extra permissions am also wondering why play store showing this Also i have a qu...
android|android-fragments|android-permissions
0
2016-06-08T17:42:16.173Z
2,016
6
17
2
37
2
443
65
3
1
true
false
false
false
false
false
zero
37,862,905
Detecting object reaching an image
<p>I'm new in this field, and I have a question -<br> I have an image, and an object. Let's call the object, <strong>"ball"</strong>.<br> The ball is moving, and at some point it reaches the image. And here's my problem -<br> How can I detect that the ball touched the image?<br> <strong>Thank you in advance.</strong></...
I'm new in this field, and I have a question - I have an image, and an object. Let's call the object, "ball" . The ball is moving, and at some point it reaches the image. And here's my problem - How can I detect that the ball touched the image? Thank you in advance.
java|android|canvas
-1
2016-06-16T15:04:31.297Z
2,016
6
15
3
37
2
266
34
3
0
false
false
false
false
false
true
negative
37,655,302
Android MPAndroidChart PieChart not getting hole tranparent color
<p>In my Android application I implemented an MPAndroidChart PieChart. I'm getting everything according to my requirement. But I am not able to prevent transparent color inside Pie chart. How do I solve this issue?</p> <p>This is my sample code</p> <pre><code> mChart.setDrawHoleEnabled(true); mChart.setHoleCol...
In my Android application I implemented an MPAndroidChart PieChart. I'm getting everything according to my requirement. But I am not able to prevent transparent color inside Pie chart. How do I solve this issue? This is my sample code [CODE]
android|mpandroidchart
1
2016-06-06T10:40:26.213Z
2,016
6
10
0
2,853
2
241
65
2
1
true
false
true
false
false
false
low
37,705,449
Why Items from first page in ArrayList are deleted when I go to page2?
<p>I am building an app and I use Arraylist, which is emmited from Observable. In that list I have 20 items. First 10 items are on page 1 and second 10 items are on page 2. But, when I go on page 2, the first 10 items are deleted, and it is shown only 10 items from page 2, but I don't what that. I want to show all that...
I am building an app and I use Arraylist, which is emmited from Observable. In that list I have 20 items. First 10 items are on page 1 and second 10 items are on page 2. But, when I go on page 2, the first 10 items are deleted, and it is shown only 10 items from page 2, but I don't what that. I want to show all that 20...
android|arraylist|observable|observers|subscribe
0
2016-06-08T14:31:39.110Z
2,016
6
14
2
38
2
416
70
5
1
true
false
false
false
false
false
zero
37,763,364
Android / Java - Overriding
<p>I have two Classes "BaseActivity" and "ChildActivity" i.e. ChildActivity inherts BaseActivity. <strong>Question: In my following Code Snippet, whenever i press LEFT BUTTON - it logs me "I am From Child Activity". What would i need to do if i want to call SUPER CLASS functionality by default.</strong></p> <pre><cod...
I have two Classes "BaseActivity" and "ChildActivity" i.e. ChildActivity inherts BaseActivity. Question: In my following Code Snippet, whenever i press LEFT BUTTON - it logs me "I am From Child Activity". What would i need to do if i want to call SUPER CLASS functionality by default. [CODE] Child Activity: [CODE]
java|android|oop|overriding
2
2016-06-11T11:49:18.173Z
2,016
6
11
5
38
2
314
27
4
2
true
false
false
false
false
false
low
37,775,871
Contents of str as a name of array
<p>My problem seems simple, so hopefully I can find the answer quickly.<BR> To summarize my code, I generate a random number between 1 &amp; 2. With that I have a string <code>questionName</code> containing <code>easy1</code> or <code>easy2</code> (<code>"easy" + randomNum</code>) depending on the random number. I want...
My problem seems simple, so hopefully I can find the answer quickly. To summarize my code, I generate a random number between 1 & 2. With that I have a string questionName containing easy1 or easy2 ( "easy" + randomNum ) depending on the random number. I want to print the contents of questionName but instead of a strin...
java|android
0
2016-06-12T15:18:52.870Z
2,016
6
15
6
38
2
373
34
2
1
true
false
false
false
false
false
zero
37,925,614
Display db content in another acitivity by clicking on item in listview
<p>So I have this problem, my listview is populated from Sqlite DB and I can click on any item in the listview. When I click on an item I want to display, in a new activity these "name, surname, age etc" details but these should be retrieved from my database. Can anyone help me?</p> <p>Thank you.</p>
So I have this problem, my listview is populated from Sqlite DB and I can click on any item in the listview. When I click on an item I want to display, in a new activity these "name, surname, age etc" details but these should be retrieved from my database. Can anyone help me? Thank you.
android|sqlite|listview
-4
2016-06-20T14:54:58.210Z
2,016
6
14
0
38
2
287
71
3
0
false
false
false
false
false
true
negative
38,011,050
Android Scrollview doesn't work behind navigation drawer
<p>I have an <code>Activity</code> which have navigation drawer that works perfectly but behind the drawer <code>ScrollView</code> doesn't work.</p> <p>Here is my xml code,</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ...
I have an Activity which have navigation drawer that works perfectly but behind the drawer ScrollView doesn't work. Here is my xml code, [CODE] Please help!
android|navigation-drawer|android-scrollview
0
2016-06-24T10:19:27.630Z
2,016
6
10
4
1,318
2
156
56
3
1
true
false
false
false
false
false
zero
38,039,574
set FAB anchor gravity dynamically
<p>I need to be able to change the <code>app:layout_anchorGravity=&quot;center&quot;</code> of the FAB from <code>center</code> to <code>bottom|start</code> from the code. I've found this example:</p> <pre><code>CoordinatorLayout.LayoutParams p = (CoordinatorLayout.LayoutParams) fab.getLayoutParams(); p.setAnchorId(xxx...
I need to be able to change the app:layout_anchorGravity=&quot;center&quot; of the FAB from center to bottom|start from the code. I've found this example: [CODE] but it's for setting the anchor and not the anchor gravity.
android|android-layout|floating-action-button
6
2016-06-26T14:37:16.483Z
2,016
6
14
6
4,902
2
221
34
3
1
true
false
true
false
false
false
medium
37,629,736
Can not find directory in Android
<p>I am trying to access a directory at <code>Device storage&gt; DCIM &gt; MyDir</code>.</p> <p>What I've tried so far- </p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); File DcimDirectory = new File(E...
I am trying to access a directory at Device storage> DCIM > MyDir . What I've tried so far- [CODE] In either case, it says directory not exits. Any help? UPDATE: My Android version is 5 (Lollipop), API level-21. Don't have any external SD card.
android|directory
0
2016-06-04T11:35:59.697Z
2,016
6
11
5
39
2
244
33
2
1
true
false
false
false
false
false
zero
37,821,235
I'm trying to use ExpandableListView with a custom adapter, but cannot get anything to display
<p>I am trying to use an ExpandableListView <a href="http://www.101apps.co.za/index.php/articles/expandable-lists.html" rel="nofollow">using this tutorial</a> to display physical constants and their info. I have made layouts for the child, the parent, and the activity I would like the list to display in. My data is s...
I am trying to use an ExpandableListView using this tutorial to display physical constants and their info. I have made layouts for the child, the parent, and the activity I would like the list to display in. My data is stored in a HashMap in the MyDataProvider class. I believe that all of this is ok and should work. Th...
java|android|hashmap|expandablelistview
0
2016-06-14T20:12:11.373Z
2,016
6
20
1
39
2
870
94
4
2
true
false
false
false
false
false
zero
38,002,274
How to store the large volume of steaming data in sqllite for a mobile app
<p>I am building a mobile appfor Reporting and Business Intelligence. The app will show a live stream of billing, payments and other data to management of a company which is doing business across 70 different physical locations. The idea is to see what is happening in the business across all locations as a live stream ...
I am building a mobile appfor Reporting and Business Intelligence. The app will show a live stream of billing, payments and other data to management of a company which is doing business across 70 different physical locations. The idea is to see what is happening in the business across all locations as a live stream on ...
android|ios|sqlite|mobile
1
2016-06-23T21:35:43.083Z
2,016
6
21
3
39
2
691
74
4
0
false
false
false
false
false
false
low
37,718,675
how to use custom layout in existing layout using dynamic linearlayout
<p>Hello i am developing one app where i want to inflate layout in my Card view fro existing layout.And i want to show list of text view dynamically according to my string array.</p> <p>Here is my existing layout</p> <p>and i want to inflate following layout in last cardview of above layout</p> <p>so tried with codi...
Hello i am developing one app where i want to inflate layout in my Card view fro existing layout.And i want to show list of text view dynamically according to my string array. Here is my existing layout and i want to inflate following layout in last cardview of above layout so tried with coding to do it but it display ...
android|android-linearlayout|textview|dynamic-view
1
2016-06-09T06:47:36.077Z
2,016
6
6
3
551
2
606
70
4
0
false
false
false
false
false
false
low
37,907,355
Set image as wallpaper , lock screen, wait screen
<p>I want implements code android to set image as wallpaper , lock screen, wait screen from url:</p> <p><img src="https://i.stack.imgur.com/0mU0C.png" alt="display as"></p>
I want implements code android to set image as wallpaper , lock screen, wait screen from url:
android
2
2016-06-19T12:43:29.083Z
2,016
6
12
6
807
2
93
49
1
0
false
false
false
false
false
false
low
37,776,395
Firebase Exceptions handling on create user by email
<p>How to handle errors in the new Firebase sdk for authentication? In the previous versions i can find the OnAuthenticationError method and it gives FirebaseException error but in the new verison i dont see such method. Lets say i create a user by email password,for some reason exception occurs . The only way i can s...
How to handle errors in the new Firebase sdk for authentication? In the previous versions i can find the OnAuthenticationError method and it gives FirebaseException error but in the new verison i dont see such method. Lets say i create a user by email password,for some reason exception occurs . The only way i can see t...
android|firebase-authentication
1
2016-06-12T16:09:39.243Z
2,016
6
16
6
3,111
2
552
52
2
0
false
false
true
false
false
false
low
37,648,785
Retrieving data from parse.com and displaying in a table layout
<p>I am able to retrieve the data, according to the logs, but not sure how to display them. I have created an activity with a table layout and tablerow with a textview to display the categories.</p> <p><a href="https://i.stack.imgur.com/VINRz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VINRz.pn...
I am able to retrieve the data, according to the logs, but not sure how to display them. I have created an activity with a table layout and tablerow with a textview to display the categories. Logs:
android|listview|parse-platform|android-tablelayout
0
2016-06-06T02:26:24.830Z
2,016
6
2
0
40
2
197
63
4
0
false
false
false
false
false
false
zero
37,788,734
I have an Image View in a layout in android, how can i zoom it for a short time after clicking?
<p>I'm a beginner in android programming. I only need to show to the user that he clicked on the image view by this short duration zooming. I need for this simple effect.</p>
I'm a beginner in android programming. I only need to show to the user that he clicked on the image view by this short duration zooming. I need for this simple effect.
android
-2
2016-06-13T11:32:01.227Z
2,016
6
11
0
40
2
167
95
1
0
false
false
false
false
false
true
negative
37,938,916
Error:Execution failed for task ':appName:processDebugResources'.?
<p>after adding some images ressources and make a new build i get this error:</p> <blockquote> <p>Error:Execution failed for task ':appName:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/user/Android/Sdk/build-tools/22...
after adding some images ressources and make a new build i get this error: Error:Execution failed for task ':appName:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/user/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-ze...
android|cordova|ionic-framework
0
2016-06-21T08:10:59.027Z
2,016
6
8
1
40
2
335
66
3
0
false
false
false
false
false
false
zero
37,964,486
Get toolbar button title inside fragment
<p>On toolbar there is a button. When the button is clicked a dialog popup's. In the dialog there are 2 spinner and a Select button. I need to get the current selected items of spinner inside Fragment. How can i do it?</p> <p><a href="https://i.stack.imgur.com/Uanz6.png" rel="nofollow noreferrer"><img src="https://i.s...
On toolbar there is a button. When the button is clicked a dialog popup's. In the dialog there are 2 spinner and a Select button. I need to get the current selected items of spinner inside Fragment. How can i do it? [CODE] [CODE]
android|android-fragments|android-toolbar|android-dialog
0
2016-06-22T09:52:14.957Z
2,016
6
9
2
296
2
229
40
4
2
true
false
false
false
false
false
zero
37,971,799
PublishSubject's onNext call in different thread after I update to Retrofit 2.0
<p>I have a following class that my coworker created while we were using Retrofit 1.9</p> <pre><code>public class SomeApiCallAction { private Subscription subscription; private NoInternetConnectionInterface noInternetConnectionInterface; public interface NoInternetConnectionInterface { PublishSubject&lt;...
I have a following class that my coworker created while we were using Retrofit 1.9 [CODE] SomeApiCallAction is just a simple class that wrap retrofit api call inside, the only thing special is its retry function. The retry function will check if throwable is kind of IOException or SocketTimeoutException or not, if it i...
android|retrofit|rx-java|retrofit2
4
2016-06-22T15:01:36.730Z
2,016
6
15
2
1,064
2
2,612
79
4
8
true
false
false
false
false
false
low
38,011,359
Xamarin upgrade causes "class file has wrong version 52.0, should be 50.0" error
<p>I upgraded to the latest version of Xamarin in Visual Studio 2015. I then compiled my Android project and was confronted with this error:</p> <blockquote> <p>cannot access android.app.Activity bad class file: [DRIVE]:[android-sdk-folder]\platforms\android-24\android.jar(android/app/Activity.class) class file ...
I upgraded to the latest version of Xamarin in Visual Studio 2015. I then compiled my Android project and was confronted with this error: cannot access android.app.Activity bad class file: [DRIVE]:[android-sdk-folder]\platforms\android-24\android.jar(android/app/Activity.class) class file has wrong version 52.0, should...
java|android|xamarin|xamarin.android
3
2016-06-24T10:36:23.630Z
2,016
6
10
4
1,576
2
606
80
4
0
false
false
false
false
false
false
low
38,007,025
Manually build a login flow for Facebook on Android
<p>I'm working on a project where I need to implement signing in using Facebook authorization on android. I've implemented Facebook API but it provides access token, when I need code (which is used to get token). I found advises saying that I can't use/modify FB api to just get code, instead I have to program my own lo...
I'm working on a project where I need to implement signing in using Facebook authorization on android. I've implemented Facebook API but it provides access token, when I need code (which is used to get token). I found advises saying that I can't use/modify FB api to just get code, instead I have to program my own login...
android|facebook|api|oauth|token
0
2016-06-24T06:36:57.647Z
2,016
6
6
4
2,088
2
492
51
5
0
false
false
false
false
false
false
zero
37,835,450
Handling very close vertices of cloth cloth interaction (twinkling holes behavior)
<p>I have three different OBJs in my scene, a body, and a shirt and pant simulated over that body (rendered in that order). </p> <p>Rendering was showing inner shirt outside the pants at some points in the form of some 'holes' on my test android devices while it works just fine on the desktops.</p> <p><a href="https:...
I have three different OBJs in my scene, a body, and a shirt and pant simulated over that body (rendered in that order). Rendering was showing inner shirt outside the pants at some points in the form of some 'holes' on my test android devices while it works just fine on the desktops. I guessed that some points are very...
android|opengl-es|precision
0
2016-06-15T12:27:43.463Z
2,016
6
12
2
41
2
907
82
3
0
false
false
false
false
false
false
zero
37,772,427
Unknown class: googleMap and 2 more
<p>My goal is to make Google Maps the Main Activity by following instructions <a href="http://www.codeproject.com/Tips/678431/Example-of-using-google-maps-service-and-gps-in-an" rel="nofollow">here</a>. </p> <p>I pasted the code from the site(MainActivity.java's code below) and imported all the required packages(alt+e...
My goal is to make Google Maps the Main Activity by following instructions here . I pasted the code from the site(MainActivity.java's code below) and imported all the required packages(alt+enter). Nevertheless, a few errors remained(Right now, I am focused on one, might ask more about the others in the near future). Th...
android|google-maps|android-studio|eclipse-adt
0
2016-06-12T08:57:51.273Z
2,016
6
8
6
297
2
654
35
4
1
true
false
false
false
false
false
zero
37,823,627
Duplicate sep_approx_spanish.txt file in Google App Engine
<p>I'm going through the tutorials for endpoints. I am trying to get this project to run but my Android studio is presenting a strange problem when I try to run the project. </p> <p>The error is: </p> <pre><code>Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. &gt; com.android.build....
I'm going through the tutorials for endpoints. I am trying to get this project to run but my Android studio is presenting a strange problem when I try to run the project. The error is: [CODE] This is my gradle for the backend that is throwing the error: [CODE] I have tried this stackoverflow's accepted answer but it di...
android|google-app-engine
2
2016-06-14T23:14:48.217Z
2,016
6
23
1
297
2
679
58
2
5
true
false
false
false
false
false
low
37,714,828
Expandable ListView is very slow in android os
<p>My expandable <code>listview</code> scroll very slow and take a while when I click on the parent category until I see the <code>child</code> view.</p> <p>Group List Activity:</p> <pre><code>public class GroupsListActivity extends Activity { String loggedUserId = Model.getInstance().getLoggedUserId(); Lis...
My expandable listview scroll very slow and take a while when I click on the parent category until I see the child view. Group List Activity: [CODE] This is the activity of the Adapter where I load the expandable listview : [CODE] The loading image method: [CODE]
android|android-studio|scrollbar|expandablelistview
2
2016-06-08T23:57:59.817Z
2,016
6
23
2
2,089
2
263
46
4
3
true
false
false
false
false
false
low
37,846,127
Fragment not attached to Activity
<p>I have activity with TabLayot.</p> <pre><code>public class MapTab extends AppCompatActivity { private Toolbar toolbar; private TabLayout tabLayout; private ViewPager viewPager; public MapTab() { } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte...
I have activity with TabLayot. [CODE] XML [CODE] In first Tab, ListFragment [CODE] In secondary only text. When I go to activity with TabLayout an error occurs: [CODE] Specifically 1: [CODE] in Fragment with ListFragment 2: setupViewPager(viewPager); 3: adapter.addFragment(new PvPMap(), "PvP Карты"); in activity with T...
android
2
2016-06-15T21:30:52.687Z
2,016
6
21
2
12,585
2
365
33
1
5
true
false
true
true
false
false
low
37,811,002
Need to get JSONObjects from this
<p>This is my URL "<a href="http://182.18.161.240:7070/sfaweb-1.1.015/get/retailers/dl-0004/2" rel="nofollow">http://182.18.161.240:7070/sfaweb-1.1.015/get/retailers/dl-0004/2</a>"</p> <p>I was able to download the data through volley, but while parsing I'm not able to retrieve anything from this. Help would be deeply...
This is my URL " http://182.18.161.240:7070/sfaweb-1.1.015/get/retailers/dl-0004/2 " I was able to download the data through volley, but while parsing I'm not able to retrieve anything from this. Help would be deeply appreciated. Response is nothing but the downloaded data. [CODE] What am I missing in this? I have been...
java|android|json|sqlite
3
2016-06-14T11:41:26.843Z
2,016
6
11
1
42
2
397
33
4
1
true
false
false
false
false
false
low
37,904,517
Frequent Communication between activities
<p>I have two activities Activity A and Activity B that needs to communicate very frequently, if i will use startActivity on both activities then every times it will create new instances of them. If i will use launchMode as singleTask then suppose from Activity A i call Activity B then if Activity B doesn't exist in th...
I have two activities Activity A and Activity B that needs to communicate very frequently, if i will use startActivity on both activities then every times it will create new instances of them. If i will use launchMode as singleTask then suppose from Activity A i call Activity B then if Activity B doesn't exist in the T...
android|android-activity
-2
2016-06-19T06:19:17.103Z
2,016
6
6
6
42
2
734
41
2
0
false
false
false
false
false
true
negative
37,999,441
ArrayAdapter and listview Error
<p>I tried to setadapter for ther list view in the following code.</p> <pre><code>public class MainActivity extends AppCompatActivity { JSONArray jsonObject; ArrayList&lt;String&gt; arrayList= new ArrayList&lt;String&gt;(); static ArrayList&lt;String&gt; articles= new ArrayList&lt;String&gt;(); static...
I tried to setadapter for ther list view in the following code. [CODE] but this error always appears java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference I dont know what is null ther arraylist is of size 3 and ...
java|android|listview|android-arrayadapter
0
2016-06-23T18:43:25.063Z
2,016
6
18
3
42
2
366
31
4
1
true
false
false
false
false
false
zero
38,007,915
How to moveactivity in background in android?
<p>I have an App in which I am implemented <strong>onBackPressed</strong> but when I press onBack it will finish the activity by calling finish(),</p> <p>its ok it will work fine ,but when I press device home button it will also finish activity,what I want <strong>onBcakpressed</strong> it will finish activity and whe...
I have an App in which I am implemented onBackPressed but when I press onBack it will finish the activity by calling finish(), its ok it will work fine ,but when I press device home button it will also finish activity,what I want onBcakpressed it will finish activity and when press device home button it will move that ...
android
1
2016-06-24T07:30:04.907Z
2,016
6
7
4
42
2
378
45
1
1
true
false
false
false
false
false
low
38,018,352
Couldn't load TextureAtlas from zip archive via AssetManager - libgdx
<p>I have 2 instances of AssetManager: one for basic textures and one for high quality textures. Basic textures are located in "android/assets" folder and high quality textures are packed in zip file. Content (file names) in this folders are the same - there are only better quality textures in zip archive.</p> <p>Asse...
I have 2 instances of AssetManager: one for basic textures and one for high quality textures. Basic textures are located in "android/assets" folder and high quality textures are packed in zip file. Content (file names) in this folders are the same - there are only better quality textures in zip archive. AssetManager th...
java|android|libgdx|ziparchive|texture-atlas
1
2016-06-24T16:44:08.730Z
2,016
6
16
4
554
2
785
69
5
5
true
false
false
false
false
false
low
37,841,716
InAppBrowser does not play Youtube videos on full screen mode in ionic
<p>I am developing an Android app using Cordova and Ionic framework. I am playing a YouTube video with InAppBrowser using the code below:</p> <pre><code>window.open('https://www.youtube.com/watch?v=v8WjMiodcKo'); </code></pre> <p>But the issue is it opens inappbrowser but doesn't have full screen mode option to watch...
I am developing an Android app using Cordova and Ionic framework. I am playing a YouTube video with InAppBrowser using the code below: [CODE] But the issue is it opens inappbrowser but doesn't have full screen mode option to watch videos. Is there anyway to do this?
android|cordova|ionic-framework|youtube|cordova-plugins
3
2016-06-15T17:11:49.610Z
2,016
6
17
2
3,626
2
266
70
5
1
true
false
true
false
false
false
low
38,055,194
Cannot find the GETTER for attribute 'app:vm' with value type Boolean
<p>I'm trying to use native 2-way android data binding in my custom control</p> <p>so I have something like that in xml</p> <pre><code>&lt;layout&gt; &lt;data&gt; &lt;variable name="item" type="Boolean"/&gt; &lt;/data&gt; ... &lt;my.control app:vm="@={item}"/&gt; ... &lt;/layout&gt; </code></pre> <hr> <p>Please not...
I'm trying to use native 2-way android data binding in my custom control so I have something like that in xml [CODE] Please note, it's question about @={} - native 2 way binding. and something like that in code: [CODE] My questions - how should I define getter for my viewModel? I don't find any guidance about it. I try...
java|android|data-binding|android-databinding|2-way-object-databinding
6
2016-06-27T13:25:40.370Z
2,016
6
13
0
4,138
2
407
69
5
2
true
false
true
false
false
false
medium
38,024,161
Android - Task is not running when it should
<p>I am using Backendless to store my app user's data. Backendless only has the option to make either your email or username unique. I made my username field unique and that is what the user will use to log in. The emails can be reused so I am making a method before registration to check if the email exists.</p> <p>Th...
I am using Backendless to store my app user's data. Backendless only has the option to make either your email or username unique. I made my username field unique and that is what the user will use to log in. The emails can be reused so I am making a method before registration to check if the email exists. This is the c...
java|android|android-asynctask
0
2016-06-25T01:39:04.110Z
2,016
6
1
5
43
2
998
44
3
2
true
false
false
false
false
false
zero
37,919,637
Cordova/jQuery - Identifying whether your app is being run on Web/Mobile browser or mobile app (Android/iOS)
<p>I develop apps for Android/iOS using Cordova/Phonegap. I generally use a single code base for my web and mobile content. I use a SQLite database and/or other native plugins when it is a mobile app and have to avoid those LOCs when I'm on web.</p> <p>But I'm facing a problem identifying whether my app is being run o...
I develop apps for Android/iOS using Cordova/Phonegap. I generally use a single code base for my web and mobile content. I use a SQLite database and/or other native plugins when it is a mobile app and have to avoid those LOCs when I'm on web. But I'm facing a problem identifying whether my app is being run on a web bro...
android|jquery|ios|cordova|jquery-mobile
0
2016-06-20T10:02:02.887Z
2,016
6
10
0
299
2
769
108
5
1
true
false
false
false
false
false
zero
37,767,307
Push notifications if app is closed (React-Native)
<p>I'm developing React-native app (iOS &amp; Android).<br> Server connected through web-socket. Server sends notifications about some specific events. App suppose to notify user (using alerts). What if I need to notify user even if app is running in background or closed - how can i do that? Push notifications with <a ...
I'm developing React-native app (iOS & Android). Server connected through web-socket. Server sends notifications about some specific events. App suppose to notify user (using alerts). What if I need to notify user even if app is running in background or closed - how can i do that? Push notifications with this library w...
android|ios|push-notification|react-native
7
2016-06-11T18:39:55.717Z
2,016
6
18
5
14,123
2
471
50
4
0
false
false
true
true
false
false
medium
37,621,460
How to make a ScrollView in android scrollable?
<p>I have the following layout, probably with many many errors: </p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/res-aut...
I have the following layout, probably with many many errors: [CODE] The main part ( GridLayout ) contains several input fields to input text, numbers etc. But when I click on such an input field the touch-keypad opens and overlaps part of my input fields! Although this ViewGroup is placed inside a ScrollView , I am not...
android
0
2016-06-03T18:46:46.090Z
2,016
6
18
4
44
2
417
47
1
1
true
false
false
false
false
false
zero
37,804,349
How do we pass different value to another activity by selecting choice-based table row in a table
<p>I have created a table containing dynamic table rows. Each table row contain 5 textview containing data's like region name ,regioncode ,target etc. I have implemented a table row OnclickListner,So a user can select the table row to view more specific data in another activity. The problem is each table row Contain mu...
I have created a table containing dynamic table rows. Each table row contain 5 textview containing data's like region name ,regioncode ,target etc. I have implemented a table row OnclickListner,So a user can select the table row to view more specific data in another activity. The problem is each table row Contain must ...
android
0
2016-06-14T06:22:07.590Z
2,016
6
6
1
44
2
536
97
1
2
true
false
false
false
false
false
zero
37,989,428
Creating ListVew using Fragment
<p>I am trying to populate the <strong>list view</strong> using Fragment. But app crashes when I run it. Am getting the <strong>JSON</strong> data from the other send.I tired to add data received into the list and then updating it. Any help ? Here is my code.</p> <pre><code>import android.app.ProgressDialog; import an...
I am trying to populate the list view using Fragment. But app crashes when I run it. Am getting the JSON data from the other send.I tired to add data received into the list and then updating it. Any help ? Here is my code. [CODE] Here is the log: [CODE]
android|listview|android-asynctask
-1
2016-06-23T10:46:18.110Z
2,016
6
10
3
44
2
253
31
3
2
true
false
false
false
false
true
negative
38,002,779
Why listview receiving some large icons and some small?
<p>i am receiving some Icons and text from server Using json string, but there is the problem that some icons display very large size and some small. i want that all icons should be display small size no one should be large icons in list view.</p> <p>here is my custom_adapter xml.</p> <pre><code>&lt;LinearLayout xmln...
i am receiving some Icons and text from server Using json string, but there is the problem that some icons display very large size and some small. i want that all icons should be display small size no one should be large icons in list view. here is my custom_adapter xml. [CODE] here is my Tipster_adapter.java code [COD...
java|android|json|xml|listview
0
2016-06-23T22:15:40.400Z
2,016
6
22
3
44
2
322
55
5
2
true
false
false
false
false
false
zero
37,988,332
How to get cover photo with the new Google Sign-In API in Android?
<p>In the new Google Sign-In API, I can get the profile photo using the following lines:</p> <pre><code>private void handleSignInResult(GoogleSignInResult result) { if (result.isSuccess()) { GoogleSignInAccount account = result.getSignInAccount(); String profilePhoto = account.getPh...
In the new Google Sign-In API, I can get the profile photo using the following lines: [CODE] But, there is no method in the account object to get the cover photo, so my question is : how to get the cover photo ? Also, I want to get the birthdate and phone number Thanks in advance :)
android|google-api|google-signin
0
2016-06-23T09:59:19.413Z
2,016
6
9
3
812
2
283
66
3
1
true
false
false
false
false
false
zero
38,036,011
How to call Number Picker onvaluechange method from button onclick?
<p>NumberPicker in xml:</p> <pre><code>&lt;NumberPicker android:id="@+id/np" android:layout_width="wrap_content" android:layout_height="100dp" android:layout_weight="1" /&gt; </code></pre> <p>And here is button:</p> <pre><code>&lt;Button android:id="@+id/button" android:layout...
NumberPicker in xml: [CODE] And here is button: [CODE] OnValueChangedListener on numberpicker: [CODE] Whenever user changes the value, the statements in onvaluechange execute like they should. But I want to update the value of number picker using a button. Now, I have set a onclicklistener to button: [CODE] This works,...
android|android-number-picker
2
2016-06-26T07:04:20.923Z
2,016
6
7
6
2,604
2
635
67
2
4
true
false
true
false
false
false
low
37,713,537
how to listen on ImageView VisibiltyChanged
<p>I'm trying to do something once the <code>setVisibility</code> function finish it's work, is there anyway that I can accomplish that? because <code>OnSystemUiVisibilityChangeListener</code> isn't what I need , and I can't find any method that allows me to!</p>
I'm trying to do something once the setVisibility function finish it's work, is there anyway that I can accomplish that? because OnSystemUiVisibilityChangeListener isn't what I need , and I can't find any method that allows me to!
android|android-imageview
0
2016-06-08T21:48:29.600Z
2,016
6
21
2
45
2
230
43
2
0
false
false
false
false
false
false
zero
37,788,127
How set text elements from 2 differents table in custom adapter?
<p>There is my class with custom adapater It's working with date and title. Date and title are with table Page and textTag with Table Tag </p> <pre><code>public class MyAdapter extends ArrayAdapter &lt;PageTag&gt; { Context context; int ressource; ArrayList&lt;Page&gt; data ; TextView...
There is my class with custom adapater It's working with date and title. Date and title are with table Page and textTag with Table Tag [CODE] My getView method. [CODE] My table PageTag [CODE] my ListPageActivity [CODE] getAllpageArray method [CODE] same thing for getAllTagArray
android|arraylist|android-arrayadapter|adapter|settext
0
2016-06-13T11:04:12.573Z
2,016
6
11
0
45
2
278
64
5
5
true
false
false
false
false
false
zero
37,932,594
Textures are not drawn separatley
<p>I am trying to draw different textures of balloons and I want them to appear in different times about half second between each one, and move in the world. first balloons are rendered but after about half second the other balloons are rendered next to the previous ones, not in the initial place: this is code:</p> <p...
I am trying to draw different textures of balloons and I want them to appear in different times about half second between each one, and move in the world. first balloons are rendered but after about half second the other balloons are rendered next to the previous ones, not in the initial place: this is code: [CODE] Bal...
java|android|libgdx
0
2016-06-20T22:07:05.407Z
2,016
6
22
0
45
2
338
33
3
2
true
false
false
false
false
false
zero
37,968,282
How to open a layer that hide the main screen while tapping the FloatingActionButton
<p>When user taps <code>FloatingActionButton</code> then a list of <code>FloatingActionButton</code> should open and at the same time a background layer should open which covers the background main layout but should not hide the FABs. </p> <p>I am able to do that in Lollipop and above but in the KitKat and below the l...
When user taps FloatingActionButton then a list of FloatingActionButton should open and at the same time a background layer should open which covers the background main layout but should not hide the FABs. I am able to do that in Lollipop and above but in the KitKat and below the layer is also covering the FABs. How ca...
android|material-design|floating-action-button
0
2016-06-22T12:39:07.713Z
2,016
6
12
2
45
2
484
84
3
4
true
false
false
false
false
false
zero
37,705,367
How do I get TLS 1.2 to work in Android 4.4 without the help of Google Play Services?
<p>I have an Android app that strictly runs on a version of Android that cannot use Google Play Services. The app makes data requests via HttpsUrlConnection from a remote server that is being update to only support TLS 1.2 handshaking. I looked at this <a href="http://blog.dev-area.net/2015/08/13/android-4-1-enable-tls...
I have an Android app that strictly runs on a version of Android that cannot use Google Play Services. The app makes data requests via HttpsUrlConnection from a remote server that is being update to only support TLS 1.2 handshaking. I looked at this blog post and tried to implement it but it does not work for me. I kno...
android|ssl|android-4.4-kitkat|tls1.2
4
2016-06-08T14:28:37.207Z
2,016
6
14
2
4,397
2
561
85
4
0
false
false
true
false
false
false
low
38,043,042
Custom RatingBar Shows different number of stars when on api 23
<p>When setting RatingBar in xml file and set android:drawableProgress to custom drawable I've created (as described <a href="https://stackoverflow.com/a/5800686/4385433">here</a>) it shows 5 stars in the preview screen of android studio with api 22 but when I set the api target to api 23 it shows 1 star but the rating...
When setting RatingBar in xml file and set android:drawableProgress to custom drawable I've created (as described here ) it shows 5 stars in the preview screen of android studio with api 22 but when I set the api target to api 23 it shows 1 star but the ratingbar (android:width="wrap_content") is at the same width as i...
android|ratingbar
4
2016-06-26T20:48:06.867Z
2,016
6
20
6
814
2
448
63
2
1
true
false
false
false
false
false
low
37,707,454
Firebase analytics refresh rate
<p>I wanted to ask how often to firebase anaylitics refresh?</p> <p>The current downloads seem to be stuck at a certain value even though I'm 101% sure that there are more. When do firebase analytics refresh?</p>
I wanted to ask how often to firebase anaylitics refresh? The current downloads seem to be stuck at a certain value even though I'm 101% sure that there are more. When do firebase analytics refresh?
android|firebase|firebase-analytics
3
2016-06-08T15:58:50.910Z
2,016
6
15
2
1,582
2
198
31
3
0
false
false
false
false
false
false
low
37,944,298
9 patch buttons with image android
<p>I have downloaded Google and Facebook 9-patch button files and added them to my app. It all seemed surprisingly straightforward, as it seemed to work just fine with just setting button background to the 9-patch file and setting some text. Here is the result:</p> <p><a href="https://i.stack.imgur.com/lykY4.png" rel=...
I have downloaded Google and Facebook 9-patch button files and added them to my app. It all seemed surprisingly straightforward, as it seemed to work just fine with just setting button background to the 9-patch file and setting some text. Here is the result: The thing is, when I previewed my app on device with Android ...
android|user-interface|nine-patch
0
2016-06-21T12:21:21.047Z
2,016
6
12
1
303
2
436
34
3
0
false
false
false
false
false
false
zero
37,773,852
How to add a inflated view multiple times to a linear Layout?
<p>I am trying to add a inflated view inside a LinearLayout container. However i am getting the child already has a parent issue. Following is my xml file having the container multiple times. <strong>activity_main.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="...
I am trying to add a inflated view inside a LinearLayout container. However i am getting the child already has a parent issue. Following is my xml file having the container multiple times. activity_main.xml [CODE] item_button.xml is the xml that i want to inflate into a container. [CODE] Following is the java code insi...
android
10
2016-06-12T11:46:55.393Z
2,016
6
11
6
8,495
2
490
61
1
4
true
false
true
false
true
false
medium
37,886,079
Android file is always created as a directory
<p>When I try to create an internal file in my Android app, the file created is always a directory. I saw a similar post and apparently the way they solved the issue was by calling <code>mkdirs()</code> on the parent directory of the file. However, that didn't work for me. I've tried adding a slash to the beginning of ...
When I try to create an internal file in my Android app, the file created is always a directory. I saw a similar post and apparently the way they solved the issue was by calling mkdirs() on the parent directory of the file. However, that didn't work for me. I've tried adding a slash to the beginning of the file's name,...
android|file|filenotfoundexception
0
2016-06-17T16:14:44.700Z
2,016
6
16
4
48
2
611
45
3
1
true
false
false
false
false
false
zero
38,029,010
android :How to set cursor to next field if prvious field is auto filled?
<p>I have two input field username and password.I am using the Shared Preferences for storing the username and use that value for auto fill on relaunching the app. I want it to set cursor on password field if there is stored value in username filed. but in my case cursor is always in username filed.</p>
I have two input field username and password.I am using the Shared Preferences for storing the username and use that value for auto fill on relaunching the app. I want it to set cursor on password field if there is stored value in username filed. but in my case cursor is always in username filed.
android|cursor
1
2016-06-25T13:26:46.243Z
2,016
6
13
5
48
2
297
73
2
0
false
false
false
false
false
false
low
38,044,129
DragEventListener not working on Samsung S7 (6.0)
<p>I'm looking for a direction to go with this one. I have a card melding game (<a href="https://play.google.com/store/apps/details?id=com.pipperpublishing.fivekings" rel="nofollow">Five Kings</a>) which has been up for about 6 months; my latest version 0.9.22 has been stable since March. However, recently I have been ...
I'm looking for a direction to go with this one. I have a card melding game ( Five Kings ) which has been up for about 6 months; my latest version 0.9.22 has been stable since March. However, recently I have been getting reports of users unable to drag discards to the discard pile, and the common thread seems to be Sam...
android|drag-and-drop|android-6.0-marshmallow|samsung-mobile
1
2016-06-26T23:32:18.180Z
2,016
6
23
6
560
2
1,176
49
4
3
true
false
false
false
false
false
low
37,834,139
Play individually split video files in android {used java for splitting}
<p>I'm working on an android project which needs me to split a video file into some parts(like each of 5 mb) and then individually playing these parts. I have successfully split the video into the parts but these parts are not playing.(maybe missing some playing attributes identified by the player). If someone could pr...
I'm working on an android project which needs me to split a video file into some parts(like each of 5 mb) and then individually playing these parts. I have successfully split the video into the parts but these parts are not playing.(maybe missing some playing attributes identified by the player). If someone could provi...
java|android|video
1
2016-06-15T11:27:21.210Z
2,016
6
11
2
1,328
2
543
72
3
1
true
false
false
false
false
false
low
37,927,930
menu using clickable images?
<p>I'm trying to create a menu using clickable images, but they don't seem to be working? I was following a tutorial and it uses something like </p> <pre><code>Intent biodata = new Intent(mainActivity.this, profile.class); </code></pre> <p>but it's not working so I tried to look for something else and someone said to...
I'm trying to create a menu using clickable images, but they don't seem to be working? I was following a tutorial and it uses something like [CODE] but it's not working so I tried to look for something else and someone said to use v.getContext() instad of ....this it works on my other page but it doesn't work on this p...
java|android
0
2016-06-20T16:54:32.313Z
2,016
6
16
0
49
2
394
28
2
3
true
false
false
false
false
false
zero
37,843,363
RadioGroup not visible ball
<p>i have problem with my XML.</p> <p>My XML not show ball near textview.</p> <p>I show you my code.</p> <p>THANKS IN ADVANCE!</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:l...
i have problem with my XML. My XML not show ball near textview. I show you my code. THANKS IN ADVANCE! [CODE]
android|xml|android-layout|radio-button|radio-group
1
2016-06-15T18:41:56.760Z
2,016
6
18
2
561
2
109
27
5
1
true
false
false
false
false
false
low
37,946,392
How to use Pojo to get the fields?
<p>Guys recently i switched to Retrofit from volley. there is a Pojo file which is converted from json. </p> <pre><code>public class JobModel { private int status; private List&lt;JobsBean&gt; jobs; public int getStatus() { return status; } public void setStatus(int status) { t...
Guys recently i switched to Retrofit from volley. there is a Pojo file which is converted from json. [CODE] but i don't know how to use this pojo file to extract the job_city from JobsBean class As you can see there is an JsonArray jobs which is converted to [CODE] having JsonObjects and the [CODE] is containing all th...
android|parsing|retrofit|pojo
0
2016-06-21T13:53:23.377Z
2,016
6
13
1
1,329
2
431
34
4
3
true
false
false
false
false
false
zero
37,741,208
Prevent Text Overlap
<p>Good day all,</p> <p>I have a bit of a dilemma. I have 2 TextViews (as seen in the screen shot) </p> <p><a href="https://i.stack.imgur.com/8JBfl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8JBfl.png" alt="Text overlap"></a></p> <p>And as you can see the Date is going behind the Price. </p> ...
Good day all, I have a bit of a dilemma. I have 2 TextViews (as seen in the screen shot) And as you can see the Date is going behind the Price. This was happening when the textviews were in a RelativeLayout. I moved them to a linearlayout and now whats happening is the price is being set onto 2 lines. What I would like...
android|xml|android-layout
0
2016-06-10T06:22:24.160Z
2,016
6
6
4
818
2
779
20
3
3
true
false
false
false
false
false
zero
37,752,782
Setting up proguard-project for Android application
<p>I have just become aware of obfuscation and want to setup proguard to work with my application. I am working in eclipse and I set it up my project.properties as suggested many places, as such</p> <pre><code># This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ER...
I have just become aware of obfuscation and want to setup proguard to work with my application. I am working in eclipse and I set it up my project.properties as suggested many places, as such [CODE] and my proguard-project.txt as [CODE] When I exported it worked fine the first time however I noticed a mistake when I ra...
android|obfuscation|android-proguard
0
2016-06-10T16:11:36.367Z
2,016
6
16
4
818
2
530
51
3
3
true
false
false
false
false
false
zero
37,784,253
how to compile dex2oat which can run in ubuntu
<p><strong>I have downloaded AOSP, but I don't know how to compile android shell program, like dex2oat, which can be run in Ubuntu.</strong></p>
I have downloaded AOSP, but I don't know how to compile android shell program, like dex2oat, which can be run in Ubuntu.
ubuntu|android-source|dex2oat
0
2016-06-13T07:45:30.820Z
2,016
6
7
0
818
2
120
46
3
0
false
false
false
false
false
false
zero
37,736,211
Firebase : Video storage
<p>Does Google's Firebase support video storage ? Am planning to upload video and want to download on-demand. I started with Firebase. Are there any other APIs or services that give a similar functionality ?</p>
Does Google's Firebase support video storage ? Am planning to upload video and want to download on-demand. I started with Firebase. Are there any other APIs or services that give a similar functionality ?
android|video|firebase|video-streaming
0
2016-06-09T21:08:22.197Z
2,016
6
21
3
4,146
2
204
24
4
0
false
false
true
false
false
false
zero
37,615,321
Touch Calculator is not working properly
<p>I am making a touch calculator. Whenever I run app, at the first time it works fine but after using 1 time when I try to press any number like 1,2,3,etc. It only presses one time. That is I can't write more than 1 figure number. Here's my code.</p> <pre><code>package bt4u.com.calculator; import android.os.Bundle; ...
I am making a touch calculator. Whenever I run app, at the first time it works fine but after using 1 time when I try to press any number like 1,2,3,etc. It only presses one time. That is I can't write more than 1 figure number. Here's my code. [CODE]
android
2
2016-06-03T13:10:57.730Z
2,016
6
13
4
51
2
251
40
1
1
true
false
false
false
false
false
low
37,719,899
add dynamically items to a menu and make them appear at next restart
<p>I have been developing an app in Android. I have created a menu with some static elements:</p> <pre><code>&lt;menu android:id="@+id/submenu"&gt; &lt;item android:id="@+id/create_new" android:title="eganaude" /&gt; &lt;item android:id="@+id/open" android:title="skema" /&gt; &lt;/menu&gt; ...
I have been developing an app in Android. I have created a menu with some static elements: [CODE] and I have a rule to add other elements dynamically: [CODE] However, this way each time I restart the app, I should add again the elements to the menu. So I would like the new elements added dynamically to appear at each r...
java|android|menu|menuitem
0
2016-06-09T07:50:14.137Z
2,016
6
7
3
51
2
371
68
4
2
true
false
false
false
false
false
zero
37,766,165
test for internet connection in android login
<p>I want to check internet connection. I tried to do this using this code but it doesn't work. I didn't got any message (Aucune connexion internet)</p> <pre><code>private boolean isConnectingToInternet(Context applicationContext){ ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECT...
I want to check internet connection. I tried to do this using this code but it doesn't work. I didn't got any message (Aucune connexion internet) [CODE] and [CODE]
android
0
2016-06-11T16:41:19.290Z
2,016
6
16
5
51
2
163
45
1
2
true
false
false
false
false
false
zero
37,744,504
using java.awt classes in android
<p>i'm currently trying to use the library LLaTeXMath in an android app. The problem is, many functions want Arguments or have return values from the java.awt Package. So far, I've encountered <code>Color</code>, <code>Insets</code>, <code>Image</code>. For example the Method <code>TeXFormula.createBufferedImage()</cod...
i'm currently trying to use the library LLaTeXMath in an android app. The problem is, many functions want Arguments or have return values from the java.awt Package. So far, I've encountered Color , Insets , Image . For example the Method TeXFormula.createBufferedImage() requires 2 Color instances and returns an Image ....
android|awt
0
2016-06-10T09:19:29.290Z
2,016
6
9
4
563
2
378
33
2
0
false
false
false
false
false
false
zero
37,974,107
Wordpress App not scrolling
<p>I have built an app for ios and android with wordpress, appPresser and phonegap. I have uploaded the app but the issue I am having is the app does not scroll, the mobile web page scrolls fine but not the app. I contacted appPresser and they tell me it is a theme issue and that i have to use one of their pricey paid ...
I have built an app for ios and android with wordpress, appPresser and phonegap. I have uploaded the app but the issue I am having is the app does not scroll, the mobile web page scrolls fine but not the app. I contacted appPresser and they tell me it is a theme issue and that i have to use one of their pricey paid the...
android|ios|wordpress|themes
1
2016-06-22T16:51:51.680Z
2,016
6
16
2
563
2
458
27
4
0
false
false
false
false
false
false
low
38,015,147
Store Images from URL in Array issue
<p>in my project i'm stored my drawable images in array like this </p> <pre><code> int[] mLocIds = new int[]{R.mipmap.ic_sticker_01, R.mipmap.ic_sticker_02, R.mipmap.ic_sticker_03, R.mipmap.ic_sticker_04, R.mipmap.ic_sticker_05, R.mipmap.ic_sticker_06, R.mipmap.ic_sticker_07, R.mipmap.ic_sticker_08}; <...
in my project i'm stored my drawable images in array like this [CODE] and here is my array : [CODE] But i want to show images from url(getting url in database), but my GalleryAdapter allows int array : [CODE] } I found this solution but it is not clear how to use this: [CODE] I know, i will be update my Activity and fi...
android|arrays|android-arrayadapter
0
2016-06-24T13:54:44.487Z
2,016
6
13
4
1,331
2
412
36
3
4
true
false
false
false
false
false
zero
37,660,617
Have an OnBackPressed() alert box to appear only for 2 out of the 3 fragments
<p>I am looking for a way to have an "Are you sure you have finished?" alert box to come up when the user presses the back navigation button whilst on the edit note and add note fragment but not whilst they're on the view note fragment. Below I have attached code from the activity which each fragment is linked to. If y...
I am looking for a way to have an "Are you sure you have finished?" alert box to come up when the user presses the back navigation button whilst on the edit note and add note fragment but not whilst they're on the view note fragment. Below I have attached code from the activity which each fragment is linked to. If you ...
java|android|android-fragments|onbackpressed
0
2016-06-06T14:56:59.307Z
2,016
6
14
0
52
2
389
77
4
1
true
false
false
false
false
false
zero
37,780,722
How can I send data to WebServer in Android?
<p>I'm trying to send data in Android Studio. I'm making a login function. So I need to send data to the Webserver. I already made a Webserver, but I can't because of this error:</p> <p>Caused by: android.os.NetworkOnMainThreadException</p> <p>I think that error is pointed at this line: </p> <pre><code>InputStream i...
I'm trying to send data in Android Studio. I'm making a login function. So I need to send data to the Webserver. I already made a Webserver, but I can't because of this error: Caused by: android.os.NetworkOnMainThreadException I think that error is pointed at this line: [CODE] I've been struggling for 3 days. Please he...
android|webserver
2
2016-06-13T01:26:16.917Z
2,016
6
1
0
52
2
330
44
2
2
true
false
false
false
false
false
low
37,797,455
Set buttons height to 1/3 of its width
<p>I have two buttons in xml like this:</p> <pre><code>&lt;ScrollView android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &...
I have two buttons in xml like this: [CODE] However the buttons appear square while my image's height is 1/3 of its width. How can I make the buttons height 1/3 of its width?
android|button|height|width
0
2016-06-13T19:13:19.867Z
2,016
6
19
0
52
2
174
38
4
1
true
false
false
false
false
false
zero
38,029,848
Android Studio: After changes in my project is it rquired to make project manually before generating signed apk?
<p>When I change something in my application, I usually make project and then run it for debug.</p> <p>However I want to know when I edit my code and want to build signed apk, is it required to first make it, then generate signed apk or generating singed apk itself include making project in it?</p>
When I change something in my application, I usually make project and then run it for debug. However I want to know when I edit my code and want to build signed apk, is it required to first make it, then generate signed apk or generating singed apk itself include making project in it?
android|android-studio|gradle|release|signed-apk
0
2016-06-25T15:10:17.040Z
2,016
6
15
5
52
2
285
112
5
0
false
false
false
false
false
false
zero
37,932,818
How can I scale my Cordova/PhoneGap app? Should I use "cordova-anyscreen", or is it too hacky?
<p>I'm having problems scaling my app on different devices that have the same proportions but with different -device-pixel-ratio factors. </p> <p>Example: I have two 360x640 screens, and I make everything fit on one of them, but in the other the content is too big. It doesn't matter if I use em/rem units and change th...
I'm having problems scaling my app on different devices that have the same proportions but with different -device-pixel-ratio factors. Example: I have two 360x640 screens, and I make everything fit on one of them, but in the other the content is too big. It doesn't matter if I use em/rem units and change the font-size ...
android|ios|css|cordova|responsive-design
0
2016-06-20T22:26:35.010Z
2,016
6
22
0
820
2
873
94
5
0
false
false
false
false
false
false
zero
37,952,747
Firebase multiple WHERE clause in query
<p>I'm trying to retreive data where flight data is returned only when the arrival date and airport match. I can't seem to figure out the best solution for this. I can only pull data where either the airport or arrival date is the same, not both (can only use <code>equalTo()</code> once). Here is what my current java c...
I'm trying to retreive data where flight data is returned only when the arrival date and airport match. I can't seem to figure out the best solution for this. I can only pull data where either the airport or arrival date is the same, not both (can only use equalTo() once). Here is what my current java code looks like: ...
java|android|firebase
8
2016-06-21T19:12:15.163Z
2,016
6
19
1
18,740
2
636
39
3
2
true
false
true
true
false
false
medium
37,901,666
How can Upgrade sqlite database to next version with saving user data
<p>i have an application with version 1.0 and now i hade made newxt version and now i want ot upgrade the database but i can not upgrade the database. the android studio give error from this line:</p> <pre><code> db = this.getReadableDatabase(); </code></pre> <p>. here is full code:</p> <pre><code>public void onUpgr...
i have an application with version 1.0 and now i hade made newxt version and now i want ot upgrade the database but i can not upgrade the database. the android studio give error from this line: [CODE] . here is full code: [CODE]
android|sqlite
0
2016-06-18T21:10:22.357Z
2,016
6
21
5
53
2
228
69
2
2
true
false
false
false
false
false
zero
37,890,301
An android application keeps opening new browser tab every time it's launched
<p>I created a simple android application that launches a browser upon clicking it. However, the application opens a new tab every time it's launched. Here is the sample code I wrote to start the activity of the browser. I just need my code to avoid opening multiple tabs instead open the tab that is already opened.</p>...
I created a simple android application that launches a browser upon clicking it. However, the application opens a new tab every time it's launched. Here is the sample code I wrote to start the activity of the browser. I just need my code to avoid opening multiple tabs instead open the tab that is already opened. [CODE]...
android|android-intent
1
2016-06-17T20:59:54.207Z
2,016
6
20
4
565
2
501
77
2
1
true
false
false
false
false
false
low
37,906,956
GPS location always displayed as 0.0, 0.0 (LocationListener implemented)
<p>I have been building an app that sends the current GPS location to stored numbers. But, the location has always been 0.0, 0.0. </p> <p>Here's the code: </p> <pre><code>public class ContactsList extends AppCompatActivity { Button addContacts; Button emergencyButton; ListView listView; ArrayList&lt;HashMap&lt;Str...
I have been building an app that sends the current GPS location to stored numbers. But, the location has always been 0.0, 0.0. Here's the code: [CODE] For some reason, default values for the latitude and the longitude as indicated in the LocationListener class are the ones being returned (0.0, 0.0). I really don't know...
android|gps|locationmanager|locationlistener|android-gps
1
2016-06-19T11:55:55.600Z
2,016
6
11
6
821
2
405
72
5
1
true
false
false
false
false
false
low
37,768,384
Android use Picasso Cache and get NoClassDefFoundError Error
<p>in my application i want to use this below pasted code as PicassoCache, but after use that such as :</p> <pre><code>PicassoCache.getPicassoInstance(context) .load(list.get(position).getStoreImage()) .placeholder(R.drawable.ic_messages) .into(holder.store_avatar); </co...
in my application i want to use this below pasted code as PicassoCache, but after use that such as : [CODE] i get this error: [CODE] PicassoCache: [CODE] My gradle: [CODE]
android
1
2016-06-11T20:47:51.667Z
2,016
6
20
5
1,077
2
171
60
1
4
true
false
false
false
false
false
low
37,855,597
Building Google api client within Fragment
<p>I am getting an error while building google api client in a fragment. The error I am getting is;</p> <pre><code> java.lang.ClassCastException: net.janusjanus.we4x4_v1.upload cannot be cast to com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener </code></pre> <p>I have implemented <code>Go...
I am getting an error while building google api client in a fragment. The error I am getting is; [CODE] I have implemented GoogleApiClient.ConnectionCallbacks , GoogleApiClient.OnConnectionFailedListener , and LocationListener and requesting the build as following; [CODE] first I had a problem declaring the new GoogleA...
android-studio|google-api-client
1
2016-06-16T09:46:13.180Z
2,016
6
9
3
1,333
2
564
42
2
3
true
false
false
false
false
false
low
37,830,098
Topics on Firebase Cloud Messaging?
<p>Is there any constraints about number of different topics for Firebase Cloud Messaging in one app?</p>
Is there any constraints about number of different topics for Firebase Cloud Messaging in one app?
android|firebase-cloud-messaging|firebase-notifications
14
2016-06-15T08:32:35.860Z
2,016
6
8
2
7,733
2
98
35
3
0
false
false
true
false
true
false
medium
37,898,420
communication between two android app, one is publisher and other subscriber
<p>I thought of working on content provider but I'm not sure weather i can access the inbuilt services like camera,gyroscope etc, using content provider Any idea how to publish the services available on mobile phone and how to use that services from another app</p>
I thought of working on content provider but I'm not sure weather i can access the inbuilt services like camera,gyroscope etc, using content provider Any idea how to publish the services available on mobile phone and how to use that services from another app
android
-1
2016-06-18T15:06:33.860Z
2,016
6
15
5
54
2
258
76
1
0
false
false
false
false
false
true
negative
37,760,536
Save the information in a RealmList locally
<p>I'm trying to create a list of objects using Realm.io. I've managed to create a RealmList of objects that extend Realm objects and convert it to a recycler view that displays all of the objects in the RealmList. I've also added the ability to add objects to the list. </p> <p>However, whenever I close and re-open th...
I'm trying to create a list of objects using Realm.io. I've managed to create a RealmList of objects that extend Realm objects and convert it to a recycler view that displays all of the objects in the RealmList. I've also added the ability to add objects to the list. However, whenever I close and re-open the app, all o...
java|android|android-recyclerview|realm
0
2016-06-11T06:05:58.150Z
2,016
6
6
5
310
2
550
43
4
0
false
false
false
false
false
false
zero
37,722,095
Google Play Store apk update
<p>I had updated my apk file and build a new version (upgrading the versionCode and versionName). The files was successfully uploaded on the apk 2 days back, but still it is not updated :( Can some one pls help me. Its still showing "Processing update" as status on the console.</p> <p>I tried un-publishing the app and...
I had updated my apk file and build a new version (upgrading the versionCode and versionName). The files was successfully uploaded on the apk 2 days back, but still it is not updated :( Can some one pls help me. Its still showing "Processing update" as status on the console. I tried un-publishing the app and re-publish...
android|updating|android-install-apk
0
2016-06-09T09:34:05.527Z
2,016
6
9
3
566
2
554
28
3
0
false
false
false
false
false
false
zero
37,954,602
Write/Read large JSONObject to/from file Android
<p>I'm trying to write/read a json object to/from a file. The json structure is complex and is dynamically generated. </p> <p>For small json object I would just transform json to string then do string writing/reading. This causes out of memory issue when the json gets too large.</p> <p>How do I stream the JSONObject...
I'm trying to write/read a json object to/from a file. The json structure is complex and is dynamically generated. For small json object I would just transform json to string then do string writing/reading. This causes out of memory issue when the json gets too large. How do I stream the JSONObject directly to a file, ...
android|json
0
2016-06-21T21:08:24.240Z
2,016
6
21
1
566
2
374
48
2
0
false
false
false
false
false
false
zero
37,649,446
sending message to a Handler on a dead thread Google Admob Rewarded video
<p>I got this stacktrace while I came back to my activity from Google Admob's rewarded video screen after completing whole video. Its just warning, not crash. <code>onRewardedVideoAdClosed()</code> method is called after watching video, but <code>onRewarded()</code> does not called. Any help??</p> <pre><code> Handler...
I got this stacktrace while I came back to my activity from Google Admob's rewarded video screen after completing whole video. Its just warning, not crash. onRewardedVideoAdClosed() method is called after watching video, but onRewarded() does not called. Any help?? [CODE]
android|admob|android-handler
11
2016-06-06T04:13:11.770Z
2,016
6
4
0
3,126
2
272
73
3
1
true
false
true
false
true
false
medium
37,636,645
Align Imageview in a row [right of each other] in scrollview in linear layout
<p>I'm new to android development and I'm making an android app that requires Images to be aligned next to each other (3 images in each row along with text to the bottom of each image). I want to put in scroll view(and add more images) but whenever i do so, the images become disordered. Tried using linearlayout with sc...
I'm new to android development and I'm making an android app that requires Images to be aligned next to each other (3 images in each row along with text to the bottom of each image). I want to put in scroll view(and add more images) but whenever i do so, the images become disordered. Tried using linearlayout with scrol...
android|android-layout
0
2016-06-05T01:40:56.597Z
2,016
6
1
6
55
2
550
77
2
0
false
false
false
false
false
false
zero
37,693,884
Adding local .aar file into android Project
<p>I have create .aar file from another project and added to new project.I have seen Classes are there but method name has changed.If i trying to access any method i have add in that class, got no method by that name. Finally I have seen method are like this.</p> <pre><code>public static void a(Context var0) { ...
I have create .aar file from another project and added to new project.I have seen Classes are there but method name has changed.If i trying to access any method i have add in that class, got no method by that name. Finally I have seen method are like this. [CODE] method name has changed to a(), b(),c(). what to do? is ...
android|aar
0
2016-06-08T05:27:02.837Z
2,016
6
5
2
55
2
343
43
2
1
true
false
false
false
false
false
zero
37,910,406
Location Based Services on Android
<p>I have following activity which uses GoogleApiClient:</p> <pre><code>public class MainActivity extends AppCompatActivity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { private final String TAG = "My App"; private TextView textView; privat...
I have following activity which uses GoogleApiClient: [CODE] After running this piece of code I get a message in logcat stating: [CODE] Which is due to execution of OnConnectionFailed function .. How to resolve this problem?
android
0
2016-06-19T18:21:44.313Z
2,016
6
18
6
55
2
224
34
1
2
true
false
false
false
false
false
zero
37,919,409
Take Screenshot of View and Share it with overflowmenu
<p>I want make JPG image of my one cardview and want share it on select overflow menu. My XML file is like below, How can I make screenshot of one view called @quoteCard and share it ? and I want just one view of my layout not want full screen screenshot. Thanks</p> <pre><code>&lt;LinearLayout android:id="@+id...
I want make JPG image of my one cardview and want share it on select overflow menu. My XML file is like below, How can I make screenshot of one view called @quoteCard and share it ? and I want just one view of my layout not want full screen screenshot. Thanks [CODE]
java|android
1
2016-06-20T09:52:14.220Z
2,016
6
9
0
55
2
266
54
2
1
true
false
false
false
false
false
low
37,675,015
Expandale list view's Child view's issue
<p>I am working on the expandable list view with multiple group layouts but having single child as common for all the layouts but in the <code>getChildView()</code> method I am getting the cast error not able understand whats the reason behind please help me out friends</p> <p>this error I am getting </p> <blockquote...
I am working on the expandable list view with multiple group layouts but having single child as common for all the layouts but in the getChildView() method I am getting the cast error not able understand whats the reason behind please help me out friends this error I am getting java.lang.ClassCastException: com.app.pro...
java|android|expandablelistview|expandablelistadapter
1
2016-06-07T09:07:12.963Z
2,016
6
9
1
56
2
483
40
4
1
true
false
false
false
false
false
low
37,724,502
Can I reduce code duplication, without unduly compromising efficieny or introducing overheads?
<p>My problem is centered around having code that is easily maintained and efficient. More specifically it revolves around getting data from an SQLite Cursor.</p> <p>When I first started using cursors I would hard code something along the lines of <code>mystrvar = cursor.getString(?)</code> where <strong>?</strong> wo...
My problem is centered around having code that is easily maintained and efficient. More specifically it revolves around getting data from an SQLite Cursor. When I first started using cursors I would hard code something along the lines of mystrvar = cursor.getString(?) where ? would be the offset to the respective row. ...
java|sqlite|android-cursor
0
2016-06-09T11:18:51.617Z
2,016
6
11
3
56
2
1,985
94
3
4
true
false
false
false
false
false
zero
37,778,277
Android: Pop-up alert while calculations are performed
<p>I'm moving a pc java code to android by using Android Studio. The java code performs some numeric calculations routines and in a basic computer it can take few seconds to return the problem solution. The java code works very pretty.</p> <p>By clicking in a button, the routine starts. I'd like to know how to show an...
I'm moving a pc java code to android by using Android Studio. The java code performs some numeric calculations routines and in a basic computer it can take few seconds to return the problem solution. The java code works very pretty. By clicking in a button, the routine starts. I'd like to know how to show an elegant "a...
javascript|java|android|android-studio
0
2016-06-12T19:30:44.043Z
2,016
6
19
6
56
2
512
54
4
1
true
false
false
false
false
false
zero
37,960,109
DatePicker Dialogue Current Date Not getting to select
<p>Hi I am new Android developer. In my App, I have created <code>DatePickerDialogue</code>.</p> <p>My problem is when I select any dates other than current date then current date is not able to select. </p> <p>My Code:</p> <pre><code>public class DatePickerDialogue extends AppCompatActivity { @Override protected v...
Hi I am new Android developer. In my App, I have created DatePickerDialogue . My problem is when I select any dates other than current date then current date is not able to select. My Code: [CODE]
android|android-datepicker
2
2016-06-22T06:24:00.270Z
2,016
6
6
2
2,104
2
196
54
2
1
true
false
false
false
false
false
low