• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, April 5, 2022

    Slope-intercept library design – Jake Wharton Android Dev

    Slope-intercept library design – Jake Wharton Android Dev


    Slope-intercept library design – Jake Wharton

    Posted: 05 Apr 2022 07:46 AM PDT

    Play Store Data Safety Form: Data Collection explained

    Posted: 05 Apr 2022 02:50 AM PDT

    Play Store Data Safety Form: Data Collection explained

    Data Collection is simply put the data types your app is transmitting from the user's device(source of data) to some destinations(like database, third party SDKs, another device, etc). Some cases where you are doing data collection:

    1. Forms, Permissions: Data Types you collect via forms like first name, dob, etc., or using permission like contacts permission or read SMS permission.
    2. Third-Party SDKs/Libraries: SDKs like Admob automatically collects data types from your app. While you have no control on the data types these SDKs collect, you do have to disclose them.
    3. Webviews: If the app opens a webview where data collection happens on the webview and the webview is under your control.

    Cases where you are not doing data collection:

    1. On-device access/provisioning: If the data is processed locally and never leaves the user's device.
    2. End to End encryption: Think WhatsApp messages where messages & personal data are transmitted from the user's device but no one apart from the receiver & sender can read the message.

    This process can be time consuming as you have more people working on the app. You can use my free Play Store data safety generator CLI tool, it scans your code & detects data type collected, shared & generates a CSV that you can import to Play Store directly.

    Link to tool: https://github.com/Privado-Inc/privado

    FAQs:

    • What data do I collect if I use Google Play Billing or PayPal?
      Look at the flow of data, if Google Play opens an interface which you have no control of, the data types filled there i.e. credit card does not need to be disclosed. However, if you get credit card data in callbacks to your app, do disclose them. Basically, if your app accesses the data in any way you have to disclose that. Do note the payment history or transactional data you will be processing with these payment providers.
    • My app opens links as webview where users can put more data. I don't know what & how that data is collected. What should I fill?
      You don't have the code control or behavior control of these external links hence you do not need to fill anything. (edited)

    Play Store Data Safety Generator

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

    How do you manage native dependencies?

    Posted: 05 Apr 2022 08:55 AM PDT

    Pretty much the title.

    How do you manage of native C/C++ dependencies in your project?

    Are they open or closed source dependencies?

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

    From which source the OS gets information about date and time?

    Posted: 05 Apr 2022 07:40 AM PDT

    I am trying to find what is the official source from which the OS pulls the time and time zone when it is set to retrieve it automatically. Time zones are volatile information, as each country regulation may change the rules whenever they want, so I think the OS should be using some API or service to periodically pull that data. Can someone help me find the source code for that in AOSP?

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

    Conversion tracking on Twitter Ads

    Posted: 05 Apr 2022 04:58 AM PDT

    Is there any free way to track and optimise campaigns for in app actions using Twitter ads.

    There are so many third party tracking partners. But most of em aren't free and some don't even allow direct sign ups. Few years ago Twitter had its own tracking system...

    So is there any simple way to optimize my campaign for in app subscriptions on Twitter? Or can I somehow use my existing Firebase events for that purpose?

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

    I simply cannot import anko, what am I doing wrong?

    Posted: 05 Apr 2022 09:26 AM PDT

    I'm really new to Android dev and I'm struggling to understand how to import stuff

    Shouldn't this work? I kinda followed the tutorial they have on GitHub but I can't make it work

    https://i.imgur.com/TTx8pJq.jpeg

    But I get this when I try to use it:

    https://i.imgur.com/LaaYiq2.jpeg

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

    Play store deletes my reviews?

    Posted: 05 Apr 2022 09:05 AM PDT

    [PLAY STORE . ANDROID APP STORE]

    I wrote a bad review for the 'shopee' app because it has literally billions of errors. I leave a review, check back later, it's gone. Not even the star rating remains there.

    This happened like 5 times already. They responded to the first review. I noticed it was gone because i wanted to check the response.

    Can app devs delete reviews? They didn't have anything offensive. Why are my reviews gone?

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

    How are you handling this situations in compose? [Compose Architecture]

    Posted: 05 Apr 2022 08:41 AM PDT

    Hello everyone 👋

    In my work we are developing a PoC of Compose and we are trying to add the newest Android features as much as possible.

    Personally I found that using Compose is very fun and way more flexible than classical Android framework, even though soon I realized that few concepts are not too well explained in the docs, and also the examples provided are not that great.

    So I started to do some research by reading projects (source skydoves, Jose Alcérreca, Android Official Repo), and I found some really cool approaches to certain things.

    For example, I was trying to create a Login Screen, and my first attempt was something like this

    fun Login(navHostController: NavHostController, viewModel: AuctionsViewModel){ val loginResult: Boolean by viewModel.loginResult.observeAsState(initial = false) /* ...usernameField and passwrdField states... */ val onLoginPressed : () -> Unit = { viewModel.login(usernameField.value.text, passwordField.value.text) } if(loginResult){ navHostController.navigate("home") } // Content } 

    And yet while at first glance this seems correct (at least in my mind), the problem comes with how compose works (which is not wrong, but it was my lack of properly understanding compose). The docs says:

    Never depend on side-effects from executing composable functions, since a function's recomposition may be skipped. If you do, users may experience strange and unpredictable behavior in your app. A side-effect is any change that is visible to the rest of your app. [...] Composable functions might be re-executed as often as every frame, such as when an animation is being rendered. Composable functions should be fast to avoid jank during animations.

    And that's exactly what I was doing. I was making a Composable dependent of a side-effect. This error was producing the app to blink between two composables, hence freezing the app.

    In my search for solutions, I found a not very intuitive solution, which was to wrap the navigation logic inside a LaunchedEffect. It worked, but I was in doubt.

    LaunchedEffect(Unit){ navHostController.navigate("home") } 

    After further reading, my suspicion was correct, once again the docs says:

    Warning: LaunchedEffect(true/Unit)is as suspicious as a while(true). Even though there are valid use cases for it, always pause and make sure that's what you need.

    Back again in the research state in the mentioned sources, I found a more intuitive way to handle this situation:

    @Composable fun Login( navHostController: NavHostController = rememberNavController(), loginViewModel: LoginViewModel ) { val isLoginError by loginViewModel.loginError.observeAsState() when (isLoginError) { true -> LoginError() false -> navHostController.navigate("home") null -> LoginScreen(loginViewModel = loginViewModel) } } 

    In this composable, we delegate which composable show (LoginScreen, LoginError or navigate to Home) to another composable.

    I don't know if this is the best way to handle this kind of navigation (if you know any better, please feel free to share!), but it looks way better than a suspicious LaunchedEffect(true).

    This situation gave me the motivation to share this, and to invite you to share things that you may think it could be useful for someone else, or that you got stuck trying to understand. Of course the title is not specific to my situation, but for a more general discussion of how to do things we use to do in the Imperative paradigm.

    Thanks for reading, and anything I could improve, let me know 😀

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

    Use Visual studio's emulator in android studio

    Posted: 05 Apr 2022 08:24 AM PDT

    I have a pixel 2 emulator which I used in visual studio for xamarin development.

    now I have moved to android native development and I want to use that emulator in android studio.

    how can I achieve that ?

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

    Ads that aren’t clearly labeled

    Posted: 05 Apr 2022 07:16 AM PDT

    Hello guys i 've submitted an update for my app but they rejected it saying Issue with your app Your app contains content that doesn't comply with the Deceptive Ads policy. For example, we don't allow: Ads that aren't clearly labeled Issue details

    We found an issue in the following area(s): The problem that i don't know what is the problem the provided image in the email

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

    How much RAM do you have?

    Posted: 05 Apr 2022 07:02 AM PDT

    Hi I have been learning android development on my windows laptop with 8GB RAM. The android studio works fine but sometimes my laptop's fan makes so much noise it becomes annoying while coding. I was just curious do you face the same problem and what is your pc/laptop specs.

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

    Is it a good idea to have a friend open a developer account for you?

    Posted: 05 Apr 2022 06:59 AM PDT

    I live in a country where debit/credit cards do not allow international payments and you have to use a prepaid card with a $500 limit yearly. I got a prepaid card today but I learned that you cannot pay the $25 required to open a developer account using that card. Should have done a bit more research on my side, but it is what it is.

    So, I have a friend living in a another country and has access to a credit card. Is it a good idea to have them create a developer account for me? Will there be any problems in the future for me or to my friend in case something happens to the developer account? Also, is there any way I could still use the prepaid card to open a developer account?

    TLDR; I cannot pay for the developer account, should I have my friend create one for me?

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

    firststagemount error

    Posted: 05 Apr 2022 06:07 AM PDT

    Android system will warn users when running 32-bit apps

    Posted: 05 Apr 2022 06:06 AM PDT

    Jump to source code

    Posted: 05 Apr 2022 05:25 AM PDT

    Hi guys. I am doing profiling in android studio but the JUMP TO SOURCE CODE option is disabled.

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

    Gracefully handling Android app crashes

    Posted: 05 Apr 2022 04:54 AM PDT

    Suspicious mail from Google about deleting my apps?

    Posted: 05 Apr 2022 02:47 AM PDT

    3 days ago I received weird mail (but email address looks legit).

    Here is screenshot.

    Is it legit? Sounds fishy, plus weird wording (but the email address seems to be legit...)

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

    How does google family link app block applications ?

    Posted: 05 Apr 2022 02:44 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]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel