• Breaking News

    Monday, September 14, 2020

    Android Dev - Weekly "who's hiring" thread!

    Android Dev - Weekly "who's hiring" thread!


    Weekly "who's hiring" thread!

    Posted: 14 Sep 2020 05:44 AM PDT

    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]

    Weekly Questions Thread - September 14, 2020

    Posted: 14 Sep 2020 03:56 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Kotlin 1.4 Online Event – Kotlin Blog

    Posted: 14 Sep 2020 06:55 AM PDT

    JetInstagram an Instagram clone using Jetpack Compose

    Posted: 13 Sep 2020 11:01 AM PDT

    JetInstagram an Instagram clone using Jetpack Compose

    An Instagram clone with Like Animation and Exoplayer integration for Instagram reels feature.

    Code: https://github.com/vipulasri/JetInstagram

    JetInstagram

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

    Horrible gradient screenshots on play store, why?

    Posted: 14 Sep 2020 06:57 AM PDT

    Horrible gradient screenshots on play store, why?

    Hi! I tried a high resolution PNG and a more compressed JPG, but no difference at all. Any help please?
    On a PC looks perfect but play store app hate gradients on mobile.

    https://preview.redd.it/2m49cg2wc4n51.jpg?width=1080&format=pjpg&auto=webp&s=b69d1a7157f6ecf6fcac4e7031aeae0f46d94bcf

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

    Dynamic BASE_URL using Retrofit and Dagger Hilt

    Posted: 14 Sep 2020 03:39 AM PDT

    I am struggling passing a dynamic BASE_URL to Retrofit at runtime. I found a solution passing the whole API @Url as an argument to the endpoint, but it does not look very good to me. Does anyone have any experience with this?

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

    YouTube + Twitch channel about Jetpack Compose by Leland Richardson

    Posted: 13 Sep 2020 02:05 PM PDT

    Many Correct Answers

    Posted: 14 Sep 2020 09:01 AM PDT

    Wire 3.3.0 supports proto3

    Posted: 14 Sep 2020 08:47 AM PDT

    Images from Gallery always rotated 90 degrees

    Posted: 14 Sep 2020 08:33 AM PDT

    In my app when I let users select an image, I want to display it immediately after for them to confirm but it always comes out rotated to the right.

    There is an old thread from stackoverflow that recommends using Glide to fix this but I am already using Glide and it is still showing the issue.

    Code is simple:

    contentURI = data.getData(); try { Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), contentURI); Glide.with(getApplication()) .load(bitmap) .into(mGoodsPicture); } catch (IOException e) { e.printStackTrace(); } 

    And

    mGoodsPicture = findViewById(R.id.iv); 

    Corresponding imageview:

    <ImageView android:id="@+id/iv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginRight="10dp" /> 

    Any solution?

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

    AssistedInject Release 0.6.0 adds support for awareness of Hilt.

    Posted: 14 Sep 2020 07:19 AM PDT

    Android 11 features and other sides

    Posted: 14 Sep 2020 07:13 AM PDT

    Run facebook embed on Webview

    Posted: 14 Sep 2020 06:51 AM PDT

    Hello,

    I have a service that returns a html code to render on a webview in my app, sometimes it returns a youtube embed, instagram or facebook, but the facebook is the only one is not working.

    "<script async=\"1\" defer=\"1\" crossorigin=\"anonymous\" src=\"[https://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v8.0\](https://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v8.0))" nonce=\"dUFa7MFK\"></script><div class=\"fb-video\" data-href=\"[https://www.facebook.com/terradememe/videos/222040112417866\](https://www.facebook.com/terradememe/videos/222040112417866)">">)<blockquote cite=\"[https://www.facebook.com/terradememe/videos/222040112417866/\](https://www.facebook.com/terradememe/videos/222040112417866/))" class=\"fb-xfbml-parse-ignore\"><a href=\"[https://www.facebook.com/terradememe/videos/222040112417866/\](https://www.facebook.com/terradememe/videos/222040112417866/)">Algumas">Algumas) histórias assustadoras!</a><p>Algumas histórias assustadoras!\n"

    Here is only a part of the body, on facebook video we put it on a `script` tag and when I play the video the app freeze and do nothing, but if I press on back button the app return it to normal behavior.

    I saw a solution that use a `iframe` but in my case I need to work with `script`.

    After a while I noticed this log:

    "Refused to load the image 'android-webview-video-poster:default_video_poster/-1751309467915793562' because it violates the following Content Security Policy directive: "default-src * data: blob: 'self'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback."

    Anyone have faced the same problem?

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

    Why we switched from Amplitude to Firebase, BigQuery & Google Data Studio for our android app analytics

    Posted: 14 Sep 2020 05:05 AM PDT

    Hey everyone,

    We run a transcription app (VoxRec) which is currently at $2k MRR (doubled last month!)

    We use analytics to help make app development choices. At the beginning of the year, we switched from Amplitude to Firebase, BigQuery & Google Data Studio for our app analytics. This is why we did it:

    Cost

    The free tier in Amplitude allows up to 10 million events per month. After that, it'll cost between 40,000 to 70,000 USD/year!

    We calculated that using BigQuery and Google Data Studio, our cost would be about $350/year for the same amount of data!

    Data Ownership

    If we find that we've defined some events incorrectly, we can fix data retrospectively. On any other platform, once the data is logged, it's what it is.

    Advanced Analytics

    The features in the Amplitude free tier are limited. We did not have access to the cohorts for example. We were able to recreate these features in BigQuery. For example, we can now look at user retention based on cohorts of country/events/registration status/payment status….

    So far, we are very happy with the switch

    While creating our reports, we realised that large parts are reusable. We've spun it out into a template. You can check out the template here

    If you'd like to get the template (along with set up instructions) let me know in the comments or DM me and I'll hook you up.

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

    Which blogs can you recommend? I'll start.

    Posted: 13 Sep 2020 02:08 PM PDT

    I am always on the hunt to grow my feed reader. Which Android & Kotlin related blogs are you following and recommending? Below are my currently subscribed blogs. I marked blogs which I can highly recommend with an '(!)'.

    I am also following every Android related article on Medium but that can be overwhelming. Any better way to get notified about high quality Medium posts?

    Companies:

    Individuals:

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

    Grid list with LazyColumnFor in Jetpack Compose

    Posted: 14 Sep 2020 03:12 AM PDT

    Grid list with LazyColumnFor in Jetpack Compose

    I guess a composable for grid lists like LazyColumnFor or LazyRowFor isn't available (yet).

    As a workaround, I'm splitting the list into sublists for each row:

    @Composable fun CharactersList( items: List<Character> = listOf(), cols: Int = 3 ) { val chunkedList = items.chunked(cols) LazyColumnFor(items = chunkedList) { Row { for(character in it) { CharacterItem(character, Modifier.weight(1f)) } } } } 

    https://preview.redd.it/klkq9swb93n51.png?width=356&format=png&auto=webp&s=439ea3a59646d47717cb56b463907f3e81d57ccc

    What do you guys think about this? Is there any other (better) way?

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

    Need help theming big project

    Posted: 14 Sep 2020 02:45 AM PDT

    Can you tell me good approach to theme big projects?

    I have "ui kit" gradle module with a lot of custom views. Views and resources from "ui kit" are used in other library/app modules. I want to make "ui kit" styleable — each app should be able to specify its own color scheme for "ui kit", which will then be applied to all ui-kit-dependent modules.

    The only solution I know — convert values into attr-references and specify values for them right in app theme of each app. But I see a lot of disadvantages here:

    1. I want to customize many of views independently — so there will be hundreds of references without any structural organization
    2. I have to add all these hundreds of references right inside each app theme file, or app will crash saying that attr has no value
    3. I can't set default value for each reference
    4. I can't reuse one color-scheme in different apps — only copy-paste values again and again

    What I really need is:

    • define all attributes inside something like my color scheme (R.style.MyLibTheme)
    • create multiple color-schemes right in "ui kit" module (R.style.MyLibTheme.X, R.style.MyLibTheme.Y, ...)
    • in each app theme I add only 1 xml line - color scheme "ui kit" should use (<item name="myLibTheme">@style/MyLibTheme.Y</item>)

    But I don't know how to do it. If I specify attr value in app theme, I can access it easily in XML via "?myAttrName". If I put attr value inside my custom style, I won't able to access it (I can't call "?myLibTheme/myAttrName". There are a lot of other things I also don't know how to do to implement it

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

    Using LiveData in MVP?

    Posted: 14 Sep 2020 02:29 AM PDT

    It's clear that LiveData works amazingly with MVVM, but are there any interesting use cases for LiveData with MVP? I'd be interested to know.

    Also curious to know if LiveData particularly shines in any other architectural patterns

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

    How do you improve & optimize upgrade/subscription conversions in your apps?

    Posted: 13 Sep 2020 12:17 PM PDT

    Hey, r/androiddev!

    I'm wondering what other devs do to optimize their freemium/subscription service upgrade pages & experiences.

    I have an app with a freemium model. I relaunched it recently and with that, I've re-done my freemium upgrade screen. I also made it more obvious through the app as to what features require the premium upgrade. Conversion has increased slightly, but not as much as I had originally expected.

    I'd hope to not completely re-design my experience, but rather A/B test or experiment on different approaches.

    Would love to discuss what you've done to improve your conversions.

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

    What the importants android topic do i need to cover to develop fitness tracker app?

    Posted: 13 Sep 2020 07:47 PM PDT

    I have completed my android basic stuffs (java) and some advanced topics here and there,there is so much to learn in android dev that i am getting lost and end up learning things that i don't think i will use.

    Can anybody tell me what are the android topics that i need to cover to build a simple fitness running tracker app that tracks your run live ?

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

    Best Android Development Software for an app using Twitter and Google Maps APIs

    Posted: 13 Sep 2020 11:36 AM PDT

    Hey gang! Hope you're awesome and staying safe!

    So I have a degree in computer science with games tech, but I've never developed an app before - I've also been out of uni for about 10 years and only really cored for fun so I'm "rusty" at best.

    I am looking for an easy to use (non intimidating) development tool to create a mobile app which will use Twitter and Google maps APIs.

    Which would you recommend/ are the best in your opinion? Thank you. :)

    NB sorry if this isn't allowed. I did check the rules so sorry if I've screwed up!

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

    Level Up Your App Infrastructure with Firebase

    Posted: 13 Sep 2020 09:04 AM PDT

    Voice interaction in App including HotWordDetection

    Posted: 13 Sep 2020 08:46 AM PDT

    HI, I am trying to integrate voice interactions inside my applications including a hotword detection.

    It needs to listen only when the app is in the foreground, and which is the best way to accomplish this? Some lighter ways than the RecognitionService ?

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

    No comments:

    Post a Comment