• Breaking News

    Thursday, November 26, 2020

    Android Dev - Most of the Fragments documentation has been rewritten!

    Android Dev - Most of the Fragments documentation has been rewritten!


    Most of the Fragments documentation has been rewritten!

    Posted: 26 Nov 2020 03:33 AM PST

    Does this seem fun to you ?

    Posted: 25 Nov 2020 03:19 PM PST

    Plant Shop Android Studio UI 2020

    Posted: 25 Nov 2020 10:26 PM PST

    Is it possible to recreate a DocumentFile folder from a previous URI?

    Posted: 26 Nov 2020 04:59 AM PST

    If we create a DocumentFile using the tree URI returned from ACTION_OPEN_DOCUMENT_TREE.

    DocumentFile dir = DocumentFile.fromTreeUri(context, treeUri); 

    And then create a sub directory

    DocumentFile subDir = pickedDir.createDirectory("example"); Uri uri = subDir.getUri(); 

    Is it possible to recreate the sub directory using the above URI? Not having a lot of joy and I'm trying to avoid using findFiles...


    EDIT: Figured it out, you have to use DocumentsContract.createDocument() with the URI of the previously created directory

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

    Native app vs react native app

    Posted: 26 Nov 2020 04:46 AM PST

    I have my store on CS-cart and they provide a react-native app for purchase. It looks and feels fine (you can check it out here https://apps.apple.com/us/app/multi-vendor-app-by-cs-cart/id1304872157 and https://play.google.com/store/apps/details?id=com.simtech.multivendor) but after reading a lot more into react native architecture (Bridge serialization and only being able to use 1 main thread) I am concerned it will limit us when we scale.

    We currently have live 6000 SKUs (a lot more products that are turned off/not available). Flutter seems to be better performance wise but it uses Dart which is really niche as of now and the the technology/community has yet to be given time to mature. The 2 options seem to be native vs React Native. Before spending bucks I just want to make sure I am spending money on the right thing. I have 2 questions.

    Is react native right for us (being an e-commerce store, do we need that performance - running multiple threads and so on that comes with native apps)? AND

    What are the fundamental limitations and differences to native apps apart from what I mentioned? (every article keeps saying react-native good or bad but the limitations haven't been elaborated on. I noted something about notifications but it wasn't clear. What are other fundamental limitations)

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

    admob limit and looking for alternatives

    Posted: 26 Nov 2020 07:58 AM PST

    hello guys , i was suprised to find out that admob limited ads on my game. i want you to tell me if there are a better aleternatives ? and which ones do you recommend ?

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

    Stylus API

    Posted: 25 Nov 2020 10:10 PM PST

    Hey,

    on iOS iPad users can double tap their pencil to trigger some action, for example toggle between pencil and eraser in Notes app.

    Is it similar on Android? Obviously we have many vendors producing different tablets and different styluses, but is it a common gesture?

    I tried to browse documentation but couldn't find any obvious delegate/callback triggered when such an action occurs, perhaps I need custom SDK for every major pencil manufacturer? I hope not.

    Appreciate feedback!

    submitted by /u/marcus-jaco
    [link] [comments]

    Auto-sync Gdrive apps

    Posted: 26 Nov 2020 05:20 AM PST

    Turning sync on and off is annoying for some Google accounts. How can you automate this so some accounts are scheduled to not sync on the weekends?

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

    How to reduce the size of the filesystem image when taking Android emulator snapshots?

    Posted: 26 Nov 2020 02:40 AM PST

    Hi there!

    We are trying to automate the creation of snapshots for testing our application. We may create up to 10,000 snapshots. The snapshot images are stored in S3 and pulled when needed. For the sake of testing, we created 100 snapshots. We noticed that the `~/.android/avd/Test.avd/userdata-qemu.img.qcow2` file quickly bloated to 32 GB! From what I understand, this is the virtual disk where the files of the AVD are stored. If I am right, this would bloat to 300+ GB for 1000 snapshots and 3000 GB for 10000 snapshots.

    Can someone please answer the following questions. It would be really helpful!

    1. Why is this file bloating?
    2. Is there a way to split this file into multiple parts such that we can pull only the necessary data when loading a snapshot?

    Thank you for your time!

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

    AsyncTask deprecated - any experience with the alternatives ?

    Posted: 25 Nov 2020 10:41 PM PST

    Probably like many of you, I am using quite a few AsyncTasks in my apps. Some are running for a few seconds only and some others could be running for half a minute or longer.

    I am using them for Internet communication as well as for performing calculations. Some of these tasks are running in the background, so the user can't see them. Some others are showing dialogs with progress bars.

    In the next couple of weeks I'd like to change my AsyncTasks to using non-deprecated task functions and I am wondering if some of you have already gained some experience with that.

    submitted by /u/ms-app
    [link] [comments]

    Transitioning from Flutter to KMM

    Posted: 26 Nov 2020 02:26 AM PST

    I have been learning and developing mobile apps using Flutter since May. I chose to begin with Flutter because my seniors suggested that it made development faster, good UI can be built easily, and Dart is simple to understand if one knows JS.

    Flutter felt good until it was time to use native features like using camera or Bluetooth. Also, state management took a lot of effort. Apart from that, I didn't find usage of Dart other than in mobile apps. As a sophomore, using Dart did help in improving OOP concepts but just that.

    Then I came across Kotlin. I recently read about JetPack Compose being released by Android for building UI. I really want to switch to Kotlin because of this as I didn't like using XML while trying out Java for Android.

    Though Compose is new, does it look promising to those who have been developing in Kotlin? For someone like me who has used Flutter, how do I get started with learning Compose?

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

    Easy Custom Keyboard with InputConnection

    Posted: 25 Nov 2020 09:17 AM PST

    Flutter: Push, Pop, Push-Full explanation

    Posted: 25 Nov 2020 10:17 PM PST

    Disable IPv6 over wifi?

    Posted: 25 Nov 2020 05:50 PM PST

    From what Im reading in forums and see in phone settings, disabling IPv6 is only possible over cell data and not over wifi. Id shut off IPv6 on the router if I had access to it, but in Colombia and with these ISPs, they dont allow access to their equipment...

    Phone is a Moto One unrooted

    XT1941-3

    Android 10

    Thinking about flashing to a stock ROM, but dont want to brick this cell. Does anyone care to point me in the right direction?

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

    Testing App Startup Performance

    Posted: 25 Nov 2020 01:31 PM PST

    Question about video streaming in my app

    Posted: 25 Nov 2020 08:19 PM PST

    Is it a play store violation , if I download some youtube videos and host them in my server and stream them within my app??

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

    Which Cross-Platform App Development Would You Prefer? Flutter V/s. React Native!

    Posted: 26 Nov 2020 04:34 AM PST

    ADB Bloatware Uninstall Safe List for Samsung, Verizon and Google apps (Galaxy A50)

    Posted: 25 Nov 2020 11:16 PM PST

    I've been using ADB to debloat my Galaxy phones for a couple of years now. The thing is, I've had some difficulty in finding reliable information on which system apps are safe to uninstall. Opinions and posted "safe" lists always differ, if not outright incorrect, so I've had to rely on a little common sense and a lot of trial and error when it comes to deciding which system apps to uninstall. Let's just say that I'm no stranger to the factory reset.

    Anyway, does anyone know of a better way to go about this? Are there some tricks or something that I'm missing? I have some high powered apps to get quite a bit of information about these system apps, so are there things that I can look for to signal that it's either safe or not to uninstall?

    I'm not interested in rooting, but very interested in dumping as many Verizon, Samsung and Google system apps as possible. Especially Google.

    Thanks!!

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

    Everything You Need to Know About Android 11

    Posted: 26 Nov 2020 01:03 AM PST

    Everything You Need to Know About Android 11

    Google rolled out a new update on Android 11. After announcing back in February and having a Beta roll out in June, finally, the newer version for Android smartphones and tablets is here. The new version of OS brings a variety of new features to the mobile operating system. Here is some new feature update. Read Article Here

    https://preview.redd.it/z0q1ovd4vj161.jpg?width=1024&format=pjpg&auto=webp&s=e455a04fdaabc5a6fd0316d2b24a313cb53d5993

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

    What does "EU VAT Invoice" in the Google Play Payment Settings exactly refer to?

    Posted: 25 Nov 2020 10:53 AM PST

    In the Google Play Console under Settings -> Developer Account -> Payment Settings -> View Transactions, and Documents I can download a document called "EU VAT Invoice" for each. What does this document mean? I have attached the latest EU VAT Invoice document (I have attached an example).

    My business is registered in the EU (Germany) so my tax consultant thinks this is related to the 30% service fee which Google keeps for every purchase. But if the invoice actually refers to the service fee it must be much higher according to my calculations.

    I have contacted Google Play Console Support twice but they are no help either (surprise 😐). They either keep referring me to this site https://support.google.com/googleplay/android-developer/answer/138000?hl=en or telling me to ask my tax consultant, which I did but neither the document nor the title of the document clearly tells what this invoice refers to.

    Does any developer, especially those with an EU registered business, know what the hell this invoice refers to? I would appreciate any hint.

    EU VAT Invoice - Page 1

    EU VAT Invoice - Page 2

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

    Resources for Android Best Practices

    Posted: 25 Nov 2020 12:23 PM PST

    Where do you learn best practices for organizing code?

    I do horrible things like stuffing way too much logic inside of the view holder. My view holder is becoming a monster monolith but I don't know how to make it better :(

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

    Switching the API used in an app? Anyone here done it easily?

    Posted: 25 Nov 2020 12:15 PM PST

    I effectively have a RecyclerView "frame" for storing the information I get from NewsAPI. Right now, I'm trying to remove NewsAPI and use a different API and make requests to that instead, so instead of a RecyclerView of news stories it's a RecyclerView of video games, or books, or whatever.

    Has anyone ever done something like this? And if so, has anyone ever done it without either completely gutting their app or just building a new app entirely?

    Thanks in advance.

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

    No comments:

    Post a Comment