id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,802,465 | when custom gradle plugin, how to debug real gradle project | <p>With <code>ProjectBuilder</code> I can build a test project in:</p>
<pre><code>ProjectBuilder.builder().withProjectDir(new File("path/to/dummy/android/app"))).build()
</code></pre>
<p>but when I invoke <code>p.getTasks()</code>, it returns empty. It's not true. The specific android project has many android tasks. ... | With ProjectBuilder I can build a test project in: [CODE] but when I invoke p.getTasks() , it returns empty. It's not true. The specific android project has many android tasks. I can't test task.doFirst and task.doLast , so how to fix it? | java|android|gradle|groovy | 2 | 2016-06-14T03:27:35.120Z | 2,016 | 6 | 3 | 1 | 64 | 0 | 238 | 59 | 4 | 1 | true | true | false | false | false | false | low |
38,006,931 | ContentProvider notifyChange getting ignored | <p>We have an AsyncTaskLoader in which in the function <code>loadInBackground</code> we query a content provider.<br>
On return of the query we get a cursor from the provider.<br>
Now on this cursor we have set a <code>ForceLoadContentObserver</code> as below :</p>
<pre><code>private final ForceLoadContentObserver mOb... | We have an AsyncTaskLoader in which in the function loadInBackground we query a content provider. On return of the query we get a cursor from the provider. Now on this cursor we have set a ForceLoadContentObserver as below : [CODE] Now when we change a particular file, the provider has done notifyChange . In normal cas... | android|android-contentprovider|loader|contentobserver | 1 | 2016-06-24T06:30:52.580Z | 2,016 | 6 | 6 | 4 | 64 | 0 | 820 | 44 | 4 | 1 | true | true | false | false | false | false | low |
37,978,705 | How to use Spatialite on Android or load extension on SQLite | <p>I'm working on an ArcGIS with Android application.
I have a SQLite database that uses <strong>geometryblob</strong>, but obviously, SQLite doesn't recognize these blob.</p>
<p>I found two solutions to that.</p>
<ol>
<li>Use <strong>SQLite and <a href="https://www.gaia-gis.it/fossil/libspatialite/wiki?name=splite-... | I'm working on an ArcGIS with Android application. I have a SQLite database that uses geometryblob , but obviously, SQLite doesn't recognize these blob. I found two solutions to that. Use SQLite and Spatialite which uses compatible blob type. Use SQLite and load a dll extension ( SELECT load_extension ) that provides t... | android|sqlite|arcgis|spatialite | 2 | 2016-06-22T21:37:26.473Z | 2,016 | 6 | 21 | 2 | 320 | 0 | 601 | 60 | 4 | 3 | true | true | false | false | false | false | low |
37,803,487 | Android Webview crashing when loading about:blank with error "net::ERR_UNKNOWN_URL_SCHEME" | <p>When loading a url from google drive (this is a pdf that is 27 pages), the webview is crashing when loading "about:blank" with the error "net::ERR_UNKNOWN_URL_SCHEME". This is also happening when loading a slideshow from google drive, however that one is crashing with a url starting with "chrome-extension". We have ... | When loading a url from google drive (this is a pdf that is 27 pages), the webview is crashing when loading "about:blank" with the error "net::ERR_UNKNOWN_URL_SCHEME". This is also happening when loading a slideshow from google drive, however that one is crashing with a url starting with "chrome-extension". We have loo... | android|webview | 2 | 2016-06-14T05:18:04.033Z | 2,016 | 6 | 5 | 1 | 832 | 0 | 777 | 90 | 2 | 1 | true | true | false | false | false | false | low |
37,949,775 | Android Amazon Kindle: URL Scheme won't open app | <p>We are integrating App Links into our games and so far on Google Android everything works nicely. This is how we do the intent filter:</p>
<pre><code><!-- App Links -->
<activity android:launchMode="standard">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
... | We are integrating App Links into our games and so far on Google Android everything works nicely. This is how we do the intent filter: [CODE] On a Google Play device, this will open our app for any link that is clicked in the browser that looks like example:// or http://www.example.com/example.html or https://www.examp... | android|amazon|kindle | 2 | 2016-06-21T16:24:55.033Z | 2,016 | 6 | 16 | 1 | 832 | 0 | 696 | 48 | 3 | 1 | true | true | false | false | false | false | low |
37,651,815 | Android interrupt threads on button click - avoiding race condition | <p>I have an android app designed to pair with other phones and send/receive data over bluetooth. Specifically, when a user clicks a button, it will start discovery, connect to a phone, open a socket etc. In general this works, however, I also want to set it up so that during this whole process, if the user clicks the ... | I have an android app designed to pair with other phones and send/receive data over bluetooth. Specifically, when a user clicks a button, it will start discovery, connect to a phone, open a socket etc. In general this works, however, I also want to set it up so that during this whole process, if the user clicks the but... | java|android|multithreading|sockets|android-bluetooth | 1 | 2016-06-06T07:30:53.137Z | 2,016 | 6 | 7 | 0 | 321 | 0 | 1,842 | 67 | 5 | 3 | true | true | false | false | false | false | low |
37,762,894 | How delete a file from internal storage | <p>I need to delete a file from internal storage.
The below code is for creating a file.</p>
<pre><code> Picasso.with(mContext).load(imageurl).into(new Target() {
@Override
public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {
... | I need to delete a file from internal storage. The below code is for creating a file. [CODE] The below code is for deleting [CODE] myDir.delete(); But deleting is not working | android | 1 | 2016-06-11T10:55:00.173Z | 2,016 | 6 | 10 | 5 | 66 | 0 | 174 | 39 | 1 | 2 | true | true | false | false | false | false | low |
37,678,130 | Is it possible to cancel Firebase Sign-In process using just Firebase SDK for Android? | <p>I want my app's users be able to cancel a Firebase Sign-In process while it is running. But I don't see straight handlers for that in the Firebase SDK. The Sign-In methods return <code>Task<AuthResult></code>, which are not cancelable. What is the best approach I can use to provide a cancellation? Is there a b... | I want my app's users be able to cancel a Firebase Sign-In process while it is running. But I don't see straight handlers for that in the Firebase SDK. The Sign-In methods return Task<AuthResult> , which are not cancelable. What is the best approach I can use to provide a cancellation? Is there a better way than to ela... | java|android|authentication|firebase | 9 | 2016-06-07T11:28:20.707Z | 2,016 | 6 | 11 | 1 | 834 | 0 | 417 | 86 | 4 | 1 | true | true | false | false | false | false | medium |
37,738,607 | File upload HttpClient -- no file in selected folder | <p>I'm using loopj/android-async-http lib to upload files in my server.</p>
<p>My Android code:</p>
<pre><code>File myFile = new File(getRealPathFromURI(SettintsActiviy.this, selectedImage));
RequestParams params = new RequestParams();
try {
params.put("uploaded_file", myFile);
params.put("name", "adfadfa");... | I'm using loopj/android-async-http lib to upload files in my server. My Android code: [CODE] My upload.php [CODE] Log Android result: [CODE] But when I open the selected folder does not have file. | java|php|android|http|upload | 2 | 2016-06-10T01:26:01.190Z | 2,016 | 6 | 1 | 4 | 67 | 0 | 196 | 52 | 5 | 3 | true | true | false | false | false | false | low |
37,779,934 | How to use a secondary Activity in a LiveWallpaper Engine | <p>I have a class activity that make a graphic animation (MainActivity) in an AnimatedView. Work great as an app, BUT...
I want to launch this activity inside a Live Wallpaper and use it like a Animated wallpaper.
Is possible?</p>
<p>I try this simple code but don't work:</p>
<pre><code>public class LiveWallpaperServ... | I have a class activity that make a graphic animation (MainActivity) in an AnimatedView. Work great as an app, BUT... I want to launch this activity inside a Live Wallpaper and use it like a Animated wallpaper. Is possible? I try this simple code but don't work: [CODE] | android|android-activity|live-wallpaper | 1 | 2016-06-12T23:02:01.837Z | 2,016 | 6 | 23 | 6 | 67 | 0 | 269 | 57 | 3 | 1 | true | true | false | false | false | false | low |
37,744,791 | Change color of a key | <p>I want to ask, if theres a methode to change the color of a specific key on my customkeyboard.</p>
<p>My current Keyboard looks like this:[<a href="http://i.stack.imgur.com/0RDK4.png]" rel="nofollow">http://i.stack.imgur.com/0RDK4.png]</a></p>
<p>But I want to highlite the current Keyboardlayout like this:[<a href... | I want to ask, if theres a methode to change the color of a specific key on my customkeyboard. My current Keyboard looks like this:[ http://i.stack.imgur.com/0RDK4.png] But I want to highlite the current Keyboardlayout like this:[ http://i.stack.imgur.com/5der9.jpg] My current Code looks like this [CODE] And my keyboar... | java|android|colors|keyboard | 1 | 2016-06-10T09:33:25.510Z | 2,016 | 6 | 9 | 4 | 68 | 0 | 377 | 21 | 4 | 2 | true | true | false | false | false | false | low |
37,835,671 | Android System Webview 51.0.2704.81 update make my Ionic app to crash | <p>since the latest ASW update, my Ionic app is not launching anymore so I had to manually uninstall all updates to make it work again. Anyone has experienced the same?
I re-considering to use xwalk but I don't like the size issue though.. my app increase from 30mb to 100 with it ...</p> | since the latest ASW update, my Ionic app is not launching anymore so I had to manually uninstall all updates to make it work again. Anyone has experienced the same? I re-considering to use xwalk but I don't like the size issue though.. my app increase from 30mb to 100 with it ... | android|ionic-framework|android-webview|crosswalk-runtime | 1 | 2016-06-15T12:37:16.057Z | 2,016 | 6 | 12 | 2 | 324 | 0 | 281 | 69 | 4 | 0 | false | true | false | false | false | false | low |
38,031,527 | Click event not working for Recyclerview item with SwipeLayout in Xamarin Android | <p>I setup a recyclerview with a viewholder with a click event on the recyclerview items, following the guide at <a href="https://developer.xamarin.com/guides/android/user_interface/recyclerview/" rel="nofollow">https://developer.xamarin.com/guides/android/user_interface/recyclerview/</a></p>
<p>and everything worked ... | I setup a recyclerview with a viewholder with a click event on the recyclerview items, following the guide at https://developer.xamarin.com/guides/android/user_interface/recyclerview/ and everything worked just fine. After that, i wanted to use this component for the swipe feature https://components.xamarin.com/view/an... | android|xamarin|android-recyclerview | 2 | 2016-06-25T18:15:09.653Z | 2,016 | 6 | 18 | 5 | 1,092 | 0 | 722 | 81 | 3 | 5 | true | true | false | false | false | false | low |
37,880,875 | GridView in a tab fragment is displayed only after scrolling to that tab second time | <p>I have a fragment for a tab which displays JSON parsed results in GridView. The results are not displayed when scrolled to that tab for first time. But after switching tabs, results are displayed in second visit.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-c... | I have a fragment for a tab which displays JSON parsed results in GridView. The results are not displayed when scrolled to that tab for first time. But after switching tabs, results are displayed in second visit. [CODE] Adapter. [CODE] And also, everytime tab is switched, gridview gets added, but data is displayed in o... | android|gridview|android-asynctask|android-gridview | 1 | 2016-06-17T11:51:30.100Z | 2,016 | 6 | 11 | 4 | 69 | 0 | 337 | 84 | 4 | 2 | true | true | false | false | false | false | low |
37,889,671 | Overscrollscale: listview remains stretched | <p>The library <a href="https://github.com/dodola/OverscrollScale" rel="nofollow noreferrer">Overscrollscale</a> modifies the <code>listview</code> overscroll and makes it bounce at edges. The list is also scaled when user over scrolls it and is scaled back to normal size after the user releases the touch.</p>
<p>Code... | The library Overscrollscale modifies the listview overscroll and makes it bounce at edges. The list is also scaled when user over scrolls it and is scaled back to normal size after the user releases the touch. Code for scaling the listview : [CODE] Code for onTouchEvent in ListView : [CODE] The Question: Sometimes, the... | android|listview|animation|overscroll | 3 | 2016-06-17T20:10:59.793Z | 2,016 | 6 | 20 | 4 | 70 | 0 | 578 | 43 | 4 | 2 | true | true | false | false | false | false | low |
37,681,546 | android - PageAdapter's addView method raises exception "The specified child already has a parent." | <p>I have a Custom PageAdapter that is dynamic and lets you add and remove views. I found the code from <a href="https://stackoverflow.com/a/13671777/1662033">this answer</a>.</p>
<p><strong>MainPagerAdapter</strong></p>
<pre><code>public class MainPagerAdapter extends PagerAdapter {
private ArrayList<View>... | I have a Custom PageAdapter that is dynamic and lets you add and remove views. I found the code from this answer . MainPagerAdapter [CODE] Basically I have the PopupHandler class which calls showDialog once, for the first alert, and after that it calls AddView to add more pages, and removeView to remove a page. Every t... | android|android-viewpager|android-view|android-adapter|android-dialog | 1 | 2016-06-07T14:00:39.893Z | 2,016 | 6 | 14 | 1 | 71 | 0 | 902 | 99 | 5 | 3 | true | true | false | false | false | false | low |
37,791,815 | best method to use GoogleApiClient in Android | <p>i'm tryin to figure out what is the best method to build GoogleApiClient in my App, in many tutorial on the internet show that i have to build the GoogleApiClient in Activity. But what if i need to use the GoogleApiClient in many classes including Fragments And Services. Is it possible to build the GoogleApiClient i... | i'm tryin to figure out what is the best method to build GoogleApiClient in my App, in many tutorial on the internet show that i have to build the GoogleApiClient in Activity. But what if i need to use the GoogleApiClient in many classes including Fragments And Services. Is it possible to build the GoogleApiClient insi... | android|google-api | 1 | 2016-06-13T14:04:53.253Z | 2,016 | 6 | 14 | 0 | 71 | 0 | 403 | 45 | 2 | 0 | false | true | false | false | false | false | low |
37,892,520 | Soundcloud javascript sdk connect() is intercepted on mobile by the android native app | <p>I'm testing on localhost and using chrome inspect for port forwarding to my android phone. Connecting works fine when the native Soundcloud app isn't installed, but if it is then the connect redirect gets caught and the native app just notifies that "There was a problem loading that URL". Is there a way to work arou... | I'm testing on localhost and using chrome inspect for port forwarding to my android phone. Connecting works fine when the native Soundcloud app isn't installed, but if it is then the connect redirect gets caught and the native app just notifies that "There was a problem loading that URL". Is there a way to work around ... | javascript|android|sdk|soundcloud | 2 | 2016-06-18T01:47:50.360Z | 2,016 | 6 | 1 | 5 | 71 | 0 | 325 | 86 | 4 | 0 | false | true | false | false | false | false | low |
37,949,252 | Where does default input keyboard sit in the flow for dispatching key events on android? | <p>In one of my Custom view, inheriting from a View group, I was getting Key_Down and Key_Up events for a Tab key in dispatchKeyEvent method.</p>
<p>A latest update on Google Keyboard upgraded it from 4.0.* to 5.0.*. Post this update, I am not getting Key_Down in dispatchKeyEvent in the ViewGroup. I have checked that ... | In one of my Custom view, inheriting from a View group, I was getting Key_Down and Key_Up events for a Tab key in dispatchKeyEvent method. A latest update on Google Keyboard upgraded it from 4.0.* to 5.0.*. Post this update, I am not getting Key_Down in dispatchKeyEvent in the ViewGroup. I have checked that I am gettin... | android|keyevent | 2 | 2016-06-21T15:57:56.617Z | 2,016 | 6 | 15 | 1 | 71 | 0 | 773 | 88 | 2 | 0 | false | true | false | false | false | false | low |
37,983,871 | How can i parse JSON from URL on Android and display it in listview | <ol>
<li><p>My <strong>JSON</strong> data looks like this:(<strong>JSON</strong> data has more data but I have put only a chunk of data here).</p>
<pre><code> {
"items": [
{
"id": 15,
"batchId": 0,
"dateCreated": "2016-05-29T19:03:37Z",
"description": "sdfdsf",
"ean": 0,
"expDate": "1990-12-22T00:00:0... | My JSON data looks like this:( JSON data has more data but I have put only a chunk of data here). [CODE] 2.This is my MainActivity class . [CODE] When I run the project it throws fileNotFound exception and sometimes runs without errors but noting is displayed on my ListView .... | android|json | 2 | 2016-06-23T06:32:13.907Z | 2,016 | 6 | 6 | 3 | 71 | 0 | 279 | 67 | 2 | 2 | true | true | false | false | false | false | low |
38,042,410 | Service to query call log using LoaderManager or straightforward getContentResolver().query? | <p>I have a service that is already running on the background and I want to use it to read the call log (and many other tasks)
Some articles online suggest that I do this task using a loadermanager so it won't affect the performance of my activity. I can also do it using getApplicationContext.getContentResolver().query... | I have a service that is already running on the background and I want to use it to read the call log (and many other tasks) Some articles online suggest that I do this task using a loadermanager so it won't affect the performance of my activity. I can also do it using getApplicationContext.getContentResolver().query() ... | android|performance|android-service|android-loadermanager|android-background | 1 | 2016-06-26T19:32:27.980Z | 2,016 | 6 | 19 | 6 | 71 | 0 | 507 | 92 | 5 | 0 | false | true | false | false | false | false | low |
38,038,878 | Retrofit - OkHttp 3 - Multipart upload progress | <p>Is it possible to get a <em>real</em> progress of uploading file using Retrofit 2 and OkHttp 3?</p>
<p>I'm testing this solution:
<a href="https://stackoverflow.com/a/36260692/1885562">https://stackoverflow.com/a/36260692/1885562</a>
but it's not working as you may expect. I'm getting 100% progress after couple doz... | Is it possible to get a real progress of uploading file using Retrofit 2 and OkHttp 3? I'm testing this solution: https://stackoverflow.com/a/36260692/1885562 but it's not working as you may expect. I'm getting 100% progress after couple dozens of milliseconds, but the upload should take over 10 seconds (3MB file on 1M... | android|file-upload|retrofit|okhttp|retrofit2 | 5 | 2016-06-26T13:18:56.060Z | 2,016 | 6 | 13 | 6 | 583 | 0 | 426 | 47 | 5 | 0 | false | true | false | false | false | false | low |
37,732,644 | Espresso: ignore indeterminate ProgressBar | <p>In my Espresso (2.2.2) testcase I perform a simple click:</p>
<pre><code>// go to checkout
onView(withId(com.highstreet.core.R.id.checkout_button))
.perform(click());
</code></pre>
<p>What happens when the button is clicked, is that an new layout is loaded with a ProgressBar in it. when the checkou... | In my Espresso (2.2.2) testcase I perform a simple click: [CODE] What happens when the button is clicked, is that an new layout is loaded with a ProgressBar in it. when the checkout fragment has finished loading, the ProgressBar is hidden, by setting its visibility to GONE. But it remains present in the layout. The tes... | android|android-espresso | 1 | 2016-06-09T17:30:59.550Z | 2,016 | 6 | 17 | 3 | 839 | 0 | 800 | 42 | 2 | 1 | true | true | false | false | false | false | low |
37,908,698 | Image is not sending to server php (myadmain) local host in android studio | <p>I am sending an image to the server and every thing is good in android, (there is no error in logcat) the problem is that I don't see the image on the sever.
The first time there was an error that the file is empty (in the bitmapfactory )but that error was resolved when I changed my SDK.</p>
<p>My android code:</p... | I am sending an image to the server and every thing is good in android, (there is no error in logcat) the problem is that I don't see the image on the sever. The first time there was an error that the file is empty (in the bitmapfactory )but that error was resolved when I changed my SDK. My android code: [CODE] that is... | php|android|android-studio|phpmyadmin|localhost | 1 | 2016-06-19T15:10:59.270Z | 2,016 | 6 | 15 | 6 | 72 | 0 | 333 | 74 | 5 | 1 | true | true | false | false | false | false | low |
37,908,710 | Android In-App Purchasing - is there a way to distribute them for free? | <p>I've been developing Android apps for a few years now with a ad-based revenue model. On top of that, I would also allow users to purchase a separate license that would remove advertising. The license was distributed as a separate app. The main app would check to see if the license was installed, and it would display... | I've been developing Android apps for a few years now with a ad-based revenue model. On top of that, I would also allow users to purchase a separate license that would remove advertising. The license was distributed as a separate app. The main app would check to see if the license was installed, and it would display ad... | android|in-app-purchase|in-app-billing|android-inapp-purchase | 2 | 2016-06-19T15:12:09.240Z | 2,016 | 6 | 15 | 6 | 72 | 0 | 1,016 | 71 | 4 | 0 | false | true | false | false | false | false | low |
37,745,888 | How to build android cts with right version? | <p>My target is build CTS for device using android 4.0.3 with some patches.</p>
<p>I prepare the environment like below.</p>
<ol>
<li><p>android source code 4.0.3R1 with command repo init + repo sync (branch 4.0.3r1.1)</p></li>
<li><p>I check in android source code and see there is one cts directory here. I use git b... | My target is build CTS for device using android 4.0.3 with some patches. I prepare the environment like below. android source code 4.0.3R1 with command repo init + repo sync (branch 4.0.3r1.1) I check in android source code and see there is one cts directory here. I use git branch android-cts-4.0.3_r3 to switch to that... | android|cts | 1 | 2016-06-10T10:26:09.030Z | 2,016 | 6 | 10 | 4 | 328 | 0 | 653 | 44 | 2 | 1 | true | true | false | false | false | false | low |
37,993,839 | pendingIntent Don't call OnNewIntent() | <p>I receive message in my gcmlistener service and when app is in background , I receive notification but when i tap on it my intent doesn't call OnNewIntent in my main activity . Here is details what I've done</p>
<pre><code>public class MyGcmPushReceiver extends GcmListenerService {
private static final String TAG ... | I receive message in my gcmlistener service and when app is in background , I receive notification but when i tap on it my intent doesn't call OnNewIntent in my main activity . Here is details what I've done [CODE] NotificationUtils.class [CODE] Manifest.xml [CODE] | android|google-cloud-messaging|android-pendingintent|gcmlistenerservice|onnewintent | 2 | 2016-06-23T13:59:54.110Z | 2,016 | 6 | 13 | 3 | 328 | 0 | 265 | 38 | 5 | 3 | true | true | false | false | false | false | low |
37,649,990 | Send Json String using volley to php and decode it | <p>I know how to send data using volley library and get those from php. Problem is, I want to send a Json String and decode those data from the php side.</p>
<p>This is the method I am using to send data using param. Last item is the json String</p>
<pre><code>private void checkOrderNo() {
pDialog.setMessage(... | I know how to send data using volley library and get those from php. Problem is, I want to send a Json String and decode those data from the php side. This is the method I am using to send data using param. Last item is the json String [CODE] This is my PhP for volley [CODE] I know send json String using DefaultHttpCli... | php|json|android-volley | 1 | 2016-06-06T05:17:21.943Z | 2,016 | 6 | 5 | 0 | 73 | 0 | 523 | 50 | 3 | 3 | true | true | false | false | false | false | low |
37,912,415 | Android OnClick Behaviour: Image disappearing | <p>I am creating an application that the user can move an image from each spot in a GridLayout/LinearLayout.</p>
<p>For example:</p>
<pre><code><GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Grid"
android:layout_marginLeft="8dp"
android:lay... | I am creating an application that the user can move an image from each spot in a GridLayout/LinearLayout. For example: [CODE] I have onClickListeners like this: [CODE] Method Used in onDrag: [CODE] For this application the user can click an image and move it to a different imageView inside the linearlayout to change th... | java|android|android-linearlayout|onclicklistener|android-gridview | 1 | 2016-06-19T22:21:46.297Z | 2,016 | 6 | 22 | 6 | 73 | 0 | 794 | 45 | 5 | 3 | true | true | false | false | false | false | low |
38,005,823 | Apptimize - Modifiable Text / Images in app | <p>Within our application, our product designer would like the in app text and images be changeable via Apptimize.</p>
<p>We have a tutorial with 5 screens, each with a description and image.</p>
<p>Currently, for the text, I have an Array of 5 Strings, and use Apptimize's AppTimizeVar to get a value.</p>
<pre><code... | Within our application, our product designer would like the in app text and images be changeable via Apptimize. We have a tutorial with 5 screens, each with a description and image. Currently, for the text, I have an Array of 5 Strings, and use Apptimize's AppTimizeVar to get a value. [CODE] And for the images, I was g... | android|analytics|apptimize | 3 | 2016-06-24T04:52:56.600Z | 2,016 | 6 | 4 | 4 | 73 | 0 | 705 | 43 | 3 | 1 | true | true | false | false | false | false | low |
37,813,775 | Android -- Record video with aac audio encoding | <p>I am trying to record a video, using the camera app, by using the suggested code from Android's documentation.</p>
<p><a href="https://developer.android.com/training/camera/videobasics.html" rel="nofollow">https://developer.android.com/training/camera/videobasics.html</a></p>
<p>Is there any ways i can control/spe... | I am trying to record a video, using the camera app, by using the suggested code from Android's documentation. https://developer.android.com/training/camera/videobasics.html Is there any ways i can control/specify the audio encoding, as an extra with the intent. | android|video|html5-video | 2 | 2016-06-14T13:41:00.657Z | 2,016 | 6 | 13 | 1 | 74 | 0 | 262 | 47 | 3 | 0 | false | true | false | false | false | false | low |
37,931,778 | memory leak when declaring and assigning an object | <p><em>please note: this is a specific question about my app, but may be useful for other novice developers</em></p>
<p>I am unable to find the reason for my "memory leak".</p>
<p>I noticed while debugging this leak, a simple orientation change uses <code>0.01mb</code> memory. </p>
<p>This bit of code below takes up... | please note: this is a specific question about my app, but may be useful for other novice developers I am unable to find the reason for my "memory leak". I noticed while debugging this leak, a simple orientation change uses 0.01mb memory. This bit of code below takes up 0.04mb memory [CODE] And a few other methods aswe... | java|android|memory|memory-management|memory-leaks | 1 | 2016-06-20T21:03:21.187Z | 2,016 | 6 | 21 | 0 | 74 | 0 | 1,652 | 50 | 5 | 3 | true | true | false | false | false | false | low |
37,615,066 | Android View Invalidate optimization idea | <p>I'm trying to make an animation on my android application.</p>
<p>I have a list of View I want to draw every 10 ms to have a smooth animations.</p>
<pre><code>class CircularAnimationSector extends View{
private double scale;
private double circularPosition;
private double circularLength;
private do... | I'm trying to make an animation on my android application. I have a list of View I want to draw every 10 ms to have a smooth animations. [CODE] But it seems that the animation is not as smooth as expected and the application lag a little. Do you have any advice to optimize my animation ? I just want to draw a view ever... | android|animation|canvas|view | 1 | 2016-06-03T12:59:08.033Z | 2,016 | 6 | 12 | 4 | 75 | 0 | 406 | 41 | 4 | 1 | true | true | false | false | false | false | low |
37,767,959 | Why can't I execute both onClick and onTouch simultaneously? | <p>Disclaimer: I have already tried following similar threads (namely <a href="https://stackoverflow.com/questions/30125390/how-can-i-use-onclicklistener-in-parent-view-and-ontouchevent-in-child-view">How can I use OnClickListener in parent View and onTouchEvent in Child View?</a> and <a href="https://stackoverflow.com... | Disclaimer: I have already tried following similar threads (namely How can I use OnClickListener in parent View and onTouchEvent in Child View? and How can i get both OnClick and OnTouch Listeners ), yet my code still fails to work. I have a (parent) activity which contains a (child) view. Activity has all the network ... | android|onclick|onclicklistener|ontouchlistener|ontouch | 1 | 2016-06-11T19:52:04.660Z | 2,016 | 6 | 19 | 5 | 75 | 0 | 1,248 | 60 | 5 | 2 | true | true | false | false | false | false | low |
37,695,773 | Accessing views in different activities in couchbase Lite | <p>I have 1 Activity and 1 fragment which have the following code</p>
<p>Activity 1</p>
<pre><code>Database createConn(Database database) {
try {
Manager manager = new Manager(new AndroidContext(context), Manager.DEFAULT_OPTIONS);
database = manager.getDatabase("couchbaseevents");
} catch (Exc... | I have 1 Activity and 1 fragment which have the following code Activity 1 [CODE] Fragment 1 [CODE] When I run the query on CBL in fragment I get empty result but if I create View in fragment and not in activity I get desired result, But I dont want like that. I want that view should be created in activity and called in... | android|couchbase|couchbase-lite|couchbase-view | 1 | 2016-06-08T07:21:23.997Z | 2,016 | 6 | 7 | 2 | 77 | 0 | 381 | 57 | 4 | 2 | true | true | false | false | false | false | low |
37,978,350 | Good way to animate views inside some of RecyclerView's items | <p>I have <code>RecyclerView</code> with <code>MyItemHolder</code>.
<code>MyItemHolder</code> contains <code>MyView</code> which can do animation.</p>
<ol>
<li><p>How can I start animation of <code>MyView</code> for specific visible item in
<code>RecyclerView</code> from <code>Activity</code> in which I have my <code>... | I have RecyclerView with MyItemHolder . MyItemHolder contains MyView which can do animation. How can I start animation of MyView for specific visible item in RecyclerView from Activity in which I have my RecyclerView ? How can I keep animation alive when user scrolled RecyclerView so that animated item has become invis... | android|android-recyclerview|android-animation|android-viewholder | 1 | 2016-06-22T21:14:54.647Z | 2,016 | 6 | 21 | 2 | 77 | 0 | 578 | 61 | 4 | 0 | false | true | false | false | false | false | low |
37,795,401 | OkHttp3 socket failed: EMFILE (Too many open files) | <p>I am using Retrofit 2.0.0.
OkHttp 3.1.2.
Some of my users are getting the following exception:</p>
<blockquote>
<p>java.net.SocketException: socket failed: EMFILE (Too many open files)
at libcore.io.IoBridge.socket(IoBridge.java:619) ~[na:0.0]
at java.net.PlainSocketImpl.create(PlainSocketImpl.java:19... | I am using Retrofit 2.0.0. OkHttp 3.1.2. Some of my users are getting the following exception: java.net.SocketException: socket failed: EMFILE (Too many open files) at libcore.io.IoBridge.socket(IoBridge.java:619) ~[na:0.0] at java.net.PlainSocketImpl.create(PlainSocketImpl.java:198) ~[na:0.0] at java.net.Socket.checkO... | android|retrofit2|okhttp|okio | 4 | 2016-06-13T17:05:19.667Z | 2,016 | 6 | 17 | 0 | 1,101 | 0 | 2,298 | 51 | 4 | 1 | true | true | false | false | false | false | low |
37,899,379 | Android : Access one class variable data in another(by file or public variable) | <p>I'm trying to get data from my mysql database into android app, so it can be used even when the phone is not connected to internet. For it, I use asynctask to run in background. Now the problem is that this code is written in other class, and the data is stored in a variable in that class. So I'm not able to access ... | I'm trying to get data from my mysql database into android app, so it can be used even when the phone is not connected to internet. For it, I use asynctask to run in background. Now the problem is that this code is written in other class, and the data is stored in a variable in that class. So I'm not able to access the... | java|android|mysql|sqlite | 1 | 2016-06-18T16:47:24.227Z | 2,016 | 6 | 16 | 5 | 78 | 0 | 1,353 | 79 | 4 | 2 | true | true | false | false | false | false | low |
37,846,901 | Android WebView will not display a local HTML file. Logs "ImeThread is not enabled" | <p>WebView keeps on displaying a completely white screen. It works with websites like Google and Reddit, but will not display a local html file.</p>
<p>This is my code:</p>
<pre><code>public class Stofmaengdeberegner extends Activity {
private WebView webview;
@Override
protected void onCreate(Bundle savedInstanceSta... | WebView keeps on displaying a completely white screen. It works with websites like Google and Reddit, but will not display a local html file. This is my code: [CODE] It says ImeThread is not enabled. and validate_display:255 error 3008 (EGL_BAD_DISPLAY) in the log. | java|android|html|webview | 1 | 2016-06-15T22:32:11.310Z | 2,016 | 6 | 22 | 2 | 591 | 0 | 265 | 83 | 4 | 1 | true | true | false | false | false | false | low |
37,780,026 | Hide Toolbar on scrolling tab content | <p>I have an implementation of five tabs and a toolbar. I have used fragments for the tabs. Everything works fine except that I want to hide my toolbar whenever a tab is scrolled down and show it one it is scrolled up. Here is a graphic of my layout.<a href="https://i.stack.imgur.com/46WBb.png" rel="nofollow noreferrer... | I have an implementation of five tabs and a toolbar. I have used fragments for the tabs. Everything works fine except that I want to hide my toolbar whenever a tab is scrolled down and show it one it is scrolled up. Here is a graphic of my layout. I would like help in achieving this behavior. I have tried to follow thi... | android|tabs|toolbar | 1 | 2016-06-12T23:14:34.697Z | 2,016 | 6 | 23 | 6 | 80 | 0 | 470 | 37 | 3 | 1 | true | true | false | false | false | false | low |
71,415,151 | How to use different secrets for each environment in Expo EAS | <p>How can we differentiate secrets for each environment (development, preview and production) in Expo when running eas build command to build or publish the expo app?</p>
<p>From the secrets screen in the expo console, it seems to be global for the application:</p>
<p><a href="https://i.stack.imgur.com/ZQLsk.png" rel=... | How can we differentiate secrets for each environment (development, preview and production) in Expo when running eas build command to build or publish the expo app? From the secrets screen in the expo console, it seems to be global for the application: So, no matter which the environment is when you're trying to build,... | android|ios|react-native|expo | 5 | 2022-03-09T19:42:33.770Z | 2,022 | 3 | 19 | 2 | 259 | 0 | 543 | 61 | 4 | 0 | false | true | false | false | false | false | low |
71,180,039 | itemCount and snapshot().items.size in PagingDataAdapter not working | <blockquote>
<p>I want to round first and last item in adapter and all center items are square. But if there is only one item in list then the item should be rounded from all sides.</p>
</blockquote>
<p><a href="https://i.stack.imgur.com/Mdara.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mdara.jpg... | I want to round first and last item in adapter and all center items are square. But if there is only one item in list then the item should be rounded from all sides. I simply want to know the total items in a PagingDataAdapter . I treid itemCount and snapshot().items.size but it is giving wrong result.. [CODE] /// [COD... | android|kotlin|android-paging-3 | 0 | 2022-02-18T21:27:28.977Z | 2,022 | 2 | 21 | 4 | 260 | 0 | 492 | 68 | 3 | 6 | true | true | false | false | false | false | zero |
71,099,882 | running one test in dart and Android Studio | <p>Running test in dart you can do: <code>dart test -n "test name"</code></p>
<p>I can see that you run a all tests in a file in main(), but what if you want to run just one test?</p> | Running test in dart you can do: dart test -n "test name" I can see that you run a all tests in a file in main(), but what if you want to run just one test? | android-studio | 0 | 2022-02-13T10:42:02.530Z | 2,022 | 2 | 10 | 6 | 5 | 0 | 166 | 43 | 1 | 0 | false | true | false | false | false | false | zero |
71,217,884 | Android with Libgdx: cannot resolve symbol GoogleSignInOptions | <p>I'm developing a game on Libgdx. And I can not set up GoogleSignIn in the application. I'm using this instructions:</p>
<p><a href="https://developers.google.com/identity/sign-in/android/start-integrating" rel="nofollow noreferrer">https://developers.google.com/identity/sign-in/android/start-integrating</a></p>
<p>C... | I'm developing a game on Libgdx. And I can not set up GoogleSignIn in the application. I'm using this instructions: https://developers.google.com/identity/sign-in/android/start-integrating Code in onCreate() method: [CODE] Android Studio screenshot with error This is my build.gradle : [CODE] My Installed SDK Platforms ... | android|libgdx|google-signin | 0 | 2022-02-22T08:12:21.043Z | 2,022 | 2 | 8 | 1 | 261 | 0 | 844 | 62 | 3 | 3 | true | true | false | false | false | false | zero |
71,392,339 | Preload low resolution image with Coil before high quality | <p>I'm trying to display a low-res image as a full tv background while loading the high quality image. With this solution I could avoid the Black-To-image blink effect.</p>
<p>My low-res image is loaded in a previous fragment and is stored in the cache.</p>
<p>I try to achieve this with Coil. I've seen there is a memor... | I'm trying to display a low-res image as a full tv background while loading the high quality image. With this solution I could avoid the Black-To-image blink effect. My low-res image is loaded in a previous fragment and is stored in the cache. I try to achieve this with Coil. I've seen there is a memoryCachePlaceholder... | android|image|coil | 0 | 2022-03-08T08:57:27.213Z | 2,022 | 3 | 8 | 1 | 261 | 0 | 385 | 58 | 3 | 1 | true | true | false | false | false | false | zero |
71,421,631 | How can i access ML Kit Text Recognition result from ViewModel? | <p>I am basically trying to access the text output result from the ML Kit OCR library through my ViewModel for further processing but i can't figure out how.</p>
<p>I use this class to process the image and extract the output:</p>
<pre><code>class AnalyzeImageInput() : ImageAnalysis.Analyzer {
//Creates an instanc... | I am basically trying to access the text output result from the ML Kit OCR library through my ViewModel for further processing but i can't figure out how. I use this class to process the image and extract the output: [CODE] Any ideas on how to access the resultText value from the ViewModel? Couldn't find anything on th... | android|kotlin|mvvm|android-mvvm|google-mlkit | 0 | 2022-03-10T09:20:02.377Z | 2,022 | 3 | 9 | 3 | 261 | 0 | 370 | 63 | 5 | 1 | true | true | false | false | false | false | zero |
71,172,579 | I need a particular layout of elements in my Android Studio | <p>I have asked similar question <a href="https://stackoverflow.com/questions/71166576/can-linearlayout-put-two-items-on-the-same-line">elsewhere</a> but I'm posting a new question.
I wanted layout like this</p>
<p><code>txt[1] tv[1]</code></p>
<p><code>txt[2]tv[2]</code></p>
<p>...</p>
<p><code>txt[8] tv[8]</code></p>... | I have asked similar question elsewhere but I'm posting a new question. I wanted layout like this txt[1] tv[1] txt[2]tv[2] ... txt[8] tv[8] My Attepmt, the main lane is this: linearLayout.setOrientation(LinearLayout.HORIZONTAL); but it doesn't work. My code [CODE] | android-studio|layout | 0 | 2022-02-18T11:15:53.917Z | 2,022 | 2 | 11 | 4 | 6 | 0 | 264 | 59 | 2 | 1 | true | true | false | false | false | false | zero |
71,108,242 | Gradle composite builds with custom repositories in Android Studio | <p>Our company requires we have all our dependencies downloaded from our internal repository (Artifactory). Our Android project has the main Android modules, plus composite builds.</p>
<p>I was able to replicate the issue creating a simple project from Android Studio, and adding a composite build (or <code>buildSrc</co... | Our company requires we have all our dependencies downloaded from our internal repository (Artifactory). Our Android project has the main Android modules, plus composite builds. I was able to replicate the issue creating a simple project from Android Studio, and adding a composite build (or buildSrc ) into it. More or ... | android|android-studio|gradle | 2 | 2022-02-14T07:08:56.887Z | 2,022 | 2 | 7 | 0 | 262 | 0 | 1,557 | 66 | 3 | 2 | true | true | false | false | false | false | low |
71,094,368 | What is the best practice for saving different types of data of Android application | <p>I want to manage the data of my app locally on the phone, and I want to do it in the right way in terms of <strong>privacy, security, and efficiency</strong>.</p>
<p>Right now I'm saving the user data with <a href="https://developer.android.com/reference/androidx/security/crypto/EncryptedSharedPreferences" rel="nofo... | I want to manage the data of my app locally on the phone, and I want to do it in the right way in terms of privacy, security, and efficiency . Right now I'm saving the user data with EncryptedSharedPreferences . Is it considered secure enough in a real world application? In what location should it be kept? Furthermore,... | android | 0 | 2022-02-12T17:44:22.377Z | 2,022 | 2 | 17 | 5 | 7 | 0 | 707 | 83 | 1 | 0 | false | true | false | false | false | false | zero |
71,197,484 | How to circumvent off-browser connection? | <p>I want to create a program for one site ussing method WebView, but site forbidden off-browser connection. And when I build an APK file, after opening this program an app show error: connection_refused
This error is on <a href="https://i.stack.imgur.com/xiOcy.png" rel="nofollow noreferrer">screen</a></p> | I want to create a program for one site ussing method WebView, but site forbidden off-browser connection. And when I build an APK file, after opening this program an app show error: connection_refused This error is on screen | java|android|android-studio | 0 | 2022-02-20T18:31:09.863Z | 2,022 | 2 | 18 | 6 | 7 | 0 | 224 | 41 | 3 | 0 | false | true | false | false | false | false | zero |
71,297,522 | How do I display a download task from webview on another activity in my app | <p>I want my webview downloadtask showing on DownloadActivity.java
How do I do it.</p> | I want my webview downloadtask showing on DownloadActivity.java How do I do it. | java|xml|webview|android-download-manager | 0 | 2022-02-28T15:45:13.667Z | 2,022 | 2 | 15 | 0 | 7 | 0 | 79 | 75 | 4 | 0 | false | true | false | false | false | false | zero |
71,098,041 | vaadin 22 bean level validation | <p>I'm trying to display form level validation errors.</p>
<p>The problem is that the set of bean valiation errors is always empty even though I can see the validator returning ValidationResult.error() when I set a break point in the validator.</p>
<p>The validator</p>
<pre class="lang-java prettyprint-override"><code>... | I'm trying to display form level validation errors. The problem is that the set of bean valiation errors is always empty even though I can see the validator returning ValidationResult.error() when I set a break point in the validator. The validator [CODE] The above validator is bound to the form via: [CODE] I set the B... | validation|javabeans|android-binder|vaadin21 | 0 | 2022-02-13T05:00:18.177Z | 2,022 | 2 | 5 | 6 | 8 | 0 | 422 | 31 | 4 | 4 | true | true | false | false | false | false | zero |
71,171,506 | How to handel gestures | <p>I have bottomnavigationView from Navigation Component the issue is when click backButton it backs to Home destination but when use gestures it backs to the previous destination.</p> | I have bottomnavigationView from Navigation Component the issue is when click backButton it backs to Home destination but when use gestures it backs to the previous destination. | android-studio|android-layout|gesture|android-gesture | 0 | 2022-02-18T09:57:44.113Z | 2,022 | 2 | 9 | 4 | 8 | 0 | 177 | 22 | 4 | 0 | false | true | false | false | false | false | zero |
71,185,567 | How to detect unused drawables in Android Studio 2021.1.1 Patch 1? | <p>How one may detect drawables in Android projects, which are not used anywhere, using Adroid Studio 2021.1.1 Patch 1?</p>
<p>It is not a duplicate of <a href="https://stackoverflow.com/questions/15938709/android-automatically-detect-unused-drawables">android - automatically detect unused drawables</a> as (1) its acce... | How one may detect drawables in Android projects, which are not used anywhere, using Adroid Studio 2021.1.1 Patch 1? It is not a duplicate of android - automatically detect unused drawables as (1) its accepted answer is not working anymore (2) it is about Eclipse, not Android Studio | android-studio|lint | 1 | 2022-02-19T13:44:31.157Z | 2,022 | 2 | 13 | 5 | 8 | 0 | 283 | 66 | 2 | 0 | false | true | false | false | false | false | low |
71,225,149 | How to: Make lower items in RelativeLayout respond to gestures | <p>How can I make layouts/views that have a lower z-index in a RelativeLayout response to any gesture, even if the view/layout above them covers the entire screen?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/r... | How can I make layouts/views that have a lower z-index in a RelativeLayout response to any gesture, even if the view/layout above them covers the entire screen? [CODE] | android|xml | 0 | 2022-02-22T16:47:35.007Z | 2,022 | 2 | 16 | 1 | 8 | 0 | 167 | 62 | 2 | 1 | true | true | false | false | false | false | zero |
71,232,556 | Extra file showing in android studio after cloning project | <p>Since a month, I have been cloning the repo by copying link and pasting in my android studio and then I would checkout the "MySpace" branch and continue my work there. But now when I checkout that branch "repository" module gets automatically added there but it is not present in github after swit... | Since a month, I have been cloning the repo by copying link and pasting in my android studio and then I would checkout the "MySpace" branch and continue my work there. But now when I checkout that branch "repository" module gets automatically added there but it is not present in github after switchi... | android-studio|github|branch|clone|checkout | 0 | 2022-02-23T07:01:46.450Z | 2,022 | 2 | 7 | 2 | 8 | 0 | 762 | 58 | 5 | 0 | false | true | false | false | false | false | zero |
71,243,284 | List not Updating in android after String is spoken through SpeechRecognizer | <p>So, i am creating a virtual assistant app which after listening to user suppose to update the ui and then take another input but it updating the ui at once and then listening and speaking at once and taking no input</p>
<pre><code>messageHolder = "The Global text get from Recognizer";
private void sendChat... | So, i am creating a virtual assistant app which after listening to user suppose to update the ui and then take another input but it updating the ui at once and then listening and speaking at once and taking no input [CODE] is there any way i can perform the code in onPostExecute procedurally one by one instead ui updat... | java|android|android-studio|android-listview|java-threads | 0 | 2022-02-23T19:57:16.857Z | 2,022 | 2 | 19 | 2 | 8 | 0 | 358 | 76 | 5 | 1 | true | true | false | false | false | false | zero |
71,352,769 | How to set WebShareAPI bookmark icon | <p>How do I set bookmark icon in WebShareAPI on Android? I tried setting up multiple <code><link /></code> tags in head with many icon sizes but it's not working. It looks like undefined favicon.</p>
<p>Example tags I used:</p>
<p><code><link href="/favicon-32x32.png" rel="icon"></code><... | How do I set bookmark icon in WebShareAPI on Android? I tried setting up multiple <link /> tags in head with many icon sizes but it's not working. It looks like undefined favicon. Example tags I used: <link href="/favicon-32x32.png" rel="icon"> <link href="/favicon-72x72.png" rel="ico... | android|html | 0 | 2022-03-04T14:19:14.983Z | 2,022 | 3 | 14 | 4 | 8 | 0 | 518 | 36 | 2 | 0 | false | true | false | false | false | false | zero |
71,370,232 | Proper, globally handled finalization on edge-case app exit | <p>I am experimenting on adding VoIP functionality in one of my Android apps. Many times while debugging through Android Studio, I press the "Stop app" button to make some code changes and re-run the app. Doing that while in a VoIP call, shut the application down but the call was still active. I guess I have ... | I am experimenting on adding VoIP functionality in one of my Android apps. Many times while debugging through Android Studio, I press the "Stop app" button to make some code changes and re-run the app. Doing that while in a VoIP call, shut the application down but the call was still active. I guess I have to ... | android|sip | 0 | 2022-03-06T12:24:39.843Z | 2,022 | 3 | 12 | 6 | 8 | 0 | 733 | 59 | 2 | 0 | false | true | false | false | false | false | zero |
71,370,722 | How do I make an error message if my user does not have locations enabled in their android phone settings instead of it crashing immediately when open | <p>My app requires the user permission to access their location. When the user first opens the app on their android mobile device, they accept a request to access their location while they use the app. However, if the user has location setting off, when they try to open the app, it will immediately crash and not work. ... | My app requires the user permission to access their location. When the user first opens the app on their android mobile device, they accept a request to access their location while they use the app. However, if the user has location setting off, when they try to open the app, it will immediately crash and not work. is ... | android|android-studio|permissions|geolocation|android-permissions | 0 | 2022-03-06T13:33:46.110Z | 2,022 | 3 | 13 | 6 | 8 | 0 | 446 | 150 | 5 | 0 | false | true | false | false | false | false | zero |
71,435,419 | How to change package name for FireStore Cloud Message recognition? | <p>I am testing Firebase Cloud Messaging.
What happen is that at the start of the react native project.
The package name is <code>com.abc</code></p>
<p>So at the start of the project I made a project in firebase and use <code>com.abc</code>.</p>
<p>its working fine</p>
<p>Now I need to passed over to the client but the... | I am testing Firebase Cloud Messaging. What happen is that at the start of the react native project. The package name is com.abc So at the start of the project I made a project in firebase and use com.abc . its working fine Now I need to passed over to the client but they make the firestore with the package name com.de... | android|firebase|react-native | 0 | 2022-03-11T08:09:03.203Z | 2,022 | 3 | 8 | 4 | 8 | 0 | 493 | 67 | 3 | 1 | true | true | false | false | false | false | zero |
71,370,527 | Is there a way to create React Native Picker that works for iOS and Android? | <p>i want something like the native datetimepicker for android and ios that I can customize with text instead of date or time. Is there a possiblity to do this?</p>
<p>So something like this in the image but instead with own customized text. I only found a community react native picker as the normal react native picker... | i want something like the native datetimepicker for android and ios that I can customize with text instead of date or time. Is there a possiblity to do this? So something like this in the image but instead with own customized text. I only found a community react native picker as the normal react native picker is deprec... | android|ios|react-native|picker | 1 | 2022-03-06T13:05:21.990Z | 2,022 | 3 | 13 | 6 | 264 | 0 | 367 | 76 | 4 | 0 | false | true | false | false | false | false | low |
71,337,333 | Add Drawer on Tabs navigation with all tabs in drawer | <p>I'm new to React native, Before duplicating i've tried various solutions such as
<a href="https://stackoverflow.com/questions/64301678/how-to-navigate-from-drawer-navigation-to-bottom-tab-bar-navigation-in-react-nat">How to Navigate from DRAWER NAVIGATION to BOTTOM TAB BAR NAVIGATION in react native?</a> and
<a href... | I'm new to React native, Before duplicating i've tried various solutions such as How to Navigate from DRAWER NAVIGATION to BOTTOM TAB BAR NAVIGATION in react native? and Using DrawerNavigator alongside stack navigation on react native but none worked for my case. What i want to achieve is, There are 2 screen stacks ie ... | android|react-native|navigation|drawer | 0 | 2022-03-03T12:35:33.807Z | 2,022 | 3 | 12 | 3 | 520 | 0 | 661 | 53 | 4 | 1 | true | true | false | false | false | false | zero |
71,103,836 | Android Gradle Build Fails While Using A Docker Contained SDK | <p>I'm trying to build an apk using a docker contained android sdk</p>
<blockquote>
<p>https://github.com/mingchen/docker-android-build-box</p>
</blockquote>
<p>and when I run the interactive shell using</p>
<pre><code>docker run -v `pwd`:/project -it mingc/android-build-box bash
</code></pre>
<p>and then run</p>
<p><c... | I'm trying to build an apk using a docker contained android sdk https://github.com/mingchen/docker-android-build-box and when I run the interactive shell using [CODE] and then run ./gradlew build it compiles the code and gives me an apk which good, but when I try to do this [CODE] or [CODE] It fails, here is the consol... | android|docker|android-studio|gradle|build.gradle | 0 | 2022-02-13T18:48:35.580Z | 2,022 | 2 | 18 | 6 | 9 | 0 | 449 | 61 | 5 | 5 | true | true | false | false | false | false | zero |
71,208,838 | How to get select multiple image and upload to server using retrofit? | <p>I am trying to get selected images from user and upload it to backend.
I tried getting path of selected images then reading it with file and then parsing it to multipart.
I am getting only null values from getRealPathFromURI method.
Is there any other way to do this or what wrong i am doing?</p>
<pre><code> Activity... | I am trying to get selected images from user and upload it to backend. I tried getting path of selected images then reading it with file and then parsing it to multipart. I am getting only null values from getRealPathFromURI method. Is there any other way to do this or what wrong i am doing? [CODE] [CODE] [CODE] [CODE] | java|android|retrofit | 0 | 2022-02-21T15:23:20.253Z | 2,022 | 2 | 15 | 0 | 9 | 0 | 320 | 69 | 3 | 4 | true | true | false | false | false | false | zero |
71,267,729 | Can I compare two 2-dimensional arrays at their sections? | <p>I have 2 two-dimensional arrays which I would like to compare like this:</p>
<p><code>Integer[][] koalice=new Integer[N][pocetHracu];</code></p>
<p><code>Integer[][] koalice2=new Integer[N][pocetHracu];</code></p>
<p><code>koalice[ith] == koalice2[jth]</code></p>
<p>Can I do that or do I need to compare them element... | I have 2 two-dimensional arrays which I would like to compare like this: Integer[][] koalice=new Integer[N][pocetHracu]; Integer[][] koalice2=new Integer[N][pocetHracu]; koalice[ith] == koalice2[jth] Can I do that or do I need to compare them element by element ? It seems to me that they never matches even if they shou... | arrays|android-studio | 0 | 2022-02-25T14:59:09.713Z | 2,022 | 2 | 14 | 4 | 9 | 0 | 323 | 57 | 2 | 0 | false | true | false | false | false | false | zero |
71,276,857 | Button Control. Back to the beginning of the activity main (e.g send user back to the beginning of the page) | <p>I have a simple Webview app that opened (HTML internet links) I added I single Button at the Top of the webView but can figure out how to link it. When a user taps the button, it should skip all history and go back to the home page activity main that contains the loaded HTML.</p>
<p>I have added this to the MainActi... | I have a simple Webview app that opened (HTML internet links) I added I single Button at the Top of the webView but can figure out how to link it. When a user taps the button, it should skip all history and go back to the home page activity main that contains the loaded HTML. I have added this to the MainActivity.java ... | android|button | 0 | 2022-02-26T12:57:02.510Z | 2,022 | 2 | 12 | 5 | 9 | 0 | 764 | 108 | 2 | 3 | true | true | false | false | false | false | zero |
71,359,584 | I have used alarm manger to set an alarm and I put it for repeating but it is not working well | <p>Is there any other way to invoke alarm at exact time daily,I mean any way by which we can tell the OS that this alarm posses higher priority so at any cost invoke it at exact time.</p> | Is there any other way to invoke alarm at exact time daily,I mean any way by which we can tell the OS that this alarm posses higher priority so at any cost invoke it at exact time. | operating-system|broadcastreceiver|alarmmanager|android-broadcast|repeatingalarm | 0 | 2022-03-05T04:49:34.720Z | 2,022 | 3 | 4 | 5 | 9 | 0 | 180 | 94 | 5 | 0 | false | true | false | false | false | false | zero |
71,357,889 | "Unable to resolve dependency for" after performing Build/Make Project after update to Bumblebee | <p>After updating Android Studio to Bumblebee 2021.1.1 Patch 2 I encountered failures that I hadn't before. For example, after a Build/Make Project attempt under Build/Sync there are 23 messages of the form:</p>
<blockquote>
<p>Failed to resolve: com.squareup.leakcanary:leakcanary-android:2.8.1
Show in Project Structur... | After updating Android Studio to Bumblebee 2021.1.1 Patch 2 I encountered failures that I hadn't before. For example, after a Build/Make Project attempt under Build/Sync there are 23 messages of the form: Failed to resolve: com.squareup.leakcanary:leakcanary-android:2.8.1 Show in Project Structure dialog Affected Modul... | android|android-studio|maven|gradle|build.gradle | 0 | 2022-03-04T22:33:01.630Z | 2,022 | 3 | 22 | 4 | 265 | 0 | 2,188 | 96 | 5 | 2 | true | true | false | false | false | false | zero |
71,405,086 | How to fix the error : 'The size of byte buffer and the shape do not match' in Android Studio | <p>I am learning Android Development and working to serve an image captioning ML model using TensorFlow lite.
But the code fails with an error saying 'The size of byte buffer and the shape do not match' when executing below line of code:</p>
<pre><code>inputFeature0.loadBuffer(byteBuffer0);
</code></pre>
<p>There are s... | I am learning Android Development and working to serve an image captioning ML model using TensorFlow lite. But the code fails with an error saying 'The size of byte buffer and the shape do not match' when executing below line of code: [CODE] There are similar questions in the forum but I could not comprehend them, can ... | android|android-studio|tensorflow2.0|tensorflow-lite | 1 | 2022-03-09T06:18:48.943Z | 2,022 | 3 | 6 | 2 | 265 | 0 | 451 | 93 | 4 | 3 | true | true | false | false | false | false | low |
71,114,472 | Why can't I open an android project directly from Windows Explorer instead of accessing it from android studio? | <p>I have a question in my assignment asking about the project directory of android studio. Why am I supposed to always access it from the android studio? Now, what's an appropriate answer to this?</p> | I have a question in my assignment asking about the project directory of android studio. Why am I supposed to always access it from the android studio? Now, what's an appropriate answer to this? | android|windows|directory|project|explorer | 0 | 2022-02-14T15:42:57.907Z | 2,022 | 2 | 15 | 0 | 10 | 0 | 194 | 111 | 5 | 0 | false | true | false | false | false | false | zero |
71,149,463 | i'm using Retrofit 2. in Android Studio and am facing this error please help me to solve this error | <p>Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.squareup.retrofit2:retrofit:2.9.0.
how to solve this</p> | Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.squareup.retrofit2:retrofit:2.9.0. how to solve this | android|android-studio|kotlin|android-layout|kotlin-android | 0 | 2022-02-16T21:26:12.343Z | 2,022 | 2 | 21 | 2 | 10 | 0 | 144 | 99 | 5 | 0 | false | true | false | false | false | false | zero |
71,157,228 | NetworkBasedLoction by using FusedLocationProviderClient | <p>I am new to Kotlin android. I am working with location and i used the FusedLocationClient Api. Now i want to use Network based location with FusedLocationClient Api, i mean if gps turned off device get the location from network. Is it possible?</p> | I am new to Kotlin android. I am working with location and i used the FusedLocationClient Api. Now i want to use Network based location with FusedLocationClient Api, i mean if gps turned off device get the location from network. Is it possible? | android|kotlin|fusedlocationproviderclient | 0 | 2022-02-17T11:24:06.590Z | 2,022 | 2 | 11 | 3 | 10 | 0 | 244 | 56 | 3 | 0 | false | true | false | false | false | false | zero |
71,187,918 | Errors generating executable for android (Unity) | <p>When generating the executable for android of my game in Unity I get many errors, what do I do?</p>
<p>I am new to Unity.
<a href="https://i.stack.imgur.com/1UK6x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1UK6x.png" alt="enter image description here" /></a>
Sorry if there are words in Spanis... | When generating the executable for android of my game in Unity I get many errors, what do I do? I am new to Unity. Sorry if there are words in Spanish. | android|unity3d|compiler-errors | 0 | 2022-02-19T18:28:01.597Z | 2,022 | 2 | 18 | 5 | 10 | 0 | 151 | 48 | 3 | 0 | false | true | false | false | false | false | zero |
71,206,682 | how to fetch api data from autocompletetext onitemclicklistner and set in textview in android | <pre><code>public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
try {
JSONObject client=new JSONObject(new String(responseBody));
JSONArray jsonArray=client.getJSONArray("getproject");
for(int i = 0; i < jsonArray.length(); i++){
JSONObject ... | [CODE] | android|post|autocomplete|fetch-api | 0 | 2022-02-21T12:54:34.443Z | 2,022 | 2 | 12 | 0 | 10 | 0 | 6 | 93 | 4 | 1 | true | true | false | false | false | false | zero |
71,265,297 | Android apps run on an emulator vs android apps run on real device | <p>Does anyone have an idea how exactly does an android app behave when being executed on an emulator (what code is executed and if all the shared libraries are used) and what is the difference between an app being executed on an emulator and a real device ?</p>
<p>I was looking for articles that can explain this matte... | Does anyone have an idea how exactly does an android app behave when being executed on an emulator (what code is executed and if all the shared libraries are used) and what is the difference between an app being executed on an emulator and a real device ? I was looking for articles that can explain this matter but I co... | android|android-emulator | 0 | 2022-02-25T11:36:59.490Z | 2,022 | 2 | 11 | 4 | 10 | 0 | 409 | 66 | 2 | 0 | false | true | false | false | false | false | zero |
71,395,568 | How to highlight all items in RecyclerView on click of one button? | <p>In activity_main has a selectAll button and a RecyclerView. RecyclerView is filled with items (items) in each of which there is a CheckBox. It is necessary to make it so that by pressing the selectAll button, all items of the CheckBox are activated. Help me please! thanks in advance</p> | In activity_main has a selectAll button and a RecyclerView. RecyclerView is filled with items (items) in each of which there is a CheckBox. It is necessary to make it so that by pressing the selectAll button, all items of the CheckBox are activated. Help me please! thanks in advance | button|checkbox|android-recyclerview | 0 | 2022-03-08T13:05:37.867Z | 2,022 | 3 | 13 | 1 | 10 | 0 | 283 | 66 | 3 | 0 | false | true | false | false | false | false | zero |
71,096,029 | Is there any way to set the headers when making a synchronous Volley call? | <p>Is there any way to set the headers when making a synchronous Volley call? Here is my code:</p>
<pre><code> RequestFuture<JSONObject> future = RequestFuture.newFuture();
JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, localUri, postData, future, future);
VolleySingleton.get... | Is there any way to set the headers when making a synchronous Volley call? Here is my code: [CODE] I see how to do it with a listener, but not [CODE] | android-volley | 0 | 2022-02-12T21:31:24.690Z | 2,022 | 2 | 21 | 5 | 11 | 0 | 149 | 74 | 1 | 2 | true | true | false | false | false | false | zero |
71,112,845 | How to manipulate the image obtained from a biometric reader? | <p>I connected a biometric reader to the tablet and I am having problems scaling the image obtained.</p>
<p>Connecting and reading works fine, but the image is expanded and incomplete, as shown in the image.</p>
<p><a href="https://i.stack.imgur.com/ttIyi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c... | I connected a biometric reader to the tablet and I am having problems scaling the image obtained. Connecting and reading works fine, but the image is expanded and incomplete, as shown in the image. The code is this: [CODE] How can I manipulate this image and zoom out? I plan to frame it on canvas. I appreciate if anyon... | java|android|bitmap | 0 | 2022-02-14T13:43:04.403Z | 2,022 | 2 | 13 | 0 | 11 | 0 | 345 | 61 | 3 | 1 | true | true | false | false | false | false | zero |
71,119,372 | How to have the same frgment display different information in each different tab | <p>I'm using tablayout that associated with 6 tabs all of them have the same views but display different data. What is the best way to have only one fragment that get displayed in all the tabs with different data</p> | I'm using tablayout that associated with 6 tabs all of them have the same views but display different data. What is the best way to have only one fragment that get displayed in all the tabs with different data | android | 0 | 2022-02-14T23:16:40.317Z | 2,022 | 2 | 23 | 0 | 11 | 0 | 209 | 80 | 1 | 0 | false | true | false | false | false | false | zero |
71,127,252 | Opening FBX File Android | <p>I have an FBX or OBJ file.</p>
<blockquote>
<p>An FBX file is a 3D model saved in the Autodesk Filmbox format. It contains a model that can be used and shared across a variety of digital modeling and content creation programs, including the Autodesk suite of applications. FBX files are often used in game development... | I have an FBX or OBJ file. An FBX file is a 3D model saved in the Autodesk Filmbox format. It contains a model that can be used and shared across a variety of digital modeling and content creation programs, including the Autodesk suite of applications. FBX files are often used in game development and animation. FBX fil... | android|fbx | 0 | 2022-02-15T13:24:25.573Z | 2,022 | 2 | 13 | 1 | 11 | 0 | 525 | 24 | 2 | 0 | false | true | false | false | false | false | zero |
71,154,526 | How to set locale to en_US.UTF-8 in android ndk? | <p>i'm using a c library to read fileheader. it works fine when the fileheader only contains English but it went wrong when it contains Chinese. I have tried setlocale(LC_CTYPE, "en_US.UTF-8").
it works on osx but not android. this function returns C.UTF-8. It seems that android ndk does not support that.Any ... | i'm using a c library to read fileheader. it works fine when the fileheader only contains English but it went wrong when it contains Chinese. I have tried setlocale(LC_CTYPE, "en_US.UTF-8"). it works on osx but not android. this function returns C.UTF-8. It seems that android ndk does not support that.Any sol... | android | 0 | 2022-02-17T08:17:12.133Z | 2,022 | 2 | 8 | 3 | 11 | 0 | 356 | 48 | 1 | 0 | false | true | false | false | false | false | zero |
71,193,925 | Launching a search on Amazon FireOS devices from Android intent | <p>Supported intents on Amazon Fire devices are listed here:
<a href="https://developer.amazon.com/it/docs/fire-tablets/ft-supported-android-intents.html" rel="nofollow noreferrer">https://developer.amazon.com/it/docs/fire-tablets/ft-supported-android-intents.html</a></p>
<p>Also the ACTION_WEB_SEARCH intent is support... | Supported intents on Amazon Fire devices are listed here: https://developer.amazon.com/it/docs/fire-tablets/ft-supported-android-intents.html Also the ACTION_WEB_SEARCH intent is supported, as it is on Android. This code works on a Google Android device (non-Amazon device) [CODE] It calls a search interface that maybe ... | android|android-intent|web-search|fireos | 0 | 2022-02-20T11:27:26.877Z | 2,022 | 2 | 11 | 6 | 11 | 0 | 714 | 63 | 4 | 1 | true | true | false | false | false | false | zero |
71,220,413 | Table rows inside a fragment not showing | <p>I'm trying to dynamically add a table rows to my table layout to my fragment with a Custom design as follows</p>
<pre><code> public class StationsFragment extends Fragment {
private TableLayout tableLayout;
public StationsFragment() {
// Required empty public constructor
}
@Override
public View onCreateVi... | I'm trying to dynamically add a table rows to my table layout to my fragment with a Custom design as follows [CODE] } Here is the custom layout created [CODE] My problem is that the rows do not show up in the table even though they seam to be loaded successfully without any errors. What could be wrong or how can I achi... | java|android | 0 | 2022-02-22T11:21:39.553Z | 2,022 | 2 | 11 | 1 | 11 | 0 | 352 | 40 | 2 | 2 | true | true | false | false | false | false | zero |
71,234,955 | Why Sharing for audio file not working though for video file is working? | <p>In my Application, i got the file path of the saved files. Basically audio files are saved in the music directory and audio files are in the movies directory. Path is getting perfectly in the following method. But the problem is i cant share any audio file(.mp3) anywhre. But My video files are sharing perfectly.</p>... | In my Application, i got the file path of the saved files. Basically audio files are saved in the music directory and audio files are in the movies directory. Path is getting perfectly in the following method. But the problem is i cant share any audio file(.mp3) anywhre. But My video files are sharing perfectly. [CODE] | android|kotlin | 0 | 2022-02-23T10:09:01.413Z | 2,022 | 2 | 10 | 2 | 11 | 0 | 320 | 72 | 2 | 1 | true | true | false | false | false | false | zero |
71,263,943 | coordinator layout not working on the framelayout | <p>I created a floating button followed by a include layout and framelayout. It seems like the floating button created in another layout and framelayout in another as well. How to use coordinator layout inside linear layout to add both include layout and framelayout in the same screen? Here is my code flow,</p>
<pre><c... | I created a floating button followed by a include layout and framelayout. It seems like the floating button created in another layout and framelayout in another as well. How to use coordinator layout inside linear layout to add both include layout and framelayout in the same screen? Here is my code flow, [CODE] | include|android-linearlayout|android-framelayout | 0 | 2022-02-25T09:47:26.217Z | 2,022 | 2 | 9 | 4 | 11 | 0 | 312 | 49 | 3 | 1 | true | true | false | false | false | false | zero |
71,268,909 | Dart Flutter can't pull image right | <p><a href="https://i.stack.imgur.com/0GejJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0GejJ.png" alt="enter image description here" /></a></p>
<p>I have such an interface and I want to bring the bottom image to the bottom right corner. I tried but for some reason I couldn't scroll.</p>
<p><stro... | I have such an interface and I want to bring the bottom image to the bottom right corner. I tried but for some reason I couldn't scroll. Codes: [CODE] How can I snap it to the bottom right corner? I want to add it because I think it will add a nice look. | android|flutter|dart | 0 | 2022-02-25T16:33:42.353Z | 2,022 | 2 | 16 | 4 | 11 | 0 | 254 | 35 | 3 | 1 | true | true | false | false | false | false | zero |
71,276,988 | I want to show you the date I chose on the calendarview on a different screen in android | <p>I am making a reservation function. I want to show you the date I chose on the calendarview on a different screen to recyclerview. but, But I don't know how to approach it. What keyword should I search for?</p> | I am making a reservation function. I want to show you the date I chose on the calendarview on a different screen to recyclerview. but, But I don't know how to approach it. What keyword should I search for? | android | 0 | 2022-02-26T13:17:33.077Z | 2,022 | 2 | 13 | 5 | 11 | 0 | 206 | 88 | 1 | 0 | false | true | false | false | false | false | zero |
71,343,700 | cordova docs show different Android spashscreen specs - which ones are correct? | <p>I set up Android splashscreen png sizes according to earlier Cordova docs years ago, but the current docs show different sizes. I found some documentation that seems to indicate that the sizes now shown are for tablets, whereas the earlier ones are for phones. But nothing to indicate how to distinguish them in the ... | I set up Android splashscreen png sizes according to earlier Cordova docs years ago, but the current docs show different sizes. I found some documentation that seems to indicate that the sizes now shown are for tablets, whereas the earlier ones are for phones. But nothing to indicate how to distinguish them in the conf... | android|cordova|splash-screen | 0 | 2022-03-03T20:54:29.967Z | 2,022 | 3 | 20 | 3 | 11 | 0 | 689 | 79 | 3 | 0 | false | true | false | false | false | false | zero |
71,345,247 | Need the red ticks to stay in place when I pinch zoom on the map for java implementation of Android Studios | <p>I am using android studios using Java programming language. I would like to implement a pinch zoom on the indoor map but I would like those red ticks to be in place.</p>
<p><a href="https://i.stack.imgur.com/M3RvY.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>The code is below. I know the co... | I am using android studios using Java programming language. I would like to implement a pinch zoom on the indoor map but I would like those red ticks to be in place. enter image description here The code is below. I know the code is really inefficient and could be optimized but I am not at the optimized state yet. [COD... | java|android | 0 | 2022-03-04T00:16:09.037Z | 2,022 | 3 | 0 | 4 | 11 | 0 | 322 | 107 | 2 | 1 | true | true | false | false | false | false | zero |
71,400,831 | when using google api for getting route polylines,for some lattitude im not getting it...? | <p>when I gave from LATTITUDE: 32.223204559937535, from longitude : 43.67929100990296 and destination to LATTITUDE: 36.19008597917622, to longitude : 43.993030339479446.... when I tried this, in this order in the URL I'm getting the route with polylines . but when trying reverse changing this destination va... | when I gave from LATTITUDE: 32.223204559937535, from longitude : 43.67929100990296 and destination to LATTITUDE: 36.19008597917622, to longitude : 43.993030339479446.... when I tried this, in this order in the URL I'm getting the route with polylines . but when trying reverse changing this destination values to origin ... | java|android|routes|maps | 0 | 2022-03-08T20:00:44.250Z | 2,022 | 3 | 20 | 1 | 11 | 0 | 404 | 90 | 4 | 0 | false | true | false | false | false | false | zero |
71,421,230 | Two logs differ in same operation android | <p>As per lifecycle, if Activity I have 2 logs.</p>
<p>One is client log and another is my log.</p>
<p>In client log,</p>
<pre><code>01-08 08:06:18.676 3508 3508 I Launcher: onResume
01-08 08:06:18.677 3705 3705 I ActivitySample: onDestroy
</code></pre>
<p>In my log,</p>
<pre><code>01-09 16:30:44.485 3834 3834 I... | As per lifecycle, if Activity I have 2 logs. One is client log and another is my log. In client log, [CODE] In my log, [CODE] How come it varies in client log. Operation performed is same but log print is varying. | android|logging|launcher|onresume|android-log | 0 | 2022-03-10T08:50:22.760Z | 2,022 | 3 | 8 | 3 | 11 | 0 | 213 | 41 | 5 | 2 | true | true | false | false | false | false | zero |
71,114,106 | Android Keyboard Accessibility: focus is going to entire top toolbar instead of its child | <p>I am working on an Android app that has a keyboard accessibility feature to access the app using the keyboard.</p>
<p>I am using</p>
<blockquote>
<p>androidx.appcompat.widget.Toolbar</p>
</blockquote>
<p>It has one navigation button.</p>
<pre><code>val navigationButton = topToolbar.getChildAt(0) as ImageButton
navig... | I am working on an Android app that has a keyboard accessibility feature to access the app using the keyboard. I am using androidx.appcompat.widget.Toolbar It has one navigation button. [CODE] However, when I try to focus on the navigation button of my App toolbar, it is getting focused on the whole toolbar instead of ... | android|accessibility | 2 | 2022-02-14T15:17:51.943Z | 2,022 | 2 | 15 | 0 | 267 | 0 | 550 | 89 | 2 | 2 | true | true | false | false | false | false | low |
71,149,248 | Flutter dependecies: Android SDK | <p>I recently started learning flutter. I install android studio and the Android SDK. On running flutter doctor, I get this error:</p>
<pre><code> Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdli... | I recently started learning flutter. I install android studio and the Android SDK. On running flutter doctor, I get this error: [CODE] On running path to the SDK (where I have saved the SDK: /home/mobisa/Android/Sdk/ ), it says: [CODE] Any solutions. | android|flutter | 0 | 2022-02-16T21:04:43.457Z | 2,022 | 2 | 21 | 2 | 267 | 0 | 250 | 32 | 2 | 2 | true | true | false | false | false | false | zero |
71,099,833 | Using width attribute with data binding in Android | <p><strong>XML</strong></p>
<pre><code><androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="@{CategoriesModel.initializeScreenWidth(context)}"
android:layout_height="wrap_content"/>
</code></pre>
<p><strong>The method inside Categories Model</strong></p>
<pre><code>... | XML [CODE] The method inside Categories Model [CODE] The Error [CODE] I'm trying to set width using data binding but I got the above error, How can I solve the problem? | android|android-databinding|android-jetpack | 0 | 2022-02-13T10:35:40.847Z | 2,022 | 2 | 10 | 6 | 12 | 0 | 168 | 50 | 3 | 3 | true | true | false | false | false | false | zero |
71,120,508 | How to set the size of view according to a drawable file in RelativeLayout | <p>here is my .xml file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
...
<View... | here is my .xml file [CODE] here is bg_veri_cursor.xml in drawable [CODE] When I insert it to a LinearLayout with addView(...) . It behaves 1 : https://i.stack.imgur.com/ODmpV.png rather than | android | 0 | 2022-02-15T02:35:56.673Z | 2,022 | 2 | 2 | 1 | 12 | 0 | 191 | 74 | 1 | 2 | true | true | false | false | false | false | zero |
71,194,184 | Android - What possible work-around to reliably test getInstallerPackageName() function in debug mode? | <p>When trying to get the installer info in debug mode I get a null string.</p>
<p>This is the code:</p>
<pre><code>ApplicationInfo applicationInfo = packageManager.getApplicationInfo(activity.getPackageName(), 0);
String appstoreString=packageManager.getInstallerPackageName(applicationInfo.packageName);
</code></pre>... | When trying to get the installer info in debug mode I get a null string. This is the code: [CODE] This seems to be reasonable because the debug apk is not installed from an official installer, as it could be GooglePlay or Amazon Appstore. So it seems that it cannot be tested on a real-device until it is not published, ... | android|google-play|android-applicationinfo|packageinstaller|android-debugging | 0 | 2022-02-20T11:57:17.527Z | 2,022 | 2 | 11 | 6 | 12 | 0 | 514 | 102 | 5 | 1 | true | true | false | false | false | false | zero |
71,239,096 | Android Composables: How do I ignore scroll events in a LazyList for certain items? | <p>I have this:</p>
<pre><code> LazyColumn {
item {
Map(
modifier = Modifier
.fillMaxWidth()
.height(460.dp),
directions = directions
)
}
item {
... | I have this: [CODE] Map is a Google Map View inside an AndroidView and RouteBottomDetails is just a bunch of stuff that scrolls off the bottom of the screen. The idea is to be able to scroll the map off the top of the screen to show more "details" below. This works fine. The problem is that I also want to be ... | android|ontouchlistener|lazylist|lazycolumn|composable | 0 | 2022-02-23T14:48:20.370Z | 2,022 | 2 | 14 | 2 | 12 | 0 | 1,107 | 83 | 5 | 1 | true | true | false | false | false | false | zero |
71,240,980 | android - prebuild project apk size increased in target folder | <p>I try to run below prebuild project in aosp code. I found the apk size increased about 18MB after copied to target folder:</p>
<pre><code>LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := com.sample.test
LOCAL_MODULE_OWNER := personal
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := A... | I try to run below prebuild project in aosp code. I found the apk size increased about 18MB after copied to target folder: [CODE] Original test.apk and output apk size (14M to 32M): [CODE] What's the reason the prebuilt apk size increased so much? | android | 0 | 2022-02-23T16:50:21.530Z | 2,022 | 2 | 16 | 2 | 12 | 0 | 247 | 62 | 1 | 2 | true | true | false | false | false | false | zero |
71,409,162 | Code is not automatically rearranged before commit | <p>I'm using Android Studio Bumblebee 2021.1.1 and my code isn't automatically reformatted even though I selected the "Reformat Code" option in the commit window. I've already tried resetting Android Studio settings, but that didn't help. Does anyone have any idea why this might be? Here is a link to a thread... | I'm using Android Studio Bumblebee 2021.1.1 and my code isn't automatically reformatted even though I selected the "Reformat Code" option in the commit window. I've already tried resetting Android Studio settings, but that didn't help. Does anyone have any idea why this might be? Here is a link to a thread on... | android-studio|intellij-idea | 0 | 2022-03-09T12:11:19.120Z | 2,022 | 3 | 12 | 2 | 12 | 0 | 408 | 50 | 2 | 0 | false | true | 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.