• Breaking News

    [Android][timeline][#f39c12]

    Monday, February 3, 2020

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 03 Feb 2020 04:44 AM PST

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Weekly Questions Thread - February 03, 2020

    Posted: 03 Feb 2020 02:57 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?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    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]

    Material Components 1.1.0 stable version released

    Posted: 03 Feb 2020 10:15 AM PST

    Complex UI/Animations on Android — featuring MotionLayout

    Posted: 03 Feb 2020 03:09 AM PST

    Kotlin Annotations

    Posted: 03 Feb 2020 12:49 PM PST

    Got a confusing review then checked device info. Anybody knows how this can happen?

    Posted: 03 Feb 2020 11:46 AM PST

    Any pitfalls with Dagger setup implemented using Kotlin in a mixed Java/Kotlin codebase?

    Posted: 03 Feb 2020 07:11 AM PST

    Many companies that used Dagger started a migration to Kotlin (or already migrated).

    However, if I remember correctly, there have been some issues with writing Dagger infrastructure using Kotlin in mixed codebases. I distinctly remember that Lyft had to keep their Dagger-related code in Java for some reason, but I don't remember where I read that (and not even sure it happened).

    So, if I have relatively big project that uses both Java and Kotlin and I want to integrate Dagger into it using Kotlin, are there any pitfalls and nuances that I need to be aware of?

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

    AdSense account suspended for self clicking. But I did not a SINGLE time self click? How to prevent?

    Posted: 03 Feb 2020 04:47 PM PST

    I just released my app and roughly a week in I got the selfclick suspended mail from AdSense.

    The thing is: I'm 100% sure that I never clicked my own ads, since ads don't load in Unity. I always use the test ad ID from google and only for the full release switch to my personal ID.

    So first: How can this be prevented in the future? No idea what triggered their system but it will happen again.

    Second: Any good ad provider as alternative. I heard many horror stories about AdSense, now I know why.

    EDIT: I have a theory. My friends and family probably watched a ton of ads because they played a lot my game. Could this be the reason?

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

    ConstraintLayout negative margin support

    Posted: 03 Feb 2020 07:42 AM PST

    Why constraint layout removed negative margin support?. Any valid reason? Any alternatives other than negative translation? Is it possible to extend ConstraintLayout and add negative margin support by ourself?

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

    How do I use ShapeableImageView?

    Posted: 03 Feb 2020 04:20 PM PST

    https://github.com/material-components/material-components-android/issues/780

    It was primarily created to remove the need of a cardview outside the ImageView. How do I do it?

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

    Data binding

    Posted: 03 Feb 2020 03:28 PM PST

    Just curious, how many of you have used the Architecture Components in production instead of third-party alternatives and vice versa, and why

    Edit: Generalized to all components

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

    20 Best Android Development Books of 2020

    Posted: 03 Feb 2020 03:27 AM PST

    How are kernel sources for processors that work with all device with that processor created?

    Posted: 03 Feb 2020 10:25 AM PST

    Sometimes I see on GitHub kernel sources for a specific processor for example for exynos7885 there is a kernel called universal7885. how are they created even though the device manufacturer doesn't release them? Are they forked from the sources of a device that have this processor?

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

    I made an app. It doesn't do much.

    Posted: 03 Feb 2020 01:26 PM PST

    It listens. It analyzes what speech it hears. It offers commentary, usually snarky, in the form of GIFs.

    I call it Silent Partner. I used MVVM architecture with LiveData, Dependency Injection with Dagger, Retrofit, RxJava, SpeechRecognition, Giphy integration - which required some special Glide integration, Pretty much everything you'd need for a much bigger app, all rolled into a nice, short , silly, little app.

    It should be live in the play store soon, but google's indexing is what it is., it may not show up for a bit. Careful if you run it - I set the GIF rating to R. Maybe NFSW, depending on what you say to it.

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

    Understand your players better with affinity learnings

    Posted: 03 Feb 2020 12:52 AM PST

    Espresso in 2020

    Posted: 03 Feb 2020 12:45 PM PST

    Android 10: open file in Download folder (received via Nearby Connections API)

    Posted: 03 Feb 2020 12:23 AM PST

    Hi.

    I have several Android 10 devices with my app targeting api 29 and I want to capture an image from one or more devices and send it to a 'master' device which will then open the images and upload to a server, and I figured Nearby Connections API would be the perfect fit - or so I thought.

    I am following this guide and the connection and transferring of the image file works just fine. Trouble is the file is placed in a 'Neaby' folder in 'Downloads'. I figured I should use MediaStore.Downloads and I would then be able to access files created by my app, but I don't get any results when doing the following:

    requireActivity().applicationContext.contentResolver.query( MediaStore.Downloads.EXTERNAL_CONTENT_URI, arrayOf(MediaStore.Downloads.DISPLAY_NAME), null, null, null ).use { cursor -> while (cursor.moveToNext()) { //Not reaching this point :/ } }

    I use "com.google.android.gms:play-services-nearby:17.0.0".

    Lowering target api or setting android:requestLegacyExternalStorage="true" are not options ;)

    Am I doing something wrong or is my goal simply not possible with the current state of play-services-nearby?

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

    Android studio XML editors

    Posted: 03 Feb 2020 10:47 AM PST

    I am currently designing an android application. The xml design is generally frying my head. Anything I change moves all the other components. I was wondering is there any xml editors that make this much more simplistic. Akka generating the code which can be pasted into android studios?

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

    Trouble with Mosby MVP

    Posted: 03 Feb 2020 09:10 AM PST

    It's been a month since I started an Android Internship. The company whom I work for, they use Mosby MVP pattern, and I am having trouble to get used to it. Any helpful resource would be appreciated !

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

    Error running "App": default Activity not found

    Posted: 03 Feb 2020 07:42 AM PST

    Error running "App": default Activity not found

    Very stupid question but I've been working on this project for two months now and have never had this problem. All online solutions such as

    1. Invalidate caches restart
    2. clean and rebuild
    3. deleting cache folder of android studio
    4. Default activity is mentioned in the manifest

    Has not worked.

    https://preview.redd.it/6ow2xfgcbqe41.png?width=772&format=png&auto=webp&s=7ed0455a6dec6bd219cd07e00884ff9eb55f9545

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

    Protected method not accessible from subclass

    Posted: 03 Feb 2020 06:46 AM PST

    Hi everybody, I don't know if this is the right place to ask as this is not strictly related to Android (I suppose, it happened to me in Android and r/Kotlin rules redirected here)

    I have a parent class where a member is declared protected (please, refer to this StackOverflow post whose this is an exact copy)

    class BaseContoller<G: BaseContract.BasePresenter, F: BaseModel> { protected var presenter: G? = null // ... } 

    In each of BaseController's descendants, I refer to presenter with no problem as it is accessible in the same package and subclasses. One BaseController's descendant has to be extended by other classes too but I have to do one check before of performing certain actions in where presenter is referenced again

    class BackupPrinterController<G: BackupPrinterContract.Presenter, F: BaseModel>: BackupController<G, F> private fun startScan() { if(this is PrinterAssociationController) { PrinterConnection.onConnection = { presenter?.onDeviceConnected(it) } // ... } } } 

    The strange behaviour comes here, presenter is perfectly accessible only without the filter if(this is PrinterAssociationController), with that if statement, when the onConnection callback is invoked, an IllegalAccessError exception is thrown by presenter

    Here is the declaration of PrinterAssociationController

    class PrinterAssociationController: BackupPrinterController<PrinterAssociationContract.Presenter, PrinterAssociationModel>(), PrinterAssociationContract.View 

    and here is the exception

    java.lang.IllegalAccessError: Method 'package.common.base.BaseContract$BasePresenter package.common.base.BaseController.getPresenter()' is inaccessible to class 'package.project.features.shared.controllers.BackupPrinterController$startScan$1' (declaration of 'package.project.features.shared.controllers.BackupPrinterController$startScan$1' appears in /data/app/package.project-1/base.apk:classes2.dex) at package.project.features.shared.controllers.BackupPrinterController$startScan$1.invoke(BackupPrinterController.kt:53) at package.project.features.shared.controllers.BackupPrinterController$startScan$1.invoke(BackupPrinterController.kt:35) at package.project.utils.print.PrinterConnection$scan$1$4.accept(PrinterConnection.kt:84) at package.project.utils.print.PrinterConnection$scan$1$4.accept(PrinterConnection.kt:24) at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63) at io.reactivex.internal.operators.observable.ObservableFilter$FilterObserver.onNext(ObservableFilter.java:52) at io.reactivex.internal.operators.observable.ObservableDistinct$DistinctObserver.onNext(ObservableDistinct.java:85) at io.reactivex.internal.operators.mixed.CompletableAndThenObservable$AndThenObservableObserver.onNext(CompletableAndThenObservable.java:65) at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.tryEmit(ObservableFlatMap.java:265) at io.reactivex.internal.operators.observable.ObservableFlatMap$InnerObserver.onNext(ObservableFlatMap.java:562) at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onNext(ObservableDoOnEach.java:101) at io.reactivex.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:62) at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60) at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:66) at com.polidea.rxandroidble2.internal.serialization.FIFORunnableEntry$1.onNext(FIFORunnableEntry.java:66) at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58) at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:66) at com.polidea.rxandroidble2.internal.operations.ScanOperationApi21$1.onScanResult(ScanOperationApi21.java:77) at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:471) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at com.osama.firecrasher.FireLooper.run(FireLooper.kt:39) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6780) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1500) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1390) 

    I don't understand why this is happening when I put that if statement

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

    Published library with helpers for migration from RxJava to Coroutines/Flows and otherwise. Maybe someone will be interested.

    Posted: 03 Feb 2020 06:45 AM PST

    Have the guidelines for back vs. up navigation changed?

    Posted: 03 Feb 2020 02:49 AM PST

    The guidelines for back and up navigation used to look like this. (Internet Archive)

    However, that same page now redirects to a new page: https://developer.android.com/training/design-navigation/ancestral-temporal

    There is also this new page:

    https://developer.android.com/guide/navigation/navigation-principles#up_and_back_are_identical_within_your_apps_task

    Previously, it was recommended that the back button and the up button should not always have the same behaviour. However, the new advice is:

    Within your app's task, the Up and Back buttons behave identically.

    This seems like a change for the better, but I can't find any announcement for it, which seems strange for such a big change.

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

    Second Google play developer account

    Posted: 03 Feb 2020 06:29 AM PST

    I have a question about registering multiple Google Play developer accounts. Maybe someone have expirience with it. I already have Google Play developer account, it do not have account suspense, strikes, banned apps, etc. But I want have different kind of apps on another account to prevent users who use apps from my first account see apps, that I will publish on another account. I plan to pay for that account with same creadit card and use same ip adresss, computer, but different browser. can I do it without risk to get ban from Google on both my accounts?

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

    [DEV] Star Launcher �� - Themes, Wallpapers, Widgets

    Posted: 03 Feb 2020 06:27 AM PST

    Hello, I want to recommend my launcher and would like to know your first impressions about him.The other day, at the request of my users, I added background hotseat and hide apps function. If you have any suggestions, then be sure to write, I will consider it.
    Link:
    https://play.google.com/store/apps/details?id=com.hypergdev.starlauncher
    ------------------------------------

    Features of Star Launcher:- Notification dots 📨· Star Launcher will show you which applications have active notifications without having to download an external plugin. This makes the function more stable and reliable.

    - Smart Search 🔎· The Star Launcher search bar allows you to quickly find contacts and applications or perform actions such as searching on the Internet, you can also choose your provider: Google, Bing, DuckDuckGo, Yandex.

    - New look of the phone 📱· Choose different themes (light, dark, transparent).· Set background hotseat and customize color search bars.· Personalize applications with a custom icon pack and use responsive icons to make their appearance consistent.· Resize and mesh icons

    - Protect your apps 🔒· You can hide applications, as well as hide the name of applications in the menu and on the desktop.

    - Gesture settings 👆· You can configure gestures to lock the phone with a double tap on the screen, open the application panel by swiping up the screen, etc.

    - Built-in calendar widget 📆· The built-in widget has been redesigned to display information such as the next event and weather.

    All good and positive!

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

    Can you check the activity stack if it contains a certain activity?

    Posted: 03 Feb 2020 12:04 AM PST

    Hello!

    I'm wondering if it is possible to check if the activity stack contains a certain activity to know if this activity has already been launched before? Is it possible to distinguish between activities already launched and activities that have not been launched yet?

    Thank you.

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

    What's the best 'stack' for a new mobile developer shifting from web development?

    Posted: 03 Feb 2020 09:36 AM PST

    Hi! To give some context, I am a recent college grad and have worked for about a year as a full-stack engineer using mostly Python and ReactJS. I recently wanted to start developing mobile apps, as I believe they can have more reach than just a web app. Specifically, I have an idea for building a Recipe Box app to store, search, and edit informal recipes (description of the project here).

    But, I'm pretty confused about which 'stack' to choose for this project. The options are:

    1. Native Development using Kotlin - I spent a few days learning Kotlin. It seems okay to learn, but I'm a bit rusty on Java so it still feels a bit verbose to me as a language. However, I know that native app development is usually ideal for performance. Also, most of the demographic I'm going to cater towards has Android from my analysis, so I'm not sure if this is all I need.
    2. Multiplatform Development using React Native - Since I worked for more than a year using React, this should be the most ideal option in terms of learning curve. Even though React Native is well-tested and has lots of users, I am not sure how 'future proof' it is. Especially for someone new, I've heard that it has less useful widgets or libraries compared to Kotlin or Flutter.
    3. Multiplatform Development using Flutter - My main concern with Flutter is that it's new, so working with it may introduce some unnecessary hurdles as a new mobile dev. But, I really like how versatile it is to make iOS, Android, Web, and Desktop apps. I also love all the widgets and the general community around Flutter.

    Right now, I'm leaning towards Flutter just because I think it has a lot of potential. But, I was wondering if you have worked with any of these, and what your suggestion would be for me?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel