• Breaking News

    Monday, November 30, 2020

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

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


    Weekly "who's hiring" thread!

    Posted: 30 Nov 2020 04:44 AM PST

    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 - November 30, 2020

    Posted: 30 Nov 2020 02:56 AM PST

    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]

    WebADB lets you run ADB right from your web browser

    Posted: 30 Nov 2020 06:02 AM PST

    Android MVVM example app - Kotlin Flow + Dagger Hilt + Retrofit + StateFlow + MotionLayout

    Posted: 30 Nov 2020 07:13 AM PST

    Hi!

    I have refactored my previous app, and now it uses the newest libraries and recommendations from Google.

    You can find the source code for this sample application on my GitHub page https://github.com/inspire-coding/OMD...

    This is a sample application, which uses the OMDb API to get movie data.

    The app follow the MVVM software architectural pattern and uses the below libraries.

    📱 Kotlin Coroutines

    📱 Kotlin Flow

    📱 StateFlow

    📱 Dagger Hilt

    📱 Retrofit

    📱 Gson

    📱 Navigation Component

    The app contains shared elements animation and a collapsing toolbar effect which was implemented with MotionLayout.

    Using MotionLayout the search field goes up at the first search and stays there because of StateFlow.

    Android MVVM example app - Kotlin Flow + Dagger Hilt + Retrofit + StateFlow + MotionLayout

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

    Which mocking library are you using?

    Posted: 30 Nov 2020 01:05 AM PST

    I'm working on a large Android project which I'm slowly migrating from java to Kotlin. At the moment I'm using com.nhaarman.mockitokotlin2 but it doesn't support mocking final classes which I need as I'm spying on `object : Foo() {}` final classes.

    What are the recommended mocking libraries in 2020 when using Kotlin?

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

    Compose is one of the best things to ever happen to Android

    Posted: 29 Nov 2020 10:32 AM PST

    I used to hate writing Android apps because of the way the UI's had to be done. It was completely different to what other UI frameworks do and it was difficult and time consuming to make professional looking UI's.

    Now with Compose, I have found it very easy and efficient to write features for my application. Long gone are the days of fragments, view models, and XML.


    [link] [comments]

    Iceraven Android Browser is Looking for Volunteer Developers

    Posted: 30 Nov 2020 12:44 AM PST

    I am not the owner of Iceraven and it is not a for profit venture.

    However, it lets me do and see things no other browser out there lets me do and see Android (At least not all in one browser), so I've been part of the user community since it began.

    The idea is allow as much customization and as many user options as possible- in as visible and easy to understand manner as possible. Other browsers cut back on that kind of thing while Iceraven dives in.

    It is a fork of Firefox for Android that integrates all the good stuff from Firefox's stable builds and offers Firefox extensions, but also does stuff like have an option to turn on protocol (http://, https://) and "www" where applicable (Which Firefox strips from URLs), have a completely different tab interface with squares on their own page instead of only having an overlay with skinny rectangles (or use the other interface- you decide), allows people to load many more extensions than Firefox, makes about:config available, strips out all the proprietary telemetry, has a more useful "home" area with more icons, etc..

    It also attempts to give the end user more information about the browser and what it is doing and not doing, and information about the pages visited.

    Here is the problem:

    There was in theory a three person team of maintainers. However, it's a volunteer thing and they all had day jobs. One guy went totally AWOL, no one has seen or heard from him in a long time. Another guy quit recently, declaring he did not have time and that he prefers to just use Firefox.

    That leaves just the founder/lead developer left, and, to be honest, we weren't even sure he was still there until conversations about how to carry the browser forward in the issue area of the GitHub just kept going for a long while because we saw It had been almost two months since the last update for users and 19 days since any public work had been done on the project on GitHub.

    The lead developer is back and did issue an update today, but he is openly asking for what everyone knows the project needs- more developers who can keep up with merging the newest stable Firefox stable updates with the Iceraven specific code and code borrowed from FF's other nightly and beta versions that FF says it does not plan to ever offer in its stable version, and/or code some new user options and features (Iceraven also bases some of its code that gets rid of proprietary telemetry on F-Droid's Fennec browser, which despite being named after a codename for an old version of Firefox, is actually a current fork.).

    That's sort of what the browser is- it's the zillions of options browser, like the type of choices one usually only get from desktop browsers.

    Anyway, it badly needs developers.

    Here's the GitHub:

    https://github.com/fork-maintainers/iceraven-browser

    They'd love to have some people jump in and do some pull requests and coding. Interfect (GitHub screen name) is the guy you'd want to talk to about becoming a maintainer, which the project badly needs more of, but you could also just look at issues and write patches and such and see what he uplifts.

    This would be a great opportunity for a developer to gain experience or just contribute to a cool browser for the good of the community or because he or she wants to.

    We're sort of down to one guy and he's basically admitted he can't do everything he should do on a reliable consistent basis because of his real job and other things. Yet, despite that, at least for my needs, Iceraven is far and away the best Android browser. I really don't know want I'd use if it didn't exist- I don't like thinking about it.

    We need to parachute some more developers in so people can feel good about it beibg supported and getting prompt security updates (Some of which are just a matter of adding from upstream as they do new stable release). Tell me people I sent you if you feel like you need to cite a person, but you don't need to.

    The browser is open-source and all that good stuff as well.

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

    Goal App Motion Layout Android Studio 2020

    Posted: 29 Nov 2020 08:42 AM PST

    Purple Buttons

    Posted: 29 Nov 2020 06:42 PM PST

    Ive recently started coding on android studio and have very limited knowledge of XML. I was wondering why the process of changing colours of buttons isn't straightforward(android:background="" isn't working) (default set to purple). I looked at the answers on stack overflow and all the simple ones don't work.

    Note to Moderators: I've gone through the rules and it said "help me" questions are banned and i would like to clarify that im gonna ask my "how to" question on the thread provided. Im posting this question up here to learn why this is so.

    Also Thanks:)

    Edit:TL;DR

    I got my doubts clarified, thanks a lot to all those who up voted and commented! My questions on stackoverflow have been banned and had been subject to intense scrutiny when i started learning programming a couple years ago as i didn't have the knowledge of the base concepts n didn't understand when they used big terms. So i really appreciate even the few upvotes and replies i got as im a newbie at xml today like i was a couple years ago in java as its really encouraging.

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

    Booking App using Android Studios and SQLite

    Posted: 30 Nov 2020 04:18 AM PST

    Hi guys, just a quick question. For a project in college I decided I'd do a booking app in android studios and the database would be SQLite. Im not the best programmer, in fact you could say I'm pretty crap. Is this idea even possible? I can't find many resources online that can help me. Thanks in advance!

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

    A small question about monetization regarding ads.

    Posted: 29 Nov 2020 09:26 PM PST

    Didn't know what key words to use, so I might as well ask here.

    So I'm in a game development group and I'm the odd one out that usually solo develops my own projects. I believe my group is fine with me adding my own game to the group app store page.

    To my knowledge, I can sign up to admob and get a token that allows me to play ads in my app and have the money go to my account.

    I want to know if it is allowed to post a game to a separate account while having a token for a different account.

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

    Running commands on pc through android device.

    Posted: 30 Nov 2020 12:15 AM PST

    Yo. Is this possible? I want to run PC apps through commands on Android. Did anyone try to do this?

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

    Emulator for Ryzen cpu

    Posted: 29 Nov 2020 07:46 PM PST

    Hi, I plan on building a pc but still debating wether to get ryzen or intel cpu. This is due to issue where emulator doesn't work for Amd cpu. Anyone know if there's no issue to run emulator on amd cpu?

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

    Publish the “google-services.json” file of an android app project or not?

    Posted: 29 Nov 2020 11:43 AM PST

    Does it worth it to create a new G account for the G developer's console?

    Posted: 29 Nov 2020 06:41 PM PST

    Hi.

    What I mean is, i have 3 gmail accounts:

    • One is my personal one, the one i use for my daily stuff, like reddit and netflix.
    • The other one is a professional one, the one I give someone when working or job-related stuff.
    • One for a specific project.

    I use them 3, but currently none of them are "android developer" accounts.

    I want to publish some indie apps and/or games I work on in my free time.

    My question is if it worths it to create a new account to pay the $25 developer fee on that new account, and use it only for my android related stuff... or it is ok if I use one of my current e-mails to do that.

    What are the non trivial pro/cons I could face in either case?

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

    How to go from expert Web dev to expert Mobile dev?

    Posted: 29 Nov 2020 02:30 PM PST

    Xposting in some of the other mobile subs for more answers hopefully, hope you don't mind!

    I'm a fairly long-term web developer, and have dipped into mobile a number of times but nothing serious.

    I am now in a position to lead the development of a mobile app version of our product that will go far beyond the scope of the web vision, since mobile handsets have so many exciting features like NFC / BLE / Cameras + Mics e.t.c...

    There is nobody in the company with mobile experience, but as a hobby I've made a few Flutter apps and other ones so I've been asked if I want to take command and drive this greenfield project - a very exciting opportunity.

    The problem is, as Flutter is quite new, there aren't exactly "Flutter in a Nutshell" equivalents to all the C# books I've read, and if I'm going to do this (and potentially hire others) I want to invest a LOT of time learning and become a Flutter expert over the next 12 months.


    On top of this, though, I feel like there are SO many other problems / architecture strategies / considerations to think of when you're a mobile developer over a web developer. I know about web-servers and docker containers and optimising performance for web etc, but I know nothing about the iOS and Android 'things' that expert mobile developers would know, such as developing for many many devices, the quirks of accessing cameras / bluetooth chips e.t.c, how to optimise for battery and performance, and all the gotchas like "what do I do about running my app in the background when a user always stays in Low Power mode" and things like that.

    Is there any kind of resource that teaches "Mobile Development" as a whole? Any kind of primer or bible for a mobile developer? As much as nothing beats experience and I will undoubtedly learn most on the job - I want to be as well prepared as possible, especially when designing the application!

    Thank you very much - I am super excited for the next year!

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

    Enabling Debugging with Soft-Brick

    Posted: 29 Nov 2020 06:13 PM PST

    Is there a way to enable debugging while the phone (Axon 10 Pro) is stick in a boot-loop?

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

    Should we Change our App??

    Posted: 29 Nov 2020 10:17 AM PST

    Hey everyone - could use some of your expertise!

    A friend and I have almost completed an app. It works like this:

    • At a high level, we connect a brand's existing customers (who are using this mobile app) with online shoppers (who are browsing on a brand's website)
    • App users receive notifications to chat with anonymous online shoppers.
    • App users receive a 1-5 star rating from the shoppers and receive a certain amount of coins based on this rating
    • App users can go into a 'promo store' and spend their coins to redeem certain promos. We scrape these promos off the web.

    We're about to launch to the app store. And our question is - Does the coins & promos model break any Developer Program Policies?

    More specifically, there's an "Other Real Money Games" policy that lists a violation example as:

    • Games with "loyalty" (e.g. engagement or activity) points that (1) are accrued or accelerated via real-money purchases which (2) can be exchanged for items or prizes of real world monetary value

    We aren't sure if promos qualify as "items or prizes of real world monetary value". Additionally, we're aware of other rewards apps (such as Chic-Fil-A) where users earn coins to receive free items.

    We don't want to submit the app if it's going to get shot down. Do you think our app will be approved? Why or why not?

    Thanks in advance!

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

    First steps as android developer

    Posted: 29 Nov 2020 01:23 PM PST

    Hi, Im new to this sub and to Android development in general. I finished my last project a couple weeks ago and currently I dont know what shall i work on. Whether a new idea or little projects to try new android features. I would appreciate your recommendations/guidence on what to do next

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

    AsyncTask not working

    Posted: 29 Nov 2020 11:59 PM PST

    AsyncTask not working

    Hi!

    I'm a beginner android developer. In my app, I want to use Async task for background run. However, it's giving me this.

    https://preview.redd.it/8mk30bwa3c261.png?width=507&format=png&auto=webp&s=f74ebf2a6ddbd02e184c3dec4154c09b076aaba2

    May I know how to make it work? Thanks!

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

    No comments:

    Post a Comment