• Breaking News

    [Android][timeline][#f39c12]

    Monday, March 28, 2022

    Weekly Who's Hiring Thread - March 28, 2022 Android Dev

    Weekly Who's Hiring Thread - March 28, 2022 Android Dev


    Weekly Who's Hiring Thread - March 28, 2022

    Posted: 28 Mar 2022 06:00 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    How to prevent hackers from reverse engineering your android apps?

    Posted: 28 Mar 2022 12:39 AM PDT

    Learning android for experienced backend dev

    Posted: 28 Mar 2022 08:00 AM PDT

    I've taken a sabbatical from my work, and I want to learn some new things.

    I have worked as a backend java developer, with some web frontend work here and there, for 10 years. I want to learn android development now, and I'm wondering about good resources.

    I'm getting into things pretty quickly, making a simple app is fairly easy, but most tutorials feel pretty basic and I'm interested in more general things regarding best practices. What are some things I might miss as a new mobile dev?

    Are there any good courses or books aimed towards people comfortable in programming?

    Any other tips you can think of are appreciated!

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

    Any way to do an automatic staged rollout instead of manual?

    Posted: 28 Mar 2022 02:26 PM PDT

    I'm doing a staged rollout starting with 1% and up to 100% over 7 days. However, I have to do this manually by going in each day to update the percentage.

    Is there a way to do this automatically, rather than me going into the Google Console and putting in the new percentage every day?

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

    What architecture should I go for do that its not a bad architecture

    Posted: 28 Mar 2022 01:27 PM PDT

    I have a really big form to show. so what we did is divide it into 7 part, each part consist of 1 fragment and all those fragments are navigated using tab layouts and view pager. each of those fragments have their on view model to have access of data binding . Now the problem is we can randomly select any tab and update data so we need a central location to store that data and update it, but the data is complex json model so can't be stored in a database easily, is there any other option to pursue?

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

    Google Play changes in the app review policy (related to paid subscriptions flow)

    Posted: 28 Mar 2022 04:34 AM PDT

    Google Play changes in the app review policy (related to paid subscriptions flow)

    Hi!

    I am working on an app for more that a year now and during this time there have been no issues with App Review in Google Play at all.

    A bit of context:

    1. My app is available only with paid subscription and I am explicitly asking new users to start Free Trial on the 4th screen. Three first screens are explaining what this app is doing and how it can be helpful
    2. There are in fact 2 screens related to Subscription purchasing, first one is stating that user needs a subscription to use an app. And second shows which exactly Subscription options are available (I am attaching the screenshot for reference. First screen of the flow is not visible on this image, but it's just a Welcome screen with 3 bulletpoints describing app value + logo)

    https://preview.redd.it/yz3ogb6n14q81.png?width=776&format=png&auto=webp&s=48d208c904ea39d49661de74b52860fa179a5b4d

    Soooo, for more than a year everything has been fine from Google Play App Review perspective. Internal builds have been immediately getting available and prod builds took ~1 day to pass a review.

    But a week ago when I tried submitting a new version without significant changes (added localization for a new language) I have seen that there are few changes in the way how update is submitted through Google Play Console. I thought that it is only related to UX, but this time (16th of March) my update has been declined with a reference to not being able to get into the app:

    Issue: Need login credentials for app review

    And a screenshot showing that they need a subscription to get into the app. At that time I have figured out that there is a different issue with my app and submitted another update.

    This time (23rd of March) it was rejected because of another issue:

    Your app does not comply with the Subscriptions policy:

    Your app has multiple screens in the purchase flow that lead users into accidentally clicking the subscribe button.

    Oh, so all this time it was ok and now it's not. I tried to submit an appeal and after they responded that it is not successful I have got into an email conversation with them where explained in detail that I don't understand what exactly they want to see. And they...responded with copy paste from the page which I have read through few times already and which I've referenced in my question to them:

    As mentioned in previous email, your app has multiple screens in the purchase flow that lead users into accidentally clicking the subscribe button which violates the Subscriptions policy section of the Play Console of your app.

    We don't allow apps that mislead users about any subscription services or content offered within an app. It is critical to communicate clearly in any in-app promotions or splash screens. We do not allow apps that subject users to deceptive or manipulative purchase experiences (including in-app purchases or subscriptions).

    I am still trying to get smth else from them, but without a lot of expectations at this point.

    So, the questions which I am trying to get answers on are:

    1. Am I the only one facing this now? Or there is some change in the App Review flow on the Google Play side?
    2. Do I really need to put a screen asking to start a free trial as a first one after a new user opens an app? (as far as I can see from other apps it is not the case, but maybe I am understanding smth incorrectly)
    3. Are you guys are also waiting for your Internal testing builds to get processed longer than previously?
    4. Are you submitting separate demo videos or smth like that if your app content is available only with a subscription?

    Thanks in advance for your answers! :)

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

    How to pass a String from MainActicity to a Fragment

    Posted: 28 Mar 2022 01:13 PM PDT

    I got a LoginActicity and then MainActivity starts and then i start Fragment A with which i need to pass a variable to MainActivity and from MainActivity i need pass variable to another Fragment B. I think Fragment A and B are part of MainActivity, once somehow i passed with intents bundle put extra etc a variable from Fragment A to MainActivity i deleted it by accident but anyway how should a decent programmed do all this. I am junior and i work in a big project in a company. I dont want to create a textview and use it to pass things inside, i just want to transfer a variable cause i need it.

    submitted by /u/No-Sleep-9475
    [link] [comments]

    Hindi localization - worth it?

    Posted: 28 Mar 2022 08:49 AM PDT

    Been localizing my app into languages slowly, it's a lot to translate so I only do so sparingly bc it takes time and money.

    Wondering about Hindi, as the Indian market seems very big on Android.

    However, I do not know if this would translate (no pun intended) to more app downloads/sales/ad revenue.

    I figure I'd ask and see if anyone here has first-hand experience with localizing their app to Hindi, and have you seen any good things come about from it?

    For me, Portuguese was the best move, as Brazil > USA for my app now. Japanese and Russian however, barely was worth it. Though I haven't done any advertising targeting those specific locations outside a few dollars per day via Google Ads.

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

    How do you test your app on Android 12?

    Posted: 28 Mar 2022 08:23 AM PDT

    I have a problem. Android 12 users are reporting that my app isn't functioning properly.

    I don't have a physical device with Android 12.

    My only computer is a laptop with 4GB of RAM and a 5400 rpm hard drive so it can't run the Android Studio emulator for any OS higher than Android Jelly Bean.

    I tried finding online emulators that stream inside a browser instead of running natively on the computer, but every single one costs money.

    What are my options?

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

    Building on ARM CPU, who to CC?

    Posted: 28 Mar 2022 11:33 AM PDT

    App animation methods

    Posted: 28 Mar 2022 11:11 AM PDT

    Hello...

    I'm a beginner to android app development. I want to know what method you guys use to add animations to apps. Currently I'm using ObjectAnimator class.

    But I found that it is bit difficult and I have to write so many lines to animate each of elements. As a example if I have 5 objects then I have to make 5 animator objects and connect then using a animatorSet .

    Is there any other animating methods you guys using...?

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

    Visual tests

    Posted: 28 Mar 2022 10:56 AM PDT

    Do you have some kind of visual tests in any of your projects?

    If yes, what do you use and why?

    If no, why not?

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

    Is there any support for ACTION_OPEN_DOCUMENT_TREE on the Cloud from providers?

    Posted: 28 Mar 2022 10:26 AM PDT

    Hello,

    I am interested in the Storage Access Framework (SAF) from Google, and I already implemented some of its functions.

    My concern is about the use of the ACTION_OPEN_DOCUMENT_TREE intent, useful for apps to be able to select a folder and create files inside it, in particular for cloud folders.

    This question is about the cloud folders, the remote folders on the internet.

    I already tested some code and it correctly works on local storage, because after being granted the access, files can be created inside a folder.

    At present time I am not so up-to-date with the last changes or improvements to the above mentioned framework.

    So I searched through Reddit and StackOverflow but I found nothing.

    This problem seems to go ignored. It is strange because many developers should be interested.

    In fact on StackOverflow what surfaces is my own questions like

    https://stackoverflow.com/questions/56539920/storage-access-framework-doesnt-show-cloud-roots-when-using-action-open-documen

    https://stackoverflow.com/questions/56664638/storage-access-framework-does-the-file-picker-app-not-implement-action-open-do

    My question is

    if anyone knows some cloud storage providers or equivalent applications that opted-in to supporting the ACTION_OPEN_DOCUMENT_TREE intent for their remote folders, not only for the local ones.

    Time ago I asked also on NextCloud forum but I do not think they have implemented that yet.

    https://help.nextcloud.com/t/storage-access-framework-cannot-create-file-in-cloud-folder-selected-with-action-open-document-tree/66482

    I also created an issue on Google issue-tracker, to be eventually dismissed after a long time as "Won't Fix (Obsolete)" (like other issues I opened there).

    I even contacted privately another developer found on the internet concerned about this subject and he knew my issue and starred it.

    So a discussion here seems to be appropriate, and hopefully also there could be some useful answers or updates.

    Thanks in advance

    Best regards

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

    Which apps have these icons?

    Posted: 28 Mar 2022 09:39 AM PDT

    Retrofit in loop put many data to a database simultaneously causing error. How to make it wait for the response?

    Posted: 28 Mar 2022 07:13 AM PDT

    My loop:

     for ((key, value) in dataArray!!) { DbHelper().addData(value, key) } 

    DbHelper code:

     fun addData( value: Int, key: Int ) { val retrofit = Retrofit.Builder() .baseUrl("http://10.0.2.2:8080/app/") .addConverterFactory(GsonConverterFactory.create()) .build() valdataService: DataService = retrofit.create( DataService::class.java ) val call: Call<Long> = valdataService.postData( DataBodyPost(value, key)) call.enqueue(object : Callback<Long> { override fun onResponse(call: Call<Long>, response: Response<Long>) { if (!response.isSuccessful()) { println(" response " + response.toString()) return } } override fun onFailure(call: Call<Long>, t: Throwable) { println(" ERROR " + t) } }) } 

    I insert data to the table by using (SELECT max(id) + 1 FROM data) and when I do it in loop, it sometimes try to put two different elements with the same id causing duplicate key value violates unique constraint.

    How to make the loop in Android to not try to insert all the data at the same time?

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

    Gitlab CI and keystores?

    Posted: 28 Mar 2022 07:01 AM PDT

    I'd like to move our project to gitlab-ci.

    https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/ci/templates/Android.latest.gitlab-ci.yml is a great start, but I need to get our keystore into the container.

    Currently we have a global gradle.properties that holds the info about our keystore:

    store_path=/somewhere/keystore store_password=password key_alias=keylias key_password=password 

    Inside the build.gradle we call it by:

     signingConfigs { release { storeFile file(store_path) storePassword store_password keyAlias key_alias keyPassword key_password } } 

    Optimally I could just hand over the gradle.properties and the keystore into the container, but I wasn't able to do that. Anyone using this that could show me a working template or give me some ideas on how to do this?

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

    Can't pass seller identity verification

    Posted: 28 Mar 2022 05:45 AM PDT

    Two months ago, I received a payments hold on Google Play. Upon contacting the support they said I need to go through the Brazilian law identity verification as well as the EU verification (I'm not based in EU).

    I have submitted every document they asked for with information matching that on my account. However, every time I get an automated email that the verification process has failed due to policy violation, with no further clarification. No matter how many times I contact the support I get the same email.

    They have also suspended my Admob account, and when contacting Admob's support they said that it's not related to the seller identity verification issue because that's not required for Admob, and it must be something else. Few weeks later, they said that it's related and the suspension is there because of the same issue.

    At this point I'm clearly stuck, with no response from support, the only hope is to benefit from your experience in these issues on what I can possibly do.

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

    A class for creating custom dialogs

    Posted: 28 Mar 2022 04:37 AM PDT

    Are there any good examples of such utility classes?

    submitted by /u/Ok-Present-7144
    [link] [comments]

    Android: Google has done a lot right with its new widgets

    Posted: 28 Mar 2022 03:50 AM PDT

    Android || kotlin

    Posted: 28 Mar 2022 12:15 PM PDT

    What is the Retrofit ?

    submitted by /u/Content-Bunch-698
    [link] [comments]

    Advice about developer name/identity to use in Google/Apple app stores

    Posted: 27 Mar 2022 08:33 AM PDT

    Hi all!

    I'm about to publish my first app, which is currently in an internal test phase in the Play Store (with a few users I know personally). It's a Flutter app so I also plan to release it in Apple's App Store shortly after.

    When I created my developer account in the Play Store I just used my real first name + last name. I also happen to own my FirstNameLastName.com domain (I haven't set up any website yet), so I decided to use that as well for the app's package name.

    However, I've seen some people recommend creating a "company" name (even if there's no real company behind it), both for privacy reasons and to make store listings look more professional.

    I can see it's trivial to change that in the Play Store, however I've just read that in Apple's App Store, if you register as an individual developer you have to provide your real, legal name. You can't make up a fake "studio" name like in the Play Store unless there really is a company behind it.

    So... my questions:

    • Thoughts on using your real name vs a made up company name? Any experience?
    • If you use a made up company name for Google's Play Store, do you foresee any issues with releasing the same app under your real life name on Apple's App Store? Wouldn't it be safer to just use the same name on both stores?
    • If I continue to use my real name in both places, do you recommend creating a website under my personal .com domain as well? Any advice on what I should put there (portfolio, etc.), considering this is my first and only app for now? I'm just conscious that having a crappy website showing a single app could do more harm than good compared to just not having a website at all.
    • If you have any other ideas on how to leverage the fact that I own the .com domain with my real life name, I'd love to hear them!
    submitted by /u/VMX
    [link] [comments]

    How can I make an worm animation with the background slowly dragging

    Posted: 28 Mar 2022 03:33 AM PDT

    How can I make an worm animation with the background slowly dragging

    I created a layout. There are many menus in this layout and I want the background to come from the location of the clicked menu to the clicked menu and while doing this, I want it to slide like a worm. How can I make such an animation.. The background needs to shrink and lengthen just like a worm, at the same time I'm thinking of using a different color for each menu, so I need to use arb transitions in transitions Below are some examples.

    https://preview.redd.it/9ooinyfqq3q81.jpg?width=236&format=pjpg&auto=webp&s=40521928f30e14c3010f69ffabaf82302a4bdb9c

    https://preview.redd.it/x876c42rq3q81.jpg?width=238&format=pjpg&auto=webp&s=ce6f5e97fe62770307a86dc1d51ecc54430f8b76

    https://itnext.io/add-an-animated-indicator-to-your-bottomnavigationview-db04c6aa738f

    https://github.com/Devlight/NavigationTabBar

    <LinearLayout android:layout_marginTop="64dp" android:id="@+id/bottombar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_gravity="bottom|center" android:layout_marginBottom="12dp" android:animateLayoutChanges="true" android:background="@drawable/circularmenusolidbg" android:baselineAligned="false" android:elevation="3dp" android:nestedScrollingEnabled="true" android:orientation="horizontal" android:translationZ="5dp" android:visibility="visible" app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior" tools:ignore="UselessParent"> <androidx.cardview.widget.CardView android:id="@+id/menu1" android:layout_width="52dp" android:layout_height="52dp" android:layout_marginStart="6dp" android:layout_marginTop="6dp" android:layout_marginBottom="6dp" android:layout_weight="1" android:clickable="true" android:elevation="0dp" android:focusable="true" android:foreground="@drawable/ripple_bottom_menu" android:gravity="center" android:orientation="vertical" app:cardCornerRadius="20dp" app:cardElevation="0dp" tools:ignore="UseCompoundDrawables"> <ImageView android:id="@+id/menu1_img" android:layout_width="30dp" android:layout_height="30dp" android:layout_gravity="center" android:contentDescription="@string/todo" android:src="@drawable/ic_user" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:id="@+id/menu2" android:layout_width="52dp" android:layout_height="52dp" android:layout_marginStart="2dp" android:layout_marginTop="6dp" android:layout_marginEnd="2dp" android:layout_marginBottom="6dp" android:layout_weight="1" android:clickable="true" android:elevation="0dp" app:cardBackgroundColor="@color/blue" android:focusable="true" android:foreground="@drawable/ripple_bottom_menu" android:gravity="center" android:orientation="vertical" android:padding="12dp" app:cardCornerRadius="20dp" app:cardElevation="0dp"> <ImageView android:id="@+id/menu2_img" android:layout_width="30dp" android:layout_height="30dp" android:layout_gravity="center" android:src="@drawable/ic_saved_v2" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:id="@+id/menu3" android:layout_width="52dp" android:layout_height="52dp" android:layout_marginStart="2dp" android:layout_marginTop="6dp" android:layout_marginEnd="2dp" android:layout_marginBottom="6dp" android:layout_weight="1" android:clickable="true" android:elevation="0dp" android:focusable="true" android:foreground="@drawable/ripple_bottom_menu" android:gravity="center" android:orientation="vertical" android:padding="12dp" app:cardCornerRadius="20dp" app:cardElevation="0dp"> <ImageView android:id="@+id/menu3_img" android:layout_width="30dp" android:layout_height="30dp" android:layout_gravity="center" android:src="@drawable/ic_saved_grey" /> </androidx.cardview.widget.CardView> </LinearLayout> 

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

    How to stream the video feed to a PC via usb?

    Posted: 27 Mar 2022 10:15 PM PDT

    Hello

    I want to build an app that allows me to use my phone as a webcam, like Droidcam or Irium for example.

    How can I actually send the video stream to a computer where it can be displayed using another app?

    I read some posts that were saying sending data via usb from phone can't be done, and a solution would be making the pc app to read from the phone.

    If I go with this, should I write an image on the phone and read it? If I do this at 30fps it would not look so efficient.

    Is there any other way of doing this?

    Thanks!

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

    Conditional navigation with datastore

    Posted: 27 Mar 2022 09:41 AM PDT

    Hello there. I am coming from JS world and react native and started to get into Kotlin and Android. Have on the question. If I want to create conditional navigation can I keep some boolean like isLoggedIn into DataStore?! My idea is to make it somehow observable so when I logged in and get token, I set this boolean to true and navigate the user. On logout, I just set it to false. I do not know if this is the best practice at all. Is there any better approach?

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

    Feeding a screenshot to the phone's camera image buffer.

    Posted: 27 Mar 2022 10:22 PM PDT

    Is there a way to feed an existing image (e.g stored in the gallery) to the camera's image buffer? So e.g if a person (or an app) opens the camera it wont see the live footage but actually the already saved image?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel