• Breaking News

    Thursday, February 18, 2021

    Android Dev - Google publishes guidelines on how to build a high-quality Android app

    Android Dev - Google publishes guidelines on how to build a high-quality Android app


    Google publishes guidelines on how to build a high-quality Android app

    Posted: 17 Feb 2021 08:29 PM PST

    App update

    Posted: 18 Feb 2021 06:43 AM PST

    Has anyone gotten his app updated in last 15 days cause my app stuck and doesn't get updated for 15 days? Is there any updated in google play policy? I'm from the Middle East

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

    Does this mean AdMob will start limiting ads if apps are not published on a "supported app store"?

    Posted: 18 Feb 2021 12:08 AM PST

    Received this mail for new review process for new apps. It specifically mentions:

    All monetizing apps will eventually need to be linked to an app store. We recommend linking your apps as soon as they're listed and then submitting for review to avoid interruptions in monetization.

    So looks like no ads for apps published independently on XDA as apks or elsewhere.

    Full mail: https://github.com/SayantanRC/URLs/blob/master/assets/Gmail%20-%20Action%20required%20to%20lift%20ad%20serving%20limit%20for%20newly%20linked%20apps.pdf

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

    Best practice, refering to inflated view-elements?

    Posted: 18 Feb 2021 06:45 AM PST

    Hello,

    Hobby android programmer here just playing around. Making an App to keep track of dart scores ATM, so I figured out the basics with the layout XML construction and how to make pre-defined screens. Now I am at the point where I want to make the screen based up on a object-model in runtime (In this example if I have 1 player I just inflate 1 scorelayout, i have 2 or more I will inflate multiple)

    figured this out aswell, now what I cant find is when I have the inflated screen, how do I change elements on that particular view from the outside world. If I inflate the same view multiple times the Id is going to be the same so I cant do findbyid. Do i have to keep track of the viewreferences by myself? Does android have something for this? Any tips?

    thanks

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

    AdMob App Open ads CTR

    Posted: 17 Feb 2021 09:47 PM PST

    I implemented App Open ads in my app and the CTR seems to be high, around 7.5% with 70k impressions and cap of 1 ad each 2 min...

    These are from yesterday, and I had 77k active users, so it's pretty much 1 impression per user. I had 5.2k clicks out of it and they were pretty much unique clicks (no user clicked more than once).

    Is this normal? I'm just concerned that it may be "invalid traffic" and get my account suspended. But on the other hand, how can I get invalid traffic with app open ads? I implemented basically by copying the code from admob sdk page and pasting to my app.

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

    How to setup Bulk subscription in-app?

    Posted: 18 Feb 2021 12:10 AM PST

    Hi, Noob here. I have an android app, developed with the help of a freelancer. The app uses Google's in-app subscription to collect subscription fee from individual users. Now an organization has contacted me asking if they could buy bulk subscription for its members. They want to be able to view, add or remove their members and they are willing to pay for the bulk subscription.

    Is there a way to implement this using in-app subscription?

    I understand that there are a lot of B2B apps that have an enterprise plan which utilizes bulk subscription. How are they implementing it?

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

    Any good image editing libraries out there?

    Posted: 18 Feb 2021 05:47 AM PST

    I am looking for a library to be able to process images in my app and edit them. While looking around I found some interesting ones with abilities to add filters and such, but I am looking for something with the ability to smart fill parts of the picture(e.g I have an image of a wall with an image hanging from it to be able to select the image and remove it, filling it in with the same color of the wall).

    Any idea if there are some good libraries out there for that?

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

    Problem with persistent bottom sheet

    Posted: 18 Feb 2021 08:27 AM PST

    Hi. I´m currently trying to implement a bottom sheet but I can´t seem to drag it up or down which I want. I feel like I´ve copied different tutorials but nothing works. Does anyone know what´s wrong with my code? Thanks

    The sheet:
    https://pastebin.com/940gzD2R

    The main layout. Sheet included at line 161.
    https://pastebin.com/5eT857t4

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

    What is the best react native ui kit for you ?

    Posted: 18 Feb 2021 07:42 AM PST

    Hi , i am new to react native. When i make a web applications using react i always use tailwind because it helps me to build fast prototypes . So i wonder is there a similar ui kit for react-native mobile apps ? (bootstrap,tailwind etc.) i dont want to use regular styling because i think it is a slow process.

    I came across with this but it doesnt give full utilties of tailwind.

    I am waiting for your suggestions thx for reading

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

    Using the Maps SDK for Android, is it possible to save / plot a route in the same manner as you would create directions with regular Google Maps and save / share said route?

    Posted: 18 Feb 2021 03:13 AM PST

    So say I want the user to be able to plot a running route. I want the user to be able to save this route (in the same way you can share directions you plot with Google Maps and share it with other users who can then try out the route themselves - the app directing them to the starting point and map directing them along the route of the run.

    I also want to be able to pull specific data from the route as well such as if the user intends to take the run at 5pm the route can flag areas of high traffic and warn of potential air pollution issues.

    Going through the Maps SDK documentation it only appears to have the ability to draw polylines which only appears to go someway toward achieving what I want. Any help or suggestions appreciated.

    Edit : I was looking at some 3rd party libraries but they all seem to be paid subscription (not really possible for a uni project) or appear to have disappeared

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

    Detect app is launched from Super Clone

    Posted: 18 Feb 2021 01:55 AM PST

    Other Clone apps generates a new APK with different application ID but Super Clone launches the app inside itself 🤯

    Any way that you guys know to detect is app is cloned using Super Clone?

    Thanks!

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

    The better way of Error Handling In Android

    Posted: 17 Feb 2021 09:20 PM PST

    The better way of Error Handling In Android

    Let's say I have this architecture in my app

    https://preview.redd.it/3gm4yols76i61.png?width=920&format=png&auto=webp&s=cc17a92a0b37f2607474b10fd75a12c4a6f98bdf

    My question is when is the best time to handle the error?

    1. Should I let the network source and cache source throw an error, and we handle all the possible error in the repository layer
    2. Should I handle the error in the framework-specific, and return a sealed class that present is the network call error or success
    submitted by /u/No_Acanthocephala_79
    [link] [comments]

    Custom intents for Android app actions, how long to deploy?

    Posted: 18 Feb 2021 03:16 AM PST

    I have implemented custom intents for my application as described here:

    https://developers.google.com/assistant/app/custom-intents

    I have published a release with this functionality to the Play store and 10 days ago I got this email: Congratulations, the App Actions integration for <app package> was approved, and is now in the process of being deployed!

    Does anyone have any clue as to how this "deployment" process works? All I know is that the actions are still not functional (when I test via Ok Google..). I have no idea if this long delay is typical or how/where I can check on the deployment status. In true Google style everything is very opaque and there is no support function that I can find to query this anywhere.

    Has anyone here been through this before and can advise how long deployment took, or if there is any way to get visibility of what is happening?

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

    Pages must fill the whole ViewPager2 (use match_parent)

    Posted: 18 Feb 2021 12:45 AM PST

    another wording could be: "Viewgroup is matchParent(mp)/wrapContent(wc) child is mp/mp , what will be the exact rendering behavior?


    So This is a weird bug that i have encountered. after some searching around i was able to fix this but i am not sure if its a correct fix or not. So from what i can guess, a viewpager 2 needs to have a knowledge of children's height before hand to activate those swipe animations. thus it insists that its the height of children xml must be match parent.

    i previously used the following xml configurations:

    ``` //viewpager <androidx.viewpager2.widget.ViewPager2 android:id="@+id/vpListItems" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" app:layout_constraintTop_toBottomOf="@id/viewLine" />

    ```

    //viewpager child

    ``` <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content">

    <androidx.recyclerview.widget.RecyclerView android:id="@+id/rvDetails" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent" /> 

    </androidx.constraintlayout.widget.ConstraintLayout>

    ```

    // recyclerview child

    ``` <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content">

    <com.google.android.material.textview.MaterialTextView android:id="@+id/tvPoint" style="@style/text_medium_roboto" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent"> </com.google.android.material.textview.MaterialTextView> 

    </androidx.constraintlayout.widget.ConstraintLayout> ```

    and i got that crash(Pages must fill the whole ViewPager2 (use match_parent)). but once i used:

    ``` //viewpager child

    <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> // notice here

    <androidx.recyclerview.widget.RecyclerView android:id="@+id/rvDetails" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent" /> 

    </androidx.constraintlayout.widget.ConstraintLayout>

    ```

    the crash got resolved. but now am unsure what is going to be the behavior for different pages? like say i have 4 pages in viewpager, each has a recyclerview and each receives say 5,10,3,and 4 points to render. what will be the final size of actual viewpager? is it going to wrap around for 4 points, 5 points or 10 points?? because there are other views surrounding the top and bottom of viewpager and this might push them out of screen, right?

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

    I always dreaded creating splash screens for my apps, so I wrote this Figma plugin to help by generating all the needed files for each platform from one design template.

    Posted: 18 Feb 2021 12:20 AM PST

    About Admob interstitial ads

    Posted: 18 Feb 2021 12:07 AM PST

    Hi,

    I'm making a lockscreen app and the view is made using service. What I would like to know that if I show an interstitial ad in the following manner:

    1. User is viewing lock screen
    2. User swipes up or in any direction to dismiss lock screen
    3. Lock screen shows "please wait unlocking"
    4. Lock screen gets hidden and the interstitial ad is shown
    5. When the user clicks or dismisses the ad, the lock screen shows "unlocked" and lock screen is now hidden

    Will the following actions be in any policy violation?

    submitted by /u/Marvelous-Tech
    [link] [comments]

    Fast flipping between front and back cameras in Camera1 API?

    Posted: 17 Feb 2021 05:03 PM PST

    I am aware that Camera2 API allows access to both cameras however I am focused on reusing old retired phones as part of my sensor network project. My understanding is that for the older Camera1 API only one camera could be opened for use at a time and then would need to be released before making use of second (except on a limited range of models whose manufacturers had elected to provide additional capabilities) which I presume comes with a consider amount of time overhead - is there any way around this in order to be able able to flip between the two cameras on legacy devices? I'm looking to achieve at least 10FPS on each camera in order to do visual odometry.

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

    Android game development

    Posted: 17 Feb 2021 09:53 PM PST

    How should I start making an android game?

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

    According to this video, Flutter can have extreme animation jank issues on iOS that can effectively make apps unusable in production

    Posted: 17 Feb 2021 05:06 PM PST

    How slow is Android Studio Navigation Editor for you?

    Posted: 17 Feb 2021 11:47 AM PST

    Navigation Editor looks like a nice tool until I start using it.
    I would say I don't have a weak computer MacBook, 2,3 GHz 8-Core Intel Core i9 with 16 GB RAM, but when I open this editor in Android Studio it feels like a slow-motion movie and it continues even in the code editor. Everything is lagging and I see a loading indicator from time to time. I have to close the Android Studio to make it work normally. And I'm not saying about something horribly complicated it's 130 lines XML nav. graph with 10 fragments. What is your experience?

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

    bug-squash and project-code completion interview rounds

    Posted: 17 Feb 2021 07:06 PM PST

    just begun full-loops for senior and staff android roles with some no-name startups.
    there will be a bug-squash or possibly a small sample-size project-code completion interview round.

    i don't fix 1 bug in 1 hour in familiar code-base with familiar and detailed steps to replicate at current work-place.

    most of these bug-squash interviews are expecting me
    1) to fix more than 5 bugs, at least
    2) in unfamiliar code-base ( although small, sample-size )
    3) that i have just downloaded as a zip-folder, unzipped,
    4) loaded into android studio with plenty of gradle-sync issues that i fix as quickly as possible,
    5) not very detailed steps to replicate or instructions in the readme file either.
    6) interviewer doesn't appear to be helping me in understanding / comprehending what am i even looking at.
    7) on top of everything, i have to entertain the interviewer verbally about alternate solutions / architecture practices of how i'd do the sample project-codebase more clean.
    8) racing against a time-limit of 1 hour,
    9) in a remote video-conference.

    the result is an obvious rejection, i am not adequately hands-on code-crunching 'senior engineer' unsuited for the role ? i am in a 30% coding and 70% meetings kind of a role. every senior android interview role appears to only test for 200% code-crunching skills ?
    who clears interview rounds like this without faltering at all ?

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

    At what stage of your project do you setup CI?

    Posted: 17 Feb 2021 12:48 PM PST

    1. At the beginning
    2. When it starts getting serious i.e. some users
    3. Never! yolo!!

    also do you get push back from your manager to not spend time setting up CI?

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

    No comments:

    Post a Comment