• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, August 20, 2019

    Android Studio 3.5: Project Marble goes into stable Android Dev

    Android Studio 3.5: Project Marble goes into stable Android Dev


    Android Studio 3.5: Project Marble goes into stable

    Posted: 20 Aug 2019 10:11 AM PDT

    Google Login is shit

    Posted: 20 Aug 2019 07:09 AM PDT

    Can we all take a minute and agree on Google login is full of shit. I don't understand why the f*** it's so complicated. Every time I have to work on Google Login a part of me dies, every single time. The worst part about Google Login is you are clueless about what is going wrong it's all guesswork. Please Google Devs for one last time fix it. Make it straightforward like Facebook

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

    What’s New in Android Studio 3.5

    Posted: 20 Aug 2019 10:05 AM PDT

    Introducing Bottom Navigator, a multiple backstack bottom navigation library

    Posted: 20 Aug 2019 09:59 AM PDT

    Hey everyone! I wrote my first article on medium about Hexagonal Architecture in a modular Android application. Please check it out if you're interested.

    Posted: 20 Aug 2019 02:17 AM PDT

    Speed up your Android Studio

    Posted: 20 Aug 2019 12:23 AM PDT

    Why is MVVM and jetpack considered "the right way"?

    Posted: 20 Aug 2019 01:28 PM PDT

    I've been making myself familiar with the new Android stuff after asking what I missed out on after 3 years.

    And the main question I had in the background of my head was: "why"? All of it, but particularly MVVM. It just seems such a workaround, several classes for a simple view, the viewmodel, the viewmodelfactory, etc. etc. Apparently you aren't even supposed to put business logic inside it, it's strictly for representation of the data.

    All of that is nice and dandy, separation of concerns and all that but when you start doing stuff that's slightly more than a simple CRUD app, that's where things are starting to get weird.

    A few examples:

    • oh you have a form and you want to use two-way data-binding for it? No problem, just be aware that you have to implement a fucking if statement so it doesn't loop infinitely and setters for the text itself. Why we forgot to include that ourselves? Lol, I don't know
    • view binding: we've provided powerful tools to make you write less and less view and formatting related code... To write it right into the xml itself (because that's what xml's are apparently for now)
    • lifecycle aware components: isn't it great? You don't have to worry about activity and fragment lifecycles anymore! Unless you open a dialog that is

    Etc.

    Sometimes I just want to throw it all of it into the trash because it just seems like avoiding some effort while doing twice the effort in reality.

    What do you guys think? I know it's a little rant and I'm honestly not outright rejecting, but it's all just so confusing. Maybe I'm missing something? Maybe I'm not really seeing the advantages?

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

    Privacy features for personal data?

    Posted: 20 Aug 2019 01:13 PM PDT

    Hello Androiddev,

    I'm working on an that helps manage personal data in a simple and secure way.

    How it works is basically the user connects multiple data sources (for now it's only GPS, Google Fit, and phone/app usage), the app starts gathering their data, and stores the data in an AES-256 bit encrypted database only on the user's device, not connected to any servers. From there the user can visualize their data in different ways (at the moment there are 9 default visualizations), view and export their raw data.

    The user can set a password for their data when exporting it, and will soon add feature to set pin for accessing the app and viewing raw data.

    What I would like to know/get your opinions on is are there any other privacy and security features that I should consider adding?

    TLDR: app gathers data and stores in encrypted database on user device only, not connected to any servers. What other privacy and security features to add?

    Thanks for your time.

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

    Android Studio 3.5 available in the Stable channel

    Posted: 20 Aug 2019 10:16 AM PDT

    [Tutorial] Have you wondered how to load web content without using WebView? Take a look at this tutorial GeckoView Getting Started

    Posted: 20 Aug 2019 08:07 AM PDT

    GitHub - igorwojda/android-showcase: ��Android application following best practices: Kotlin, coroutines, Clean Architecture, feature modules, tests, MVVM, static analysis...

    Posted: 20 Aug 2019 12:23 PM PDT

    Error handling in MVVM with Coroutine and Repository

    Posted: 20 Aug 2019 02:23 PM PDT

    I'm working on a private application and have wired together Dagger 2, repository, etc. in the MVVM architecture. Now I have a conceptual problem of how to display error messages that happen in the repository because of database/API calls.
    I looked around and usually, the examples are pre coroutines days and they use executers. Now I have a problem understanding what is the best approach to solving it.
    Google documentation has one suggestion for LiveData and that is to use liveData with emit. Never seen this and was wondering what are your thoughts about it?
    If anybody has some suggestions about what to do or what article to read because you can go down the Result class or handling errors in the "CoroutineExceptionHandler". I'm overwhelmed by the sheer number of possible solutions.

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

    iOS -> Android. What can I do with my current background to get an position as a Jr. Android Developer

    Posted: 20 Aug 2019 11:32 AM PDT

    For context, I've been had experience as an iOS Developer for small contracts. Both contracts lasted me about 3-4 months. I'm taking a period of time off from programming to figure out what I want to do professionally because I'm not sure iOS interests me as much anymore (the real reason is because I need to update my phone but I don't want to fork out 400 dollars for a used iPhone 8 when I could get better value elsewhere.)

    I'm considered to be a Jr. level developer as of right now, and I was wondering what it would take to land a Jr. Android developer position. From my experience as an iOS dev it was having an app on the appstore and working on a couple of projects actively. Is the process more or less the same for Android?

    Aside from that, the one thing that I'm conflicting with is that my locale (Boston, MA) doesn't have as strong of an Android community as it does an iOS Community (there are at least 3 prominent meetups here for iOS) and I'm admittedly scared of leaving the benefit of the community we have here for a nearly non-existent Android community. Not sure if this makes a large difference for job hunts, but I figured I should mention that.

    Thank you in advance for your input ahead of time.

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

    Trouble using localStorage or alternative for WebView app

    Posted: 20 Aug 2019 02:52 PM PDT

    I am not very experienced with Android dev, but I am very experienced with web dev. I am creating a fairly simple webview-based app to our mobile site. The webview app I have so far basically works fine, actually. When the app launches, it detects if the network is connected.

    If yes, it opens webview to a remote URL at our server. This works great. The page on our remote server saves some data to localStorage. This also works fine and correctly in a 'normal' browser.

    If no network access, the app loads a local page into webview. I have an "assets/html" folder in the app with local HTML/JS/CSS. The local page itself loads fine, but invoking localStorage does not see the data saved when the app was online.

    Should this work? Should this not? I don't know enough about Android webView to even know if this principle is sound.

    Basically, I want data saved to localStorage when the webview app is online and hitting our server, and then for the local pages saved inside the app to be able to read this localStorage.

    This may be overkill but these are the permissions in my manifest:

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

    And these are my webview settings in java:

    webview.getSettings().setJavaScriptEnabled(true);
    webview.getSettings().setAppCacheEnabled(false);
    webview.getSettings().setDomStorageEnabled(true);
    webview.getSettings().setDatabaseEnabled(true);
    webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

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

    Why aren't the Sources for Android 29 released yet?

    Posted: 20 Aug 2019 02:50 PM PDT

    I know this gets asked for every release version, but I'm still surprised that the sources aren't released along with each SDK revision, and it makes it difficult to cleanly switch to the next upcoming API level ahead of the full rollout when it means losing the ability to look at the sources while developing. Is there a timeline for when they'll be out?

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

    Is having multiple Fragments sharing a View Model a violation of the Single Responsibility Principle?

    Posted: 20 Aug 2019 10:08 AM PDT

    Here's an example, lets say I have a view model shared by 3 Fragments all hosted in the same activity. The view model reacts to events in each of the fragments like so:

    fun FirstFragOnCreate(){ ... } fun SecondFragOnStop(){ ... } fun ThirdFragStartButtonClick(){ ... } 

    Isn't this clearly a violation of SRP since the view model is responsible for multiple Fragments? I imagine this view model would get bloated real fast, and you'll probable have you use some sort of "FirstFrag/SecondFrag" prefix for all related methods and properties to avoid confusing specific fragment logic.

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

    Solving Room "cannot find setter for field" error in build time

    Posted: 20 Aug 2019 05:03 AM PDT

    How to make beautiful app screenshots without Photoshop or GIMP

    Posted: 20 Aug 2019 01:19 PM PDT

    How to force Emoji keyboard in Android keyboard?

    Posted: 20 Aug 2019 12:53 PM PDT

    I need to implement Emoji keyboard as soon as user presses emoji icon (similar to Facebook Messenger). I tried various libraries, but they all had issues, because I have EditText inside of recyclerView and apparently libraries don't support that.

    This is why I decided to stick to native Android keyboard, because it also has nice functionality. However, I would like to force open emoji keyboard after user presses particular button in the application, how to archieve that? It would be more convenient to user..

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

    Can the new AudioPlaybackCapture API in Q record the entire system audio or only a specific app at a time?

    Posted: 20 Aug 2019 08:58 AM PDT

    I'm looking to create a sort of companion app to scrcpy that can forward the audio to the PC (preferably over ADB if possible since that's what scrcpy is using). However, looking into the API docs, it almost looks like you have to request to record audio on a per-app basis.

    Has anybody here implemented it yet to know for sure?

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

    How to simplify this model class for the request

    Posted: 20 Aug 2019 12:12 PM PDT

    I have a response that's returning savingGoals: List

    https://paste.ofcode.org/8tGc55XprbX5Gw7VMSdLL8

    This looks a bit possibly wrong. How do I handle this response with just Goal class?

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

    Search Bar not Working

    Posted: 20 Aug 2019 10:36 AM PDT

    I am attempting to add this search bar https://github.com/mancj/MaterialSearchBar to my android app, but it does not appear to be working, I have followed all the instructions from the link. When I hover the cursor over that part of the XML code, it does indicate something is there, but it is not visible, could anyone please help me figure out why?

    What it looks like: https://imgur.com/a/SaTMaMr

    What its supposed to look like: https://imgur.com/a/DA5TqQh

    Youtube Video I followed: https://youtu.be/ifoVBdtXsv0?t=1970

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

    [discussion] I always runs into posts on Facebook claiming they've got the source code of the popular android apps (e.g Youtube, Facebook, Uber...etc). But what about de-compiling, and the fact that the code gonna be like a mess. So is that true?

    Posted: 20 Aug 2019 10:19 AM PDT

    App Content for general purpose app?

    Posted: 20 Aug 2019 01:09 AM PDT

    How would you rate app content form for lets say a calculator or wallpaper app that has ads?

    The whole designed for children and families is a minefield. Does rating apps like this for 13-15 seems smart?

    Does rating it higher affect app discovery? How would you rate for example a nature wallpapers app?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel