• Breaking News

    Tuesday, May 4, 2021

    Android Dev - Weekly Questions Thread - May 04, 2021

    Android Dev - Weekly Questions Thread - May 04, 2021


    Weekly Questions Thread - May 04, 2021

    Posted: 04 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]

    Google Nest Hub shows up at Bluetooth SIG w/ 'Fuchsia 1.0' - 9to5Google

    Posted: 04 May 2021 03:55 AM PDT

    Jetpack Compose announced for Web Development

    Posted: 04 May 2021 05:18 AM PDT

    Google Offers 40,000 Scholarships for Android and Cloud Developers in Africa

    Posted: 04 May 2021 05:54 AM PDT

    Automatic Integrity Protection

    Posted: 03 May 2021 11:36 PM PDT

    Anyone here using this new Automatic Integrity Protection on the Play Store?

    Sounds like it could help but I'm wondering what will happen to my users that have my app from alternate stores? Typically the other stores have different signatures so maybe it isn't a big deal?

    Any major downsides?

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

    Publishing to Play Store being under 18

    Posted: 04 May 2021 01:58 AM PDT

    One of the things that suck about being underage is not being able to publish your apps by yourself on any store. I am currently developing an Android app and I have been wondering if I should keep developing it, because the issue is not the development itself, but when it comes to publishing.

    I mean, the only option I could think of is making an account managed by my parents and publishing the app. But what would happen when I become 18 years old? Would I need to remove the app from the Play Store, create a new account (mine this time), pay again the fee and submit it again? Is that possible?

    Or is it possible to use that first account and that when I become 18 years old, change the name and banking info to mine?

    As you can see, I am in a very unusual situation.

    Maybe I should've not started to learn to code until I was 18, lol

    Do you have any info on this? I would appreciate your help. Thanks!

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

    Room auto-migrations

    Posted: 04 May 2021 07:33 AM PDT

    Is it possible to tell whether an installation came from a Facebook ad or from organic search?

    Posted: 04 May 2021 06:15 AM PDT

    Hi. I'm running facebook ads for my app and I'm wondering whether I could tell in-app whether the installation came to be as a result of an ad click or from organic search in play store?

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

    How much could I sell my app for?

    Posted: 03 May 2021 12:09 PM PDT

    I have a "Truth or dare"-app. 1.5k installs per week with 22k downloads (10 months old). An averege of 260 dollars per month with inApp purchases. And 50 dollars each month using AdMob. These numbers has increased significantly past months. Never used any kind of marketing tools for it.

    Costs nothing to maintain.

    If I would want to cash out, how much should I be asking, or expect?

    Thanks!

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

    Gradle - Dependencies Variables VS Hardcoded Dependencies

    Posted: 04 May 2021 07:15 AM PDT

    What are the pros and cons of using Dependencies Variables VS Hardcoded Dependencies?

    Dependency Variables

    ext { springVersion = '5.3.6' } dependencies { implementation "org.springframework:spring-context:$springVersion" } 

    Hardcoded Dependencies

    dependencies { implementation "org.springframework:spring-context:5.3.6" } 
    submitted by /u/ilya_gazman
    [link] [comments]

    Is there any way to detect the state of an Outgoing call?

    Posted: 04 May 2021 03:18 AM PDT

    I have to make an app which detects call state of Outgoing Call I have to know for following events: 1.) Busy : When the operator is busy. 2.) Switch-Off : When the number is switched off of the reciever. 3.) Line-Busy : When receiver is talking with someone-else. 4.) Incorrect: When the number dialed is incorrect. 5.) Outside-coverage : When the receiver is out of coverage.

    I want to know is there any way to do this in Android. Is there any package or Class in Java which have methods to detect these states?

    I came across a class called https://developer.android.com/reference/android/telecom/DisconnectCause but don't know where and how to use it. It has constants for BUSY, CANCELLED, etc.

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

    Android include layout: pass Drawable parameter using data binding gives error: AAPT: error: attribute mysrc (aka com.example.APPNAME:mysrc) not found

    Posted: 04 May 2021 04:49 AM PDT

    I am trying to pass a Drawable as parameter into my include.

    I have enabled dataBinding in my build.gradle file:

    android { dataBinding { enabled = true } .... } 

    action_bar_button.xml:

    <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android"> <data> <variable name="mysrc" type="android.graphics.drawable.Drawable"/> </data> <ImageButton android:id="@+id/notification" android:background="@null" android:foreground="?android:attr/actionBarItemBackground" android:layout_width="?attr/actionBarSize" android:layout_height="?attr/actionBarSize" android:padding="15dp" android:src="@{mysrc}" android:scaleType="fitCenter"></ImageButton> </layout> 

    activity_main.xml:

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" tools:context=".MainActivity" android:id="@+id/mainlayout"> <include layout="@layout/action_bar_button" app:mysrc="@{@drawable/notification}"/> </RelativeLayout> 

    This keeps giving me error pointing to the include statement in my activity_main.xml:

    AAPT: error: attribute mysrc (aka com.example.APPNAME:mysrc) not found. 

    If I change the app:mysrc in activity_main.xml to android:mysrc, it gives me error:

    AAPT: error: attribute android:mysrc not found. 

    I have been stuck with this for few hours and have tried quite a few Stack Overflow posts but can't seem to resolve it.

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

    How to change play store developer account from business to individual

    Posted: 04 May 2021 03:47 AM PDT

    I have mistake and register as a business instead of individual, how can I change that ?

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

    google play verification required company info

    Posted: 04 May 2021 03:01 AM PDT

    Hi I want to verify my ID, but required a company registration number

    but I don't have any company

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

    Your Quick Guide to App Store Optimization

    Posted: 04 May 2021 12:54 AM PDT

    Your Quick Guide to App Store Optimization

    https://preview.redd.it/apvip31m62x61.jpg?width=1500&format=pjpg&auto=webp&s=5eebba2a839573936cc980d386903f801fab33ac

    Globally there are billions of mobile app users, and this number is increasing every day. Owing to the needs of these mobile app users, app stores are receiving thousands of mobile apps each day. The number of apps in the Google play store and App store makes them a hard place for an app to succeed.

    But despite the amount of competition, an app can still find its place, given the app store optimization strategies are on-point. App store optimization is the process of improving the visibility and ranking of your app in the app stores.

    Know more about App store optimization techniques with this blog. https://medium.com/debutinfotech/your-quick-guide-to-app-store-optimization-78bb5ddb451c

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

    Diversity in Mobile development?

    Posted: 04 May 2021 06:10 AM PDT

    Gamesmith has a user submitted article on this, focusing on the games industry: https://gamesmith.com/the-gaming-industrys-lack-of-diversity/

    Would be interested to get a feel for how this compares to mobile development as a whole?

    Any resources that can be added to the article as a follow up?

    A response we have seen is not so much the lack of diversity in hiring, it's the staying in the industry that is limited, often related to the work culture. Any companies that stand out for improving things? Strategies they have employed?

    The stand out improvements to companies who have embraced a more diverse team has most noticeably been within the design discipline and art and how that improves their product. Is this translating to other app devs?

    Thanks.

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

    Gradle Kotlin DSL failures on Android Gradle Plugin 7.0.0-alpha15

    Posted: 03 May 2021 06:31 PM PDT

    Android Studio canary updated to 2020.3.1 Alpha 15, which required updating AGP to alpha 15 as well. Now my gradle Kotlin DSL build files fail:

    ```sh * What went wrong: Script compilation errors:

    Line 052: isShrinkResources = false ^ Unresolved reference: isShrinkResources

    Line 053: getIsDefault().set(true) ^ Unresolved reference: getIsDefault

    Line 057: isShrinkResources = true ^ Unresolved reference: isShrinkResources

    Line 101: dimension("environment") ^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline operator fun <T : Any, C : NamedDomainObjectContainer<TypeVariable(T)>> TypeVariable(C).invoke(configuration: Action<NamedDomainObjectContainerScope<TypeVariable(T)>>): TypeVariable(C) defined in org.gradle.kotlin.dsl ```

    It continues on as well.

    I read through the canary release notes, no luck there.

    Worked great on alpha 14. Tried updating build tooling as well as an invalidate and restart. So far I'm not really sure how to even dig into this. Any suggestions on where to start on debugging this?

    I'll file a bug report as best I can with a repro project and reinstall alpha 14, unless you all have any suggestions.

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

    Where to save users conversation?

    Posted: 03 May 2021 07:38 PM PDT

    I am creating a app that will have converstion between users, and my question is, where should i save the messages? In the database? In the phones memory?

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

    Tool tips in a chart in Jetpack Compose

    Posted: 03 May 2021 02:23 PM PDT

    Most stock market apps and services have a function on their graphs that allow you to see a dollar amount when you hover or tap on a specific point in time, and I am wondering if anyone knows of an open source jetpack compose project that has implemented tool tips on dynamic charts. Thanks!

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

    Video Tutorial on Using Guidelines and Barriers in ConstraintLayout

    Posted: 03 May 2021 09:06 AM PDT

    Custom Keyboard input for minority language (Java/Kotlin/Flutter/ReactNative?)

    Posted: 03 May 2021 08:49 AM PDT

    Greetings -- I need to put together a small app that offers a custom keyboard, so users can write in their native language (the characters are present in Unicode). So basically, just building out a keyboard.

    I'm new to Android and mobile dev, but have a few years of programming experience, mostly in Python/JS/ReactJs. This seems like a fairly easy task, I'm wondering what is the best tool for the job, in this case -- I feel pretty language agnostic, and wouldn't mind learning Java, but if React Native means I can crank this out in a weekend, I'd settle for that for now.

    Thanks!

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

    No comments:

    Post a Comment