• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, November 3, 2021

    All apps are ready to serve ads, but AdMob still limiting the ads in my account, what should I do Android Dev

    All apps are ready to serve ads, but AdMob still limiting the ads in my account, what should I do Android Dev


    All apps are ready to serve ads, but AdMob still limiting the ads in my account, what should I do

    Posted: 03 Nov 2021 12:33 PM PDT

    All apps are ready to serve ads, but AdMob still limiting the ads in my account, what should I do

    Hi everyone, as you can see in the screenshot below, all of my apps are ready to serve ads, but AdMob still limiting the ads in my account, I tried to contact them several times, they didn't respond :

    https://preview.redd.it/p92v9yvymfx71.png?width=303&format=png&auto=webp&s=5c81170807b9ea97a16dd856103a2891647e8b8e

    What should I do, right now, I'm using FAN, but I would like to continue using AdMob.

    Thank you

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

    I wrote a paper about r/androiddev

    Posted: 02 Nov 2021 08:38 PM PDT

    I'm a Ph.D. student at CMU, majoring in usable privacy and Human-Computer Interaction. The overarching theme of my Ph.D. research is to make privacy an easier task for developers.

    Last summer, I came across r/androiddev and spent a lot of time reading posts on it regarding personal data and privacy. Then I wrote this paper to summarize what I learned. Since in our field, most of the research has been focused on making privacy more usable for users, I really hope this paper can make the challenges in how developers deal with privacy requirements more visible to the research community and Google (eventually).

    Since this is a paper about you (Android developers), I'm keen to know if you have any thoughts about the paper or just about privacy from a developer's perspective. I'm happy to answer any questions:)

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

    Switching between navigation component screens so fast

    Posted: 03 Nov 2021 04:24 AM PDT

    So here's the scenario and I hope it clears the problem.

    I have two screens (fragments) on the bottom navigation bar, (home, profile) Within the home fragment there's a menu which has an item to open third fragment.

    So my friend was testing my app the other day and whilst he was switching between home fragment to profile fragment quickly, he kept clicking on the menu item which was in the home fragment, and after several attempts the app crashed with the error:

    Couldn't find destination: ProfileFragment to addFragment.

    The thing is, the app tried to open the addFragment from the profile which is impossible. So how can I avoid this?

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

    I need a Single Source of Truth across the app

    Posted: 03 Nov 2021 09:37 AM PDT

    Hi everyone! 👋

    I'm working on a new project and I need to access data from every corner within the app. From the Activities, from the Fragments, etc. And I need to keep this data on sync. To give you an example, let's say I'm working on a banking app, and I have these Document objects I need to access from all these different places. I also have a Web Socket that will trigger events, and the app actively listens for these events. Every time I get one of these events, I need to perform an API call to the backend server to update the Document info. And here's the important bit; I need to update the UI on all these different places so they show the latest, most up to date info for these Documents.

    What I'm thinking about doing is to have an in-memory Room DB. So, you know I can actively listen to the queries via Flow and -- through a ViewModel -- update the UI from all these different Activities/Fragments.

    What do you guys think about an approach like this? Is it an overkill? I just think this is most scalable solution. 🤔 WDYGT? Have you guys ever have to implement something like this?

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

    Can we promote affiliate links in our app

    Posted: 03 Nov 2021 02:30 AM PDT

    We have an Android App, users play games to win points.

    I wonder is it against Google Play's Terms of Service to promote affiliate links or other websites/apps inside our app?

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

    Android studio not running app on emulator, trying to import project from GitHub code.

    Posted: 03 Nov 2021 02:31 PM PDT

    Hi all,

    Learning android dev and taking googles android dev course. I'm to download code from GitHub and upload to android studio, however when I try to run the app it just says waiting for all target devices to come online even though my emulator is running. Tried all sorts of stuff, not sure what the problem is.

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

    Can I use admob mediation to show FAN ads even with AdMob limited ads?

    Posted: 03 Nov 2021 02:07 PM PDT

    Hi guys, admob has limited my account to analyze the traffic quality of my apps. It happened after my app was removed from the Play Store for containing the word 'free' in the title. As soon as I corrected and sent it for analysis, the limitation occurred.

    I would like to know if I can use admob's own ad mediation to insert Facebook Audience Network ads into my apps (maybe even other ad networks like AdColony).

    That would be legal? Would this limitation of admob ads also limit the ads of other mediation networks (such as facebook)? Thanks

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

    Google Maps Additional Functionality "Plugin"

    Posted: 03 Nov 2021 10:44 AM PDT

    Hey y'all! Wondering if it is possible to, augment the functionality of Google Maps app through the use of another app/plugin?

    Here's a small bit of my use case...the user would be able to choose an option, within the Google Maps app, that would enable them to use a different route, with data informed from the third party app.

    Disclaimer, I'm not a dev... just a UX/UI designer

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

    How to remove Google Play Protect requirement?

    Posted: 03 Nov 2021 09:56 AM PDT

    My app on Google Play can't be installed on devices that don't have Google Play Protect enabled and are Play Protect Certified (like rooted ones) but I haven't turned this on, and I can't figure out how to turn it off. Is this a requirement set by Google for apps that have in-app purchases?

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

    Android system design experience

    Posted: 03 Nov 2021 01:39 PM PDT

    Sometimes you get good general questions where you can dive into specific parts that you have experience with or expertise in. 1. Design a mail app

    1. Design a scrolling gallery

    Sometimes you get very picky questions that one candidate having exact experience will be able to ace it while another candidate not familiar with it will basically struggle and fail 1. Design an file downloader that supports notifications (familiarity with foreground service, background service, work manager, notification, manifest/context registered broadcast receiver, networking, concurrency, intent, component communication)

    1. Design an image manager (glide for example) (familiarity with image loading specific issues, compression, memory cache, single or multiple disk cache, image processing, interceptor pattern, lifecycle, concurrency, image formats, progressive JPG, webP, bitmap, decoding, concurrency limit, multiple image sources, memory consumption and handling, thumbnail, placeholder, error display, garbage collection)

    2. Design an android TV main screen with a scrolling list of recommended apps and installed apps (TV can be extremely old and slow, multi device handling, deep link, http/tcp socket, custom view, language, user account, authentication, package manager and discovery)

    How about you? Have you struggled with particular questions?

    (Personal tip: memorize all official android/kotlin documentation and even API, read through all api design of all major libraries, retrofit, glide/coil/fresco to start)

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

    App crash after activity using audio-visualizer-android

    Posted: 03 Nov 2021 03:10 AM PDT

    Hi guys,

    I am trying to build an app where a voice message is delivered with a visual animation.

    The voice message is a simple .wav file.

    The visual animation is the BlobVisualizer from https://github.com/gauravk95/audio-visualizer-android .

    When I check out the Logcat from the Emulator, it brings my to the Visualizer class, where the import of android.app.ActivityThread does not work ("Cannot resolve symbol 'ActivityThread'").

    The same happens on a physical device.

    Can you help me, please?

    Activity

    ______________________

    package com.example.myapp;

    import android.os.Bundle;

    import androidx.appcompat.app.AppCompatActivity;

    public class FullscreenActivity_voice extends AppCompatActivity {

    private BlobVisualizer mVisualizer;

    private AudioPlayer mAudioPlayer;

    u/Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fullscreen_voice);

    mVisualizer = findViewById(R.id.blob);

    mAudioPlayer = new AudioPlayer(); }

    u/Override

    protected void onStart() { super.onStart(); startPlayingAudio(R.raw.voice); // TODO: log timestamp }

    u/Override

    protected void onStop() { super.onStop(); stopPlayingAudio(); }

    private void startPlayingAudio(int resId) {

    mAudioPlayer.play(this, resId, new AudioPlayer.AudioPlayerEvent() { u/Override public void onCompleted() { if (mVisualizer != null) mVisualizer.hide(); } }); int audioSessionId = mAudioPlayer.getAudioSessionId(); if (audioSessionId != -1) mVisualizer.setAudioSessionId(audioSessionId); }

    private void stopPlayingAudio() {

    if (mAudioPlayer != null) mAudioPlayer.stop(); if (mVisualizer != null) mVisualizer.release(); } }

    _________________

    LOGCAT

    _________________________

    2021-11-03 10:58:55.741 5998-5998/com.example.myapp W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@cd536fe 2021-11-03 10:58:56.192 5998-5998/com.example.myapp E/AudioEffect: set(): AudioFlinger could not create effect e46b26a0-dddd-11db-8afd-0002a5d5c51b / 0, status: -1 2021-11-03 10:58:56.192 5998-5998/com.example.myapp E/visualizers-JNI: Visualizer initCheck failed -3 2021-11-03 10:58:56.192 5998-5998/com.example.myapp E/Visualizer-JAVA: Error code -3 when initializing Visualizer. 2021-11-03 10:58:56.192 5998-5998/com.example.myapp D/AndroidRuntime: Shutting down VM --------- beginning of crash 2021-11-03 10:58:56.203 5998-5998/com.example.myapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.myapp, PID: 5998 java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -3 at android.media.audiofx.Visualizer.<init>(Visualizer.java:218) at com.example.myapp.BaseVisualizer.setAudioSessionId(BaseVisualizer.java:172) at com.example.myapp.FullscreenActivity_voice.startPlayingAudio(FullscreenActivity_voice.java:48) at com.example.myapp.FullscreenActivity_voice.onStart(FullscreenActivity_voice.java:28) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1391) at android.app.Activity.performStart(Activity.java:7157) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 2021-11-03 10:58:56.238 5998-5998/com.example.myapp I/Process: Sending signal. PID: 5998 SIG: 9 

    _________________________

    submitted by /u/wannabe-android-dev
    [link] [comments]

    Intent for playing video on Android 11

    Posted: 03 Nov 2021 04:32 AM PDT

    Hi, im currently maintaining an app. But suddenly someone reported that playing video is not working on this device. I confirmed on android 11 on my end, now my option is to create a videoview. Is there a way for me to continue using intent instead? Thanks

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

    How to restore an application level variable

    Posted: 02 Nov 2021 11:21 PM PDT

    We have savedInstanceState for Activity and Fragment, and restore it when the app came back to alive.

    But at times the application level also got killed as per this article https://medium.com/mobile-app-development-publication/dont-keep-activities-alone-is-not-enough-for-testing-407b7c01bd60.

    Is there a way to restore application-level variables?

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

    Sealed class: A marriage https://link.medium.com/i9NcgPPBSkb

    Posted: 03 Nov 2021 02:27 AM PDT

    I have posted an article https://link.medium.com/i9NcgPPBSkb . I have just started writing articles let me know your feedback so I can improve.

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

    Geolocation Library for Android

    Posted: 02 Nov 2021 10:25 PM PDT

    Currently, I am working on Location tracking apps. I need to use a reliable Geolocation Library. I search on found TransistorSoft. It is a premium library (need to be purchased). I have been trying it out, I found some issues with reliability.

    So I need a comparison or another choice. Is there anyone who knows or uses any Geolocation Library on Android or Mobile apps? It is okay if it is a premium library.

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

    Best suitable android phone for AOSP build

    Posted: 02 Nov 2021 09:21 PM PDT

    Can anyone have idea about which is the best suitable phone right now in market for AOSP customise build? I have Pixel 4XL devices but now I would like to use other devices i.e. nokia or samsung or motorola brand there is no issue in chinese brand.

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

    Is Chinese OEM messing up with activity starting from the background service as well?

    Posted: 02 Nov 2021 08:47 PM PDT

    Hi Everyone,

    As per Google documentation at https://developer.android.com/guide/components/activities/background-starts#exceptions, an app with SYSTEM_ALERT_WINDOW permission can start an activity from the background service.

    I have an app lock application that opens the lock screen activity from the background service. In recent times, I have noticed that a new kind of crash coming specifically from the Android 11 devices of Oppo and RealMe when the background service trying to start the activity even though the app has SYSTEM_ALERT_WINDOW permission. All of these crashes are happening only on Android 11 and on the above specific brands.

    Here is the crash details -> Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.server.wm.ActivityRecord.isVisible()' on a null object reference

    Is anything changed on Android 11 for starting activity from background service? or Are the Chinese OEMs added an extra restriction on the default Android behavior?

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

    Virtual cam in Emulator or Phone

    Posted: 02 Nov 2021 08:17 PM PDT

    Hey, I a phone/emulator to believe that a virtual camera is the actual camera. I want the virtual camera to have a decent resolution. Ive tried different ways and emulators but none work with higher than 640x480.

    Providing a image to the camera instead of a live feed would also work.

    Android studio seems to allow it with a real camera so if its possible to emulate the virtual camera as a usb device that might work.

    Im trying to use OBS as the virtual camera.

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

    Login credentials for app review

    Posted: 02 Nov 2021 07:19 PM PDT

    Has anyone had issues with Google manually reviewing their app and having a login process that doesn't use passwords?

    In our last update Google decided to start manually reviewing the app and asked for login credentials to be provided. We uploaded instructions and a video detailing how you enter an email and we'll shoot over a OTP but it got rejected again (though the email they sent to us never mentioned that we should have an alternate login way for them to use).

    My guess is they don't want to rely on OTP or checking emails. Has anyone else experienced this issue? Should we just have an alternate login method using a special review account for them to use?
    We haven't reached out to the google support team yet and I'm thinking this might be the best way to resolve our issue but I've usually experienced long wait times.

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

    What are main limitations in android vs ios

    Posted: 03 Nov 2021 12:51 AM PDT

    What are main limitations in android vs ios. Some apps dont seem like they're being made on android and theres many more devs on androids. Are there more main limitations in android vs ios for apps?

    My friend has cool ios note apps. When you're on a note, you can swipe left right to go to next notes that are pinned/or that you selected as "main notes".

    Agenda and Craft on ios is also really amazing. Looking for things like Agenda or Craft. (both are different). Craft seems like its really good for editing and Agenda seems like best design for note apps, never seen anything like this before. You cannot swipe left right in either of these, but they do other things that are amazing and wow. Dunno who made them. If agenda had editing features for mobile like craft that would be a huge winner forever if amazing features were combined, its really amazing

    Also looking for apps where you can swipe left right to go to next note when you're on a note. Apps that you can type on, not drawing apps. Some drawing apps do this

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel