• Breaking News

    Monday, June 14, 2021

    Android Dev - Weekly Who's Hiring Thread - June 14, 2021

    Android Dev - Weekly Who's Hiring Thread - June 14, 2021


    Weekly Who's Hiring Thread - June 14, 2021

    Posted: 14 Jun 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]

    My almost 2 year old app is removed from the store due to a non valid Privacy Policy. Is it because it doesn't have an English version?

    Posted: 14 Jun 2021 02:32 AM PDT

    Hello everybody.

    My app, which is available only in my country, Turkey, is removed from the store due to a non valid Privacy Policy. As it was avaliable some other countries like US and Germany due to possible expats living there, I thought not having an English or German translation of privacy policy might have been the reason.

    So i put up a new release removing all countries except Turkey, but again it was denied with the same reason.

    I'm wondering if i should have an English privacy policy even though it's only targeted to Turkish users?

    ps. I replied to google play support for the detailed reason, but couldn't get a specific answer. This is just one of my guesses.

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

    What's your way to expose an immutable StateFlow / LiveData from your ViewModel without bloating up your code?

    Posted: 13 Jun 2021 10:00 PM PDT

    I see in many code bases something like that

    class CustomViewModel : ViewModel() { ... private val _customStateFlow = MutableStateFlow<Anything>(Nothing()) val customStateFlow: StateFlow<Anything> = _customStateFlow ... private fun onSomethingHappened(anything: Anything) { _customStateFlow.emit = anything } } 

    I unterstand the reason behind this: You don't want to expose a mutable flow in order to protect your state from the outside. However, if you use traditional MVVM (having multiple different observable state objects e.g. LiveData or StateFlows) within your ViewModel then this will easily blow up the ViewModel with a lot of boilerplate code.

    Personally, I find that a mix of MVI and MVVM is a good fit to tackle this issue. You basically expose only one immutable StateFlow / LiveData object that emits a generic state based on your UI (a sealed class). You could then have multiple state classes that extend the sealed class. The down side of this is that you'll potentially have a big "when" block within your fragment, where you'll check the instance of the emitted sealed class and then unwrap it and update your UI. However, I prefer spaghetti code within a fragment that is at least centralized, than having a bloated up ViewModel class (debatable).

    What is your opinion or solution for this?

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

    Using serialization and saving files (not in cache) on Android 10

    Posted: 14 Jun 2021 04:20 AM PDT

    Hi fellows.

    I'm doing a school project in Android 10 (Kotlin) and need to store text data, I don't want to use a database though. So I'm thinking about serialization, saving serialized data to file (or many files - one file per entity, not sure) in onPause() method, and then when onCreate() method launched, reading these files, deserializing them, and passing them to other activities. I know it would work on the desktop app but on Android? The file with a serialized data would have to be saved in storage somehow (not in cache), so the user probably would have to be asked for permission to access device storage. Also, these saving and reading operations should be done by another thread (to not block UIThread). Do you have any tips on how to do this saving in right place and so?

    Have a nice day!

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

    1st App, New Dev Issues. How Do I Add A Privacy Policy? (For Ages Under 13)?

    Posted: 14 Jun 2021 08:45 AM PDT

    1st App, New Dev Issues. How Do I Add A Privacy Policy? (For Ages Under 13)?

    Hey everyone,

    I have a question and I can't find any info on this anywhere, not even in the Google Play developer area, but it's related to the age settings and privacy policies.

    I am at the section where I am setting up the app for the Google Play store and I am selecting which age groups the app would appeal to. This is an app that can be enjoyed by all ages and is suitable for all ages, but there is a grade 2 or so level reading skill level required perhaps. Anyways though, I am choosing the ages but the top ones are all shaded out, I cannot select them. It says I have to add a privacy policy.

    https://preview.redd.it/x69js4ut49571.png?width=1052&format=png&auto=webp&s=1145237795c635e620c3e97013d27844b9477628

    This is where I am stuck. I can't find anywhere to do such a thing. How should I proceed next on this?

    Thanks

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

    Need free websites for Android development resources

    Posted: 14 Jun 2021 04:12 AM PDT

    I am new to Android development. Can you suggest some websites from where I can get some media resources for my app like pngs for free

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

    Compose: Showing Images From a URL

    Posted: 14 Jun 2021 07:06 AM PDT

    Jetpack Canvas API | Understanding Math behind Fruit Ninja �� and Alien Invader ��

    Posted: 13 Jun 2021 02:11 AM PDT

    Hi Guys! I would like to share my very first talk on Jetpack Compose Canvas API,

    I have built some of the interactive examples on canvas API like Fruit Ninja 🥝
    and Alien Invader 🥝, I explain its logic and How not to be scared by the Math involved in it.

    Jetpack Compose Canvas API, Fighting Against the Math!

    submitted by /u/dev-ch8n
    [link] [comments]

    Does choosing any specific layout for Android development make any difference?

    Posted: 14 Jun 2021 04:08 AM PDT

    Yes, choosing any specific layout for development does make a difference because not specifying the different layout which covers most of the phone will create problems like this:-

    - Might degrade the user interface. - App options might not be visible or cropped out. - App options might not be properly aligned. 

    So a developer always wants to design an app that is compatible whether the size of the screen is small, medium, or large.

    [Does this answer satisfies the question that was asked to me?]

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

    How long does it take to review the app when publishing?

    Posted: 13 Jun 2021 04:46 AM PDT

    I have published my new Android app to internal test and I have been waiting for over a month and a week already. Google says "We're experiencing longer than usual review times " but does the app review take that long in this situation?

    The last time I published my app the review has done in a week. I am wondering if other developers are also waiting for that long time and want to know about it.

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

    is there an API to know if a Composable is currently visible on the screen?

    Posted: 13 Jun 2021 07:31 AM PDT

    cannot find any API in Jetpack Compose

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

    Any Android and iOS (native) cross developers? If so, what is your experience doing both at the same time? Just started a job doing this, looking for what others have expected of them.

    Posted: 12 Jun 2021 08:51 PM PDT

    I do native Android (java/Kotlin) and iOS (ObjC/Swift) development and have just started a new job doing this but have been asked to do backend as well now (we have multiple backend devs and only 1 of me) which is a whole different language. Is this anyone else's experience or is cross native Development itself rare enough and backend is now too much?

    I feel like 4 languages and 2 platforms is a lot of freaking work and to add a 5th language and a 3rd platform is kind of extreme and rare to even happen. But I genuinely don't know and I'm trying to figure out what others experience.

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

    Bluetooth LE for modern Android Development - part 1

    Posted: 13 Jun 2021 05:39 AM PDT

    Entry-Level Android Dev or something else?

    Posted: 12 Jun 2021 04:30 PM PDT

    I'm a recent college grad but never did co-op or internship while in school (idiotic, but it is what it is now). I was wondering how likely is it for me to get an android dev job as my first break-in? Or should I be focusing on something else? I have a few side projects and a current one I'm looking to deploy to Google Play.

    I am also well versed in C# and .Net core and have built a full-stack side project in that too ( code on GitHub but haven't deployed it to azure).

    I'm unsure If I should continue down the native android path or just focus on the .Net entry position. I see most android dev jobs require 3+ years of work experience.

    Also. What are some main requirements for an Android entry position? I mean I have a pretty decent understanding of Activity/fragment lifecycles, services, dependency injection, and have worked with NavigationUI and Jetpack libraries in general - Dagger-Hilt, Retrofit, and also local cache in RoomDB, etc.

    One thing is Data structure & Algorithms, I am familiar with the theory but havn't coded a linked list in a while. I've had a few interviews and they haven't asked me anything about data structures.

    Or should I just say the hell with it and learn reactjs/node js like everyone else? I'm looking for a job asap and I have my hands in too many random projects but I feel like I have the skills to get at least an entry job as an Android dev, which I can't seem to land.

    Thanks

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

    How do you progress as a dev after your first few apps?

    Posted: 13 Jun 2021 08:35 AM PDT

    For context: Got into Android around January and started off building the usual (calculator, weather app) My most recent app is a covid 19 tracker which used the covid19india api and uses Gson to parse the data and display in a listview.

    Now I want to build a volunteer aggregation app where people can go and find out all the volunteer activities in their area. Organizations can post their events for users to find.

    It will have separate logins for user and organizer and different functions for each. Logins, preference storage etc.

    Up until now I build apps that had a single activity and a couple of classes for Json data and binders for listviews etc.

    How do start building an app like this which includes multiple activities, multiple functions, notifications, sign up etc? How does the file structure look? How do I chose an architecture? Which part should I start coding first?

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

    Guide to upgrade app from Android Wear to Wear OS?

    Posted: 13 Jun 2021 11:10 AM PDT

    I'm trying to migrate an old open source project from Android Wear to Wear OS. The phone side is up to date but the watch part not so much. Is there any still existing migration guide like "these APIs have been replaced with this"? I did try searching but all I found was references to stuff that's no longer around.

    (I do have generic stuff working already like setting up Android Developer and connecting the watch. I'm a developer at my day job but I haven't done anything Android in years and years, and nothing with Wear OS at all.)

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

    Career jump, back to being android dev again.

    Posted: 13 Jun 2021 10:31 AM PDT

    Hey guys so i'm thinking of switching my career to a dev, rn i work as an IT auditor and i was an android dev before in college, i developed some AR stuff and an app with MVVM design pattern so i'm a bit familiar but now i forgot all of those stuff.

    And now i'm confused on which learning path i have to take to jump back in, do i learn Jetpack ? Flutter ? Or React Native ? I'm learning react native rn cos most of the job posts are for react native devs, i don't see many Flutter or Jetpack requirement, so which 1 is good for the long run ?

    Thanks.

    Edit : Haven't learned Kotlin yet, i code in native java before.

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

    Navigator Compose - A navigation library for Jetpack Compose

    Posted: 13 Jun 2021 06:24 AM PDT

    A library for managing navigation in Jetpack Compose with backstack.

    What are the benefits?

    • Handles forward, backward navigation supporting multiple backstack.
    • Automatically handles backpress events (to go up the stack).
    • No Fragments needed, pure @Composable navigation.
    • The library also provides some built-in animations when navigating to other screens (check the sample app).
    • All the navigation states are preserved across configuration change & process death.

    Check out Tutorials & Sample app for more info: https://github.com/KaustubhPatange/navigator/tree/master/navigator-compose

    Also, if you are looking to use this library in a non-compose (standard) app, look here.

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

    Confused on getting started with android development.Help me please.

    Posted: 13 Jun 2021 09:12 AM PDT

    Hi All,

    I am game dev by profession with 6+ years of experience in Unity,C# and c++, for past few months i feeling bored and i feel like i wanted something new, i hv done little bit of web developement but tht is years ago, but now i interested more in app development, i wanted to get in android development, i am confused between java and kotlin for the language, and i would like any newbie friendly tutorials if you people can suggest.

    any tips and suggestions would be great.

    THanks

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

    Android Room Database - handling storing lists and object

    Posted: 13 Jun 2021 04:11 AM PDT

    Hi fellows. I'm coding in Kotlin and using Android Room Database and I do have multiple entities to store in. I have a problem though, with how to store custom objects and lists. Entity is I have an entity like

    @Entity
    @TypeConverters
    data class Person(
    @PrimaryKey val id: String,
    @ColumnInfo val name: String,
    @ColumnInfo val surname: String,
    @ColumnInfo val pesel: String,
    @ColumnInfo val phoneNumber: String,
    @ColumnInfo val patientId: String,
    @ColumnInfo val patientEnduredTests: String,
    @ColumnInfo val patientAdditionalInfo: String,
    @ColumnInfo val patientVisits: String,
    @ColumnInfo val surveys: String

    So I have to store patient visits lists and not sure how to store them because the Android Room doesn't allow to store list object. I created ConverterHelper class with methods for converting List of Objects (so also lists) to String and I should have a method to do it in an opposite way (so from String to List of objects).

    @ProvidedTypeConverter
    class ConverterHelper {

    @TypeConverter
    fun stringToListOfStrings(value: String): ArrayList<String> {
    val listType: Type = object : TypeToken<ArrayList<String?>?>() {}.type
    return Gson().fromJson(value, listType)
    }

    @TypeConverter
    fun listOfStringsToString(list: List<String>): String {
    val gson = Gson()
    return gson.toJson(list)
    }

    @TypeConverter
    fun listOfVisitsToString(listOfVisits: List<Visit>): String {
    return Gson().toJson(listOfVisits).toString()
    }

    @TypeConverter
    fun stringToListOfVisits(value: String): List<Visit> {
    val listOfVisits = object : TypeToken<ArrayList<Visit>>() {}.type
    return Gson().fromJson(value, listOfVisits)
    }

    }

    Is it a new approach? Sorry if this question is silly, I'm new to Kotlin (but I do enjoy it!)

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

    It's possible to put a fragment into a RecyclerView ?

    Posted: 12 Jun 2021 04:13 PM PDT

    Is there a way to accomplish this? if not is there a way to make what it offers? that is, change the cardView every time as if I'm going to a next screen . (I have the RecyclerView horizontally and the cardView has the size of all the screen horizontally) thanks.

    (sorry for my English)

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

    Will my app hace its review finished on google play console if I dont add privacy policy?

    Posted: 13 Jun 2021 01:56 AM PDT

    I can see this message in console "You must add a privacy policy if your target audience includes children under 13."

    My target age is 18+, why is this text showing?

    I have been waiting for a review for some time now, should I just continue waiting or should I add some policy?

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

    Question about the 15% service fee Google Play

    Posted: 13 Jun 2021 04:12 AM PDT

    Question about the 15% service fee Google Play

    Hi, I've received this notification in my Google Play console, I don't understand the first point (Create an account group...), how I can do that to benefit from the 15% fee instead of 30%

    https://preview.redd.it/br050ai8n0571.png?width=1339&format=png&auto=webp&s=82cd3d53d8e477c7bf98644272cc6ff00783e0f9

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

    No comments:

    Post a Comment