• Breaking News

    Friday, June 25, 2021

    Android Dev - Weekly Anything Goes Thread - June 25, 2021

    Android Dev - Weekly Anything Goes Thread - June 25, 2021


    Weekly Anything Goes Thread - June 25, 2021

    Posted: 25 Jun 2021 06:00 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Google to Android devs: Support more form factors, get a higher sales cut

    Posted: 25 Jun 2021 01:35 PM PDT

    Navigating with Animations in Jetpack Compose

    Posted: 24 Jun 2021 11:51 PM PDT

    clean architecture _without_ using reactive streams

    Posted: 25 Jun 2021 10:10 AM PDT

    Here's a sample implementation of clean architecture _without_ using reactive streams that I've been working on these last few weeks. It'll look a little different to what you are used to probably (there are no stateless UseCase classes for a start). https://github.com/erdo/clean-modules-sample

    inevitable anonymous androiddev downvoters: please tell us what you are thinking, we might all learn something ;)

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

    What was the most difficult thing for you to understand while learning Android development?

    Posted: 25 Jun 2021 05:01 AM PDT

    Now I'm trying to learn Hilt & Dagger and it seems the most horrible thing I had encountered so far. I did not write any code yet, just read A LOT of docs and tutorials, but I feel like I'll never understand.

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

    Been out of Android dev for a few years. What's the most important things for me to read up on?

    Posted: 25 Jun 2021 04:37 PM PDT

    Basically I started my dev career as a self taught Android developer, but have slowly transitioned into doing more backend and SPAs. But I'm now in a situation where I've got an Android app on the horizon, so I'd like to catch myself up on what are the best practices nowadays. For reference, I haven't really progressed since just before AndroidX was released, and Kotlin was starting to be more widely adopted.

    So far I've been mostly reading up on the new Jetpack libraries and about some of the Kotlin patterns, but I'm wondering if there's anything else I should be focusing on? Additionally, are there any good clean architecture repos that I should be looking at?

    Any suggestions would be greatly appreciated

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

    I made a free. open source note taking application!

    Posted: 25 Jun 2021 04:30 PM PDT

    Hi, guys. I just recently released my first open source application to the Google Play Store. It is Grafobook, an offline note taking application. Some of the features are:

    • Create, edit and delete notes
    • Rich text support (bold, italics, underline, strikethrough, highlighting, text color)
    • Add tags and colors to your notes to organize them
    • Attach a reminder to your notes and get notified
    • Search your notes by name and content in the order that you want
    • Customize your application theme
    • Duplicate notes (1.1 feature)
    • Backup your notes, share them and import them (1.1 feature)
    • Export notes as the exclusive .gfbk format or as an html file (1.1 feature)

    The application supports Android 7 and higher, and is translated to english and spanish.

    If you want to know about the creation process, I have a video where I try to create the application in just 10 days! (The features that have the "1.1 feature" thing are not shown in the video, as that video is just for the 1.0 update. The 1.1 video will come out very soon).

    Google Play Page Github Repository (Source code)

    I really appreciate all feedback. If you want to suggest some feature, report a bug or just share your opinion, you can do it in the comments of this post or in the comments of the youtube video. I always try to reply quickly. Thank you so much!.

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

    Isn't filtering app reviews against Google Play policy? Like prompting a user "Do you like the app", if yes redirect to Play Store page, if no do nothing/show a form?

    Posted: 25 Jun 2021 09:51 AM PDT

    I see many apps do this, including Google apps, but how is that not "manipulating ratings" (which is not allowed)? Can I report Google apps to Google Play for violating their own policies?

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

    There appear to be ways to circumvent the user-controlled accessibility settings of font size and display size. Do you all do this?

    Posted: 25 Jun 2021 03:15 PM PDT

    So I am working on my app and am kind of hung up on how to go about dealing with accessibility settings. My app looks great when everything is set to default for font size and display size under accessibility settings.

    But when testing my app and adjusting the font size and/or display size settings, my layout starts to get real buggy and ugly. I understand the benefit of the accessibility settings for users. But, at the same time, it kind of ruins my app and if I were to start with a smaller text size in the first place, sliding the font size larger will just end up looking like a larger font size I could have already chosen, so it's not like it's always going to necessarily help the user.

    Autosizing text, which appears to be a very nice feature, as well as percentage based guidelines become kind of useless features because they don't work when those 2 accessibility settings are changed.

    Looking on stackoverflow, there appears to be a couple of ways to get around having the font size/display size accessibility settings affecting your app.

    What do you guys do? Do you circumvent the font size/display size accessibility settings or try to accommodate those 2 settings? And if you do try and allow for font size and display size sliders to be accommodated, how do you go about doing this?

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

    Is it possible to create an app like ( OnePlus's ZenMode)?

    Posted: 25 Jun 2021 12:33 PM PDT

    As the title suggests I want to add some create ZenMode app with a lot of customization, is it possible? I did some search about that and I found that the problem with changing the lock screen to MyApp one, the locking part, and the timer might be possible. actually, there're some apps in the market doing it. I'll appreciate any help

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

    What is Google's policy on accepting in app payments that aren't via the play store

    Posted: 25 Jun 2021 12:07 PM PDT

    Say you were to have a credit card checkout feature in your app. Say your app had functionality so that customers would be referred elsewhere to be sold something? What I'm trying to pin down is what is where the google commission of 15/30% ceases to apply. Thanks!

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

    What's the best way to learn about the Canvas?

    Posted: 25 Jun 2021 07:59 AM PDT

    I intend to move toward graphics-heavy structures, creating my own on-screen buttons using the canvas etc. How can I learn inside-out how this works?

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

    Incorporating crypto payment against policies or not?

    Posted: 25 Jun 2021 06:01 AM PDT

    Say if I were to link to an ecommerce website that uses crypto for payments, will that be against Google Play policies?

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

    Open Source projects/libraries with at architecture/system design

    Posted: 24 Jun 2021 08:14 PM PDT

    As the title suggests, are there any open source projects or libraries that have their architecture explained. Could be a good learning resource.

    submitted by /u/WhyGod-Why
    [link] [comments]

    Genymotion Copy-Paste.

    Posted: 25 Jun 2021 02:07 AM PDT

    Guys,it's not possible to paste anything even if it's copied from the inside of emulator,is there any solution to this?

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

    Microsoft announced that windows 11 will support android apps, Do you think it gonna be better than the emulator for testing APKs

    Posted: 25 Jun 2021 05:20 AM PDT

    TWA autocloses on firing chrome intent

    Posted: 25 Jun 2021 04:47 AM PDT

    What I want is to CustomTWAActivity to not close and keep on running.

    I have a MainActivity that starts a TWA (Trusted Web Activity based on CCT protocol). I have extended the TWA Launcher with a Custom Class so that I can override its onNewIntent Method and do some work.

    From Main Activity I call the CustomTWAActivity like this:

     val intent = Intent(this, CustomTWAActivity::class.java) val args = call.arguments as String? if (args != null && args.isNotEmpty()) { intent.data = Uri.parse(args) startActivity(intent) isTWAOpen = true } 

    TWA opens up a website that then in turn fire a chrome intent that is received by the CustomTWAActivity. The intent-filter is added inside the Activity in Manifest File like this:

     <activity android:launchMode="singleTask" android:name=".CustomTWAActivity"> <!-- Edit android:value to change the url opened by the Trusted Web Activity --> <meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL" android:value="https://app.skillclash.com" /> <meta-data android:name="android.support.customtabs.trusted.ADDITIONAL_TRUSTED_ORIGINS" android:resource="@array/additional_trusted_origins" /> <intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="https" android:host="app.skillclash.com" /> </intent-filter> </activity> 

    I have added a launchMode of **singleTask** so that it receives the intent in onNewIntent and a new Activity is not created in the stack.

    I receive the new intent inside the CustomTWAActivity's onNewIntent method, the task is done first and then TWA closes on its own. Meaning CustomTWAActivity finished method is called automatically. And the control goes back to MainActivity

    This is how onNewIntent is overriden:

    class CustomTWAActivity: LauncherActivity() { override fun onNewIntent(intent: Intent?) { super.onNewIntent(intent) Log.i("intent in launcher", intent?.dataString?: "no intent data received") if (intent != null) { if (intent.action === Intent.ACTION_VIEW) { val value = intent.dataString TWAUtils.onNewIntentReceived(value) } } } } 

    What I want is to CustomTWAActivity to not close and keep on running.

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

    What is Intel’s Bridge Technology that will power android apps in Windows 11

    Posted: 25 Jun 2021 06:20 AM PDT

    Hey guys, checkout this android library that animates your text like its being hand written. https://github.com/sarnavakonar/TextWriter Dont forget to give it a star ⭐

    Posted: 24 Jun 2021 10:10 AM PDT

    No comments:

    Post a Comment