• Breaking News

    Wednesday, November 3, 2021

    Android Dev - I wrote a paper about r/androiddev

    Android Dev - I wrote a paper about r/androiddev


    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]

    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]

    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]

    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]

    Experimental item reordering animations for LazyColumn and LazyRow from Jetpack Compose were just merged and are expected to be released in 1.1.0-beta03 - Andrey Kulikov

    Posted: 02 Nov 2021 09:29 AM PDT

    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]

    We created figma plugin for easy convert from Figma designs to Android Jetpack Compose code.

    Posted: 02 Nov 2021 11:48 AM PDT

    https://www.figma.com/community/plugin/1030354617366499719/Figma2Android

    Usage just install figma plugin and open the plugin window in Figma, select a node to get the Jetpack Compose code to display it!

    If you have any feedback or questions about a plugin, feel free to contact with us https://figma2android.tech/contact.php or here. We'd love to hear from you!

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

    Manually downloading android OS

    Posted: 03 Nov 2021 06:17 AM PDT

    My mother recently bought a samsung a21s and set it up her self...

    she has not only forgt the password but also logged in using a old google account.

    i tried to hard reset it but after a couple set up settings it still asks for the pattern/google account log in.

    i noticed within the hard reset settings you can 'update from SD card'. but i cant find the download for the android OS anywhere. or mabe i just dont know what im looking for.

    if anyone can help id be super greatful :)

    submitted by /u/TheGraham123
    [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]

    Trying to understand why a user can't download our app

    Posted: 02 Nov 2021 12:44 PM PDT

    Trying to understand why a user can't download our app

    Thanks in advance. This one has been a head-scratcher, and Google support have been no help at all.

    We have an app that we've released on the store that supports Android 8.1 and above.

    defaultConfig { minSdk 27 targetSdk 31 } 

    Our user (a major stakeholder for us, hence the deep dive on this issue) cannot download this app with their Galaxy S9 or S10, both of which are on Android 10 and 11 respectively (confirmed through screenshots). Here is the message the Play Store gives this user:

    https://preview.redd.it/urcec9exj8x71.png?width=480&format=png&auto=webp&s=db823464f135e052f31155879e1cdca5cd6d50c0

    The response from Google support was essentially

    I've looked into your issue and found that your app is not compatible with the SM-G973W for android versions 22 and 25 for your release version number 17. due to a conflict in your app's manifest with the following: "Unsupported framework".

    I tried to get more info out of them but it was like talking to a brick wall. All they suggested was supporting Android 5.0 (API v22), but couldn't say why.

    I will be super grateful to anyone who could shed light on this issue. It's not a great story for our stakeholder that their phone isn't supported but we can't tell them why.

    Edit: we've also managed to successfully launch the app in the emulator for both the S9 and the S10

    submitted by /u/f-algebra
    [link] [comments]

    Look this ridiculous tactic to lure in ad clicks

    Posted: 02 Nov 2021 04:28 PM PDT

    I have had ad limits on admob just because I was having 2 native ads on a single activity. But look at this. Adsense supported website are getting away with this bs. They even have this protruding views just to get accidental clicks.

    https://reddit.com/link/qlh8p7/video/zojpce83o9x71/player

    submitted by /u/GasSea1599
    [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]

    Wrote an article about gradle properties and shared some cool ones that helped improve build speeds

    Posted: 02 Nov 2021 02:13 PM PDT

    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]

    APNG vs GIF memory consumption

    Posted: 02 Nov 2021 10:47 AM PDT

    Hi,

    Right now, I'm using GifDrawable to show GIF stickers in my app, the current issue is the displayed GIFs takes a lot of memory, the low-end devices will have a performance issue using my app, so I wonder if I migrate to apng-drawable this will help me get better performance?

    Thank you

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

    Looking for a browser that run website (GPS) in the background

    Posted: 02 Nov 2021 05:21 PM PDT

    Hi, i'm coding a website and a PWA app which will locate my device every 15 seconds.

    But i need it to work in the background and i can't code a native app now.

    Is there a special browser i can use to do the trick and/or special settings.

    Any help will be very appreciate

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

    In-App Purchases

    Posted: 02 Nov 2021 12:07 PM PDT

    In-App Purchases

    I'm trying to test the app with In-App Purchases but from my understanding, I cannot do that until the app is in "Draft" mode. I tried to publish the app in internal testing. Now the app is in both the draft and internal testing mode. What do I need to do to make the app completely in internal testing?

    https://preview.redd.it/9cth9khsd8x71.png?width=1576&format=png&auto=webp&s=854cfcb928f8f2d9a06e5227aebc9b147a857a7f

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

    No comments:

    Post a Comment