• Breaking News

    Monday, June 22, 2020

    Android Dev - Weekly "who's hiring" thread!

    Android Dev - Weekly "who's hiring" thread!


    Weekly "who's hiring" thread!

    Posted: 22 Jun 2020 05:45 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]

    Weekly Questions Thread - June 22, 2020

    Posted: 22 Jun 2020 03:57 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Is it true that Android apps make less than their iOS counterparts?

    Posted: 21 Jun 2020 09:01 PM PDT

    I hear this a lot. I wanted to ask this to Android developers and see what you guys all think. I have seen some people debunking this. But I also want to hear if this is true from you guys!

    Regarding me, I am more of a web developer and an Android user (and fan). But I have experimented with mobile apps in the past with the likes of Flutter and React Native. Although I would love to hear from you guys on whether or not this is true!

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

    Best practices for creating a developer account?

    Posted: 22 Jun 2020 08:01 AM PDT

    Hi, newb Android dev here. I've been reading some scary posts on people getting their dev accounts terminated by Google. I read posts that suggest setting up an LLC even. I am trying to set up a new Google account just for learning and developing apps. Now, I'm not even close to making money from the Play Store, but would still like to be informed on what to do and what NOT to do. Any tips or advice would be appreciated!

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

    Google is rejecting my update. Please help me understand what this email is telling me.

    Posted: 22 Jun 2020 08:48 AM PDT

    Google is rejecting my update. Please help me understand what this email is telling me.

    My game is rated 3+. It has nothing in it that would make ratings go up. Yeah, its a game. And ads are not even running in the first place because ads are being limited by google. I have also set the ads to show only family-oriented ads already way before this rejection. I also blocked many categories of ads as well. I do not understand why they rejected. Their reasoning is outlandish because ads aren't running at all in the first place.

    https://preview.redd.it/sjct8gxofh651.png?width=734&format=png&auto=webp&s=2676d016ce4edeb3b14fdc8f64d582070640471c

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

    Onesignal stable SDK

    Posted: 22 Jun 2020 08:39 AM PDT

    What is stable SDK version of onesignal for Unity3D? I used latest sdk V 3.14.1 but Crashes graph gone upward. 😣

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

    Has anyone dealt with “Flippa” before?

    Posted: 22 Jun 2020 04:46 AM PDT

    Hi, a company called Flippa offered to buy my app. I've no idea how to go about it, and I wonder if anyone has dealt with them before. Are they legit? How to price the app? And is it worth it? Thanks!

    submitted by /u/6UpsideDownTrees
    [link] [comments]

    Free Royalty Free Music

    Posted: 21 Jun 2020 09:17 AM PDT

    I am pretty new to Reddit, a European Composer who writes royalty free music since 2007. About 2 weeks ago I decided to upload all of my work on YT and my website and provide my work for free. I cover a lot of genres, from cinematic to upbeat tracks and I hope that my collection can come in handy.

    The last few tracks I composed as a "pack" which allows editors to customize the music to their project. I would love some feedback as well. Here you will find some of my music.

    You may use my music within your project(s), even commercially, at no charge. A credit to my YT-channel or website is appreciated but not required.

    Restrictions:

    You cannot claim my music as your own
    You cannot distribute my music in any store or platform
    You cannot use my music for audio podcasts or audiobooks
    You cannot edit my music, song or remix unless it is published as a "pack"
    You can use my music for facebook videos but you cannot register it within Facebook Rights Manager

    Right now there are about 120 tracks on my website, hope you will have fun browsing!

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

    Do you use RxJava in your project?

    Posted: 21 Jun 2020 08:27 PM PDT

    After my acquaintance with RxJava during my intern days. I almost always uses RxJava for concurrencies in Android projects. I am curious, is it the same for everyone else in this subreddit?

    View Poll

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

    Does Cameras Work on Facial Recognition Smart Security Technology

    Posted: 22 Jun 2020 05:33 AM PDT

    Which software do you use to create android apps?

    Posted: 22 Jun 2020 07:43 AM PDT

    Hi everyone, how do you guys create android apps? i am just starting out into app development and have no clue of what the Pros use, also what is the android counterpart of x code?

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

    May I use other app names in my play store description if it makes sense?

    Posted: 22 Jun 2020 03:51 AM PDT

    For example, if I integrated another app to automatically synchronize with mine or if I allow importing backups from other apps into mine, am I allowed to name them in my app store description?

    Intuitively, I'd say that it is no problem, but Google can be very unpredictable sometimes.. So what is your advice?

    submitted by /u/4mament
    [link] [comments]

    Trying to use recycled bitmap crash

    Posted: 22 Jun 2020 03:09 AM PDT

    Hello everyone, I hope you're going through a bugless monday. Things are not going bugless for me. I'm receiving a crash as below:

    Fatal Exception: java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@9e192f3

    at android.graphics.BaseCanvas.throwIfCannotDraw(BaseCanvas.java:55)

    at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:227)

    at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)

    at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)

    at android.widget.ImageView.onDraw(ImageView.java:1352)

    at android.view.View.draw(View.java:19455)

    at android.view.View.updateDisplayListIfDirty(View.java:18351)

    at android.view.View.draw(View.java:19159)

    at android.view.ViewGroup.drawChild(ViewGroup.java:4457)

    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4236)

    at android.view.View.updateDisplayListIfDirty(View.java:18337)

    at android.view.View.draw(View.java:19159)

    at android.view.ViewGroup.drawChild(ViewGroup.java:4457)

    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4236)

    at android.view.View.draw(View.java:19463)

    at android.widget.ScrollView.draw(ScrollView.java:1739)

    at android.view.View.updateDisplayListIfDirty(View.java:18351)

    at android.view.View.draw(View.java:19159)

    at android.view.ViewGroup.drawChild(ViewGroup.java:4457)

    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4236)

    at android.view.View.updateDisplayListIfDirty(View.java:18337)

    at android.view.View.draw(View.java:19159)

    at android.view.ViewGroup.drawChild(ViewGroup.java:4457)

    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4236)

    at android.view.View.draw(View.java:19463)

    at android.view.View.updateDisplayListIfDirty(View.java:18351)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.View.draw(View.java:19159)

    at android.view.ViewGroup.drawChild(ViewGroup.java:4457)

    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4260)

    at android.view.View.updateDisplayListIfDirty(View.java:18337)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4436)

    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4416)

    at android.view.View.updateDisplayListIfDirty(View.java:18295)

    at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:669)

    at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:675)

    at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:783)

    at android.view.ViewRootImpl.draw(ViewRootImpl.java:3194)

    at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2992)

    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2530)

    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1488)

    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7182)

    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:935)

    at android.view.Choreographer.doCallbacks(Choreographer.java:747)

    at android.view.Choreographer.doFrame(Choreographer.java:677)

    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:921)

    at android.os.Handler.handleCallback(Handler.java:790)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loop(Looper.java:192)

    at android.app.ActivityThread.main(ActivityThread.java:6759)

    at java.lang.reflect.Method.invoke(Method.java)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:875)

    I cannot trace the crash since it does not create a log from the classes I wrote. Did anyone experience such a thing and solve?

    Any help is appreciated.

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

    Singletons are not evil...right?

    Posted: 22 Jun 2020 02:33 AM PDT

    From my own experience, android dev is like gardening - there are wide variety of tools, and you have to be mindful to use the right tools for the job.

    And I simply feel after many times revisioning my own demo apps, that using singletons is not evil at all, if done correctly.

    My demo app involves my ViewModel class executing a Firebase Firestore query, returning a data class consisting of about a half dozen primitive types.

    Now, I could just store the data class inside a ViewModel, and then storing a copy inside a SavedStateHandle so that whenever the ViewModel resets - by the phone being rotated, the app paused or the Fragment changed with another, I can code for the ViewModel upon startup/reset to immediately call back the copy from the SavedStateHandle.

    But I imagine that this is just tedious and not code-efficient at all. Singular primitive types like Int, String are okay, but a whole data class? I need to actually serialize the whole data class into a String using Gson before saving it inside a ViewModel's SavedStateHandle. And then when the Viewmodel gets reset, I need to retrieve from SavedStateHandle and deserialize the String back to the date class (unless there is actually a more elegant way to do this that I do not know of?)

    For small data classes, this is still okay. My demo app only queries small data classes from Firebase. But what if I need to download HUGE data classes instead? Like for example, market prices from stocks? Weather data? Directions between two coordinates on a map?

    Then every time I retrieve a huge data class from a Firebase query, I need to serialize the whole data class before shoving it inside the ViewModel's SavedStateHandle, and this actually causes the app to pause and even freeze. This hampers the app's performance. The work load is doubled since the app also needs to deserialize too every single time the ViewModel is reset.

    What if I actually want to save the data class inside my app and then modify the variables inside the data class? I still need to serialize and deserialize, even though I just edited one variable inside the data class.

    It's like I'm using a machete to cut down a sequoia bark. It's just not the right tool for the job....when I can just use Object instead.

    But please, hear me out. When I place the data class I retrieved from the Firebase query into an Object, the data class inside the object persists for the whole life of the app - at least as I have observed. The data doesn't go away until the app closes. The data persists even if the Viewmodel gets reset. If I want to make some edits to the data class, I can just edit the variables directly and not have to worry about serializing and deserializing.

    But still, singletons, evil. Yeah. I read that in blogs and articles everywhere.

    I am wracking my head here. Either I use Object and have an easier coding experience with the app running smoothly, or squeeze my brain like mad figuring out workaround solutions that still would end up with my app running slow because of all the serializing and deserializing, just to please other developers instead of the end user, because singletons are evil.

    I need to please developers since I intend to show these demo apps to interviewers. But I am thinking if I just become a solo developer and make my apps purely for end users, I can be as evil as I want, right?

    TL:DR; I love singletons but I am wary of using them for my demo apps because other devs say singletons are evil.

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

    What are your thoughts on integrating your google apps with HMS, and port them to huawei AppGallery?

    Posted: 21 Jun 2020 11:55 PM PDT

    Build and Debug Android apps using VS Code instead of Android Studio

    Posted: 21 Jun 2020 12:06 PM PDT

    Firebase Analytics quick start

    Posted: 21 Jun 2020 08:55 AM PDT

    No comments:

    Post a Comment