• Breaking News

    Monday, August 23, 2021

    Android Dev - Weekly Who's Hiring Thread - August 23, 2021

    Android Dev - Weekly Who's Hiring Thread - August 23, 2021


    Weekly Who's Hiring Thread - August 23, 2021

    Posted: 23 Aug 2021 06:00 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    End result: Nice try

    Posted: 23 Aug 2021 04:47 AM PDT

    Android Studio Arctic Fox aggressively caches builds

    Posted: 23 Aug 2021 12:09 AM PDT

    Hey guys, I don't know if anyone else have stumbled upon this issue, but the latest AS really aggressively caches builds. Sometimes small code changes (like single line change) are not reflected in the next build and this quite pisses me off, because I am not sure whether I need to do clean build each time I do recompile the code. Sometimes it works fine, but more often than not - previous build is being outputted and I am not sure what to do.

    This applies to Kotlin code changes as well as XML drawables changes (in this case at least IDE reports, that I should clean build myself 😐).

    Because of this I did push update to my app (which was working fine when testing changes).. and it did not actually work as intended which is the last scenario you want to be in.

    Does anybody else has this issue? My version is 3.1 Patch 1, Mac OS.

    submitted by /u/biomatic-1992
    [link] [comments]

    Inputs validation in Jetpack Compose

    Posted: 22 Aug 2021 09:55 AM PDT

    Does glide support Cache-Control and Content-Encoding headers ?

    Posted: 23 Aug 2021 07:22 AM PDT

    Hi ,

    My current cdn server returns image data without cache header keys. But some cdn servers return these keys and values at header response. Does it affect Glide caching behavior if cdn server sends these parameters at response header with image ? I have not found any resource in Glide documentation yet.

    Cache-Control: max-age=7776000
    Content-Encoding: gzip

    Glide version :

    4.10.0

    My cdn server headers at response,

    Response Header

    Connection: keep-alive
    Content-Type: image/jpeg
    Date: Mon, 23 Aug 2021 12:32:35 GMT
    Server: MNCDN-5137
    Strict-Transport-Security: max-age=15768000
    Transfer-Encoding: chunked
    Vary: Accept-Encoding; Accept-Encoding
    X-Android-Received-Millis: 1629721953925
    X-Android-Response-Source: NETWORK 200
    X-Android-Selected-Protocol: http/1.1
    X-Android-Sent-Millis: 1629721953685
    X-Cache-Status: Edge : HIT,
    x-edge-location: TR-833
    X-MNRequest-Id: 989b9bea0c258110ee42155e357c7b0c
    X-MServer: 4203

    Another cdn server headers at response,

    HTTP/1.1 200 OK
    Date: Mon, 23 Aug 2021 11:52:17 GMT
    Content-Type: image/png
    Transfer-Encoding: chunked
    Connection: keep-alive
    Vary: Accept-Encoding
    last-modified: Mon, 26 Jul 2021 11:52:23 GMT
    x-amz-request-id: tx00000000000005a53e0c2-0060fea213-1198de2d-default
    strict-transport-security: max-age=3153600; includeSubDomains
    x-xss-protection: 1; mode=block
    x-content-type-options: nosniff
    vary: Accept-Encoding,Origin
    x-srv-ip: 10.250.134.202
    X-MServer: 4213
    Expires: Sun, 21 Nov 2021 11:52:17 GMT
    Cache-Control: max-age=7776000
    Content-Encoding: gzip
    Server: MNCDN-5132
    x-edge-location: TR-833
    X-MNRequest-Id: 5762adb7acaf8a5d44aedef640c42568
    Access-Control-Allow-Origin: *
    X-Cache-Status: Edge : HIT,

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

    How to get an app developed

    Posted: 23 Aug 2021 06:58 AM PDT

    Hi I have an idea for a tool I would like made into an app, just for personal use. Basically a tool for keeping track of vegetable prices at different market vendors so I can compare etc

    Is there a marketplace for getting simple apps made, is it expensive, can I do it myself with no coding knowledge etc?

    Thanks for any advice.

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

    drivers license

    Posted: 23 Aug 2021 06:43 AM PDT

    I’m trying to choose android app development course

    Posted: 23 Aug 2021 02:09 AM PDT

    Hii,

    I'm trying to choose android app development course. I googled it of course but not sure if those rankings stuffs are 100% trustful. I don't mind paying little bit, but I want to learn as quick as possible. I also took introduction course for C language in my 1st year Uni so I guess I'm not a complete beginner. Can anyone help what online App Dev course works best for me?

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

    Google Drive integration fails in Release build

    Posted: 23 Aug 2021 05:45 AM PDT

    I have an app on the play store for the last year or so. I have now added a Backup Restore functionality for which I am asking user to Google sign in and then provide access to his Google Drive. The Google Drive integration works well in the debug mode but the release build consistently fails the Drive integration.

    -I have provided debug and release keys in Google Cloud Console and also in the Firebase project since I am using a number of firebase products

    - I have the updated the google-services.json file and it at kept at the correct location

    - Also crossed checked the release keys on the Google Play Console

    Any guidance will be highly appreciated as I am now at my wits end and struggling for the last 3 days.

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

    Is this proper Android MVVM design?

    Posted: 22 Aug 2021 07:08 PM PDT

    I'm a beginner with Android development, and I'm trying to make a practice app using MVVM. It's my first experience with this architecture, so I'm pretty unsure of everything that I do so far.

    I'm trying to programmatically set the CollapsingToolBar's scroll flags. When the RecyclerView's list is empty, I'd like to disable the scrolling effect. When it has items, I reenable it.

    In my ViewModel, I have:

    @HiltViewModel class MealsViewModel @Inject constructor(private val mealDao : MealDao ) : ViewModel() { private val currentDay: MutableLiveData<Date> = MutableLiveData(Date()) val meals = Transformations.switchMap(currentDay) { date -> mealDao.getMeals(date).asLiveData() } val enableOrDisableScroll = meals.map { if (it.isNullOrEmpty()) AppBarLayout.LayoutParams.SCROLL_FLAG_NO_SCROLL else AppBarLayout.LayoutParams.SCROLL_FLAG_SNAP or AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL or AppBarLayout.LayoutParams.SCROLL_FLAG_EXIT_UNTIL_COLLAPSED } 

    In the Fragment,

    enableOrDisableScroll 

    is observed like so:

    viewModel.enableOrDisableScroll.observe(viewLifecycleOwner) { val params: AppBarLayout.LayoutParams = collapsingToolBar.layoutParams as AppBarLayout.LayoutParams params.scrollFlags = it collapsingToolBar.layoutParams = params } 

    Is this proper MVVM design? Is all the "business logic" properly separated from the view (Fragment)? I may be having trouble understanding the term itself. In Android programming, is business logic anything that would decide how a view is created and UI updated? Is it acceptable to have a View's class in the ViewModel to use its constants (SCROLL_FLAGs), as long as it's not a reference to a View or instantiated? How could my MVVM approach be improved? It works as intended, but I don't know if it's optimal.

    Thank you!

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

    Will android native jobs market dwindle?

    Posted: 22 Aug 2021 11:36 AM PDT

    1. Recently played around with couple of Flutter apps. Even though the experience is not as good as native. I see some future there. Will the experience improve or there is bound to be some limitations? That brings me to the second point.

    2. Why in last 20 years there have not been a successful technology where I could develop one code base for web, mac, windows, android, iOS? Ok so that's what flutter is supposed to do. But instincts tells me there is some potential issues there, otherwise this would have happened long time ago. Even flutter in its current state is no where near good enough to use for a large product that would justify a user base of hundreds of millions of users.

    3. Risks. Any risks? When Apple announced they will never support flash technology on Apple product. The whole flash kinda died. So I am wondering if flutter or any such thing gets hugely popular is there risk of Apple banning it?

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

    Creating a GitHub Action using Kotlin/JS

    Posted: 22 Aug 2021 08:02 PM PDT

    first small project Uninstaller app

    Posted: 22 Aug 2021 07:21 PM PDT

    I need help with AR library

    Posted: 22 Aug 2021 01:02 PM PDT

    Hello All,

    I have a question. Our team is developing an app that can scan wall damage and provide measurements of the damages for the admin to submit a quick quote.

    Can anyone suggest a proven library that can help with this AR requirements? We tried Galaxy.ai but they aren't providing the SDK. I couldn't find anything with Google libraries. Any suggestions?

    Thanks in advance 👍

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

    An alternative to OneSignal as push notifications service

    Posted: 22 Aug 2021 11:26 AM PDT

    Hi so i was using OneSignal before it was great and all but since the migration to FCM it don't work to me anymore i tried many things but nothing worked so i hope you guys can give me a similar service to add to my app

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

    Nested RecyclerView

    Posted: 22 Aug 2021 10:22 AM PDT

    Currently I am trying to do a design like playstore in my app using nested recyclerView

    But how to show progress bar while data is being fetched from the network ?? Edit : I want to use shimmerlayout to do that

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

    Play Billing Errors in Trusted Web Activities

    Posted: 22 Aug 2021 09:06 AM PDT

    Hey there - I'm trying to integrate Play Billing into my PWA via Trusted Web Activities. I have done exactly as their docs here: https://chromeos.dev/en/publish/pwa-play-billing

    My app has been deployed on a closed test track on the Google Play Console. I have tried debugging as hard as possible but for some reason, the paymentResponse() does not return a purchaseToken when I use it with a test card on my Android device. However, when the purchase subscription link is selected, I am prompted correctly on the client-side to subscribe using Play Billing - it just looks like no purchaseToken is being sent back. Anyone know how to fix this?

    My JS code: ``` async purchaseItem() { const paymentMethodData = [ { supportedMethods: "https://play.google.com/billing", data: { sku: "basic_subscription", }, }, ];

    const paymentDetails = { total: { label: `Total`, amount: { currency: `USD`, value: `0` }, }, }; async function validatePurchaseOnBackend(purchaseToken) { try { const res = await axios.post("/playbilling/verify", { purchaseToken: purchaseToken, }); return res; } catch (e) { throw new Error(`Failed to verify purchase token: ${e.message}`); } } try { const request = new PaymentRequest(paymentMethodData, paymentDetails); const paymentResponse = await request.show(); const { purchaseToken } = paymentResponse.details; if (validatePurchaseOnBackend(purchaseToken)) { // Tell PaymentRequest API validation was successful. // The user-agent may show a "payment successul" message to the user. await paymentResponse.complete("success"); // Let user know their purchase transaction has successfully completed and been verified // acknowledge entitlements on backend Turbolinks.visit("/playbilling/success"); } else { await paymentResponse.complete("fail"); // Let user know their purchase transaction failed to verify Turbolinks.visit("/playbilling/fail"); } } catch (e) { // purchase failed // AbortError means user cancellation console.log(e); } 

    } ```

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

    No comments:

    Post a Comment