• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, January 12, 2021

    Weekly Questions Thread - January 12, 2021 Android Dev

    Weekly Questions Thread - January 12, 2021 Android Dev


    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]

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

    Posted: 12 Jan 2021 05:27 AM PST

    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 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]

    Best ways to store data for a texting app

    Posted: 12 Jan 2021 03:57 PM PST

    Hi I'm currently working on a texting app and was wondering what is the best way to go regarding storing data . Account created , login, message sent etc. I don't want to store it in a local SQL server since I would like to make the apps public once it's done. Do any of you have any recommendations with the best API or technology to do that ? Should I rent a server or use the cloud. Please help and thank you!

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

    Android Studio Basic Threads -> Thread Interruption;

    Posted: 12 Jan 2021 12:03 PM PST

    Hey guys, I read a bit about Threading but I seem to be missing something basic.Here's my Thread code:

     Thread t = new Thread(){ @Override public void run() { try { while (!Thread.interrupted()) { ///do stuff } dos.writeUTF("Disconnect"); System.out.println("Has Disconnect"); } catch (UnknownHostException e) { } catch (IOException e) { } } }; 

    and here's my button code (which should interrupt the thread and should break the while loop, which supposedly should trigger the dos.writeUTF and the System.out.printIn

     @Override public void onClick(View v) { switch (v.getId()) { case R.id.btnConnector: t.start(); System.out.println("Connect"); break; case R.id.btnDisconnector: t.interrupt(); break; default: break; } }; 

    Is it the case that the while loop is not running all the time? This seems to be obvious since when I try to Print something inside of it, it only gets printed once.Yet why do we need this while loop then?

    Sorry if my question is confusing, but, if it is, it's probably because I'm a bit confused at the moment..

    submitted by /u/Malkiq_
    [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]

    android development roadmap

    Posted: 12 Jan 2021 09:06 AM PST

    Can someone guide me on a roadmap to android dev for a complete beginner. I have basic knowledge of computer science and I have some experience in python and JavaScript. However mobile development is completely new to me.

    submitted by /u/The_Messiah1
    [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]

    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]

    Dependency Injection Ep.1 | The illusion of simplicity!

    Posted: 12 Jan 2021 12:39 PM PST

    How to debug Xamarin.Android App with PRIVILEGED access?

    Posted: 12 Jan 2021 11:47 AM PST

    Hi all,

    Recently I have faced with issue that on my Android Mobile Phone I got PairingVariantConsent

    I have read documentation and seems like it should be available only on Android.Things device ...

    But anyway, then I tried to `device.setPairingConfirm(true)`, but got the error PRIVILEGED access

    I have added in manifest PRIVILEGED , but it does not help

    Then I've found that https://forum.khadas.com/t/bluetooth-pairing/2731/2 where similar issue and it happens because application is not installed properly ...

    But it is installed with debug mode in Rider IDE ...

    Is there a way to solve it ? Seems like this issue is general and not related to Xamarin framework ...

    submitted by /u/redradist
    [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]

    Can anyone tell me what package adaptive brightness or auto brightness would be in?

    Posted: 12 Jan 2021 10:42 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]

    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]

    [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]

    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]

    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]

    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]

    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]

    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

    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]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel