• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, January 25, 2022

    Weekly Who's Hiring Thread - January 24, 2022 Android Dev

    Weekly Who's Hiring Thread - January 24, 2022 Android Dev


    Weekly Who's Hiring Thread - January 24, 2022

    Posted: 24 Jan 2022 06:00 AM PST

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Link Jetpack Compose Side Effects together for easier to remember what we have

    Posted: 24 Jan 2022 10:48 PM PST

    At @squareeng we ran our Android benchmarks with the MacBook Pro M1 Max and it performed 65% faster than the MacBook Pro with Intel chip from last year! More details in the thread.

    Posted: 24 Jan 2022 12:19 PM PST

    Anyone else having this issue? Play Console App Error, web version works fine

    Posted: 24 Jan 2022 05:36 PM PST

    Is Google Play Console Android App malfunction?

    Posted: 24 Jan 2022 01:25 PM PST

    Is Google Play Console Android App malfunction?

    I always use the Google Play Console Android App to monitor review, earnings, A/B testing, ...

    But, few days back till now, it seems no longer working

    https://preview.redd.it/wdt0borzdpd81.png?width=1080&format=png&auto=webp&s=530c86d598b86e424db279425cfc38ea4e203654

    I was wondering, are you all experiencing the same thing as I do?

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

    Does this mean the end of Play Console?

    Posted: 25 Jan 2022 01:55 AM PST

    LearningApps repo

    Posted: 25 Jan 2022 01:16 AM PST

    Hello! I created this project to study Android development.

    I think that you will benefit from this)

    Keep Learning! Keep Sharing!

    Github repo

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

    I've created "Faradle", a Wordle made completely in Jetpack Compose. It uses Clean Architecture and MVVM pattern and has unit-tests throughout (Open source)

    Posted: 23 Jan 2022 10:46 PM PST

    What's wrong with this resume? Urgently Need feedback as I am constantly getting GHOSTED without any response back.

    Posted: 24 Jan 2022 08:58 AM PST

    Converting AyncTask to RxJava

    Posted: 24 Jan 2022 11:26 PM PST

    I want to download JSON data in the background (within the Service) with the help of Volley library and save it in Room. I was using AsyncTask but am researching if I should use RxJava instead. Can you help me?

    Service

     List<FoodArray> foodsArray = new ArrayList<>(); long start = System.currentTimeMillis(); try { JSONArray jsonArray = response.getJSONArray("DiyetRehberim"); for (int i = 0; i < jsonArray.length(); i++) { JSONObject object = jsonArray.getJSONObject(i); FoodArray foodArray = new FoodArray(); List<FoodUnitsData> foodUnitList = new ArrayList<>(); FoodsData foodsData = new FoodsData(); foodsData.setFoodId(object.getString("food_id")); foodsData.setFoodName(object.getString("food_name")); foodsData.setFoodImage(object.getString("food_image")); foodsData.setFoodUrl(object.getString("food_url")); foodsData.setFoodKcal(object.getString("food_kcal")); foodsData.setFoodDescription(object.getString("food_description")); foodsData.setCarbPercent(object.getString("carb_percent")); foodsData.setProteinPercent(object.getString("protein_percent")); foodsData.setFatPercent(object.getString("fat_percent")); JSONArray jsonUnitsArray = object.getJSONArray("units"); for (int k = 0; k < jsonUnitsArray.length(); k++) { JSONObject unitobject = jsonUnitsArray.getJSONObject(k); FoodUnitsData foodUnitData = new FoodUnitsData(); foodUnitData.setUnit(unitobject.getString("unit")); foodUnitData.setAmount(unitobject.getString("amount")); foodUnitData.setCalory(unitobject.getString("calory")); foodUnitData.setCalcium(unitobject.getString("calcium")); foodUnitData.setCarbohydrt(unitobject.getString("carbohydrt")); foodUnitData.setCholestrl(unitobject.getString("cholestrl")); foodUnitData.setFiberTd(unitobject.getString("fiber_td")); foodUnitData.setIron(unitobject.getString("iron")); foodUnitData.setLipidTot(unitobject.getString("lipid_tot")); foodUnitData.setPotassium(unitobject.getString("potassium")); foodUnitData.setProtein(unitobject.getString("protein")); foodUnitData.setVitAIu(unitobject.getString("vit_a_iu")); foodUnitData.setVitC(unitobject.getString("vit_c")); foodUnitList.add(foodUnitData); } foodArray.setFoods(foodsData); foodArray.setFoodUnits(foodUnitList); foodsArray.add(foodArray); } new InsertAsync().execute(foodsArray); long finish = System.currentTimeMillis(); Log.d("TAG_JSON_FOOD_DB", " \t" + (finish - start)); Log.d("TAG_JSON_FOOD_DB", " \t" + "******************\n"); } catch (JSONException e) { e.printStackTrace(); Log.d("TAG_JSON_FOOD", "e:" + e); } 

    AsyncTask

     class InsertAsync extends AsyncTask<List<FoodArray>, Integer, Integer> { @SafeVarargs protected final Integer doInBackground(List<FoodArray>... arg0) { for (int i = 0; i < arg0[0].size(); i++) { appDatabase.daoAccess().insertAll(arg0[0].get(i)); } return appDatabase.daoAccess().getAll().size(); } @Override protected void onProgressUpdate(Integer... values) { super.onProgressUpdate(values); } protected void onPostExecute(Integer result) { Log.d("TAG_JSON_FOOD_DB", "result: " + result); if (result > 3000 && result < 3300) { onDestroy(); } super.onPostExecute(result); } } 
    submitted by /u/emptyfiles
    [link] [comments]

    Play Store app update to Open track rejected because of policy violation in Production track

    Posted: 24 Jan 2022 10:35 PM PST

    So it turns out my 3-year old Production APK has a policy issue which I was informed about when attempting to publish an update to Open track.

    The new update does not have this policy issue.

    So Google Play is rejecting the update on the basis of a policy issue that would be fixed by accepting the update. The upshot of this is that the Production APK continues to have the policy issue (since 3 years now) and it's being made harder to fix.

    There are a couple of solutions:

    1. Skip Open testing and go straight to Production with 100% rollout. This is very risky because the update is a complete app rewrite and so I need to do it gradually
    2. Fix Production at the same time (or earlier). This is not really possible in my case, because I need to provide 64-bit binaries and I don't have those available for that legacy code.
    submitted by /u/mrcrdr
    [link] [comments]

    Should you ignore Skipped Frames by Choreographer?

    Posted: 24 Jan 2022 09:48 PM PST

    Is it normal to have skipped frames? If it is what is the acceptable amount? How to avoid skipped frames from happening?

    Thankss

    Context:

    I'm encountering 30 - 70 skipped frames log in the logcat, as usual it says that the main thread is doing too much.

    I've checked my app and I created threads (Runnable and Callable) and put every non ui code in it.

    My implementation of Room is a singleton pattern so main thread is not being used when fetching or accessing the database.

    After some digging I'm starting to assume that my RecyclerView and my custom adapter is causing the skipped frames. My CA takes 2 list of objects in its constructor, and the viewholder has 5-7 views in it to present the data.

    Choreographer is not helpful either at telling what causes the skipped frames. I checked android profiler and it shows details unavailable for the threads.

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

    What is the best way to implement pagination for a recyclerview

    Posted: 24 Jan 2022 09:17 PM PST

    Wondering what is the best and most modern way to add pagination for a recyclerview. I was trying the following way:

    ```kotlin private val recyclerViewScrollListener: InfinityRecyclerViewScrollListener by lazy { object : InfinityRecyclerViewScrollListener(linearLayoutManager) { override fun onLoadMore(totalItemsCount: Int, view: RecyclerView) { viewModel.fetchData() } } }

    binding.recyclerView.addOnScrollListener(recyclerViewScrollListener) ```

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

    Illustrating Jetpack Compose Side Effects

    Posted: 23 Jan 2022 10:05 PM PST

    what's the difference between Integration tests and Instrumented tests?

    Posted: 24 Jan 2022 07:41 PM PST

    I wrote unit tests but the task also asks for Integration tests, I know about instrumented tests (ui tests) but I'm confused and also couldn't find much about "Integration".

    What I understood so far about it is maybe it's testing that, saving something into Room, actually saves the data? is this something considered Integration testing?

    Or what am I missing here? Can someone give me some examples please

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

    Giving app a performance boost

    Posted: 24 Jan 2022 10:52 AM PST

    Hey AndroidDev Community,

    I've spent some time in the android development space and I've been wondering what do you guys practice to make your apps snappier and what tech stack do you people use to make it work that way.

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

    CWTI - From the trenches: dev horror stories and cringe with Mark Allison

    Posted: 24 Jan 2022 11:42 AM PST

    Late payment this month from Facebook Audience network?

    Posted: 24 Jan 2022 06:50 PM PST

    I usually get them on the 22nd-24th in my bank along with a "your payment it's on it's way" email.

    Haven't got them yet so far.

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

    A little native (NDK) side-project that now publishes micro games to Android

    Posted: 24 Jan 2022 10:41 AM PST

    Just added "Publish to Android" support to my C++ side-project with native NDK-based publish support (video demo is here: https://youtu.be/UE6k-az1-8w). Friction-free enough for a native NDK app? Also supports single click play on Android: https://youtu.be/uPd8iaPPA0s . Available for free at http://www.fireflytech.org.

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

    After android developer account termination

    Posted: 24 Jan 2022 04:34 AM PST

    Hi,

    Two days ago I got developer account termination email from Google for my personal developer account. I don't like to talk about why they terminated my account because I am also don't know the reason.(I don't want to people give some reasons with just guessing why they terminated) I have some questions related to that. I am working for a company, and I have access to their play store console. As far as I researched on the net, a developer who banned previously by Google may cause to ban company's developer account.

    *Will working for a company cause them to be banned as well because my personal developer account has been terminated?

    *In some forums developers state that Google traces developers when their account banned. This may cause to also ban third party developer accounts when they login to their account to Play Console in same PC. When a developer banned, does this mean that all devices owned by the developer are problematic?

    *What exactly is situation of a person whose account has been banned in for Google? Should the developer stop developing android completely or can he still work for other companies if not for himself?

    I think I reached the end of my android career. Well done Google. Proud with your policies😔😔💔

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

    Google play console, fail to load review

    Posted: 24 Jan 2022 11:26 AM PST

    From this morning the play console app does not load the data and reviews. Is it just for me?

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

    Hotspot or Wifi Direct, Whats better for Gaming?

    Posted: 24 Jan 2022 05:04 PM PST

    What is the better option for creating a local lobby?
    WIFI Direct Or Hotspot.

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

    [rant] New SplashScreen API is confusing and half-baked

    Posted: 24 Jan 2022 02:10 AM PST

    Is it just me or is the new SplashScreen API (and it's -compat library) weirder than without it?

    Let's ignore the fact that it actually lets you do less than before, because the goal is probably consistency and you only achieve that by tight constraints. Fine.

    The Splash screen is shown on Activity cold or warm start, not on hot start (i.e. if it is already in created state). What this means:

    • If you launch Activity B on top of Activity A, then return from Activity B to A via back press, it _may_ show the splash screen if Activity A was purged (test this with "Don't keep Activities" debug option).
    • You need to make sure the Splash theme is defined for any activity that may be launched via other means, e.g. (Share) Intents or launcher shortcuts, not only the one from the launcher.
    • There seems to be a bug where the icon isn't shown when launched by other means than the launcher. That is a bug in Android 12, not only the compat library and happens when launching via AS but also when returning to activities.
    • If you leave the app on Activity B and put the app into background and process death or activity purge happens, a splash screen is shown when you return to Activity B.
    • Because of the above, if you customise your splash screen, you need to make sure the Splash theme is defined for any activity that the user may return to, which is all of them. (Curiously enough, if I launch Activity B that has a splash screen defined, it somehow does not meet the criteria for showing it if launched from Activity A. 🤷‍♂️)
    • The mechanism to manually control the length of the splash screen is a busy loop. Really?

    For some reason the above is not an issue when you just define the splash via windowBackground.

    I don't understand why Google didn't implement the Splash screen on the App level instead, separate to any Activity, but before any Activity is shown. We have solved Activity level splash screens by loading states.

    Is it just me, but can we just do less with less lines of code now? While increasing complexity of what is happening? Am I missing something?

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

    Waiting for Jetpack Compose Preview be like...

    Posted: 23 Jan 2022 06:07 PM PST

    How to unpack/repack system.img api 28 android emulator

    Posted: 24 Jan 2022 04:02 PM PST

    I've tried all github and stacksoverflow guides But ill get errors while im using simg2img It says its not a spars partition Help please

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

    Free Course: Build Foldable, Tablet, Desktop, and Phone-Optimized Apps

    Posted: 24 Jan 2022 11:01 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel