• Breaking News

    Friday, June 17, 2022

    Android Dev - What do you mostly do at job?

    Android Dev - What do you mostly do at job?


    What do you mostly do at job?

    Posted: 17 Jun 2022 08:31 AM PDT

    Hey, I was making my app for android for some time now and I enjoyed it so far, but I'm not sure if I want to have android job because of one thing. I like solving problems the most and making algorithms and I kind of fear that in a job with android most of the time I would do simple, repetitive things like for example implementing UI. How is your job looking, on what things you spend the most time on? (Also I apologize for my English)

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

    What's the best free source for learning Kotlin?

    Posted: 17 Jun 2022 06:15 AM PDT

    I want to start learning kotlin to create Android apps. That's all. What's the best source in your opinion?

    submitted by /u/41ii
    [link] [comments]

    How do you send push notifications with Android if user is logged out of app?

    Posted: 17 Jun 2022 11:12 AM PDT

    Hey everyone,

    I'm currently writing an article for push notifications on Android devices. I don't need code, per se, but if a user is logged out of an application (either manually logging out or the system timing out), how do they receive push notifications? Is it tokens to verify user authentication + subscription? A class library?

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

    Why use Data Binding?

    Posted: 17 Jun 2022 10:59 AM PDT

    Beginner here... I can understand that View Binding is useful in the sense that everything is resolved at compile time and you can get rid of those "findViewById" function calls, but...

    What good is data binding? I mean you already have XML files, like strings.xml that contain all the strings your app uses and that is enough to avoid hard-coding and all.

    But why bother with having a Data class and then on top of that have a <data> tag in the layout file and on top of that create objects of that Data class in the main activity to access the actual values of those strings and all.

    For me, it seems a waste of time to do all that. Or am I missing something that makes Data Binding useful?

    Thanks!

    submitted by /u/DL-Z_ftw
    [link] [comments]

    How long did it take you to get comfortable with learning code flows and commonly used patterns in Android Development?

    Posted: 17 Jun 2022 10:54 AM PDT

    "Best" method to cache a graph?

    Posted: 17 Jun 2022 09:52 AM PDT

    My application builds a weighted graph of objects, and since calculating it can be relatively expensive, I wanted to cache the graph on permanent storage. I was wondering if there are better ways to store the graph than building a db with Room

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

    Do varies device sizes still present a problem for Android developers?

    Posted: 17 Jun 2022 09:30 AM PDT

    Hi. I am considering learning either iOS or Android development. I've tried doing a bunch of research, but a lot of it is older and I know there have been some advancements with something called Jetpack Compose. One thing I always heard about Android development that sucked was having to factor all the screen sizes and the differences in Android skins, such as OneUI. Is this still true? Would iOS be more friendly to develop on?

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

    Why use Data Binding?

    Posted: 17 Jun 2022 08:20 AM PDT

    Beginner here... I can understand that View Binding is useful in the sense that everything is resolved at compile time and you can get rid of those "findViewById" function calls, but...

    What good is data binding? I mean you already have XML files, like strings.xml that contain all the strings your app uses and that is enough to avoid hard-coding and all.

    But why bother with having a Data class and then on top of that have a <data> tag in the layout file and on top of that create objects of that Data class in the main activity to access the actual values of those strings and all.

    For me, it seems a waste of time to do all that. Or am I missing something that makes Data Binding useful?

    Thanks!

    submitted by /u/DL-Z_ftw
    [link] [comments]

    what is an app from the playstore (amazon..) using to identify you and whats your best bet for perfect privacy/no tracking?

    Posted: 17 Jun 2022 07:15 AM PDT

    im not sure if this is the right subreddit, if it isnt, pls refer me to the right one. what identifiers do the apps use/can use without permission and how to stop the tracking of them?

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

    Subscriptions testing, reset offer eligibility?

    Posted: 17 Jun 2022 06:57 AM PDT

    I am testing subscriptions with a free trial Offer that is set to once per account (Never had a subscription) and it looks like the offer disapears from the play billing subscription data once the test user has used up the offer, is there a way to rest this for testing purposes?

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

    If I make my game +18 will this increase my revenue?

    Posted: 17 Jun 2022 06:36 AM PDT

    My current game is 12+ on play store, so I locked all sensitive categories on admob a long time ago, but I was thinking, if I set age of this game to 18+ then I can unlock all sensitive categories, will this increase my revenue?

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

    Big file uploads caveats?

    Posted: 17 Jun 2022 06:34 AM PDT

    I know i know this is something that can be easily googled!

    I'm currently working on an app that allows user content file uploads to backend. User sends an Get intent and whatever he chooses we upload.

    The way I do it is query content provider for intent data that user chose, get an input stream from that and then convert inputstream to byte array and convert it to request body

    val bytes = inputStream.readBytes()

    val multipartBody = MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("", fileName, bytes.toRequestBody("application/octet-stream".toMediaTypeOrNull())).build()

    THIS WAS MISTAKE NUMBER 1

    If user chooses a big file you won't be able to allocate a big byte array in memory. If I chose a file that was about 113 mb on my phone (Pixel 4a) i got OOM.

    Tried to optimise, after realising how wrong i was.

    This is what I came up with:

    suspend fun uploadFile(url: String, inputStream: InputStream, fileName: String) {

    val multipartBody = MultipartBody.Builder()

    .setType(MultipartBody.FORM)

    .addFormDataPart("", fileName, inputStream.toRequestBody()).build()

    retrofitApi.uploadFile(url, multipartBody)}

    private fun InputStream.toRequestBody() = object : RequestBody() {

    override fun contentType() = "application/octet-stream".toMediaTypeOrNull()

    override fun writeTo(sink: BufferedSink) {

    // we wrap out inputstream as buffered and then convert it into source

    buffered().source().use { source ->sink.writeAll(source)}}

    }

    And guess what? Same 132 mb file is working. One other tweak

    setLevel(HttpLoggingInterceptor.Level.HEADERS)). (see https://github.com/square/retrofit/issues/540 )

    Next up 190 mb file -> ok

    If i try 300 mb file with same code -> OOM error

    How are big apps allowing for big uploads? 300, 500 mb, 1gb file? How do i tackle this?

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

    eCPM floor trends

    Posted: 17 Jun 2022 04:31 AM PDT

    I've been studying various ways of optimizing eCPM floor trends and how it can be used to one's total advantage. It was definitely insightful, I would love to discuss the same and learn about more trends too.
    Feel free to shoot a DM or comment below for connecting over this.

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

    Why use Data Binding?

    Posted: 17 Jun 2022 08:14 AM PDT

    Beginner h

    submitted by /u/DL-Z_ftw
    [link] [comments]

    Why use Data Binding?

    Posted: 17 Jun 2022 08:13 AM PDT

    Beginner here... I can understand that View Binding is useful in the sense that everything is resolved at compile time and you can get rid of those "findViewById" function calls, but...

    What good is data binding? I mean you already have XML files, like strings.xml that contain all the strings your app uses and that is enough to avoid hard-coding and all.

    But why bother with having a Data class and then on top of that have a <data> tag in the layout file and on top of that create objects of that Data class in the main activity to access the actual values of those strings and all.

    For me, it seems a waste of time to do all that. Or am I missing something that makes Data Binding useful?

    Thanks!

    submitted by /u/DL-Z_ftw
    [link] [comments]

    Do requests for user rating/feedback actually get more users to rate/review?

    Posted: 17 Jun 2022 04:17 AM PDT

    As the title says, does anyone see any improvement? More downloads/revenue? I am planning to add this to a WearOS app, and was wondering if it's worth the annoyance to the user.

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

    Can the associate android certificate get me a job I've been doing android for 2 year's now with no industry experience I have apps in play store no recruiter reply my resume I'm a Nigerian

    Posted: 17 Jun 2022 04:00 AM PDT

    Google API Key for address autocomplete

    Posted: 17 Jun 2022 03:49 AM PDT

    Hi

    I want to implement an address auto complete into my app because I think its a nicer experience for the user but am a bit confused about the pricing

    Prices are quite high but it says "200$ credit per month" at the beginning and that would result in about 70.000 requests for autocomplete. Does that now mean I can really use that API-Key completely for free until 70.000 requests are made?

    And if I have 71.000 requests in a month I pay those 1000 requests which are about 3$?

    If that is true I feel like pricing is okay but I find it hard to believe that they gift you 200$ a month. Anyone using API Key for their app (or whatever) too to use auto complete?

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

    No comments:

    Post a Comment