• Breaking News

    Friday, November 27, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 27 Nov 2020 04:40 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Google plans to include the Android Runtime (ART) as an updatable Mainline module in Android 12

    Posted: 26 Nov 2020 10:39 PM PST

    Published faulty version of app to Play Store.

    Posted: 27 Nov 2020 07:24 AM PST

    Now Google is taking ages to review the fix. I pushed out the fix yesterday and it's still "under review".

    Meanwhile users are complaining.

    What can be done?

    submitted by /u/atmosphere-streets
    [link] [comments]

    Monitor layout changes on your mobile app

    Posted: 27 Nov 2020 12:30 AM PST

    On my mobile developer career it was always hard to control which layout changes was made before a release. Sometimes the changes isn't good enough to product team or has some info that mustn't be there. Do you remember of nissan developer busted for copying code from stack overflow?

    The process to control the changes is very massive. Usually is like either open the app screen by screen and simulate an user or see screenshots of UI tests one by one and compare them. It is specially hard to small teams because this process waste too much time.

    I'm creating the LayoutDiff to help my team control layout changes effortlessly and integrated with development process improving the accuracy of quality assurance and getting fast visual feedbacks.

    To know more about it click on the below link:

    https://www.layoutdiff.com

    The first open source project is free!

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

    Offline document database for Android?

    Posted: 27 Nov 2020 04:06 AM PST

    I'm writing a little app that doesn't require any online functionality so I was using Room to store data in SQLite. However, I've run into an issue where my data doesn't really lend itself to SQL and started looking around for a document database. Is there a good option for a document DB that doesn't require a connection to a server? I have found Realm, Nitrite, and Kodein but they all seem to be relatively limited in terms of maintenance and functionality. What's a good choice here?

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

    Handling dates on Android - Core Library Desugaring, kotlinx-datetime

    Posted: 27 Nov 2020 06:04 AM PST

    Macbook Air for Android development?

    Posted: 27 Nov 2020 03:47 AM PST

    What do you guys think, is Macbook Air 2020 - M1, 256GB SSD, 8GB RAM good enough for Android development?

    Most common things I will be using next to Android studio are:

    • Chrome
    • Slack (I can run it from Chrome as well)
    • Figma
    • I won't be using emulator since I have few testing devices

    Thanks

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

    Today imported one project and getting error : Validity check failed.

    Posted: 27 Nov 2020 05:08 AM PST

    AppStore like transition animation in Android

    Posted: 26 Nov 2020 11:40 PM PST

    Hi everyone, I have a question related to the shared element animation.

    I was tasked to do a shared element transition like `App Store` has. I am attaching the video below.

    App Store

    Is it even possible to achieve something like this? I have never seen an Android app have this kind of animation?

    So far I was able to achieve this:

    My Imlementation

    The problems I am facing:
    - I can't control CardView radius
    - The Image and CardView are just switching to the pointy corners from rounded corners instantly

    - Bouncy effect (I have no idea how to do that)

    - TextView in the is being cut off in the middle of the animation.

    submitted by /u/Just-Role-3685
    [link] [comments]

    Is there no way to test in app subscriptions before an app is published ?

    Posted: 27 Nov 2020 07:57 AM PST

    I'm trying to test out in app subscriptions for an app but it seems that the only way to test it out is after the app is atleast published to the closed testing track

    Currently my app's closed testing track is under review since 3 days and I'm not feeling very optimistic about this.

    I'm wondering if any one can help out with their experience with regards to testing in app subscriptions in internal testing mode

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

    How should I monetize my app?

    Posted: 27 Nov 2020 07:21 AM PST

    I made an app that is used as an extension to parsec (a PC screen mirroring app) that allows you to create a customized gamepad for streaming PC games to your phone and I want to monetize this app. The only problem is that because people wont spend very much time in the app, ads are out of the question. So I made the app have a flat price of $1, but I believe this is turning away alot of users.

    Should I make the app free, so I can better understand what the users want then change the price back to $1 or should I maintain the current price? Or should I implement some sort of ticket system so that if users want to use the app for extended periods of time they have to pay a flat fee?

    Because I am new to this, if you see a flaw in my logic or if you have tips for advertising this app on a budget I would love to hear it, thank you!

    submitted by /u/Standard-Assistant27
    [link] [comments]

    How to achieve Revolut like RecyclerView card display and item menu animation

    Posted: 27 Nov 2020 12:53 AM PST

    Hi,

    Here is a short video I made with the Revolut RecyclerView on android. I have some questions that I am not able to answer myself.

    https://reddit.com/link/k1xoxo/video/pyk42183yq161/player

    1. How is this card group displayed and group up by date? I Need to group up my items into 2 big cards each one with 1 header. Archived and Unarchived. The solution I see is to make getItemCount return size + 2 and just play with the booleans and positions but I don't know how to group them in 2 big cards.
    2. How is that animation achieved? I managed to do something easier with motion layout yesterday. One problem I faced was that the animation was laggy because of the recycler view vertical scroll which I had to disable while animating the item. However, in Revolut, the content is pushed to the left and the items seem to have some sort of parallax. Although I did put the menu under my row and when I swipe the row I just change the width of the displaying row this would disable the swipe anchor limitation.

    Any thoughts?

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

    Package visibility queries

    Posted: 27 Nov 2020 02:39 AM PST

    Hi developers,

    As you know, Google has implemented a new restriction if you target API 30 (Android 11).More info: https://developer.android.com/about/versions/11/privacy/package-visibility

    If you want to get the installed apps, you must add "queries" in your manifest.You can also use the QUERY_ALL_PACKAGES permission, but must be approved by Google.The guidelines are not yet available and... we all remember the SMS/CallLog fiasco.As usual, it's a total mess, and I don't really count on this one.

    So, I started to play with the "queries", but it's quite confusing.I mean, you can add these lines and get all the installed apps anyway, so...

    <queries><intent><action android:name="android.intent.action.MAIN" /></intent></queries>

    Or even

    <queries><intent><action android:name="*" /></intent></queries>

    Is it something that is allowed by Google?

    What is your opinion about the package visibility limitation and how you will handle it on your own apps?

    Edit:

    My needs is to allow the user to choose the app he wants to launch with his NFC tag from a list, without needing to know the package name.

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

    Build one Adapter to rule them all.

    Posted: 26 Nov 2020 01:22 PM PST

    Hello , i have create my first medium article and i would like to have some feedback! Thank you in advance. article

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

    Learning RxJava2, What am i missing ?

    Posted: 26 Nov 2020 12:52 PM PST

    So i'm learning rxjava 2 to my coding more reactive, and i'm stuck on a point for few days.

    I'm querying my room database to get a list of subjectEntityand then transform each subjectEntity of the list in another version of Subject object ( my domain model Subjects) .So in order i'm :- Getting my list- FlatMap + Observable.FromIterable to get observable for each object in list- ConcatMap to apply a function to each object that transform object in whatever i want (let's say an integer for example)- ToList to group back the items emits in a list- To observable to convert the single observer from toList to an observable

    The problem is that i get nothing from the concat map if i'm querying my room database in the function.If i return raw observable it works but as soon as i'm querying my db it doesnt works.

    Code :

    homeViewModel.getPopularsSubjectsRx()
    .flatMap(subjectEntities -> Observable.fromIterable(subjectEntities)
    .concatMap(entity -> transform(entity)) <-- problem here
    .toList()
    .toObservable())
    .observeOn(AndroidSchedulers.mainThread())
    .subscribe(this::setupRecyclerView); <-- log to see output

    private Observable<Integer>transform(SubjectEntity entity) {
    return Database.getDatabase(getContext()).subjectVoteDao().getPositiveVotesCountOfSubjectRx(entity.getId()) <-- return Observable<Integer> from room ( works correctly)
    // return Observable.just(4); <-- this works
    }

    Thanks in advance

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

    How to put items in EncryptedSharedPreferences in the first place without exposing them?

    Posted: 26 Nov 2020 10:04 PM PST

    I've read the documentation for EncryptedSharedPreferences and how it can be used to store secrets. The problem is that to store the (key,value) pair in the first place, the value has to be exposed in plaintext unless you can fetch it from a different source, like a remote vault. I tried using Google Secret Manager as my remote vault to store the (key,value) pair, but the problem is that Firestore (which my app must use) and Google Secret Manager cannot coexist because of a very, very, very annoying Java vs. Javalite incompatibility and it is evident that Google Secret Manager is NOT Android friendly. Even if I manually put the secret into EncryptedSharedPreferences as a one time deal by running a temporary code block, it only works for THAT device and if I try to install the app on a brand new device, then I'm screwed because I'd have to manually put the secret for that device as well which is silly. I'm really stuck.

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

    How can I improve the UI? I'm out of ideas

    Posted: 26 Nov 2020 01:33 PM PST

    Mobile Game Jam! Make a game with our RTS editor and win $2,000 in prizes!

    Posted: 26 Nov 2020 10:24 AM PST

    How long will it take to develop an android app like Uber?

    Posted: 27 Nov 2020 01:56 AM PST

    The company I work at is asking us to make a mobile app like Grab or Uber. There are only three developers(including me) in this company because it's a construction-type of company.

    I asked when the deadline is and he told me, January. Is it possible to finish the app by that time? I haven't done a mobile app because I am a web developer so I have no idea how long it will take.

    Thank you!

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

    Strange white dot only while using Chrome on Moto G Power?

    Posted: 26 Nov 2020 07:55 PM PST

    I recently got a new phone and have noticed something weird. This only happens when using Chrome. I've attached a link to a screenshot of the white dot in the upper left hand corner of the screen. It happens very seldom. Like maybe once a day. I can make it appear by switching the theme of Chrome from dark to light then back to dark. As soon as I open a new tab or close Chrome it disappears altogether. It's not a dead pixel I don't think. So what is it? Just a minor glitch with Chrome? I'm using a Motorola phone running Android 10 for reference.

    Screenshot

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

    Join us on a live hiring experience with CoinGecko - A Global Leader in Tracking Cryptocurrency Data! (GMT+8 Timezone). Register here: https://bit.ly/live-hiring-o

    Posted: 26 Nov 2020 06:50 PM PST

    Looking for Gaming news API

    Posted: 26 Nov 2020 05:07 PM PST

    I was searching the internet for 3 hours and i roughly found 1 API that i can use for my app idea. So the reason is clear why i am here. If someone could help me i would be really thankful. All i need is some suggestions on what APIs should I use if there are any. Remember i need a gaming news API. And if you ask yourself how is this related to android apps, i need these APIs to make a native android application.

    Thanks!

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

    Beginner Interested In External In-App Integration (For Instagram)

    Posted: 26 Nov 2020 03:57 PM PST

    Hi everyone! This is my first post in this subreddit. For context, I do have some experience with programming, but learn best when I try to create things I'm interested in. I just wanted to know the feasibility of a project idea I've been thinking of that I'm super super hyped about.

    Is it possible (on Android) to create an app that can bring up prompts or analyze things in other apps (particularly social media ones). Let's call the app that I speak of 'App X'. Take for example this circumstance; I as a user install App X on my phone. Would it be possible for me to open up Instagram on my phone for example, and see an image (maybe of a forest that I like), and I triple tap on that image (or some other gesture not native to Instagram), and by triple tapping on that image, a prompt comes up in Instagram from App X with a bunch of options (like scanning the image, or taking an automatic screenshot of the image, etc). In a simpler step by step process:

    1. My name is Spongebob. I have App X installed on my phone, and open up Instagram.
    2. I see my friend post an image of a car that I really like
    3. Is it possible for me to triple tap on that car image (or whatever gesture that would summon App X), which would bring up an App X prompt in Instagram without ever leaving the Instagram app?
    4. If it is possible to summon App X's prompt inside Instagram, can the very same App X do things inside Instagram through the prompt like taking screenshots of the post that was triple tapped on, or translating writing in the image to other languages, etc?

    Thanks for taking the time to read this!!!

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

    No comments:

    Post a Comment