• Breaking News

    [Android][timeline][#f39c12]

    Thursday, August 1, 2019

    We’re on the engineering team for Android Q. Ask us Anything! (starts August 1) Android Dev

    We’re on the engineering team for Android Q. Ask us Anything! (starts August 1) Android Dev


    We’re on the engineering team for Android Q. Ask us Anything! (starts August 1)

    Posted: 26 Jul 2019 09:09 AM PDT

    As part of the Android engineering team, we are excited to participate in another AMA on r/androiddev next week, on August 1! We recently announced the fifth Beta of the next version of the OS: Android Q. We have another Beta release in the pipeline, followed by the public release later this quarter.


    This is your chance to ask us technical questions related to the latest features specifically in Android Q -- from the APIs and SDK to Jetpack, Kotlin, gestures and more. Please note that we want to keep the conversation focused strictly on the engineering of the platform.


    We'll start answering questions on Thursday, August 1 at 12:00 PM PST / 3:00 PM EST (UTC 1900) and continue until 1:20 PM PST / 4:20 PM EST. Feel free to submit your questions ahead of time. This thread will be used for both questions and answers.


    Here are some topics we're looking forward to talking about, but feel free to ask anything!

    • Android Jetpack
    • Android Studio
    • Kotlin
    • Notifications
    • Dark Theme
    • New Gesture Nav
    • Security & Privacy
    • Location changes in Q
    • Project Mainline
    • Google Play

    Participants from the Android team

    • Adam Cohen: TLM on Android Launcher / System UI
    • Adam Powell: TLM on UI toolkit/framework; views, lifecycle, fragments, support libs
    • Alan Viverette (/u/alanviverette): TLM, Jetpack / AndroidX
    • Allen Huang: PM for UI, launcher, notifications, search integrations and more!
    • Andrew Sappirstein: TLM on Android Settings
    • Brahim Elbouchikhi (u/ielbouchikhi): PM Director for Android Machine Learning and Camera (NN API, ML Kit, CameraX, Camera Platform)
    • Chad Brubaker (u/rekaburbc): Software Engineer, Android Platform Security
    • Charmaine D'Silva: PM for Privacy
    • Chet Haase (u/chethaase): Android Chief Advocate, Developer Relations
    • Diana Wong: PM, App Compatibility, non-SDK API usage, ART, NDK
    • Dianne Hackborn (u/hackbod): Manager of the Android framework team (Resources, Window Manager, Activity Manager, Multi-user, Printing, Accessibility, etc.)
    • E.K. Chung: Director of UX
    • Ian Lake: Software Engineer, Jetpack (Fragments, Navigation, Architecture Components)
    • Iliyan Malchev: Principal Software Engineer, Project Mainline
    • Jacob Lehrbaum (u/jlehrbaum): Director, Android Developer Relations
    • Jake Wharton (u/jakewharton): Software Engineer, Jetpack
    • Jamal Eason (/u/easonj ): PM, Android Studio
    • Jeff Bailey (u/jeffbailey): TLM, Android Open Source Project (AOSP)
    • Jeff Sharkey (u/jsharkey): Software Engineer, Android Framework
    • Jeffrey van Gogh (/u/jvg_googler): Android Studio, Compilers
    • Jen Chai: PM, Location and Context, Auth, Autofill, non-SDK API usage, ART
    • Karen Ng: Group PM for Android Developer Tools, Android Studio, Android Tookit and Jetpack
    • Paul Bankhead: Director of Product Management, Google Play
    • Rohan Shah: Product Manager, Android System UI
    • Romain Guy (/u/romainguy): Manager of the Android Toolkit/Jetpack team
    • Sagar Kamdar: Director of Product Management, Android
    • Sat K: Director of Engineering, Android Connectivity
    • Selim Cinek (u/selimcinek): Software Engineer, Android System UI
    • Stephanie Saad Cuthbertson (/u/steph---): Senior Director of Product Management, Android
    • Sumir Kataria: Software Engineer, Jetpack (WorkManager)
    • Travis McCoy: PM, Android Platform
    • Trystan Upstill: Distinguished Engineer, Lead for Android System UI & Intelligence
    • Vinit Modi: PM, Android Camera
    submitted by /u/AndroidEngTeam
    [link] [comments]

    Google's practice of "associated account ban" - AKA "guilt by association"

    Posted: 01 Aug 2019 06:30 AM PDT

    Here is some background on how the "associated account bans" work - a company can get banned, because their developer has a friend who got banned.

     

    Previously this text was posted as a comment in this thread:

    The comment is still visible to me (25 upvotes) - however others only see "Comment is missing" - perhaps because it has too many links, or has been updated too many times for a comment:

    https://www.reddit.com/r/science/comments/aqf6e5/law_enforcement_agencies_are_increasingly_using/eghestk/

    Since I needed to reference it again for another post, I decided this information maybe best presented in this separate post.

     


    Not only law enforcement. Google uses it for "associated account bans" on developers from their Google Play Store.

    The enhanced clustering and account matching technologies mentioned in this Google missive How we fought bad apps and malicious developers in 2018 is a privacy violation as well as "guilt by association" - if a developer1 who has an account ban works with developer2 and that developer2 works for a company, that company's account can be banned - as exhibited below - the notorious "associated account suspensions":

     

    This company's account was restored only after it went viral:

    What we have learned is that our company account hadn't committed any violation, it was terminated due being "associated" to my personal account. My personal account hadn't committed any violation either, it was terminated due being "associated" to a colleague account. This colleague account was terminated due "Intellectual Property and Trademark Violation". My colleague still thinks his account termination was wrong but he appealed and got no support as thousands of developers out there.

     

    This company's issue not solved yet:

    https://blog.usejournal.com/google-wrongly-terminated-our-new-business-via-our-google-play-developer-account-5f5b7b742542 Google completely terminated our new business via our Google Play Developer Account Mark Dodson Feb 7, 2019

     

    EDIT: another example for company called Shared:

     

    EDIT 2: one year old example of employee ban leading to all employee and company account bans:

     

    EDIT 3:

    Google told that this was done because some other developer associated to me had multiple account violations. I do not know who this person might be or what violations they might have committed. I appealed Google's decision but they wouldn't reinstate my account and suggested me to use "an alternative method for distributing" instead of the Play Store.

     


     

    Explanation of associated account bans

    "Associated account ban" means not just explicit account linkages, but also implicit ones, where a wife can be banned for the misbehavior of her husband (and the life-ban will survive divorce). This is why devs caution to avoid using VPN, or the WiFi of a person who has been banned by Google.

    This is the modern day "Scarlet Letter". This means that a ban (these are "lifetime" bans) by Google, even if they are from your early dev period, is turning into a wider employability pariah metric.

    Left in the hands of bots (and AI), the behavior of a company can become indistinguishable from a huge bureaucracy.

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

    Android Studio 3.5 Release Candidate 2 available

    Posted: 01 Aug 2019 10:14 AM PDT

    Google Play Support is making it mandatory to fix permission compliance with years old , UNPUBLISHED apps

    Posted: 31 Jul 2019 10:45 PM PDT

    I've reviewed your appeal request and found that your app still violates Google Play Policy. Please note that all apps on Google Play published or unpublished status, must be compliant with Google Play policy.

    Google Play is making it mandatory for us to update many years old , UNPUBLISHED apps. Is anyone else being asked to do this ?

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

    What is your biggest struggle in learning Android development?

    Posted: 01 Aug 2019 01:07 PM PDT

    After two years I make this same question again. Are the biggest problems on learning Android development the same? Are there solved? Are there new problems?

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

    [AOSP]What is the most elegant way of striping AOSP of its pre-installed packages?

    Posted: 01 Aug 2019 02:24 PM PDT

    I am trying to gradually stripe AOSP out of its default apps. But I wonder if the method I am going to apply is correct and is the most effective.

    After looking through ways of doing that I have come to the following method:(example app - "package_name")

    1. Pick particular app and find out its "LOCAL_PACKAGE_NAME" 2. Use "envsetup.sh" provided command "mgrep package_name" 3. Look at the output to determine where package_name is mentioned 4. Remove lines of code containing package_name from makefiles 

    I have also stumbled upon this solution:

    Instead of modifying bunch of .mk files in AOSP in many folders, you can add a new module, a stub, and disable modules in its Android.mk using LOCAL_OVERRIDES_PACKAGES. If a module still appear in target, you'll probably need to add to LOCAL_OVERRIDES_PACKAGES another modules which added undesired packages via LOCAL_REQUIRED_MODULES.

    But sadly I am not aware yet how one builds a new "module, a stub" so I can't apply this method as of now.

    Are there any steps I can take to make sure a particular app is removed from my build completely without harming anything. What do you think is the most elegant solution to this specific task if there is one? What(literature/docs/website)would be useful for me to get familiar with making "scratch-surface" changes to AOSP code like the abovementioned case?

    If that matters what I am trying to remove at the moment: Calculator; Calendar; Camera; Clock; Contacts; Files; Gallery; Messaging; Music; Phone; Search; WebView

    Thanks in advance for your responses!

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

    Android Security: Don't leave WebView debugging enabled in production

    Posted: 01 Aug 2019 12:39 AM PDT

    KotlinConf 2018 - Sealed Classes Opened My Mind: How We Use Kotlin to Tame State at Etsy by Patrick

    Posted: 01 Aug 2019 11:41 AM PDT

    Fix Can not perform this action after onSaveInstanceState after onActivityResult without UI bugs

    Posted: 01 Aug 2019 01:07 PM PDT

    Hello, I have noticed some crashes in onActivityResult after receiving results from activity, which was launched in third party SDK. I personally use singleActivity with multiple fragments and I did not run into this issue. The question is: how should I safely perform fragment transaction after onActivityResult?

    In my previous post I wrote about using LiveData for fragments transactions. I have learnt more about this and have applied commitAllowingStateLoss(). It works well, but the problem is that it creates weird UI behaviour. After some testing we found that our manual locale changing did not worked after stateLoss, here is our method:

    // here I provide specific locale 

    public override fun onCreate(savedInstanceState: Bundle?) { AppCompatDelegate.setCompatVectorFromResourcesEnabled(true) super.onCreate(savedInstanceState) setupLocale("uk") }

    private fun setupLocale(locale: String) { val config = this.resources.configuration val locale = Locale(locale) Locale.setDefault(locale) config.locale = locale this.baseContext.resources.updateConfiguration(config, this.baseContext.resources.displayMetrics) } 

    I call this method in onCreate, but it does not get triggered after state loss...

    It seems, that commitAllowingStateLoss() creates weird bugs, as noted in documentation... How should I fix this issue? The two main questions:
    1.How should I safely perform fragment transaction in onActivityResult, without commitAllowingStateLoss()?

    1. If this is not possible, how should I restore my state after state loss occurred following MVVM pattern and make sure that UI is kept in check? Will my VM survive? If not, should I pass customLocale in bundle and retrieve it in activity?
    submitted by /u/wellbranding
    [link] [comments]

    An app to manage your data

    Posted: 01 Aug 2019 03:17 PM PDT

    Hi everyone,

    I recently co-founded a company and we're developing an app for managing your personal data. We'll be launching the beta soon, and wanted to see if there's anyone out there who would be interested in checking it out and letting me know what they think of it. The link to the landing page is below.

    Thanks for your time!

    https://www.atlys.app

    submitted by /u/Lafcadio-TheLion
    [link] [comments]

    edittext underline - go away already!

    Posted: 01 Aug 2019 11:02 AM PDT

    Hi, this has been driving me crazy trying to find a solution and none of them seem to be working!

    First I have a TextView that when you click it hides and is replaced with an EditText with the same String in it, I want to be able to then have the user type in the EditText and it saves as the new TextView. But every time they do the text is underlined and then it saves some how the underline into the TextView. I can click the TextView (showing the EditText) then click out and the underline then is gone. Also I'm using getText().toString() on the TextView and EditText.

    I have tried changing the EditText background to null, #00000000, #FFFFFF, nothing seems to be working from all the suggestions I've found online. Why does it by default have to underline it - seems so dumb!

    Hopefully somebody has a suggestion that actually works. Many thanks!

    EDIT:

    Also during the EditText construction I have this line:

    titleEditText.get(index).setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS|InputType.TYPE_CLASS_TEXT);

    However the suggestions do still show up despite it... and oddly if I click one of those suggestions, I don't have this underline issue!

    It's gonna probably be some dumb mistake I'm quite new still to this!

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

    Now in Android: Episode #1

    Posted: 01 Aug 2019 08:16 AM PDT

    Stylo 4 wont go into fastboot

    Posted: 01 Aug 2019 02:06 PM PDT

    Hey guys. Im trying to get my lg stylo 4 in fastboot mode but every time i use "adb reboot bootloader" or " adb reboot fast boot" my stylo just seems to restart fully instead of going into fastboot mode. Any tips on what i should do guys. Ive tried the down vol.+ power key, both vil. + power and up vol + power and i only ger recovery mode or imei number screen.

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

    Is it possible to have apps fully open without them being on screen?

    Posted: 01 Aug 2019 01:42 PM PDT

    I want to keep an app running in the background of Android, but I need the app to think it's fully open and at the front of my screen. I'm basically trying to achieve multi-window, but only one of the apps open is displaying to my screen. Does anyone have any idea of how to do this, or where I could find more info on doing this?

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

    Wouldnt it be better if instead of making the ViewModel be the one that .observe(), it would be the Adapter or the ViewDataBind the ones that make the .observe() on the ViewModel?

    Posted: 01 Aug 2019 01:37 PM PDT

    I've been thinking that it is a little bit redundant to have 3 lines of code which have 3 similar purposes.

    viewModel.getData.observe(this, items -> { adapter.submitList(items)); recyclerView.smoothScrollToPosition(adapter.getItemCount()); }); 

    I think that these two extra lines of code defeat the whole purpose of the .observe() and the Mutable/LiveData and all their awareness.

    First I think that if the recyclerView or ListView, etc... has already been .set(adapter); , then the smoothScrollToPosition could be done automatically when .submitList(List<>()); is called, or even better, it should do a notifyDataSetChanged() automatically for that matter.

    now if the .observe(); , instead of submitting something, would retrieve something (only on diffCallback) it would skip all three stages.

    like, recyclerView.observe(viewModel.items); . And even tho the adapter is not shown it would still be there as mediator between both.

    Is it because of memory leak related issues? maybe is too expensive?, or maybe because of life cycles?

    I'm I misunderstanding the real purpose of the ViewModel class?

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

    Anyone know a good way to get maximum 2:1 aspect ratio screenshots on a Galaxy S8/S9 for Play Store submission?

    Posted: 01 Aug 2019 08:40 AM PDT

    Google Play requires that the screenshots for app submission be no more than a 2:1 aspect ratio, but the Galaxy phones are so long that they are a 18.5:9 ratio. Anyone know if there's a standard way to get good 2:1 screenshots with these types of devices? I looked through developer options and found nothing.

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

    How to Avoid Delivering a Crash-Prone Android App - Bugsnag Tech Stack

    Posted: 01 Aug 2019 12:14 PM PDT

    Question about target audience settings in Google Play Console

    Posted: 01 Aug 2019 06:01 AM PDT

    Hi, there is this new setting in the play console where you have to put the age of your target audience. I don't know which age I should set there. My app is a tool which has no inappropriate content. Just admob ads which is a certified ad network. So my app can be used by any age group but it is not specifically designed for kids. If you put 18+ to be safe, I have to accept the "not designed for kids" label next to my app or I tick the NO option and risk to be banned by the algorithm. What age group do you guys set for normal tools?

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

    Testing Two Devices While They Are Interacting

    Posted: 01 Aug 2019 11:40 AM PDT

    Hello.
    I am an intern and working on ui test cases for some video call application currently. I am using Android Studio and Android Espresso for testing. And I want to make a test that runs on both devices at the same time, and I want one device to call the other and I want other to ignore the call when it gets the call. The thing is, I am sure there are ways to do this with Selenium. But I need to do this for developers, not testers. I mean, while developer coding this application, he/she should be able to do this kind of tests without going into deep testing frameworks.
    I did some research and found someting called Spoon. But it was just doing the same test on different devices. It wasn't suitable for interacting, or I missunderstood.
    So, any idea or advice would be perfect. I appreciate all the help I can get. Thank you.

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

    Help me to recover my phone..

    Posted: 01 Aug 2019 10:37 AM PDT

    I have only one laptop in which I have only Arch Linux(i.e. No Windows).

    I recently got Lenovo k4note from a neighbour who wants it to be corrected.

    The hardware of the phone is perfect without any problems.

    The phone has stock recovery,stock firmware and without any Android ROM(or corrupted android ROM).

    Now,I want to Recover the phone.Please help me...

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

    App is still in review after 3 days.

    Posted: 01 Aug 2019 01:44 AM PDT

    Hello, I have a problem.

    I made an app for the first time and wanted to publish it on the Play Store, everything went right until the review time. I submitted my app on Sunday and it still says "in review". Why does it take so long? I've read that review time will take longer if you submit your app during the week-ends. On the dashboard it also says: "We are taking a little longer to review your app. This usually takes a few days, but can sometimes take longer." More information. (I'm not English so I translated this text)

    Maybe it's because I'm a new publisher. Has anyone who published an app for the first time got this problem? I've seen that most people can publish their app in a few hours, so why does it take so long for me?

    Maybe the app is denied, but there is no indication on the dashboard that it got denied, and I also didn't get an email about it so I don't think that's the case. It just says "in review".

    Anyone know what's wrong? Should I just wait?

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

    Is there's a way to track/approximate real time traffic to a given location eg shopping center?

    Posted: 01 Aug 2019 08:52 AM PDT

    Is there a way of telling how many android phones(location turned on) are currently in a given location?

    Is there a google API that does this?

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

    How to make an marquee animation for imageviews?

    Posted: 01 Aug 2019 08:14 AM PDT

    [UPDATE: SOLVED. see my comment in answers]. Somewhat like this :https://lottiefiles.com/1800-sky . I would be having image of clouds on multiple imageviews and would like to have my image views moving at different paces across the screen. I have a feeling this is possible using simple translation animations , but I don't know how. Please help

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

    Android Bitcoin price project - help reviewing project

    Posted: 01 Aug 2019 03:39 AM PDT

    Hi All,

    I have created a bitcoin price retrieval project using an open api, I am trying to get some insight on where I can improve, here's the link to the project :

    https://github.com/apparentice/bitcoin_price

    I have followed Google's github sample project as reference; here's the planned architecture :

    Language : Kotlin

    Architecture : MVVM, LiveData, RxJava

    Persistance : Room

    DI : Manual

    Looking for an in depth review including commit message formats.

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

    Understanding MVVM and callbacks in a View

    Posted: 31 Jul 2019 07:02 PM PDT

    As I understand, all.Android-specific stuff must reside in a View. Now, I have some logic in a ViewModel that would want to trigger a callback in some circumstances. I searched the Internet for such scenarios, but to no avail. How would you do that? Store a weak pointer to a View in a ViewModel? Or something else, like passing a lambda in a constructor?

    EDIT: Let's say I have a timer in a ViewModel in which every second ssome method of a ViewModel is called. Upon passing 10 seconds, I want a ViewModel to e.g. show a toast (or play a sound). As only a ViewModel knows about android, I probably want to invoke a callback.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel