• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, September 29, 2020

    Android Starter Template (hilt, coroutines, flow, edge-to-edge, MVVM, tests, github CI) Android Dev

    Android Starter Template (hilt, coroutines, flow, edge-to-edge, MVVM, tests, github CI) Android Dev


    Android Starter Template (hilt, coroutines, flow, edge-to-edge, MVVM, tests, github CI)

    Posted: 29 Sep 2020 03:54 AM PDT

    Busting Android Performance Myths

    Posted: 29 Sep 2020 10:40 AM PDT

    Please give an example of Composition over Inheritance in regards to Android Development.

    Posted: 29 Sep 2020 10:21 AM PDT

    During the interview, what questions can you ask to test the true level of an Android app developer?

    Posted: 29 Sep 2020 10:14 AM PDT

    WearOS App rejected " your notification does not provide enhanced functions to Android Wear users"

    Posted: 29 Sep 2020 11:43 AM PDT

    WearOS App rejected " your notification does not provide enhanced functions to Android Wear users"

    Hey guys,

    I'm making my first WearOS app for a school project and my app keeps getting rejected by Google because my notification "does not provide enhanced functions to Android Wear"

    My app only has three notification : One when the app is on-screen and stress is detected no button

    https://preview.redd.it/1tmw1rxmt4q51.png?width=1080&format=png&auto=webp&s=e75d6334b613dfcc7db4ae5acbece389a156e11b

    Another one when the foreground service is running, with a button to stop the service :

    https://preview.redd.it/iw1qu2xwr4q51.png?width=320&format=png&auto=webp&s=fd7d1b9510fa1b3f3449e0dd1a5155b7ede559b3

    And the last one, triggered by the foreground service if it detects stress in the background with no button (the same as the first one)

    So what's the problem ? Should I add a button to the button-less notifications ?

    Thanks !

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

    Super easy way to track competitor Play Store reviews - using Slack

    Posted: 29 Sep 2020 01:42 PM PDT

    Hey! I made a bot to track my app reviews in Slack, it has been really handy. Mostly it reminders me to reply to new play store reviews when they come in. but I also set up a slack channel that only populates with my competitors reviews and it has really helped me get a better picture of what my users want, mainly due to the fact I'm getting a high volume of reviews coming in. Even tho the reviews aren't for my app specifically, it helps paint a fuller picture of what my users are looking for, what they hate, and what they love.

    I wrote a longer post on medium if you're interested.

    https://medium.com/@info_84400/get-more-user-feedback-from-your-mobile-app-with-competitor-analysis-using-slack-3de35734c787

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

    Google says Android 12 will make using third-party app stores easier

    Posted: 28 Sep 2020 06:12 PM PDT

    Meet Code With Me (EAP) – a tool for collaborative development by JetBrains – JetBrains Blog

    Posted: 28 Sep 2020 10:10 PM PDT

    New billing policy

    Posted: 29 Sep 2020 03:50 PM PDT

    I am confused about the new billing policy to be effective on January 20, 2021

    You can read it here

    The current policy state:

    Developers offering products within another category of app downloaded on Google Play must use Google Play In-app Billing as the method of payment, except for the following cases:

    Payment is solely for physical products

    Payment is for digital content that may be consumed outside of the app itself (e.g. songs that can be played on other music players).

    There is no mention about digital content that may be consumed outside of the app in the preview of the new policy.

    But according to the blog post: https://android-developers.googleblog.com/2020/09/listening-to-developer-feedback-to.html

    They aren't changing the policy, just clarifying.

    My question is, does a news reader that work with subscription will required to use Play In-App billing with the jan 2021 policy? I understand this kind of App fall under "digital content that may be consumed outside of the app" in the current policy since you can enjoy the content on the Website too.

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

    Google Says Android 12 Will Make Using Third-Party App Stores Easier

    Posted: 29 Sep 2020 03:35 PM PDT

    Tried creating an Android library

    Posted: 29 Sep 2020 02:36 PM PDT

    So I have been working with Android development for the past one year, so I have tried to create my own library named UserInfoView. This library as the name suggests allows you to get a custom created view which I have created and there you can set the image, title, subtitle and tag for a user. I have tried to keep the view as customisable as possible but still there is much more improvement that can be done.

    GitHub link: UserInfoView

    I have provided the GitHub Repo link to let you all see the code and provide your valuable feedback. Any feedback is welcome and contribution would really help me a lot.

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

    Is there any android app like Dash for iOS/MacOS

    Posted: 29 Sep 2020 02:33 PM PDT

    In the page there is this app called LovelyDocs but it's been deleted from the play store.

    https://kapeli.com/dash

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

    Android Studio ASCII Problem

    Posted: 29 Sep 2020 12:26 PM PDT

    can Android studio please fix the problem with that if your user name has a non ASCII character it cant install SDK becouse i have dots on the E in my name and now i cant use SDK

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

    To App Store

    Posted: 29 Sep 2020 11:35 AM PDT

    I have developed an app using Android Studio, Kotlin and Firebase. Is it possible for me to upload this app to App Store?

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

    Android Emulator on Linux seems to use Vulkan when available

    Posted: 29 Sep 2020 02:03 AM PDT

    After installing the latest emulator updates, I noticed some new warning messages popping up when I launch the emulator. They're the same messages that are printed in a terminal, when you try to use a Vulkan application with RADV (AMD Vulkan implementation) . Since I have ACO enabled, that warning message also popped up.

    However, I'm happy to report that the emulator is working fine, atleast for the ten minutes that I used it. Got to see how well it works on Intel Vulkan implementation.

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

    Exclude certain Android versions

    Posted: 29 Sep 2020 06:11 AM PDT

    My app targets Android 11, just because I don't want Google Play to stop me from updating my app. But at the moment, the core function of my app is not working on Android 11.

    Is it possible to hide my app listing from Android 11 users so that they don't end up downloading my app and reviewing "it's not working". ?

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

    ML + RFID to Read and verify the embedded chip in passports. Looking for Testers

    Posted: 29 Sep 2020 09:36 AM PDT

    I created an app that can read and verify the personal data on passports using the secure chip embedded inside.

    The app works by first using the camera to scan the passport's data page, a step that is needed because the key used for reading the embedded chip is constructed out of the visible printed passport data. Then it will read and verify the embedded chip and display the extracted information.

    Here is a 30 second demo: https://www.youtube.com/watch?v=VTdpOcG1NSw

    I am looking for users/testers with different passports to try it out. I wanted to see if my weekend hackathon project actually works or if it is only my passport and my friends that works.

    Feel free to use an invalid passport and/or use the app on airplane mode so that you feel comfortable.

    The app is available for both iOS and Android and requires an NFC-enabled device (most modern Android devices and all iPhones starting with the iPhone 7 are NFC-enabled). You will also need a biometric passport (sometimes called electronic passport) that you can read. Most modern passports issued today are biometric passports, and you can verify this by looking for a microchip icon usually printed on the passport cover.

    https://apps.apple.com/us/app/biometric-passport-reader/id1510585886 https://play.google.com/store/apps/details?id=app.iris

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

    Unable to find a good MVVM tutorial for java

    Posted: 29 Sep 2020 09:30 AM PDT

    Hi, after searching a while I don't seem to be able to find a good tutorial explaining ViewModel and how I use it. Does anyone have a good one that can link? I have never used MVP or MVVM so all will be new to me. Thanks in advance

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

    Promote from beta to production with timed release impossible? Or am I doing smth wrong?

    Posted: 29 Sep 2020 03:06 AM PDT

    Hey all,

    We have an app that has a production version and a version in the beta-channel.

    Our production entry at store-listing clearly states: "Timed release".

    Whenever I promote the beta version to production it removes the timed release and immediately releases which causes us a lot of problems because the backend hasn't been released yet.

    Is there no way to promote from beta to production and retain the timed release :-(? Or am I missing something?

    Cheers

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

    I'm trying to build an audio player and need help understanding a lot of things.

    Posted: 29 Sep 2020 09:02 AM PDT

    First, I'm using a bound service and not MediaBrowserServiceCompat primarily because I only want to play one track and don't need most of the stuff MediaBrowserServiceCompat brings with it.

    Here is my service -

    @AndroidEntryPoint class PodcastPlayerService: Service() { @Inject lateinit var dataSourceFactory: DefaultDataSourceFactory @Inject lateinit var exoPlayer: SimpleExoPlayer private var binder = LocalBinder() private lateinit var podcastNotificationManager: PodcastNotificationManager private lateinit var podcastPlayerEventListener: PodcastPlayerEventListener private lateinit var podcast: Podcast var isForegroundService = false override fun onBind(p0: Intent?): IBinder? = binder override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { val bundle = intent!!.getBundleExtra(ExtrasKeyAndValues.BUNDLE_PODCAST_SERVICE) if (bundle != null) { podcast = bundle.getParcelable(ExtrasKeyAndValues.KEY_PODCAST)!! startPlayer(podcast) } return START_NOT_STICKY } override fun onDestroy() { super.onDestroy() try { exoPlayer.removeListener(podcastPlayerEventListener) exoPlayer.release() } catch (ex: UninitializedPropertyAccessException) { ex.printStackTrace() } } override fun onTaskRemoved(rootIntent: Intent?) { super.onTaskRemoved(rootIntent) exoPlayer.stop() exoPlayer.release() } private fun buildMediaSource(uri: Uri): MediaSource? { return ProgressiveMediaSource.Factory(dataSourceFactory) .createMediaSource(uri) } private fun startPlayer(podcast: Podcast) { val mediaSource = buildMediaSource(Uri.parse(podcast.fileDirectUrl)) if (mediaSource != null) { exoPlayer.prepare(mediaSource) exoPlayer.playWhenReady = true podcastNotificationManager = PodcastNotificationManager( this, PodcastPlayerNotificationListener(this), podcast ) podcastPlayerEventListener = PodcastPlayerEventListener(this) exoPlayer.addListener(podcastPlayerEventListener) podcastNotificationManager.showNotification(exoPlayer) } } fun getPlayerInstance(): SimpleExoPlayer = exoPlayer inner class LocalBinder : Binder() { fun getService(): PodcastPlayerService = this@PodcastPlayerService } } 

    And, here is my fragment which starts the service and has a exoplayer view in it's layout -

    @AndroidEntryPoint class AudioPlayerFragment: Fragment() { private var binding: AudioPlayerFragmentBinding by autoCleared() private lateinit var podcast: Podcast private lateinit var podcastPlayerService: PodcastPlayerService private var isBound = false private val connection = object: ServiceConnection { override fun onServiceConnected(p0: ComponentName?, iBinder: IBinder?) { val binder = iBinder as PodcastPlayerService.LocalBinder podcastPlayerService = binder.getService() isBound = true initPlayer() } override fun onServiceDisconnected(p0: ComponentName?) { isBound = false } } override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { binding = AudioPlayerFragmentBinding.inflate(inflater, container, false) return binding.root } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) podcast = arguments?.getParcelable(ExtrasKeyAndValues.KEY_PODCAST)!! binding.title.text = podcast.title binding.description.text = podcast.description startPodcastPlayerService(podcast) binding.exoPlayerView.useController = true binding.exoPlayerView.showController() binding.exoPlayerView.controllerAutoShow = true binding.exoPlayerView.controllerHideOnTouch = false } override fun onStart() { super.onStart() Intent(activity, PodcastPlayerService::class.java).also { intent -> activity?.bindService(intent, connection, Context.BIND_AUTO_CREATE) } initPlayer() } override fun onStop() { activity?.unbindService(connection) isBound = false super.onStop() } private fun initPlayer() { if (isBound) { val player: SimpleExoPlayer = podcastPlayerService.getPlayerInstance() binding.exoPlayerView.player = player } } private fun startPodcastPlayerService(podcast: Podcast) { val intent = Intent(context, PodcastPlayerService::class.java) val serviceBundle = Bundle() serviceBundle.putParcelable(ExtrasKeyAndValues.KEY_PODCAST, podcast) intent.putExtra(ExtrasKeyAndValues.BUNDLE_PODCAST_SERVICE, serviceBundle) context?.let { Util.startForegroundService(it, intent) } } } 

    Now, things work fine if I start the fragment, let the audio stream. It works as expected if I put the app in background and bring it back to the front.

    Problems arise when -

    1) I dismiss the player notification after pausing audio and then resuming the audio from the fragment's view. Then, the song will resume fine but as soon as I exit the app, the bound service will be destroyed too and the music will stop. I know this behavior is expected if a service is not started by calling startService but by automatically just binding it to a client. However, I can't figure out why this is happening in my case.

    2) I navigate away from app using the home button and then I pause the audio and dismiss the notification. In this case if I navigate back to the app via recent apps and try to resume audio, it fails. How can I fix this?

    Also, additionally, as you can see, my fragment code is not layered. Hence, when I rotate the device while the fragment is visible, the audio streaming restarts. How can I preserve the state of the audio stream and let it not be affected by config change? Obviously, placing it in a ViewModel will not be advisable because the service is part of the Android framework.

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

    Struggling on gaining employment as a new-coming Android Developer. Looking for any advice.

    Posted: 29 Sep 2020 08:47 AM PDT

    Some background context: I graduated a couple years ago with a BS in Information Technology with a Software concentration. I did one internship with a ~$10B marketcapped company after graduating and then my only full-time software engineering role was doing some backend Java stuff in a really small company. I haven't held an Android position professionally yet but I want to break into the field.

    I'm 800+ applications in since May but I have not received a single offer yet. At this point I've probably had 30+ phone screens and 10+ technical interviews/take home projects. I've made a few Android apps which are all on my Github and one has 10k+ downloads and uses MVVM and a bunch of different well-known libraries which I see in job descriptions.

    I'm not sure if a lot of my struggles has to do with the pandemic or me as a candidate. It's pretty demoralizing nonetheless. I continue to do Leetcode but I rarely even get the opportunity to be in a situation where I'm asked Leetcode-style questions in an interview so I'm not sure if I'm wasting my time there. I don't know if I should start a new Android project from scratch to add to my portfolio because that will take a long time to even reach a point where it's presentable.

    Anyway, I'm getting a bit desperate here. I would really appreciate any comment/feedback from Android devs that are working in the industry. I'm going to leave an anonymized resume so I could maybe get some feedback (I would highly appreciate it!). Thanks!
    Resume

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

    Still receiving: [Action Required] Update your apps to use latest Firebase Crashlytics SDKs before November 15, 2020

    Posted: 29 Sep 2020 01:11 AM PDT

    Followed by a list of apps that should be updated. But I investigated all of the apps, and none seem to have outdated dependencies. Am I missing something or is their detection system off?

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

    What's the best/reliable way today to poll for location for every x minutes in the background?

    Posted: 29 Sep 2020 04:50 AM PDT

    Testing MVI View Models on Android

    Posted: 29 Sep 2020 08:05 AM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel