• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, July 31, 2019

    Exceptions and proxies and coroutines, oh my! – Jake Wharton Android Dev

    Exceptions and proxies and coroutines, oh my! – Jake Wharton Android Dev


    Exceptions and proxies and coroutines, oh my! – Jake Wharton

    Posted: 31 Jul 2019 06:12 AM PDT

    Open source 2-factor authenticator app: NinjAuth

    Posted: 31 Jul 2019 10:55 AM PDT

    Hi everyone,

    I just wanted to share that my very first (public) app on the Play Store is here: NinjAuth

    NinjAuth is an open source 2-factor authenticator app, just like the Google Authenticator and many others, however, you have complete control over your data as it doesn't store any data on servers and requires basically no permissions (fingerprint / biometrics for the security, and the camera for reading the QR codes). Your data is protected (if you choose to, highly recommended) using the latest and greatest (AES-256 + PBKDF2, possibly switching to Argon2 in the future) with your chosen PIN / password + fingerprint. You can backup and restore your data, there are labels with icons, filtering, dark / light themes, support for time and counter based codes with digit count ranging from 1 to 8 (for nerds: TOTP and HOTP using 1-8 digits and SHA-1, SHA-256, SHA-512), and whatnot. Tried to keep the design simple and clean, though I'm not a designer, so I hope you'll like it anyways.

    I'll make a detailed wiki on GitHub in the near future for deep details, such as security and algorithms used.

    Link to Play Store: https://play.google.com/store/apps/details?id=me.gingerninja.authenticator

    Link to the repo: https://github.com/GingerNinjaStudios/NinjAuth (Yeah, I know, the code needs _some_ things, like comments, clean-up, tests, etc.)

    If you have any questions / suggestions / anything, let me know!

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

    Pros and cons of using Firebase?

    Posted: 31 Jul 2019 02:25 PM PDT

    Hello everybody! I need advice about the pros and cons of using Firebase in the development of a mobile app. My team needs to develop an Android and iOS app (I know this is an Android sub, but this is a concern too) with the requirement to deliver push notifications to certain users about certain events and its into consideration using Firebase Cloud Messaging for this purpose. I looked personally about pros and cons of this tool online, but the majority of the posts were from some years ago, so I assume they are a little outdated.

    Any advice about this matter will be appreciated.

    Thanks in advance.

    Edit: a word

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

    Make stronger decisions with new Google Play Console data

    Posted: 31 Jul 2019 10:37 AM PDT

    Manage network states with the Paging library

    Posted: 31 Jul 2019 07:26 AM PDT

    Creating custom price for IAPs to low GDP countries - (Philippines, Brazil) - Best practice?

    Posted: 31 Jul 2019 08:23 AM PDT

    Hi,

    For my app, the most downloads comes from the USA, the second one is Philippines and the third one is Brazil.

    However, the IAP purchases are mostly come from USA and there are almost NONE from Philippines and Brazil.

    However, I would like to set a custom price for my IAPs, (to make it lower) that way maybe I can get more purchases from those regions.

    My question is, what method should I chose for this?

    I have read that the Big Mac index could be a good start point to lower my IAPs's price in those countries.

    Is there any best practice or method for this?
    Thanks,
    Adam

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

    React, Meet Compose - Leland Richardson

    Posted: 31 Jul 2019 10:14 AM PDT

    Why would xml "android:layout_weight=66.6" take up 1/3 of the space and not 2/3 like expected?

    Posted: 31 Jul 2019 10:06 AM PDT

    Is there any logical reason behind this? To a starter like me, this doesn't feel right.

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

    Without Google- MicroG on Asus ZenFone Max Pro M1 (alternative to Google services) PART 1

    Posted: 31 Jul 2019 03:07 PM PDT

    Android emulator Windows 10 poor performance and crashing with HAXM

    Posted: 31 Jul 2019 02:35 PM PDT

    I have Windows 10 Pro, HAXM working, VT enabled in my BIOS, and I still get crashes often on my emulator.

    Sometimes it will reset because some random service crashes, the launcher crashes, OpenGL crashes, etc.

    I have an i7, 16GB RAM and am running an x86 image with the Play Store.

    Is there something I can do to get more stability? I found that on Linux it was faster (but still not perfect) and crashed a lot less.

    P.S. I am NOT using Hyper-V

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

    Guess no beta 6 today

    Posted: 31 Jul 2019 01:19 PM PDT

    No beta 6 today?

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

    Clarifying Google's House Ads policies (for apps with Ads, and for apps with "No Ads")

    Posted: 31 Jul 2019 12:02 PM PDT

    This is an informational post - let me know if there are any mistakes in the comments section.


     

    House Ads in apps which DO have ads

    As we have seen before, Google will complain about (and eventually ban the app if you don't remedy it in time), for apps which have a button on screen that takes the user to the developer's page on Google Play (or to the dev's other apps on Google Play).

    Such buttons on screen had to be labelled clearly as an ad - i.e. with "More Apps" or some such label. Alternatively the button could show a dialog box - that this will take the user to the developer's Google Play page, or to the user's other app on Google Play - that type of advance warning would be ok. What would be prohibited (and penalized by Google) were buttons that directly launched Google Play page for your app, or your developer's page.

    What WAS allowed for apps (which had ads, or did not have ads) was a "More Apps" button - it could be on your main screen (and clearly labelled as such - as an advance warning to user), or in your menu - as a "More Apps" menu item.

    Now it seems from the webpage below - for apps that have testified that they have "No Ads" (which is a stricter set than even the apps which DO have ads - so it should be applicable for apps which DO have ads) - Google now spells out how you can word the "More Apps" button in your menu (and presumably on your main screen as well). They can use other labels as well - like "About Us", or even their developer icon ! (this developer icon would be the one you have in your Developer Page - if you have that set up in Google Developer Console).


     

    Now for apps which have testified they have "No Ads"

    For apps that have testified that they have "No Ads" in Google Developer Console - Pricing & Distribution section.

    NOTE: an app could have ad libraries still included in it and still testify "we have No Ads". For example you had ads, but you decided to comment out the actual display of the ads - in such a case Google WILL detect that you have Admob and or other libraries - Google Developer Console - Pricing & Distribution section DOES give the user the option to select "No Ads" even if the APK has been detected to have ad libraries in it. This probably is done this way to address the common case where APK has ad libraries, but dev just decided to stop using that library - or use the method call to display an actual ad.

    On the webpage below, Google spells out exactly what the "More Apps" policy is for showing House Ads for cross-promoting your other apps in your app.

    Basically, if you show an interstitial or banner ad, or something looking like an ad - which includes a banner that urges a user to try your other app - all these are now prohibited (if you have testified that your app has "No Ads" - it is obviously allowed if your app DOES show ads - since a House Ad is just another ad).

    However, Google does spell out that you can still have "More Apps" and it's variants - which now include "About Us", or even a Developer Icon (presumably it should match the one you specified for your Developer Page if you created one in Google Developer Console).


     

    https://support.google.com/googleplay/android-developer/answer/6334373#ads

    Set up prices & app distribution

    Examples

    Here are a few examples of when you should answer "yes" to having ads for purposes of the "Contains ads" label. This isn't a comprehensive list but just a few examples based on the most common types of ads.

    Banner and interstitials: My app integrates with an Ad SDK to show banners and/or interstitials. I use the ad formats to monetize and/or promote my own products or apps. Native ads: My app includes ads natively, indistinguishable from other content (e.g. sponsored articles, ads within a feed, etc). House ads: My app renders a small ad banner, interstitial ad, ad wall and/or widget to promote my other apps.

    You should answer "no" to having ads for purposes of the "Contains ads" label if you only cross-promote your other apps in the following ways:

    The app displays a More Apps* section in the main menu leading a user to your other apps The More Apps* option does not interfere with gameplay The More Apps* option does not confuse the user by embedding itself within gameplay

    *Other acceptable substitutions for More Apps include More Games, More to Explore, Full Version, More, About Us, or your Developer Icon.

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

    Displaying a specific string/index in a spinner

    Posted: 31 Jul 2019 11:21 AM PDT

    Let's say we have spinner1 that has an adapter to a list of strings... "one, two, three, four, five". The user selects "two" in the spinner. The user then goes to the next activity but then hits the back button going back to the before mentioned activity... does anyone know how I could display "two" in spinner1 instead of displaying "one"?

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

    WorkManager combined with Foreground Service and possibly other components

    Posted: 31 Jul 2019 11:11 AM PDT

    I am looking for some guidance on the best way to download mp3 files. I have come across some documentation on WorkManager and Foreground Service. I haven't seen any concrete examples of a project that uses them both to download media.

    I have the following business requirements :

    - enqueue x amount of tasks responsible for downloading an mp3 file

    - assign certain tasks as high or low priority, high priority should jump to front of queue and execute immediately

    - the call to download is wrapped in an okhttp request

    - listen for progress, errors, or completion

    - download one file at a time

    - run all download jobs on a background thread

    - ability to cancel a pending download (download that hasn't started and is in the queue)

    What would a solution look like? Are there any other components involved?

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

    Swicht on enable and on disable

    Posted: 31 Jul 2019 11:07 AM PDT

    Hello,

    I'm trying to implement a Switch into my Flutter app to enable and disable a dark mode, but I can't figure out how to run a line of code when it gets disabled again.

    When I enable it my Theme changes to the dark one, but it doesn't change back.. Help highly appreciated.

    SwitchListTile( title: Text("Dark Theme"), value: darkThemeEnabled, onChanged: //onEnable run changeToDarkMode //onDisable run changeToLightMode ) 

    Edit:

    In my StatefulWidget I have

    bool darkModeEnabled = false; bool value = false; 

    Would you mind give me an example with some code? I really appreciate your help!

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

    droidcon NYC 2018 - Redux on Android, the nitty gritty

    Posted: 30 Jul 2019 10:21 PM PDT

    Creating an app for multi label image classification.

    Posted: 31 Jul 2019 06:04 AM PDT

    Hello,

    I really want to deploy a model which classifies images on 2 or more labels. But, I am not sure how to do this. Can someone point me to some resources? An example of multi label classification could be if I want to classify whether a given image is a vegetable or fruit, and also what type of vegetable or fruit. Is it possible on google ML kit and Firebase or tensorflow lite?

    EDIT: I meant Multi class image classification and Not multi label

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

    Invoice of Developer Registration Fee

    Posted: 31 Jul 2019 09:12 AM PDT

    Hi everyone,

    I had to aquire the developer license. But it's for an account connected to the university and all expenses can be refunded, as long as an invoice with the tax ID number of the university is in the invoice...

    How can I make this work? Is it even possible?

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

    Building a Client-Server app

    Posted: 31 Jul 2019 09:10 AM PDT

    I'm interested in developing a client-server app that will presumably allow a user to sign up, login and post a picture.

    Any recommendations on how to go about it?

    I read about using AsyncTask but is there another work around?

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

    Storing different button positions like for Spot the Differences

    Posted: 31 Jul 2019 08:54 AM PDT

    Lets say Im making a spot the difference game, where you need to click the right area on the picture. Lets say I want to have a 100 different pictures. Obviously for each picture the correct areas to press, i.e. the buttons, will be in a different location. The number of differences (buttons) will differ too. What would be the best way to go about this? I want to randomly select a picture and then will have to also load the accompanying button layout.

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

    Hiw to revoke permissions while running espresso tests?

    Posted: 31 Jul 2019 04:28 AM PDT

    Hi, So I am using expresso and using Grantpermissionrule to give runtime permission for some tests. Now I want to write tests for cases when permission is denied. I don't want to use test orchestration since I can't update to androidx.test or run the tests in any order(unless there is no other way) I tried using instrumentation registry to run pm revoke command. The pm revoke command works but the test process crashes suddenly after the test. Does any one have any experinece in this area.

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

    Will apps that work in Android Auto work with new google assistant driving mode?

    Posted: 31 Jul 2019 07:51 AM PDT

    Has google said how to make applications compatible with upcoming google assistant driving mode? Is it the same as targeting Android Auto?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel