• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, May 31, 2022

    Subreddit for OS level dev? Android Dev

    Subreddit for OS level dev? Android Dev


    Subreddit for OS level dev?

    Posted: 31 May 2022 03:37 PM PDT

    Sorry, looking for help with modifying of ramdisk and repacking kernel.. Maybe a related subreddit to post to? thanks

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

    Google Play sanctions against Russia - update of already purchased app

    Posted: 31 May 2022 03:33 AM PDT

    Hi,

    as part of the sanctions against Russia, Google disabled ability to purchase paid apps or activate subscription for users in that country. This was communicated allright by Google to both developers and I guess also to Russian users.

    In second wave they also disabled ability to update already purchased app as briefly described here:
    https://support.google.com/googleplay/android-developer/answer/11950272

    Now, we in our company of course hate this war and as developer of global apps using both subscription model or initial one-time payment, we don't mind to sight off all revenue from that country.

    But we don't get how Google handled that "second wave" sanction. First, I don't understand what kind of sanction is, that Russians can't update already purchased app. But the worse thing is, that according to our experience, users don't have any clue that it is because of Google decision and blame us for everything, so we just get new and new 1-star reviews from them and hate all over our helpdesk that we steal their money.

    What are you experience with this?

    We tried to remove our paid app from GP completely by removing RU in GPC>Production>Countries/regions , but for some reason it is still visible on RU Google Play, so hate continues. So not sure how to handle this problem and can't find anything more about this topic than on the link above.

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

    Can someone explain to me why Official Android Docs use String Resource Strings to access Shared Prefs?

    Posted: 31 May 2022 05:04 PM PDT

    Needed to hack together a proof of concept for something (services related) and so I just decided to use shared prefs to save/pass the value I needed... and so I googled it real quick to see best practices (incase you know... 'something' changed that I wasn't aware of)... and I found this, and I'm really confused as to why it is using string resources for getting the string to use to save the value...

    https://developer.android.com/training/data-storage/shared-preferences

    I could understand if it was something like Notifications channel name/desc, that are actually buried deep in the settings, etc... but I don't see any way in which these strings would be made public.

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

    Practical Compose Slot API example — laying out screen sections

    Posted: 31 May 2022 08:41 AM PDT

    Realistic sophisicated samples of UI testing?

    Posted: 31 May 2022 05:14 PM PDT

    I'm new to UI testing and have the basics down. However, I'm transitioning beyond the basics and working on how to write tests nicely and using mocking for the network layer.

    Are there any good realistic samples out there which use:

    • Kaspresso/Kakao/Barista/Robot pattern or some kind of nicer way to write UI tests without directly using Espresso
    • Mock Web Server, OkReplay or something else that handles networking

    A lot of stuff I see out there are basic, but I'm at the point now where I'm using more sophisticated tools for a project I'm working on.

    My concern is that the way our tests are architectured (in particular the networking) isn't easy to change to customise different responses for different tests.

    I was hoping if there was some good example out there that I can take some inspiration from, which I can try to implement in this project.

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

    Spinner chooses when to start a recycleriew with cardview problem

    Posted: 31 May 2022 04:57 PM PDT

    Guys i have a spinner and shows 7 things. So on item select i choose for example 4rth option of spiner and inside an if(i==3) i execute its code. The code says make for example an api call or something and save data on a local array or something like that and then i call the recycleview to display these items. So if i click another option like i==2 then the same recycleview ll be called but different data will be displayed on the same recyclerview. So this is the problem sometimes it crashes and sometimes nothing.

    package com.example.recyclerview_cards; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.Toast; import java.util.ArrayList; public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener { private RecyclerView mRecyclerView; private RecyclerView.Adapter mAdapter;//Bridge between data and image/ arrayList and RecyclerView private RecyclerView.LayoutManager mLayoutManager;//allign single items in our list @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Spinner Spinner spinner = (Spinner) findViewById(R.id.spinner); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.planets_array, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapter(adapter); spinner.setOnItemSelectedListener(this); // //RecycleView // ArrayList<ExampleItem> exampleList = new ArrayList<>(); // for(int i=0;i<50;i++){ // String tmp="Text: "+i; // String tmp2="Text: "+(i+1); // exampleList.add(new ExampleItem(tmp, tmp2)); // } // // mRecyclerView = findViewById(R.id.recyclerView); // mRecyclerView.setHasFixedSize(true); // mLayoutManager = new LinearLayoutManager(this); // mAdapter = new ExampleAdapter(exampleList); // mRecyclerView.setLayoutManager(mLayoutManager); // mRecyclerView.setAdapter(mAdapter); } @Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { String text = adapterView.getItemAtPosition(i).toString(); Toast.makeText(adapterView.getContext(), text, Toast.LENGTH_SHORT); Log.d("TAG", String.valueOf(i)); if(i==0){ //RecycleView ArrayList<ExampleItem> exampleList = new ArrayList<>(); for(int j=0;j<50;i++){ String tmp="Text: "+j; String tmp2="Text: "+(j+1); exampleList.add(new ExampleItem(tmp, tmp2)); } mRecyclerView = findViewById(R.id.recyclerView); mRecyclerView.setHasFixedSize(true); mLayoutManager = new LinearLayoutManager(this); mAdapter = new ExampleAdapter(exampleList); mRecyclerView.setLayoutManager(mLayoutManager); mRecyclerView.setAdapter(mAdapter); } if(i==1){ } if(i==2){ } } @Override public void onNothingSelected(AdapterView<?> adapterView) { } } ............................................................................... //xml not needed to show it here though 

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">

     <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="400dp" android:layout_marginStart="1dp" android:layout_marginTop="1dp" android:layout_marginEnd="1dp" android:layout_marginBottom="1dp" android:scrollbars="vertical" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Spinner android:id="@+id/spinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="420dp" /> </RelativeLayout> 
    submitted by /u/No-Sleep-9475
    [link] [comments]

    Writing less code in Fragments !

    Posted: 31 May 2022 04:39 AM PDT

    Writing less code in Fragments !

    what's the right way to approach clean minimal code in activities

    if you had a fragment full of long coded functions such as this animation function

    https://preview.redd.it/7c5g54l0ts291.png?width=695&format=png&auto=webp&s=7b452ade64870f49fc35a24039b737e03c18139e

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

    Compose versions + Libraries with Compose

    Posted: 31 May 2022 04:16 AM PDT

    I know that the Compose versions are bound to a Kotlin version. But what happens if I include some libraries with different Compose versions in my App ? Which Compose and Kotlin version do I need to enforce?

    Example:

    • Compose version A1 is bound to Kotlin B1
    • Compose version A2 is bound to Kotlin B2
    • Compose version A3 is bound to Kotlin B3

    Now, I have 2 Libraries included in my App:

    • Library1: is using Compose version A1 / Kotlin B1 inside of the Library as dependency
    • Library2: is using Compose version A2 / Kotlin B2 inside of the Library as dependency

    Can Compose version A3 and Kotlin version B3 be set (enforced) in the app?
    Will be crashes in Library1 and Library2 because of a different Compose version?

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

    #Android QuickTip: Import Samples in Android Studio

    Posted: 30 May 2022 10:51 PM PDT

    #Android QuickTip: Import Samples in Android Studio

    Have you tried File -> New -> Import Samples in Android Studio?

    This gives a boost while learning about Android API level capabilities and APIs.

    Ex: Picture-in-Picture Mode, FIDO2 API

    https://preview.redd.it/eoqknblz2r291.png?width=1470&format=png&auto=webp&s=3f126d6274d3550471ce4af239c6c747879ae6e1

    https://preview.redd.it/8famcm203r291.png?width=1746&format=png&auto=webp&s=7c4ada10d301a9cec0d0cc4875d279dfbc893d0b

    Try once :)

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

    Tablet with USB 3.0 OTG?

    Posted: 31 May 2022 07:19 AM PDT

    Hello friends, I'm working on a custom hardware accessory to be paired with an Android tablet. I come from hardware-land, am new to being an Android developer. I'm looking to stream data from this hardware accessory to the tablet at ~1GBit/sec. I know that in theory USB3.0 is capable of 5Git/sec but practical rates are much lower, and I'm not sure what Android even supports, let alone specific models of tablet. Anyone here have experience streaming this amount of data to an Android tablet? Is it even possible? Thanks!

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

    How do you search for keywords to use for your app title?

    Posted: 31 May 2022 09:16 AM PDT

    I've never done ASO because I never understood how to do it. I just want to know what are the most common keywords people search for in every language not just English. Is there a way to do this on a PC?

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

    How to handle Accessibility Warnings?

    Posted: 31 May 2022 10:37 AM PDT

    I'm getting lots of warnings about content and navigation elements that are not compliant with assistive technologies like screen readers for the visually impaired. Since Adalo is 'no code' there doesn't seems to be an opportunity to add assistive tags when designing a screen. Has anyone devised workarounds?

    Since my apps are targeted at English Language Learners, they is consciously designed to use visible symbols rather than a lot of text as an aid to THEIR accessibility.

    No doubt others developing with Adalo have received similar warnings. Do people generally ignore the warnings?

    Would adding text that blends with the background or hidden behind an element be an adequate approach?

    It would be nice if each element or action could have a field for inserting assistive tags.

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

    Do Android smartphone cameras have physical IR filter or is it removed in software?

    Posted: 31 May 2022 09:03 AM PDT

    Do Android smartphone cameras have physical IR filter or is it removed in software?

    Because in the Android smartphone I have I can see a remote's IR blink, so it seems like, the camera modules in Android smartphone don't have a physical IR filter but the IR part is removed in smartphone.

    Is this how's it done?

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

    Porting my visual novel to Android. Is it advisable to make a demo and a paid version?

    Posted: 31 May 2022 02:53 AM PDT

    Hi! Looking for some advice on how to properly market/release my visual novel.

    I've spent the last 3 months porting my VN to Android... Took a few hundred hours and a lot of questions and pain, but I'm really happy to finally have most of the grunt work done.

    The game is currently on Steam as a paid game, with a demo. At first I was thinking about just releasing it on mobile for free (with an option to donate), but my current financial decision has taken a major blow, so unfortunately I need to monetize it.

    Should I:

    1. Release 2 apps. A demo version with the first 2 hours (the game is about 10 hours) and a paid version (likely $3.99-4.99) with all chapters unlocked. The paid version doesn't need to import save data, since the only thing it asks is the player name, which I can ask at the beginning of the chapter select. The main point for this is that it would be super easy to do...
    2. Release 1 app with IAP to unlock chapters. The biggest hurdle for this, for me, would be integrating it into Cordova which I use as the container for my Javascript. I'm not sure how to do this. I'm not sure how to call to communicate and call it via the JSON files (how the game is scripted), but I'm sure with enough research and questions I can probably figure it out...
    3. I don't like this option, but use Admob as a banner ad when reading. Again, not sure how to integrate it via Cordova, but I'm sure I can figure it out.
    4. Release one app as a standalone. No free version. Don't like this option.

    Is there anything I'm missing missing? Total noob to releasing on Android, so I welcome any suggestions!

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

    Can I serve only muted Interstitial ads in my app?

    Posted: 31 May 2022 08:27 AM PDT

    Hi,one question please regarding Interstitial ads served through G Admob. Is there a way how to serve only muted ads? I have audiobooks app where is no problem if it sometimes show fullscreen ad but a big problem if the ad is noisy and cant be globally muted. Any experience about that?

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

    I am building an app that requires a user to upload a photo. Is there a way that does not require me to use online libraries?

    Posted: 31 May 2022 05:40 AM PDT

    I would appreciate a link to a tutorial if you have used one before.

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

    Android MVP without RxJava/Dagger

    Posted: 31 May 2022 05:24 AM PDT

    WebView desktop mode not work!

    Posted: 31 May 2022 01:11 AM PDT

    I really really need some help.

    I want to open only one link in desktop mode, so I installed android studio and used the following code but it does not work.

    With other sites it works, but with this one I need no, I also tried with user agent but nothing, probably the site does other checks but the chrome desktop mode works wonderfully.

    Is there any other method I can use? I don't need any special things, just an app that opens a specific link to me in desktop mode, that's enough.

     @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); webView = (WebView) findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient()); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setUseWideViewPort(true); webView.getSettings().setSupportZoom(true); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setDisplayZoomControls(false); webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); webView.setScrollbarFadingEnabled(false); webView.loadUrl(URL); } } 

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel