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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44,217,910 | Explain individual role of convertView and View Holder Pattern in ListView | <p>Can anyone explain the individual role of convertView and View Holder Pattern in ListView, and how they increased the efficiency of listview?</p>
<pre><code>private class PersonsAdapter extends ArrayAdapter<Person> {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
... | Can anyone explain the individual role of convertView and View Holder Pattern in ListView, and how they increased the efficiency of listview? [CODE] | android|listview|android-viewholder|convertview | -3 | 2017-05-27T14:16:00.173Z | 2,017 | 5 | 14 | 5 | 281 | 2 | 148 | 74 | 4 | 1 | true | false | false | false | false | true | negative |
44,007,790 | go to an url without opening it in browser, for digital leds control with android app | <p>I'm trying to control my Esp8266 (with some awesome leds on it) with an android app (making it in android studio). I have to go to a URL to set them to a different function. </p>
<p>I got it to work already by using an Intent, shown below. If I press the button now and go to the URL in browser, this works! But it w... | I'm trying to control my Esp8266 (with some awesome leds on it) with an android app (making it in android studio). I have to go to a URL to set them to a different function. I got it to work already by using an Intent, shown below. If I press the button now and go to the URL in browser, this works! But it would be way ... | java|android | 0 | 2017-05-16T17:18:20.930Z | 2,017 | 5 | 17 | 1 | 1,305 | 2 | 532 | 85 | 2 | 1 | true | false | false | false | false | false | zero |
43,966,349 | Android app stuck on sharing username from 1 activity to another but not getting it through SharedPreferences | <p>Basically i want to use the email id from which user log in to store and use in any activity for fetching the data from server. Please help me.</p>
<p>First Activity <em>Sign_In</em></p>
<pre><code>public class Sign_In extends AppCompatActivity {
public static final String LOGIN_URL="url";
public static final Stri... | Basically i want to use the email id from which user log in to store and use in any activity for fetching the data from server. Please help me. First Activity Sign_In [CODE] Second Activity HomePage [CODE] | java|android|sharedpreferences | -3 | 2017-05-14T16:33:14.370Z | 2,017 | 5 | 16 | 6 | 28 | 2 | 205 | 109 | 3 | 2 | true | false | false | false | false | true | negative |
44,315,130 | workaround in Sqlite when triyng to compare data on empty database | <p>i am new to programming so take it easy on me. So i am reading HOUR only from SQLlite and i am checking if a current hour is the same or not as the last saved hour. My problem is when i call this method and there is no data yet in the Sqlite the app ofcourse crashes. Any idea how to solve this. So when the user laun... | i am new to programming so take it easy on me. So i am reading HOUR only from SQLlite and i am checking if a current hour is the same or not as the last saved hour. My problem is when i call this method and there is no data yet in the Sqlite the app ofcourse crashes. Any idea how to solve this. So when the user launche... | android|sqlite|android-sqlite | 0 | 2017-06-01T18:59:02.670Z | 2,017 | 6 | 18 | 3 | 28 | 2 | 379 | 66 | 3 | 1 | true | false | false | false | false | false | zero |
44,081,249 | How to migrate existing SQLite application to Room Persistance Library? | <p>It might be a bit early to ask, but is it possible and how to migrate/upgrade an existing SQLite database application to a new Android Room Persistance Library?</p> | It might be a bit early to ask, but is it possible and how to migrate/upgrade an existing SQLite database application to a new Android Room Persistance Library? | android|database|sqlite|orm|android-room | 17 | 2017-05-20T02:11:12.723Z | 2,017 | 5 | 2 | 5 | 6,684 | 2 | 160 | 71 | 5 | 0 | false | false | true | false | true | false | medium |
43,967,489 | Could not get unknown property 'repositoryUrl' for project | <p>I have a project employing React-Native. I'm <a href="https://facebook.github.io/react-native/docs/android-building-from-source.html" rel="nofollow noreferrer">building the RN module from source</a>, so my project has the ReactAndroid module as a dependency.</p>
<p>I was trying to upgrade the project to Android grad... | I have a project employing React-Native. I'm building the RN module from source , so my project has the ReactAndroid module as a dependency. I was trying to upgrade the project to Android gradle build tools >=2.3.2, so I could use instant-run: [CODE] This change forced me to upgrade gradle itself from 3.1 to 3.5 (lates... | android|android-studio|gradle|react-native|android-gradle-plugin | 8 | 2017-05-14T18:32:18.850Z | 2,017 | 5 | 18 | 6 | 6,940 | 2 | 520 | 58 | 5 | 1 | true | false | true | false | false | false | medium |
44,176,066 | Refreshing UI in android activity whenever Database is updated in server | <p>I'm developing an android app which stores data in database on server side. Now i want to refresh the activity whenever a database is updated how can i do this. My application is like a chat application where if i put a request it should be send to the selected users</p> | I'm developing an android app which stores data in database on server side. Now i want to refresh the activity whenever a database is updated how can i do this. My application is like a chat application where if i put a request it should be send to the selected users | android|mysql | 0 | 2017-05-25T08:41:56.600Z | 2,017 | 5 | 8 | 3 | 29 | 2 | 267 | 72 | 2 | 0 | false | false | false | false | false | false | zero |
44,260,506 | Leave only NN newest entries and delete all the rest | <p>I have the following structure.
Each user has his own data.</p>
<pre><code>---+ root_child
|
+---+ Gy7FXRbRjDfAKWu7a95NgiGIZUk1 (Firebase User Id)
|
|
+---+ KlNlb71qtQUXIGA4cNa (random key, generated by Firebase)
| |
| +--- timestamp = 1234567890
| |
| ... | I have the following structure. Each user has his own data. [CODE] Adding records occurs in this way: [CODE] push() ... Locations generated on a single client will be sorted in the order that they are created... Now, how can I leave only 100 newest entries (for the specified user id) and delete all the rest? Pseudocode... | android|firebase|firebase-realtime-database | 0 | 2017-05-30T11:04:39.843Z | 2,017 | 5 | 11 | 1 | 29 | 2 | 329 | 52 | 3 | 3 | true | false | false | false | false | false | zero |
44,369,003 | Get open activity of the foreground app | <p>I need to get the current Activity of the foreground App. I tried following <a href="https://stackoverflow.com/a/32109070/5974208">this answer</a> and later used <a href="https://github.com/ricvalerio/foregroundappchecker" rel="nofollow noreferrer">this library</a>(because the first solution only worked from Lollipo... | I need to get the current Activity of the foreground App. I tried following this answer and later used this library (because the first solution only worked from Lollipop), and them indeed worked well telling the foreground app's package name, but I need to know what activity is open. | android|service|foreground | 0 | 2017-06-05T12:31:20.903Z | 2,017 | 6 | 12 | 0 | 1,821 | 2 | 284 | 39 | 3 | 0 | false | false | false | false | false | false | zero |
44,108,958 | Android Studio 3.0 canary - Failed to resolve: org.apache.httpcomponents:httpclient:4.0.1 | <p>I installed AS 3.0 Canary,imported an existing project, and while running gradle sync, i got this error:</p>
<pre><code>Failed to resolve: org.apache.httpcomponents:httpclient:4.0.1
</code></pre>
<p>I tried cleaning the project, and that failed too. This was a part of the error:</p>
<pre><code>Required by:
p... | I installed AS 3.0 Canary,imported an existing project, and while running gradle sync, i got this error: [CODE] I tried cleaning the project, and that failed too. This was a part of the error: [CODE] I looked at other questions, and it seems like httpclient was deprecated in API 23. But every solution presented in thos... | android|gradle|android-gradle-plugin | 11 | 2017-05-22T09:09:50.457Z | 2,017 | 5 | 9 | 0 | 2,846 | 2 | 629 | 89 | 3 | 2 | true | false | true | false | true | false | medium |
44,334,809 | Android Emulator failed to get the latest version | <p><em>I know a lot of you will want to mark it as duplicate, but this is a specific question, please read full before any action</em></p>
<p>I am using Xamarin on Visual Studio 2017 Community for my Windows 7 Laptop.</p>
<p>I got the HXAM installed and then i also wen to BIOS to fix the Visualization settings.</p>
... | I know a lot of you will want to mark it as duplicate, but this is a specific question, please read full before any action I am using Xamarin on Visual Studio 2017 Community for my Windows 7 Laptop. I got the HXAM installed and then i also wen to BIOS to fix the Visualization settings. Now when i run any cross-platform... | android|visual-studio|xamarin|gradle | 0 | 2017-06-02T17:54:25.080Z | 2,017 | 6 | 17 | 4 | 4,382 | 2 | 1,118 | 49 | 4 | 1 | true | false | true | false | false | false | zero |
43,929,220 | Remove reloading of list fragments when back button is pressed | <p>I created a Tabbed Activity where all the list fragments are pro grammatically created when the activity is first opened as you can see based on previously saved data.</p>
<pre><code>public class CcSongBook extends ActionBarActivity implements TabListener {
SectionsPagerAdapter mSectionsPagerAdapter;
ViewPa... | I created a Tabbed Activity where all the list fragments are pro grammatically created when the activity is first opened as you can see based on previously saved data. [CODE] then in my other class which is used in list fragments I am basically reading some specific values from my sqlite database based on the bundle da... | java|android|android-fragments | 0 | 2017-05-12T04:19:51.527Z | 2,017 | 5 | 4 | 4 | 31 | 2 | 595 | 62 | 3 | 3 | true | false | false | false | false | false | zero |
44,114,918 | How to save captured image in savedinstance so that I can retreive back after orientation | <p>Below code captures image using camera and displays in activity, when orientation changes, I lose image captured, how can i retrieve image back after orientation, how to save the image in savedinstance</p>
<pre><code>public class MainActivity extends AppCompatActivity {
private static final int CAMERA_REQUEST ... | Below code captures image using camera and displays in activity, when orientation changes, I lose image captured, how can i retrieve image back after orientation, how to save the image in savedinstance [CODE] | android | -1 | 2017-05-22T14:03:23.660Z | 2,017 | 5 | 14 | 0 | 31 | 2 | 208 | 89 | 1 | 1 | true | false | false | false | false | true | negative |
44,342,308 | How can i create my application's package folder to directory ../Android/Data? | <p>This is what I am using:</p>
<pre><code>File mediaStorageDir=new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),"MyDir");
mediaStorageDir.mkdirs();
</code></pre> | This is what I am using: [CODE] | android | 0 | 2017-06-03T09:14:37.787Z | 2,017 | 6 | 9 | 5 | 31 | 2 | 31 | 78 | 1 | 1 | true | false | false | false | false | false | zero |
44,355,646 | combining 2 activities together | <p>ok so I'm making an app where I use an edit text to write anything and when I press a button it adds whatever I wrote in the edit to a listView, and it works, but I want the List to be in a different activity than the button and edit text, so I moved it without changing the code.can anyone figure this out,</p>
<p>B... | ok so I'm making an app where I use an edit text to write anything and when I press a button it adds whatever I wrote in the edit to a listView, and it works, but I want the List to be in a different activity than the button and edit text, so I moved it without changing the code.can anyone figure this out, BTW all the ... | android|android-studio|crash | 0 | 2017-06-04T15:23:03.943Z | 2,017 | 6 | 15 | 6 | 31 | 2 | 348 | 31 | 3 | 1 | true | false | false | false | false | false | zero |
44,124,487 | Implementing the onClickListener of a textView that is used inside an ArrayAdapter for ListView(Fragment) | <p>I was using a listActivity but I decided to use a navigation bar so I switched to using fragments. I am trying to implement the onClick methods for myTextViews but I cant make it work. I also cannot call constructor with super inside setOnItemClickListener. So I want to implement quickQuiz and longQuiz methods insid... | I was using a listActivity but I decided to use a navigation bar so I switched to using fragments. I am trying to implement the onClick methods for myTextViews but I cant make it work. I also cannot call constructor with super inside setOnItemClickListener. So I want to implement quickQuiz and longQuiz methods inside m... | android|listview|android-fragments|onclick | 1 | 2017-05-23T01:43:18.327Z | 2,017 | 5 | 1 | 1 | 287 | 2 | 628 | 105 | 4 | 4 | true | false | false | false | false | false | low |
44,065,891 | App unexpectedly stops when I try to log in with the correct credentials | <p>I'm just new to android coding. I only downloaded this code and make some changes. When I try to run the apps and input wrong credentials it works fine. But when I input the correct credentials the app will automatically close. I tried my best to fix the error but I fail. hope you can help me guys and Guide me how t... | I'm just new to android coding. I only downloaded this code and make some changes. When I try to run the apps and input wrong credentials it works fine. But when I input the correct credentials the app will automatically close. I tried my best to fix the error but I fail. hope you can help me guys and Guide me how to f... | android|sqlite | 0 | 2017-05-19T09:08:51.630Z | 2,017 | 5 | 9 | 4 | 32 | 2 | 393 | 72 | 2 | 3 | true | false | false | false | false | false | zero |
44,099,163 | Login database issues | <p>I am trying to fill a database with records so that when you login it will either accept you or not. For now I just have one to test it out but it doesn't seem to work. When I put in the info for ID and password and click the Button, nothing happens. Can anyone tell me what I'm missing or doing wrong? Sorry if it's ... | I am trying to fill a database with records so that when you login it will either accept you or not. For now I just have one to test it out but it doesn't seem to work. When I put in the info for ID and password and click the Button, nothing happens. Can anyone tell me what I'm missing or doing wrong? Sorry if it's obv... | java|android|sqlite|android-sqlite | 0 | 2017-05-21T16:24:02.320Z | 2,017 | 5 | 16 | 6 | 32 | 2 | 415 | 21 | 4 | 0 | false | false | false | false | false | false | zero |
44,304,962 | Image in ListView does not follow the width given and has different widths in different rows | <p>I have made a custom list view with an imageview and textview in a row.
Some of the images are not aligning up with the other images and it looks terrible. Below is a screenshot of how it looks.
<a href="https://i.stack.imgur.com/xpDmP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xpDmP.jpg" alt... | I have made a custom list view with an imageview and textview in a row. Some of the images are not aligning up with the other images and it looks terrible. Below is a screenshot of how it looks. Notice how the icon in music and albums are taking extra space. The xml for the row is below [CODE] I have used the same icon... | android|android-layout | 0 | 2017-06-01T10:23:19.133Z | 2,017 | 6 | 10 | 3 | 32 | 2 | 400 | 92 | 2 | 1 | true | false | false | false | false | false | zero |
44,178,563 | Android, How to get the height of recycleView before creating the sub viewHolders to remove the scroll | <p><br>
I have a grid recycleView inside a fragment, And I need to know the height of the fragment or the recycleView to config the height of all the sub viewHolders to be the same, and remove the scrolling.</p>
<pre><code>@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
if (positi... | I have a grid recycleView inside a fragment, And I need to know the height of the fragment or the recycleView to config the height of all the sub viewHolders to be the same, and remove the scrolling. [CODE] the Problem is the height of any view is always 0 I need to get the height of the RecycleView before create the s... | android | 0 | 2017-05-25T10:43:53.270Z | 2,017 | 5 | 10 | 3 | 288 | 2 | 370 | 102 | 1 | 1 | true | false | false | false | false | false | zero |
44,270,211 | can't find textView id inside toolbar | <p>I am working with a simple application on android where at the moment i net to create a toolbar so i created a custom toolbar like this:</p>
<pre><code><android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_toolbar"
android:layout_width="matc... | I am working with a simple application on android where at the moment i net to create a toolbar so i created a custom toolbar like this: [CODE] then i included this custom layout on my activity: [CODE] when i try to setText on my activity for the TextView, i fails and i get this error: Caused by: java.lang.NullPointerE... | java|android|xml|android-layout | 2 | 2017-05-30T19:15:08.780Z | 2,017 | 5 | 19 | 1 | 1,056 | 2 | 531 | 37 | 4 | 3 | true | false | false | false | false | false | low |
43,961,970 | Custom CallAdapter for Retrofit 2 and threading issue on Android | <p>In Retrofit2, when I use a custom CallAdapter for error handling that Retrofit provides on <a href="https://github.com/square/retrofit/blob/master/samples/src/main/java/com/example/retrofit/ErrorHandlingAdapter.java" rel="nofollow noreferrer">samples/ErrorHandlingAdapter.java</a>, the callback methods executed on a ... | In Retrofit2, when I use a custom CallAdapter for error handling that Retrofit provides on samples/ErrorHandlingAdapter.java , the callback methods executed on a background thread instead of the main thread, unlike the default CallAdapter (Call), which is executed on the main thread. I made sure of that by running Thre... | java|android|multithreading|retrofit2 | 3 | 2017-05-14T08:39:36.473Z | 2,017 | 5 | 8 | 6 | 2,336 | 2 | 631 | 64 | 4 | 2 | true | false | false | false | false | false | low |
43,945,696 | Strange app crash when pushing the button | <p>Hello I learning how to develop Android applications. I have a fragment in a second activity and I want when pushing the button to return to the main activity. My code is the one below:</p>
<pre><code> public class NoteEditFragment extends Fragment {
private String title,summary;
private EditText editTextTitle, e... | Hello I learning how to develop Android applications. I have a fragment in a second activity and I want when pushing the button to return to the main activity. My code is the one below: [CODE] } When I define the onclick listener my self , the code inside the block of comments it works, however when I am attaching the ... | android|onclicklistener | -3 | 2017-05-12T20:06:57.110Z | 2,017 | 5 | 20 | 4 | 33 | 2 | 480 | 41 | 2 | 1 | true | false | false | false | false | true | negative |
44,102,094 | How to store data in a image viewing android app? | <p>I am trying to create an app that shows a list of picture(with pagination) from an API, and when you click on a photo, it opens the photo (probably in a new activity) with zooming and stuff. My question is how should I store the API responses? Should I </p>
<ol>
<li>Store them in <code>Application</code> class</li>... | I am trying to create an app that shows a list of picture(with pagination) from an API, and when you click on a photo, it opens the photo (probably in a new activity) with zooming and stuff. My question is how should I store the API responses? Should I Store them in Application class Make a singleton class and store it... | android|sqlite|pagination|android-application-class | 0 | 2017-05-21T21:43:54.900Z | 2,017 | 5 | 21 | 6 | 33 | 2 | 511 | 49 | 4 | 0 | false | false | false | false | false | false | zero |
44,315,244 | Must scroll up to see upper layout items | <p>When activity launches first thing you see is recylerview instead upper items !</p>
<p>The first elements are a cardview including an imageview then a cardview including a radiobutton group. For visiting these items, you must scroll up the screen !</p>
<p>No errors , How can i solve this problem?</p>
<p>NOTE : my... | When activity launches first thing you see is recylerview instead upper items ! The first elements are a cardview including an imageview then a cardview including a radiobutton group. For visiting these items, you must scroll up the screen ! No errors , How can i solve this problem? NOTE : my problem solves when i don'... | android|xml|layout|android-recyclerview | 0 | 2017-06-01T19:04:37.423Z | 2,017 | 6 | 19 | 3 | 33 | 2 | 477 | 40 | 4 | 2 | true | false | false | false | false | false | zero |
44,343,651 | Android Button Alignment | <p>I've did my due diligence in searching the net but I can't seem to find a proper solution for the following.</p>
<p>I'm using a table layout and a table row and I am putting in 3 buttons with TEXT. Here is a sample of the layout file.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<TableLayout xml... | I've did my due diligence in searching the net but I can't seem to find a proper solution for the following. I'm using a table layout and a table row and I am putting in 3 buttons with TEXT. Here is a sample of the layout file. [CODE] The image outcome is here: My aim is the make it even, all having 1/3 ratio. I unders... | android|tablelayout|xmltable | 0 | 2017-06-03T11:55:01.490Z | 2,017 | 6 | 11 | 5 | 33 | 2 | 521 | 24 | 3 | 1 | true | false | false | false | false | false | zero |
44,100,186 | Android: how to use non-default sharedpreference (data) in custom preference (layout) | <p>For this opportunity I need to use non-default (i.e. custom) sharedpreference data. How can I access this custom sharedpreference data in a custom preference layout? In this case I <strong>cannot</strong> use getDefaultSharedPreferences(context);</p>
<p>I built a custom listpreference that allows adding new element... | For this opportunity I need to use non-default (i.e. custom) sharedpreference data. How can I access this custom sharedpreference data in a custom preference layout? In this case I cannot use getDefaultSharedPreferences(context); I built a custom listpreference that allows adding new elements to it. I had to work with ... | android|android-preferences|android-sharedpreferences | 0 | 2017-05-21T18:10:12.517Z | 2,017 | 5 | 18 | 6 | 801 | 2 | 811 | 85 | 3 | 5 | true | false | false | false | false | false | zero |
44,287,080 | How I can purchase a Google Play product item multiple times? | <p>I can buy only one item ("productitem1"). If I had purchase this item, I can't purchase it again. But I need it to buy it several times. In my Google Play Console, I can only choose between "Managed In-app Products" and "subs". I have setting it up to "Managed In-app Products".</p>
<pre><code>@Override
protected vo... | I can buy only one item ("productitem1"). If I had purchase this item, I can't purchase it again. But I need it to buy it several times. In my Google Play Console, I can only choose between "Managed In-app Products" and "subs". I have setting it up to "Managed In-app Products". [CODE] | java|android|android-studio|developer-console | 2 | 2017-05-31T14:10:18.810Z | 2,017 | 5 | 14 | 2 | 1,825 | 2 | 285 | 61 | 4 | 1 | true | false | false | false | false | false | low |
44,368,640 | Background Firebase Push Notifications in Cordova | <p>I am using a <a href="https://github.com/phonegap/phonegap-plugin-push" rel="nofollow noreferrer">phonegap-plugin-push</a> for receiving notifications in Cordova Application. I am deploying on android Marsh-mellow for testing.</p>
<p>I want to see and store the contents of the Notifications received through <strong... | I am using a phonegap-plugin-push for receiving notifications in Cordova Application. I am deploying on android Marsh-mellow for testing. I want to see and store the contents of the Notifications received through Firebase Console when the app is in background. Here is my Code - [CODE] When the app is in foreground (on ... | android|cordova|firebase|push-notification|phonegap-pushplugin | 1 | 2017-06-05T12:09:44.293Z | 2,017 | 6 | 12 | 0 | 5,410 | 2 | 833 | 49 | 5 | 1 | true | false | true | false | false | false | low |
44,145,876 | Xiaomi BOOT_COMPLETED not received | <p>My aim is to receive BOOT_COMPLETE through a broadcast receiver. I have implemented it according to Piyush's answer in <a href="https://stackoverflow.com/questions/20441308/boot-completed-not-working-android">BOOT_COMPLETED not working Android</a> and it is working on a Nexus5. But it doesn't work on my Xiaomi mi5s... | My aim is to receive BOOT_COMPLETE through a broadcast receiver. I have implemented it according to Piyush's answer in BOOT_COMPLETED not working Android and it is working on a Nexus5. But it doesn't work on my Xiaomi mi5s even though I have turned on autostart for my app in MIUI's security app. p.s: I am on MIUI 8.2.1... | android|broadcastreceiver | 2 | 2017-05-23T22:12:39.877Z | 2,017 | 5 | 22 | 1 | 1,571 | 2 | 323 | 34 | 2 | 0 | false | false | false | false | false | false | low |
44,218,256 | How to listen to an incoming sms using NativeScript? | <p>I want to listen to the RECEIVE_SMS intent to read a One Time Password delivered via a text message, in Nativescript(using Angular2). I am following the steps outlined in <a href="http://docs.nativescript.org/cookbook/application" rel="nofollow noreferrer">http://docs.nativescript.org/cookbook/application</a>. Howev... | I want to listen to the RECEIVE_SMS intent to read a One Time Password delivered via a text message, in Nativescript(using Angular2). I am following the steps outlined in http://docs.nativescript.org/cookbook/application . However, when i run the code i get the following error: [CODE] Here's my app.component.ts: [CODE] | android|angular|android-intent|nativescript | 3 | 2017-05-27T14:50:46.400Z | 2,017 | 5 | 14 | 5 | 2,083 | 2 | 320 | 52 | 4 | 2 | true | false | false | false | false | false | low |
44,347,810 | Default calendar id for android | <p>I am trying to add event automatically but I need calendar id for this
If I add event to calendar with id = 1 sometimes it does not exist or does not depend to event I add</p>
<pre><code> ContentValues cv = new ContentValues();
cv.put("calendar_id", 1);
</code></pre>
<p><code>id = -1</code> does not work</p... | I am trying to add event automatically but I need calendar id for this If I add event to calendar with id = 1 sometimes it does not exist or does not depend to event I add [CODE] id = -1 does not work how can I add event to default calendar. what id should I use? | android|calendar|content-values | 2 | 2017-06-03T19:29:45.877Z | 2,017 | 6 | 19 | 5 | 2,851 | 2 | 263 | 31 | 3 | 1 | true | false | true | false | false | false | low |
44,060,493 | Android app is supported by 0 devices in play console | <p>I tried to make an update to my existing app, and upload to the play store, and it says the app is supported by 0 devices. So remove all the new changes and the code looks exact the same as the old version and reupload to the play store, unfortunately, I'm still getting the same "app is supported by 0 devices". I tr... | I tried to make an update to my existing app, and upload to the play store, and it says the app is supported by 0 devices. So remove all the new changes and the code looks exact the same as the old version and reupload to the play store, unfortunately, I'm still getting the same "app is supported by 0 devices". I tried... | android|android-layout|android-studio | 1 | 2017-05-19T02:31:11.917Z | 2,017 | 5 | 2 | 4 | 804 | 2 | 696 | 53 | 3 | 1 | true | false | false | false | false | false | low |
44,273,129 | How to cancel Observable.timer with rxjava2? | <p>I have a retry mechanism in my code, I'm using below lines to execute my retry logic. For example, I generate an random milliseconds to delay my execution. I would like to cancel this timer when timer ticks to 30 * 1000 milliseconds. How can I cancel this timer and execute my logic immediately.</p>
<pre><code>//reg... | I have a retry mechanism in my code, I'm using below lines to execute my retry logic. For example, I generate an random milliseconds to delay my execution. I would like to cancel this timer when timer ticks to 30 * 1000 milliseconds. How can I cancel this timer and execute my logic immediately. [CODE] Thanks in advance... | android|rx-java|reactive-programming|retrofit2|rx-java2 | 1 | 2017-05-30T22:52:52.473Z | 2,017 | 5 | 22 | 1 | 1,316 | 2 | 321 | 44 | 5 | 1 | true | false | false | false | false | false | low |
44,161,476 | In Gradle, is it possible to create a boolean build config field based on other build config field? | <p>In Gradle, how to create a boolean build config field based on other build config field?</p>
<p>For example:</p>
<pre><code>buildConfigField BOOLEAN, TEST_A, "false"
buildConfigField BOOLEAN, TEST_B, "false"
buildConfigField BOOLEAN, TEST_C, TEST_A && TEST_B
</code></pre> | In Gradle, how to create a boolean build config field based on other build config field? For example: [CODE] | android|android-gradle-plugin | 6 | 2017-05-24T14:33:29.327Z | 2,017 | 5 | 14 | 2 | 3,364 | 2 | 108 | 99 | 2 | 1 | true | false | true | false | false | false | medium |
44,354,081 | Run Proguard on multi-module project as "one piece" | <p>TLDR: How to pass proguard mapping to javac to compile against obfuscated library ?</p>
<p>That's long, but I don't see how to make it shorter:</p>
<p><strong>Background:</strong>
I have the following product setup:</p>
<p>Android Studio project
- Library module
- (sub)module Core
- (sub)module A
- (... | TLDR: How to pass proguard mapping to javac to compile against obfuscated library ? That's long, but I don't see how to make it shorter: Background: I have the following product setup: Android Studio project - Library module - (sub)module Core - (sub)module A - (sub)module B - (sub)module C - Sample App module - ... Ot... | java|android|proguard|android-proguard | 9 | 2017-06-04T12:26:38.397Z | 2,017 | 6 | 12 | 6 | 3,620 | 2 | 1,463 | 51 | 4 | 0 | false | false | true | false | false | false | medium |
44,295,691 | Change Menu Bar Icon on Navigation Page | <p>I'm desperately trying to change the icon color on my Xamarin Forms app. I thought this hamburger menu was text but I can't seem to change it at all now. Is it an image? I found a slideout.png image, but any edits to that do not display within the app. Where is it pulling this hamburger menu icon from?<a href="https... | I'm desperately trying to change the icon color on my Xamarin Forms app. I thought this hamburger menu was text but I can't seem to change it at all now. Is it an image? I found a slideout.png image, but any edits to that do not display within the app. Where is it pulling this hamburger menu icon from? Page: [CODE] Mas... | android|xamarin.forms|master-detail | 1 | 2017-05-31T22:33:08.320Z | 2,017 | 5 | 22 | 2 | 4,132 | 2 | 346 | 39 | 3 | 3 | true | false | true | false | false | false | low |
44,310,019 | Google play developer console crash reports | <p>I am looking for an API to pull my app's crash reports programmatically and I can't seem to find if this exists or not. I read through the google play developer API docs but it seems like it's for publishing your app and managing game related actions. </p>
<p>Anyone know if there is an API available for crash repor... | I am looking for an API to pull my app's crash reports programmatically and I can't seem to find if this exists or not. I read through the google play developer API docs but it seems like it's for publishing your app and managing game related actions. Anyone know if there is an API available for crash reports? Edit: I ... | android|google-play|google-play-developer-api | 12 | 2017-06-01T14:17:15.717Z | 2,017 | 6 | 14 | 3 | 11,300 | 2 | 500 | 43 | 3 | 0 | false | false | true | false | true | false | medium |
44,366,445 | How to use spinner items as input to get a result | <p>I'm new to android. I'm building an app for city bus fare. I will use two spinners as 'starting' point and 'destination'. I want to match these two input and get the result as 'fare cost' in a textview. Please give me some easy idea of how to implement this.</p> | I'm new to android. I'm building an app for city bus fare. I will use two spinners as 'starting' point and 'destination'. I want to match these two input and get the result as 'fare cost' in a textview. Please give me some easy idea of how to implement this. | java|android|spinner | -3 | 2017-06-05T10:04:00.053Z | 2,017 | 6 | 10 | 0 | 805 | 2 | 258 | 49 | 3 | 0 | false | false | false | false | false | true | negative |
44,031,701 | How can I determine whether a file is on a USB mass storage device? | <p>Given a <code>File</code> or a <code>Uri</code>, how can I reliably determine whether or not the file is located on a USB mass storage device connected to the phone's USB port?</p>
<p>My test phone, a Samsung Galaxy S7 Edge, has a USB mass storage device connected, an internal (physical) micro SD card, and internal... | Given a File or a Uri , how can I reliably determine whether or not the file is located on a USB mass storage device connected to the phone's USB port? My test phone, a Samsung Galaxy S7 Edge, has a USB mass storage device connected, an internal (physical) micro SD card, and internal storage. When I query Context.getEx... | java|android|android-studio|usb-mass-storage | 2 | 2017-05-17T17:49:06.800Z | 2,017 | 5 | 17 | 2 | 1,573 | 2 | 1,249 | 67 | 4 | 2 | true | false | false | false | false | false | low |
44,249,462 | FileNotFoundException when trying to read assets with Roboelectric | <p>I'm trying to run a test that needs access to a file in the assets folder using roboelectric 3.3.2 with</p>
<pre><code>RuntimeEnvironment.application.getAssets().open("my_file");
</code></pre>
<p>but I always get this error</p>
<p><code>java.io.FileNotFoundException: build/intermediates/bundles/debug/assets/my_fi... | I'm trying to run a test that needs access to a file in the assets folder using roboelectric 3.3.2 with [CODE] but I always get this error java.io.FileNotFoundException: build/intermediates/bundles/debug/assets/my_file (No such file or directory) The thing I really fail to understand is that even if I specify a path fo... | android|unit-testing|robolectric | 3 | 2017-05-29T19:40:43.753Z | 2,017 | 5 | 19 | 0 | 1,573 | 2 | 774 | 66 | 3 | 3 | true | false | false | false | false | false | low |
44,182,809 | Populate a custom list depending on the chosen dialog option | <p>I'm having a problem populating a custom list. When the app is on create it populates de the list with the default elements correctly. However, when i go to the settings dialog, I have a radio group that allows me choosing which array will be used to populate the list, but i can't call the populatelistview custom c... | I'm having a problem populating a custom list. When the app is on create it populates de the list with the default elements correctly. However, when i go to the settings dialog, I have a radio group that allows me choosing which array will be used to populate the list, but i can't call the populatelistview custom class... | java|android|listview | 0 | 2017-05-25T14:16:48.270Z | 2,017 | 5 | 14 | 3 | 38 | 2 | 655 | 60 | 3 | 3 | true | false | false | false | false | false | zero |
44,220,333 | Errors when trying to update NuGet packages | <p>When I try to update the NuGet packages for my solution, I get a set of errors as follows and however methods I tried, did not resolve the problem. Can someone please explain me and help me resolve this problem? Thank you in advance.</p>
<p><a href="https://i.stack.imgur.com/Wdt2Q.jpg" rel="nofollow noreferrer"><im... | When I try to update the NuGet packages for my solution, I get a set of errors as follows and however methods I tried, did not resolve the problem. Can someone please explain me and help me resolve this problem? Thank you in advance. | android|xamarin|visual-studio-2015|xamarin.forms | 0 | 2017-05-27T18:29:05.683Z | 2,017 | 5 | 18 | 5 | 38 | 2 | 233 | 43 | 4 | 0 | false | false | false | false | false | false | zero |
44,341,042 | Google sign in not working after publishing in play store even using the json file for release apk | <p>In my app I am having an option of google sign-in, it works fine in debug mode as well as in release mode. I have generated 2 SHA keys to get json file from google.One is through <strong>debug.kestore</strong> and another is from <strong>release keystore</strong>. I run my app
by installing the release apk, it work... | In my app I am having an option of google sign-in, it works fine in debug mode as well as in release mode. I have generated 2 SHA keys to get json file from google.One is through debug.kestore and another is from release keystore . I run my app by installing the release apk, it works perfectly but when I upload the sam... | android|json|google-play-services | 0 | 2017-06-03T06:28:55.953Z | 2,017 | 6 | 6 | 5 | 550 | 2 | 364 | 98 | 3 | 0 | false | false | false | false | false | false | zero |
44,323,777 | How do I remove the extra space in this recyclerview element in Android? | <p>I'm implementing a Recycler View in Android to create a list, but for some reason I see a space in between two elements, and I'm not able to pinpoint the error location. As to why is this happening, my guess is on the row element XML.</p>
<p><a href="https://i.imgur.com/pFfJPNP.jpg" rel="nofollow noreferrer"><img s... | I'm implementing a Recycler View in Android to create a list, but for some reason I see a space in between two elements, and I'm not able to pinpoint the error location. As to why is this happening, my guess is on the row element XML. [CODE] RecyclerView [CODE] | android-layout|android-recyclerview | 0 | 2017-06-02T08:02:53.393Z | 2,017 | 6 | 8 | 4 | 1,318 | 2 | 261 | 72 | 2 | 2 | true | false | false | false | false | false | zero |
44,107,263 | Permission Denial of android.intent.action.REBOOT for APP in /system/priv-app | <p>A feature of my app is designed to send a reboot broadcast when a <em>Reboot</em> button is clicked.</p>
<pre><code>getActivity().sendBroadcast(new Intent(Intent.ACTION_REBOOT));
</code></pre>
<p>According to Android reference documents, apps whose APKs are in <em>/system/priv-app</em> directory are allowed to use <... | A feature of my app is designed to send a reboot broadcast when a Reboot button is clicked. [CODE] According to Android reference documents, apps whose APKs are in /system/priv-app directory are allowed to use signatureOrSystem permissions without sharing the platform cert. Refer to AOSP Privileged vs System app The RE... | android|permissions | 1 | 2017-05-22T07:40:33.050Z | 2,017 | 5 | 7 | 0 | 1,830 | 2 | 1,072 | 77 | 2 | 2 | true | false | false | false | false | false | low |
44,361,292 | How can I Convert Calendar.toString() into date using SimpleDateFormat.parse()? | <p>I'm developing an Android app that uses a database, every time that the user insert a new register the current data and time is save in the db using</p>
<pre><code>Calendar cal = Calendar.getInstance();
</code></pre>
<p>So, When I retrieve the data from the db, got a String like this:</p>
<blockquote>
<p>java.u... | I'm developing an Android app that uses a database, every time that the user insert a new register the current data and time is save in the db using [CODE] So, When I retrieve the data from the db, got a String like this: java.util.GregorianCalendar[time=1496007575129,areFieldsSet=true,lenient=true,zone=America/Mexico_... | java|android|calendar|simpledateformat | 1 | 2017-06-05T03:31:08.683Z | 2,017 | 6 | 3 | 0 | 5,414 | 2 | 1,101 | 79 | 4 | 2 | true | false | true | false | false | false | low |
43,943,623 | Save value from checkbox and use in another view | <p>i want to save the value boolean true or false from checked checkbox and use it in another view.</p>
<p>here is what i want to do</p>
<p>in my activity where i have the checkbox, it looks like this</p>
<pre><code>checkBoxAdvanced = (CheckBox) findViewById(R.id.checkbox_advanced);
checkBoxNeutral = (CheckBox) ... | i want to save the value boolean true or false from checked checkbox and use it in another view. here is what i want to do in my activity where i have the checkbox, it looks like this [CODE] and in my MainActivity i want to use the value to either hide or show an text depending on the value anyone who can help with thi... | android|checkbox | 0 | 2017-05-12T17:42:45.440Z | 2,017 | 5 | 17 | 4 | 39 | 2 | 322 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
43,979,399 | Is it possible to display the real device like the emulator? | <p>I have a real device and I connect it with android studio . Is it possible to display the screen like an emulated device inside android studio, in order to work remotely with it?</p> | I have a real device and I connect it with android studio . Is it possible to display the screen like an emulated device inside android studio, in order to work remotely with it? | android|android-studio | 0 | 2017-05-15T12:20:39.370Z | 2,017 | 5 | 12 | 0 | 39 | 2 | 178 | 60 | 2 | 0 | false | false | false | false | false | false | zero |
44,255,950 | Short Key for Generate String From Layout XML | <p>I have seen that there some short key for generate new string, dimens value etc from Layout XML file...But I don't remember it.</p>
<p>Example I have input new dimes in Layout XML called time_padding. its showing red error that there no any value called time_padding in dimens file....Now I want generate its from xm... | I have seen that there some short key for generate new string, dimens value etc from Layout XML file...But I don't remember it. Example I have input new dimes in Layout XML called time_padding. its showing red error that there no any value called time_padding in dimens file....Now I want generate its from xml so it can... | android|xml | 1 | 2017-05-30T07:20:41.953Z | 2,017 | 5 | 7 | 1 | 39 | 2 | 383 | 45 | 2 | 0 | false | false | false | false | false | false | low |
44,307,801 | Android app using ION for HTTPS requests fail, seemingly after Google Play Services update | <p>I have an Android app using <a href="https://github.com/koush/ion" rel="nofollow noreferrer">ION</a> to make HTTPS requests to my backend. This morning, suddenly it started failing with SSL handshake errors: </p>
<p><code>javax.net.ssl.SSLHandshakeException: error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_... | I have an Android app using ION to make HTTPS requests to my backend. This morning, suddenly it started failing with SSL handshake errors: javax.net.ssl.SSLHandshakeException: error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE This is pretty much the only info from the log. This happened first o... | android|ssl|aws-api-gateway|sslhandshakeexception|android-ion | 4 | 2017-06-01T12:39:12.410Z | 2,017 | 6 | 12 | 3 | 807 | 2 | 771 | 90 | 5 | 1 | true | false | false | false | false | false | low |
44,249,147 | Xamarin Forms Slider in ListView in TabbedPage not sliding correctly | <p>I have a DataTemplate that puts a slider inside a ListView within a TabbedPage. On Android the slider does not move correctly and sliding left to right activates the TabbedPage sliding feature. If the slider is outside the ListView it works correctly. How can I prevent parent controls of the slider from handling the... | I have a DataTemplate that puts a slider inside a ListView within a TabbedPage. On Android the slider does not move correctly and sliding left to right activates the TabbedPage sliding feature. If the slider is outside the ListView it works correctly. How can I prevent parent controls of the slider from handling the dr... | android|xamarin|xamarin.android|xamarin.forms|xamarin.forms.listview | 4 | 2017-05-29T19:12:52.863Z | 2,017 | 5 | 19 | 0 | 1,063 | 2 | 483 | 68 | 5 | 0 | false | false | false | false | false | false | low |
44,004,767 | Android Emulator does not start at hardware acceleration, linux/ubuntu | <p>i recently reninstalled ubuntu, now i have 17.04 version and android emulator with hardware graphic performance doesnt start. </p>
<p>after starting there is a loading with "starting avd..." but nothing happens.</p>
<p>when i switch graphic performance to software emulator run succesfully but is really slow. befor... | i recently reninstalled ubuntu, now i have 17.04 version and android emulator with hardware graphic performance doesnt start. after starting there is a loading with "starting avd..." but nothing happens. when i switch graphic performance to software emulator run succesfully but is really slow. before reinstall everythi... | android|linux|ubuntu|emulation|intel | 3 | 2017-05-16T14:48:54.467Z | 2,017 | 5 | 14 | 1 | 2,599 | 2 | 724 | 70 | 5 | 0 | false | false | false | false | false | false | low |
44,296,653 | AlertDialog always press Positive Button | <p>I have an AlertDialog in an onBackPressed(), if I click the positive button it must launch an activity with an Intent.</p>
<pre><code>@Override
public void onBackPressed() {
super.onBackPressed();
android.app.AlertDialog.Builder logoutDialog = new android.app.AlertDialog.Builder(MainActivity.th... | I have an AlertDialog in an onBackPressed(), if I click the positive button it must launch an activity with an Intent. [CODE] But when I press back the Dialog appears less than a second and then it goes to the expected activity but without pressing PositiveButton. | android|android-alertdialog | 0 | 2017-06-01T00:29:06.560Z | 2,017 | 6 | 0 | 3 | 40 | 2 | 264 | 40 | 2 | 1 | true | false | false | false | false | false | zero |
43,927,028 | Getting list of compatible devices on Android Developer Console | <p>I used to be able to log into Android Developer console and get a list of all compatible devices for my app. Looks like Google redesigned the developer console and now I can only see the number of devices that my app is compatible with and not the actual models. It used to look like this -
<a href="https://i.stack.i... | I used to be able to log into Android Developer console and get a list of all compatible devices for my app. Looks like Google redesigned the developer console and now I can only see the number of devices that my app is compatible with and not the actual models. It used to look like this - With the new redesign in plac... | android|mobile|google-play | 1 | 2017-05-11T23:17:05.877Z | 2,017 | 5 | 23 | 3 | 296 | 2 | 388 | 63 | 3 | 0 | false | false | false | false | false | false | low |
44,199,806 | how to get data from sqlite database | <p>I am storing my app data in sqlite database but when I am trying to fetch it, its not showing data. At the time of inserting it shows that New xxxxx is inserted in sqlite : 1.</p>
<p>But why its not showing me data, when I am trying to fetch it in other activity?</p>
<pre><code> public class SQLiteHandler extends ... | I am storing my app data in sqlite database but when I am trying to fetch it, its not showing data. At the time of inserting it shows that New xxxxx is inserted in sqlite : 1. But why its not showing me data, when I am trying to fetch it in other activity? [CODE] saving categories: [CODE] log cat: [CODE] This is how i ... | java|android|sqlite | 0 | 2017-05-26T10:56:31.260Z | 2,017 | 5 | 10 | 4 | 2,344 | 2 | 359 | 36 | 3 | 4 | true | false | false | false | false | false | zero |
44,078,945 | Scrollable TextView between views | <p>I have TextView (green A) between 2 views.
<a href="https://i.stack.imgur.com/KgwXa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KgwXa.png" alt="aa"></a>
Normally I want the B view to appear below A view. But when the TextView's content will be big enough that the B view will meet the bottom of... | I have TextView (green A) between 2 views. Normally I want the B view to appear below A view. But when the TextView's content will be big enough that the B view will meet the bottom of the screen, I want to be able to scroll that 'excessive' A's content. How can I achieve this? | android | 0 | 2017-05-19T21:03:00.010Z | 2,017 | 5 | 21 | 4 | 41 | 2 | 278 | 33 | 1 | 0 | false | false | false | false | false | false | zero |
43,951,486 | Android media player won't start | <p>I have created android application to stream online radio stations but when I click start button to play radio it won't start.In service I read ip address of file from url and add it to string.When user selects radio station I add port to string with ip address.Problem starts in mediaPlayer.setOnPreparedListener !!!... | I have created android application to stream online radio stations but when I click start button to play radio it won't start.In service I read ip address of file from url and add it to string.When user selects radio station I add port to string with ip address.Problem starts in mediaPlayer.setOnPreparedListener !!! [C... | android | 0 | 2017-05-13T09:29:53.313Z | 2,017 | 5 | 9 | 5 | 297 | 2 | 324 | 32 | 1 | 1 | true | false | false | false | false | false | zero |
44,239,862 | Observable Timer for screen timeout android | <p>I'm working on a use-case where I have to implement a sort of screen timeout after the completion of which application navigates to the main screen. I want it to implemente it using <code>Observable</code> and use <code>Observable.timer()</code> or <code>Observable.interval()</code> for the timing. (Either is suita... | I'm working on a use-case where I have to implement a sort of screen timeout after the completion of which application navigates to the main screen. I want it to implemente it using Observable and use Observable.timer() or Observable.interval() for the timing. (Either is suitable for my use-case.). Every time the user ... | android|rx-java|rx-android | 1 | 2017-05-29T10:10:02.107Z | 2,017 | 5 | 10 | 0 | 1,321 | 2 | 649 | 43 | 3 | 0 | false | false | false | false | false | false | low |
43,964,431 | Taking grayscale picture with Android's camera2 | <p>I am creating an app for taking pictures and sending them via http POST to my server. Since I only need grayscale data on the server side, it would by much better to just take the grayscale picture and not having to convert it.
I am using <a href="https://developer.android.com/reference/android/hardware/camera2/pac... | I am creating an app for taking pictures and sending them via http POST to my server. Since I only need grayscale data on the server side, it would by much better to just take the grayscale picture and not having to convert it. I am using Camera2 API and I have an issue with setting properties for CaptureRequest.Builde... | android|grayscale|android-camera2 | 1 | 2017-05-14T13:28:43.807Z | 2,017 | 5 | 13 | 6 | 1,577 | 2 | 455 | 47 | 3 | 2 | true | false | false | false | false | false | low |
44,106,132 | Contacts aren't showing up on my edittext | <p>So i've been trying to add contact to a edittext,i've used Onclickevent to invoke contacts and then once a contact has been selected,it should be written to edittext,but i'm not able to do that,below is my Onactivity result,</p>
<pre><code> @Override
protected void onActivityResult(int requestCode, int resultCode, ... | So i've been trying to add contact to a edittext,i've used Onclickevent to invoke contacts and then once a contact has been selected,it should be written to edittext,but i'm not able to do that,below is my Onactivity result, [CODE] any help would be deeply appreciated,it stucks on "name not found" | android|android-contacts | 0 | 2017-05-22T06:39:18.827Z | 2,017 | 5 | 6 | 0 | 42 | 2 | 298 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
44,272,952 | How to close the notification after speech finished | <p>How to keep notification only while speech running?</p>
<p>Main Activity:</p>
<pre><code>TextToSpeech tts;
...
public void notification () {
NotificationCompat.Builder notification =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_volume_up_white_36dp)
.setOngoing(true)
NotificationManager Not... | How to keep notification only while speech running? Main Activity: [CODE] What is needed to implement notification cancel action and where it should be entered [CODE] | java|android | 0 | 2017-05-30T22:34:28.033Z | 2,017 | 5 | 22 | 1 | 42 | 2 | 166 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
44,004,864 | Android spooler crashes with SIGSEV while printing pdf with a page range | <p>When I try to print a 16-page PDF document with only certain pages selected (i.e. page range) the spooler crashes due to a SIGSEV (please see the dump below). The same crash also happens when I try to 'print' to PDF. Printing all pages of the document works fine.</p>
<p>Is this a bug in android print framework? <... | When I try to print a 16-page PDF document with only certain pages selected (i.e. page range) the spooler crashes due to a SIGSEV (please see the dump below). The same crash also happens when I try to 'print' to PDF. Printing all pages of the document works fine. Is this a bug in android print framework? The dump when ... | android|pdf|android-print-framework|android-pdf-api | 0 | 2017-05-16T14:53:09.240Z | 2,017 | 5 | 14 | 1 | 554 | 2 | 373 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
44,299,855 | Change width of Master of MasterDetailPage for android in xamarin-forms | <p>In xamarin-forms application,
I want to change width of left side menu For android app.</p>
<p>I am try to change width as per below code </p>
<pre><code>class MyMasterDetailPage : MasterDetailPage
{
public static readonly BindableProperty DrawerWidthProperty = BindableProperty.Create<MyMasterDetailPage, i... | In xamarin-forms application, I want to change width of left side menu For android app. I am try to change width as per below code [CODE] Now android app code. [CODE] above code is not working. Please share idea about How to change width of MasterDetailPage for android ap? | c#|xamarin.android|xamarin.forms | 1 | 2017-06-01T06:17:50.970Z | 2,017 | 6 | 6 | 3 | 1,322 | 2 | 273 | 71 | 3 | 2 | true | false | false | false | false | false | low |
44,357,112 | Image Asset versus Vector Asset | <p><a href="https://i.stack.imgur.com/3jVWi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3jVWi.png" alt="immage" /></a></p>
<p>When it comes to adding an icon to my app, there're two main options:</p>
<blockquote>
<p>IMAGE ASSET || IMAGE VECTOR</p>
</blockquote>
<p>What are the differences between... | When it comes to adding an icon to my app, there're two main options: IMAGE ASSET || IMAGE VECTOR What are the differences between the Image Asset and Vector Asset? What makes them different? | image|android-studio|icons|android-assets | 19 | 2017-06-04T17:50:33.133Z | 2,017 | 6 | 17 | 6 | 11,306 | 2 | 191 | 31 | 4 | 0 | false | false | true | false | true | false | medium |
43,974,508 | using AsynTask inside Adapter class | <p>I want to delete my Item from Custom List by clicking on delete icon of the list. I used <code>remove()</code> and <code>notifyDataSetChanged()</code> method for erasing it from my Layout. But When I am trying to send the id of the list through JSON, my app is getting crash.</p>
<pre><code>public View getView(fina... | I want to delete my Item from Custom List by clicking on delete icon of the list. I used remove() and notifyDataSetChanged() method for erasing it from my Layout. But When I am trying to send the id of the list through JSON, my app is getting crash. [CODE] java.lang.ClassCastException: android.app.Application cannot be... | android|json|android-arrayadapter | -2 | 2017-05-15T08:18:25.700Z | 2,017 | 5 | 8 | 0 | 43 | 2 | 651 | 35 | 3 | 1 | true | false | false | false | false | true | negative |
43,977,367 | android ScrollView UI | <p>I am using webview in android for showing articles also the screen has next previous buttons to navigate the articles. When content is less next previous buttons must be displayed at the bottom of screen and when content is huge those buttons must be displayed at the end of content</p>
<p>How I can implement this? ... | I am using webview in android for showing articles also the screen has next previous buttons to navigate the articles. When content is less next previous buttons must be displayed at the bottom of screen and when content is huge those buttons must be displayed at the end of content How I can implement this? Currently I... | android|xml | -1 | 2017-05-15T10:39:09.213Z | 2,017 | 5 | 10 | 0 | 44 | 2 | 527 | 21 | 2 | 1 | true | false | false | false | false | true | negative |
43,993,470 | In a new Runnable thread card is not getting removed after swipe up | <p>I have card views in a gridlayoutmanager.I have implemented on swipe ie when I swipe up the card gets dismissed.My app was working well until I put that code in a new thread to increase performance.
When I did it the card is getting removed but it is again showing up after 2-3 seconds.
initially when I swiped up the... | I have card views in a gridlayoutmanager.I have implemented on swipe ie when I swipe up the card gets dismissed.My app was working well until I put that code in a new thread to increase performance. When I did it the card is getting removed but it is again showing up after 2-3 seconds. initially when I swiped up the ca... | java|android|multithreading | 0 | 2017-05-16T05:54:46.247Z | 2,017 | 5 | 5 | 1 | 44 | 2 | 387 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
44,076,198 | Reuse function across multiple acitivity | <p>I have a doubt related to Android. My app main feature is taking photos of different objects don't matter what objects. I have a main menu where I can do that and have another view where I have a button to capture photo too, so basically I can do it in 2 different views the code should be the same.</p>
<p>I want to... | I have a doubt related to Android. My app main feature is taking photos of different objects don't matter what objects. I have a main menu where I can do that and have another view where I have a button to capture photo too, so basically I can do it in 2 different views the code should be the same. I want to place the ... | java|android|android-studio | 0 | 2017-05-19T17:52:21.840Z | 2,017 | 5 | 17 | 4 | 44 | 2 | 435 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
44,364,108 | Taking inner class from new class | <p>I want to access <code>class B</code> (a subclass of <code>AsyncTask</code>) from <code>class C</code> where <code>class B</code> is an inner class of <code>class A</code>.</p>
<p>My code structure was</p>
<pre><code> class A{
class B extends AsyncTask<>(){
}
}
class C{
public void method()... | I want to access class B (a subclass of AsyncTask ) from class C where class B is an inner class of class A . My code structure was [CODE] please help me. | android|android-asynctask|inner-classes | 1 | 2017-06-05T07:45:49.063Z | 2,017 | 6 | 7 | 0 | 44 | 2 | 154 | 33 | 3 | 1 | true | false | false | false | false | false | low |
43,963,941 | Application that change text's size of a TextView | <p>I'm a novice programmer and I'm working on one of the my first projects on Android Studio for a school work.</p>
<p>I have to create an application that consists on a TextView where the user can write some text and on a button that permits to open a sort of menu where the user can choose the text's size. When the u... | I'm a novice programmer and I'm working on one of the my first projects on Android Studio for a school work. I have to create an application that consists on a TextView where the user can write some text and on a button that permits to open a sort of menu where the user can choose the text's size. When the user select ... | android|textview|size | -1 | 2017-05-14T12:34:00.977Z | 2,017 | 5 | 12 | 6 | 45 | 2 | 581 | 49 | 3 | 0 | false | false | false | false | false | true | negative |
44,296,811 | Can't instantiate parceable Object | <p>I created a parceable class and wanted to use it for data transfer from fragment A to B. I did it like in many other tutorials but I can't instantiate from parceable object class. it always says, that I have to put in 'Parcel in' as parameter.</p>
<p>Here my object class:</p>
<pre><code>public class DataObject imp... | I created a parceable class and wanted to use it for data transfer from fragment A to B. I did it like in many other tutorials but I can't instantiate from parceable object class. it always says, that I have to put in 'Parcel in' as parameter. Here my object class: [CODE] And here is how I use objects from this type: [... | java|android|serialization | 1 | 2017-06-01T00:52:10.880Z | 2,017 | 6 | 0 | 3 | 45 | 2 | 825 | 34 | 3 | 2 | true | false | false | false | false | false | low |
43,996,683 | android - How to add satellte image in osmdroid | <p>I get a .png from my server that represents a satellite image and I would put this image like a layer over the OpenStreetMap so I can see the street (under the satellite image) and the aerial photo on the same map.</p>
<p>I use this method</p>
<pre><code> Drawable d = new BitmapDrawable(getResources(), bitmap);... | I get a .png from my server that represents a satellite image and I would put this image like a layer over the OpenStreetMap so I can see the street (under the satellite image) and the aerial photo on the same map. I use this method [CODE] the problem is that the image always is stretch. my png cover only a part of my ... | java|android|openstreetmap|osmdroid | 0 | 2017-05-16T08:51:42.890Z | 2,017 | 5 | 8 | 1 | 301 | 2 | 558 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
44,058,574 | How to extend application class in xamarin android | <p>I want to extend the Android application and I want to override oncreate method.
But for some reason its been very terrible...Only if I remove [Application] I am able to run it but according to this <a href="https://forums.xamarin.com/discussion/2147/what-is-the-recipe-to-have-a-working-application-derived-class" re... | I want to extend the Android application and I want to override oncreate method. But for some reason its been very terrible...Only if I remove [Application] I am able to run it but according to this link we have to add [Application] [CODE] Can anybody clarify me what is the rightway to extend application class in xamar... | c#|xamarin|xamarin.android|android-manifest|android-application-class | 9 | 2017-05-18T22:13:00.260Z | 2,017 | 5 | 22 | 3 | 7,981 | 2 | 2,838 | 50 | 5 | 1 | true | false | true | false | false | false | medium |
44,369,396 | Android app layout: elements appear on different places | <p>I'm developing Android version of our iOS app, but having layout issues. Elements appear on different places on different screen sizes. Here's the iOS counterpart I have to replicate.
<a href="https://i.stack.imgur.com/QrNAQ.png" rel="nofollow noreferrer">iPhone's layout</a></p>
<p>Here's my app. What will be the b... | I'm developing Android version of our iOS app, but having layout issues. Elements appear on different places on different screen sizes. Here's the iOS counterpart I have to replicate. iPhone's layout Here's my app. What will be the best layout combination to replicate the iOS counterpart. Here's my version: Android lay... | android|android-layout | 0 | 2017-06-05T12:53:06.550Z | 2,017 | 6 | 12 | 0 | 46 | 2 | 365 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
43,948,903 | Unable to call a method while paused in pause menu in cocos2dx | <p>I have the following code and I want to call a function when the moreButton is clicked in the pause menu. But I'm unable to call the method even though the button is pressed, maybe since the entire game is paused. Am I missing something? I would love to hear from you! </p>
<pre><code>auto pauseLayer=LayerColor::cre... | I have the following code and I want to call a function when the moreButton is clicked in the pause menu. But I'm unable to call the method even though the button is pressed, maybe since the entire game is paused. Am I missing something? I would love to hear from you! [CODE] | android|c++|cocos2d-x|cocos2d-x-3.0 | 0 | 2017-05-13T03:25:56.990Z | 2,017 | 5 | 3 | 5 | 47 | 2 | 275 | 62 | 4 | 1 | true | false | false | false | false | false | zero |
44,133,463 | cant add data in sqlite database through helper class getter setter | <p>I am trying to send data to <code>SQLite</code> and get the data from it to the <code>ArrayList</code>. For this, I am using the helper class and getter/setter methods. Please suggest me to correct this code.</p>
<p>This is helper class</p>
<pre><code>public class Bday_Detail {
String name,full_date,ch;
int age;
... | I am trying to send data to SQLite and get the data from it to the ArrayList . For this, I am using the helper class and getter/setter methods. Please suggest me to correct this code. This is helper class [CODE] And this is SQLiteConnection class [CODE] and the below code is the activity from where I want to get data [... | android|database|sqlite | -1 | 2017-05-23T11:25:22.657Z | 2,017 | 5 | 11 | 1 | 47 | 2 | 325 | 67 | 3 | 3 | true | false | false | false | false | true | negative |
43,961,908 | How to get specific list item and pass the two values from one activity to another? | <p>I am developing an Android app and I in my SecondActivity I have parsed some JSON values as a listview and I want to open up ThirdActivity when a particular list item is clicked and send the values "name" and "number" to the ThirdActivity.</p>
<p>I have tried by creating an Intent in the OnPostExecute method. But ... | I am developing an Android app and I in my SecondActivity I have parsed some JSON values as a listview and I want to open up ThirdActivity when a particular list item is clicked and send the values "name" and "number" to the ThirdActivity. I have tried by creating an Intent in the OnPostExecute method. But am unable to... | android|listview | 0 | 2017-05-14T08:30:13.200Z | 2,017 | 5 | 8 | 6 | 303 | 2 | 386 | 83 | 2 | 1 | true | false | false | false | false | false | zero |
43,978,409 | In application picker, it is NOT showing applications like whatsapp, facebook messenger etc | <p>I want to share excel file. In applications picker, it is showing applications like GMAIL, EMAIL app but it not showing Whatsapp or facebook messenger. Here is my code. What additional thing do I need to mention?</p>
<pre><code>Intent intentShareFile = new Intent(Intent.ACTION_SEND);
File fileInDownloads = new Fil... | I want to share excel file. In applications picker, it is showing applications like GMAIL, EMAIL app but it not showing Whatsapp or facebook messenger. Here is my code. What additional thing do I need to mention? [CODE] | android|android-intent|start-activity | 0 | 2017-05-15T11:33:07.317Z | 2,017 | 5 | 11 | 0 | 559 | 2 | 219 | 91 | 3 | 1 | true | false | false | false | false | false | zero |
44,062,112 | Android TextView's default values like height, font-size, line-spacing, padding, margin | <p>Thanks in advance for your time.</p>
<p>As per the image below, I'm looking for the default values for the Android <code>TextView</code> but am having a difficult time locating this information.</p>
<p>I am aware about <code>lineSpacingExtra</code> and multipliers but these don't tell me what the default values.</... | Thanks in advance for your time. As per the image below, I'm looking for the default values for the Android TextView but am having a difficult time locating this information. I am aware about lineSpacingExtra and multipliers but these don't tell me what the default values. | android|textview | 3 | 2017-05-19T05:31:14.573Z | 2,017 | 5 | 5 | 4 | 3,375 | 2 | 273 | 87 | 2 | 0 | false | false | true | false | false | false | low |
44,060,540 | Can i call 'cancel()' on previous method inside setOnClickListener? | <p>I'm making a simple quiz app that consist of 10 questions with 10sec countdown timer each questions. The scoring works while each questions answer correctly multiply by remaining time on CountDownTimer method, so it will be: score = answer * timeLeft; I successfully took a value of timeLeft from CountDownTimer. I se... | I'm making a simple quiz app that consist of 10 questions with 10sec countdown timer each questions. The scoring works while each questions answer correctly multiply by remaining time on CountDownTimer method, so it will be: score = answer * timeLeft; I successfully took a value of timeLeft from CountDownTimer. I set w... | java|android | 0 | 2017-05-19T02:37:03.580Z | 2,017 | 5 | 2 | 4 | 48 | 2 | 891 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
44,161,811 | Are java and/or android events concurrent? | <p>I'm trying to make an android app using some of the mobile's sensors. I was thinking some like this.</p>
<pre><code>public class ListenerSensores implements SensorEventListener {
LinkedBlockingQueue<float[]> acelerations = new LinkedBlockingQueue();
public void onSensorChanged (SensorEvent event) {
... | I'm trying to make an android app using some of the mobile's sensors. I was thinking some like this. [CODE] Should I use something LinkedBlockingQueue or something simpler like LinkedList would work? | java|android|concurrency | 0 | 2017-05-24T14:47:20.747Z | 2,017 | 5 | 14 | 2 | 48 | 2 | 199 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
44,269,477 | I can't add another row of buttons | <p>I want my fragment look like it has 3 buttons that fill the screen in both vertically and horizontally on the phone. I managed to do that somehow but I can't add another row of buttons. This is my layout... what am I doing wrong?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmln... | I want my fragment look like it has 3 buttons that fill the screen in both vertically and horizontally on the phone. I managed to do that somehow but I can't add another row of buttons. This is my layout... what am I doing wrong? [CODE] | java|android|xml|layout | 1 | 2017-05-30T18:32:44.137Z | 2,017 | 5 | 18 | 1 | 48 | 2 | 236 | 34 | 4 | 1 | true | false | false | false | false | false | low |
44,017,869 | Read other application WindowManager(System Alert) Alert in android? | <p>I am building an android application where I want to read WindowManager(System Alert) Alert Text that is trigger from some other application.</p>
<p>Suppose there is some application like true caller and after the end of each call this application display some information of that particular phone number in WindowMa... | I am building an android application where I want to read WindowManager(System Alert) Alert Text that is trigger from some other application. Suppose there is some application like true caller and after the end of each call this application display some information of that particular phone number in WindowManager(Syste... | android|android-alertdialog|system-alert-window | 0 | 2017-05-17T07:07:27.177Z | 2,017 | 5 | 7 | 2 | 304 | 2 | 598 | 68 | 3 | 0 | false | false | false | false | false | false | zero |
44,261,220 | Random native crash in Webrtc peerconnection while disconnecting | <p>I am using webrtc for making video calls. My use case is such that I connect to users in queue one after another. So connect to user1, end connection with user1 then connect to user2 and so on.</p>
<p>At times while disconnecting from user and disposing off the peerconnection I come across this native crash</p>
<p... | I am using webrtc for making video calls. My use case is such that I connect to users in queue one after another. So connect to user1, end connection with user1 then connect to user2 and so on. At times while disconnecting from user and disposing off the peerconnection I come across this native crash [CODE] This crash ... | android|android-ndk|webrtc | 2 | 2017-05-30T11:37:31.553Z | 2,017 | 5 | 11 | 1 | 2,096 | 2 | 732 | 64 | 3 | 2 | true | false | false | false | false | false | low |
43,988,566 | BroadcastReceiver for BOOT_COMPLETED is too slow | <p>The below is my manifest file.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mccheekati.test_trail">
<uses-permission
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
... | The below is my manifest file. [CODE] The Broadcast receiver is as follows: [CODE] } No errors. The application is opening on rebooting the phone. But it takes a minute's time to launch the application after reboot. Is there any what to start the application immediately after reboot? | android|broadcastreceiver|bootcompleted | 12 | 2017-05-15T20:48:45.187Z | 2,017 | 5 | 20 | 0 | 6,192 | 2 | 284 | 48 | 3 | 2 | true | false | true | false | true | false | medium |
44,252,921 | Android : read web content of xml string | <p>I try to read web content of xml string where produce from PHP Code. Here the <a href="http://www.sbmgrp.co.id/website/getxml/product.php" rel="nofollow noreferrer">result</a>. But its keep my application crash. It's same when t tried to read www.yahoo.com too.</p>
<p>Here's my code</p>
<pre><code>public static vo... | I try to read web content of xml string where produce from PHP Code. Here the result . But its keep my application crash. It's same when t tried to read www.yahoo.com too. Here's my code [CODE] I tried to debug and cannot pass from int code = conn.getResponseCode(); I dont know what exacty the error. Please advice. Tha... | android | 0 | 2017-05-30T03:25:48.930Z | 2,017 | 5 | 3 | 1 | 49 | 2 | 324 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
44,035,001 | Android SQLite Database primary key query | <p>I have successfully created a database in my android app. It has a primary key called registration number which the user inputs while registering with my app. Everything works fine but if two users enter the same registration number, the account does not get created and an exception is thrown as such:</p>
<pre><cod... | I have successfully created a database in my android app. It has a primary key called registration number which the user inputs while registering with my app. Everything works fine but if two users enter the same registration number, the account does not get created and an exception is thrown as such: [CODE] This is fi... | java|android|sql|database|sqlite | 1 | 2017-05-17T21:22:52.103Z | 2,017 | 5 | 21 | 2 | 1,329 | 2 | 452 | 41 | 5 | 2 | true | false | false | false | false | false | low |
44,036,646 | How to sync to Android frame rate | <p>I'm looking for a way to synchronize some code activity to the Android display frame rate. It's a short bit of code that will simply set the color of a small display region, nothing more. Is there some sort of method or hook that I can exploit for this purpose?</p>
<p>I can use a timer running at very fast interv... | I'm looking for a way to synchronize some code activity to the Android display frame rate. It's a short bit of code that will simply set the color of a small display region, nothing more. Is there some sort of method or hook that I can exploit for this purpose? I can use a timer running at very fast intervals successfu... | java|android|frame|synchronize | 2 | 2017-05-18T00:13:50.223Z | 2,017 | 5 | 0 | 3 | 1,841 | 2 | 607 | 33 | 4 | 0 | false | false | false | false | false | false | low |
43,975,722 | Intent Pass OrmLite Object ID Value Missing? | <pre><code>import android.os.Parcel;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "t_notice")
public class NoticeBody implements android.os.Parcelable {
@DatabaseField(generatedId = true)
private int id;
@DatabaseField
private Stri... | [CODE] Click a message from the message list to jump to the details page [CODE] Detail activity to receive the message passed [CODE] But the result is ssx:(NoticeActivity.java:174)→put:NoticeBody{id=1, userId='19645238', isRead=true, content='message', title='title', time='20170510175931', noticeId='375905', lastUpdate... | android|android-intent|ormlite | 0 | 2017-05-15T09:23:16.370Z | 2,017 | 5 | 9 | 0 | 50 | 2 | 539 | 44 | 3 | 3 | true | false | false | false | false | false | zero |
44,295,250 | Vertical ViewPager. Stop scrolling past certain point | <p>I've created a vertical <code>ViewPager</code>, using <code>ViewPage.PageTransformer</code> and swapping X and Y coordinates. (I use <a href="https://stackoverflow.com/questions/13477820/android-vertical-viewpager?rq=1">this approach</a>)</p>
<p>Now, what I want it to do is to stop scrolling at a certain point (I w... | I've created a vertical ViewPager , using ViewPage.PageTransformer and swapping X and Y coordinates. (I use this approach ) Now, what I want it to do is to stop scrolling at a certain point (I want the last view to take only 65% of the screen's height, but the full width). Usually, I would override getPageWidth() in th... | java|android|android-layout|android-viewpager|android-pageradapter | 0 | 2017-05-31T21:53:38.227Z | 2,017 | 5 | 21 | 2 | 50 | 2 | 556 | 53 | 5 | 2 | true | false | false | false | false | false | zero |
44,308,234 | How to parse json from asset folder to listview? | <p>I want to parse text and image from a json on file in asset folder to my listview. Please explain clearly because I am biginner in android. Give me complete codes of all files. Thank you a lot.</p> | I want to parse text and image from a json on file in asset folder to my listview. Please explain clearly because I am biginner in android. Give me complete codes of all files. Thank you a lot. | android|json|android-assets | -7 | 2017-06-01T12:59:36.580Z | 2,017 | 6 | 12 | 3 | 562 | 2 | 193 | 48 | 3 | 0 | false | false | false | false | false | true | negative |
44,342,549 | SearchView.OnQueryTextListener | <p>I am trying to search for items with a SearchView but I do not know why I can not find the possible way, can you help me?</p>
<p>FragGridCampos.java</p>
<pre><code>public class FragGridCampos extends Fragment implements SearchView.OnQueryTextListener{
//Creating a List of jornadas
private List<Estadist... | I am trying to search for items with a SearchView but I do not know why I can not find the possible way, can you help me? FragGridCampos.java [CODE] Campos_Adapter.java [CODE] In line * adapter.setFilter(filteredModelList); setFilter is in red. My error is *Error:(182, 16) error: cannot find symbol method setFilter(Lis... | java|android | 1 | 2017-06-03T09:40:46.650Z | 2,017 | 6 | 9 | 5 | 562 | 2 | 322 | 30 | 2 | 2 | true | false | false | false | false | false | low |
44,082,952 | Custom type in GreenDao with POJO class | <p>This is my sample JSON: </p>
<pre><code>{
"open":true,
"total_products":100,
"product":[
{
"p_id":1,
"price":"5.00",
"name":"blah one"
},
{
"p_id":2,
"price":"15.00",
"name":"blah two"
},
...
]
}
</code></pre>
<p>Th... | This is my sample JSON: [CODE] This is my POJO class: [CODE] But I don't know what should I write for productConverter . In other hand, fields in Product class have multiple types. String and Integer . I read these: https://github.com/greenrobot/greenDAO/blob/V3.1.1/examples/DaoExample/src/main/java/org/greenrobot/gree... | java|android|json|pojo|greendao | 0 | 2017-05-20T07:04:20.013Z | 2,017 | 5 | 7 | 5 | 1,586 | 2 | 409 | 39 | 5 | 2 | true | false | false | false | false | false | zero |
43,951,627 | Android Studio: Facebook image won't load | <p>I might me doing something wrong. I managed to get the facebook image with user.getPhotoUrl but it only shows a low res picture.</p>
<p>So I tried using this code.</p>
<pre><code>FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null) {
String name = user.getDisplayName();
... | I might me doing something wrong. I managed to get the facebook image with user.getPhotoUrl but it only shows a low res picture. So I tried using this code. [CODE] What am I doing wrong here? | android|facebook|firebase | 0 | 2017-05-13T09:45:03.657Z | 2,017 | 5 | 9 | 5 | 51 | 2 | 191 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
44,055,790 | Android Studio: Display a message if the camera is covered | <p>I am writing an Android-app that uses the camera. To make it user-friendly, I'd like to display a message when the picture is too dark or the user has his finger in the lens. Is there any possibility to get the camera-state and decide wether it is covered by something or the camera lens is free?</p> | I am writing an Android-app that uses the camera. To make it user-friendly, I'd like to display a message when the picture is too dark or the user has his finger in the lens. Is there any possibility to get the camera-state and decide wether it is covered by something or the camera lens is free? | android | 0 | 2017-05-18T18:54:55.250Z | 2,017 | 5 | 18 | 3 | 51 | 2 | 296 | 58 | 1 | 0 | false | false | false | false | false | false | zero |
44,260,510 | Is it possible to draw a transparent layer without using Image?-LibGdx | <p>In my game, when I click a button, popup will come out.</p>
<p>At the same time,I want to draw a transparent layer over the screen except popup, to make an impression like while popup is active,background is disabled.</p>
<p>Something like this:</p>
<p><a href="https://i.stack.imgur.com/AhUJc.jpg" rel="nofollow n... | In my game, when I click a button, popup will come out. At the same time,I want to draw a transparent layer over the screen except popup, to make an impression like while popup is active,background is disabled. Something like this: Is it possible to make an existing solid image to create a transparent overlay ? or I sh... | java|android|libgdx | 1 | 2017-05-30T11:04:53.970Z | 2,017 | 5 | 11 | 1 | 1,331 | 2 | 401 | 70 | 3 | 0 | false | false | false | false | false | false | low |
44,122,997 | NullPointerException for settext in java android | <p>i'm getting the error Nullpointerexception in my java codes. Here is my stacktrace:</p>
<pre><code> --------- beginning of crash
05-22 19:59:56.285 3050-3050/com.example.it3783.listview E/AndroidRuntime: FATAL EXCEPTION: main
Process: co... | i'm getting the error Nullpointerexception in my java codes. Here is my stacktrace: [CODE] Here are my java codes: [CODE] Here are my xml codes: [CODE] And my strings.xml: [CODE] Apparently the error comes from the last line of my java code "tvSelection.setText(text);". Please help I'm confused as to what's wrong with ... | java|android | -3 | 2017-05-22T22:22:17.423Z | 2,017 | 5 | 22 | 0 | 52 | 2 | 329 | 48 | 2 | 4 | true | false | false | false | false | true | negative |
44,013,539 | I cannot import ksoap2 at my class | <p>I have Android Project in which I want to use ksoap2.</p>
<p>I paste the .jar (ksoap2) in my folder libs, then right click on and go ahead to "Add as Library".</p>
<p><a href="https://i.stack.imgur.com/r508j.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>After I sync my gradle, Android Stu... | I have Android Project in which I want to use ksoap2. I paste the .jar (ksoap2) in my folder libs, then right click on and go ahead to "Add as Library". enter image description here After I sync my gradle, Android Studio update dependencies in file build.gradle, like this: compile files('libs/ksoap2-android-assembly-3.... | android|ksoap2 | 0 | 2017-05-17T00:14:57.877Z | 2,017 | 5 | 0 | 2 | 308 | 2 | 500 | 34 | 2 | 0 | false | false | false | false | false | false | zero |
44,032,347 | Progressbar dialogue don't dismiss after page loade finished | <p>I used code below to show progress bar, but it's not dismissing automatically (But when i touch on screen it dismiss)</p>
<p>N.B: Progress bar dismiss only home page in my webview. not any other page of posts. Please suggest me how to dismiss the progress bar dialogue automatically without touching it.</p>
<pre><c... | I used code below to show progress bar, but it's not dismissing automatically (But when i touch on screen it dismiss) N.B: Progress bar dismiss only home page in my webview. not any other page of posts. Please suggest me how to dismiss the progress bar dialogue automatically without touching it. [CODE] | android|webview|progressdialog | 0 | 2017-05-17T18:28:49.233Z | 2,017 | 5 | 18 | 2 | 308 | 2 | 303 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.