• Breaking News

    Thursday, June 17, 2021

    Android Dev - Submitting an update - google play is saying my app has actions when it doesn't?

    Android Dev - Submitting an update - google play is saying my app has actions when it doesn't?


    Submitting an update - google play is saying my app has actions when it doesn't?

    Posted: 17 Jun 2021 02:30 AM PDT

    My last release went through fine, and there was only a small unrelated code fix in this release, but when I try to upload my aab file I see this:

    "At least one of your APKs or App Bundles contain an actions.xml file. To continue, accept the Actions on Google Terms of Service in the Advanced Settings page."

    I don't have an actions.xml file, or shortcuts, or any app actions in my app. The only thing I found that is close to actions is the <action> element in my AndroidManiphest.xml that launches different settings activities from my preferences xml. Could that be causing the issue? Is anyone else suddenly getting this error today?

    I realize I could accept actions terms of service, but I'd like to figure out what is triggering that error. Also I don't want to get policy violation for accepting actions terms of service when I don't use any actions.

    I looked in my merged maniphest and no mention of com.google.android.actions

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

    Android Distribution Chart as of 16.06.2021.

    Posted: 16 Jun 2021 12:49 PM PDT

    Disabling push notifications from google play services

    Posted: 17 Jun 2021 07:51 AM PDT

    Disabling push notifications from google play services

    I know it's silly to try and undermine the all-powerful Google and disable GPS but some of my users do not. I'd like to still give them the maximum amount of functionality that I can if they choose to do it.
    My app requires no Contacts permission. I've even looked through the merged manifest reports in the build file in case one of my dependencies was pulling it in. Nada. But when GPS is disabled, I get this. and also users asking why I'm trying to invade their privacy. Any ideas? I can't seem to figure out how to stop them.

    https://preview.redd.it/n4815920au571.png?width=1080&format=png&auto=webp&s=3d589778a597738a82f118070be23bedf802bae8

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

    Learn To Build Android Attendance Application Using Kotlin

    Posted: 17 Jun 2021 07:31 AM PDT

    I try to explain how to use ConstraintLayout, PopupMenu, and viewBinding in this tutorial.

    https://mihfazhillah.medium.com/build-simple-attendance-app-in-kotlin-part-1-dashboard-layout-c111b84ea9cf

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

    Add-on architecture

    Posted: 17 Jun 2021 07:28 AM PDT

    Hi everyone!

    I would like to collect some ideas or feedback about how to architecture a specific business case.

    We develop a multitude of modules that we offer to customers, which they can then subscribe to as they need. Currently, each module is also a separate module in the project, so there is a "core dashboard" with add-on feature modules.

    So far we have these downsides:

    • Lot of customers - lot of flavors. Some customers even have multiple subregions needing different modules. High flavor count and maintenance.
    • Building everything together would produce a huge app without the customers needing all of the features.
    • When adding or removing modules, a new release needs to be pushed out
    • When updating a single module - the entire app with all other modules needs to be "updated"
    • Since everything is in the same codebase, having multiple teams that have ownership of multiple modules makes it hard to work without ending up wit quite a lot of merge conflicts

    What we strive for:

    • Users have one app instead of many
    • Adding, removing and updating can be on a per-module basis
    • Code is structured in a way where multiple teams can work together on a single repository, maintaining ownership and doing changes on specific modules (no merge-conflicts)
    • The app could quietly add/remove features depending on the permissions of the user logged in.

    We have a couple of extra possibilities since we are an enterprise which uses the Enterprise Play Store (for ex. we can install apps onto managed devices silently) but there is no guarantee that all customer devices are managed by us, so all those nice additional perks don't cover all scenarios.

    We do manage the customer logins, so at login we can deliver configuration information to the app.

    One possible solution we are considering is also using PWA, but native would still be the optimal way to go if possible.

    Any ideas would be appreciated.

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

    AAB Distribution Issue

    Posted: 17 Jun 2021 07:11 AM PDT

    Hallo, Is anyone else facing issues uploading AABs to playstore?

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

    New Play Console does not show revenue on main screen and the time is always set to UTC. In old play console I got my revenue on main screen and I could see all the data in my local time zone, new play console does not seem to do that.

    Posted: 17 Jun 2021 07:07 AM PDT

    When I select a single app > go to revenue> change the currency from USD to my local currency I can see the revenue there but with the old play console I could see my revenue on my main screen. This disappoints me It's been over a year since google forced developers to use the new play console and it still hasn't fixed this SIMPLE issue.

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

    Android Studio Arctic Fox Beta 4

    Posted: 16 Jun 2021 11:05 PM PDT

    Display in Android that span devices

    Posted: 17 Jun 2021 06:31 AM PDT

    I would like to create a display for Android that spans devices. I'd like to make an app or a launcher that provides some semblence of multiple displays for Android.

    I've researched several ways to do this. I tried creating virtual displays that are larger than the physical display, but mirroring. I've thought of using remote display software, like extending VNC or Microsoft RDP. It seems I need to come up with a way to add/change displays to Android dynamically.

    It seems that in Android 10, apps can accomodate multiple displays, but displays themselves are configured statically. And example: foldable devices that have two displays are supported, but the two displays are statically configured.

    If I could somehow tell the OS that a display has been added (from over the network, for example) then the system would handle the configuration stuff for this (e.g., input devices). Alternatively, I could program this myself by providing a display that can grow in size --> increasing or change size each time a new network device wants to "add to" the display.

    If you have any clues about dynamically changing displays in Android, or adding display, I'd love to hear it. I'm not afraid to dive into kernel code (I've been looking through the AOSP source code, for example).

    Thanks.

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

    License CC-BY SA and advertisements

    Posted: 17 Jun 2021 06:15 AM PDT

    Hello, I am using something inside my application under license CC-BY SA, I would like to ask if I can use ads with this license? By internet it's written that it can be for commercial too but I want to be sure about that

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

    Java Firestore Android use an arraylist in a query to show posts from followed users

    Posted: 17 Jun 2021 05:48 AM PDT

    I am developing an activity that displays the posts of the users that the user follows. For the posts I used the following structure:

     root --- posts (collection) | --- uid (documents) | --- userPosts (collection) | --- postId (documents) | | | --- title: "Post Title" | | | --- date: 4/06/2021 | --- postId (documents) | --- title: "Post Title" | --- date: 08/06/2021 | --- description: "this is the description of the post" [...etc] 

    Lately I did an activity that visualized the posts of a user and that's it. Now, instead, I want to show the posts of the users that the user follows in the home page. This is the structure of the "following": posts (collection)

     root--- folowing(documents) | --- uid(collection) | --- userFollowing(documents) | --- followed user(collection) -- followed user(document) | --- followed user (collection) -- followed user(document) 

    So, I tried to collect on an Arraylist all user uids that are followed by the user in this way:

    FirebaseFirestore.getInstance().collection("following").document(FirebaseAuth.getInstance().getCurrentUser().getUid()).collection("userFollowing").get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() { @Override public void onComplete(@NonNull Task<QuerySnapshot> task) { if (task.isSuccessful()) { for (QueryDocumentSnapshot document : task.getResult()) { document.getData(); Uidrecord.add(cont,String.valueOf(document.getData())); cont++; } int conta = 0; for (String item: Uidrecord){ if(item == null) break; uidFollowing.add(conta,getFollowingUid(item)); Toast.makeText(MainActivity.this, uidFollowing.get(conta), Toast.LENGTH_SHORT).show(); conta++; } } else { Toast.makeText(MainActivity.this, task.getException().toString(), Toast.LENGTH_SHORT).show(); } } }); 

    (uid Following contains all the ids of a user) This is how I set up the query to fetch a single user's post data:

    Query query = FirebaseFirestore.getInstance() .collection("post/" + uidVisit + "/userPosts") .limit(1000); 

    I knew the user id I had to look for posts in, so it was a static query because I had to get a user's posts and that's it. Now instead the uid where to get the posts are contained in an arraylist. So I was wondering how I could create a dynamic query and then how to grab the posts of every single user followed (using RecyclerView). It's possible to do it?

    Edit: As you can see from my complete code https://codeshare.io/MNWYb3 I tried putting a for (line 225) and dynamizing the query, but the result is that it only shows the posts of a user and that's it (seems to override each for the adapter, in fact the post shown is the last person followed so the last arraylist item)

    https://stackoverflow.com/questions/67948391/java-firestore-android-use-an-arraylist-in-a-query-to-show-posts-from-followed-u

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

    Layout messed up when keyboard appears

    Posted: 17 Jun 2021 05:45 AM PDT

    I am very new to Android and reading a beginner book.

    I wonder why does the layout get messed up as the keyboard appears on clicking an EditText, as shown here.

    I tried adding android:windowSoftInputMode="adjustResize" as well as android:windowSoftInputMode="adjustPan" to AndroidManifest.xlm but nothing changes.

    The layout is ConstraintLayout as below:

    ``` <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent">

    <EditText android:id="@+id/editTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="25dp" android:ems="10" android:hint="@string/title_hint" android:inputType="textPersonName" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <EditText android:id="@+id/editDescription" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="15dp" android:ems="10" android:hint="@string/description_hint" android:inputType="textMultiLine" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/editTitle" /> <CheckBox android:id="@+id/checkBoxIdea" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="149dp" android:layout_marginBottom="150dp" android:text="@string/idea_text" app:layout_constraintBottom_toTopOf="@+id/btnOK" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/editTitle" /> <CheckBox android:id="@+id/checkBoxTodo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="20dp" android:text="@string/todo_text" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/checkBoxIdea" /> <CheckBox android:id="@+id/checkBoxImportant" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="15dp" android:text="@string/important_text" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/checkBoxTodo" /> <Button android:id="@+id/btnCancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginBottom="59dp" android:text="@string/cancel_button" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" /> <Button android:id="@+id/btnOK" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="18dp" android:layout_marginBottom="61dp" android:text="@string/ok_button" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" /> 

    </androidx.constraintlayout.widget.ConstraintLayout> ```

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

    Compose tests can now be run on Robolectric

    Posted: 16 Jun 2021 04:28 PM PDT

    What are some ways in which the users can store their private photos/videos?

    Posted: 17 Jun 2021 05:24 AM PDT

    I would store the file paths of selected media and display them using bitmap factory for images and setvideoURI for videos.

    But problems occur when user moves their locations. I was wondering is there a way I could store images and videos reliably. I checked getExternalDir and such methods but not really understanding them.

    submitted by /u/Hour-Employee9716
    [link] [comments]

    Does it matter if you review and approve Ad Mob Ads during the weekdays or during the weekend.

    Posted: 16 Jun 2021 10:56 PM PDT

    Just wondering if I should wait and unleash ads on Friday or it doesn't really matter. Since traffic might be higher during the weekend maybe it's better to approve of them than. Do you have people clicking on your ads more during the weekend? Also if you receive ads on Mon is it wise to wait all the way till Thur, Fri to approve them?

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

    Want some information

    Posted: 17 Jun 2021 04:34 AM PDT

    I've have to make a final year university project. I'm only a little skilled at developing Apps so what kind of things should I do so it will affect college and resume.

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

    Setting discount codes for in-app purchase. Is that even possible?

    Posted: 17 Jun 2021 12:17 AM PDT

    Hey there! I have developed an app that is based on a subscription model and would like to set up seasonal campaigns for in-app purchases.

    Long story short, I want to give my free users the chance to use the code BLCKFRD21 for a limited time to redeem a 50% discount on their premium subscription.

    This is something that I am able to do with the iOS version of my app (documentation here), but I cannot do the same thing on the Android version to save my life. In Google Play Console, I can create promo codes to offer my app for free but this is not what I am trying to achieve.

    The only alternative I see is sending my users to a different checkout page but that would violate Google's rules.

    How would you solve this?

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

    Android Admob/Ad manager sample code crashing

    Posted: 17 Jun 2021 03:02 AM PDT

    The code i am using can be found at https://github.com/googleads/googleads-mobile-android-examples/releases/download/5.8/Java_NativeAdsExample_AdManager.zip also available at https://github.com/googleads/googleads-mobile-android-examples/tree/5.8/java/admanager/NativeAdsExample

    There have been no changes to the code running it as is shows the ads but the ads with images in them (Video asset ads are working fine) crashes the app when clicked on them.

    This is running a google test ad and not the orignal one and other ad examples are working fine

    The stack trace of the crash is

    2021-06-17 15:09:19.902 32360-32410/com.google.example.gms.nativeadsexample W/Ads: Not retrying to fetch app settings 2021-06-17 15:09:19.916 32360-32404/com.google.example.gms.nativeadsexample W/Ads: Update ad debug logging enablement as false ..... ..... 2021-06-17 15:02:18.204 17881-17881/com.google.example.gms.nativeadsexample D/AndroidRuntime: Shutting down VM 2021-06-17 15:02:18.205 17881-17881/com.google.example.gms.nativeadsexample E/AndroidRuntime: FATAL EXCEPTION: main Process: com.google.example.gms.nativeadsexample, PID: 17881 java.lang.NullPointerException: Attempt to invoke virtual method 'bak com.google.android.gms.ads.internal.eventattestation.a.a()' on a null object reference at com.google.android.gms.ads.internal.webview.ac.ay(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:0) at com.google.android.gms.ads.internal.webview.y.ay(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:0) at com.google.android.gms.ads.internal.gmsg.z.a(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:15) at com.google.android.gms.ads.nonagon.util.c.a(Unknown Source:4) at com.google.android.gms.ads.internal.webview.q.u(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:3) at com.google.android.gms.ads.internal.webview.q.t(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:9) at com.google.android.gms.ads.internal.webview.ai.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at apc.a(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:0) at com.google.android.gms.ads.internal.util.f.a(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:1) at apc.dispatchMessage(:com.google.android.gms.policy_ads_fdr_dynamite@211512000@211512000057.367949677.367949677:0) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7032) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965) 2021-06-17 15:02:18.223 17881-18238/com.google.example.gms.nativeadsexample I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2021-06-17 15:02:18.223 17881-18238/com.google.example.gms.nativeadsexample I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2021-06-17 15:02:18.229 17881-18239/com.google.example.gms.nativeadsexample I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2021-06-17 15:02:18.229 17881-18239/com.google.example.gms.nativeadsexample I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2021-06-17 15:02:18.249 17881-17881/com.google.example.gms.nativeadsexample I/Process: Sending signal. PID: 17881 SIG: 9 
    submitted by /u/namitsinha09
    [link] [comments]

    [DOUBT] How to hide developer option enabled information from apps?

    Posted: 16 Jun 2021 10:56 PM PDT

    Hi, I am an android developer and one educational app I recently installed is forcing me to turn off the developer options before using it. It is so irritating that I have to toggle the dev options back and forth every time when I open that app. App is quite useful. So is there any way to hide the developer option enabled information from that app?

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

    Do you guys always use Material Design in your projects?

    Posted: 16 Jun 2021 05:55 PM PDT

    Do you guys always use Material Design in your projects?

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

    What is the best way for naming variables inside colors.xml and strings.xml

    Posted: 17 Jun 2021 01:05 AM PDT

    I have these variables inside colors.xml file and I used `Name That Color Plugin`, Is it good put main colors for all views or create every color variable for every view?

    <resources> <color name="cod_gray">#161616</color> <color name="mine_shaft">#222222</color> <color name="white">#FFFFFF</color> <color name="wattle">#D4E157</color> </resources> 

    About strings.xml file, I don't know what is the best way to name variables, Any suggestion?

    <resources> <string name="app_name">Test</string> <string name="on">On</string> <string name="off">Off</string> <string name="notification_status">Notification Status</string> </resources> 

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

    Do you know transferring your app to another account affect your visibility on play store?

    Posted: 17 Jun 2021 12:16 AM PDT

    Hello guys,

    I've just found out you are bound to your initial country's payments profile. You can not change it to another country and get your in app purchase earnings in different currency.

    There is only one way to do this which is creating a new account and transferring your app to new account.

    To be honest I'm afraid to this. As the title says I'm scared that I will loose my visibility in the store. Currently, I have 2k-2,5k daily downloads and I don't want to loose it. If this will change I will probably loose all of my income.

    I worked so hard to come this far and the situation scare the shit out of me. So I'm asking you this. Has anyone have any experience with transferring apps to another account? Does it affect anything badly?

    Thanks for reading it so far :)

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

    No comments:

    Post a Comment