id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79533043
stackoverflow
MOBILE_DEVELOPMENT
Android Flavor Issue: Activity class {com.company.test/.SplashActivity} does not exist (Error type 3)
Android Flavor Issue: Activity class {com.company.test/.SplashActivity} does not exist (Error type 3) I'm running into an issue with my React Native Android app when using flavors. The Iraqi flavor (default) builds and runs fine, but the Lebanon flavor (which uses an applicationIdSuffix) builds successfully yet fails ...
https://stackoverflow.com/questions/79533043/android-flavor-issue-activity-class-com-company-test-splashactivity-does-not
javascript, android, react-native, gradle, android-productflavors
1,742,890,786
se_70293229
stackoverflow
MOBILE_DEVELOPMENT
Android x86 9.0 Ethernet Connection on Physical Machine
Android x86 9.0 Ethernet Connection on Physical Machine I just installed Android x86 9.0 on a physical PC (i5 4th Gen). I do not have a WiFi adapter for the PC. I have it connected to my router using the LAN port. How can I get this connected to my network? I did not see anything in the setup. Any ideas? Thanks, R...
https://stackoverflow.com/questions/70293229/android-x86-9-0-ethernet-connection-on-physical-machine
android, android-x86
1,639,066,753
se_33165324
stackoverflow
MOBILE_DEVELOPMENT
Kotlin-android: unresolved reference databinding
Kotlin-android: unresolved reference databinding I have following fragment class written in Java using the new databinding library import com.example.app.databinding.FragmentDataBdinding; public class DataFragment extends Fragment { @Nullable private FragmentDataBinding mBinding; @Nullable @Overrid...
https://stackoverflow.com/questions/33165324/kotlin-android-unresolved-reference-databinding
java, android, kotlin, android-databinding
1,444,982,322
se_79966142
stackoverflow
MOBILE_DEVELOPMENT
In Android, can a shared library have a custom file extension instead of .so and still be loaded using loadLibrary?
In Android, can a shared library have a custom file extension instead of .so and still be loaded using loadLibrary? I'm working on an Android project with C++ native libraries built using CMake. I want to give my shared libraries a custom file extension (e.g. .abc or .xyz) instead of the standard .so. Most of my appli...
https://stackoverflow.com/questions/79966142/in-android-can-a-shared-library-have-a-custom-file-extension-instead-of-so-and
android, java-native-interface, shared-libraries
1,782,280,786
se_79931262
stackoverflow
MOBILE_DEVELOPMENT
Linking FFmpeg 8.1 CLI into an Android NDK Shared Library: Header Resolution and Symbol Errors
Linking FFmpeg 8.1 CLI into an Android NDK Shared Library: Header Resolution and Symbol Errors I am attempting to build a custom video processing engine for Android using FFmpeg 8.1. Instead of re-implementing the muxing logic using libavformat/libavcodec APIs, I want to "library-ify" the FFmpeg CLI tool and call it v...
https://stackoverflow.com/questions/79931262/linking-ffmpeg-8-1-cli-into-an-android-ndk-shared-library-header-resolution-and
android, ffmpeg, android-ndk, cross-compiling, android-ffmpeg
1,777,028,194
se_17423870
stackoverflow
MOBILE_DEVELOPMENT
Is there any way to get key hash from signed APK?
Is there any way to get key hash from signed APK? Is there any way to get key hash from signed APK? We have a signed Android apk file, and we want to find out key hash of this APK, for Facebook SDK. Can we do that by something like jarsigner?Any suggestions?
https://stackoverflow.com/questions/17423870/is-there-any-way-to-get-key-hash-from-signed-apk
android, facebook, codesign
1,372,762,953
se_1886874
stackoverflow
MOBILE_DEVELOPMENT
How to stop service by itself?
How to stop service by itself? I start a service in an activity then I want the service to stop itself after a while. I called stopSelf() in the service but it doesn't work. How to make the service stop itself?
https://stackoverflow.com/questions/1886874/how-to-stop-service-by-itself
android
1,260,523,947
se_44173928
stackoverflow
MOBILE_DEVELOPMENT
Why do the apps written in java run only on android, even if java is platform independent
Why do the apps written in java run only on android, even if java is platform independent Years ago I studied core java in that I read that one of the features of java is that it is platform independent. Reference: https://www.tpointtech.com/features-of-java Now I am working on android development, android apps are de...
https://stackoverflow.com/questions/44173928/why-do-the-apps-written-in-java-run-only-on-android-even-if-java-is-platform-in
java, android
1,495,694,401
se_31189693
stackoverflow
MOBILE_DEVELOPMENT
Can I add a new package to my existing project in Android Studio?
Can I add a new package to my existing project in Android Studio? How can I add a new package to my existing project in Android Studio? I had referred here. In this link they said to create an app and helper package in Eclipse, but I am using Andriod Studio, and I know basic programming. Even this link has JASON succ...
https://stackoverflow.com/questions/31189693/can-i-add-a-new-package-to-my-existing-project-in-android-studio
php, android, mysql, eclipse, android-studio
1,435,853,765
se_78995283
stackoverflow
MOBILE_DEVELOPMENT
How to get permission to a specific folder in flutter
How to get permission to a specific folder in flutter I am working on a WhatsApp Status app in Flutter. I was fetching the statuses from the .statuses directory using Manage External Storage permission because with Read External Storage Permission, I am unable to access that directory. But Google Play rejected my app ...
https://stackoverflow.com/questions/78995283/how-to-get-permission-to-a-specific-folder-in-flutter
android, flutter, flutter-dependencies, android-permissions
1,726,596,007
se_79849957
stackoverflow
MOBILE_DEVELOPMENT
Android Studio Kotlin: SourceSet with name 'main' not found
Android Studio Kotlin: SourceSet with name 'main' not found in the latest versions of Android Studio I can no longer use this feature and I get an error: "SourceSet with name 'main' not found :27" Line 27: classpath = project.sourceSets\[sourceSetName\].runtimeClasspath Version (Android Studio Otter 2 Featu...
https://stackoverflow.com/questions/79849957/android-studio-kotlin-sourceset-with-name-main-not-found
android, kotlin, gradle
1,766,023,277
se_74091211
stackoverflow
MOBILE_DEVELOPMENT
OutputFile is deprecated in build.gradle
OutputFile is deprecated in build.gradle I'm trying to generate the apk release. However, when i run the command ./gradlew bundlerelease it gives the error Task :app:mergeReleaseResources FAILED FAILURE: Build completed with 2 failures. 1: Task failed with an exception. What went wrong: Execution failed for task ':ap...
https://stackoverflow.com/questions/74091211/outputfile-is-deprecated-in-build-gradle
android, gradle, build, build.gradle
1,665,961,069
se_28929487
stackoverflow
MOBILE_DEVELOPMENT
Import image as a background in Android Studio
Import image as a background in Android Studio How should I import .png image that suppose to be the background of my activity? I selected drawable folder from the project panel then opened the New menu: 'Image Asset' , but this option is for importing icons so I guess it's not right decision (I need to import an imag...
https://stackoverflow.com/questions/28929487/import-image-as-a-background-in-android-studio
android-studio, android
1,425,835,171
se_42432746
stackoverflow
MOBILE_DEVELOPMENT
How to scan bill receipt from android phone and get data from it?
How to scan bill receipt from android phone and get data from it? I am working on scanning bill receipt to get important data from it like restaurant name, date, total price, tax etc. But not getting any appropriate solution. Take reference from play store app name 'Receipt Bank'
https://stackoverflow.com/questions/42432746/how-to-scan-bill-receipt-from-android-phone-and-get-data-from-it
android, ocr
1,487,920,220
se_79965220
stackoverflow
MOBILE_DEVELOPMENT
As a developer, how do I prevent your features from being broken by other team members?
As a developer, how do I prevent your features from being broken by other team members? There are four scrum teams under my line manager's supervision and we work together to build an android application. There is a team which builds foundational components that include common utilities used by the rest three feature ...
https://stackoverflow.com/questions/79965220/as-a-developer-how-do-i-prevent-your-features-from-being-broken-by-other-team-m
android, unit-testing
1,782,125,164
se_36790794
stackoverflow
MOBILE_DEVELOPMENT
what is c512,c768 of selinux process
what is c512,c768 of selinux process I got a trouble that I have a app need to access /proc entry that I create by a kernel driver and I got a selinux denied issue: avc: denied { write } for pid=30200 comm="omg.flashlight" name="omg_flash_brightness" dev="proc" ino=4026534208 scontext=u:r:untrusted_app:s0:c512,c768 t...
https://stackoverflow.com/questions/36790794/what-is-c512-c768-of-selinux-process
android, linux-kernel, selinux
1,461,319,437
se_22146192
stackoverflow
MOBILE_DEVELOPMENT
wrap_content does not work in LinearLayout
wrap_content does not work in LinearLayout The two button in the following code, were set to wrap_content and no padding. However, there is still some padding in the vertical orientation. If I set the android:layout_height to a fixed parameter, the padding could disappear. But I do want to use wrap_content instead of ...
https://stackoverflow.com/questions/22146192/wrap-content-does-not-work-in-linearlayout
android, android-layout
1,393,847,951
se_36491797
stackoverflow
MOBILE_DEVELOPMENT
Android Dual Sim Get Sim Detais of Both the SIM
Android Dual Sim Get Sim Detais of Both the SIM I am Working with a project in to that i need to get all the sim details of both the SIMs like getSimCountryIso,getSubscriberId,getLine1Number ,getSimSerialNumber curently i am able to get all these details of SIM 1 But not able to get for second SIM how to get it's i...
https://stackoverflow.com/questions/36491797/android-dual-sim-get-sim-detais-of-both-the-sim
android
1,460,091,235
se_51858169
stackoverflow
MOBILE_DEVELOPMENT
JAVA_HOME is not set and no 'java' command could be found in your PATH
JAVA_HOME is not set and no 'java' command could be found in your PATH I am trying to build a react-native app on my mobile phone. I do have environment path set in my environment variable I have my phone in debugging mode with adb devices showing phone connected. My java path is C:\Program Files\Java\jdk-1...
https://stackoverflow.com/questions/51858169/java-home-is-not-set-and-no-java-command-could-be-found-in-your-path
android, windows, react-native
1,534,333,915
se_48082586
stackoverflow
MOBILE_DEVELOPMENT
BuildException: Failed to execute aapt in Android Studio 3.1 Canary 6
BuildException: Failed to execute aapt in Android Studio 3.1 Canary 6 I am facing this issue during gradle build: org.gradle.tooling.BuildException: Failed to execute aapt at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:5...
https://stackoverflow.com/questions/48082586/buildexception-failed-to-execute-aapt-in-android-studio-3-1-canary-6
java, android, gradle, aapt, android-studio-3.1
1,515,001,843
se_47114127
stackoverflow
MOBILE_DEVELOPMENT
Constraint Layout with transparency and elevation
Constraint Layout with transparency and elevation I have 10 TextViews inside 1 Constraint Layout. What i would like to achieve is to have the Constraint Layout have some elevation to make it seem like all 10 textviews are basically above my background. But i would like to keep the background of my layout to take the b...
https://stackoverflow.com/questions/47114127/constraint-layout-with-transparency-and-elevation
android, android-layout, android-constraintlayout, android-elevation
1,509,820,191
se_46928820
stackoverflow
MOBILE_DEVELOPMENT
Android: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable
Android: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable I'm trying to run this sample project using GraphQL with the Apollo Android client: https://github.com/apollographql/apollo-android/tree/master/apollo-sample I'm new to Android studi...
https://stackoverflow.com/questions/46928820/android-sdk-location-not-found-define-location-with-sdk-dir-in-the-local-prope
android, gradle
1,508,923,882
se_23713226
stackoverflow
MOBILE_DEVELOPMENT
How to make application badge on android?
How to make application badge on android? --Edit on 23 Apr 2016-- I finally used ShortcutBadger in most areas of my Device, I think that should be enough for me. ShortcutBadger Basically, Shortcut Badger will send broadcast, intent, etc to specific launcher, such as LG Launcher, to make a badge. It may not cover all t...
https://stackoverflow.com/questions/23713226/how-to-make-application-badge-on-android
android, badge, lg
1,400,341,433
se_25451789
stackoverflow
MOBILE_DEVELOPMENT
Any way to access magnetometer input in chrome for android?
Any way to access magnetometer input in chrome for android? I'm trying to start a WebGL project that works with Google Cardboard. Since the only input you can have with your phone while it's in the cardboard is a magnetic switch on one side that interacts with the phone's internal magnetometer, I'm curious if there's ...
https://stackoverflow.com/questions/25451789/any-way-to-access-magnetometer-input-in-chrome-for-android
javascript, android, magnetometer
1,408,725,612
se_48587879
stackoverflow
MOBILE_DEVELOPMENT
Realm does not save attributes, object is not managed although copied to Realm
Realm does not save attributes, object is not managed although copied to Realm I have an issue with realm. I receive a custom object from an API. I assign this object to a POJO object using retrofit. Within this object I have an ArrayList of the ToDoItemobject which extends RealmObject. I receive the data correctly w...
https://stackoverflow.com/questions/48587879/realm-does-not-save-attributes-object-is-not-managed-although-copied-to-realm
java, android, database, realm
1,517,592,281
se_38003893
stackoverflow
MOBILE_DEVELOPMENT
Volley throwing AuthFailureError (401) with Basic HTTP Authentication
Volley throwing AuthFailureError (401) with Basic HTTP Authentication I'm trying to make a GET request in an Android application using the Volley library. This GET request is to verify account credentials using Basic HTTP Authentication. I verified the URL with credentials works in my browser as it returns successful ...
https://stackoverflow.com/questions/38003893/volley-throwing-authfailureerror-401-with-basic-http-authentication
android, get, android-volley, basic-authentication
1,466,727,645
se_49749330
stackoverflow
MOBILE_DEVELOPMENT
install_failed_no_matching_abis failed to extract native libraries res=-113 after updating to android 8.0 oreo
install_failed_no_matching_abis failed to extract native libraries res=-113 after updating to android 8.0 oreo I have an issue with my app. I use a samsung s8 and my app was running fine until I updated to android oreo. I uninstalled my app and tried to run again but I get error install_failed_no_matching_abis failed ...
https://stackoverflow.com/questions/49749330/install-failed-no-matching-abis-failed-to-extract-native-libraries-res-113-afte
android
1,523,350,300
se_43485309
stackoverflow
MOBILE_DEVELOPMENT
How to use Android "Apply update from SD Card" to run custom script
How to use Android "Apply update from SD Card" to run custom script I'm trying to recover some pictures from my HTC One M9. It freezes on reboot after just a few seconds. I can only access the bootloader screen (white background with colorful menu options) and the Android Recovery screen (black background ...
https://stackoverflow.com/questions/43485309/how-to-use-android-apply-update-from-sd-card-to-run-custom-script
android, adb, data-recovery, edify
1,492,569,099
se_79966515
stackoverflow
MOBILE_DEVELOPMENT
How to conditionally bypass AdMob Mediation and initialize Unity Ads directly on Huawei devices (No GMS)?
How to conditionally bypass AdMob Mediation and initialize Unity Ads directly on Huawei devices (No GMS)? I have an Android app that uses AdMob Mediation as the primary ad network, with Unity Ads as a mediation partner. This works perfectly on standard Android devices. However, I am now compiling a build for the Huawe...
https://stackoverflow.com/questions/79966515/how-to-conditionally-bypass-admob-mediation-and-initialize-unity-ads-directly-on
android, unity-game-engine, huawei-mobile-services
1,782,326,937
se_79965943
stackoverflow
MOBILE_DEVELOPMENT
How to make a better OTP/Pin Text Field
How to make a better OTP/Pin Text Field My original attempt used seperate TextFields for each pin number. When a pin number was entered it would go to next TextField. On typing Backspace in an empty TextField it would clear the previous TextField. The Backspace is where things get tricky. Clearing the previous TextFie...
https://stackoverflow.com/questions/79965943/how-to-make-a-better-otp-pin-text-field
android, android-jetpack-compose
1,782,228,327
se_21259799
stackoverflow
MOBILE_DEVELOPMENT
Android capture video and upload it to server using single button
Android capture video and upload it to server using single button I am making an application where i have to capture video and upload it to server like vine application. Flow of the work: One button will be used "Upload your own video" When user clicks on the button it will open camera and will start recording video...
https://stackoverflow.com/questions/21259799/android-capture-video-and-upload-it-to-server-using-single-button
android, video, file-upload, upload
1,390,311,540
se_78498081
stackoverflow
MOBILE_DEVELOPMENT
ContextCompat.registerReceiver - "Must be one or more of values" error
ContextCompat.registerReceiver - "Must be one or more of values" error I'm trying to migrate my app to API 34, and in the process, I must add flags when registering a Broadcast Receiver. However, I'm having an error hint saying that the flag I added is incorrect, and must be in a list of values, even though ...
https://stackoverflow.com/questions/78498081/contextcompat-registerreceiver-must-be-one-or-more-of-values-error
android, broadcastreceiver
1,715,983,182
se_5578596
stackoverflow
MOBILE_DEVELOPMENT
How to transform to lowercase a value in SQLite?
How to transform to lowercase a value in SQLite? In the SQLite database, I have stored all values in uppercase. How can I select the specified value in the database using lower case?
https://stackoverflow.com/questions/5578596/how-to-transform-to-lowercase-a-value-in-sqlite
android, sqlite, case-insensitive
1,302,167,137
se_9498759
stackoverflow
MOBILE_DEVELOPMENT
How to add dots for ViewPager in Android?
How to add dots for ViewPager in Android? I am referring to the following link to create a view Pager for android 2.2 ViewPager Example Link It worked all fine. But I want show dots below the views I am using. How do I do this? I am not writing any code here as its same as the one in the link I have shared.
https://stackoverflow.com/questions/9498759/how-to-add-dots-for-viewpager-in-android
android, android-viewpager, customization
1,330,516,835
se_29327318
stackoverflow
MOBILE_DEVELOPMENT
how to get the path of selected PDF/doc from file manager in android programmatically
how to get the path of selected PDF/doc from file manager in android programmatically I have written this code to open my Document manager and select any PDF/Doc file. Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType("*/*"); ...
https://stackoverflow.com/questions/29327318/how-to-get-the-path-of-selected-pdf-doc-from-file-manager-in-android-programmati
android, android-intent
1,427,619,501
se_20116381
stackoverflow
MOBILE_DEVELOPMENT
ListView without Scrollbar to use in a ScrollView
ListView without Scrollbar to use in a ScrollView I want to use a kind of ListView inside of a ScrollView. The list has a variable length, it is always possible to add/remove items. Is there an easy way to modify the default Android ListView, oder do I have to create a custom ListView?
https://stackoverflow.com/questions/20116381/listview-without-scrollbar-to-use-in-a-scrollview
android, listview, scroll
1,385,024,310
se_79965847
stackoverflow
MOBILE_DEVELOPMENT
How can I download a Play Store app through browser on emulator
How can I download a Play Store app through browser on emulator I'm trying to download app using a link on aandroid emulator. For example, I'm trying to download an app using a referral link through a browser so I get credit for the referral. How can I accomplish this? Is this possible?
https://stackoverflow.com/questions/79965847/how-can-i-download-a-play-store-app-through-browser-on-emulator
android, android-emulator, google-play, emulation, referrals
1,782,216,098
se_76909776
stackoverflow
MOBILE_DEVELOPMENT
Authorizing USB debugging on a dead touchscreen
Authorizing USB debugging on a dead touchscreen I've got a Google Pixel 6 that fell face down and has a dead screen - both image and touch inputs do not work. I'm trying to access and move important files from the phone to a laptop and this is where I'm running into an issue. Though I had activated USB debugging, ther...
https://stackoverflow.com/questions/76909776/authorizing-usb-debugging-on-a-dead-touchscreen
android, adb, usb-otg, google-pixel
1,692,145,284
se_72935172
stackoverflow
MOBILE_DEVELOPMENT
focusOutFront() not working on VerticalGridSupportFragment but working on RowSupportFragment
focusOutFront() not working on VerticalGridSupportFragment but working on RowSupportFragment I am working on Android TV using Leanback. Here, I have a list of channel data and their EPG. I have populated the channels list on the VerticalGridSupportFragment. And I also have a date filter button to filter the EPG list a...
https://stackoverflow.com/questions/72935172/focusoutfront-not-working-on-verticalgridsupportfragment-but-working-on-rowsup
android, kotlin, android-tv, leanback
1,657,525,231
se_69230513
stackoverflow
MOBILE_DEVELOPMENT
flutter-download file pdf from URL with dio
flutter-download file pdf from URL with dio good morning, i'm new in flutter, i want to use package dio to download pdf file from url with button. but when i click the button nothing happens/no notification about download file in my smartphone (but the file was successfully downloaded and saved in data/com.example.but...
https://stackoverflow.com/questions/69230513/flutter-download-file-pdf-from-url-with-dio
android, flutter, dart, dio
1,631,922,907
se_55184588
stackoverflow
MOBILE_DEVELOPMENT
SSLProtocolException: Read error: ssl=0x9af236c0: Failure in SSL library, usually a protocol error in android emulator
SSLProtocolException: Read error: ssl=0x9af236c0: Failure in SSL library, usually a protocol error in android emulator I am using the following method to read the stream. public static String readStream(InputStream inputStream) { try { ByteArrayOutputStream bo = new ByteArrayOutputStream(); int i ...
https://stackoverflow.com/questions/55184588/sslprotocolexception-read-error-ssl-0x9af236c0-failure-in-ssl-library-usuall
android, emulation
1,552,659,316
se_18079026
stackoverflow
MOBILE_DEVELOPMENT
Icon size in preference screen for Amazon Kindle Fire HD?
Icon size in preference screen for Amazon Kindle Fire HD? I've got Android application running on Amazon Kindle Fire HD 8.9". It's got a full HD display with carousel home screen where icons are 675x675 px big. First problem I had was using standard small app icons which are stretched and blurry on this device. I sol...
https://stackoverflow.com/questions/18079026/icon-size-in-preference-screen-for-amazon-kindle-fire-hd
android, icons, preferenceactivity, kindle-fire
1,375,788,739
se_43169487
stackoverflow
MOBILE_DEVELOPMENT
How to download and save in local directory from Google drive selected file in Android programmatically?
How to download and save in local directory from Google drive selected file in Android programmatically? I am using Google Drive API in my application, I am able to pick(.doc/docx/.pdf in my case) file from google drive, till now everything is fine. But I want to download the selected file and need to send that file ...
https://stackoverflow.com/questions/43169487/how-to-download-and-save-in-local-directory-from-google-drive-selected-file-in-a
android, google-drive-android-api, android-googleapiclient
1,491,143,412
se_60730596
stackoverflow
MOBILE_DEVELOPMENT
How to import a jar file into flutter android plugin and use it in Android Studio v3.6.1?
How to import a jar file into flutter android plugin and use it in Android Studio v3.6.1? I imported a JAR file by creating a libs folder in my project roots -> copy and pasted the JAR file into the libs folder -> right click on the JAR file and click Add As Library. How do I use the imported JAR in my code? The JAR f...
https://stackoverflow.com/questions/60730596/how-to-import-a-jar-file-into-flutter-android-plugin-and-use-it-in-android-studi
java, android, android-studio, flutter
1,584,481,131
se_55822258
stackoverflow
MOBILE_DEVELOPMENT
Make background image in splash screen center crop
Make background image in splash screen center crop I used a image as a picture for my slash screen. <style name="AppTheme.Launcher"> <item name="android:windowBackground">@drawable/splash_screen</item> </style> However, in some different devices, it has been stretched and distorted. Is there a way to make ...
https://stackoverflow.com/questions/55822258/make-background-image-in-splash-screen-center-crop
android, android-xml, android-theme
1,556,078,701
se_60996115
stackoverflow
MOBILE_DEVELOPMENT
Compiling android studio failed
Compiling android studio failed Hi so I'm trying to compile my app in android studios but it keep throwing this exception and I can't figure out what is causing it. It was working fine before today. The following is the Executing tasks: [:app:assembleDebug] in project C:\Users\anon\Desktop\Project\hago > Task :app:...
https://stackoverflow.com/questions/60996115/compiling-android-studio-failed
java, android, android-studio, gradle, kotlin
1,585,843,953
se_5404560
stackoverflow
MOBILE_DEVELOPMENT
Android XML layout files and namespace
Android XML layout files and namespace Android layouts are defined in XML with this namespace declared in the root element: xmlns:android="http://schemas.android.com/apk/res/android" Example of an element: <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" /> Why is the android p...
https://stackoverflow.com/questions/5404560/android-xml-layout-files-and-namespace
android, xml
1,300,879,823
se_16235251
stackoverflow
MOBILE_DEVELOPMENT
android.view.ViewRootImpl.performTraversals
android.view.ViewRootImpl.performTraversals I have activity with MediaPlayer. But lots of users don`t like it because of crashes with exception: java.lang.NullPointerException at android.os.Parcel.readException(Parcel.java:1333) at android.os.Parcel.readException(Parcel.java:1281) at android.view.IWindowSession$Stub$...
https://stackoverflow.com/questions/16235251/android-view-viewrootimpl-performtraversals
android, exception, media-player, surfaceview
1,366,975,427
se_38721603
stackoverflow
MOBILE_DEVELOPMENT
Cart item Count increment/decrement &amp; add to cart
Cart item Count increment/decrement &amp; add to cart Hi everyone i am using custom listview for getting data from server and show in listview.. I am able to get data and show it in listview, but I don't know to implement the click event of button inside listitem. There are two buttons to increement and decrement qty....
https://stackoverflow.com/questions/38721603/cart-item-count-increment-decrement-add-to-cart
android, listview
1,470,143,972
se_71522996
stackoverflow
MOBILE_DEVELOPMENT
Observer value cleared when using Dagger hilt
Observer value cleared when using Dagger hilt I am new to dagger hilt (DI), And I Implement dagger hilt (DI) in my project. Now I am trying to inject the ViewModel. It works fine. But in the API result, I am using mutableLivedata for updating value from the view model to view with the observer. The observer listens an...
https://stackoverflow.com/questions/71522996/observer-value-cleared-when-using-dagger-hilt
android, kotlin, dagger-2, dagger-hilt
1,647,583,122
se_79965690
stackoverflow
MOBILE_DEVELOPMENT
Flutter Referral System (2026) - Preserve referral code after Play Store/App Store install
Flutter Referral System (2026) - Preserve referral code after Play Store/App Store install I'm implementing a referral system in Flutter for both Android and iOS. Flow: User A shares a link containing a referral code (?ref=ABC123). User B clicks the link. If the app is not installed, the user is redirected to the P...
https://stackoverflow.com/questions/79965690/flutter-referral-system-2026-preserve-referral-code-after-play-store-app-sto
android, ios, flutter, deep-linking, referrer
1,782,200,587
se_78302377
stackoverflow
MOBILE_DEVELOPMENT
Where can I find the androidx.compose.foundation.samples.BasicTextFieldCustomInputTransformationSample
Where can I find the androidx.compose.foundation.samples.BasicTextFieldCustomInputTransformationSample I'm reading the document of InputTransformation and it leads me to a sample under - androidx.compose.foundation.samples.BasicTextFieldCustomInputTransformationSample This is what I see from Android Studio The thing ...
https://stackoverflow.com/questions/78302377/where-can-i-find-the-androidx-compose-foundation-samples-basictextfieldcustominp
android, android-jetpack-compose
1,712,728,933
se_67997635
stackoverflow
MOBILE_DEVELOPMENT
Different android asset pack for each product flavor
Different android asset pack for each product flavor I want different product flavors of an android app to have their own asset packs (or possibly none at all). Tried something like android { productFlavors { one { assetPacks[":pack1"] } two { assetPacks[":pack2"] } ...
https://stackoverflow.com/questions/67997635/different-android-asset-pack-for-each-product-flavor
android, android-productflavors, android-assetpacks
1,623,825,842
se_26345602
stackoverflow
MOBILE_DEVELOPMENT
Image orientation and ExifInterface
Image orientation and ExifInterface I want to get orientation of a bitmap. I use this code: ExifInterface ei = new ExifInterface(photoPath); int orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); switch(orientation) { case ExifInterface.ORIENTATION_ROTATE_90: ...
https://stackoverflow.com/questions/26345602/image-orientation-and-exifinterface
java, android, bitmap, android-exifinterface
1,413,221,390
se_54134908
stackoverflow
MOBILE_DEVELOPMENT
Sending Data in Body in retrofit kotlin
Sending Data in Body in retrofit kotlin I am using retrofit for calling the API i have to send the data in Body as we send in Java @Body but don't know how to parse the data... { "appType": "EXTERNAL", "appDetails":{ "os": "MAC_OSX", "osVersion": "1.2", "appVersion": "1.0", "deviceFamily": "MOBILE", ...
https://stackoverflow.com/questions/54134908/sending-data-in-body-in-retrofit-kotlin
android, kotlin, retrofit2
1,547,145,239
se_79642047
stackoverflow
MOBILE_DEVELOPMENT
intent ACTION_OPEN_DOCUMENT_TREE not working on real device
intent ACTION_OPEN_DOCUMENT_TREE not working on real device In my application I'm starting an intent using the ACTION_OPEN_DOCUMENT_TREE action to let the user pick a folder for file storage. The code isn't much different from Google's own advice at: https://developer.android.com/training/data-storage/shared/documents...
https://stackoverflow.com/questions/79642047/intent-action-open-document-tree-not-working-on-real-device
java, android, scoped-storage
1,748,429,326
se_6077141
stackoverflow
MOBILE_DEVELOPMENT
How to go back to previous page if back button is pressed in WebView?
How to go back to previous page if back button is pressed in WebView? I have an app in which I have a WebView where I display some websites. It works, clicking a link in the webpage goes to the next page in the website inside my app. But when I click the phone's back button, it takes me straight into my app. I want to...
https://stackoverflow.com/questions/6077141/how-to-go-back-to-previous-page-if-back-button-is-pressed-in-webview
android, android-webview
1,305,922,486
se_24374294
stackoverflow
MOBILE_DEVELOPMENT
getCipherSuite() returns SSL_NULL_WITH_NULL_NULL
getCipherSuite() returns SSL_NULL_WITH_NULL_NULL I'm trying to make an https server on Android with a programmatically generated self signed certificate. I feel like I'm pretty close but I still can't connect to the https server. When I attempt to connect to the server with openssl I get the following: openssl s_cli...
https://stackoverflow.com/questions/24374294/getciphersuite-returns-ssl-null-with-null-null
java, android, ssl, bouncycastle
1,403,553,502
se_79820953
stackoverflow
MOBILE_DEVELOPMENT
How can I prevent my Android Mathquill fields from overlapping?
How can I prevent my Android Mathquill fields from overlapping? I am creating android app that uses the Mathquill library. I have multiple math-fields which display math equations using keyboard. My problem is that math-fields overlap like in the picture below: On this picture I have two rows with number 1 and 2, red...
https://stackoverflow.com/questions/79820953/how-can-i-prevent-my-android-mathquill-fields-from-overlapping
javascript, android, mathquill
1,763,224,007
se_15801722
stackoverflow
MOBILE_DEVELOPMENT
avcodec_find_encoder(AV_CODEC_ID_H264) returns null
avcodec_find_encoder(AV_CODEC_ID_H264) returns null My Android application should encode images captured from camera preview and decode them using FFmpeg. To build a static library with x264 I used a tutorial. If I use the source code of FFmpeg from the link in the tutorial I can build it but not from git clone git://...
https://stackoverflow.com/questions/15801722/avcodec-find-encoderav-codec-id-h264-returns-null
android, ffmpeg, x264, avcodec
1,365,043,916
se_8755543
stackoverflow
MOBILE_DEVELOPMENT
Multiple apk approach for a game
Multiple apk approach for a game I'm planning to use the Multiple apk approach to my current project, since it has a big number of drawables for every density and the apk file is big right now. Are there any pitfalls in using this kind of approach? By the way, does the download statistics "sum up" on the Android Marke...
https://stackoverflow.com/questions/8755543/multiple-apk-approach-for-a-game
android, resources, apk, publishing
1,325,840,850
se_51915353
stackoverflow
MOBILE_DEVELOPMENT
React Native Maps: Markers image doesn&#39;t show using Custom Marker in react-native-maps
React Native Maps: Markers image doesn&#39;t show using Custom Marker in react-native-maps I'm using react-native-maps but I faced a problem that after a lot of googling without answer makes me ask it here. I'm trying to use Custom Marker for the marker in the map as the following picture as I searched I found o...
https://stackoverflow.com/questions/51915353/react-native-maps-markers-image-doesnt-show-using-custom-marker-in-react-nativ
android, google-maps, react-native, react-native-maps
1,534,662,467
se_49433188
stackoverflow
MOBILE_DEVELOPMENT
Okhttp. Exception java.io.IOException: unexpected end of stream on Connection
Okhttp. Exception java.io.IOException: unexpected end of stream on Connection I faced with an issue, about third of all OkHttpClient newCall(request).execute(); requests to the server fails with this exception: Exception java.io.IOException: unexpected end of stream on Connection{[REDACTED_DOMAIN_NAME]:80, proxy=DIRE...
https://stackoverflow.com/questions/49433188/okhttp-exception-java-io-ioexception-unexpected-end-of-stream-on-connection
android, okhttp, ioexception
1,521,734,268
se_61506840
stackoverflow
MOBILE_DEVELOPMENT
Edge for Android web-push npm subscribe/ returns endpoint from fcm.googleapis.com
Edge for Android web-push npm subscribe/ returns endpoint from fcm.googleapis.com I am using node.js web-push, it's worked perfectly well for Chrome, Firefox and Opera on desktop and Android for a good while ... today I've found an issue though with the new Chromium version of Microsoft Edge: On desktop, it works fine...
https://stackoverflow.com/questions/61506840/edge-for-android-web-push-npm-subscribe-returns-endpoint-from-fcm-googleapis-co
android, firebase, web-push
1,588,178,072
se_30016492
stackoverflow
MOBILE_DEVELOPMENT
Cannot find MainActivity.java in Android Studio
Cannot find MainActivity.java in Android Studio I am currently writing an Android App using Android Studio 1.2. However, I cannot find MainActivity.java file in it.
https://stackoverflow.com/questions/30016492/cannot-find-mainactivity-java-in-android-studio
java, android, android-activity
1,430,671,453
se_22289908
stackoverflow
MOBILE_DEVELOPMENT
Get data from MySQL and show it in a ListView using JSON
Get data from MySQL and show it in a ListView using JSON I'm trying to get data from my MySQL external database and display it in a ListView. To do .. I use JSONObject and JSONArray .. can not get it to show me anything .. can you tell me what I do wrong? The php file: <?php $host = ""; // host of MySQL server ...
https://stackoverflow.com/questions/22289908/get-data-from-mysql-and-show-it-in-a-listview-using-json
php, android, mysql, json, listview
1,394,409,547
se_18105634
stackoverflow
MOBILE_DEVELOPMENT
Find memory leak using Eclipse memory analyzer
Find memory leak using Eclipse memory analyzer I am working with an app which has a memory leak, after a while that user works with it. I could check that in DDMS using heap Tab by looking at Heap size and Allocated. In the application user can always take an image using device Camera, draw on the image, and save it ...
https://stackoverflow.com/questions/18105634/find-memory-leak-using-eclipse-memory-analyzer
android, memory-management, memory-leaks
1,375,884,457
se_12540347
stackoverflow
MOBILE_DEVELOPMENT
Display timer while video recording android
Display timer while video recording android I am making a video recorder and i want to have the time duration of how much time did the user have recorder the video. The time will counts upwards. in order to calculate the time, im using thread and the calculation start when the user click the start button and it will...
https://stackoverflow.com/questions/12540347/display-timer-while-video-recording-android
android, timer, video-capture
1,348,283,106
se_66162586
stackoverflow
MOBILE_DEVELOPMENT
The main difference between SharedFlow and StateFlow
The main difference between SharedFlow and StateFlow What are the differences between SharedFlow and StateFlow? And how to use these in MVI architecture? is it better to use simple Flow or these as states and events?
https://stackoverflow.com/questions/66162586/the-main-difference-between-sharedflow-and-stateflow
android, kotlin
1,613,076,465
se_79601028
stackoverflow
MOBILE_DEVELOPMENT
RN 0.74.7 can&#39;t find repo for ffmpeg-kit-react-native 6.0.2
RN 0.74.7 can&#39;t find repo for ffmpeg-kit-react-native 6.0.2 My React Native 0.74.7 (on MacOS) app has hard time to find the ffmpeg-kit-react-native repo when run-android. It constantly complains no repo found on maven. Here is the error when react-native run-android: * What went wrong: Could not determine the depe...
https://stackoverflow.com/questions/79601028/rn-0-74-7-cant-find-repo-for-ffmpeg-kit-react-native-6-0-2
android, react-native, maven, ffmpeg, android-gradle-plugin
1,746,043,607
se_79602479
stackoverflow
MOBILE_DEVELOPMENT
Android FFmpegKit-Full dependencies missing
Android FFmpegKit-Full dependencies missing I've tried to compile the app on Android and now it won't run as it can't find these files. I knew the *FFmpegKit *project was going to remove its binaries so I downloaded the package locally but I totally forgot about Android's specific files. Launching lib\main.dart on sdk...
https://stackoverflow.com/questions/79602479/android-ffmpegkit-full-dependencies-missing
android, flutter, ffmpeg, android-ffmpeg, ffmpegkit
1,746,130,357
se_72840374
stackoverflow
MOBILE_DEVELOPMENT
$ArtifactResolveException: Could not resolve all files for configuration &#39;:app:debugRuntimeClasspath&#39;
$ArtifactResolveException: Could not resolve all files for configuration &#39;:app:debugRuntimeClasspath&#39; I am trying to make a Spotify clone app in Kotlin. I have not completed it yet but while checking whether it is running or not, i encountered with this error:- Caused by: org.gradle.api.internal.artifacts.ivys...
https://stackoverflow.com/questions/72840374/artifactresolveexception-could-not-resolve-all-files-for-configuration-appd
android, kotlin, gradle, mvvm, build.gradle
1,656,776,621
se_2607020
stackoverflow
MOBILE_DEVELOPMENT
Constructing a POST request with MultipartEntity
Constructing a POST request with MultipartEntity I'd like to construct a multipart request, with the following parameters: name (string), email (string), and fileupload (file). I'm using the Java code below (working in Android). The httppost.getRequestLine() prints POST http://www.myurl.com/upload HTTP/1.1 So ev...
https://stackoverflow.com/questions/2607020/constructing-a-post-request-with-multipartentity
android, django, file-upload, httpclient, multipart
1,270,813,011
se_37824460
stackoverflow
MOBILE_DEVELOPMENT
How to add imageview to fragment?
How to add imageview to fragment? There are tons of questions like this, but they all address adding a view in onCreateView() before returning the root layout. I want to add a view in the middle of code execution, in onClick() Note this is a fragment, which is why I can't update the UI without onCreateView(): publ...
https://stackoverflow.com/questions/37824460/how-to-add-imageview-to-fragment
android, android-layout, android-fragments
1,465,952,102
se_31667613
stackoverflow
MOBILE_DEVELOPMENT
Can I get dialog from Activity.?
Can I get dialog from Activity.? I have a function activity as a parameter. I'm trying return a dialog shown on this activity,can I do this or not.? private Dialog getDialogFromActivity(Activity activity){ Dialog dialog = null; //code get dialog from activity here return dialog; }
https://stackoverflow.com/questions/31667613/can-i-get-dialog-from-activity
android, android-activity, android-alertdialog
1,438,059,224
se_9007654
stackoverflow
MOBILE_DEVELOPMENT
Google TV - is designing for efficiency as important as it is with handsets/tablets?
Google TV - is designing for efficiency as important as it is with handsets/tablets? First of all, I am not asking "is it OK if I totally forget about efficiency when writing an application for a Google TV". I would never do that! :) But I'm still curious: what are the differences between developing something for a G...
https://stackoverflow.com/questions/9007654/google-tv-is-designing-for-efficiency-as-important-as-it-is-with-handsets-tabl
java, android, google-tv
1,327,514,264
se_79944311
stackoverflow
MOBILE_DEVELOPMENT
correct way to replace super.onBackPressed() on Android 13+ when using registerOnBackInvokedCallback?
correct way to replace super.onBackPressed() on Android 13+ when using registerOnBackInvokedCallback? What is the correct way to replace super.onBackPressed() on Android 13+ when using registerOnBackInvokedCallback? I'm updating my Activity to support Android 13+, where onBackPressed() is deprecated. Previously I had:...
https://stackoverflow.com/questions/79944311/correct-way-to-replace-super-onbackpressed-on-android-13-when-using-registero
android, kotlin
1,779,312,858
se_79964713
stackoverflow
MOBILE_DEVELOPMENT
Android .Net Maui Button not responding
Android .Net Maui Button not responding I just created a new .Net Maui App - selected my Android Emulator and hit Run. the button does not fire the CLICKED method. If I run the same code for the Windows Emulator - it works just fine. I did not make any changes to the provide code: MainPage.XML <?xml version="1.0" enc...
https://stackoverflow.com/questions/79964713/android-net-maui-button-not-responding
android, button, maui
1,782,015,259
se_68272004
stackoverflow
MOBILE_DEVELOPMENT
Android Studio, Manifest merger failed with multiple errors
Android Studio, Manifest merger failed with multiple errors when I debug my project, there is an error "Manifest merger failed with multiple errors, see logs" Execution failed for task ':app:processDebugMainManifest'. Error: Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from ...
https://stackoverflow.com/questions/68272004/android-studio-manifest-merger-failed-with-multiple-errors
android, android-studio
1,625,580,094
se_79963487
stackoverflow
MOBILE_DEVELOPMENT
Looking for original unarchived Android SDK pre-release versions (m3-rc37, m5-rc15, 1.5_pre, etc.)
Looking for original unarchived Android SDK pre-release versions (m3-rc37, m5-rc15, 1.5_pre, etc.) Back in 2008-2009, Google released several early Android SDK builds that were listed on developer.android.com/sdk/older_releases. That page is long gone, and so are the files. I've spent a significant amount of time sear...
https://stackoverflow.com/questions/79963487/looking-for-original-unarchived-android-sdk-pre-release-versions-m3-rc37-m5-rc
android, archive
1,781,952,200
se_26154036
stackoverflow
MOBILE_DEVELOPMENT
Genymotion apps crash/freeze
Genymotion apps crash/freeze whenever i open any app using genymotion ( facebook, clash of clans, and google search ) they just close right away or sometimes i just get black screen and it freezes until i close the app down. I tried using genymotion 2.2.2 and 1.3.1 with VM 4.2 and i also tried 4.3, i also tried using...
https://stackoverflow.com/questions/26154036/genymotion-apps-crash-freeze
android, genymotion
1,412,219,999
se_31427416
stackoverflow
MOBILE_DEVELOPMENT
Draw RenderTexture on screen in Unity3D
Draw RenderTexture on screen in Unity3D please, what wrong is there? It is fine in editor, but on Galaxy S6 I have only black screen. RenderTexture texture; void Start () { texture = new RenderTexture (800, 480, 24); RenderTexture.active = texture; } void Update () { } void OnPreRender(){ Camera.main.t...
https://stackoverflow.com/questions/31427416/draw-rendertexture-on-screen-in-unity3d
c#, android, unity-game-engine
1,436,954,800
se_56650565
stackoverflow
MOBILE_DEVELOPMENT
How to get response status in Retrofit (Kotlin)?
How to get response status in Retrofit (Kotlin)? I am using Retrofit. Using Kotlin. I need to know the resonse status code. Like is it 200 or 500. How can I get it from the response ? My Api class: interface Api { @POST("user/code/check") fun checkSmsCode(@Body body: CheckCodeBody): Single<Response<Void>> ...
https://stackoverflow.com/questions/56650565/how-to-get-response-status-in-retrofit-kotlin
android, kotlin, retrofit
1,560,865,264
se_72181195
stackoverflow
MOBILE_DEVELOPMENT
Axios showing Error:&quot; Err_Bad_Request&quot; while sending formdata using React native Expo
Axios showing Error:&quot; Err_Bad_Request&quot; while sending formdata using React native Expo I'm attempting to send both image data (in Buffer format) and some text using formData from my Expo React Native application to a Node.js server with MongoDB. Strangely, I'm encountering an issue where my code works perfect...
https://stackoverflow.com/questions/72181195/axios-showing-error-err-bad-request-while-sending-formdata-using-react-native
android, react-native, axios, expo
1,652,160,957
se_11732406
stackoverflow
MOBILE_DEVELOPMENT
Create a cache for android application
Create a cache for android application I am developing an android application which aim is to send some datas to the server. However, sometimes there may not have wifi connection, so I would like to ask if it is possible to create a cache to store multiple sets of data, say maybe 3 sets, and then the app will send tho...
https://stackoverflow.com/questions/11732406/create-a-cache-for-android-application
android, caching
1,343,702,833
se_33644463
stackoverflow
MOBILE_DEVELOPMENT
How to solve this adb grant permission error
How to solve this adb grant permission error I want to grant android.permission.CHANGE_CONFIGURATION to my apk file. adb command i used: adb shell pm grant myPackageName android.permission.CHANGE_CONFIGURATION but there is always the same error again and again: Operation not allowed: java.lang.SecurityExc...
https://stackoverflow.com/questions/33644463/how-to-solve-this-adb-grant-permission-error
android, permissions, adb
1,447,217,425
se_69961455
stackoverflow
MOBILE_DEVELOPMENT
Is there anyway to get .mp4 and .png url of pinterest pins?
Is there anyway to get .mp4 and .png url of pinterest pins? Im going to make an pinterest downloader app with android studio. Does anyone know how to get url of pins ?
https://stackoverflow.com/questions/69961455/is-there-anyway-to-get-mp4-and-png-url-of-pinterest-pins
java, android
1,636,878,726
se_25657815
stackoverflow
MOBILE_DEVELOPMENT
Android Turn on flashlight programmatically button
Android Turn on flashlight programmatically button I am working on an app in which I need to be able to turn on the Torch Light of an Android Phone by button press. I have written some code. However upon button press the light does not turn on. Below is the relevant code. Please note, this is being done within a fragm...
https://stackoverflow.com/questions/25657815/android-turn-on-flashlight-programmatically-button
android, android-fragments, android-camera, flashlight
1,409,808,107
se_72011177
stackoverflow
MOBILE_DEVELOPMENT
WorkManager is not initialized properly
WorkManager is not initialized properly I am using work manager in my application and with the latest library implementation 'androidx.work:work-runtime:2.7.1' In the manifest <provider android:name="androidx.startup.InitializationProvider" android:authorities="${applicationId}.androidx-startup" ...
https://stackoverflow.com/questions/72011177/workmanager-is-not-initialized-properly
android, android-workmanager
1,650,963,736
se_60014273
stackoverflow
MOBILE_DEVELOPMENT
Couldn&#39;t find meta-data for provider with authority com.scanlibrary.provider
Couldn&#39;t find meta-data for provider with authority com.scanlibrary.provider I have imported the scanlibrary module in my app. This module has its own Manifest file with FileProvider. This is the directory structure: Below is my code to open the camera, and the Manifest files. scanlibrary code to open camera ...
https://stackoverflow.com/questions/60014273/couldnt-find-meta-data-for-provider-with-authority-com-scanlibrary-provider
android, android-camera, android-manifest, android-fileprovider
1,580,534,747
se_35779372
stackoverflow
MOBILE_DEVELOPMENT
window.onbeforeunload doesn&#39;t trigger on Android Chrome [alt. solution?]
window.onbeforeunload doesn&#39;t trigger on Android Chrome [alt. solution?] I have developed a simple chat application where I am using the $window.onbeforeunload to notify other users when somebody closes the tab/browser (basically when the user leaves the room). Here is my code $scope.onExit = function() { ...
https://stackoverflow.com/questions/35779372/window-onbeforeunload-doesnt-trigger-on-android-chrome-alt-solution
javascript, android, angularjs, google-chrome
1,457,027,328
se_41071542
stackoverflow
MOBILE_DEVELOPMENT
Android ADB : How to start server ( port 5555 ) without connecting device through USB
Android ADB : How to start server ( port 5555 ) without connecting device through USB Though my ADB over wifi works well, except one small issue, that first time I will have to connect my phone with usb to open port on my mobile adb start-server 5555. Is it possible to complete this step without USB ? Do we any option...
https://stackoverflow.com/questions/41071542/android-adb-how-to-start-server-port-5555-without-connecting-device-throug
android, adb
1,481,336,719
se_6117341
stackoverflow
MOBILE_DEVELOPMENT
Why should I implement onDestroy() if it is not guaranteed to be called?
Why should I implement onDestroy() if it is not guaranteed to be called? According to the Android Activity lifecycle, the only callback guaranteed to be called (if an activity ever leaves the Running state, which is typically expected) is onPause(). So, I must assume that there are scenarios in which it makes sense to...
https://stackoverflow.com/questions/6117341/why-should-i-implement-ondestroy-if-it-is-not-guaranteed-to-be-called
android, android-activity, activity-lifecycle
1,306,273,747
se_79963276
stackoverflow
MOBILE_DEVELOPMENT
FLAG_SECURE not working on Google Pixel devices
FLAG_SECURE not working on Google Pixel devices I am developing an Android application using the View/XML approach and need to prevent screenshots and screen recordings. To achieve this, I have enabled FLAG_SECURE using: window?.addFlags(WindowManager.LayoutParams.FLAG_SECURE) window?.setFlags( WindowManager.Layo...
https://stackoverflow.com/questions/79963276/flag-secure-not-working-on-google-pixel-devices
android, debug-symbols
1,781,885,137
se_45795420
stackoverflow
MOBILE_DEVELOPMENT
E/ExoPlayerImplInternal: Source error com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404
E/ExoPlayerImplInternal: Source error com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404 I am trying the play the video by the exo Player, but it gives me this error:- E/ExoPlayerImplInternal: Source error. ...
https://stackoverflow.com/questions/45795420/e-exoplayerimplinternal-source-error-com-google-android-exoplayer2-upstream-htt
java, android, json, retrofit, exoplayer
1,503,313,199
se_35999407
stackoverflow
MOBILE_DEVELOPMENT
Android open PDF from URI starting content
Android open PDF from URI starting content I am trying to open up PDF using intent that takes the following: Here is the code that I have: Intent intent = new Intent(Intent.ActionVIEW) intent.setDataAndType(Uri.parse("CONTENTURI + FILENAME","application/pdf" try { startActivity(intent)} catch excpetion an...
https://stackoverflow.com/questions/35999407/android-open-pdf-from-uri-starting-content
android, pdf, mime-types
1,457,994,924
se_33927617
stackoverflow
MOBILE_DEVELOPMENT
Android: loading WebView output into App Widget
Android: loading WebView output into App Widget Whilst I appreciate that an App Widget does not support a WebView directly, is it at all possible to use an ImageView (which is supported), and a technique like described here to generate the image for the ImageView? The WebView wouldn't be used directly, but only used ...
https://stackoverflow.com/questions/33927617/android-loading-webview-output-into-app-widget
android, webview, imageview, android-appwidget, appwidgetprovider
1,448,490,916
se_34238416
stackoverflow
MOBILE_DEVELOPMENT
How to add ActionBar to Activity in Android
How to add ActionBar to Activity in Android I am trying to add ActionBar to my android activity, but app automatically closes due to some code error. So what is the proper code to display ActionBar in the Activity? I tried this code in onCreate method but its not working ActionBar actionBar; protected void onCreate(...
https://stackoverflow.com/questions/34238416/how-to-add-actionbar-to-activity-in-android
android, android-activity, android-actionbar
1,449,913,387
se_79945227
stackoverflow
MOBILE_DEVELOPMENT
Disable exit transition for a single navigation action in Navigation Compose
Disable exit transition for a single navigation action in Navigation Compose PROBLEM DESCRIPTION I’m trying to add a force update screen to my app that imitates a bottom sheet. The force update flow has a separate NavGraphBuilder, so I show it like this: LaunchedEffect(uiState.isNewUpdateRequired, uiState.showState) {...
https://stackoverflow.com/questions/79945227/disable-exit-transition-for-a-single-navigation-action-in-navigation-compose
android, kotlin, android-jetpack-compose, android-jetpack-navigation
1,779,456,800
se_79962744
stackoverflow
MOBILE_DEVELOPMENT
Android APK doesn&#39;t work after rezipping and signing with no other changes
Android APK doesn&#39;t work after rezipping and signing with no other changes I have an Android apk that I would like to modify at the byte level. However, even with no changes other than unzipping, rezipping, zip aligning and resigning it no longer works correctly (it starts but the opening splash screen never opens...
https://stackoverflow.com/questions/79962744/android-apk-doesnt-work-after-rezipping-and-signing-with-no-other-changes
android, apk, 7zip, apktool
1,781,798,102