• Breaking News

    Wednesday, August 19, 2020

    Android Dev - Android 11 is taking away the camera picker, forcing people to only use the built-in camera

    Android Dev - Android 11 is taking away the camera picker, forcing people to only use the built-in camera


    Android 11 is taking away the camera picker, forcing people to only use the built-in camera

    Posted: 18 Aug 2020 11:08 PM PDT

    submitted by /u/AD-LB
    [link] [comments]

    Handling strings (placeholders) - Phrase (square lib) still recommended?

    Posted: 19 Aug 2020 01:50 AM PDT

    Hi everyone,

    we stumbled across a problem with string placeholders and translations.we wanted to have a string like "15min 30sec"so we'd define <string name="duration">%1$smin %2$ssec</string>

    our translation tool is not capable of properly identifying placeholders if the do not have a trailing whitespace and are followed by an alphabetical character. so i found https://developer.android.com/guide/topics/resources/localization#mark-message-parts
    maybe it's interesting to some of you which are dealing with a similar problem.

    next to that documentation i found that there's a more convenient way of handling placeholders with the lib by square: https://github.com/square/phrase
    you can define strings like: <string name="duration">{minutes}min {seconds}sec</string>
    and the bind the named params in code. also i placeholders are much easier to digest for external people (translators)

    as it's not heavily maintained I wanted to ask if sbdy is (still) using it.

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

    Activities are not what you think

    Posted: 18 Aug 2020 05:46 PM PDT

    StrandHogg prevention

    Posted: 19 Aug 2020 07:33 AM PDT

    Hello, I was told that my application is vulnerable to StrandHogg (Task Injection). This means that if user installed a malicious apk, the action of opening my app can be hijacked by it and for example trick the user into entering login credentials into the malicious app.

    There appears to be no patch or guidelines from Google, so I tested out whether setting launchmode="SingleTask" or taskaffinity ="" in manifest would solve the issue. It seems like setting taskaffinity ="" is a bettter option as launchmode can introduce crashes and mixup of app icons when multitasking while the malicious app is present.

    I have looked at other popular applications and a lot of them do not have taskaffinity ="" or launchmode="SingleTask and those that do, always place it in <activity> tag. Article about this at https://promon.co/security-news/strandhogg/ recommends placing taskaffinity ="" in application tag, but they say that it mitigates the risk only to some extend.

    I wanted to ask whether taskaffinity ="" should be set in <application > or in <activity> tags and what could be the downsides of doing so? I find it a bit weird that people are not talking about this more, or am I mistaken about this vulnerability?

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

    Is RealmRecyclerViewAdapter considered usable in terms of clean code/ separation of concerns?

    Posted: 19 Aug 2020 04:31 AM PDT

    Hi,

    I'm creating app in which I use Realm as my (currently) only data source. I was wondering if using RealmRVAdapter is good practice for displaying list of objects. I'm concerned about it preventing me from closing realm instance after performing query because of RealmChangeListeners used in RealmRV.

    So here few questions:

    Does anyone use RealmRV in apps with MVVM and Repository pattern? If so how do you manage your Realm instance? Is keeping Realm open is considered good/passable option? Or should I ditch RealmRV and handle updates in RecyclerView on my own?

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

    Game Translation Fails — How to Avoid Them ?

    Posted: 19 Aug 2020 06:25 AM PDT

    I have a folder full of .jar files along with a sub folder full of .so files. I need to add them all to my Android project. How?

    Posted: 19 Aug 2020 07:36 AM PDT

    How to build a food delivery app: top features included

    Posted: 19 Aug 2020 07:18 AM PDT

    `pagingDataAdapterOf` builder function for `PagingDataAdapter` in Kiel 1.2.0

    Posted: 19 Aug 2020 03:03 AM PDT

    Hi Android Fellas,

    pagingDataAdapterOf builder function for PagingDataAdapter,which is alpha now, has been introduced in the version 1.2.0 of kiel.

    github: https://github.com/ibrahimyilmaz/kiel

    Example usage: ```kt private val adapter = pagingDataAdapterOf<EntityListItem> { diff( areItemsTheSame = { old, new -> old.entityData.id == new.entityData.id }, areContentsTheSame = { old, new -> old == new } ) register( layoutResource = R.layout.item_entity, viewHolder = ::EntityListItemViewHolder, onBindBindViewHolder = { viewHolder, _, item -> viewHolder.itemView.setOnClickListener { viewModel.select(item) } viewHolder.binding.entityTitleTextView.text = item.title

     viewHolder.binding.entityRemoveRelationAction.isVisible = item.isRemoveAvailable if (item.isRemoveAvailable) { viewHolder.binding.entityRemoveRelationAction.setOnClickListener { viewModel.removeRelation(item) } } } ) } 

    ```

    Any feedback, idea or PR is always welcome

    Sincerely Ibra

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

    Firebase - could you please help me which modules to use for my use cases?

    Posted: 19 Aug 2020 01:21 AM PDT

    I am starting to explore firebase, but it seems very robust, complex system with many modules and I dont even know where to start.

    Could you please point me in the right direction? What firebase modules do I need for these use cases:

    • once in few weeks I need to send an important message to user's devices (for example about a launched discount, or about some critical update) I want to have a full control over message style (sometimes I want to show just a Toast, for more importane messages simple dialog and in very urgent cases status bar notification) - should I use firebase in-app messaging, or...?

    • my app has highly customizable look, so i would like to periodically sync user settings, so app always look same on all devices - should I use firebase remote config?

    • I would like to make some simple polls with A/B/C options once in a while (ask users what features should I add, or other feedback) - no idea about this...what module to use?

    Then of course I wanna use analytics and crashlytics, but thats easy to figure out.

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

    Android Activity Life Cycle - Some important scenarios!

    Posted: 18 Aug 2020 10:36 PM PDT

    What Role Does Mobile App Development Company Play in Boosting The Start-Ups?

    Posted: 19 Aug 2020 01:43 AM PDT

    Boil: Boilerplate codes via CLI

    Posted: 18 Aug 2020 07:30 PM PDT

    As a new developer what should I learn? Would be great if you could say why.

    Posted: 19 Aug 2020 01:33 AM PDT

    Want to learn how to style and develop maps? Devisode 6 is live discussing the Map Styler.

    Posted: 18 Aug 2020 10:33 AM PDT

    How many inconsistencies can you find?

    Posted: 18 Aug 2020 11:27 PM PDT

    No comments:

    Post a Comment