• Breaking News

    Tuesday, May 25, 2021

    Android Dev - Weekly Questions Thread - May 25, 2021

    Android Dev - Weekly Questions Thread - May 25, 2021


    Weekly Questions Thread - May 25, 2021

    Posted: 25 May 2021 06: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]

    Understanding the basics of Gradle

    Posted: 25 May 2021 01:38 AM PDT

    If you find yourself struggling with Gradle and it's understanding one too many times, then the following article is for you

    https://medium.com/gradeup/the-simplest-guide-to-understanding-gradle-758d9924e6ca?sk=8251b799e6281c648ab656867f04e8f7

    submitted by /u/Separate-Skill8197
    [link] [comments]

    A historical introduction to the Compose reactive state model

    Posted: 24 May 2021 10:52 AM PDT

    Android Java algorithm or library to convert Tamil word typed in English to actual Tamil word?

    Posted: 25 May 2021 03:52 AM PDT

    I looking for the functionality similar to gboard which converts the string typed in English to Tamil. E.g Amma to à®…à®®்à®®ா, Kadavul to கடவுள். This website does similar function http://english-to-tamil.herokuapp.com/#sthash.1njDV5AC.V1Y0clGp.dpbs But it's in JavaScript & I don't know that language

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

    What does the "charge counter" value mean in ADB

    Posted: 24 May 2021 11:34 PM PDT

    What does the "charge counter" value mean in ADB

    I was using ADB to check the battery status, I am unsure of what does the charge counter value means. The device is MRD-LX1F.

    Output

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

    Best up-to-dated android app development course in Kotlin?

    Posted: 25 May 2021 06:54 AM PDT

    Whenever I look at a certain course, it's using the methods and APIs that are deprecated. Is there any up-to-dated course out there in Udemy or anywhere else?

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

    Android Studio - 64bits Emulator

    Posted: 25 May 2021 03:06 AM PDT

    I would like to use 64bits android on Android Studio Emulator. Which libraries include 64bits build? Thanks.

    submitted by /u/Dei-kun
    [link] [comments]

    App removed because I had unused permission

    Posted: 25 May 2021 06:20 AM PDT

    my app was removed from play store because I had location access declared in the manefist but not used and it's not requested during the user journy.I don't remember why I had this permission declared and its totally by mistake and I uploaded a new version without this permission yesterday and still no news from Google ! Now I just received email from adMob that ad serving is limited and will be restricted if I didn't resolve the issue with blay store team. What do you think I should do ? should I contact the play team informing them with the new update without the permission? or should I wait and risk the ad serving be disabled?

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

    Mark app with in app purchase

    Posted: 25 May 2021 04:38 AM PDT

    Hello,

    I have developed an app that is currently published on the Google play store (here is the link if you're interested). I want to add a "support me" button where users can support the development of the app by giving a bit of money. It is not required, and it doesn't give you any special features.

    But what I was wondering is do I need to click the "Includes in app purchase" if I create this update?

    And will Google allow external payment processors like paypal.me?

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

    StateFlow & SharedFlow, What are the disadvantages ?

    Posted: 24 May 2021 09:57 AM PDT

    Over the previous weeks, i have seen more and more info declaring that LiveData is sh*t and you should move to StateFlow & SharedFlow. So out of curiosity i went to youtube and checked out some of the content and i loved it.

    The only drawback is no one is talking about the drawbacks. Is there any reason i should not refactor my code to use StateFlow & SharedFlow ??

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

    MacOS and mobile dev choices

    Posted: 24 May 2021 11:21 PM PDT

    Hi,

    Can some please share their opinion on why Mac users would choose Android development over iOS having Xcode only available on their platform?

    I'm struggling which language to start with as I'm fully aware that Android dev would be less expensive in terms of hardware.

    Thanks.

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

    Calls from another phone

    Posted: 24 May 2021 10:29 PM PDT

    Hi! I'm looking for a way to pass/answer calls from a smartphone with an Android sbc. It's for this project: https://forum.odroid.com/viewtopic.php?f=182&t=42184 I thought to a client/server app or something else to send and receive audio from one to another. I did some searches but I only found Samsung related app that does similar thing "Call and Messages Continuity" Thanks!

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

    Trends in Developing UberEats and GrubHub like Food Delivery App [2021]

    Posted: 24 May 2021 10:20 PM PDT

    Jake Wharton Debates in DevProdEng Showdown! S1E4: Android Architecture and Developer Productivity at Scale on Wednesday May 26th @ 10AM PST

    Posted: 24 May 2021 09:18 AM PDT

    Creating A Google Play Developer account for a Company?

    Posted: 24 May 2021 09:37 AM PDT

    Hi everyone,

    I just finished developing my app and we registered as a company, I'm wondering how can I bind my company as the legal entity to the App since they don't have anything like in Apple's organziation account.

    And can I pay with my own credit card to the registeration?

    Thanks in advance to all the comments :)

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

    Google Play Store API 30 external storage restrictions

    Posted: 24 May 2021 02:19 PM PDT

    I am a developer on several enterprise specific applications. For configuration and other reasons, the apps have always historically had access to external storage of the device. This is accomplished through both the requestLegacyExternalStorage permission in the application manifest as well as via requesting read/write access to the sd card. The device OS's that are run on the enterprise devices are validated by us and the major version is within our control.

    As of last month, Google sent out notices to all applications that were using requestLegacyExternalStorage. I've attempted to reach out to the support channels that Google has to confirm if, come November 1st, 2021, uplifting our app to target SDK30 and changing nothing else will pose a problem.

    I keep going back and forth on whether or not the apps are at risk by simply bumping up the target SDK to 30, but continuing to run on devices that are running Android 8 and 10 only. The following is the message that was sent out by Google:


    Starting May 5th, you must let us know why your app requires broad storage access

    We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.

    Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:

    Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API

    Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th

    Remove the All files access permission from your app entirely

    For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.

    Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.


    The part I am specifically questioning is the last sentence, because it makes it sound like apps that are declaring the new MANAGE permission will be removed. I assume this is only when targeting API 30? I assume as long as I am only using the requestLegacyExternalStorage and the old read/write permissions I will be ok?

    Our client users are slow to adapt and because of this, no longer being able to access the SD card file system would be huge impact and require us to act very quickly. Any input is greatly appreciated!

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

    Is StrictMode broken on Android?

    Posted: 24 May 2021 10:05 AM PDT

    I'm not sure if this is specific to Android 11, but I've noticed that the "Strict Mode" option in the developer options of the phone doesn't seem to work anymore.

    I enable "Strict mode enabled" but it never flashes and never logs anything.

    Anyone on Android 11 or a different Android version can confirm?

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

    Is there a way I can skip these bluetooth popups and just pair immediately? One is from NFC to pair and other is right after

    Posted: 24 May 2021 11:06 AM PDT

    Why did Android choose Java to be its language?

    Posted: 24 May 2021 09:48 AM PDT

    A question popped up out of nowhere while coding.

    There are tons of other languages out there. Why Java (Kotlin)?

    Is there any advantage using Java instead of python or C#?

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

    No comments:

    Post a Comment