• Breaking News

    Tuesday, January 12, 2021

    Android Dev - Weekly Questions Thread - January 12, 2021

    Android Dev - Weekly Questions Thread - January 12, 2021


    Weekly Questions Thread - January 12, 2021

    Posted: 12 Jan 2021 06:00 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?

    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]

    How are you guys making side money with your android skills?

    Posted: 11 Jan 2021 11:25 PM PST

    Hi everyone, sorry if there's a better subreddit for this but I'm not familiar with any other than /r/cscareerquestions which is more general.

    I'm a developer with mostly backend/API experience, but in the last 18 months I've learned android dev (Kotlin) at my job and so far shipped multiple SASS apps by myself for the company that I work at.

    My question is how are other android devs making side money these days?

    If you were to take a week or two off you full-time job to build an app that generates a small but steady flow from ad-revenue each month then would you go for a simple game or a weather app?

    Lastly, if anybody knows of any good resources for how to best reach an audience for an app built by one person - that would be greatly appreciated!

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

    Google is reportedly working on an app hibernation feature for Android 12

    Posted: 12 Jan 2021 05:27 AM PST

    Good beginner-course for learning Kotlin?

    Posted: 12 Jan 2021 04:35 AM PST

    Hello.

    I am looking for a good beginner-course for learning Kotlin.
    I have an account at Udemy, but can`t seem to decide which course is the best.

    Any tips?

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

    Spy on your competitors app reviews!

    Posted: 12 Jan 2021 08:21 AM PST

    Hello fellow app devs!

    I made a Slack bot that sends your app reviews to the Slack channel of your choice. It has made replying to all of the Play Store reviews I receive very easy.

    Then I realized there is a great 2nd use case for this bot! I created a new Slack channel called "Competitor-reviews" and added all of my apps competitors to the feed. It really does give me more insight into what I could be doing better in my app and what my competitors strengths and weakness are.

    I wrote a blog article about it if your interested!

    https://appreviewbot.com/blog/competitor-app-reviews-in-slack/

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

    How to Build a Fitness App? UI-UX Design Case Study

    Posted: 12 Jan 2021 06:23 AM PST

    Hey everyone! Our recent post is about how to create a fitness mobile app. We focused on the main stages of developing a user-friendly mobile app following UI-UX best practices. You might find it worth sharing.

    https://2muchcoffee.com/blog/how-to-build-a-fitness-app-ui-ux-design-case-study/

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

    Best Practices for Handling App Security with API Key

    Posted: 11 Jan 2021 10:59 AM PST

    Hey, all. I hope this doesn't fall under the "help me" category as I am looking for more of a general discussion on best practices. If it does, I will remove it.

    Anyway, I'm a web developer who may be working on an app for someone (I'm undecided on using Vue-Native/React-Native, NativeScript, or Ionic 5 if that has any bearing), and I was hoping to bounce a couple questions off of those who are more experienced:

    The app requires third-party API integration using an API key for authentication; am I correct that this API key shouldn't be available within the app's code? Assuming that's the case, would the preferred method to handle this be using a server-less function to store the API key via an environment variable and make the call there?

    Also, once I have authenticated the app, and eventually retrieved the user info, what would be the best way to store that the user has logged in? Is there a pretty standard TTL recommended for mobile apps?

    Anyway, sorry for all the random questions. If anyone is able to assist, it would be greatly appreciated and greatly help with planning the architecture. Thank you!

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

    [Free Webinar in 30 Minutes] Your World Class Mobile Testing Experience Starts Now ��

    Posted: 12 Jan 2021 08:31 AM PST

    Join us for a live webinar with Jonathan Lipps (Project Lead for Appium) & Marat Strelets (CPO and Co-Founder at TestProject). They will dive into:

    1. Appium intro and first-hand insight into what's coming up for Appium 2.0

    2. Discuss Appium challenges, how to overcome them & reduce flakiness ✅

    3. Live demo TestProject's new AI technology for mobile testing! 🤯

    4. Final notes and live Q&A time 📷

    Just getting started with mobile testing or already an Appium ninja? This is a MUST session for you! Save your seat here 📌

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

    How can I make resizable buttons in my app?

    Posted: 12 Jan 2021 08:27 AM PST

    How can I make resizable buttons in my app?

    There are many apps that have the ability to resize buttons or anything else like the image below.

    https://preview.redd.it/3p6hjx23hxa61.png?width=131&format=png&auto=webp&s=b07bb627d645fb6f65c16c1c916094cf84757e1b

    How can I do something like that from scratch?

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

    Root of Trust

    Posted: 12 Jan 2021 08:21 AM PST

    I am reading the Android documents on the page 'verifying boot'.

    My understanding of the 'root of trust' is that it is the code segment burnt into ROM containing the vendors public key and verification mechanism.

    The documentation then says:

    'The expected hashes are typically stored at either the end or beginning of each verified partition, in a dedicated partition, or both. Crucially, these hashes are signed (either directly or indirectly) by the root of trust.'

    Can I confirm that this signed hash is also referred to as a digital signature?

    Also, when it says 'signed by the root of trust' are they referring to the vendors private key, rather than the root of trust on the device?

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

    Ensuring Mobile App QA after Development

    Posted: 12 Jan 2021 08:20 AM PST

    You've validated, designed and developed your app. However, according to statistics The top reason why people deleted apps after installing was because of crashes or installation errors. This figure amounted to around 62%.

    We've therefore put together this comprehensive guide to discuss the procedure, tools and best practices involved in mobile app QA to ensure you're building for success.

    The Complete Guide to Mobile App QA.

    Let us know what you think?

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

    How you keep the single responsibility principle in adapters/views

    Posted: 12 Jan 2021 07:40 AM PST

    Hi,

    I made an assessment a few weeks ago and yesterday I got my feedback. I really enjoyed doing it and I got some constructive feedback about it.

    The repo can be found here: GitHub link

    There is one thing that got under my radar. The Single responsibility principle that wasn't respect in adapters, views, I really struggled to do this but I couldn't imagine any other solution, how you would do that?

    The app is the revolut exchange currency, here is a youtube link

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

    MVI Architecture with Kotlin Flows and Channels

    Posted: 12 Jan 2021 06:59 AM PST

    This is my favorite architecture at the moment. It would work even better with the Compose!

    https://ysfcyln.medium.com/mvi-architecture-with-kotlin-flows-and-channels-d36820b2028d

    via https://androidboss.com

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

    Best way to accept donations for a open source project?

    Posted: 12 Jan 2021 06:15 AM PST

    I've been working on a open source project for nearly two years and it's gotten quite popular. I had no plans for monetization but users are asking how they can contribute with donations.

    Any recommendations on the best way to do so? Google doesn't seem to accept any payment processing in their apps that do no rely on IAP or subscriptions.

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

    eYeOn : a free app feeding live video through Internet and also LAN. Basically turning Android to CCTV camera, where other Android device can monitor

    Posted: 12 Jan 2021 06:00 AM PST

    You can also match the camera with your Telegram account and see pictures/videos captured by the other Android device via Telegram messenger everywhere.

    Play Link:

    https://play.google.com/store/apps/details?id=com.dataliz.telegramcccam

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

    What has been your greatest challenges with Android Development?

    Posted: 11 Jan 2021 05:37 PM PST

    This may be a quite dull idea but im genuinely interested in others experiences..

    I dabble in software design, a hobbyist really. I don't have problems with programming but my biggest stumbling blocks have been:

    1.I tried Eclipse and AIDE years ago, Eclipse completely defeated me as a noob and AIDE was good but hard work with no assistance from the software. I am using Unity now, and If that Eclipse experience had been like Unity at all i would possibly have stuck with app making. rather than take a 5 year break.

    1. Google Play in the early years, Constant changes to the developer console and mandatory requirements appearing out of thin air became a chore. It seems much more streamlined now. I cant really fault it.

    2. Finding chances to actually write and test interesting code without needing SDKs and all sorts of extra resources outside my IDE ( i found this later with Arduino which helped me find simple applications for my code ideas, and actually complete a bunch of hardware projects, learning along the way from lots of coding with quick results)

    Its been a long time coming I have had a chance to make an Android app that doesn't suck. Hoping i find what im looking for in 2021 ;)

    Android development seems difficult compared to PC development, I have much respect to all of you for being involved in it. The front page of this sub is utterly bewildering ;0

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

    Android studio not showing anything in design view?

    Posted: 11 Jan 2021 11:53 PM PST

    Hello,

    I am running the latest version of android studio. As i'm working in the XML code nothing is adding to the design view. I've tried multiple things including restarts, re syncing, etc. and nothing is working.

    I am not able to preview any of the work that I am doing in design view.

    There are no errors in my xml code.

    Anyone know how to fix this?

    Thanks

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

    Kotlin: RecyclerView with multiple button (click listeners of those buttons)

    Posted: 12 Jan 2021 03:28 AM PST

    I have RecyclerView with TextView multiple buttons (BTN1, BTN2, BT3), and I want them to do differend things, lets say TextView click --> "TextView was clicked", BTN1 --> "BTN1 was clicked", etc...

    in my RecyclerViewHolder i have set ClickListeners for all those items and I also did this (following yt tutorial)

    override fun onClick(v: View?) { val position: Int = adapterPosition if (position != RecyclerView.NO_POSITION) { listener.onItemClick(position) } } interface OnItemClickListener { fun onItemClick(position: Int) } 

    And in my main activity I do this:

    override fun onItemClick(position: Int) { Toast.makeText(this, ItemList[position] , Toast.LENGTH_SHORT).show() } 

    So all clicks displays same, but how can I determine when was clicked BT1, when TexTView, when BT3, etc? thanks!

    submitted by /u/harambe1999-2016
    [link] [comments]

    android-studio-multi-workstations-guide.md

    Posted: 11 Jan 2021 09:30 PM PST

    How I can sell my App easily? is there any good App marketplace where I can sell my app easily? I found two marketplaces. What is your recommendation?

    Posted: 12 Jan 2021 12:43 AM PST

    Last few days, I research how I can sell my app online. Because I have faced a bitter experience in the freelance marketplace. So, I try to sell my app directly in a marketplace.

    First, I found a marketplace named flippa. But I face a problem there. They just take revenue generated apps. But my app is new in the play store. So, I can't sell my app there.

    Then, I found a marketplace named AuctionVilla. They are newbies as an app store marketplace. But I can list my apps here easily. Their process is easy. But buyers are not available so much. I am waiting for valid bidding.

    Is there any other marketplace where I can sell my app easily? Your suggestion will be much appreciated.

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

    Why am I receiving a credit alert from Google Play store?

    Posted: 11 Jan 2021 11:25 PM PST

    I published a free app to play store a few weeks ago (only app I have on play store). Yesterday I received a credit alert and the description was "Web Pur @ -g.co/helppay#". I'm really confused. Has anybody experienced something like this?

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

    I feel so happy today. It's time to give back.

    Posted: 11 Jan 2021 11:39 AM PST

    I have been through times when I had tried to evade AWS just because it seemed too complex. I did not know the capabilities. A pure noob.

    But then I made a promise to delve into it for another time. And viola!!! I did learn a lot. I tried my hands at different tools and have a good grip over AWS now.

    I found many students struggling like I did and so I decided to break the myth and make a video and help them.They are new Android developers but did not know how to use Parse Server with AWS. So, I decided to give it a try and help them and others.

    I put it in a lot of effort for this video to be as simple as possible and tried my best. But again, I am new to this and hence will appreciate any feedback. I will be very happy if this video makes even one learner's life easy. I feel happy today.

    https://youtu.be/H7KL_VKbSBM

    Thanks a ton all of you.

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

    Books on theory?

    Posted: 11 Jan 2021 04:34 PM PST

    I'm taking the Udacity course on android dev with java and I really want to understand and learn why the code works. Exactly what happens under the hood. Does anyone have any suggestions?

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

    Expandable lists in Jetpack Compose

    Posted: 11 Jan 2021 10:32 AM PST

    Fragment Shader for adding a color tint

    Posted: 11 Jan 2021 06:34 PM PST

    Hi, I am totally new to shaders and really hoping to get some help. I need a simple fragment shader for adding a color tint to an image in such a way that it "Discards the source pixels that do not cover destination pixels. Draws remaining source pixels over destination pixels."

    I'm using OpenGL on Android.

    alpha_{out} = alpha_{dst} C_{out} = alpha_{dst} * C_{src} + (1 - alpha_{src}) * C_{dst} 

    https://developer.android.com/reference/android/graphics/PorterDuff.Mode#SRC_ATOP

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

    No comments:

    Post a Comment