• Breaking News

    Monday, May 2, 2022

    Android Dev - Do virtual office addresses work for Google Play for indie developers?

    Android Dev - Do virtual office addresses work for Google Play for indie developers?


    Do virtual office addresses work for Google Play for indie developers?

    Posted: 01 May 2022 07:48 PM PDT

    So, I'm an indie developer, and I want to sell apps including with ads and subscriptions. Obviously, I don't want to provide my personal home address as public. I know that we are required to submit an address to Google Play in private, I have already done that.

    I'm talking about the one that appears in public on an app page. I learned about "virtual" office addresses, where I can sign a contract with a company, and get what looks like a legal mailing address. I'm wondering if Google (and the law) is ok with using that as the official business address? That way, I can satisfy all legal and business requirements, is what I'm hoping.

    Do any other indie devs here have experience with this? Have there been any problems?

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

    Policy question: Disclosure/Consent dialog about data collection inside the app (not only on the website)?

    Posted: 01 May 2022 10:59 PM PDT

    In the last couple of months there have been tons of changes, especially Data safety form, emoji policy, and many others. I've read them all, and this part specifically got my attention:

    Prominent Disclosure & Consent Requirement

    ...

    You must provide an in-app disclosure of your data access, collection, use, and sharing:

    • Must be within the app itself, not only in the app description or on a website;
    • Must be displayed in the normal usage of the app and not require the user to navigate into a menu or settings;

    ...

    Your in-app disclosure must accompany and immediately precede a request for user consent and, where available, an associated runtime permission. You may not access or collect any personal and sensitive data until the user consents. The app's request for consent:

    • Must present the consent dialog clearly and unambiguously;
    • Must require affirmative user action (e.g., tap to accept, tick a check-box);

    ...

    Whole text available here

    Just to confirm - if my app uses firebase analytics to collect some anonymous info - does that mean that:

    1. I have to basically copy-paste my policy from my web url into dialog within app too and launch it BEFORE user starts to use my app?
    2. UNLESS user clicks on AGREE button, I can not collect any firebase data?
    submitted by /u/throwaway41142095
    [link] [comments]

    Anyone aware about this bug with Firestore + FirebaseUI? Only very few users face it, and clearing app data doesn't fix it.

    Posted: 01 May 2022 12:28 PM PDT

    I use Firestore+FirebaseUI to show posts in my app, and use FirebaseUI to handle pagination and displaying the data.

    Data is shown according to the timestamp (with latest posts on top).

    But very few users (like probably 1 in thousand) have reported a bug where Firestore just stops showing them the latest data. Clearing the app data doesn't help either, and they keep on seeing some really old post.

    Firestore does seem to fetch the data from server though, except that it doesn't load past that one post no matter what's done (clearing cache/clearing app data/uninstall & reinstall). Has anyone faced this issue? The app doesn't crash and there's no way for me to test/replicate this bug either.

    Users are able to load posts that were added BEFORE that one post, but cannot fetch the latest data. I'm pulling out my hair because of this issue because it's reported time & time again every few months.

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

    Possibly dumb question on LiveData

    Posted: 01 May 2022 09:13 PM PDT

    So in my viewmodel I have a property like so:

    var someList = someRepo.getSomeList().asLiveData() 

    However, if I databind to it it never 'fires' the first time and the list is empty. I have a similar property in another viewmodel and that works fine so I'm trying to figure out what is going wrong here. In the example that works I'm creating an observer on said property in the Fragment but here I'm databinding in the layout file. The only other thing of note I think is that the attribute I'm binding to in the UI is a custom one I've made for AutoCompleteTextView (it's for setting the items in the suggestions dropdown)

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

    Should my app use Material Design 2 or 3?

    Posted: 01 May 2022 12:00 PM PDT

    Should my app use Material Design 2 or 3?

    I'm just curious, since personally Material Design 2 goes more easier on the corners, whereas Material Design 3 has way more rounded edges.

    Material Design 3 Button

    Material Design 2 Button

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

    Wouldn't it be easier if composables have IDs in jetpack compose?

    Posted: 02 May 2022 01:31 AM PDT

    I am used to android development using xml where I control the app layout using IDs but since Jetpack compose doesn't have IDs for composables, I feel like I don't have full control on the design. Why was it made this way with no IDs? I don't get it. I feel like life would have been much easier with IDs.

    I know flutter and react and all frameworks that have state management works this way but why the pain?

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

    Android 13: Main navigation should become smarter, Back function will be faster, smarter and more stylish

    Posted: 02 May 2022 01:10 AM PDT

    is there a material icon for the 52 card deck or should I import them as pic

    Posted: 01 May 2022 08:39 PM PDT

    I am trying to create a card game for low end devices, should I create and import 52 pictures which will be too much images or is there a material icon that's available?

    I want to be able to manipulate the color of the cards specially the back, that's part of my game. If I use png or vector files I will need 52x3 or more pictures.

    I searched online and couldn't find something similar.

    submitted by /u/08Feb2022
    [link] [comments]

    Android 13 scans QR codes without external apps and extremely fast

    Posted: 01 May 2022 10:33 PM PDT

    What to do when API developer is slow & not giving APIs on time?

    Posted: 01 May 2022 09:35 PM PDT

    This question is not Android specific but posting here because can't find a common group for mobile app development. Most app needs backend APIs which are developed by backend developers. The app I am working on (there os an iOS version in development by iOS developer). And the backend developer is not giving APIs on time which makes app development time slower. Also the response format is inconsistent. The project manager is assigning the overhead of following him to get APIs on time to me & the iOS developer. Should a project manager put these overheads on developers?

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

    Is it okay to provide ViewModel inside a module with Dagger 2?

    Posted: 01 May 2022 05:58 AM PDT

    I saw this approach from one of my colleague where ViewModel is provided using the module thus you won't even need to instantiate it inside Activity or Fragment onCreate nor onCreateView but I can't find a single article yet that is doing the same approach. Its working fine at all but I want to know if this is okay and valid at all.

    See the sample code here in SO

    https://stackoverflow.com/q/72076746/12204620

    Thanks everyone

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

    Discord and mentors

    Posted: 01 May 2022 02:10 PM PDT

    Hello devs, i am starting my cs semester this summer and i wanted to know if there is a android dev discord to share bugs and code maybe even mentors?

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

    Tool for making screenshots for store/portfolio?

    Posted: 01 May 2022 01:39 PM PDT

    I'm currently making a portfolio and was wondering which tool is the best for creating snapshots/screenshots of my apps?

    Does anyone have any suggestions, or do you straight up screenshot from the phone?

    submitted by /u/yerba-matee
    [link] [comments]

    How does the google family link app block apps ?

    Posted: 01 May 2022 02:03 AM PDT

    Hello,

    I'm an Android developer and my company is developing a parental control app.

    We use the accessibility service to detect application launches. We couldn't find any other API to do so. I was wondering how google family link does this without using the accessibility service. They are not binding any accessibility services. Does anyone know which APIs they use ?

    Thanks.

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

    Changing app's title and short description according to new google policies

    Posted: 01 May 2022 01:39 PM PDT

    Unfortunately my downloads are expected to drop after I change my app's title, just a question what if I have words like: best, free, top etc... in the long description, is it prohibited too? Or prohibited only in the title?

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

    Any good canvas or UI courses to recommend?

    Posted: 30 Apr 2022 12:58 PM PDT

    Hello everyone,

    UI was always my weak spot, ever since i was a student i always remember that i hated HTML and Front end dev so much, and i'm looking to improve on this point but can't come across a good resource so far online.

    What do you recommend to be better when it comes to UI, i'm looking for courses or good resources on Canvas and animations.

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

    Inevitable to learn Kotlin for Android development? Reluctant to switch from Java to Kotlin as it means spending time to learn a new language for same purpose which Java already served for many years.

    Posted: 01 May 2022 11:42 AM PDT

    After a brief c++ learning curve, I studied and used C# for a while for Windows applications. It was a short learning curve for me. Then i started learning Java for Android development. And it was easy too. Lately i've been realising Kotlin is replacing Java for Android development. Here are some of things that putting me off switching to Kotlin. But it seems like its inevitable :/

    -Main problem for me is the idea of learning a new language, investing time for it while i already know Java and it's been used for android development since inception of Android.

    - When i see Kotlin code examples, first impression it looks like a functional or scripting programming language rather than an object oriented but i read that it actually gives both flavor. Well tbh the first thing put me off when i look at a Kotlin code is variable and functions declarations/assignments like "val a: Int = 1", "fun printSum(a: Int, b: Int) { ..}". Wish it was designed just like Java, C variants "String str="test string" ". These might be little things but those things may sometimes put off devs switching from Java to Kotlin.

    - I believe apart from some native c++ libraries, most libraries was written in Java in Android. So a Kotkin dev will need to know some Java basics at some point i guess. That means spending time to learn both languages for same purpose. And tbh i think this way in my head "i know Java, Java is one the most popular language out there, i already invested my time and trying to learn and improve more, so why i need to switch to a new one now and spend time all over again" Sure many others feel or felt same way.

    As i understand, Kotlin is being liked mainly for 1 thing which is brevity/less boilerplate coding. (I prefer clarity over brevity :) ). Well, i see this is something really tempting and cool. As i read, this is thanks to Kotlin language's feature called delegation properties. It's a fair point. Yet i would rather to use an updated new Java which would do all the good new things that Kotlin do with support of Google. This way devs wouldnt need to switch to a new language and spend time learning it, instead devs would focus on productivity and ideas more. All said, at this point it looks like its inevitable to learn Kotlin because Google wants it this way.

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

    Best roadmap for android app initial release

    Posted: 01 May 2022 03:25 AM PDT

    Hello,

    Together with my mate we releasing an mobile app on google play store. What are the best practices for releasing it? Currently we want to somehow release it strictly only for us, and no one else to test the functionalities of GP Store and real behavior of the app after downloading it from Store. Is it a good approach to release it in this way (to preform initial "smoke" tests), and how to do that?

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

    How realistic is it for a new dev to take an abandoned app and update it to work with newer versions of Android?

    Posted: 30 Apr 2022 05:33 PM PDT

    I have an expensive Gaiam body fat scale and the app developer seems to have abandoned the app with no updates for more than a year.

    How realistic is it that a new dev could take the apk and update it to work again?

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

    android dev

    Posted: 01 May 2022 11:47 AM PDT

    Any link to android development with kotlin language link up. Either a job, internship or Volunteer.

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

    Inserting a List of Objects of an Entity within a Separate Entity in Android using Room Database with Kotlin

    Posted: 30 Apr 2022 01:33 PM PDT

    ** If this breaks a Rule, no worries mods can remove,. I can restructure the question to get a deeper understanding of the GoogleDocs Insert Mutliple Objects with Room Database. **

    TL;DR - Inserting A list of Objects within an Entity Class using Room Database and Kotlin. Original Q on Stack Overflow: https://stackoverflow.com/questions/72071355/inserting-a-list-of-objects-in-android-room-database-with-kotlin

    I'll explain here as well, hoping someone has a good understanding of Inserting Objects with Room Database, using Kotlin. I'm creating an Application that Allows the user to create a Clothing Item given this Clothing.kt class:

    @Parcelize @Entity(foreignKeys = [ ForeignKey(entity = Outfit::class, parentColumns = ["id"], childColumns = ["outfitRefFK"] ) ] ) data class Clothing ( //Sets all attributes and primary key @PrimaryKey(autoGenerate = true) val id: Int, val type: String, val color: String, val style: String, val description: String, val dateAdded: Date = Date(), val brand: String, val theme: String, val image: String, @Nullable val outfitRefFK: Int ): Parcelable 

    The class uses what I'm assuming is standard POJO to work with the DAO to ADD, INSERT, DELETE, and QUERY from that Table.
    ClothingDao.kt

    @Dao interface ClothingDao { //Ignores when the exact same data is put in @Insert(onConflict = OnConflictStrategy.IGNORE) suspend fun addClothing(clothing: Clothing) @Update suspend fun updateClothing(clothing: Clothing) @Delete suspend fun deleteClothing(clothing: Clothing) @Query("DELETE FROM Clothing") suspend fun deleteAllClothing() @Query("SELECT * FROM Clothing ORDER BY id ASC") fun readAllData(): LiveData<List<Clothing>> @Query("SELECT * FROM Clothing WHERE type='Top' ORDER BY id ASC") fun selectClothingTops(): LiveData<List<Clothing>> //Called in ListFragment Searchbar. Queries Clothing Type or Clothing Color. @Query("SELECT * FROM Clothing WHERE type LIKE :searchQuery OR color LIKE :searchQuery") fun searchDatabase(searchQuery: String): LiveData<List<Clothing>> } 

    My goal is to use an Outfit Entity Class that will store a List of Clothing Items when the user forms their created List. I haven't had issues with the UI and Binding Data in the ViewModel with the Clothing Class, but mostly storing the List of Clothing items in the DB as a Outfit.

    Outfit.kt

    @Parcelize @Entity data class Outfit ( @PrimaryKey(autoGenerate = true) val id: Int, val outfitName: String, @Ignore val ClothingItems: List<Clothing> ):Parcelable 

    And I'm currently working on the OutfitDao but here is what I have so far.

    OutfitDao.kt

    @Dao interface OutfitDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun addOutfit(outfit: Outfit) @Query("SELECT * FROM Outfit ORDER BY id ASC") fun readAllData(): LiveData<List<Outfit>> } 

    My Question

    Given the tables I currently have, how can I store a list of Clothing Objects, that match a given Outfit ID. I understand that it's not possible to store a list of objects in SQLite, but I've been trying to understand Google's documents given their MusicDAO Example for Inserting Multiple objects

    Googles Example: Android Insert Room Database with Kotlin

    @Dao public interface MusicDao { @Insert(onConflict = OnConflictStrategy.REPLACE) public fun insertSongs(varargs songs: Song) @Insert public fun insertBoth(song1: Song, song2: Song) @Insert public fun insertAlbumWithSongs(album: Album, songs: List<Song>); } 

    I'm assuming if I can somehow understand the "insertAlbumWithSongs" and "InsertBoth" functions then I could solve my problem. Just not sure of my next step.

    My attempts so far:

    1. @Embedded val ClothingItems: List<Clothing>
      Using an Embedded list was my closest attempt but Room couldn't figure out how to store Clothing as an object in SQLite. It also did not like Referencing multiple Embedded Objects.
    2. Storing each Clothing Type within Room as a JSON String using GSON and Following this Tutorial: https://www.section.io/engineering-education/storing-custom-data-types-with-custom-typeconverter-in-room-database/
      - This one was difficult for me to understand, as it seems majority of the article and other SO posts, that this method is for grabbing already created data sets form online JSON API's. That could be great for future purposes, but not what I need at the moment.
    submitted by /u/Sad-Grapefruit9996
    [link] [comments]

    How to 'execute' a Flow query in a Room?

    Posted: 30 Apr 2022 05:35 PM PDT

    Not sure if this is a silly scenario or not but what is the best way to immediately evaluate a Room query that has a return type of LiveData/Flow? I have a UI with a list of items where I use that normally (update the UI when the database changes etc) but I also have a scenario where I need to get that list on init of a viewmodel to set values on another list (basically I get a similar list of items from an API and want to mark the ones already stored on the device). Currently I'm doing a .collect() after my API call returns to get the stored items but I'm not sure if that's the right way to do it.

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

    Integrate Payment in Application?

    Posted: 30 Apr 2022 06:29 PM PDT

    I want to integrate a payment section between two customers (platform)

    Do you have any tips to integrate one? Maybe a service or a best practice?

    Also, do you know the margins of PayPal? As I want to charge as less as possible (5%) it should still pay off somehow

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

    why app is taking so long to review in playstore

    Posted: 30 Apr 2022 08:25 PM PDT

    I have uploaded my first app on 26th April 22 now it's 1st may , but still the app is not being live , the app just have 4 screen 2 of them only contains textview and 1 have a link button and the main one have 2 audio files that's had to been played

    Why this small app is taking too long now it is close to 7 days ,it is making me nurvous that will my first app will be banned don't know for what

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

    Is the fact that anyone can just decompile APKs to Java on Android Studio a security issue?

    Posted: 30 Apr 2022 10:00 AM PDT

    I know you can do the same on iOS with Hopper but it's much harder.

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

    No comments:

    Post a Comment