• Breaking News

    [Android][timeline][#f39c12]

    Friday, July 2, 2021

    Weekly Anything Goes Thread - July 02, 2021 Android Dev

    Weekly Anything Goes Thread - July 02, 2021 Android Dev


    Weekly Anything Goes Thread - July 02, 2021

    Posted: 02 Jul 2021 06:00 AM PDT

    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]

    Microsoft recently announced that you can install Android apps on Windows 11 through the Amazon App Store. Article describing changes needed to your Android app, and other nuances

    Posted: 02 Jul 2021 07:56 AM PDT

    Google Play will start requiring new apps to be published with the Android App Bundle starting August 2021

    Posted: 02 Jul 2021 01:43 AM PDT

    Wireless debugging: Are you repeatedly typing the full addresses in the console?

    Posted: 02 Jul 2021 12:34 PM PDT

    It seems that Google's wireless debugging takes two steps: pairing and connecting. The two have different five-digit port numbers. Even I have paired a PC before, it seems that after a while, I have to pair again by typing the address and the paring code for the same PC. And then I have to type the full address to connect... in the command prompt.

    Is this what others are doing? Can't it be simpler and more convenient? There already seems to be a QR code reader on the Android's side, but I cannot find anything about it in Android Studio (I searched for "QR" or "wireless"). Isn't something like the following impractical to be implemented? --> I click the pair with QR button and I click a corresponding menu in Android Studio, and Android Studio shows a QR code, and if I scan that code with the phone, the phone and the PC get automatically paired and connected, without typing "adb pair <full IP address with ports>" and "adb connect <full IP address with ports>" all the time?

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

    Debugging Story: The Case of Rogue Reflection

    Posted: 02 Jul 2021 09:10 AM PDT

    I want to become an android dev

    Posted: 02 Jul 2021 05:18 PM PDT

    I am currently going to grade 10 and I've starting learning android dev on the google dev website. I want to know what I should do after I finish the course. Any help and advice welcome

    submitted by /u/4haan88
    [link] [comments]

    Android Jetpack Compose (Conditional Navigation)

    Posted: 02 Jul 2021 12:35 PM PDT

    How can I define the navigation of an app depending on whether the user is authenticated or not. An example would be if the app requires two screens to complete the authentication and once authenticated we have five main screens. Reading the documentation for Navigation specifically NavHost I can't find how to handle conditional navigation. The only thing I can think of is to work with the startDestination argument and dynamically initialize it but the documentation for this module says the following:

    Note: the Navigation Component requires that you follow the Principles of Navigation and use a fixed starting destination. You should not use a composable value for the startDestination route.

    So, any ideas or a repository on github where I can see more examples of the navigation in android jetpack compose?

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

    Does Lens Studio use ARKit/ARCore?

    Posted: 02 Jul 2021 04:10 PM PDT

    I'm confused how the various ar programs work together. Does Lens Studio build on top of ARKit/ARCore? Or does it take the raw sensor data from the phone and run its own SLAM, face tracking etc?

    This may not be the right place to ask but it's hard to find a relevant community with active users. Let me know if there's a better place to post this.

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

    Help me understand why Google Play App Review is rejecting my game

    Posted: 02 Jul 2021 09:38 AM PDT

    Help me understand why Google Play App Review is rejecting my game

    Edit: Thank you for the input. I will more clearly label the button with the words "Watch Ad". However requiring a closeable ad after 5 seconds is contradictory to their full policy. The closeable after 5 second rule applies to "ads that interfere with gameplay" which this ad doesn't as it happens post gameplay loop and is optional.

    TLDR: I believe the Google Play reviewer is applying their policy incorrectly yet I cannot get any further information out of them. Help me understand.

    Google App Review is rejecting my game and I believe the reviewer is failing to understand their own policies. The reviewer also refuses to read any correspondence I send and just copy pastes the same violation back. Their reason for rejecting the app is:

    We found that your app contains ad content that is not compliant with our Families ad format requirements.

    As a reminder, we do not allow ads or offers for in-app purchases that are not clearly distinguishable from your app content.

    For example, your app contains an ad that is not clearly labeled. Such icons should be clearly labelled as an ad (e.g. More Apps or Ad).

    Additionally, we also noticed that your app contains ads that interfere with normal app use that are not closeable after 5 seconds. Please refer to the attached screenshots for additional information regarding the two violations above.

    3 x Bonus Ad Button is pressed to initiate rewarded ad

    Unskippable Rewarded Ad

    I believe this judgement is incorrect for a few reasons. I submitted the following message to Google App Review and their reviewer did not comment on any of it.

    I want to be compliant and follow the policies set forth by Google. I offer my understanding below so you may help clear up any misunderstandings I am having on how the policies should be applied.

    Judgement: your app contains ads that interfere with normal app use that are not closeable after 5 seconds

    Rebuttal: The app offers 2 options for a user to proceed, one option with ads to earn a bonus and another without. This is a rewarded ad that the user must initiate by clicking on a button that has an ad icon. Both Burrito Bison and Subway Surfer, apps that are rated E, display ads that are not closeable after 5 seconds after clicking on a button with an ad icon. This ad is not "interfering with game play" and is in compliance with the full policy around "closable ads after 5 seconds" taken from https://support.google.com/googleplay/android-developer/answer/9898834:

    "Ads that interfere with normal app use or game play that are not closeable after 5 seconds. Ads that do not interfere with normal app use or game play may persist for more than 5 seconds (e.g. video content with integrated ads)."

    Question: The option to watch an ad is presented at the end of game play when scores are tallied in a menu and a user can ignore it. How does this "interfere with game play"?

    ----------------------------------------------------------------------------------------------------------------------------

    Judgement: and an ad that is not clearly labeled. We do not allow ads or offers for in-app purchases that are not clearly distinguishable from your app content.

    Rebuttal: The button that initiates the ad has an ad icon. Both Burrito Bison and Subway Surfer display a button with an ad icon.

    Question: Other apps that are rated for children display ads that cannot be skipped when a button that is labeled with an ad icon is pressed. Is my app being judged by different standards? Is the issue that the icon is not believed to be understood as an ad icon?

    I appreciate any and all insight into the matter.

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

    What are barriers to getting deterministic builds?

    Posted: 02 Jul 2021 04:11 AM PDT

    I love fdroid, but my biggest barrier for recommending it to others is that the builds are not necessarily deterministic. I'm interested in working on this problem, and looking to narrow the scope of the problem.

    What are sources of builds outputting different binary code?

    Using a repeatable VM seems like a good way to have the same build each time, but I'm unsure what else can cause differences in builds.

    Anyone have suggestions or places to begin reading? Its been years since I made an Android App and it was released via playstore.

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

    What will happen to older app versions using Google Play Billing version 2 November 2021 onwards?

    Posted: 02 Jul 2021 04:54 AM PDT

    Here is a beginner guide to learn Reactivate Programing with kotlin

    Posted: 02 Jul 2021 12:07 PM PDT

    Fatal Exception: androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching

    Posted: 02 Jul 2021 11:49 AM PDT

    When I run the Firebase Test lab I'm getting The error "No views in hierarchy found matching"

    Does anyone know how to fix this error?

    Fatal Exception: androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (view.getClass().getName() matches: is "android.webkit.WebView" and view.getId() is <2131361871/com.programproductions.nativeandroid:id/activity_oauth_webview> and is a child at 0th index of the matching parent: (view.getClass().getName() matches: is "android.widget.FrameLayout" and view.getId() is <-1 (resource name not found)> and is a child at 0th index of the matching parent: (view.getClass().getName() matches: is "androidx.appcompat.widget.ContentFrameLayout" and view.getId() is <16908290/android:id/content> and is a child at 1th index of the matching parent: (view.getClass().getName() matches: is "androidx.appcompat.widget.FitWindowsLinearLayout" and view.getId() is <2131361845/com.programproductions.nativeandroid:id/action_bar_root> and is a child at 0th index of the matching parent: (view.getClass().getName() matches: is "android.widget.FrameLayout" and view.getId() is <-1 (resource name not found)> and is a child at 1th index of the matching parent: (view.getClass().getName() matches: is "android.widget.LinearLayout" and view.getId() is <-1 (resource name not found)> and is a child at 0th index of the matching parent: (view.getClass().getName() matches: is "com.android.internal.policy.DecorView" and view.getId() is <-1 (resource name not found)> and view.getRootView() to equal view))))))) View Hierarchy: +>DecorView{id=-1, visibility=VISIBLE, width=1248, height=1008, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#20 ty=2 fl=#1820002 fmt=-3 wanim=0x10302fe needsMenuKey=2 colorMode=0 naviIconColor=0}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1} | +->FrameLayout{id=-1, visibility=VISIBLE, width=1152, height=912, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false,<truncated: 10633 chars> at androidx.test.espresso.NoMatchingViewException$Builder.build(NoMatchingViewException.java:5) at androidx.test.espresso.base.ViewFinderImpl.getView(ViewFinderImpl.java:21) at androidx.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:4) at androidx.test.espresso.ViewInteraction.access$100(ViewInteraction.java:1) at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:2) at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6944) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ScrollView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:fillViewport="true"> <WebView android:id="@+id/activity_oauth_webview" android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="none" /> </ScrollView> <LinearLayout android:id="@+id/activity_oauth_register_container" android:layout_width="match_parent" android:layout_height="@dimen/margin_48dp" android:background="?colorSurface" android:gravity="center" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/need_an_account" android:textColor="?colorOnSurface" android:layout_marginStart="@dimen/margin" android:textSize="@dimen/small_letters" /> <Button android:id="@+id/activity_oauth_register" style="@style/Widget.MaterialComponents.Button.OutlinedButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/margin" android:layout_marginEnd="@dimen/margin" android:text="@string/register_label" /> </LinearLayout> </LinearLayout> 
    submitted by /u/No-Championship2288
    [link] [comments]

    I’m using “managed publishing.” I submitted a build to production for review. I have not published the build. Why are my subsequent Closed Beta submissions saying “superseded”?

    Posted: 02 Jul 2021 11:40 AM PDT

    This is my first time releasing an android app and I need some help understanding what to do.

    I'll explain my steps so far: I've enabled managed publishing. 1. Submitted version code 7 to closed testing. 2. While 7 is in review, I submitted 7 to production. (I thought this would save time) 3. Closed testing on 7 now says superseded (probably because production uses the same version code). 4. I have not published 7 on Production. 5. I found a bug, so I created a version code 8 APK, and submitted it to Closed Testing.
    6. Now build 8 says superseded. 7. I made a new Track in closed testing and submitted build 9. 8. Build 9 is superseded. 9. I looked at production (build 7), now it says superseded too!

    Why is the highest version code being superseded? How do I rectify this?

    P.S. I want to test out my app's name and icon on the app store. Google console is saying I have a temporary name because the app isn't review yet. I want to test this on Closed Testing, but the problem above won't let me. How can I resolve this without going live with production?

    Thanks!

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

    Mobile Developers Cafe - Weekly Issue #30 is out now with loads of Android Dev content.

    Posted: 02 Jul 2021 07:48 AM PDT

    What technologies should my team learn in order to implement an in-app messaging system?

    Posted: 02 Jul 2021 11:31 AM PDT

    Hey everyone!

    For a class project, a few friends and I plan to create an app with in-app messaging between users as a feature. To do so, what would be the best technologies to take a look into? We were considering Firebase / Postgres (which one would be best) for database use, and the app was likely going to be written in java (up to change).

    What else should we look into?

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

    [noob] Do I need android studio if I am going to run the app on a physical device (my smartphone)? I already have installed VSvode & node.js. (react native)

    Posted: 02 Jul 2021 10:40 AM PDT

    Need an explanation for Android 11's need for "hotword blobs" for ok google.

    Posted: 02 Jul 2021 09:54 AM PDT

    I am not an Android dev, but the thing is, for a few weeks I have been seeing posts all over the internet about voicematch not working on Android 11 custom ROMs. People often get told to "switch gapps" only to come back to the thread saying it didn't work.

    I recently installed Android 11 on my device and found out it doesn't work on any A11 ROM with any Gapps, so I asked one dev why and he said that it's because Android 11 requires "hotword blobs" for it to work.

    Curiously, google results about that are nil. Can someone explain me a bit more about this change introduced in A11?

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

    Admob ads failed to load

    Posted: 02 Jul 2021 07:50 AM PDT

    Hi devs, please go through the log and tell me why ads not appearing on my app.

    2021-07-02 20:02:58.651 6311-6327/? I/Finsky: [319] nmi.run(36): Stats for Executor: bgExecutor non@2c0e824[Running, pool size = 4, active threads = 1, queued tasks = 0, completed tasks = 177]

    2021-07-02 20:03:00.006 1517-1619/? E/memtrack: Couldn't load memtrack module

    2021-07-02 20:03:00.006 1517-1619/? W/android.os.Debug: failed to get memory consumption info: -1

    2021-07-02 20:03:02.593 6242-6242/com.meganlabs.giggle D/---HomeActivity: Banner ad error code: 2

    2021-07-02 20:03:02.593 6242-6242/com.meganlabs.giggle I/---HomeActivity: Banner ad error code: 2

    2021-07-02 20:03:02.593 6242-6242/com.meganlabs.giggle V/---HomeActivity: Banner ad error code: 2

    2021-07-02 20:03:02.594 6242-6242/com.meganlabs.giggle I/Ads: Ad failed to load : 2

    2021-07-02 20:03:06.137 2278-6247/? W/Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed

    2021-07-02 20:03:06.137 2278-6247/? W/Conscrypt: at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@210613022@21.06.13 (040700-358943053):2)

    2021-07-02 20:03:06.137 2278-6247/? W/Conscrypt: at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms@210613022@21.06.13 (040700-358943053):0)

    2021-07-02 20:03:10.578 6311-6331/? I/Finsky: [323] okt.a(6): Logs flushing took more than 60000 ms.

    2021-07-02 20:03:10.584 6311-6333/? I/zygote: Deoptimizing void awwe.run() due to JIT inline cache

    2021-07-02 20:03:10.588 6311-6331/? I/Finsky: [323] abvs.n(4): SCH: jobFinished: 10-12. TimeElapsed: 60026ms.

    2021-07-02 20:03:10.590 6311-6311/? I/Finsky: [2] abuj.e(4): SCH: Job 10-12 finished. Not rescheduling.

    submitted by /u/Realistic-Plant3957
    [link] [comments]

    Fail your build on Kotlin warnings

    Posted: 01 Jul 2021 07:22 PM PDT

    Duplicate class kotlinx.coroutines.AbstractCoroutine found in modules jetified-kotlinx-coroutines-core-1.3.0.jar

    Posted: 02 Jul 2021 01:46 AM PDT

    Has anyone run in to this isseue? I´m clueless. The project worked fine yesterday but today when I started it I got this error.
    Duplicate class kotlinx.coroutines.AbstractCoroutine found in modules jetified-kotlinx-coroutines-core-1.3.0.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0) and jetified-kotlinx-coroutines-core-jvm-1.5.0.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0)

    Any help is appreciated

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

    Is there documentation to use CameraX and show quad lines to crop documents automatically?

    Posted: 02 Jul 2021 01:16 AM PDT

    I've been reading and see that OpenCV uses the old Camera2 APIs. Wish there's something new to make our lives much easier.

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

    Getting touch pressure from custom android keyboard

    Posted: 02 Jul 2021 12:58 AM PDT

    Hey all,

    I developed my own custom keyboard for android devices. My goal is to get the touch pressure, which works with getPressure() from MotionEvent. The only problem is that I'm using a Samsung galaxy s8, which gives me a constant value of 1.0.

    My question is whether you have any android smartphones that give back accurate touch pressure from getPressure(), because they have a built in sensor for these tasks.

    Also, would it be possible to calculate the pressure by using getSize() and velocity? My reasoning would be that a harder touch pressure can be seen from a larger finger print on the display pressed fast.

    Thank you all and take care!

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel