• Breaking News

    Friday, August 28, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 28 Aug 2020 05:40 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]

    Why exception handling with Kotlin Coroutines is so hard and how to successfully master it!

    Posted: 28 Aug 2020 01:50 AM PDT

    Improved Localization with Custom TextView Effects

    Posted: 28 Aug 2020 07:21 AM PDT

    Understanding Jetpack Compose — Part 1 of 2

    Posted: 27 Aug 2020 09:19 PM PDT

    Styled Texts for Android (Replaceable and Localizable)

    Posted: 28 Aug 2020 04:34 AM PDT

    Streaming android to pc smoothly.

    Posted: 28 Aug 2020 08:23 AM PDT

    Hey guys, does anyone know why streaming android to pc is hard. All the apps are just garbage. But streaming pc to android is so good. I get 10ms latency over wifi. But when I stream android to pc it is OK when playing a video but when you start scrolling it gets totally blurry and like 240p and the lag is like 2 to 3 sec.

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

    How to create a new database for each view in a recycler view

    Posted: 28 Aug 2020 07:44 AM PDT

    Hello..So,i have a recycler view and when i click each view a new activity starts witch has a sqlLiteDatabase that stores events in a calendar view..now, the problem is that when i click on any view from my ryceclerview the calendar activity starts but with the same values stored in the database.I want a new database for each view in my recycler view.Is that possible?

    i m new to android so i m sorry if my question isnt that well formulated

    submitted by /u/Carstica-Adrian
    [link] [comments]

    [Infographic] The Periodic Table of UX Elements

    Posted: 27 Aug 2020 11:31 AM PDT

    What's the deal with the alpha versions of androidx libraries

    Posted: 27 Aug 2020 01:24 PM PDT

    It seems Google loves to give us alpha and beta versions of various androidx libraries. At first I figured they were for bleeding edge development and not meant for use in production apps, but I've come to realize that's not the case.

    Take ConstraintLayout for example. The newly release stable 2.0.0 include fixes related to RecyclerView and the documentation for 2.0.0 RC01 specially states: "RecyclerView fixes (we recommend to update to recyclerview 1.2.0 alpha 5 or later)". Hence they recommend you use an alpha version of RecyclerView with the latest stable version of ConstraintLayout.

    Maybe I'm just old fashined, but I'm generally hesitant to use an alpha version of anything in a production environment. Yet I'm currently using recyclerview:1.2.0-alpha05 and material:1.3.0-alpha01 in one of my apps on Google Play.

    Am I missing something here or is this just how Google wants to play it?

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

    Naming convention for XML View ID's?

    Posted: 28 Aug 2020 04:13 AM PDT

    This is like a weird question, but I recently started with Kotlin and Android extensions. Before this, all my projects had a naming convention that I used to make findViewById calls easier.

    Before, I'd make it like this: If it was Signup MaterialButton in ActivityMain.xml, I'd give it ID as am_mb_signup (Initials of ActivityMain_MaterialButton_Signup). So it was easier making findViewByID calls for me that way.

    Now that I can directly reference ID's without those calls, I wanted to know what naming conventions others use (if any) for ID's?

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

    What do you think of my new enemy (Confusing shadow) for "This is not a sorcerer's job", my new game? It doesn't kill you, but it's kind of annoying https://youtu.be/0cfLzHzLVTk .

    Posted: 28 Aug 2020 04:05 AM PDT

    Do you use Arrow-kt (FP lib) in production? If so what components?

    Posted: 27 Aug 2020 07:20 PM PDT

    Do you use arrow-kt in your production apps? if so what components?

    • Arrow-Core
    • Arrow-Fx
    • Arrow Optics
    • Arrow Meta

    View Poll

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

    Trying to understand the relationship between Fragments and Activities

    Posted: 27 Aug 2020 09:50 PM PDT

    I'm a React developer diving into Android. It seems to me like Activities are basically React Container components and Fragments are React Presentional components (SmartComponents pattern).

    I'm working on an app that has multiple "minigames" we'll call them. There is always a minigame on screen, and the games have many options that exist in a slide up tray. The tray's contents changes depending on the current minigame and also includes the main menu.

    What I want here is a single Activity that shows two Fragments - the game, and the content part of the slidey tray, that both contextually change, right?

    Each minigame seems like it should logically have it's own Activity though since they're unrelated to each other. Can I make them Activities but dynamically load them without moving to a new screen visually?

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

    Jetpack Compose Basics - Lesson 2 - Add a picture

    Posted: 27 Aug 2020 11:06 PM PDT

    Trying to follow the original tutorial but I am stuck at Lesson 2 - add a picture step.

    I pasted the NewsStory composable code to my project, but as soon as I try to apply preferredHeightIn(maxHeight = 180.dp) modifier to the Image the application crashes on startup with the following exception:
    java.lang.IllegalArgumentException: maxHeight(656) must be >= minHeight(747)

    I do not specify max and min height explicitly (just following the tutorial), and if I increase the value to like 500.dp it works.

    Getting the same exception with different calculated pixel values on different device sizes.

    Does anyone experience the same issue?

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

    Show menu with icon along with text

    Posted: 28 Aug 2020 02:42 AM PDT

    My app was suspended because of the TapJoy Offerwall ads

    Posted: 27 Aug 2020 10:43 PM PDT

    So about 2 weeks ago I added the Offerwall ads by TapJoy which allows users to complete tasks and receive rewards as in-game Currency. I've seen one app with this Offerwall one time so I thought that this would be a great addition for my app too. I submitted the update and everything went well.

    Now 3 days ago I wanted to upload an update but it was rejected stating that:

    Issue: Violation of Interfering with Apps, Third-party Ads, or Device Functionality policy

    With this update I made a few updates to app functionality and also changed provider for the regular in-app ads. I switched from Appodeal to Admob.

    When I received this I first thought that this switch is the reason for it. Then i googled this issue and found that a lot of people had similar issues when they included Admob sdk. Also upon reading about this policy, most of the points were about ads interfering with users experience and popping outside of the app. None of this is happening in my app. So I submitted several updates. First I removed interstitials as a potential source of this problem - it also got rejected. The I removed google's ask completely in favor of MoPub. Still got rejected but no addition mail was sent.

    But today I received another email stating that my app violates Google Play policy:

    Your app contains content that doesn't comply with the User Ratings, Reviews, and Installs policy.

    They also attached a screenshot of the TapJoy Offerwall item which asks user to install another app and reach a certain level in it in order to receive reward.

    I know this is my fault for not reading the policy carefully but my question is did someone face similar issue and successfuly appealed Google after that and got their app reinstated? Basically should I fight Google or just knowing how bad it is just resubmit the app with different package name without TapJoy ads?

    Also how the fuck TapJoy offers the format of the ads that does not comply with Google Play policy and not say anything about it???

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

    Port forwarding for Android app development

    Posted: 28 Aug 2020 02:08 AM PDT

    What is the use case for more than one main activity in Android?

    Posted: 27 Aug 2020 07:29 PM PDT

    I would like to know what is the reason for having more than one activity defined as main? And what are some of the use cases? Thanks

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

    YouTube story

    Posted: 28 Aug 2020 04:59 AM PDT

    Can someone create an automate app or tasker task to get notified when new YouTube story is posted?

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

    ADB Episode 147: Jetpack Compose Alpha

    Posted: 27 Aug 2020 10:07 AM PDT

    YouTube story

    Posted: 28 Aug 2020 03:06 AM PDT

    Do you get notified if story is uploaded by a youtuber? If not how can one get notified?

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

    CircleMenu - FAB with beatiful circular menu

    Posted: 27 Aug 2020 01:43 PM PDT

    How to make an android app with networking?

    Posted: 27 Aug 2020 10:24 PM PDT

    I'm sorry if this isn't the right place to ask this question, but this is a question to be asked from professionals who can guide me.

    I'm a person (18m) fresh out of school. I've had c++ as a subject, but later on I realized that not having maths as one has made me unviable for most computer science courses.

    I want to learn how to make android apps.

    The reason I'm asking for your help and not referring some web blog is simply because I feel that getting a roadmap for the first time will help me develop a good foundation.

    I'm looking forward to developing an app with following things in mind:

    1. There are posts which can be upvoted.

    2. User accounts are there which can be linked to real identities of people (So a person can't have more than one account).

    3. A side menu which links to other parts of app.

    Currently this is what I have thought. Lastly, the greatest problem is how to implement networking in the app, so how does a novice go about that? You can help me by suggesting resources, books, languages to learn etc.

    Thank you for reading. Have a nice day.

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

    No comments:

    Post a Comment