• Breaking News

    Thursday, November 21, 2019

    Android Dev - Google wants Android to use regular Linux kernel, potentially improving updates and security

    Android Dev - Google wants Android to use regular Linux kernel, potentially improving updates and security


    Google wants Android to use regular Linux kernel, potentially improving updates and security

    Posted: 20 Nov 2019 02:15 PM PST

    LiquidSwipe library - Make awesome onboarding designs

    Posted: 20 Nov 2019 11:59 AM PST

    [DISCUSSION] The best interview coding challenges

    Posted: 21 Nov 2019 07:14 AM PST

    We've had a bunch of posts in the past few weeks regarding bad interview experiences, mostly focused around the incredibly stupid coding challenges some companies request from the applicants.

    Now, I'd like to hear about the *good* challenges y'all have encountered in the past few years. It would also be nice if we put together a list of requirements that make such a challenge good. In my opinion, these characteristics should be mandatory:

    • Appropriate time for the challenge (not 2-3 hours to bootstrap an app and implement an API, database, and UI, with good architecture)
    • Clear goals to achieve (not things like "do whatever you want with this API)
    • Clear list of expectations regarding technologies, architecture, UI
    • Not too generic regarding the task (I think I'm not the only one who gets bored the fifth time they need to implement the JSONPlaceHolder API with slight variations due to different tech requirements). This also helps filtering out people who would just look up an existing solution and copy it
    • Fun task that is relevant to the company

    An example that more or less matches this would be the task our company gave out to applicants to our mobile developer positions. This task, while fails some of the above points, was a nice fit, and we were more interested in what the applicants can do on their own (since the position involves a lot of solitary work and managing your own project). We asked them to implement the Dog/Cat APIs and make something fun out of it. The reason for the API choice? Our company is a pet tech company.

    So, what are your experiences with good challenges?

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

    Help me choose a MacBook Pro (2019) spec for android development. 16GB RAM or 32GB RAM?

    Posted: 21 Nov 2019 06:58 AM PST

    Hi, I am from India and the only version of MacBook pro available here is the one with 16GB of RAM. Will that be enough for running Android Studio, Google Chrome, and two emulators simultaneously?

    I want to know whether it is barely enough or is it more than enough. If it is just barely enough I will have to get one with 32GB of RAM from abroad (even though it will be very costly). Planning on iOS development too, so I can't go with anything else but MacBooks. If you can share your current RAM usage on MacBooks while development will be really helpful.

    TLDR; Is the 16GB RAM on MacBook Pro barely enough or more than enough for android development with emulators running?

    submitted by /u/mido-reigh
    [link] [comments]

    What annoy you the most with the current UI toolkit?

    Posted: 20 Nov 2019 11:09 PM PST

    I'm working on a talk about Compose for DroidCon, and I'm looking for what things bother you the most with the current UI toolkit.

    So if you have something that bother you I would love to know

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

    State of Sceneform and ARCore

    Posted: 21 Nov 2019 06:53 AM PST

    Does someone have more information about the current state of Sceneform and ARCore?

    I'm asking because there are a lot of (severe) issues in both the Sceneform and ARCore repositories but there is absolutely no communication whatsoever in both of them:

    https://github.com/google-ar/sceneform-android-sdk/issues

    https://github.com/google-ar/arcore-android-sdk/issues

    Yes, I still see new devices getting support for ARCore; yes, I still see new versions and features. In fact, this year support was added for moving augmented images and environmental HDR and I certainly appreciate it. But since then there is almost no word coming from Google despite giving promises to change that: https://github.com/google-ar/arcore-android-sdk/issues/775#issuecomment-493232081

    The ultimate reason I now decided to write this post is that there is a bug where a ViewRenderable attached to a node does not redraw its views on Android 10, that means that animations and any other action that requires invalidation do not work at all. There is an issue for that (https://github.com/google-ar/sceneform-android-sdk/issues/899), but somehow no one cares about it. It is mind-blowing to me that such a critical bug (which ideally should be fixed as quickly as possible) gets no treatment at all.

    What is noteworthy about this is that at the same time the Filament repository is very lively (Sceneform uses Filament as the underlying renderer engine); almost every issue gets addressed or discussed very quickly: https://github.com/google/filament/issues

    I do understand that augmented reality is big technical challenge (especially considering all those different devices). Perhaps I am spoiled by the whole communication we know from the Jetpack related teams, which all in all is very good. I'm not expecting big features every few months, but I really would at least expect a similar level of communication and predictability for Sceneform and ARCore.

    I'm not sure. Are my expectations too high? Is there no demand from developers that would justify a better treatment from Google for these frameworks?

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

    What is tethering hardware acceleration

    Posted: 21 Nov 2019 04:01 AM PST

    I saw this on my devoloper options on s9 plus. If I disable it will I get better hotspot speeds?

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

    WorkManager and Support Libraries

    Posted: 21 Nov 2019 05:45 AM PST

    I am working to integrate WorkManager in my Android project which have couple of apps and and an sdk in the same project(kind of Android monorepo).

    I intend to use only WorkManager as an androidx dependency and other support library dependencies continue to remain as they are (com.android.support.*). I am running into lot of build issues related to duplicate entries for classes like listenablefuture, INotificationStub, etc.

    Is it possible to use com.android.support.* and androidx.* package dependencies in the same project? I mean can we use both implementation androidx.work:work-runtime:2.2.0 implementation com.android.support: support-annotations:26.1.0 in the same project? Has anyone done this successful?

    I couldn't find any documentation which says both can't be used in the same project.

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

    Observe/calback to any class that currently active. Is it possible?

    Posted: 21 Nov 2019 02:48 AM PST

    So im planning to create a class that will do some job. once the job is done, i want it to call to any class who is currently active.

    For example;

    i have a Class1.class which is not active, Class2.class who is currently active

    when my SomeJob.class done processing, will callback it to Class2.class.

    EDIT: I just recently found about EventBus, is it a good library?

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

    WorkManager 2.3.0-beta01 is now available.

    Posted: 20 Nov 2019 10:35 AM PST

    This means that we are API stable. :)

    Here is the release notes.

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

    How to have concurrent animations on the same item in RecyclerView (notifyItemXYZ) in a chat app?

    Posted: 20 Nov 2019 06:44 PM PST

    Hi, I have this issue, in chat app, where messages are sent via

    1. insert into db message with state = SENDING
    2. actually send the message over network
    3. update message with state = SENT

    At the UI layer there is Observable<List<Message>>, which is then diffed via DiffUtil.

    The update from 3rd bullet changes just the message.state, so in terms of the UI its just changing a state icon (like in FB messenger). So I implemented that via the payload method in the DiffUtil, so only imageView.setImageResource is basically called

    All is good, untill I "turn on" the itemAnimator on that RecyclerView.

    What I observe is that insert animation matching with the 1st point is okay, but actual sending is very quick, so the animation matching the update comes during the animation of the insertion, canceling it, and just jumping to the end state, no animation. (While other items who moved to make place for the item, continue animating)

    Is there a way where I could have just the icon change (no animation) on the view via notifyItemChanged(payload) while the sliding translation animation of the insertion is currently running (and keep it running)? Its for sure possible on regular views manually, so it must be just the recyclerView apis.

    I looked at the sources of DefaultItemAnimator, and its a lot of code. Is this even possible? Is custom animator the only option?

    Thanks

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

    Set/change resConfigs per build type

    Posted: 21 Nov 2019 01:59 AM PST

    How can I set or change the resConfigs per build types?

    What I need is:

    • Debug build should include 3 language resources (all others can be striped out of the app). Example: "de","es","fr"
    • Release build should include only 1 language resource. Example: "de"

    The main problem is that resConfigs is not working in the android/buildTypes/all|debug|release block.

    I found following infos about how to achieve this, but none of them is working:

    1. https://stackoverflow.com/questions/25737518/resconfigs-per-build-type/41975113
    2. https://stackoverflow.com/questions/42259173/android-how-to-reset-resconfigs-for-release-variant

    I would need some advice.

    Thank you in advance!

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

    What does this activity do?

    Posted: 21 Nov 2019 01:55 AM PST

    I am using Assist Mapper to change remap the assist gesture. What does this trigger? It only flashed screen corner when I use it.

    http://imgur.com/gallery/0VmzXt5

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

    How to update view other than main UI thread after every fixed interval?

    Posted: 21 Nov 2019 12:54 AM PST

    I notice that because of the Runnable my app is lagging since runnable is basically running in UI thread only. Then I tried to use Thread, MyAsyncTask as well. But it throws error saying that only the main thread can touch its view.

    But I don't want to update any view in my UI main thread.

    What is the best possible way to achieve it. Please help!!

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

    Draw a simple layout with an header and body using only one ConstraintLayout

    Posted: 20 Nov 2019 06:11 PM PST

    Draw a simple layout with an header and body using only one ConstraintLayout

    Header and body using ConstraintLayout

    Hi !

    I would make a simple layout

    https://preview.redd.it/9r9vfbq87yz31.png?width=800&format=png&auto=webp&s=99ca3b6a1ac06070609f49544b3e7aab6b2b7f70

    Header should be of a different color from Body, and I want a shadow between header and body (body should be elevate).

    Make it with linear layout is soo simple, but I can't do it with constraintLayout.. Can you help me ? I'm studying constraint and it is not soo easy for me ..

    Some other details:

    1. the header will stick
    2. the recycler view will be covering all the space other than header view but with a left and right margin
    3. i don't undestand how can I divide the section, with linear layout I would have created an external linearLayout with vertical orientation. Inside that I would have created a container at top with a given background and an elevation, with matchparent height (some dp), under that I would have created another linearLayout match parent , match parent. Inside this last linear layout I would have inserted a recycler view with a margin left and right

    Actually I have tried this :

    <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/btn1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="btn1" app:layout_constraintBottom_toBottomOf="@id/view" app:layout_constraintEnd_toStartOf="@id/btn2" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/btn2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="20dp" android:text="Button2" app:layout_constraintBottom_toBottomOf="@id/view" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="30dp" android:padding="10dp" android:text="title" android:textSize="20sp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <View android:id="@+id/view" android:layout_width="match_parent" android:layout_height="0dp" android:background="red" app:layout_constraintBottom_toBottomOf="@id/title" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <androidx.recyclerview.widget.RecyclerView android:layout_width="match_parent" android:layout_height="0dp" android:background="blue" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/view" /> </androidx.constraintlayout.widget.ConstraintLayout> 

    but in this way there isn't shadown/divider between the red header and the blue body ..The only way is to use an inner constraint layout ?

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

    Serious vulnerabilities found in Google and Samsung camera apps. Could be used to remotely access and control phone camera and microphone.

    Posted: 20 Nov 2019 06:01 PM PST

    Android Studio 4.0 Canary 4 available

    Posted: 20 Nov 2019 12:08 PM PST

    Android's camera app exploit can be used to spy on users

    Posted: 20 Nov 2019 09:58 PM PST

    new apps since 8 november are app not showing in play store

    Posted: 20 Nov 2019 02:24 PM PST

    i think google play made an update in 8 november to their search algorithm i published app and it is not showing on search result you can take any app from google play tha published in 8 november or later try to search with title no results

    is this new google play algorithm or just a bug ?

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

    Looking for an API for device thumbnails

    Posted: 20 Nov 2019 04:49 PM PST

    I'm working on a project and I was wondering if anyone here knows of any API to get a thumbnail of a device like a phone, tablet or laptop.

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

    10 Mobile app development ideas for 2019 - iFour Technolab

    Posted: 21 Nov 2019 12:19 AM PST

    Has anyone actually had success by putting your app in the Early Access section of Google Play?

    Posted: 20 Nov 2019 04:06 PM PST

    My game is in Early Access, but we don't feel the need to put it in that section. On the title screen, it says EARLY ACCESS. Is this not enough?

    My users know its early access, and they know it even more by looking at the title screen. Are there actual benefits to putting it in this section...?

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

    NotificationsService

    Posted: 20 Nov 2019 06:11 PM PST

    how to make app notifcations service always running, there is apps such telegram that notifications doesn't stop at all

    submitted by /u/mostafa-mrgeek
    [link] [comments]

    No comments:

    Post a Comment