• Breaking News

    Wednesday, February 3, 2021

    Android Dev - Facebook System Design Interview

    Android Dev - Facebook System Design Interview


    Facebook System Design Interview

    Posted: 02 Feb 2021 09:25 PM PST

    Hey, guys, how are you?

    I have Android dev interview this week at FB. This is my second time doing their interview. I have done an interview with them two years ago. Leetcode BS was fine (I will ace it this time, I am sure), but System Design is puzzling. Last time I was asked "How would you design Google Drive". Forget about server side, the interviewer said, it is only about an app. (so server-side is all working as you would like to).

    And holy-moly it was very hard for me. I know how to design stuff like instagram. I can design launcher very well (this is what I was doing last 3 years at my last company). But Google Drive! I was not sure how to trigger uploading files, how do I keep track of them. I suggested that I need to introduce some kind of service that has has names of the files inside, I suggested that it needs to be triggered every time when it is connected to wifi and the battery level should be good.

    The one post that gave me good idea what they wanted from me last time is this post https://lokeshcodes.medium.com/preparing-for-an-android-system-design-interview-84991519807a

    But I desperately need so much more of it. There is wide variety of apps and how to approach to them is tough question.

    What do you think? I wish there would be some kind of Grokking for Android devs.

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

    How do you learn the details?

    Posted: 03 Feb 2021 04:57 AM PST

    Hi,

    I would like to invite everybody to an open discussion.

    I was wondering these days while creating a custom view that software development, especially android has a lot of details, details that might slip between your fingers if you don't pay attention or you don't hit yourself and learn them in a hard way.

    The question is, how do you handle all these details, this can be about everything, ex: I learn that sometimes I need to call postponeEnterTransition when doing shared element transitions to get rid of the lag. I don't know why, but in my brain, I know it exists and I should consider using it when implementing shared elements.

    What other little scenarios happened to you?

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

    Play store - has anyone published an app that is unindexed and cannot be accessed?

    Posted: 03 Feb 2021 04:09 AM PST

    Our developer account has nearly 30 apps under it, all published fine. Recently we added 3 new ones, and although the console says they are published, they cannot be accessed by anyone outside of our work gmail accounts. The store listing from the console displays fine, there's nothing unusual about the apps - target SDK 29, min 19, free, available in all countries etc. Initially I thought it was just something that would sort itself out in 24 hours, but it's been like 10 days now (oops).

    Contacted Play but it says they will take 2 days or maybe longer to reply, just wondering if others have come across this?

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

    9 Beloved Extensions From The Android KTX

    Posted: 02 Feb 2021 02:11 PM PST

    Some useful extensions are available for us through the Android KTX project, and here are my top 9.
    https://vladsonkin.com/9-beloved-extensions-from-the-android-ktx/

    🌟 There is an article rating after the post. It's just 1 click, go on and try it out! You can even give me 1 star 😅

    BTW, do you think I missed some important extensions, or you want to share your favorite one? Then welcome to the comments section below!

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

    Goolge play keeps rejecting an opensource callblocker app with a very vague message

    Posted: 02 Feb 2021 09:22 AM PST

    Goolge play keeps rejecting an opensource callblocker app with a very vague message

    I am trying to upload my opensource call blocker app to playstore but it keeps rejecting it with the following message :

    Rejection mail

    The permissions I use are-

    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.READ_CALL_LOG" />
    <uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

    The source code for the app is available at - https://github.com/abhriyaroy/CallBlockR

    Can anyone please help me out with what I need to change for it to be accepted as the instructions seem very vague to me.

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

    How to delete usb cache?

    Posted: 03 Feb 2021 06:47 AM PST

    Since I installed new update rolled for Samsung (One UI 3.0) I cant find Apps->System apps->Usb settings. I have problem with "Moisture Detected" very often and my phone was not even near moisture or water. If anyone knows how to delete usb cache, please let me know.

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

    Oracle OpenJDK or AdoptOpenJDK?

    Posted: 03 Feb 2021 02:31 AM PST

    I just tried AS Canary and got "jlink does not exist" error with the included JDK (already reported on IssueTracker but it looks like the fix is not yet available). So I decided to just use an external JDK. Which should I use between the two?

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

    Can you render an entire app into an offscreen framebuffer (offscreen rendering)?

    Posted: 03 Feb 2021 06:12 AM PST

    Hey. I'm doing some hot dev stuff and needed to do render an entire app into an offscreen framebuffer, to be later used.

    Is this possible? I was looking at some code of some things related to this, but it's only vaguely related to this, most stuff provided is about taking the entire screen into a bitmap. Which is what I could use, but maybe it's a slow solution AND it would require the main screen to be rendered to, which is a no-no, because the precious main screen will be taken by another app, where the rendered secondary app would be. Could be solved via rendering to a virtual display, and taking pixels from that. But as I said, that may be a slow solution and performance is highly needed here.

    So the optimal solution I'm looking for, is a basic OpenGL concept of offscreen rendering (surfaceless context?). Which should be possible in Android, but I haven't found any resources to do so.

    Thanks for your help!

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

    Activities or Navigation component?

    Posted: 03 Feb 2021 03:53 AM PST

    Does using Navigation Component over multiple activities and fragments make any difference?

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

    Scrolling up after refresh with PagingDataAdapter is an impossible task

    Posted: 02 Feb 2021 02:05 PM PST

    For days I've been trying to figure out how to scroll up in my RecyclerView after PagingDataAdapter from Paging 3 has finished loading. I'm using RemoteMediator which displays cached data while the refresh is in progress. The problem is that DiffUtil will stay in position if new items were appended at the top, so you have to call scrollToPosition(0) after DiffUtil has finished diffing, but...

    -submitData on the PagingDataAdapter doesn't have a commitCallback like the submitList method of the normal ListAdapter has, which notifies you when DiffUtil has finished

    -AdapterDataObserver, which can also notify you when DiffUtil has finished diffing, can't really be used either, because you can't know which changes (if any) happened after refresh and you need to stop listening at the correct time to not get triggered by append events (because we are paginating our results)

    -you can't pass empty PagingData right before submitting the new dataset, because the LoadStateListener (which is attached to the PagingDataAdapter) doesn't necessarily notify you about the refresh being finished BEFORE you receive the new dataset, sometimes it runs afterward. And even then, DiffUtil doesn't pick up the change when you pass PagingData.empty() and then immediately the new dataset, meaning it just stays in position

    Now my hope is that anyone here as a special trick up his sleeve to simply let me start my list at the very beginning after I refreshed my dataset.

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

    How can send camera2 data to four different places : webrtc, preview, sd card and a fixed size buffer?

    Posted: 02 Feb 2021 10:49 PM PST

    I am in a situation where i have to utilize the camera2 api to generate a webrtc video. The same video needs to get stored on the sd card and a fix sized buffer and also needs to be previewed to the user. Any idea how to go about this. I am thinking of using mediacodec and byte[] buffer for saving but i m unable to make more progress. I think if I can get a videoFrame that will be common to all the outputs that should do the trick. but How do i go about doing that?

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

    Real time face recognition and save to Google drive

    Posted: 02 Feb 2021 11:50 PM PST

    Hi, I'm looking for an app that use the camera to identify people in front of the camera in real-time. The app will then store the name of said person(s) to a spreadsheet with the time and date. Are there any apps capable of doing that? Thanks! I'm not that experienced with developing on Android. If anyone knows how to do this, please let me know!

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

    Can I delete my previous app and rename my other app to the deleted one?

    Posted: 03 Feb 2021 05:43 AM PST

    Im making my first game and releasing it on google play store, but there days its very hard to to get your app noticed without a advertising budget,

    So my strategy is to release my game multiple times with different theme, so at least one will get popular,

    for example, my original game will be jump up, but the other with different themes will be called jump up ghost, jump up cowboy etc

    then if one got popular I will delete the others and then I will change its name to the original one, "jump up" and add all the levels of other version in that

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

    Cons of gradle.kts?

    Posted: 02 Feb 2021 03:35 PM PST

    Hey! I've read some articles about gradle.kts and all of them saying how it's awesome, auto-completition, support kotlin extensions etc. But I googled and didn't find any cons of kts. My small projects are on kts and everything works fine but maybe kts sucks on large-scale projects with multimodule deep architecture?

    So my question is what problems have you faced with gradle.kts? When is gradle better?

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

    Mobile Development. React Native Roadmap | Video Podcast

    Posted: 03 Feb 2021 06:24 AM PST

    toolkit for service / API virtualization ?

    Posted: 02 Feb 2021 10:30 PM PST

    hello everyone, I'm interested in a toolkit for mocking or simulating API responses. I'm familiar with VCR in Ruby: https://github.com/vcr/vcr . Anything else you all would recommend ? FOSS preferred of course. Maybe something in Kotlin perhaps ?

    Thanks !

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

    Stateflow vs livedata

    Posted: 02 Feb 2021 09:48 PM PST

    Learned a bit more about StateFlow. In the same stack frame if you set multiple states the older ones will be dropped. It's as documented and is what "conflated" means. Strange i did not observe this with livedata.

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

    Does the selected target audience affect the number of downloads on the google play store?

    Posted: 02 Feb 2021 02:49 PM PST

    For example if the target audience between 9 and 12 years its not selected, will the app still rank and appear to users that are aged between 9 and 12 years old?

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

    I made an app to help developers - App Indexer

    Posted: 02 Feb 2021 01:01 PM PST

    App Indexer

    When you upload your app to google play, you are constantly checking your index. What poistion is my app there? What poistion is my app here?
    App Idexer does it for you!
    Add an app by putting your package id, type some key searches and App Indexer will track for you, your position in google play.
    It will show you grafhs, numbers and your improvement.
    You can chose ANY country you would like! If you want to know where is your app, in Antarctica, Belgium, France and many many more, you can!

    Downloadn now: https://play.google.com/store/apps/details?id=com.dolev.appIndexer

    Open source code: https://github.com/dtkdt100/App-Indexer

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

    Pre-registration vs. open beta testing

    Posted: 02 Feb 2021 08:17 PM PST

    There doesn't seem to be a lot of documentation on this and I figured a lot of people have already run into this issue before.

    If you have an app in Alpha/Closed Testing and are currently taking Pre-Registrations, can you promote your Alpha release to a Beta release (Open Testing) without affecting the pending Pre-Registrations?

    Does promoting a release to open testing make all new users with the link have access to open testing instead of Pre-Registrations?

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

    32GB or 64GB Ram for Android Devs?

    Posted: 03 Feb 2021 03:55 AM PST

    Hi!

    before mods will delete it for "Rule.n7", i am not sure if this question will be properly answered in different subreddit. If this is really a problem, please delete it then.

    In our company which creates android apps our devs want to get a laptops with 64GB of RAM and I think it's an overkill for Android Dev. Even if you would run few simulators the 32GB should be sufficient, am I correct? There is $700 USD difference between two laptop models they want. That's why I am asking.

    Thank you for your opinion!

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

    No comments:

    Post a Comment