• Breaking News

    Tuesday, December 8, 2020

    Android Dev - Weekly Questions Thread - December 08, 2020

    Android Dev - Weekly Questions Thread - December 08, 2020


    Weekly Questions Thread - December 08, 2020

    Posted: 08 Dec 2020 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]

    Totally WTF Play store rejection

    Posted: 08 Dec 2020 02:56 AM PST

    Totally WTF Play store rejection

    Hello guys, I'm posting another "playstore rejected my app" story because ... I really need to share this guys... for my mental health, and hopefully it will help some of you in a future playstore rejection journey.

    Ok so, 4 days ago we received a lovely email from google playstore:
    "Action Required: Your app is not compliant with Google Play Policies"

    The mail mention the following issue:

    https://preview.redd.it/zjg5go7txx361.png?width=1142&format=png&auto=webp&s=96ab7a47015d7d31440f70371ee2bb1655b81b7c

    Which is quite weird because there is no text like this in our description, we doubled check, we tripled check, I mean ... not even close... nor in english, nor in french.

    We decided to release another version of the app just to try, thinking that the validator (if it was human) was maybe drunk or something...
    And of course we received the same mail, (almost):

    https://preview.redd.it/qjycacuuxx361.png?width=1190&format=png&auto=webp&s=0bbde5ec04b4e019e69d051a8952f3f57831fdfb

    (Of course the screenshot linked in the mail is not accessible and redirect to `login.corp.google.com`... otherwise it would have been easy ... LOL)

    (really modern UI BTW, I think we should all display random photos on our login page)

    https://preview.redd.it/gex7rny9yx361.png?width=2828&format=png&auto=webp&s=f73d768cd3cf3c71602661ddb572d27d3802d824

    We had one last idea: since the problem seems to be in english in our french description (fr_FR), we tried to use google translate on our own french description to see what the result is gonna be.

    AND SURPRISE :

    https://preview.redd.it/cf6lcdn1zx361.png?width=2496&format=png&auto=webp&s=e3448fb282ed5bf0b237fe1268696ea33265463e

    You don't need to talk french to understand that there is only ONE sentence on the left side and 3 on the right.

    What's even funnier is that we can extract the charactere that cause this to happen: If we copy the left content to any notepad or console we got this:

    https://preview.redd.it/jzunjhl20y361.png?width=484&format=png&auto=webp&s=8e57993a6f0a26100fb1235b7a6f4fa8858fdb75

    It turns out that this little "red dot" here mean in english "In addition to this, you need to know more about it." ( Didn't know that french was that powerfull and concise)

    You can try it by yourself:

    https://translate.google.fr/?hl=fr&sl=fr&tl=en&text=%E2%80%8B%0A&op=translate

    Thank you.

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

    Google Play Console Publishing Status

    Posted: 07 Dec 2020 10:10 AM PST

    App rejected anyone tell me what the problem exactly ?

    Posted: 08 Dec 2020 07:09 AM PST

    Android Views as a Function of State with ViewBinding Case Study 1: The Live Game Stream

    Posted: 08 Dec 2020 07:48 AM PST

    A question for experienced devs: The importance of code puzzles (Leetcode, Hackerrank, etc.)

    Posted: 08 Dec 2020 07:46 AM PST

    The community over at r/cscareerquestions has a short list of vital skillsets, one of them is proficiency in interview-based coding questions. These are problems like "Two Sum" or "Integer to Roman" that act as programming acrobatics to solve a specific, yet arguably useless, hypothetical problem for the sake of gauging an applicants ability to actually code. Now, I don't believe these problems are actually that valuable, but they seem an irremovable part of the interview process for any new developer, nowadays.

    But is this the same in Android Dev? Are these coding questions as prevalent in this field as in others? For anyone looking to enter the field it may be valuable to know how they have to divide their time between actually learning and building apps, and the possible college-esque study session grinding these problems.

    Thanks in advance.

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

    Need help dll error trying to use adb

    Posted: 08 Dec 2020 06:30 AM PST

    So when i type "fastboot devices" command i get this missing dll error on my windows 7 "api-ms-crt-string-l1-1-0.dll" i installed it in the specified folder and rebooted but still got the same error.

    submitted by /u/PX-Gilgamesh
    [link] [comments]

    AndroidTweetEmbed: Simple Library with preconfigured webview to make embedding tweets simple

    Posted: 08 Dec 2020 02:29 AM PST

    Interview with Chaquopy Creator Malcolm Smith (Python for Android) + DEMO

    Posted: 08 Dec 2020 01:08 AM PST

    High refresh rates when plugged into an external display

    Posted: 08 Dec 2020 04:41 AM PST

    So I have games that support high refresh rates (120/144)

    But I am unable to...

    1. Maintain the high refresh rate when plugged into an external monitor/capture device for streaming/content creation. The device automatically goes back to 60hz when plugged in.

    2. Get a high refresh rate signal through the USB-C to HDMI adapter. The adapter and HDMI are 4k60 capable. So theoretically should be 1080p120 capable as well... at the bare minimum.

    The devices I have that I'm trying to make work are a OnePlus 8Pro, a Red Magic 5S, and a Razer Phone 2.

    If anyone has any info regarding this topic or potentially how to fix if, that would be great!

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

    How do I launch the Google Maps app with a shortened link?

    Posted: 08 Dec 2020 04:38 AM PST

    As per the google maps documentation here I have created a Maps link to show direction from my location to the destination.

    This is the maps link, https://www.google.com/maps/dir/?api=1&travelmode=driving&destination=Pike+Place+Market+Seattle+WA

    This link works great on its own, when clicked on a phone it launches Google Maps app and shows the directions.

    However, when I shorten it using a URL shortener it opens the browser and displays the map in there which isn't as smooth compared to the maps app. Is there a way to change this so it open the maps from the browser?

    The reason I have to shorten it because it is sent in an SMS and the default link is too long and exceeds the SMS character limit.

    I have tried Geo Intents and it works fine on Android but it does not work on iOs.

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

    Android Studio & emulator > transitions between views are no longer displayed

    Posted: 08 Dec 2020 12:19 AM PST

    Hello,

    I sometimes have a very strange bug on the emulators. For no particular reason, transitions between views (activities, fragments...) are no longer displayed.

    It happens on Pixel 2 (API 27).

    To fix this problem, the only thing I've found at the moment is to reinstall the emulator.

    Does anyone have any ideas on how to solve this issue?

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

    Paging 3 library

    Posted: 07 Dec 2020 11:25 PM PST

    Pagination is working fine but currently i have a requirement where i need to clear the paged list and call the api again with new request starting from page 1 again ,how to do this i am lost between dataSource.invalidate and other options because there is no clear way to do it

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

    How to sideload and Play Protect verified apps

    Posted: 08 Dec 2020 02:58 AM PST

    Recently I made an app that has sideloading apps (ability to install other apps, something like PlayStore or FDroid) and I need to have Play Protected apps in order to avoid warning about installing apps that are not verified.

    So, does anybody knows how to handle this? Is it even possible?
    Can you please help me to solve this problem?

    Thanks

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

    Improving urban GPS accuracy for your app

    Posted: 07 Dec 2020 09:33 AM PST

    How to enable option to auto-fill sms code into EditText?

    Posted: 07 Dec 2020 11:54 PM PST

    Similar to how on iOS, when you receive a sms with a 4 digit code for example, iMessage will prompt you to autofill in the code into an existing input field on the screen. How could I achieve this type of feature on Android using EditText?

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

    want to get started with android game development

    Posted: 07 Dec 2020 09:59 PM PST

    I want get into game development for android.What resources like SDK ,Programming language would be good for that?

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

    Noob questions. But how do Interfaces pass data when implemented

    Posted: 07 Dec 2020 05:21 PM PST

    android dev has a lot of interfaces. For recyclerview click events you have to create an interface and have a method that holds the data you want other activities to see in its params. Then you override that method in your activity and have access to it. How is this possible? How does an interface have access to data in its params when implemented in other places?

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

    An simple login ui concept

    Posted: 07 Dec 2020 08:40 PM PST

    Which Should You Build Your Mobile App on First Android or iPhone | PegaLogics|

    Posted: 08 Dec 2020 12:56 AM PST

    Noob question.

    Posted: 07 Dec 2020 10:23 PM PST

    After an update of an application. their JSON file give me an error that said cannot be parse. it display symbols. is there a way to open it? Im using JSON & XML tool.

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

    No comments:

    Post a Comment