• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, October 29, 2019

    It's confirmed that Fragment/FragmentManager functionality will be pruned to only support "add", "remove", and "replace", because that is all that Jetpack Navigation needs (and no other use-case will be supported) Android Dev

    It's confirmed that Fragment/FragmentManager functionality will be pruned to only support "add", "remove", and "replace", because that is all that Jetpack Navigation needs (and no other use-case will be supported) Android Dev


    It's confirmed that Fragment/FragmentManager functionality will be pruned to only support "add", "remove", and "replace", because that is all that Jetpack Navigation needs (and no other use-case will be supported)

    Posted: 29 Oct 2019 06:38 AM PDT

    After having a chat with Ian Lake, apparently the only way to keep a Fragment alive along with its ViewModelStore will be to have the Fragment the FragmentTransaction that keeps the Fragment alive on the FragmentManager's backstack: https://twitter.com/ianhlake/status/1189166861230862336

    This also brings forth the following deprecations:

    • Fragment.setRetainInstance

    • FragmentTransaction.attach/FragmentTransaction.detach

    • FragmentTransaction.show/FragmentTransaction.hide

    • FragmentPagerAdapter

    At this point, one might wonder why they didn't just create a new UI component.

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

    What the actual f? Been waiting 7 days now to get store listing update approved.

    Posted: 29 Oct 2019 07:53 AM PDT

    What the actual f? Been waiting 7 days now to get store listing update approved.

    I submitted an update on 22nd Oct, 7:30PM. At the time of making this post, it's 29th Oct, 8:00PM.

    From the day my app was released, in around March, I've had approval timings of 2 days. The updates were never approved automatically. I had to wait around 48 hours, and then contact their support to get them approved. Been this way ever since for the last 40-50+ times, for every-single update that I've submitted. Here are few names of their support team which I've learnt because of sheer amount of times I've spoken with them.

    1. Sansa T (Spoken with her a lot, she says "Goodbye" instead of normal bye at the end of chat.)
    2. Selena (Takes a little time to understand the issue, but still provides better replies)
    3. Erica (I've spoken with her a lot too)
    4. Joe (I don't know if it's he/she/they, but he/she/they speak like they really give sh$t about us, so feels good)
    5. Joy
    6. Ginger
    7. Charlotte (there's something about her, I don't remember it now, but there's something that she does at the end of chat that feels like something different)
    8. Suraj

    It's a nice day, you've just created an update with new features, you want to submit an internal test for the app, your testers are waiting for the update. It says "Internal tests get approved within minutes". You wait an hour. Fine, nothing. You wait 6 hours, nothing yet. You then wait 24 hours, nothing. You wait 2 days. "Just another day", you say, open your computer, speak with one of the person above. They do their magic, update gets approved.

    Ooh.. did I forget something?

    There's another branch too for this above thing.

    It's a nice day, you've just created an update with new features, you want to submit an internal test for the app, your testers are waiting for the update. It says "Internal tests get approved within minutes". You wait an hour. Fine, nothing. You wait 6 hours, nothing yet. You then contact their support staff to see what's wrong (as it says they get approved in minutes), they say, "sometimes it may take 48 hours to get some updates approved, in exceptional cases, it might take 7 days". "Just another day", you say, wait 48 hours, then contact their support, update gets approved.

    This has been my life since last 5-6 months.

    Literally, same loop repeated every single time. I cannot do shit with this fucking shit of a store and its management. Not that I have an option to migrate to a different one. So I wait, that's what I can do.

    And this time, it's been over 7 days. I've been wanting to submit an app update to fix the bugs previous one had, but I can't. Now my 7 days are at risk.

    7 days

    And this thing is totally random. Most of the devs that I know get their apps approved in 30 minutes, or 1 hour. Even an update to other app of my own gets approved in 1-2 hours. It's the updates to app which makes me money takes 2+ days to get approved. And I'm pretty sure that I don't do anything fishy in my code. What the fuck are these people doing? I don't understand.

    I'm blank at this point. I don't know what to do. It's not helping with the user experience. My crashes have gone up because of this shit. Because I'm not able to test anything. Last time I went the alpha->beta->production way, it took 7+ days. Sometimes I feel like I should fucking jump off the rooftop and write a suicide note which says "Google made me do this". (I won't do that, but maybe someone will, someday).

    EDIT: My app isn't enrolled in Designed for families, and its App Content is set to 13+. Content rating is 12 years+ old.

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

    Binding Android UI with Kotlin Flow

    Posted: 29 Oct 2019 08:44 AM PDT

    There is no time to test

    Posted: 29 Oct 2019 11:25 AM PDT

    Android Studio performance - more cores at lower speeds VS less cores at higher speeds

    Posted: 29 Oct 2019 06:07 AM PDT

    Greatings from England!

    Possibily a tough one for those most knowledgable so massive thanks in advance!

    tl;dr - would Android Studio (primarily Flutter) benefit from more cores at lower speeds or less cores at higher speeds?

    After going round in circles for a few days trying to spec out an Android developer build, we figured it wise to try to ascertain some more concrete answers than our researching has produced.

    We are aware there are several non-hardware related contributing factors but this post is ideally exclusively aimed at just the hardware side of things for now.

    We'd ideally like to start with 64GB/128GB RAM and NMVe's to minimise those bottlenecks so trying to work out if Android Studio (including everything associated with it and primarily Flutter) would benefit from more cores at lower speeds or less cores at higher speeds.

    Some suggest not much scaling after 6'ish cores

    But it would likely depend on the use of multiple decoupled modules.

    One key factor is we'd ideally like to also occasionally use the system in a server capacity, occasionally have various VM's running and occasionally edit in something like DaVinci Resolve, etc. - all unlikely at the same time as developing.

    Performance per cost is most important alongside futurproofing or minimal upgrade costs. Budget can be flexible but we'd like to minimise cost as much as possible, hence these random examples:

    AMD Ryzen Threadripper 1909X 8core 3.8 GHz (upto 4 GHz)
    VS
    AMD EPYC 7301 16core 2.20 GHz (upto 2.7 GHz)
    VS
    Intel Core i9 9900K, 8core 3.6 GHz (upto 5 GHz) VS
    Intel Xeon E5-4660 v3, 14core 2.1 GHz (upto 2.9 GHz)

    Intel will allow for dual socket allowing us to double up down the line (taking into account all the associated intricacies,) which suggests we should possibily lean more towards Xeon's (despite our personal admiration of AMD.)

    Would greatly appreciate any real life facts or thoughts from anyone that has acquired any. Or, if you've read something, links would be most welcome.

    Many thanks in advance and warmest regards.

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

    Android HCI layer

    Posted: 29 Oct 2019 03:40 PM PDT

    Hi where in the code are specified the functions from HCI interfaces that pass the data or notify l2cap ?

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

    My first DSL library: [Quick RecyclerView Adapter Library]

    Posted: 29 Oct 2019 11:15 AM PDT

    Github link: https://github.com/dragneelfps/quickrecyclerviewadapter

    This is just a basic implementation. I am planning to add features to it. Please drop any ideas for it.

    Feel free to drop any remarks.

    Usage:

    private val rvAdapter by lazy { adapter(R.layout.item_layout, listOf("One", "Two")) { bindings { bind<TextView>(R.id.count_text) { datum, countTextView -> countTextView.text = datum } } } } 

    P.S.: There might be other libraries out there which does the same thing and more, but I wrote this 1. for exp 2. for more control over the features 3. its fun.

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

    CheckoutVerifier - Android Library

    Posted: 29 Oct 2019 04:56 AM PDT

    CheckoutVerifier helps you Verify your In-App Purchase receipts & protect your Apps from hacking, patching used by Piracy Apps like Lucky Patcher.

    Since I was using these classes in every project, the Copy/Pasting of classes was annoying so thought of releasing it as a library which might be of help to others too!

    The library is written in Kotlin 🥳.

    More info. on Github - https://github.com/ItzNotABug/CheckoutVerifier

    Hit the ⭐️ if you find it useful :)

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

    First Time doing an app

    Posted: 29 Oct 2019 02:31 PM PDT

    Hi! So im here for the first time, and i want to make an app for a school project, and i really dont know where to start. I downloaded Android Studio.

    I mention that I know some programming( I am doing C++ at school).

    I want my app to have some texts, but that`s not so hard as I saw in android studio.

    What i want my app to do. I want that my schoolmates put a name here. And then, i will put some question on the app, with few answers, and only 1 right. After all the questions, i would like to get all the information about the answers from my schoolmates, and then i want to make a top, with the names of my schoolmates, and the number of right answers.

    I dont know how I should do that, im pretty sure this will be a little hard, but if you can hit me up with some link for tutorials. I dont know where to start.

    Thank you so much in advance. Cheers!

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

    Firebase Test Lab Issues

    Posted: 29 Oct 2019 01:34 PM PDT

    I have espresso tests in my project that when run locally will pass but on firebase test lab they are failing. Why is there this inconsistency. How can we get the same results and make them more predictable?

    When I look at the logs it will typically be a NoMatchingViewException as if a view isn't there, then it will show a view hierarchy printout which is typically the screen before the one I'm trying to test for.

    I looked at the video but it will show the whole suite of tests running and not a video of just the failing test. Also there is no error dialog or visual feedback in the video to show that a test failed.

    I'm using okhttpidlingresource (https://github.com/JakeWharton/okhttp-idling-resource)

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

    Single Activity App, but with Activities for some special cases?

    Posted: 29 Oct 2019 05:58 AM PDT

    Google is always talking about Single Activity Apps. They say we should only use one Activity for an App.
    I also watched their Talk from io 2018 about this Topic.

    While programming my own App i struggle with this mind. I have two cases where i want to use an Activity. But then i have no Single Activity App anymore.
    Usecase one:
    I have a bottom navigation. There everything works with the new Navigation Library in one Activity.
    But i also have an Settings Icon on the Toolbar which should open the app settings. This settings "route" is decoupled from the main application because it shouldn't show the Toolbar and the bottom navigation anymore.
    Usecase two:
    I have an "Add"-Fullscreen-Dialog. This dialog shouldn't either show the bottom bar and the toolbar like the Settings page. For this case i want to use an activity.

    Another good thing is the default animation from the activities when starting. A Fragment has no default animation and i don't want to make one myself.

    Google don't speed about these cases. When i'm looking at their Apps like Gmail, they also use Activities for these cases.

    What do you think guys? Can anyone explain me what's the best?

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

    Weird behavior when resuming Activity in Android 10

    Posted: 28 Oct 2019 06:42 PM PDT

    I have my app set up to dismiss AlertDialogs and PopupWindows in onStop(). This works great in previous Android versions, but in Android 10 the AlertDialogs/PopupWindows linger on the screen for a second after resuming the Activity:

    PopupWindow: https://streamable.com/rdu4a

    AlertDialog: https://streamable.com/gvhgc

    I'm dismissing the AlertDialogs/PopupWindows in onStop():

     @Override protected void onStop() { super.onStop(); if (alertDialog != null) { alertDialog.dismiss(); } if (popupWindow != null) { popupWindow.dismiss(); } } 

    But it goes way deeper than that...

    I also have a Button that launches an Intent with FLAG_ACTIVITY_NO_HISTORY. When I resume the Activity, the Button ripple animation is still playing:

    https://streamable.com/pdle1

    And this is what happens if I add a list item to my RecyclerView and quickly press Home. The item is shown getting added again after I resume the Activity:

    https://streamable.com/e5fbf

    And here it is forgetting which View in the ViewPager was last selected. Upon resuming, it automatically switches back to the correct one:

    https://streamable.com/1kg75

    I've made a sample project that illustrates some of these issues. Try it on Android 10 to replicate them:

    https://github.com/gavingt/JankyUITest

    And here's the link to the Bug Tracker issue I posted:

    https://issuetracker.google.com/issues/143501785

    These issues are all new to Android 10.

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

    Review Time Increase

    Posted: 29 Oct 2019 01:57 AM PDT

    What do you all think about the increase in Google Play Review times? We have had a build waiting for four days with pretty critical fixes. I've heard reviews are going out to seven days.

    I fully understand planning ahead but there should also be a way to expedite critical builds if they are sticking to longer reviews - like iOS.

    It has made our team think about the single point of failure that is Google Play and perhaps pushing harder across minor stores like Amazon, Huawei etc.

    Thoughts?

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

    MotionEvent and custom views question / discussion

    Posted: 29 Oct 2019 09:27 AM PDT

    I probably won't give enough details for a full answer since I don't have the details myself either, but hopefully there is enough for some discussion. As I have no experience with this topic I might learn with your answers, and hopefully other people too.

    A colleague has a problem with a project done by someone else where they drag the content of views and that content doesn't move smoothly (it jumps a bit but it is not terrible). What I know is that they profiled the CPU and it was not very busy, and that when the app receives a MotionEvent it triggers a redraw of the view.

    What I thought was that maybe the problem was that the MotionEvent was not being received at the same time as the start of the 16ms window for drawing. If that is the problem, I thought that a possible solution would be having an interpolator class that receives the positions of the motion event and records the timestamps. Then, the view would ask the interpolator to estimate the position at the start of the onDraw event and would draw that (instead of the last received position).

    Do you think this might be the issue? And do you expect my solution might improve the smoothness of the drag?

    Finally, another proposed solution was using a game engine, but that seems a lot of work for a "simple task". I have never used one so I don't know if there are simple libraries to solve these problems instead of building a full game.

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

    WorkManager: How do you deal with ANR in androidx.work.impl.background.systemalarm.RescheduleReceiver ?

    Posted: 28 Oct 2019 07:54 PM PDT

    Hi,

    It is quite common to face ANR issue in WorkManager, when it comes to androidx.work.impl.background.systemalarm.RescheduleReceiver

    https://i.imgur.com/8RyltLC.png

    We are using stable 2.2.0

    Here's the ANR report : https://gist.github.com/yccheok/484d358bb18b424e363ccc18c638cdc4

    Look like quite a number of people are facing same issue too - https://stackoverflow.com/questions/56580401/workmanager-causes-anrs-from-broadcasts/56580511 , https://github.com/googlecodelabs/android-workmanager/issues/38 but no resolution

    May I know how do you deal with this issue?

    Thanks.

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

    Enterprise Android Application Development Framework

    Posted: 29 Oct 2019 08:20 AM PDT

    For the past 4 years, I have been developing a huge enterprise app, Places, a video-platform built on an advanced polygon geofence system.

    I will open source the enterprise framework it is built on so that people can build their enterprise apps in a fraction of the time.

    You can find it here.

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

    Open source app now with free cloud synchronization

    Posted: 29 Oct 2019 12:48 AM PDT

    Some time ago I have made an open source app with minimalistic UI that simply tracks your expenses. It has gained much more attention than I expected and one of the most requested features was cloud synchronization. I thought that it would be a great opportunity to take advantage of Firebase and its cloud database.

    I would much appreciate if you could test the beta version of the app and share your feedback. Then I will gladly share with you the details how Firebase works in a real case. Just let me know in the comments what are you interested in and will make a summary in a next post.

    Beta version in the Google Play:
    https://play.google.com/apps/testing/com.nominalista.expenses
    Source code of beta version:
    https://github.com/nominalista/expenses/tree/firebase-synchronization

    Production version in the Google Play:
    https://play.google.com/store/apps/details?id=com.nominalista.expenses
    Source code of production version:
    https://github.com/nominalista/expenses/

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

    Accessing apps from terminal

    Posted: 29 Oct 2019 07:41 AM PDT

    Hello, I am aware that there exists terminal emulators for Android, and I was wondering if it would be possible to use apps from these? Could I open my Snapchat from a terminal and log in with it? Could someone help me with this?

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

    Firebase Analytics not collection user_engagement event automatically

    Posted: 29 Oct 2019 01:57 AM PDT

    Since 28 October, Firebase has not been collecting logs for the user_engagement event, which is supposed to be collected by default. We have no data for 'Daily active users' anymore in our Firebase Dashboard. Is anyone else having the same problem?

    https://support.google.com/firebase/answer/6317485?hl=en

    Using com.google.firebase:firebase-analytics:17.2.0

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

    Is it possible to emulate old/inferior hardware?

    Posted: 29 Oct 2019 05:18 AM PDT

    Hi!

    I'm currently writing a school project about performance comparisons of different implementations of threads and coroutines. I can currently run my tests on an old 4-core phone and my current 8-core phone, but the problem is that the old phone is factory reset and is only running the test app while my personal phone is running many more.

    Is there any way of emulating the number of cores in a testing environment? I can only find options for RAM and screen size in Android studio.

    And a side question, is there any good third party profiling tool available or is Android studio profiler the one I should use?

    Thanks in advance.

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

    Creating app for third-party website

    Posted: 29 Oct 2019 04:32 AM PDT

    Hey guys, I was looking into learning how to develop android apps, and so I started considering ideas for what my first project would look like. I settled on creating a mobile app for an e-journal website my school uses, as it looks awful and was built with technologies that make it very mobile-unfriendly. It has a login page, and after inputting your username and password you see a list of your grades with their corresponding subjects. I would like the app to work in the same way that reddit is fun or Client for Pretend You're Xyzzy works, i.e. an app created for a website without backend access (at least that's how it works from my understanding). From my knowledge of how websites work, the app would have to make http requests and interpret the data it gets back from the server, putting everything in its place in the app - essentially creating a 3rd party frontend for mobile devices.

    My question is: What exactly would I have to learn/research to create such an app and what are you guys' suggestions for places where I can find resources? Thanks a lot!

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

    Tools to easily create an UI?

    Posted: 29 Oct 2019 04:23 AM PDT

    Hello,

    I know about these ones here: sketch,zeplin,principle but they seems a bit overwhelming ; I was thinking if there is another tool that you can use and generates code for a view (xml maybe ).

    what do you use ?

    Thanks

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

    Emulating Android on x86, with hardware acceleration and SafetyNet support

    Posted: 29 Oct 2019 03:46 AM PDT

    I need to run an Android image on Linux x86.

    I need to:

    1. Be able to feed an image or video of my choice into the Android camera.
    2. Make it appear as a genuine Android device, so that I can install any app (e.g. Netflix, Snapchat, my banking app).
    3. Have ardware acceleration for Android's rendering (GL) and execution speed as good as possible.

    I've tried playing around with the official Android Emulator as well as with QEMU, but couldn't achieve everything I need. With Android x86 I couldn't fool SafetyNet (even installing Magisk and anything else I tried), while with Android ARM I couldn't manage to get accelerated GL rendering.

    Does anybody have any suggestions?

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

    Need help generating all the sizes of your icons? Try App Icon Generator - Program that takes your single source icon and generates all, correctly named, icons of all required sizes for iOS and Android app development

    Posted: 28 Oct 2019 09:29 PM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel