• Breaking News

    [Android][timeline][#f39c12]

    Saturday, April 2, 2022

    A new TreeView implementation with customization and no custom view Android Dev

    A new TreeView implementation with customization and no custom view Android Dev


    A new TreeView implementation with customization and no custom view

    Posted: 01 Apr 2022 08:25 AM PDT

    A new TreeView implementation with customization and no custom view

    Hello everyone, I have created a new treeview library that provides many features and customization with no need for any extra custom view, just a Recyclerview

    Github: https://github.com/AmrDeveloper/treeview

    Features:

    - No Custom Views.

    - Easy use, customize and extend.

    - Support any number of roots.

    - Can use a different design for each node.

    - Selection mode for nodes.

    - Dynamic adding and removing nodes.

    - Don't save a reference for the view holder in each node.

    - Can handle a large number of nodes without problems.

    - Providing on click and on long click listener nodes.

    - Easy to override any operations by override `TreeNodeManager`.

    - Collapse and Extend node and node branch.

    - Collapse and extend nodes by level.

    - Collapse and expand all nodes.

    - Can perform 2D scrolling without custom layout.

    Demo:

    https://i.redd.it/qav5k5lfqxq81.gif

    https://i.redd.it/bio8lwqlqxq81.gif

    https://i.redd.it/x4q2jpbnqxq81.gif

    The intent is to improve this library to be general and customizable so if you have any suggestions or ideas, you are most welcome to share them and write feedback

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

    Is there an open directory for pre-trained TensorFlow models?

    Posted: 01 Apr 2022 10:01 PM PDT

    Something like https://android-arsenal.com/ for OSS Android libraries.

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

    Leveraging the Semaphore concept in Coroutines to limit the parallelism 🔀

    Posted: 01 Apr 2022 05:59 AM PDT

    Play Store account closed and can't find any option to create a new one

    Posted: 01 Apr 2022 03:39 PM PDT

    Today I logged in to the Play Console to get some keys for enabling IAPs in a Unity game I'm working on and was greeted with this message in the dashboard:

    Status: Account closed
    Closed: 20 Oct 2021, 14:22
    Details: This developer account has been closed due to inactivity, and can't be reactivated.

    We've sent more information to the account owner's email address.

    To be completely honest, I wasn't really that much surprised, because I hadn't touched my account for several years, however I kinda need it now. I know it says it can't be reactivated and that's cool, I'm okay with paying the fee again. But I can't seem to find any option or link to create a new account.

    I can't do anything in the Console as everything is grayed out and if I click switch profile, it only shows that one closed account in the list and no option to create a new one or anything like that.

    Have anyone had their account closed for inactivity as well? Any idea how to proceed if I want to create a new account? Do I have to create an entire new Google/Gmail account, or is there a way to create only the new Play account using my current Google account?

    BTW: Before someone suggests it, yes, I already contacted support via some online form I found (and don't even get me started on how f\cking difficult it was to find the contact form - all of Google's customer support seems to be self-help knowledge-base/FAQ based with any contact info/form obscurely hidden behind several layers of menus and interactive questions... I want help, not a f*cking scavenger hunt!))

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

    what's the coroutines alternative for rx zip with multiple suspend functions? async await?

    Posted: 01 Apr 2022 06:42 PM PDT

    I'm moving my code to coroutines and I'm wondering what's the best approach for translating zip from Rx as I have a zip with 4+ sources.

    so far the only thing I can think of is a series of async/await

    any better idea?

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

    Android jetpack compose conditional navigation

    Posted: 01 Apr 2022 01:50 PM PDT

    Hello peeps. I am quite newbie with android development have nice experience with JS and React Native. If I look into rn and conditional navigation I would set some hook and my navigation would based on value that hook provide load authstack or main stack. Trying to apply something similar now in android project. Problem is that in android I want to keep and follow good architectural patterns and I do not know how to properly do it. I setup data store and after user log in I would set this boolean in data store to be true. Now question is should I make some kind of reactive stream and where to connect this boolean with navigation so it is clever enough to go to main screen. Same with logout to go back to auth screen. Tried different example and documentation but can not find something that answers my question.

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

    DSU will receive new features and notable improvements in Android 13

    Posted: 01 Apr 2022 10:41 AM PDT

    Compose - NavHost recomposition multiple times

    Posted: 01 Apr 2022 12:13 PM PDT

    During navigation from Navhost, I found out that the composable screens are getting recomposition multiple times. Because of it, my ViewModel is calling API data source multiple times too.

    Is there a way to handle it? I mean, I know it's how Android Compose works. But, How can I handle an API call inside a navigation screen?

    @Composable fun MainView() { val scaffoldState = rememberScaffoldState(rememberDrawerState(DrawerValue.Closed)) val scope = rememberCoroutineScope() val navController = rememberNavController() Scaffold( scaffoldState = scaffoldState, topBar = { TopBar( toolbarTitle = stringResource(id = R.string.app_name), scope = scope, scaffoldState = scaffoldState ) }, drawerContent = { DrawerView(scope = scope, scaffoldState = scaffoldState, navController = navController) }, ) { NavGraph(navController = navController) } } @Composable fun Navigation(navController: NavHostController) { NavHost(navController, startDestination = NavDrawerItem.Repositories.route) { composable(NavDrawerItem.Repositories.route) { RepoListView(getViewModel()) } composable(NavDrawerItem.EmojiList.route) { EmojiListView(getViewModel()) } } } class RepoListViewModel( private val repositoriesUseCase: GetRepositoriesUseCase ): ViewModel() { init { getRepositories() } @Composable fun RepoListView(viewModel: RepoListViewModel) { AppTheme { RepoListContent(viewModel) } } 
    submitted by /u/Bitter_Level_1076
    [link] [comments]

    Is there reason for concern when developing for Android Systems-on-Modules?

    Posted: 01 Apr 2022 02:06 PM PDT

    I was curious about the idea of making my own embedded Android device using a Variscite SOM to solely run my Android application in Lock Task Mode. However, referencing the Android SDK License Agreement, I see that usage of the SDK is restricted "solely to develop applications for compatible implementations of Android" (section 3.1), where a "compatible implementation" is any Android device that complies with the Android Compatibility Definition document and passes the Android Compatibility Test Suite. In section 3.2, the license continues to say that the SDK cannot be used "to develop applications for other platforms (including non-compatible implementations of Android)..."

    I asked a sales rep at Variscite whether their SOMs meet these two criteria for "compatible implementation." He said, "The NXP Android release which our Android release is based on doesn't have the CTS test passed. If you choose to go with Android OS, you will need to have the certification by yourselves...NXP doesn't provide a full CTS report whether it passes CTS or not."

    Because I've never had to deal with CTS/device compatibility before, I'm unsure how extensive the process of testing and certifying compatibility would be for the embedded device. If anyone here has any experience with this sort of work (whether or not it's with Variscite SOMs), I'd appreciate any advice!

    Also, if the process of certifying compatibility is in fact considerable, one point of uncertainty I had was whether the license agreement means:

    1) any application developed using the Android SDK must be developed to run on all "compatible implementations," and if the application also happens to run on a/multiple non-compatible implementation(s), that still wouldn't be an issue, or

    2) if the application developer knows that the primary use of the application will be for a non-compatible implementation of Android, that would be a violation of the license agreement.

    For example, my application uses the SDK and was initially created for/is fully functional on regular, commercial tablets (verified compatible implementations). Would I be in noncompliance with the License Agreement if I now decide I want to use that exact same application on my own custom Android device that may not be a "compatible implementation"? Would the answer to this question be different if one entity developed the application and a completely separate entity developed the hardware?

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

    AUTOMATE USSD REQUESTS

    Posted: 01 Apr 2022 03:14 PM PDT

    Hi,

    Am About to develop a mobile that automate USSD{\123*12*2#} requests, get the response of the *USSD** request and forward it back to the server.

    Actually The way things is meant to work is this, A user on our website makes some request and the server sent a payload containing the USSD CODE to any of our available device and the device is meant to run the task immediately and sent a response back to the server,

    FYI

    • Connecting To The Telco Api Directly Is Not An Option Yet As It is Not Made Public At The Moment.
    • No Plans Of Publishing The App To The Playstore or Any App Store As it task is To Act As a SERVERfor processing The Said USSD codes.
    • Also while we have couples of device the server can send the push to, each device without any doubts will still have to run at least 1000+ USSD code per day.
    • No plans of using IOS DEVICE the Approach is only To Android Devices.

    All Suggestions is appreciated, If there is any approach to running USSD CODES ON SIM CARDS and an Api Requests Can Be Made To it Without Having To Use A DEVICE That is also Appreciated.

    WHAT WILL NEED HELP WITH

    1. Approach to Solve this and make the transaction seamless,
    2. Best Way To Keep The App From Sleeping As The Device Might Have To Termiate it to save Battery
    3. How To Keep The FCM connection Between The Device Active.
    4. How To Handle If A Device Get More Than 1 request at a time Which is Very Possible.
    5. Select the sim card to send the USSD CODE with.Thanks in Advance.All Suggestions Is High Accepted.
    submitted by /u/Timi4real18
    [link] [comments]

    A few questions about developing an Android launcher

    Posted: 01 Apr 2022 05:44 AM PDT

    I am starting to explore the world of Android launchers so I am a bit new to this. So sorry if I ask too basic of a question

    I want to know if it is possible to distribute an Android launcher outside of the Google Play store similar to how you are able to distribute APKs. Or does Google control that end experience?

    Can you also bundle apps with your Android launcher? Let's say if you are launching a custom launcher for productivity-focused users, can you write a note-taking app and bundle it with the launcher?

    I'd appreciate answers to these questions and thank you to those who do answer! :)

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

    how to implement a event listener in my Forground service and keep it running 24 /7?

    Posted: 01 Apr 2022 08:43 AM PDT

    Hello there. I created a Forground service and i want it to detect if the user copy any text then do perform some actions after it and i want it to stay running 24/7 to detect any copy event until the user kill the service from the app... I tried to use addPrimaryClipChandedLister{} after the start Forground function in onStartComand with start sticky. And from what i have noticed . If i don't do any copying the Forground service will last but as soon as i open for example Instagram it killed and recreated cause of start sticky and some times it doesn't even recreated. And when i do some copying at least once it will not last and killed after few minutes... I don't know if that has a relationship with the server lifecycle or other reasons. Im thinking of using a periodic worker to restart the server every 1 min or to find any better and practical solutions from you guys

    Thanks in advance

    submitted by /u/OutOf-void
    [link] [comments]

    Weekend Mobchallenges | Build kids Location Tracking App

    Posted: 01 Apr 2022 04:53 AM PDT

    Weekend Mobchallenges | Build kids Location Tracking App

    #mobchallenges

    Are you looking for a weekend challenge for #AndroidDev, This is the "kids Location Tracking App" check details https://mobchallenges.web.app/

    https://preview.redd.it/y7lpxqkfpwq81.png?width=1920&format=png&auto=webp&s=ab7fa7ef9759392e24411bda127ef12d3a7d4d32

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

    Is it possible to remove an app and publish the same app with same package name from the same developer account?

    Posted: 01 Apr 2022 04:51 AM PDT

    I developed an app as a practice few months back and published in play store. Now i have made some serious changes with the app like adding more entities and columns and i've forgot to migrate the Room Database. Now the app won't open when downloaded. Frankly I don't know how to migrate that much changes in the first place. Considering the existing app don't have any users at all. I would like to remove it and re upload the new updated one as version 1. Is is possible? Will this cause any problem for my developer account? I have read many developers account getting terminated due to app duplication or something similar and I'm afraid the same might happen.

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

    What's the best way to implement & use a custom TopBar

    Posted: 01 Apr 2022 04:14 AM PDT

    The problem

    The UI/UX agency wanted a simple custom TopBar for the app that we are building, and I am tasked with refactoring our old implementation. We already have a lot of screens, most of which only need to be able to change the title and display a back button (some only require a title, though). A few of them also need to display a subtitle, a download button etc. We also have a few BottomDrawer pop-ups in some screens, so we need to be able to "gray" out the content of the screen (default BottomDrawer behavior), as well as the TopBar. All this got me wondering what's the "best" way to go about implementing and using a custom TopBar while following best-practices and maximizing the reusability of the component.

    My idea

    I was thinking about creating a reusable composable that will accept a required title parameter, and then the rest (subtitle, back button, etc.) will be optional (the back button which would be using a default callback that will call popBackStack). As far as other TopBar actions go, I'm not sure how to go about it. Should I create separate TopBar types based on the different things that different screens will be doing?

    For example, we have a screen where you can download some files and the only requirement as of right now is to display that icon and make it intractable. What if this changes in the future, and they need a progress bar up there? What's the best way to cover such cases in order to be "future-proof"?

    Would it be preferable to have a single TopBar with optional parameters like above, but somehow have a vararg list of optional action composables that would be passed by the caller in order to specify both the look & functionality (like with Slots)?

    As for graying out the TopBar, putting the content, the TopBar and the Popup calls inside a Box in the right order seems to achieve this functionality just fine. If there is a way to improve upon this somehow, I'm all ears, of course!

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

    this won't go away.

    Posted: 01 Apr 2022 12:57 PM PDT

    Looking for experienced Android Developer New Project

    Posted: 01 Apr 2022 11:33 AM PDT

    Hey, I'm looking for experienced android developer for building a small app. I'm looking for someone with good designing, developing skills and language java/kotlin prefer. Please send me list of apps you build.

    Thanks

    Edit: My budget is in between CAD1000 - 2000 depending on skills.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel