• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, February 22, 2022

    Lottie Android 5.0 Android Dev

    Lottie Android 5.0 Android Dev


    Lottie Android 5.0

    Posted: 21 Feb 2022 06:02 PM PST

    Learn basic Animation in Jetpack Compose

    Posted: 21 Feb 2022 10:30 PM PST

    Android Studio: Cursor mode: Select rectangle - Why is this a thing?

    Posted: 22 Feb 2022 12:15 AM PST

    The cursor sometimes randomly switches to "select rectangle" mode. What are some use cases for this? When do you need to select a rectangle instead of lines in your code?

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

    Can I get a mini code review?

    Posted: 22 Feb 2022 12:02 AM PST

    So I have been self teaching Kotlin, Android on and off for like a year or so, just haven't kept the learning consistent so feel like the progress has been slow. I have also been stuck in tutorial hell, keep telling myself this next course will make me a better programmer, but the material just doesn't quite stick.

    So I have started making an app from scratch, hoping to start basic and keep adding more features and advanced functions as a way to learn instead of the tutorials.

    I have made some progress but just really aren't sure if I'm doing things right, feel like I have hacked this app together. Would it be possible to get a little code review from some of you experienced devs so that I can keep improving?

    https://github.com/DurbinDevs/ButtonBasher

    The read me has a little blurb on what the app is suppose to do.

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

    How can I sum the data in the nested Room database?

    Posted: 21 Feb 2022 10:35 PM PST

    Suppose you have a flowing list like this. I want to sum the dayId0 inside values, then inside dayId1 and print them on the upper layer in Room. For example, dayId0 will continue as food_kcal_sum=350 and dayId1 food_kcal_sum=45. How should I create a loop for this?

    [ { "dayId": 0, "food_kcal": 270.0, "id": 1 }, { "dayId": 0, "food_kcal": 60.0, "id": 2 }, { "dayId": 0, "food_kcal": 20.0, "id": 3 }, { "dayId": 1, "food_kcal": 15.0, "id": 4 }, { "dayId": 1, "food_kcal": 30.0, "id": 5 } ] 
    submitted by /u/emptyfiles
    [link] [comments]

    Bit coin wallet integration.

    Posted: 21 Feb 2022 11:45 PM PST

    How can i integrate bitcoin wallet in my android application.( sending and receiving bitcoin in a decentralized manner.)

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

    Is it worth to spend all the effort on the current app?

    Posted: 21 Feb 2022 07:47 PM PST

    I was wondering if it was worth to spend the majority of my efforts on a recently released app of if it's more viable to focus on future projects.

    My app doesn't have that big of a user base and I wanted to know if it's possible that it reaches a significant amount of downloads if I keep working on it, improve it, add more content.

    If I understand it correctly, Google gives better chances to newly released apps, so is it still possible to hit the top rankings even though the app was released months or even years ago?

    I'm starting to work on other projects in the meantime and I have no plans to let my current ones die, but I wanted to know if I should put most of my efforts in the future apps as the current ones have no chances to succeed anyway.

    Thank you!

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

    What Machine Spec do big companies provide to their Android/Mobile developers?

    Posted: 21 Feb 2022 11:21 PM PST

    Hi All, I wonder if there's any way for us to know what machine spec major companies (e.g. Google, Apple, Meta, Amazon, Uber, Airbnb, Square etc...) provide to their mobile developers?

    Is there a standard machine spec for mobile development (today)? Especially when one does code on Android, but also occasionally works on other platforms (iOS, Backend)?

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

    Bitcoin wallet integration.

    Posted: 21 Feb 2022 11:19 PM PST

    I want to integrate Bitcoin wallet in my android Application.( in a decentralized manner - send and receive bitcoin).

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

    Should I release it myself?

    Posted: 21 Feb 2022 10:33 PM PST

    A friend of mine approached me to make an app for his newly built start-up as a freelance work. They make iot devices and were looking to make an app to communicate with such devices. I designed a custom protocol with a custom layer of cryptographic signing with messages sent over WebSockets. Also I had build a custom websocket server also to go along with the system. They were ok with this at first. I being a new to this whole freelancing thing just charged them around $200 only (This is actually a great deal of money for a college student where I am from). Well, the thing is his partner (who doubles down as the sole investor of their company) wasn't convinced. They are now asking for a better interface, and to remove my custom protocol and replace it with MQTT for the same price.

    Their point of arguments are:

    - Iot systems mostly work with MQTT protocol

    - The app doesn't seem professional enough

    They agreed to pay me if I fixed the above issues. But I was thinking at this point if it would be better to put in all the extra work and release the app myself? They haven't signed a contract or payed an advance. Also they don't have any of their IP in this. If I released the app myself, it would serve as a platform to interact with Iot devices using MQTT.
    Will people actually buy such an app If I were to release it as a paid app with no ads?

    Or should I continue to work for them for the same price? (They also agreed to make the contract formal, with an certain % paid in advance if I continue.)

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

    Updating data in Room in form input project

    Posted: 21 Feb 2022 10:09 PM PST

    I am a beginner in android dev and I was working on this project where I take input using various views such as spinner , text view , switch etc. And then I am storing it in room for persistence. I followed the architecture components from https://developer.android.com/codelabs/android-room-with-a-view-kotlin#0.

    But then I thought of a case where suppose a user enters a name which is already there in my database but now I want to replace the already existing data corresponding to that name with the data that my user is currently entering. I thought that in my Dao.kt I can just use onConflictStrategy.REPLACE . What is the right approach for this?

    submitted by /u/13hercules
    [link] [comments]

    If you had to start again

    Posted: 21 Feb 2022 09:30 PM PST

    For more experienced devs here, what's the the one thing you wish you knew when you started android development? I started diving into android dev only a couple weeks ago with the official code labs and those were pretty great to give a general overview of common concepts and tools. Any advice regarding best practices, quirks to be aware of, etc?

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

    Is it possible to create a more advanced TextField in Jetpack Compose? (i.e. with a rope data structure)

    Posted: 21 Feb 2022 09:05 PM PST

    I'm trying to make a JSON code editor that can edit text with syntax highlighting, indentation, and other features. I'd love to have something like JetBrains codeviewer but editable.

    I'm hoping to use a rope data structure to store tokens as well as highlighting and other metrics. But looking through the docs, it seems the easiest solutions are with BasicTextField or TextField using a string for input.

    A keyboard input handler that inserts and edits the rope might also work but seems incredibly complex (IME events, text selection, and other issues).

    Is it possible to create a custom text input that works with these more advanced features?

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

    How to use navController inside ViewModel?

    Posted: 21 Feb 2022 06:17 PM PST

    I want to decide where to navigate between fragments based on some information inside ViewModel. However findNavController requires fragment instance, which i shouldn't pass to VM. What is the best workaround for this? There is a simple single if else branch and i don't want to overcomplicate the solution. Please help newbie.

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

    How is it possible for an app to show in GetApps (Xiaomi's own app store) when it is published only in Google Play Store?

    Posted: 21 Feb 2022 05:36 PM PST

    I have never published apps to other app stores. But a lower version of the app is showing in GetApps app in Xiaomi phones. I have an API to check for updates & if update available I show an alert which is supposed to open Play Store page of the app using intent.setData(Uri.parse("market://details?id=" + context.getPackageName())); but in Xiaomi devices it still redirect to GetApp page of the app.

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

    Want to learn how to code in Android Studio

    Posted: 21 Feb 2022 04:05 PM PST

    Hello,
    I'm first year student and I've been writing Java code for about 4 months now, mostly using IntellijIDEA, and no other framework. I would know like to learn how to develop an app using Android Studio. Any guides that you might recommend ?

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

    Beginner Trouble with Adapter and recycler views

    Posted: 21 Feb 2022 03:23 PM PST

    Can someone share a link or help understand what is going on with adapter's boiler plate code. And how it is linked with recycler views. I am very confused. Are they two different things going hand in hand? Or is it like recycler views use adapters?

    It is going way above my head.

    Please. ELI5 Adapters

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

    Riddle: Why is google bot removing my app from google play?

    Posted: 21 Feb 2022 09:16 AM PST

    I have an app com.mw.applockerblocker that protects other apps from unauthorized opening. It worked fine for 1 year, and after this year my app was removed. I've got email from google with text:

    "Publishing status: Removed Your app was removed from Google Play and won't be available to users until you submit a policy compliant update. Eligibility Issue: DEVICE ADMIN ABUSE​ App violates Deceptive Device Settings Changes policy".

    Ok, I've removed Device Admin permission and all the features associated with it and uploaded new version. After that I've received email:

    "Publishing status: Removed. Your app was removed from Google Play and won't be available to users until you submit a policy compliant update. Eligibility Issue: DEVICE ADMIN ABUSE​ App violates Deceptive Device Settings Changes policy".

    I've wrote to Google Play policy team and got the answer:

    "Thanks for contacting the Google Play team.

    During review, we found that your app Lock N' Block - App Protector and Blocker, (com.mw.applockerblocker, APP Bundle Version: 45) violates the deceptive device settings changes policy.

    You must explain to users why you are requesting the 'android.permission.BIND_ACCESSIBILITY_SERVICE' in your app. Apps must provide accurate disclosure of their functionality and should perform as reasonably expected by the user. Any changes to device settings must be made with the user's knowledge and consent and be easily reversible by the user."

    I've answered that my app has all required disclosures for BIND_ACCESSIBILITY_SERVICE

    Next email from Google Play policy team:

    "Thanks for your response. As mentioned previously, your app is currently violates the deceptive device settings changes policy as your app (App Bundle Version: 45) is requesting the 'android.permission.BIND_ACCESSIBILITY_SERVICE'. Please note that we don't allow apps that make changes to the user's device settings or features outside of the app without the user's knowledge and consent. Therefore, if you need the BIND_ACCESSIBILITY_SERVICE permission in your app, you must implement a prominent disclosure asking users to enable this permission within your app.

    The disclosure must meet each of the following requirements:

    Disclosure must be displayed in normal course of usage of your app. Your users should not be required to navigate into a menu or settings to view disclosure.

    Disclosure must describe the functionality Device Admin permission is enabling for your app.

    Each security policy used with the Device Admin request must be declared in your disclosure, and each policy must be accompanied with justification for the request.

    Disclosure cannot only be placed in your privacy policy, TOS or EULA."

    In first part of their email there are writing about BIND_ACCESSIBILITY_SERVICE, in the second part of email: "Disclosure must describe the functionality Device Admin permission".

    Who's Crazy Me Or Them?

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

    Hey guys, checkout this android library that reduce your efforts to write recyclerview adapters. Dont forgot to give it a star ��

    Posted: 21 Feb 2022 05:07 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel