• Breaking News

    Saturday, October 9, 2021

    Android Dev - How can I create such images with code? Is there an automated tool for this?

    Android Dev - How can I create such images with code? Is there an automated tool for this?


    How can I create such images with code? Is there an automated tool for this?

    Posted: 08 Oct 2021 11:45 PM PDT

    Even Google still knows Google Play App Signing is wrong

    Posted: 08 Oct 2021 10:47 PM PDT

    I just want to point out that Google's official documentation of app signing located at https://source.android.com/security/apksigning still says:

    Every application that is run on the Android platform must be signed by the developer...application signing bridges the trust Google has with the developer and the trust the developer has with their application. Developers know their application is provided, unmodified, to the Android device.

    Of course, this hasn't been true for months now. Developers cannot know that apps are "provided, unmodified, to the Android device" because of the requirement to use Google Play App Signing instead of performing your own signing.

    The official documentation was supposedly last updated only a few days ago.

    submitted by /u/j--__
    [link] [comments]

    LiveData is superior to StateFlow for UI and ViewModel layer.

    Posted: 08 Oct 2021 01:38 PM PDT

    Introducing Compass: Effective Paging with Realm and Jetpack Paging 3

    Posted: 09 Oct 2021 04:12 AM PDT

    Bugs in Scoped Storage?

    Posted: 09 Oct 2021 01:32 AM PDT

    So Scoped Storage enforcement is coming up and I have been testing saving media files to their required locations using MediaStore, I am getting crashes on Android 6/Api 23 when saving video, the same code works on all higher versions, also it only seems to be a video issue I can save images just fine on all Android versions.

    Haven't looked at the other options yet I just need to save media so it can be read by other applications e.g like Insta image selector, I don't even need to read it after saving.

    Also will requestLegacyExternalStorage still work for older phones when App is targeting 11? Maybe I can have two code paths?

    I have also been looking at the Android issue tracker and it seems there are a lot of issues and also manufacturer specific issues market as closed without a fix, what the hell is going to happen in November?

    This is the error in case anyone is interested.

    java.io.FileNotFoundException: No such file or directory at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:144) at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:621) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:960) at android.content.ContentResolver.openOutputStream(ContentResolver.java:702) at com.samples.storage.mediastore.AddMediaViewModel$saveVideoFromInternet$1$1.invokeSuspend(AddMediaViewModel.kt:79) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) 
    submitted by /u/makonde
    [link] [comments]

    How to install and try One UI 4.0 (Android 12) beta on your Samsung Galaxy device

    Posted: 09 Oct 2021 08:19 AM PDT

    Running two A/B experiments at once (with 2 variables each), or one A/B experiment with 4 variables?

    Posted: 09 Oct 2021 06:44 AM PDT

    Would there be any statistical difference between the following:

    Experiment 1:
    Baseline
    Remote config A changed

    Experiment 2:
    Baseline
    Remote config B changed

    or

    Experiment 1
    Baseline
    Remote config A changed
    Remote config B changed
    Remote config A changed + Remote config B changed

    Both remote config A and B have a very different effect on the app and user experience, so they are not connected.

    submitted by /u/whatappdev
    [link] [comments]

    How to build app like Samsung game launcher?

    Posted: 09 Oct 2021 05:46 AM PDT

    When you download any game in Samsung phone, it doesn't stay on home screen. Instead, it can only be accessible from inside the game launcher. Is there any way to restrict other apps so that they can only be used after opening your app?

    submitted by /u/sarmadsohaib
    [link] [comments]

    Android Rust Introduction – AOSP

    Posted: 08 Oct 2021 04:00 PM PDT

    So, are mobile apps really dead in your opinion?

    Posted: 08 Oct 2021 11:35 PM PDT

    If you search the title in the google, the last wave became viral when ClubHouse was so popular (I don't know if it still is) and everybody saying "Apps are dead, what is the next step?" and I don't if anybody even payed attention to it, but the thing is this wave happens each couple of years, I like to see your opinions.

    submitted by /u/LOE_TheG
    [link] [comments]

    Mobile Developers Cafe - Weekly Issue #31 is out with curated Android developer news, events, articles, etc. Subscribe now for free.

    Posted: 08 Oct 2021 11:21 PM PDT

    Side effects being triggered when popped from backstack in jetpack compose

    Posted: 08 Oct 2021 11:11 PM PDT

    I am slowly integrating jetpack compose in one of my apps. I have a fragment that uses ComposeView to create the compose UI. override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { return ComposeView(requireContext()).apply { setContent { MdcTheme { Layout() } } } } I need to call the ViewModel initially to start the content fetching. After a bit of research I found LaunchedEffect and tried to use it like this to initially load the data from the VM. Layout() { LaunchedEffect(key1 = this) { vm.fetchData() } // some layouts } The key1 is the fragment itself. But the problem I am having is, the effect is being triggered when I navigate away from this fragment and then press the back button to navigate to this fragment. After some research it looks like compose removes the view from the layout when I navigate away from the fragment and then reinitializes the view when I navigate back. I have fixed this issue by moving the content fetching in the ViewModel's constructor. Does anyone know how to trigger LaunchedEffect only once and not when the view is restored from the backstack? I can use some boolean state for that but still I was wandering if there is something in compose for this situation.

    submitted by /u/susonthapa
    [link] [comments]

    Is using JetpackCompose Column/Row still have the same problem as LinearLayout?

    Posted: 08 Oct 2021 10:35 PM PDT

    Starting 2017, Google introduce ConstraintLayout, since then they have advocated using constraintLayout due to better performance as stated https://android-developers.googleblog.com/2017/08/understanding-performance-benefits-of.html

    Now with Jetpack Compose, we have Column and Row. ConstraintLayout (of Jetpack Compose) is still in RC mode (at the time of writing).

    My question is,
    - when we use Column/Row, do we still have the problem as one using LinearLayout, hence it is better to use JetpackCompose ConstraintLayout, or
    - Column/Row of Jetpack Compose doesn't have the performance challenge posted by LinearLayout. So it's okay to use Column/Row?

    Note: Given In here https://developer.android.com/topic/performance/rendering/overdraw, it also mentioned "Overdraw is no longer as significant a problem as it was"

    submitted by /u/ElyeProj
    [link] [comments]

    Is Android dev a good career? Does it have a future? How is the pay?

    Posted: 08 Oct 2021 06:20 PM PDT

    Video as camera input in android emulator

    Posted: 08 Oct 2021 05:30 PM PDT

    Hello dear androiddev community! For a while now ive been searching for a good solution on how to use a video as a camera input in android emulator. I tried many virtual camera softwares and many emulators. Im not asking for help because it is not allowed in this subreddit, but i would be really thankful for a solution. I think im not the only one here facing this problem. Ive seen that many emulators do not support virtual camera inputs, did something change in that field?

    submitted by /u/drippinndrippin
    [link] [comments]

    JetpackCompose: Should we just use Column/Row and have overdrawn or create custom layout?

    Posted: 08 Oct 2021 07:58 PM PDT

    To design some layout in Jetpack compose, we can use Column/Row, or we can make a custom layout. (Of course, we can use Constraint Layout which is in RC).

    But we know, if we use Column/Row (like LinearLayout), most likely we'll have overdrawn area. https://medium.com/wenable/overdraw-in-android-b3ecaaa620b5

    My question is, should allow overdrawn (which uses GPU I think) or have a complex placement algorithm to avoid overdrawn (which uses CPU I think). Which is better to sacrifice?

    submitted by /u/ElyeProj
    [link] [comments]

    Setting up your windows PC for react-native android dev 2021

    Posted: 08 Oct 2021 07:29 PM PDT

    Ways to notify the user

    Posted: 08 Oct 2021 11:20 AM PDT

    I am developing a mobile app in which users can register without using their email. I want to know how can we notify the users to send a message such as modified terms of use, etc.

    submitted by /u/Professional-Deal406
    [link] [comments]

    Best admob mediation without sdk integration?

    Posted: 08 Oct 2021 10:45 AM PDT

    I know I read admob is not the best for mediation but I have everything through it, so is there any mediation groups worth pursuing that do not require sdk integration in the app. I might do it for facebook ad network.

    submitted by /u/McMasterShake
    [link] [comments]

    No comments:

    Post a Comment