• Breaking News

    [Android][timeline][#f39c12]

    Monday, November 25, 2019

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 25 Nov 2019 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 - November 25, 2019

    Posted: 25 Nov 2019 02:56 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]

    Why Discord is dropping support for Android 4

    Posted: 25 Nov 2019 12:03 PM PST

    Add ‘Sign in with Apple’ button to your Android app | John Codeos

    Posted: 25 Nov 2019 03:28 AM PST

    Android Multithreading: Background Threads, UI Thread, Garbage Collector, Memory Leaks and More

    Posted: 25 Nov 2019 04:24 AM PST

    Kotlin or Java? 2019/2020

    Posted: 25 Nov 2019 01:44 PM PST

    Hi there! If I want to become an Android Developer, should I start learning Java or Kotlin?

    The reason why I am asking is because I saw that "Java SE 8 public updates will no longer be available for business, commercial or production use without a commercial license ".

    I started learning Java few weeks ago. Now I'm feeling doubtful about learning Java because of that.

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

    android-gif-drawable vulnerability (cert.org)

    Posted: 25 Nov 2019 01:14 PM PST

    Obscure or not?

    Posted: 25 Nov 2019 02:56 PM PST

    Reference: https://github.com/udacity/andfun-kotlin-mars-real-estate/tree/Step.08-Solution-Adding-a-Filter

    This is a snippet of code from the Udacity course Developing Android Apps with Kotlin:

    // The displayPropertyType formatted Transformation Map LiveData, which displays the

    // "For Rent/Sale"

    val displayPropertyType = Transformations.map(selectedProperty) {

    app.applicationContext.getString(R.string.display_type,

    app.applicationContext.getString(

    when (it.isRental) {

    true -> R.string.type_rent

    false -> R.string.type_sale

    }

    )

    )

    }

    It references these string definitions:

    <string name="type_rent">Rent</string>

    <string name="type_sale">Sale</string>

    <string name="display_type">For %s</string>

    Doesn't that seem like an overly complicated way to conditionally set displayPropertyType to "For Rent" or "For Sale" ?

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

    Before I start - Is this possible?

    Posted: 25 Nov 2019 02:12 PM PST

    I want to build an app for users to be able to track their friends in 'real time' (GPS updated every minute or so).

    My plan is to set up a background service and send the lat/long to a firebase database whilst simultaneously pulling the most recent lat long of 'friends' and display these on a map.

    This is only my second app and waaaay more complex than my first, so I wanted to know if this sounds possible before I get stuck in. I've built the map/markers etc no problem but concerned that the upload/download to a server will be clunky or not possible.

    Is there a better way to go about it?

    Are there any potential pitfalls I should keep an eye out for?

    Thanks in advance!

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

    Questions in junior Android Dev Review

    Posted: 25 Nov 2019 10:56 AM PST

    Hi,

    I got this Tuesday and interview for junior dev position.

    I know my way around basic android dev and a bit more (Kotlin, MVVM, Room, 3rd side libraries

    and design patterns and some other stuff...) but I wanted to ask, is there anything I should practice more for this position?

    i feel pretty confident but i just want to be sure...

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

    Developing for Fire OS

    Posted: 25 Nov 2019 10:21 AM PST

    I have a paid opportunity to make an app for Kindle Fire OS, which to my understanding is based on the Android OS. I have never done this before, but have developed on Android, I don't see many resources online - does anyone here have any experience with it? If so, is it that much different than developing for a standalone Android app? One of the important aspects of the app is that it must store data on the Kindle device itself

    Any good resources you could recommend would also be appreciated!

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

    Need to check if my grasp on OAuth2.0 in native mobile apps is correct

    Posted: 25 Nov 2019 06:52 AM PST

    Hello,

    I am in need of someone to verify whether or not I understand OAuth2.0 in native mobile apps (later referred to as just mobile apps) correctly.

    After doing some research, it looks like the best approach to implementing OAuth2.0 in mobile apps is to use PKCE without any client secrets.

    Client secrets are basically passwords that ensure that the client being authorized to resources on behalf of the user are legitimate clients that are allowed to do so (proving the identity of the client). Additionally, the identity of the clients also determine what resources can be sent to it.

    The reason client secrets aren't used in mobile apps is because they can be easily stolen from the app. If we can't use client secrets (or any other kind of password), we can not prove the identity of the client requesting authorization. This means as long as a malicious user has another user's credentials, they can use a clean version of the mobile app, punch in their credentials, and get the resources to their device.

    The PKCE extension for the Authorization Grant Flow ensures that the client sends a hash and hash function along with the authorization code request, and when exchanging the authorization code, it also sends the key for the hash sent earlier. This doesn't avoid malicious users stealing the authorization code, but it does render it useless to them, because they do not have the key needed to exchange the code for an access token. PKCE serves to protect against interception attacks, and ensures that the access token only goes to the original resource requester. However, it does not guarantee that the client is legitimate.

    Isn't this situation kind of bad for mobile apps? Especially for sensitive information? For mobile apps, it is impossible to prove the identity of the client, but this is not the case of web-server based clients.

    What can be done to help make this more safe? The only thing I can think of is to use multi factor authentication to increase the level of assurance that the client is legitimate.

    Thank you for your time.

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

    Android Studio 3.6 Design Tools UX Changes — Split View

    Posted: 25 Nov 2019 03:23 PM PST

    “Add Push Notifications to Your Android Chat App Using Kotlin”

    Posted: 25 Nov 2019 10:59 AM PST

    I haven't written an app in years. I need advise.

    Posted: 25 Nov 2019 02:06 PM PST

    I've wrote a few basic apps a few years ago. I haven't done any android development since then so I'm very rusty.

    I recently got an idea for an app but I'm not sure what would be the best approach.

    Basically the app would show an image of the top-down layout of a building. Each room will have a name. When the user touches the room label, the app will show a real image from inside that room. The room label will be located in the center of a room like in this picture(not mine)

    I'm not sure what the best approach would be for making the room labels be buttons. I have a few ideas.

    1. Get touch coordinates and check if it's within the area of a label.

    2. Is there a way to anchor android buttons to a specific point on an image? The user must be able to zoom in and pan around the image.

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

    Free commercial PDF edit lib.

    Posted: 24 Nov 2019 10:23 PM PST

    I'm shamed by my iOS colleagues for Android not having native libs to work with pdfs like they do. Particularly we need to view, highlight text and add comments. Any free for commercial use libs? Thank you in advance.

    edit: you can't just google it, there're none I've found so far.

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

    Force stop apps on exit, allow download but block uploading data?

    Posted: 25 Nov 2019 12:33 PM PST

    Hey guys how would I get an app to automatically force stop after pressing home. Also how would I allow downloads inside the app but block uploads (eg I can receive messages but I can't send any).

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

    What is AWS integration in android studio.

    Posted: 25 Nov 2019 12:01 PM PST

    What is the purpose of using AWS in android studio, and how to integrate into android studio.

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

    Suggest Best free server for android application hosting

    Posted: 25 Nov 2019 11:20 AM PST

    I want to develop an app which contains billing software for retail shop. If user logged in in any mobile with his credentials like username and password, I want to show his previous data also. can anyone suggest best suitable free server for storing data.

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

    Multiple application with only different API URL. [Application Design]

    Posted: 24 Nov 2019 10:30 PM PST

    Due to recent policy update of google one of our application got suspended. It stated: repetitive content violation. We have more than 150 client with exact same application. The only different things in these app are the logo and API URL. Now the problem is there is high chance of apps being suspended in future updates. Also the developer account might get terminated. Can anyone provide a solution to this issue ?

    Current architecture:API URL:

    client1.domainname.com/api/ client2.domainname.com/api/ ... client150.domainname.com/api/ 

    Is this an architectural design fault ? Or is google just being an a**hole ? I need serious helps!

    THANK YOU!

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

    Can someone explain this? I've checked online, this code seems to be correct according to StackOverflow

    Posted: 25 Nov 2019 09:50 AM PST

    app-ads.txt

    Posted: 25 Nov 2019 05:57 AM PST

    Does anyone know if app-ads.txt allows for redirects like ads.txt does?

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

    Modularizing your Android app, some quick notes (Part 4)

    Posted: 25 Nov 2019 01:20 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel