• Breaking News

    [Android][timeline][#f39c12]

    Thursday, February 22, 2018

    TIL: Originally, the Android versions were internally named after robots, with Astro Boy and Bender used. They switched to candy/sweets when they realized there weren't enough robot names for future versions. Android Dev

    TIL: Originally, the Android versions were internally named after robots, with Astro Boy and Bender used. They switched to candy/sweets when they realized there weren't enough robot names for future versions. Android Dev


    TIL: Originally, the Android versions were internally named after robots, with Astro Boy and Bender used. They switched to candy/sweets when they realized there weren't enough robot names for future versions.

    Posted: 22 Feb 2018 07:40 AM PST

    As heard in this talk: Android History, from the inside:

    https://www.youtube.com/watch?v=rimXGaUdaLg&t=166s

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

    The Custom Toolbar For A Game I'm Working on

    Posted: 21 Feb 2018 06:34 PM PST

    Where does Android community stands with respect to Singletons.

    Posted: 22 Feb 2018 05:53 AM PST

    Just saw a link to this thread in which both Reto Meier and Dianne Hackborn advocate for Singletons instead of Application.

    I became very curious about where do we, as community, stand in this respect today.

    It will be particularly interesting to hear your opinions about the following statements:

    Reto Meier:

    The thing is, in order to access application state information from within your Application object, you must treat it as a singleton as well, so there's no real difference

    Dianne Hackborn:

    The only reason Application exists as something you can derive from is because during the pre-1.0 development one of our application developers was continually bugging me about needing to have a top-level application object they can derive from so they could have a more "normal" to them application model, and I eventually gave in.

    I will forever regret giving in on that one. :)

    There is no reason to subclass from Application. It is no different than making a singleton, just likely to be something you regret in the future as you find your Application object becoming this big tangled mess of what should be independent application logic.

    If what you want is some global state that can be shared across different parts of your app, use a singleton. The singleton won't get GCed, because you have a global static reference on it. And this leads more naturally to how you should be managing these things -- initializing them on demand.

    The framework itself has tons and tons of singletons for all the little shared data it maintains for the app, such as caches of loaded resources, pools of objects, etc. It works great.

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

    Registrations for Google IO 2018 are open!

    Posted: 22 Feb 2018 10:04 AM PST

    How do you use the user's default browser as a webview?

    Posted: 22 Feb 2018 11:35 AM PST

    I noticed Slack for Android doing this, but I have no idea how they do it. For example, if you set your default browser to Firefox, all your link clicks inside Slack will be opened in using a Firefox webview embedded into Slack. If you click the hamburger menu it even says "Powered by Firefox". How does this work? How do I do it for my own app?

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

    Mobius: Spotify's reactive framework

    Posted: 22 Feb 2018 02:50 PM PST

    What should I know before publishing a paid app?

    Posted: 22 Feb 2018 02:38 PM PST

    Hi guys. What should I know about things like taxes, laws, etc. before publishing a paid app?

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

    Has anyone used AndResGuard to obfuscate resource files?

    Posted: 22 Feb 2018 10:46 AM PST

    I want to obfuscate resource files and it seems AndResGuard is the only solution for that. It is an open source tool however I want to know if there is any downside of using for our projects.

    Github Link

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

    The "Develop" section on developer.android.com just got a massive overhaul. (merging and updating Training and API Guides)

    Posted: 21 Feb 2018 11:41 PM PST

    What are the must have skills of an experienced android developer?

    Posted: 22 Feb 2018 01:05 AM PST

    I am confused lately, how are android developers distinguished based on heir skills?. As there are a lot of them outside, and each one having learnt few stuffs, how can you put them under different categories based on their skills?. It would be really helpful if someone has any idea on it.

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

    Kotlin for grumpy Java developers – Pinterest Engineering

    Posted: 22 Feb 2018 11:35 AM PST

    Moshi: Dealing with one field that is sometimes boolean and sometimes int

    Posted: 22 Feb 2018 04:47 PM PST

    I'm trying to work with the reddit JSON API. There are post data objects that contain a field called edited which may contain a boolean false if the post hasn't been edited, or a timestamp int if the post was edited.

    Sometimes a boolean:

    { "edited": false, "title": "Title 1" } 

    Sometimes an int:

    { "edited": 1234567890, "title": "Title 2" } 

    When trying to parse the JSON where the POJO has the field set to int, I get an error: JsonDataException: Expected an int but was BOOLEAN...

    How can I deal with this using Moshi?

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

    Anybody use the Robot pattern for testing their Android apps?

    Posted: 22 Feb 2018 06:03 AM PST

    Can someone explain unit testing to me?

    Posted: 21 Feb 2018 09:41 PM PST

    I read everywhere about the importance of unit testing and how it is the greatest thing you can do to yourself but I don't really get what it is about.

    I usually test my apps by running it in the emulator and using the specific feature that I just modify, checking with a bunch of Logs that everything has the value that I intended or it activated the way I wanted it to and it doesn't take me much time to do it. Is this because my apps haven't gotten large enough for unit testing to be essential? or is it because I work alone?

    However, if it would make gradle builds go faster then I'm up to it because most of the time I spend when I'm testing something is waiting for gradle builds, but I think this is my old laptop's fault.

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

    Animated icons on Android

    Posted: 22 Feb 2018 01:40 PM PST

    What is the difference in @Synchronized and syncrhonized(lockObeject) in kotlin?

    Posted: 22 Feb 2018 07:13 AM PST

    Is there a difference if I use one or the other? Or mix them up with 3 functions?

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

    bluetoothLEScanner Question

    Posted: 22 Feb 2018 12:44 PM PST

    I am using the bluetoothLEScanner for an Android application to interface with my hardware. I call the onScanResult method to retrieve the message from non-connectable, constantly advertising hardware (essentially a beacon) and parse the advertisement data which is constantly updated (2-3 times per second). For my particular application, at certain times I need the device to constantly scan without interruption. It works beautifully on most of the cheap LG go phones (unactivated), rarely missing a message, however I am noticing that on many common personal devices (I have seen on S6, nexus, tablets, etc) the scanning will take sporadic long pauses from scanning and miss important messages in-between. It also appears that if the device is already currently connected to other bluetooth sources, this will also negatively affect the performance of my application. Does anyone have any insight or suggestions as to what might be happening on these devices and how I could go about fixing it without changing the nature of my hardware?

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

    What is the proper way to access the Google Maps API in China?

    Posted: 22 Feb 2018 08:27 AM PST

    I come in peace from the world of iOS. I recently learned that Google maps does not work via HTTPS in China

    According to Google "The Google Maps APIs are served within China from the domain maps.google.cn. This domain does not support https. When making requests to the Google Maps APIs from China, please replace https://maps.googleapis.com with http://maps.google.cn"

    My question is how do I determine that the user is in China ?

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

    Automating Taps? (no root)

    Posted: 22 Feb 2018 12:07 PM PST

    Hi all. I'm sure this is old stuff for many of you but here goes: is there some app out there that will automate a click/tap event at a particular location on the screen?

    I've tried Automate but I'm having trouble selecting one of two buttons since they have the same attributes (accessible to Automate, anyway) and if I could just hit an X/Y coordinate I'd be good to go.

    I'm a fairly experienced developer (just not in android) so I'm happy to explore any workarounds...

    I would like to avoid root if possible due to the reimage process required for my device

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

    [Help] problem with AVD on fedora

    Posted: 22 Feb 2018 11:47 AM PST

    Hi, First of all my config:

    -i75820k

    -gtx 980 (x2)

    -Fedora 27 4.15.3-300.fc27.x86_64

    -I'm using proprietary NVIDIA drivers, 390.25

    I ran this config fine for a while until this happend all of a sudden:

    When I start AVD I get:

    Emulator: failed to create drawable Emulator: getGLES2ExtensionString: Could not create GLES 2.x Pbuffer! Emulator: Failed to obtain GLES 2.x extensions string! Emulator: Could not initialize emulated framebuffer Emulator: emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it. Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) 

    Searching online i can only find that some problem with the drivers, some people's advice is to edit the AVD and switch to software rendering, but it's 10x slower than normal.

    I had this happen on another computer running fedora at work, and since I couldn't figure it out and I was short on time, I saved all the data on a hard drive and reinstall everithing fresh.

    I did a dnf update yesterday, something might have rained wrong on my config and now I can't work.

    Someone knows what's wrong? Someone knows how to solve this? Thanks in advance.

    [Edit]: Looking through /var/log/Xorg.0.log I see:

    Failed to initialize the GLX module; please check in your X log file that the GLX module has been loaded in your X server, and that the module is the NVIDIA GLX module.

    submitted by /u/Kirk-Bushman
    [link] [comments]

    Admob account disabled. What are the best alternatives to Admob?

    Posted: 22 Feb 2018 01:36 AM PST

    I have tried reappealing. Made many changes to the app and appealed for three times. But Google says it can't reinstate my account.

    Soo, what are my other options to show ads? Which is the best network other than Admob? Also, which one is the easiest to integrate?

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

    Unlock your Android ViewModel power with Koin – AndroidPub

    Posted: 22 Feb 2018 10:11 AM PST

    Easily build generic forms with minimal effort

    Posted: 22 Feb 2018 07:07 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel