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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53,664,456 | Web service call is not working on BroadcastReceiver | <pre><code>package com.example.agniva.demoapp;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.os.PowerManage... | [CODE] It shows Unable to start receiver com.example.agniva.demoapp.Alarm: java.lang.ClassCastException: android.app.ReceiverRestrictedContext cannot be cast to com.example.agniva.demoapp.PaymentServiceListener Payment Service don't found the context here. Is it possible to call a web service here? Please give me any s... | java|android | 0 | 2018-12-07T06:36:06.490Z | 2,018 | 12 | 6 | 4 | 32 | 1 | 415 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
53,677,176 | How do i send the results of a fomula to the audio stream in android? | <p>I am working on something that requires some raw data to be sent to the speaker in real time on an device that runs on android. </p>
<p>Example
I have a formula that generates the wave form. how do I send that data to the speaker for listening in android? </p> | I am working on something that requires some raw data to be sent to the speaker in real time on an device that runs on android. Example I have a formula that generates the wave form. how do I send that data to the speaker for listening in android? | android|signal-processing | -2 | 2018-12-07T21:44:57.573Z | 2,018 | 12 | 21 | 4 | 32 | 1 | 247 | 69 | 2 | 0 | false | false | false | false | false | true | negative |
53,682,508 | How can I add these locations on the map from JSON? | <p>My project runs and it show already current location of device. My question is there is a <code>JSON</code> that include 4 address. I should add these addresses on the map. How can add these locations to map from <code>JSON</code>? </p>
<p>Website of this JSON: <a href="https://instalyticsdbplandiag814.blob.core.w... | My project runs and it show already current location of device. My question is there is a JSON that include 4 address. I should add these addresses on the map. How can add these locations to map from JSON ? Website of this JSON: https://instalyticsdbplandiag814.blob.core.windows.net/mobiversite/location.json | java|android|json|google-maps | 0 | 2018-12-08T12:25:00Z | -1 | -1 | -1 | -1 | 32 | 1 | 309 | 51 | 4 | 0 | false | false | false | false | false | false | zero |
53,796,815 | How ImageView.setImageBitmap(Bitmap); takes bitmap object as an argument? | <p>In the following code snippet how are the parameters of Canvas's drawCircle applied to mBitmap which is passed as an argument to setImageBitmap..?</p>
<pre><code> mImageView = (ImageView) findViewById(R.id.myimageview);
mBitmap = Bitmap.createBitmap(300,600, Bitmap.Config.ARGB_8888);
mCanvas = new Canvas(mBit... | In the following code snippet how are the parameters of Canvas's drawCircle applied to mBitmap which is passed as an argument to setImageBitmap..? [CODE] | android|android-canvas | 0 | 2018-12-15T20:05:53.650Z | 2,018 | 12 | 20 | 5 | 32 | 1 | 153 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
53,472,833 | How do I repair the "error: cannot find symbol method findViewById(int)" error? | <p>I created an <code>ImageView</code> with the hopes of it taking me from one activity to the next when clicked on. </p>
<p>I entered the following code but the compiler is saying:"error: cannot find symbol method findViewById(int)". If you could help me resolve this, I'd be very grateful. </p>
<p>My code: </p>
<p... | I created an ImageView with the hopes of it taking me from one activity to the next when clicked on. I entered the following code but the compiler is saying:"error: cannot find symbol method findViewById(int)". If you could help me resolve this, I'd be very grateful. My code: [CODE] | java|android|android-studio|android-layout | -1 | 2018-11-25T22:55:31.453Z | 2,018 | 11 | 22 | 6 | 288 | 1 | 283 | 79 | 4 | 1 | true | false | false | false | false | true | negative |
53,768,675 | How to make android.net.Uri encode & between query parameters to %26 | <p>I have a Android app that needs to launch a web brower with a URL containing a query string. I build my Uri like this:</p>
<pre><code> Uri uri = builder.scheme("https")
.authority("ids.example.com")
.appendPath("account")
.appendPath("login")
.appendQueryParameter(... | I have a Android app that needs to launch a web brower with a URL containing a query string. I build my Uri like this: [CODE] and pass it to the browser using: [CODE] This launches the browser with the following URL: https://ids.example.com/account/login?client_id=seglaren&scope=openid%20email%20name The problem here i... | android | 0 | 2018-12-13T19:17:50.990Z | 2,018 | 12 | 19 | 3 | 288 | 1 | 605 | 68 | 1 | 2 | true | false | false | false | false | false | zero |
53,568,685 | Android - How to get user rank from Google Play Game Service's leaderboards? | <p>GPS Leaderboard can show user <strong>score</strong>, like in this link <a href="https://stackoverflow.com/questions/37610936/how-to-get-rank-from-google-play-game-services-leaderboard">How to get rank from Google Play game service's leaderboard?</a>.</p>
<p>But, how to get user <strong>rank</strong> and place ... | GPS Leaderboard can show user score , like in this link How to get rank from Google Play game service's leaderboard? . But, how to get user rank and place them on activity? It is possible? | android|google-play-services|leaderboard | 0 | 2018-12-01T07:21:52.320Z | 2,018 | 12 | 7 | 5 | 544 | 1 | 192 | 76 | 3 | 0 | false | false | false | false | false | false | zero |
53,442,211 | NoSuchMethodError for FragmentManager.getFragmentFactory | <p>I'm trying to use the new FragmentScenario APIs of the androidx testing libraries but the test fails trying to launch the fragment scenario like so:</p>
<p><code>fragmentScenario = launchFragmentInContainer<MyFragment>(args)</code></p>
<p>The stacktrace is:</p>
<pre><code>java.lang.NoSuchMethodError: androi... | I'm trying to use the new FragmentScenario APIs of the androidx testing libraries but the test fails trying to launch the fragment scenario like so: fragmentScenario = launchFragmentInContainer<MyFragment>(args) The stacktrace is: [CODE] If I go the FragmentManager class (androidx.fragment.app FragmentManager) there is... | android|android-espresso|android-testing|robolectric|androidx | 2 | 2018-11-23T07:20:06.540Z | 2,018 | 11 | 7 | 4 | 1,568 | 1 | 569 | 56 | 5 | 2 | true | false | false | false | false | false | low |
53,801,663 | The email address is already in use by another account (Auth With Email/Password Firebase) | <p>I am using Email/Password Auth From Firebase. And I handle The exception message.
and I First Registered and After That Go To Login Activity But When I Write The Email I am Registered With It .. I can not log in And Get This Error "The email address is already in use by another account".</p>
<p>In Firebase Panel I ... | I am using Email/Password Auth From Firebase. And I handle The exception message. and I First Registered and After That Go To Login Activity But When I Write The Email I am Registered With It .. I can not log in And Get This Error "The email address is already in use by another account". In Firebase Panel I have the Em... | android|kotlin|firebase-authentication | 4 | 2018-12-16T11:24:13.907Z | 2,018 | 12 | 11 | 6 | 3,360 | 1 | 441 | 90 | 3 | 2 | true | false | true | false | false | false | low |
53,624,424 | Each button plays a single audio piece | <p>Being an absolute novice in android studio programming, trying to code three buttons, each of which will play a audio piece but they will not play all the audio pieces at the same time. Only a single piece can be played in a given time. The buttons are working and playing but the problem is that all the buttons play... | Being an absolute novice in android studio programming, trying to code three buttons, each of which will play a audio piece but they will not play all the audio pieces at the same time. Only a single piece can be played in a given time. The buttons are working and playing but the problem is that all the buttons play at... | android | 0 | 2018-12-05T02:46:39.590Z | 2,018 | 12 | 2 | 2 | 33 | 1 | 386 | 38 | 1 | 1 | true | false | false | false | false | false | zero |
53,686,005 | Custom DialogFragment says my EditTexts are null | <p>I'm definitely doing something wrong in the onCreateDialog(). The listener is working properly and I'm able to pass my host fragment Strings that I pass in, however, I'm getting errors saying my EditTexts are null. Also, I'm pretty new at coding so please forgive the mess.</p>
<p>Where am I supposed to get referenc... | I'm definitely doing something wrong in the onCreateDialog(). The listener is working properly and I'm able to pass my host fragment Strings that I pass in, however, I'm getting errors saying my EditTexts are null. Also, I'm pretty new at coding so please forgive the mess. Where am I supposed to get references to them ... | android|null|android-edittext|dialog | 0 | 2018-12-08T19:13:03.780Z | 2,018 | 12 | 19 | 5 | 33 | 1 | 332 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
53,719,819 | RecycleView with data from JSONArray and the need to highlight the elements of the list: best practice | <p>Good day.
I have an RecycleView list with data from JSONArray. Customer can select or de-select any item from this list by click on it.
So every RecycleView’s item can be in two states: marked (selected) or not.
How best to realize this opportunity? By creating a new separate array with additional “selected” boolean... | Good day. I have an RecycleView list with data from JSONArray. Customer can select or de-select any item from this list by click on it. So every RecycleView’s item can be in two states: marked (selected) or not. How best to realize this opportunity? By creating a new separate array with additional “selected” boolean pr... | android|arrays | -1 | 2018-12-11T08:08:01.807Z | 2,018 | 12 | 8 | 1 | 33 | 1 | 973 | 102 | 2 | 0 | false | false | false | false | false | true | negative |
53,787,772 | Mockito does not return mockValue when mockito class passed as a dependency | <p>It is a bit tough the explain the situation actually. I mock a class and pass it to another class's constructor. Then, I create the first class and call the first class's method under the second class's method, it returns null. Please check below:</p>
<pre><code>class A {
public String getName() {
retur... | It is a bit tough the explain the situation actually. I mock a class and pass it to another class's constructor. Then, I create the first class and call the first class's method under the second class's method, it returns null. Please check below: [CODE] I also tried doReturn, thenAnswer and spy variations, but no luck... | android|mockito | 0 | 2018-12-14T22:36:59.433Z | 2,018 | 12 | 22 | 4 | 33 | 1 | 435 | 75 | 2 | 1 | true | false | false | false | false | false | zero |
53,506,961 | Transfer file from android device to android studio | <p>Hey is there a way to get the android app from the device to android studio, so I can look at the source code and furthermore install it on a different device from the android studio itself.</p>
<p>This app is on playstore but only on my office device, i can't see it on my personal phone. I tried getting the link b... | Hey is there a way to get the android app from the device to android studio, so I can look at the source code and furthermore install it on a different device from the android studio itself. This app is on playstore but only on my office device, i can't see it on my personal phone. I tried getting the link but it says ... | java|android|android-studio|mobile-application | 0 | 2018-11-27T19:40:55.423Z | 2,018 | 11 | 19 | 1 | 289 | 1 | 366 | 51 | 4 | 0 | false | false | false | false | false | false | zero |
53,479,143 | Best approach for unit-testing scoped viewmodels | <p>When dealing with coroutines inside a viewModel is best to have said viewModel implement <code>CoroutineScope</code> so all coroutines are cancelled when the viewModel is cleared. Usually I see <code>coroutineContext</code> defined as <code>Dispatchers.Main + _job</code> so that coroutines are executed in the main U... | When dealing with coroutines inside a viewModel is best to have said viewModel implement CoroutineScope so all coroutines are cancelled when the viewModel is cleared. Usually I see coroutineContext defined as Dispatchers.Main + _job so that coroutines are executed in the main UI thread by default. Usually this is done ... | android|unit-testing|kotlin|kotlinx.coroutines|android-viewmodel | 1 | 2018-11-26T10:28:34.013Z | 2,018 | 11 | 10 | 0 | 801 | 1 | 1,041 | 48 | 5 | 2 | true | false | false | false | false | false | low |
53,478,254 | Android in-app Billing always reply with error 3: BILLING_UNAVAILABLE | <p>Our app have in-app purchases. Our tests worked fine with real payment methods too, but from abroad customers (Asia in particular) we constantly receive error reports. The Google Play Billing Android library returns response code <a href="https://developer.android.com/google/play/billing/billing_reference#billing-co... | Our app have in-app purchases. Our tests worked fine with real payment methods too, but from abroad customers (Asia in particular) we constantly receive error reports. The Google Play Billing Android library returns response code BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE (3) most if not all times. Dozens of users hav... | android|in-app-billing|android-billing|android-inapp-purchase|play-billing-library | 3 | 2018-11-26T09:38:16.043Z | 2,018 | 11 | 9 | 0 | 3,361 | 1 | 917 | 69 | 5 | 0 | false | false | true | false | false | false | low |
53,516,537 | Is Ionic Framework Native Camera editable? | <p>I'm new to ionic framework and i'm wondering, is it possible to put something into ionic framework's native camera? Like, put a label/tooltip that "detects" the color of the pixel? I'm currently working for my thesis project for color blind people.</p> | I'm new to ionic framework and i'm wondering, is it possible to put something into ionic framework's native camera? Like, put a label/tooltip that "detects" the color of the pixel? I'm currently working for my thesis project for color blind people. | android|ios|mobile | 0 | 2018-11-28T09:48:53.700Z | 2,018 | 11 | 9 | 2 | 34 | 1 | 248 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
53,518,909 | android studio doesn't link to missing resources | <p>So I had a bunch of resources in my app I swapped them out for new resources with different names, I now need to go through my project find all the missing resources references and change them to point to the new ones, android studio used to tell you where these were, you could simply try to build the project androi... | So I had a bunch of resources in my app I swapped them out for new resources with different names, I now need to go through my project find all the missing resources references and change them to point to the new ones, android studio used to tell you where these were, you could simply try to build the project android s... | android|android-studio|compiler-errors|android-resources | 0 | 2018-11-28T11:55:23.587Z | 2,018 | 11 | 11 | 2 | 34 | 1 | 682 | 48 | 4 | 0 | false | false | false | false | false | false | zero |
53,522,544 | audio file stop playing on a listview after several clicks? | <p>I have created a ListView and an each ListView item has 2 TextViews, an image and an audio file. Everything works fine and the audio files are played, but when I click on items several times and scroll up and down, the audio file is not played. What is wrong at that part? </p>
<p>Here is my java code :</p>
<pre><c... | I have created a ListView and an each ListView item has 2 TextViews, an image and an audio file. Everything works fine and the audio files are played, but when I click on items several times and scroll up and down, the audio file is not played. What is wrong at that part? Here is my java code : [CODE] and this is the c... | android|android-studio|listview|audio|media-player | 0 | 2018-11-28T15:11:01.153Z | 2,018 | 11 | 15 | 2 | 34 | 1 | 351 | 59 | 5 | 2 | true | false | false | false | false | false | zero |
53,578,801 | How to change view in application after get message from firebase? | <p>is there any possibility that after receiving a message from firebase in onMessageReceived (RemoteMessage remoteMessage) (FirebaseMessagingService) reload the current view of the application if it is running ? e.g. I have started MainActivity and I get message from Firebase and I want reload ListView in MainActivity... | is there any possibility that after receiving a message from firebase in onMessageReceived (RemoteMessage remoteMessage) (FirebaseMessagingService) reload the current view of the application if it is running ? e.g. I have started MainActivity and I get message from Firebase and I want reload ListView in MainActivity. | android|firebase-cloud-messaging | 0 | 2018-12-02T08:53:48.200Z | 2,018 | 12 | 8 | 6 | 34 | 1 | 318 | 66 | 2 | 0 | false | false | false | false | false | false | zero |
53,592,617 | I have an app (which is not an gaming app ) and now I want to put an effect of stars moving up with score points | <p>I recently came across Android Animation Interpolater and it quite works for me .
But other than that
--what is the way to do it, or is there a library for the same purpose ?</p> | I recently came across Android Animation Interpolater and it quite works for me . But other than that --what is the way to do it, or is there a library for the same purpose ? | android|animation | -1 | 2018-12-03T11:12:27.427Z | 2,018 | 12 | 11 | 0 | 34 | 1 | 174 | 112 | 2 | 0 | false | false | false | false | false | true | negative |
53,594,311 | resposte 200 from php after send image from android studio | <p>i need send image from android to folder in server using java php
my problem is no upload image and response 200 from server
the progress-bar go to 100 without problem
and if possible how i can pass data image from imageview to code thanks. <br/><br/>
my php code in file uploadphp.php</p>
<pre><code><?php
$base=... | i need send image from android to folder in server using java php my problem is no upload image and response 200 from server the progress-bar go to 100 without problem and if possible how i can pass data image from imageview to code thanks. my php code in file uploadphp.php [CODE] my java code class AsyncTask [CODE] an... | php|android|server|upload|photo | 0 | 2018-12-03T12:55:04.563Z | 2,018 | 12 | 12 | 0 | 34 | 1 | 333 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
53,599,918 | error reading data from the pre-filled database | <p>I have a database that lies in assets/databases/. I use the library <a href="https://github.com/jgilfelt/android-sqlite-asset-helper" rel="nofollow noreferrer">android-sqlite-asset-helper</a> Tried to archive the database, did not help. The error all the same gets out</p>
<pre><code> E/SQLiteAssetHelper: Couldn'... | I have a database that lies in assets/databases/. I use the library android-sqlite-asset-helper Tried to archive the database, did not help. The error all the same gets out [CODE] DbHelper: [CODE] well and a class ContentProvider as it is also specified in errors in logs public class PoemsProvider extends ContentProvid... | android|sqlite|android-contentprovider | 0 | 2018-12-03T18:42:16.937Z | 2,018 | 12 | 18 | 0 | 34 | 1 | 561 | 47 | 3 | 3 | true | false | false | false | false | false | zero |
53,734,359 | How to use Radio button in menu to change text and background colour of a textview | <p>basically I am trying to create a night mode of white text on black background on radio button click. I would like the radio button to be gray when not clicked and green when clicked/active. I have been able to make the item toast on click but lost from here. I have attached a screenshot below. No idea what to do ne... | basically I am trying to create a night mode of white text on black background on radio button click. I would like the radio button to be gray when not clicked and green when clicked/active. I have been able to make the item toast on click but lost from here. I have attached a screenshot below. No idea what to do next.... | java|android|android-studio|radio-button | -1 | 2018-12-12T00:23:59.390Z | 2,018 | 12 | 0 | 2 | 34 | 1 | 388 | 82 | 4 | 1 | true | false | false | false | false | true | negative |
53,789,814 | Why are my card-views' positions fixed despite me moving their positions in XML? | <p>I created an android layout that utilizes <code>CardView.</code> However, I also created a <code>TextView</code> that's supposed to go on top of the <code>CardViews.</code> However, I noticed that the <code>TextView</code> overlapped on one of the cards so I went and changed the card's position(which is contained in... | I created an android layout that utilizes CardView. However, I also created a TextView that's supposed to go on top of the CardViews. However, I noticed that the TextView overlapped on one of the cards so I went and changed the card's position(which is contained in a reliant layout) in XML. However, I ran it again and ... | java|android|xml | 1 | 2018-12-15T05:29:41.867Z | 2,018 | 12 | 5 | 5 | 34 | 1 | 418 | 80 | 3 | 1 | true | false | false | false | false | false | low |
53,680,267 | change exoplayer speed for certain duration of video | <p>to change exoplayer speed we use <code>player.setPlaybackParameters</code></p>
<p>this changes speed , but how can we set speed only for certain duration</p>
<p>the code that I have used is </p>
<pre><code>playerTimer.setCallback(new PlayerTimer.Callback() {
@Override
public void onTick(lo... | to change exoplayer speed we use player.setPlaybackParameters this changes speed , but how can we set speed only for certain duration the code that I have used is [CODE] and [CODE] but the speed doesnot change when its between 100000 and 200000 | android|exoplayer | 0 | 2018-12-08T06:50:12.370Z | 2,018 | 12 | 6 | 5 | 290 | 1 | 244 | 52 | 2 | 2 | true | false | false | false | false | false | zero |
53,571,844 | How to add custom images with color to menu items? | <p>I Have Following Menu Items In My Navigation Drawer</p>
<pre><code><item
android:id="@+id/nav_home"
android:icon="@drawable/home"
android:title="Home" />
<item
android:id="@+id/nav_gallery"
android:icon="@drawable/gallery"
android:title="Gallery" />
... | I Have Following Menu Items In My Navigation Drawer [CODE] I have images(.png) of the icons I tried putting it in the menu item but it comes in grayscale. How do I put the exact image (with color) as the icon of menu item ? | android|menu|navigation-drawer | 0 | 2018-12-01T14:38:00.167Z | 2,018 | 12 | 14 | 5 | 546 | 1 | 223 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
53,694,078 | Try to send HTTP Request to API Backend via Wear OS standalone app | <p>I really need your help please. I have the following problem: I want to send data via a android Wear watch (with integrated sim card) using a standalone Wear OS app. I want, if a button is pressed that a <code>http request</code> is send to my backend server (not via the GoogleServices/API or something like this, I... | I really need your help please. I have the following problem: I want to send data via a android Wear watch (with integrated sim card) using a standalone Wear OS app. I want, if a button is pressed that a http request is send to my backend server (not via the GoogleServices/API or something like this, I want it to get a... | wear-os|android-wear-data-api|android-wear-2.0|android-wear-notification | 0 | 2018-12-09T15:59:36.293Z | 2,018 | 12 | 15 | 6 | 2,338 | 1 | 624 | 66 | 4 | 0 | false | false | false | false | false | false | zero |
53,449,452 | Use parcelable with safe args in navigation components | <p>I want to use Parcelable with the Navigation Components and Safe Args in version <code>1.0.0-alpha07</code>. Although since <a href="https://developer.android.com/jetpack/docs/release-notes" rel="noreferrer">alpha 03</a> Parcelable should be supported by Safe Args, but I'm not able to use them. The only way to use i... | I want to use Parcelable with the Navigation Components and Safe Args in version 1.0.0-alpha07 . Although since alpha 03 Parcelable should be supported by Safe Args, but I'm not able to use them. The only way to use it is with app:argType="android.os.Parcelable" which doesn't seem like the right way for me. If I use on... | android|parcelable|android-architecture-components|android-safe-args | 7 | 2018-11-23T15:37:48.613Z | 2,018 | 11 | 15 | 4 | 3,362 | 1 | 467 | 54 | 4 | 0 | false | false | true | false | false | false | medium |
53,394,769 | Equal spacing between views some of which use percentage of parent on a ConstraintLayout | <p>I have a <code>ConstraintLayout</code> and I am vertically aligning several views. Some of the views use <code>app:layout_constraintHeight_percent</code> to have their height be a percentage of the entire layout/screen and the other views use <code>wrap_content</code> for their height.</p>
<p>What I want is to spli... | I have a ConstraintLayout and I am vertically aligning several views. Some of the views use app:layout_constraintHeight_percent to have their height be a percentage of the entire layout/screen and the other views use wrap_content for their height. What I want is to split the leftover vertical space into equal spacing b... | android|android-constraintlayout | 1 | 2018-11-20T14:04:45.783Z | 2,018 | 11 | 14 | 1 | 35 | 1 | 549 | 88 | 2 | 1 | true | false | false | false | false | false | low |
53,397,588 | JsonExeption when parsing local Json file | <p>I am trying to use a local Json file to display markers on the google maps api. The problem is that i get this error.</p>
<blockquote>
<p>W/System.err: org.json.JSONException: Value
{"predictions":[{"description":"GAME Paisley, High Street, Paisley,
UK","id":"d4fafbac99296d0a545170bb9af984e6251ac917","matched... | I am trying to use a local Json file to display markers on the google maps api. The problem is that i get this error. W/System.err: org.json.JSONException: Value {"predictions":[{"description":"GAME Paisley, High Street, Paisley, UK","id":"d4fafbac99296d0a545170bb9af984e6251ac917","matched_substrings":[{"length":4,"off... | android|json|google-maps | 0 | 2018-11-20T16:40:16.347Z | 2,018 | 11 | 16 | 1 | 35 | 1 | 3,900 | 41 | 3 | 3 | true | false | false | false | false | false | zero |
53,429,964 | Close application by alarm in dozen mode | <p>I'm trying to solve strange problem. This device work only with my Application. Application is always opened. Every night i application should been closed. I added alarm for different SDK-case and it work:</p>
<pre><code>AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
if... | I'm trying to solve strange problem. This device work only with my Application. Application is always opened. Every night i application should been closed. I added alarm for different SDK-case and it work: [CODE] On alarm receiver i try to kill application: [CODE] In finnaly application closed only when tablet doesn't ... | java|android | 0 | 2018-11-22T11:28:13.607Z | 2,018 | 11 | 11 | 3 | 35 | 1 | 628 | 40 | 2 | 2 | true | false | false | false | false | false | zero |
53,464,814 | Best way to make an action x times without using a Handler? | <p>I want to replace this function:</p>
<pre><code>private void transmit(){
final Handler mHandler = new Handler();
Toast.makeText(this, "Wait for the connection to stablish",Toast.LENGTH_LONG).show();
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
//Log.... | I want to replace this function: [CODE] for something more pretty, it works just fine but a friend told me that there was a more efficient way to do it, but i dont remember what he told me. Help me please, Thanks in advance. | android | 0 | 2018-11-25T05:06:58.140Z | 2,018 | 11 | 5 | 6 | 35 | 1 | 224 | 59 | 1 | 1 | true | false | false | false | false | false | zero |
53,513,066 | PointF 90degrees from X | <p>Yesterday I asked a question - <a href="https://stackoverflow.com/questions/53495688/draw-arrow-according-to-path">Draw arrow according to path</a></p>
<p>In that question I explained that I want to draw a arrow head in the direction of my <code>onTouchEvent</code>. I got a answer in the comments saying I should r... | Yesterday I asked a question - Draw arrow according to path In that question I explained that I want to draw a arrow head in the direction of my onTouchEvent . I got a answer in the comments saying I should rotate the canvas. Last night I got a new idea and this is where this question comes in. I get the x position/coo... | java|android|android-canvas | 0 | 2018-11-28T06:00:26.370Z | 2,018 | 11 | 6 | 2 | 35 | 1 | 1,272 | 23 | 3 | 4 | true | false | false | false | false | false | zero |
53,525,926 | how can I integrate loopj for a json parse | <p>These are the instructions in my onCreate:</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Client c = new Client();
String p=c.get();
((TextView) findViewById(R.id.textView)).setText(p);}
</code></pre>... | These are the instructions in my onCreate: [CODE] and this is my Client class [CODE] But my texview is empty, it's like the command client.get doesn't works, somebody can help me | java|android|json|parsing|loopj | 1 | 2018-11-28T18:32:19.643Z | 2,018 | 11 | 18 | 2 | 35 | 1 | 178 | 42 | 5 | 2 | true | false | false | false | false | false | low |
53,632,085 | Implementing better search from sqlite android | <p>I am currently using a SearchView to take input and whenever the input changes i call searchVideo()</p>
<p>this is my searchVideo function : </p>
<pre><code>public void searchVideo(String s)
{
videos.clear();
SQLiteDatabase sqLiteDatabase = getActivity().openOrCreateDatabase("CodifyData", MODE... | I am currently using a SearchView to take input and whenever the input changes i call searchVideo() this is my searchVideo function : [CODE] But when user inputs two words and those two works are contained by the title but not next to each other or in a way they are input by the user, the search fails, so what can i do... | android|search|android-sqlite | 0 | 2018-12-05T12:13:37.520Z | 2,018 | 12 | 12 | 2 | 35 | 1 | 422 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
53,636,205 | Sending user to MainActivity after database check with Firebase error | <p>After LoginActivity my app proceeds to SetupActivity in which user needs to input his email and there is a save button which uploads the email to firebase and then it should proceed to MainActivity and this should happen only once for an user. <strong>The problem is save button stores the email to the database but d... | After LoginActivity my app proceeds to SetupActivity in which user needs to input his email and there is a save button which uploads the email to firebase and then it should proceed to MainActivity and this should happen only once for an user. The problem is save button stores the email to the database but doesn't proc... | javascript|android|firebase|firebase-realtime-database | 0 | 2018-12-05T16:01:02.043Z | 2,018 | 12 | 16 | 2 | 35 | 1 | 421 | 69 | 4 | 2 | true | false | false | false | false | false | zero |
53,647,137 | How to remove the highlight effect when pulling a gridview to its topmost items | <p>When I scroll my gridview to its topmost (bottom-most) items, and I keep trying to scroll, there's a curved semi colored effect appears on the edge (top or bottom), how to remove it? or make it fully transparent.</p> | When I scroll my gridview to its topmost (bottom-most) items, and I keep trying to scroll, there's a curved semi colored effect appears on the edge (top or bottom), how to remove it? or make it fully transparent. | android | -1 | 2018-12-06T08:14:53.923Z | 2,018 | 12 | 8 | 3 | 35 | 1 | 212 | 79 | 1 | 0 | false | false | false | false | false | true | negative |
53,647,277 | How to find directories with particular name | <p>Any app can create folder in external storage.
This folder can be placed at SD card or phone inner memory.
If i use this code, i can to get list of all my external storages.</p>
<pre><code>File file2[] = getExternalFilesDirs(null);
</code></pre>
<p>it return:
/storage/emulated/0/Android/data/com.snailp4el.android... | Any app can create folder in external storage. This folder can be placed at SD card or phone inner memory. If i use this code, i can to get list of all my external storages. [CODE] it return: /storage/emulated/0/Android/data/com.snailp4el.android.tatoeba/files /storage/8639-0FFD/Android/data/com.snailp4el.android.tatoe... | android | 0 | 2018-12-06T08:24:54.747Z | 2,018 | 12 | 8 | 3 | 35 | 1 | 676 | 44 | 1 | 4 | true | false | false | false | false | false | zero |
53,695,052 | For LTR on specific layout/resource even if running in RTL | <p>I want my app to support RTL.<br>
I've added <code>android:supportsRtl="true"</code> to the <code>Application</code> element in the manifest and it looks great.<br>
However, there are a few layouts that should stay the same for both LTR/RTL. I know I can copy the layout file to a <code>layout-ldrtl</code> directory ... | I want my app to support RTL. I've added android:supportsRtl="true" to the Application element in the manifest and it looks great. However, there are a few layouts that should stay the same for both LTR/RTL. I know I can copy the layout file to a layout-ldrtl directory but I prefer to have only 1 copy of the resource i... | android|android-layout | 0 | 2018-12-09T17:52:06.320Z | 2,018 | 12 | 17 | 6 | 35 | 1 | 331 | 58 | 2 | 0 | false | false | false | false | false | false | zero |
53,697,070 | Android SQLite - new database with another app version | <p>I have an app, where I use SQLite database, provided by me, so it is fixed and the user will not update anything in the database. Only results will be shown from that database.</p>
<p>The problem is - I am creating that database programatically ONLY on first run of the app:</p>
<pre><code> SharedPreferences prefs... | I have an app, where I use SQLite database, provided by me, so it is fixed and the user will not update anything in the database. Only results will be shown from that database. The problem is - I am creating that database programatically ONLY on first run of the app: [CODE] First I drop the table (just to be sure it wi... | android|sqlite | 0 | 2018-12-09T21:54:15.797Z | 2,018 | 12 | 21 | 6 | 35 | 1 | 771 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
53,699,343 | AWS Android Project Sign on | <p>I just tried AWS for the first time to build a basic hello world android app with user authentication and I seem to be missing something critical. I worked with Android apps before so I have all the software setup there plus AWS CLI installed I created an android project in AWS Mobile Hub, created user pool, I confi... | I just tried AWS for the first time to build a basic hello world android app with user authentication and I seem to be missing something critical. I worked with Android apps before so I have all the software setup there plus AWS CLI installed I created an android project in AWS Mobile Hub, created user pool, I configur... | android|amazon-web-services | 1 | 2018-12-10T04:02:28.863Z | 2,018 | 12 | 4 | 0 | 35 | 1 | 725 | 27 | 2 | 0 | false | false | false | false | false | false | low |
53,464,715 | BottomSheet Image Picker | <p>I have a project that requires some images to be uploaded. I have done it successfully, but the user has to click 6 buttons to get 6 images on the screen. Not very efficient, so I asked around and I was told to use imagepicker.</p>
<p>I have implemented this <a href="https://github.com/siralam/BSImagePicker" rel="n... | I have a project that requires some images to be uploaded. I have done it successfully, but the user has to click 6 buttons to get 6 images on the screen. Not very efficient, so I asked around and I was told to use imagepicker. I have implemented this https://github.com/siralam/BSImagePicker and it makes everything eas... | android|firebase|firebase-realtime-database|firebase-storage | 0 | 2018-11-25T04:43:38.257Z | 2,018 | 11 | 4 | 6 | 1,571 | 1 | 631 | 24 | 4 | 1 | true | false | false | false | false | false | zero |
53,375,305 | Textview doesn't get updated for display device language from firebase | <p>I know it's very simple bug but ı can't find any solution.I'm trying to get different text from firebase for display language.If display language is Turkish get "Kayantr",and get "Kayanen" for any other language.I changed device language many times but it's always show "Kayantr".</p>
<pre><code> private Firebase... | I know it's very simple bug but ı can't find any solution.I'm trying to get different text from firebase for display language.If display language is Turkish get "Kayantr",and get "Kayanen" for any other language.I changed device language many times but it's always show "Kayantr". [CODE] Also i tried make scrollingtext ... | android | 1 | 2018-11-19T13:05:49.477Z | 2,018 | 11 | 13 | 0 | 36 | 1 | 400 | 70 | 1 | 1 | true | false | false | false | false | false | low |
53,511,685 | Popup Window to go first or second | <p>I'm writing a simple tic tac toe game and after each win or loss, I want the player to chose whether they want to go first or second (be the X or 0). What is the best strategy for getting this information?</p> | I'm writing a simple tic tac toe game and after each win or loss, I want the player to chose whether they want to go first or second (be the X or 0). What is the best strategy for getting this information? | java|android-studio|tic-tac-toe | 1 | 2018-11-28T03:30:51.677Z | 2,018 | 11 | 3 | 2 | 36 | 1 | 205 | 34 | 3 | 0 | false | false | false | false | false | false | low |
53,571,758 | Iterate through ImageViews and set random drawable and visibility | <p>I make a little game and have a problem iterating through ImageViews. </p>
<p>I have 12 ImageViews, which should show randomly no apple, a green or a red apple.</p>
<p>How can i iterate through ImageViews and set Visibility and drawable?
The App crashes: "App has stopped"</p>
<pre><code> void shuffleApples() {... | I make a little game and have a problem iterating through ImageViews. I have 12 ImageViews, which should show randomly no apple, a green or a red apple. How can i iterate through ImageViews and set Visibility and drawable? The App crashes: "App has stopped" [CODE] thank you for your help! | android|random|imageview|visibility | 0 | 2018-12-01T14:28:48.237Z | 2,018 | 12 | 14 | 5 | 36 | 1 | 289 | 65 | 4 | 1 | true | false | false | false | false | false | zero |
53,583,023 | Playing a sound in a Class while loading a Data Classifier | <p>I'm making an app that classifies images using 'tensorflow' in Android Studio, and I want to play a sound in the 'ImageClassifier' Java Class while the data indicates something.</p>
<p><strong>I get the following error: error (can't resolve method "create(class name ,int)"</strong>
So the program will not run. Is t... | I'm making an app that classifies images using 'tensorflow' in Android Studio, and I want to play a sound in the 'ImageClassifier' Java Class while the data indicates something. I get the following error: error (can't resolve method "create(class name ,int)" So the program will not run. Is there any way to play a sound... | java|android | 0 | 2018-12-02T17:55:48.627Z | 2,018 | 12 | 17 | 6 | 36 | 1 | 387 | 58 | 2 | 1 | true | false | false | false | false | false | zero |
53,586,295 | How to make search bar works with my listview | <p>I'm trying for a long time to make a search bar in a view to find any service by the title of service in my listview. I have made some change but up to now nothing works properly.
I have made a method <code>filter</code> in my activity <code>ServiceAdapter.java</code> and I have made an editText called <a href="htt... | I'm trying for a long time to make a search bar in a view to find any service by the title of service in my listview. I have made some change but up to now nothing works properly. I have made a method filter in my activity ServiceAdapter.java and I have made an editText called filterText for this ServiceListActivity.ja... | android-studio | 0 | 2018-12-03T01:22:07.930Z | 2,018 | 12 | 1 | 0 | 36 | 1 | 356 | 45 | 1 | 2 | true | false | false | false | false | false | zero |
53,595,332 | Creating global Runnable? | <p>So, I've implement sync mechanism, that uses <code>Runnable</code>.
The thing with Runnable is, that you have to make sure it's properly created and destroyed in <code>Activity</code>. What happens if you have alot of activities? - Alot of boilerplate code.</p>
<p>Is there a way to create a single instance Runnable... | So, I've implement sync mechanism, that uses Runnable . The thing with Runnable is, that you have to make sure it's properly created and destroyed in Activity . What happens if you have alot of activities? - Alot of boilerplate code. Is there a way to create a single instance Runnable for whole application? Is it okay ... | android | 0 | 2018-12-03T13:58:12.150Z | 2,018 | 12 | 13 | 0 | 36 | 1 | 599 | 25 | 1 | 0 | false | false | false | false | false | false | zero |
53,630,434 | I do not receive changes to onChange when inserting data into the database | <p>I'm trying to write applications with mvvm architecture. But I do not receive changes in onChange when I insert data into a database. The logic that I want to achieve: Go to the cache, take the data. Then we go to the server and receive data. If there are changes, update both the cache and ui. Tell me what I'm doing... | I'm trying to write applications with mvvm architecture. But I do not receive changes in onChange when I insert data into a database. The logic that I want to achieve: Go to the cache, take the data. Then we go to the server and receive data. If there are changes, update both the cache and ui. Tell me what I'm doing wr... | android|mvvm|kotlin|android-livedata | 1 | 2018-12-05T10:41:49.230Z | 2,018 | 12 | 10 | 2 | 36 | 1 | 504 | 74 | 4 | 6 | true | false | false | false | false | false | low |
53,667,401 | Fill ExpandableListView with multiple items with AsyncTask | <p>I want to fill an ExpandableListView with a custom Adapter. What I found online is having only one child(one TextView) as a child. In my case, I want to make it have multiple child and data filled after a Background task.</p>
<p>Please help me find what I've done wrong or what should I do as the error as I keep on ... | I want to fill an ExpandableListView with a custom Adapter. What I found online is having only one child(one TextView) as a child. In my case, I want to make it have multiple child and data filled after a Background task. Please help me find what I've done wrong or what should I do as the error as I keep on getting [CO... | java|android|expandablelistview | 1 | 2018-12-07T10:13:12.847Z | 2,018 | 12 | 10 | 4 | 36 | 1 | 382 | 58 | 3 | 3 | true | false | false | false | false | false | low |
53,686,466 | Using ArrayAdapter to create a list in Android | <p>I'm new at this and an explanation of how things work would be really useful.</p>
<p>So I have this class</p>
<pre><code> static class ListAdapter extends ArrayAdapter<String>{
List<String> elements;
Context context;
public ListAdapter(Context context, List&l... | I'm new at this and an explanation of how things work would be really useful. So I have this class [CODE] I added in MainActivity a few elements to the list to see how it works, but I'm having a hard time to understand how you can add elements, each with different picture, description etc. | android|list|adapter | 0 | 2018-12-08T20:04:57.693Z | 2,018 | 12 | 20 | 5 | 36 | 1 | 290 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
53,695,087 | Updating Preference UI instance from another activity? | <p>How do i update a Prefence UI instance that i created in a Setting Activity from another activity (Main Activity)?</p>
<p>I tried using these lines in Main Activity to update the Preference within Settings Activity, but I get <code>ClassCastException</code>. </p>
<pre><code>Preference IsFeature =(Preference)((Pre... | How do i update a Prefence UI instance that i created in a Setting Activity from another activity (Main Activity)? I tried using these lines in Main Activity to update the Preference within Settings Activity, but I get ClassCastException . [CODE] Just wondering whether theres another way to do this? Any help, feedback ... | android|android-preferences | 0 | 2018-12-09T17:55:31.213Z | 2,018 | 12 | 17 | 6 | 36 | 1 | 346 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
53,768,900 | Android Studio, Activity Switching question | <p>I have been trying to create this login/registration app in Android Studio, but I am having an issue. When I go to the Registration Activity I cannot get back to the login Activity by clicking on the TextView I set an OnClickListener for. Also, when I press the sign up button on the Registration Activity, it should ... | I have been trying to create this login/registration app in Android Studio, but I am having an issue. When I go to the Registration Activity I cannot get back to the login Activity by clicking on the TextView I set an OnClickListener for. Also, when I press the sign up button on the Registration Activity, it should tak... | java|android|firebase | 0 | 2018-12-13T19:35:12.150Z | 2,018 | 12 | 19 | 3 | 36 | 1 | 544 | 43 | 3 | 3 | true | false | false | false | false | false | zero |
53,785,083 | JavaScript injection into Java WebView | <p>Good evening,
I'm trying to get the following JavaScript snippet to run inside an WebView of an Android app. Trust me, I've studied several pages in here and I did it similarly.
That's the snippet:</p>
<pre><code>function myFunction() {
var selection = window.getSelection();
var range = selection.getRangeAt(0);
var... | Good evening, I'm trying to get the following JavaScript snippet to run inside an WebView of an Android app. Trust me, I've studied several pages in here and I did it similarly. That's the snippet: [CODE] } I'm working on a Browser app and I want to be able to highlight text passages. For that I've made a custom text s... | javascript|java|android|webview | -1 | 2018-12-14T18:28:52.603Z | 2,018 | 12 | 18 | 4 | 36 | 1 | 542 | 38 | 4 | 3 | true | false | false | false | false | true | negative |
53,631,586 | YouTube Data API v3 is not returning data when "Application restriction" is set to "Android apps" | <p>I am trying to create a YouTube client where videos are searched with a keyword. I have properly obtained the YouTube Data API v3 key. I have supplied both the package name and SHA1 release certificate properly. When I set the "<strong>Application restriction</strong>" to "<strong>Android apps</strong>" the API does... | I am trying to create a YouTube client where videos are searched with a keyword. I have properly obtained the YouTube Data API v3 key. I have supplied both the package name and SHA1 release certificate properly. When I set the " Application restriction " to " Android apps " the API does not return any data. Please refe... | android|google-api|android-youtube-api|youtube-data-api|google-console-developer | 0 | 2018-12-05T11:46:43.860Z | 2,018 | 12 | 11 | 2 | 292 | 1 | 742 | 97 | 5 | 0 | false | false | false | false | false | false | zero |
53,712,745 | Xamarin.Forms Crash Reporting and Analytics Suggestions/Recommendations | <p>We develop in Xamarin.Forms and I am interested if anyone has expereince/recommendations for analytics and crash reporting for Xamarin.Forms, we support iOS, Android, and UWP preferably, too.</p>
<p>I understand this question may not be for stack overflow but dont know where else to ask (except Xamarin forums).</p>... | We develop in Xamarin.Forms and I am interested if anyone has expereince/recommendations for analytics and crash reporting for Xamarin.Forms, we support iOS, Android, and UWP preferably, too. I understand this question may not be for stack overflow but dont know where else to ask (except Xamarin forums). UPDATE I am aw... | android|ios|xamarin.forms|analytics|crash-reports | 1 | 2018-12-10T19:57:59.077Z | 2,018 | 12 | 19 | 0 | 804 | 1 | 760 | 71 | 5 | 0 | false | false | false | false | false | false | low |
53,414,271 | Function into fragment stop refreshing after change tab | <p>I have an app with 2 tabs where the first include somes values which are refreshed during the time. I take these values from a <code>PhoneStateListener</code> activity and I transfer them into the fragment with the function below. The problem is, when I move to 2nd tab and after that move back to first the values ar... | I have an app with 2 tabs where the first include somes values which are refreshed during the time. I take these values from a PhoneStateListener activity and I transfer them into the fragment with the function below. The problem is, when I move to 2nd tab and after that move back to first the values are not refresed a... | java|android|android-fragments | 0 | 2018-11-21T14:27:56.707Z | 2,018 | 11 | 14 | 2 | 37 | 1 | 406 | 55 | 3 | 2 | true | false | false | false | false | false | zero |
53,433,651 | Xamarin, adding a new Menu does reload Resource, but won't build | <p>Just wondering if anyone encountered this problem before,</p>
<p>I am developing an android app in Xamarin (C#), and when I add a Menu file it does regenerate the resource.designer.cs file and I can find the menu reference in my code, but the second I start buidling I get the message <code>error CS0117: 'Resource.M... | Just wondering if anyone encountered this problem before, I am developing an android app in Xamarin (C#), and when I add a Menu file it does regenerate the resource.designer.cs file and I can find the menu reference in my code, but the second I start buidling I get the message error CS0117: 'Resource.Menu' does not con... | c#|xamarin|android-resources | 0 | 2018-11-22T15:00:56.767Z | 2,018 | 11 | 15 | 3 | 37 | 1 | 516 | 64 | 3 | 1 | true | false | false | false | false | false | zero |
53,506,129 | Listview row color different for each row | <p>Hello I am using a Listview with custom row layout . I have used LinearLayout in CardView inside the row layout of Listview. I have some gradients shapes in drawable so I want to give them to background of LinearLayout.. How can i give it to linearlayout problematically, so every row of Listview will be filled with ... | Hello I am using a Listview with custom row layout . I have used LinearLayout in CardView inside the row layout of Listview. I have some gradients shapes in drawable so I want to give them to background of LinearLayout.. How can i give it to linearlayout problematically, so every row of Listview will be filled with dif... | android|android-listview | -1 | 2018-11-27T18:38:29.050Z | 2,018 | 11 | 18 | 1 | 37 | 1 | 434 | 41 | 2 | 1 | true | false | false | false | false | true | negative |
53,531,376 | Android Studio getting problem in running AVD(Android Virtual Device) | <p>I have Installed Android Studio in My Laptop. The configuration of my system is 4GB
RAM ad core i3 processor. </p>
<p>After installing the Android Studio as I have install Android Pie and try to run Android Virtual Device it gives me an Error. I have attached screenshot of it with this message please help me to re... | I have Installed Android Studio in My Laptop. The configuration of my system is 4GB RAM ad core i3 processor. After installing the Android Studio as I have install Android Pie and try to run Android Virtual Device it gives me an Error. I have attached screenshot of it with this message please help me to resolve this pr... | android-studio|avd | 0 | 2018-11-29T03:21:30.970Z | 2,018 | 11 | 3 | 3 | 37 | 1 | 350 | 69 | 2 | 0 | false | false | false | false | false | false | zero |
53,585,261 | override / listen to setMethod in an instantiated object | <p>I would like to listen to a boolean value in an object that's handed to me by a factory. and it is value inside this object changes over time.</p>
<p>My real use Case :
I want to do something when fragment is visible to user but i want to do this in Application class (sort of library) so i don't want to interact w... | I would like to listen to a boolean value in an object that's handed to me by a factory. and it is value inside this object changes over time. My real use Case : I want to do something when fragment is visible to user but i want to do this in Application class (sort of library) so i don't want to interact with the user... | java|android|fragment | 0 | 2018-12-02T22:33:46.377Z | 2,018 | 12 | 22 | 6 | 37 | 1 | 493 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
53,717,917 | Save state of the button even when navigating through activities | <p>So i have a button in a fragment where after clicking it i am disabling it through code and when i go to another activity and come back the button is back enabled again ,i want it to be disabled even if we close the app or navigate other activities.Is there any solution?</p> | So i have a button in a fragment where after clicking it i am disabling it through code and when i go to another activity and come back the button is back enabled again ,i want it to be disabled even if we close the app or navigate other activities.Is there any solution? | java|android | -2 | 2018-12-11T05:30:26.907Z | 2,018 | 12 | 5 | 1 | 37 | 1 | 271 | 64 | 2 | 0 | false | false | false | false | false | true | negative |
53,719,364 | How to set selection, selection args to filter results | <p>This is the code I am using for <code>selection</code> and <code>selectionArgs</code> clauses. </p>
<pre><code> String where = db_contract.trans.TYPE + "=? AND " + db_contract.trans.BANK_NAME + "=? AND " + db_contract.trans.TIME+ ">=? AND " + db_contract.trans.TIME + "<=?";
String[] whereArgs = new String[... | This is the code I am using for selection and selectionArgs clauses. [CODE] User selects to query results based on his filter need so type_name , bank_name , from_date , to_date are may/maynot be filled. So, I wrote this code to replace those 4 variables. [CODE] It's giving an empty set of results. How to query results... | java|android|android-contentprovider | 0 | 2018-12-11T07:34:18.887Z | 2,018 | 12 | 7 | 1 | 37 | 1 | 355 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
53,567,559 | adb devices list my phones but android studio does not show this | <p>i just install windows 10 ver 1809, on command line adb devices shows my 2 phones</p>
<pre><code>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
***62aa4 device
***9389a device
</code></pre>
<p>but from android studio there are... | i just install windows 10 ver 1809, on command line adb devices shows my 2 phones [CODE] but from android studio there are not devices, i have an emulator that appear on list but android studio can't connnect to emulator either. android studio 3.2.1 Android sdk tools 26.1.1 the usb cable works good in other machines | android-studio | 0 | 2018-12-01T03:34:58.927Z | 2,018 | 12 | 3 | 5 | 293 | 1 | 317 | 64 | 1 | 1 | true | false | false | false | false | false | zero |
53,392,874 | block copy paste in Xamarin.forms | <p>I want to block copy paste from entry. I have tried every solution but it fails in Android 8.1. It works well when user is in potrait mode but after moving in landscape mode cut copy paste menu working properly.
I have used these solutions </p>
<p>1) Control.LongClickable = false;</p>
<p>2)</p>
<pre><code>class ... | I want to block copy paste from entry. I have tried every solution but it fails in Android 8.1. It works well when user is in potrait mode but after moving in landscape mode cut copy paste menu working properly. I have used these solutions 1) Control.LongClickable = false; 2) [CODE] | android|xamarin|xamarin.android | 1 | 2018-11-20T12:20:50.490Z | 2,018 | 11 | 12 | 1 | 549 | 1 | 283 | 33 | 3 | 1 | true | false | false | false | false | false | low |
53,391,740 | Android Exoplayer AdaptiveTrackSelection need to start video with high quality | <p>I am using Exoplayer for streaming HLS video content. By default AdaptiveTrackSelection starts with low quality and as it detects good internet speed it switches to high quality. I want to start player with high quality and then it should change as per internet speed. Thanks in advance.</p> | I am using Exoplayer for streaming HLS video content. By default AdaptiveTrackSelection starts with low quality and as it detects good internet speed it switches to high quality. I want to start player with high quality and then it should change as per internet speed. Thanks in advance. | android|exoplayer|exoplayer2.x | 2 | 2018-11-20T11:12:06.193Z | 2,018 | 11 | 11 | 1 | 2,597 | 1 | 287 | 78 | 3 | 0 | false | false | false | false | false | false | low |
53,370,179 | Draw a line on a map but the line not a road | <p>How can I draw a line on a map to detect a live location on that line.
but the line won't be on a road (street), it is a well known line on the map
using google map API. </p> | How can I draw a line on a map to detect a live location on that line. but the line won't be on a road (street), it is a well known line on the map using google map API. | android|mobile-development | 0 | 2018-11-19T07:36:59.833Z | 2,018 | 11 | 7 | 0 | 38 | 1 | 169 | 44 | 2 | 0 | false | false | false | false | false | false | zero |
53,382,775 | Mysterious Event in Android Activity I can't seem to capture | <p><a href="https://i.stack.imgur.com/nlM1b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nlM1b.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.com/3VFWj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3VFWj.png" alt="enter image description he... | I am writing an app for a custom android device that includs a barcode scanner. Inside my app is a WebView. Out of the box, the scanner populates html fields inside the webview without calling any library methods. I can see the text in Android Studio's profiler. I have attached pictures of the event. For testing, I cre... | android | 0 | 2018-11-19T21:18:15.727Z | 2,018 | 11 | 21 | 0 | 38 | 1 | 666 | 60 | 1 | 0 | false | false | false | false | false | false | zero |
53,406,779 | Why does the Tabbed Activity work well after I remove the code setSupportActionBar(toolbar) created by the Create New Project wizard? | <p>The following code is created by the Create New Project wizard of Android Studio 3.2.1 , it's a Tabbed Activity.</p>
<p>I'm so strange why Android Studio 3.2.1 want to add the code <code>setSupportActionBar(toolbar)</code>, and why the App works well and can display 3 tabs after I delete <code>setSupportActionBar(t... | The following code is created by the Create New Project wizard of Android Studio 3.2.1 , it's a Tabbed Activity. I'm so strange why Android Studio 3.2.1 want to add the code setSupportActionBar(toolbar) , and why the App works well and can display 3 tabs after I delete setSupportActionBar(toolbar) . Could you tell me? ... | android|kotlin | 0 | 2018-11-21T07:00:06.517Z | 2,018 | 11 | 7 | 2 | 38 | 1 | 345 | 133 | 2 | 2 | true | false | false | false | false | false | zero |
53,453,434 | Android Studio Delete All Rows from Reyclerview and Sqlitedb | <p>Inside MarkerDisplayActivity I am trying to confirm that the user wants
to remove all listed items from rows and db how do you do that? i
tried clear() and other types the rows get deleted but if I go back
then go to RV again the deleted rows are back because they are still saved
in the database.</p>
<p>Here is... | Inside MarkerDisplayActivity I am trying to confirm that the user wants to remove all listed items from rows and db how do you do that? i tried clear() and other types the rows get deleted but if I go back then go to RV again the deleted rows are back because they are still saved in the database. Here is my code: [CODE... | java|android|android-studio|android-recyclerview | 0 | 2018-11-23T22:15:05.673Z | 2,018 | 11 | 22 | 4 | 38 | 1 | 321 | 60 | 4 | 1 | true | false | false | false | false | false | zero |
53,459,031 | Search bar widget custom design? | <p>I want to create a custom search exactly like image below.</p>
<p>Thanks very much</p>
<p><a href="https://i.stack.imgur.com/xrH6z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xrH6z.png" alt="enter image description here"></a></p> | I want to create a custom search exactly like image below. Thanks very much | android|android-layout | -2 | 2018-11-24T14:13:11.620Z | 2,018 | 11 | 14 | 5 | 38 | 1 | 75 | 32 | 2 | 0 | false | false | false | false | false | true | negative |
53,521,247 | Android Sdk version upgrade | <p>I am new to Android development, I am planning to upgrade my current Android mobile application to Sdk versionn 26. </p>
<p>The impact is there are several of dependency libraries are in the same older version as well. </p>
<p>I need some advise how to proceed with the upgrade, should I also change the gradle vers... | I am new to Android development, I am planning to upgrade my current Android mobile application to Sdk versionn 26. The impact is there are several of dependency libraries are in the same older version as well. I need some advise how to proceed with the upgrade, should I also change the gradle version? I had a thought ... | android|gradle | 0 | 2018-11-28T14:03:55.070Z | 2,018 | 11 | 14 | 2 | 38 | 1 | 434 | 27 | 2 | 0 | false | false | false | false | false | false | zero |
53,563,232 | Image is shrinking in GridLayout | <p>I am making a Tic Tac Toe game. For row and column I am using GridLayout and inside GridLayout I am using an image for making borders and in place of x and 0 I am using two coins. But when I put coin's image in GridLayout it shrinks to top left corner.</p>
<p>layout:
</p>
<pre><code><?xml version="1.0" encoding... | I am making a Tic Tac Toe game. For row and column I am using GridLayout and inside GridLayout I am using an image for making borders and in place of x and 0 I am using two coins. But when I put coin's image in GridLayout it shrinks to top left corner. layout: [CODE] image: | java|android | 0 | 2018-11-30T18:49:07.750Z | 2,018 | 11 | 18 | 4 | 38 | 1 | 274 | 32 | 2 | 1 | true | false | false | false | false | false | zero |
53,569,420 | Send and Receive TCP data each 16ms interval | <p>I need to send and receive data(data transmission) each 16ms , time should be 16ms not more and not less
which method you propose for that?
please let me know if you want to implement this app
a method with no memory leakage and a method that app don't stop working
thank alot.</p> | I need to send and receive data(data transmission) each 16ms , time should be 16ms not more and not less which method you propose for that? please let me know if you want to implement this app a method with no memory leakage and a method that app don't stop working thank alot. | android | 0 | 2018-12-01T09:28:25.687Z | 2,018 | 12 | 9 | 5 | 38 | 1 | 277 | 44 | 1 | 0 | false | false | false | false | false | false | zero |
53,603,410 | textview does not update it's position on adjustResize | <p>Basically, I used</p>
<pre><code>android:windowSoftInputMode="stateVisible|adjustResize"
</code></pre>
<p>in my Manifest.xml file so that the edittext appears when the softkeyboard arrives but now the text view above the edittext is not moving, I know that it is because that the text view is visible, how do I solv... | Basically, I used [CODE] in my Manifest.xml file so that the edittext appears when the softkeyboard arrives but now the text view above the edittext is not moving, I know that it is because that the text view is visible, how do I solve this is what I can not figure out. Is it possible that the text view changes positio... | java|android|xml | 0 | 2018-12-03T23:17:55.393Z | 2,018 | 12 | 23 | 0 | 38 | 1 | 618 | 54 | 3 | 3 | true | false | false | false | false | false | zero |
53,612,997 | Unable to instantiate activity ClassNotFoundException is thrown, when I try to run the app after moving activity in a separate library/ | <p>I am developing app for both tv and mobile. And now I need to share the components between two platforms. I moved MainActivity to a seperate library module. And now it crashes on start:</p>
<pre><code>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{nl.glukadevice.seniorapp/nl.glukadevice.se... | I am developing app for both tv and mobile. And now I need to share the components between two platforms. I moved MainActivity to a seperate library module. And now it crashes on start: [CODE] I tried to clean all Gradle cashes and rebuild the project and it doesn't help. I included the module into build.gradle [CODE] ... | android|android-activity | -1 | 2018-12-04T12:26:37.890Z | 2,018 | 12 | 12 | 1 | 38 | 1 | 375 | 135 | 2 | 3 | true | false | false | false | false | true | negative |
53,639,132 | how to create layout as a dialog pop up from down | <p>I want to create a layout as shown below where I can load items in a recycler view. How can it be done?</p>
<p>I am new to android and I checked the type of dialog but somehow didn't find appropriate the appropriate XML code.</p>
<p>help will be appreciated Thanks</p>
<p><img src="https://i.stack.imgur.com/aP318.... | I want to create a layout as shown below where I can load items in a recycler view. How can it be done? I am new to android and I checked the type of dialog but somehow didn't find appropriate the appropriate XML code. help will be appreciated Thanks | android | -3 | 2018-12-05T19:06:04.537Z | 2,018 | 12 | 19 | 2 | 38 | 1 | 250 | 49 | 1 | 0 | false | false | false | false | false | true | negative |
53,682,683 | Android Studio virtual devices problems | <p>i'm trying to learn how to make apps for android. I got this problem: </p>
<pre><code>Emulator: Process finished with exit code -1073741511 (0xC0000139).
</code></pre>
<p>But trying to solve this problem i got all this:</p>
<pre><code>13:33 Emulator: safe_execv: start. want to run: C:\Users\Alberto\AppData\Loca... | i'm trying to learn how to make apps for android. I got this problem: [CODE] But trying to solve this problem i got all this: [CODE] I don't know much about android stuido or coding so if you tell me what you need, how to get more info or how to solve it, please be very specific on the process. Thanks everyone for your... | android|android-studio | 0 | 2018-12-08T12:48:44.840Z | 2,018 | 12 | 12 | 5 | 38 | 1 | 329 | 39 | 2 | 2 | true | false | false | false | false | false | zero |
53,712,282 | Start a new Android projekt with Android Studio | <p>i start a new Android projekt with Android Studio and become this error:</p>
<pre><code>org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD 'https://dl.google.com/dl/android/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.pom'.
</code></pre> | i start a new Android projekt with Android Studio and become this error: [CODE] | android|gradle | 0 | 2018-12-10T19:23:46.477Z | 2,018 | 12 | 19 | 0 | 38 | 1 | 79 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
53,800,125 | How to detect bottom to top touch in horizontal RecyclerView item | <p>How to detect bottom to top touch in horizontal Recyclerview item?
I want to display a toast when the user pulls the finger vertically onto the item.</p> | How to detect bottom to top touch in horizontal Recyclerview item? I want to display a toast when the user pulls the finger vertically onto the item. | android|android-recyclerview|touch | -1 | 2018-12-16T07:06:23.167Z | 2,018 | 12 | 7 | 6 | 38 | 1 | 149 | 65 | 3 | 0 | false | false | false | false | false | true | negative |
53,611,957 | Camera.open() gets "Access for <package> has been restricted" | <ul>
<li>Problem happening on a Nokia 6 with Android 7.1.1</li>
<li>Permission granted</li>
<li><code>AppOpsManager#checkOp(AppOpsManager.OPSTR_CAMERA, Process.myUid(), getPackageName())</code> returns <code>AppOpsManager#MODE_ALLOWED</code></li>
</ul>
<p>Yet when trying Camera.open(i) for checking camera properties I... | Problem happening on a Nokia 6 with Android 7.1.1 Permission granted AppOpsManager#checkOp(AppOpsManager.OPSTR_CAMERA, Process.myUid(), getPackageName()) returns AppOpsManager#MODE_ALLOWED Yet when trying Camera.open(i) for checking camera properties I get I/CameraService: Camera 0: Access for "package" has been restri... | android|android-camera|android-7.1-nougat | 0 | 2018-12-04T11:26:57.823Z | 2,018 | 12 | 11 | 1 | 294 | 1 | 715 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
53,702,396 | Flutter: Unable to display image in preview when image is shared Whatsapp and Facebook | <p>The image is able to show in Facebook Messenger chat, however the image is unable to be displayed in Whatsapp as well as the preview image for both messenger and whatsapp. Any idea where I did wrong?</p>
<p><strong>Main.dart</strong> - This is where I capture my image and save it to a temporary directory.</p>
<pre... | The image is able to show in Facebook Messenger chat, however the image is unable to be displayed in Whatsapp as well as the preview image for both messenger and whatsapp. Any idea where I did wrong? Main.dart - This is where I capture my image and save it to a temporary directory. [CODE] MainActivity.java [CODE] file_... | android|image|android-intent|dart|flutter | 0 | 2018-12-10T09:05:51.697Z | 2,018 | 12 | 9 | 0 | 550 | 1 | 335 | 86 | 5 | 3 | true | false | false | false | false | false | zero |
53,688,369 | Android - WhatsApp: stickers not showing | <p>I'm following this guide in order to build a stickers app: <a href="https://github.com/WhatsApp/stickers/tree/master/Android" rel="nofollow noreferrer">https://github.com/WhatsApp/stickers/tree/master/Android</a></p>
<p>What I'm doing in a different way, is getting the json, tray images and sticker files from a web... | I'm following this guide in order to build a stickers app: https://github.com/WhatsApp/stickers/tree/master/Android What I'm doing in a different way, is getting the json, tray images and sticker files from a web service instead from assets. Everything is working fine (including adding the stickers to whatsapp) except ... | android|whatsapp | 0 | 2018-12-09T00:33:12.603Z | 2,018 | 12 | 0 | 6 | 1,574 | 1 | 1,009 | 40 | 2 | 1 | true | false | false | false | false | false | zero |
53,791,779 | CustomScope may not reference bindings with different scopes | <p>I am new to dagger, I have defined my application component like this</p>
<pre><code>@Singleton
@Component(modules = {ApplicationModule.class})
public interface ApplicationComponent {
void inject(BaseActivity activity);
Context context();
}
</code></pre>
<p>This is my ApplicationModule</p>
<pre><code>@Mod... | I am new to dagger, I have defined my application component like this [CODE] This is my ApplicationModule [CODE] I have created a dependent Component LocationProviderComponent [CODE] And Finally My LocationProviderModule [CODE] I am getting 2 errors when I build. 1st cannot find symbol class DaggerApplicationComponent ... | android|android-studio|dependency-injection|dagger-2|dagger | 17 | 2018-12-15T11:07:30.850Z | 2,018 | 12 | 11 | 5 | 13,094 | 1 | 368 | 60 | 5 | 5 | true | false | true | true | true | false | medium |
53,377,181 | how can i use if statement in video view if the video not work | <p>in my java code , i have VideoView and im parsing the video to him in URI From internet(i set link of video) , but after 6 Hours , they are changed the link of video , and if the old link of video has still in uri he giving me message "Can't play this video" , but now ho can i use <code>if</code> statement and i set... | in my java code , i have VideoView and im parsing the video to him in URI From internet(i set link of video) , but after 6 Hours , they are changed the link of video , and if the old link of video has still in uri he giving me message "Can't play this video" , but now ho can i use if statement and i set inside it nearl... | java|android|video|uri|android-videoview | 1 | 2018-11-19T14:53:25.547Z | 2,018 | 11 | 14 | 0 | 39 | 1 | 485 | 62 | 5 | 1 | true | false | false | false | false | false | low |
53,429,235 | How to retrieve html source of mobile version website in android? | <p>I have a application need to get a source of mobile version
Currently I get the source by Jsoup but it still is desktop version.</p>
<pre><code>Document doc = null;
try {
doc = Jsoup.connect(strings[0]).get();
} catch (IOException e) {
e.printStackTrace();
}
String html = doc.html... | I have a application need to get a source of mobile version Currently I get the source by Jsoup but it still is desktop version. [CODE] So, how to get the html source of mobile version when the website is reponsive. Thank you so much | android|html|jsoup | 0 | 2018-11-22T10:48:04.800Z | 2,018 | 11 | 10 | 3 | 39 | 1 | 233 | 65 | 3 | 1 | true | false | false | false | false | false | zero |
53,434,492 | How to get arraylist from java to android | <p>I'm doing an application and I need to receive an udp array from java to android and put it in a Spinner. Does anyone know how to do it?</p>
<p>Now, this is the code that I'm working with but I only receive a string.</p>
<p>Does anyone have an idea of how I can receive the array working from this code?</p>
<p><... | I'm doing an application and I need to receive an udp array from java to android and put it in a Spinner. Does anyone know how to do it? Now, this is the code that I'm working with but I only receive a string. Does anyone have an idea of how I can receive the array working from this code? UDPClientSocketActivity [COD... | java|android|sockets | 0 | 2018-11-22T15:51:24.857Z | 2,018 | 11 | 15 | 3 | 39 | 1 | 322 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
53,465,596 | How to get some components in recycelrview adapter from main layout? | <p>I have recyclerview in activity_main.xml and I have there the image which shows to user - empty or not empty recyclerview. activity_main.xml:</p>
<pre><code> <RelativeLayout
android:id="@+id/main_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android... | I have recyclerview in activity_main.xml and I have there the image which shows to user - empty or not empty recyclerview. activity_main.xml: [CODE] And I have recyclerview one item xml file [CODE] And I wanna during long press click to this cardview to delete one item from the recyclerview. Adapter: [CODE] } I've done... | java|android|android-recyclerview | 0 | 2018-11-25T07:45:34.467Z | 2,018 | 11 | 7 | 6 | 39 | 1 | 561 | 68 | 3 | 3 | true | false | false | false | false | false | zero |
53,465,714 | Save new form of custom ArrayList, SharedPreferences | <p>noobie here. I have a custum ArrayAdapter with questions and answers. When one list item is longClicked, it gets removed. Now I want to save the new state of the ArrayList with the removed item, so if you go to another tab in the app and then return you will have only the remaining questions.
I looked online and fo... | noobie here. I have a custum ArrayAdapter with questions and answers. When one list item is longClicked, it gets removed. Now I want to save the new state of the ArrayList with the removed item, so if you go to another tab in the app and then return you will have only the remaining questions. I looked online and found ... | java|android|sharedpreferences | 0 | 2018-11-25T08:08:04.950Z | 2,018 | 11 | 8 | 6 | 39 | 1 | 543 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
53,467,775 | How to add atribute to Xml? | <p>I have a request that as an atribute called operation="V" (fwxtrasptos001 operacion="V"). This is the request</p>
<pre><code><?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<envelope>
<version>v1.001</version>
<tipo_codificacion>application/x-www-form-urlencoded<... | I have a request that as an atribute called operation="V" (fwxtrasptos001 operacion="V"). This is the request [CODE] This is my request class [CODE] This is my request envelope: [CODE] With the code I have how can I add the atribute fwxtrasptos001 operacion="V" to the begin xml tag | android|xml|xml-parsing|retrofit2 | 0 | 2018-11-25T13:09:09.240Z | 2,018 | 11 | 13 | 6 | 39 | 1 | 282 | 27 | 4 | 3 | true | false | false | false | false | false | zero |
53,621,646 | Send data to specific fragment of viewpager | <p>I have a ViewPager with a dynamic number of fragments. When the user enters data in a specific fragment and presses the "send" button, the method in the activity sends the entered data to the server, then the activity receives the response. How to send the received data to a specific fragment correctly? Thank you ve... | I have a ViewPager with a dynamic number of fragments. When the user enters data in a specific fragment and presses the "send" button, the method in the activity sends the entered data to the server, then the activity receives the response. How to send the received data to a specific fragment correctly? Thank you very ... | java|android|android-fragments|android-viewpager | 1 | 2018-12-04T21:26:22.427Z | 2,018 | 12 | 21 | 1 | 39 | 1 | 388 | 43 | 4 | 3 | true | false | false | false | false | false | low |
53,647,346 | data exchange using sockets best option? | <p>For mobile development i woud like to move something on the screen on a mobile device and on another mobile device you see the same object moving.</p>
<p>What would be my best option to use to exchange this data? I thought about firebase but the problem is you move the image alot of times so you easily get to the 5... | For mobile development i woud like to move something on the screen on a mobile device and on another mobile device you see the same object moving. What would be my best option to use to exchange this data? I thought about firebase but the problem is you move the image alot of times so you easily get to the 50000 limit ... | android|networking|netty|nio | 0 | 2018-12-06T08:28:56.887Z | 2,018 | 12 | 8 | 3 | 39 | 1 | 855 | 40 | 4 | 0 | false | false | false | false | false | false | zero |
53,672,178 | Unable to return Same Value from method,From its child method | <pre><code>ArrayList<String> getthis=new ArrayList<String>();
getthis.add("username");
getthis.add("status");
</code></pre>
<p>*Trying to achive-</p>
<p>method will take above "username","status" and get their value from FirebaseDatabase as new simmilar array,*</p>
<p>And it do so,it retrives the value a... | [CODE] *Trying to achive- method will take above "username","status" and get their value from FirebaseDatabase as new simmilar array,* And it do so,it retrives the value as log says. these are the Logs while checking app. [CODE] Ide throw below Log before above Logs [CODE] But at the end ,when main method try to return... | java|android|firebase|firebase-realtime-database | 1 | 2018-12-07T15:09:23.077Z | 2,018 | 12 | 15 | 4 | 39 | 1 | 513 | 61 | 4 | 4 | true | false | false | false | false | false | low |
53,447,344 | CipherInputStream .available() returns ZERO in decryption phase | <p>I'm trying to use encryption tools <a href="https://www.flexiprovider.de" rel="nofollow noreferrer">flexiprovider</a> in my android app by using the example provided for ECIES. When I run the code in my local machine Enc/Dec work without any problem. But when I'm trying to run it as an android app using the android... | I'm trying to use encryption tools flexiprovider in my android app by using the example provided for ECIES. When I run the code in my local machine Enc/Dec work without any problem. But when I'm trying to run it as an android app using the android studio, the decryption doesn't work. The Main Activity.java [CODE] Encry... | java|android-studio|public-key-encryption | 0 | 2018-11-23T13:09:45.267Z | 2,018 | 11 | 13 | 4 | 295 | 1 | 426 | 63 | 3 | 3 | true | false | false | false | false | false | zero |
53,782,870 | C# Xamarin Android - Change button properties outside of onCreate() | <p>I have set up an activity with some buttons. One button is used to start a bluetooth connection. So the activity is started and at some point the user clicks on "Start Bluetooth", then the bluetooth connection is established and after that is done I want to enable another button for further options.</p>
<p>My quest... | I have set up an activity with some buttons. One button is used to start a bluetooth connection. So the activity is started and at some point the user clicks on "Start Bluetooth", then the bluetooth connection is established and after that is done I want to enable another button for further options. My question: How ca... | c#|xamarin|button|xamarin.android|oncreate | 0 | 2018-12-14T15:45:32.680Z | 2,018 | 12 | 15 | 4 | 295 | 1 | 622 | 67 | 5 | 1 | true | false | false | false | false | false | zero |
53,632,996 | How to run a Dart scratch file? There does not seem to be an option to run | <p>Android Studio 3.2</p>
<p>File > New > Scratch File
This created a new file, scratch.dart</p>
<p>I entered some simple Dart code.</p>
<pre><code>void main() { print('This is the output'); }
</code></pre>
<p>How do I run this code? I've searched around the IDE and cannot find anything. What is the purpose of the ... | Android Studio 3.2 File > New > Scratch File This created a new file, scratch.dart I entered some simple Dart code. [CODE] How do I run this code? I've searched around the IDE and cannot find anything. What is the purpose of the scratch file if I cannot run test (Dart) code in it? Thanks. | android-studio | 14 | 2018-12-05T13:03:41.697Z | 2,018 | 12 | 13 | 2 | 807 | 1 | 289 | 74 | 1 | 1 | true | false | false | false | true | false | medium |
53,364,702 | How do i make a fit tablayout in every screen? | <p>I have made a design for <code>TabLayout</code>, but I can't make the size fit with 2 different screens. I use two different screens like tablet and android phone. </p>
<p><strong>How can I fix it?</strong></p>
<hr>
<p>This is my XML file :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLa... | I have made a design for TabLayout , but I can't make the size fit with 2 different screens. I use two different screens like tablet and android phone. How can I fix it? This is my XML file : [CODE] I want to make 4 menu/fragments with TabLayout for the details, my XML was worked but the problem is the size not optimiz... | android|android-studio|android-layout | 0 | 2018-11-18T19:33:03.560Z | 2,018 | 11 | 19 | 6 | 40 | 1 | 348 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
53,388,241 | Can't pass null arguement for Adapterclass | <p>Good day everyone! I have a problem the app crash and it has an error </p>
<pre><code>java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()
at com.google.firebase.database.DatabaseReference.child(Unknown Source:6)
at com.example.jasper.happy_paws.CommentAdapter.getUse... | Good day everyone! I have a problem the app crash and it has an error [CODE] I dont see anyproblem with my adapter here is my code [CODE] | android|firebase | -1 | 2018-11-20T07:35:56.237Z | 2,018 | 11 | 7 | 1 | 40 | 1 | 137 | 42 | 2 | 2 | true | false | false | false | false | true | negative |
53,468,142 | How recent is getLastLocation? | <p>I'm currently making an Android app for myself, for fun, and wish to get the current location. <em>Maybe</em> I'll publish this on Play Store.</p>
<p>I was reading on the most convenient way to get the current location, but because of the note <a href="https://developer.android.com/guide/topics/location/strategies"... | I'm currently making an Android app for myself, for fun, and wish to get the current location. Maybe I'll publish this on Play Store. I was reading on the most convenient way to get the current location, but because of the note here , I decided to go the Google way. Eventually, my research got me on a getLastLocation e... | java|android|google-location-services | 0 | 2018-11-25T13:49:41.263Z | 2,018 | 11 | 13 | 6 | 40 | 1 | 649 | 30 | 3 | 0 | false | 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.