• Breaking News

    Friday, February 26, 2021

    Android Dev - Weekly Anything Goes Thread - February 26, 2021

    Android Dev - Weekly Anything Goes Thread - February 26, 2021


    Weekly Anything Goes Thread - February 26, 2021

    Posted: 26 Feb 2021 06:00 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Dagger Hilt is now in beta (v2.33)!

    Posted: 25 Feb 2021 05:13 PM PST

    [Library] A custom ImageView with some loading effects

    Posted: 26 Feb 2021 05:09 AM PST

    I made a custom ImageView that can be used to create some load/side effects like shimmer, circle in animation & more (let me know for any feature request). This is very helpful if you are loading an image from a network.

    You can now directly specify corner radius & make view clickable with ripple effect without setting a custom drawable background. I need the later feature because RippleDrawable is not available for KitKat.

    It is backward compatible till API 19 & open-sourced on Github.

    https://github.com/KaustubhPatange/ImageLoaderView

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

    New Android Sleep API

    Posted: 26 Feb 2021 04:06 AM PST

    Learning Android for newcomers

    Posted: 26 Feb 2021 04:12 AM PST

    Recently android team released beta version of jetpack compose . Some people liked and some disliked. As a newcomers for learning android should I learn old approach or new one .( And I am not beginner in android ) .

    submitted by /u/Dry-Wonder-1180
    [link] [comments]

    Newbie Angular dev trying to understand Android services

    Posted: 26 Feb 2021 05:44 AM PST

    I have experience building Angular web applications and before I tried using angular native i wanted to learn how to make an a mobile app using Kotlin. I think I have some of the basics down but because of their names I keep thinking Angular services are the same as Android services. I know this may be wrong but at the same time they could be very similar without me realizing it since (at least to me) they seem to operate almost the same way. If anyone here could help me see the difference and get a better understanding of what Android services are used for that would be great! Thanks!

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

    Is it possible to study Android development and work on REAL PROJECTS without an emulator, but using just one phone?

    Posted: 26 Feb 2021 01:15 AM PST

    My computer does not allow working with an emulator, so I would like to know if it is possible to do without an emulator in real work on android applications?

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

    Wonder what went wrong storing json array to store api response using retrofit

    Posted: 26 Feb 2021 07:31 AM PST

    I want to call an api endpoint and display the associated response in my android app. The api takes a parameter user_name and return response of that user. Response is in json array consisting json of date, location and img (base64).

    RESPONSE [ { "id": "602a1901a54781517ecb717c", "date": "2021-02-15T06:47:29.191000", "location": "mall", "img": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCASvBLADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/ } ] the issue I am facing is I am not able to store the response and parse it. I am using retrofit for this. There is no issue in the api call the server gets a successfull request the issue is in the client side (android app). Here is the code that i currently have. ApiInterface.java interface ApiInterface { @FormUrlEncoded @POST("end_point") Call<List<Task>>getstatus(@Field("user_name") String user_name); }

    Task.java public class Task { @SerializedName("user_name") public String user_name; public Task(String user_name) { user_name = user_name.substring(1, user_name.length()-1); this.user_name= user_name; } public String getUser() { return user_name; } } MainActivity.java ``` private void LoginRetrofit(String user_name) {
    Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("url")
    .addConverterFactory(GsonConverterFactory.create())
    .build();

    final ApiInterface request = retrofit.create(ApiInterface.class); Call<List<Task>> call = request.getstatus(user_name); Toast.makeText(getApplicationContext(), "user_name" + " " + call.request(), Toast.LENGTH_LONG).show(); call.enqueue(new Callback<List<Task>>() { @Override 

    public void onResponse(Call<List<Task>> call, Response<List<Task>> response) {
    try { List<Task> rs=response.body();
    Toast.makeText(getApplicationContext(), "Response" + " "+rs, Toast.LENGTH_LONG).show();
    }
    catch (Exception e)
    {
    Log.d("REsponse error",e.getMessage());
    }
    }

     @Override 

    public void onFailure(Call<List<Task>> call, Throwable t) {
    Log.d("Error",t.getMessage());
    }
    });
    }

    This is the response which is being returned. ````

    submitted by /u/No-Current7666
    [link] [comments]

    Google to developers: Our Kotlin-based Jetpack Compose will let you build Android apps faster

    Posted: 25 Feb 2021 08:57 PM PST

    I want to view how my app looks like on a mobile phone by using a Samsung S10+. What steps do I need to complete to do so?

    Posted: 26 Feb 2021 02:45 AM PST

    I've connected USB debugging but I'm not sure where to go on from there

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

    Dynamic Code Loading in Android

    Posted: 26 Feb 2021 01:22 AM PST

    Hi Everyone,

    Objective:

    I have an android application (main) from which I want to download (jar, apk, or any sort of package) and load the package dynamically and start the main activity of my loaded package from my main application.

    The solutions I have tried:

    1. I have followed this blog post and try to load the app using DexClassLoader
      https://medium.com/@kalpeshchandora12/dynamic-code-loading-in-android-dea83ba3bc85#:~:text=DCL(Dynamic%20code%20loading)%20allows,location%20and%20executed%20at%20runtime%20allows,location%20and%20executed%20at%20runtime).
      I am able to follow all the step and able to load the class from the downloaded apk, now I don't
      know how to call the main activity of the loaded apk.

    2. I have followed this plugin(https://github.com/DroidPluginTeam/DroidPlugin), which is telling me that I can dynamically load the apk from the server, and then I can install it in the background and then can run it by any communication method (broadcasting, AIDL, etc.) but while following the plugin, I have encountered an error (sort of I/O error while opening APK), it's not able to open my apk for installation.

    I don't know if whatever I tried is correct or not and I am not an android guy, instead, I am a unity guy and trying to run my games (I have almost 50) within android applications. There is no choice of loading the game statically in the android project because it severely increases the size.

    Please recommend me an approach to achieve this task or if anyone can guide me on how to solve the problems that I am facing.

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

    Update to Google Play Billing Library 3 by November!

    Posted: 25 Feb 2021 11:39 AM PST

    I just got an email from Google saying I have to update to the Google Play Billing Library 3 by November 1st.

    I'm pretty sure the email is generic for everyone, however, every time I do a release I'm warned that my apk doesn't use version 3 off the billing library. My problem is that I do use it, my gradle file has:

    implementation 'com.android.billingclient:billing:3.0.2'

    So, am I getting that warning because the Play Store Console is just buggy or maybe because I do have an old apk (for Android 4.0 devices)?

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

    Why calls are not recording on Redmi Note 9 phone?

    Posted: 26 Feb 2021 03:58 AM PST

    Hi, I have been using Redmi Note 9 android phone which runs Android Version10. The problem is that I cannot record the call. In the built-in option for call recording, it only records my voice, not the other person's. I have installed call recorder apps from the play store but they also don't record the call.

    please help.

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

    How to Use HTML & Emoji in your Google Play Store App Listing

    Posted: 25 Feb 2021 09:59 PM PST

    Composing a Design System

    Posted: 25 Feb 2021 08:27 AM PST

    Resources on process of / best practises in designing the architecture of your app

    Posted: 25 Feb 2021 09:28 AM PST

    So i've been following quite a few different tutorial providers, from paid for ones with Udemy as well as free ones on YouTube.

    All of them are obviously very competent programmers, but all seem to be missing how they actually design their apps and the decisions underpinning this. They all seem to go with "this is what we are going to develop, now lets start coding", and as I implement their steps I find myself asking "why did you do it that way", or "what is the logical underpinning for what you just did".

    Are there any good resources out there, be it videos, blogs, books - on how to take your concept, break it into its constituent parts, and apply this in say an MVVM architectural pattern for arguments sake. So you have the idea of where everything fits - activities, fragments, repos, ViewModels etc. before a single line of code is applied

    Any help much appreciated

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

    Android Google assistant with actions and slices

    Posted: 25 Feb 2021 10:37 AM PST

    Hi guys,

    I was wondering if anyone has a public repo of some work done with actions and slices.

    I want to make something related to adding shopping items into the basket with google assistant but using slices to show me the list of the various items e.g. different types of milks.

    I have no idea how to approach this, there's not much documentation that really makes sense to me.

    Thanks in advance

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

    Create an Efficient Sketching App using Flutter @ 60 FPS

    Posted: 25 Feb 2021 01:12 PM PST

    [D] Entity Extraction with ML Kit

    Posted: 25 Feb 2021 08:39 AM PST

    Use ML Kit to extract address, email, places and so much more

    https://heartbeat.fritz.ai/entity-extraction-with-ml-kit-dfd4b760a8d

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

    [RANT] Why do we have to upgrade to android billing v3?

    Posted: 25 Feb 2021 12:00 PM PST

    I'm using an earlier version of the billing library. Google warmly urged me (us) to update to v3. Why is this necessary? The library's working fine as it is (never had any complaints, refund requests, etc. for more than an year).

    /rant

    submitted by /u/0xdeadbeefx16
    [link] [comments]

    What are some good Android books or resources for interview prep?

    Posted: 25 Feb 2021 11:38 AM PST

    For those of us who are looking to interview soon, what are some recommended Android materials?

    Any books or sites that have good interview prep information for entry/junior/mid/senior level developers.

    What makes a good resource. Most common interview questions. How to impress with a resume. What technologies should you have worked with, etc.

    Lets have a discussion about how to get yourself hired.

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

    No comments:

    Post a Comment