• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, November 2, 2021

    Weekly Questions Thread - November 02, 2021 Android Dev

    Weekly Questions Thread - November 02, 2021 Android Dev


    Weekly Questions Thread - November 02, 2021

    Posted: 02 Nov 2021 07:00 AM PDT

    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?

    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]

    Experimental item reordering animations for LazyColumn and LazyRow from Jetpack Compose were just merged and are expected to be released in 1.1.0-beta03 - Andrey Kulikov

    Posted: 02 Nov 2021 09:29 AM PDT

    We created figma plugin for easy convert from Figma designs to Android Jetpack Compose code.

    Posted: 02 Nov 2021 11:48 AM PDT

    https://www.figma.com/community/plugin/1030354617366499719/Figma2Android

    Usage just install figma plugin and open the plugin window in Figma, select a node to get the Jetpack Compose code to display it!

    If you have any feedback or questions about a plugin, feel free to contact with us https://figma2android.tech/contact.php or here. We'd love to hear from you!

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

    Look this ridiculous tactic to lure in ad clicks

    Posted: 02 Nov 2021 04:28 PM PDT

    I have had ad limits on admob just because I was having 2 native ads on a single activity. But look at this. Adsense supported website are getting away with this bs. They even have this protruding views just to get accidental clicks.

    https://reddit.com/link/qlh8p7/video/zojpce83o9x71/player

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

    Trying to understand why a user can't download our app

    Posted: 02 Nov 2021 12:44 PM PDT

    Trying to understand why a user can't download our app

    Thanks in advance. This one has been a head-scratcher, and Google support have been no help at all.

    We have an app that we've released on the store that supports Android 8.1 and above.

    defaultConfig { minSdk 27 targetSdk 31 } 

    Our user (a major stakeholder for us, hence the deep dive on this issue) cannot download this app with their Galaxy S9 or S10, both of which are on Android 10 and 11 respectively (confirmed through screenshots). Here is the message the Play Store gives this user:

    https://preview.redd.it/urcec9exj8x71.png?width=480&format=png&auto=webp&s=db823464f135e052f31155879e1cdca5cd6d50c0

    The response from Google support was essentially

    I've looked into your issue and found that your app is not compatible with the SM-G973W for android versions 22 and 25 for your release version number 17. due to a conflict in your app's manifest with the following: "Unsupported framework".

    I tried to get more info out of them but it was like talking to a brick wall. All they suggested was supporting Android 5.0 (API v22), but couldn't say why.

    I will be super grateful to anyone who could shed light on this issue. It's not a great story for our stakeholder that their phone isn't supported but we can't tell them why.

    Edit: we've also managed to successfully launch the app in the emulator for both the S9 and the S10

    submitted by /u/f-algebra
    [link] [comments]

    Back button does not change back to Menu icon

    Posted: 02 Nov 2021 02:54 PM PDT

    I've got an app that's using single Activity design with a navigation component and nav graph - pretty generic stuff I think.

    In the nav graph I have a nested navgraph that I'm using to share a ViewModel between those fragments. Whenever I navigate to this nested navgraph, and then press the back button, the icon in the upper left does not change from the back arrow to the Menu/drawer/hamburger icon. (It does properly navigate back to the previous, top level, screen... it's just the icon doesn't change)

    If I navigate anywhere other than this nested graph, the back arrow works as expected and returns to the hamburger icon once you come back to a top level fragment as defined in the MainActivity with AppBarConfiguration.

    Any ideas would be much appreciated.

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

    APNG vs GIF memory consumption

    Posted: 02 Nov 2021 10:47 AM PDT

    Hi,

    Right now, I'm using GifDrawable to show GIF stickers in my app, the current issue is the displayed GIFs takes a lot of memory, the low-end devices will have a performance issue using my app, so I wonder if I migrate to apng-drawable this will help me get better performance?

    Thank you

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

    Making Simple Android Chat App

    Posted: 02 Nov 2021 12:29 AM PDT

    Wrote an article about gradle properties and shared some cool ones that helped improve build speeds

    Posted: 02 Nov 2021 02:13 PM PDT

    In-App Purchases

    Posted: 02 Nov 2021 12:07 PM PDT

    In-App Purchases

    I'm trying to test the app with In-App Purchases but from my understanding, I cannot do that until the app is in "Draft" mode. I tried to publish the app in internal testing. Now the app is in both the draft and internal testing mode. What do I need to do to make the app completely in internal testing?

    https://preview.redd.it/9cth9khsd8x71.png?width=1576&format=png&auto=webp&s=854cfcb928f8f2d9a06e5227aebc9b147a857a7f

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

    How do I open source an app without making it completely useless?

    Posted: 02 Nov 2021 02:22 AM PDT

    I have an app which I'm looking to open source, but the issue is, I'm using my servers to host literally all the content from the app.

    Some of the data is hosted on Firebase, and most of it is on my own shared hosting.

    Now if I open source it, I'll obviously have to get rid of Firebase, which makes Notifications and database useless (where 60% of the app content is). And then I don't want copycatters to be able to use my hosting bandwidth and API's, so I'll have to get rid of my endpoints and auth mechanism too, which makes the rest 30% of the content inaccessible/useless.

    I can choose to not remove my servers endpoints, but my hosting is already choking up under current load.

    So the only thing that will end up on github would be UI, which is useless without all the backend.

    So how do I open source this sort of thing? I believe users would want to compile the app from source to be truly able to make it "open source", otherwise it doesn't serve its true purpose. Do I just not open source it?

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

    Is there a difference between Media and Documents?

    Posted: 02 Nov 2021 09:31 AM PDT

    Is there a difference between Media and Documents?

    Is there a difference between these two?

    If I want to get a picture stream, which one should I select? and why?

    thanks in advance.

    https://preview.redd.it/bxxvisyjl7x71.png?width=1712&format=png&auto=webp&s=8996cf01a5b6aa5424c00e94f2eabbc105235a1e

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

    How do you present different UI to different roles?

    Posted: 02 Nov 2021 01:51 AM PDT

    One tedious option is to have multiple apps for different roles like Uber driver vs customer. Another is having multiple activities that share Fragments so you launch activity based on role. Am not sure if there are others, hence the question: How do you present different UIs based on logged in user role?

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

    Android distribution dashboard

    Posted: 02 Nov 2021 06:28 AM PDT

    I know Google doesn't provide the chart anymore on their site and although they refer to Android Studios "New Project Wizard", according to it, Android 11 and 12 don't exist yet - so its useless.

    They also recommend we look into the app stats on the Play Console, what about people who don't have any apps yet on the Play Store? Android distribution is basically completely unknown at this moment unless you have an established app downloaded by millions worldwide.

    How do people nowadays get that information if they want to publish their first app?

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

    Is there a way to change A12s quicksettings to those of A11?

    Posted: 02 Nov 2021 11:01 AM PDT

    Yes, they just suck.

    I really like many of androids settings (wonder if it makes people more dependend and unfree in background but ok), but the themes...

    I want a quicksettings menu (swipe down) that works. No text, 9 icons, customizable. Thats it.

    Would it be incredibly hard to merge the code of android 11s menu into Android 12?

    Would a complaint at google (to implement text as something optional (for people that need it)) make sense?

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

    Can someone suggest how to create a similar animation of the transition of the search bar as in the mobile application Gmail?

    Posted: 02 Nov 2021 04:59 AM PDT

    I tried to follow the examples from Material Motion, but it doesn't give exactly the same result. I am inclined to believe that this is probably some kind of Custom View. But at the moment there are no ideas how it can be recreated.

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

    Anyone else getting really annoying warning for pre-launch reports regarding permissions?

    Posted: 01 Nov 2021 07:11 PM PDT

    The last two betas I've uploaded have had warnings about my app asking for location permissions and allowing clear text traffic.

    What Google is totally ignoring here is that my app is a web browser. It has the same exact location permissions on the manifest as Chrome and the same exact clear text network configuration as Chrome.

    Location - They say that less than 1% of similar apps request this. I doubt that, most browsers need location. Lots of sites have blocks based on location. I hate the idea of asking for location permissions, in fact I didn't use to and I used to get 1 star reviews from users of sites that required it. I only request it on Android 6+ so the user at least has a choice and I only request it once a website asks for it.

    Clear text traffic - What am I supposed to do about http websites?

    I usually take those pre-launch reports seriously but this is going to make it so I start ignoring them, surely that isn't the outcome they want?

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

    What is the alternative to adMob? Can't get them to trigger a crawl of my app-ads.txt file

    Posted: 02 Nov 2021 12:32 AM PDT

    very annoying that there appears to be no support from adMob. Been a week and I have double checked my site and there is no reason it shouldn't work. Didn't get any help from the community forum. don't know where to turn for help.

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

    Where to look if I want to get started with WiFi management

    Posted: 01 Nov 2021 07:01 PM PDT

    So I want to make an app that when connected to specific wifi it can keep track or logs of how much bandwith the device has used(to that specific wifi). And the app can turn off the wifi connection when a certain bandwith has been reached.Problem is I have no idea how to work hardware components such as wifi , Bluetooth and so forth.I have interacted with web Api's but nothing to do about local device Apis ,,if that's even a thing lol.So can I get some resources to read up or documentations to get me up to speed.I have looked over the google codelabs but I couldn't find anything substantial with dealing with raw wifi.

    In Short: Need links to resources or documentations that explain how to work and interact with the Wifi of the device.Im trying to make an app that can profile bandwith used for wifi networks.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel