• Breaking News

    Wednesday, April 15, 2020

    Android Dev - Understanding the android build process, what is Dalvik(JIT),ART(AOT),D8,R8?

    Android Dev - Understanding the android build process, what is Dalvik(JIT),ART(AOT),D8,R8?


    Understanding the android build process, what is Dalvik(JIT),ART(AOT),D8,R8?

    Posted: 15 Apr 2020 04:32 AM PDT

    Google Play now shows app rating, size, and download count in search results

    Posted: 15 Apr 2020 08:25 AM PDT

    Modern Android Development with Zhuinden - Gabor Varadi

    Posted: 14 Apr 2020 09:17 AM PDT

    How you can UI test QR code scanner or receipt scanner apps

    Posted: 15 Apr 2020 07:47 AM PDT

    native Android app with Kotlin and Rust - code review request

    Posted: 14 Apr 2020 08:30 PM PDT

    native-android-kotlin-rust is an example project intended to be sufficiently complete for those crossing over from either Rust to Android development or vice-versa.

    Although I had been using Rust for a few years, this was my first Android app of any kind whatsoever, learning Kotlin along the way, etc.

    How might this code be improved beyond known issues noted in the various READMEs?

    Thanks!

    PS - There's an equivalent thread in the Rust sub.

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

    "Prioritizing the review of apps published, commissioned, or authorized by official government entities" - what does this mean in practice?

    Posted: 15 Apr 2020 12:03 AM PDT

    According to Google's COVID-19 policy:

    At the same time, in order to help ensure we are providing users with accurate and timely information relating to COVID-19, we also are prioritizing the review of apps published, commissioned, or authorized by official government entities and public health organizations.

    However can someone elaborate on this? Specifically for financial / banking apps. We have to be authorized and approved by government to be a bank so does that count?

    If so what's the process for telling Google this? Is there a form or a box we tick and upload a document or something? Google are less than helpful in their blog post.

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

    Server-driven UI using jetpack compose

    Posted: 14 Apr 2020 06:52 PM PDT

    Activity and Fragment

    Posted: 15 Apr 2020 02:49 AM PDT

    Hi. I'm creating an app. My idea is to use just one Activity as the base container for various Fragments. Here are some questions:

    • if I want to add a listener on a button placed on a fragment, should I put the onClick method in the Activity or in the Fragment?

    • if I declare some variables in the Activity, can I pass them to the Fragments through constructors?

    • should I initialize my ViewModel in the Activity or in a Fragment?

    Thank you.

    submitted by /u/-ant_
    [link] [comments]

    Android SFX - Whats best these days, SoundPool, MediaPlayer or AudioTrack?

    Posted: 15 Apr 2020 08:40 AM PDT

    I'm working on a new project and for the first time I'm actually having requirements around playing sound effects.

    Whats some more recent advice over what (of the typically many) systems in Android is best to use?

    Requirements are roughly (although maybe not completely limited too)...

    • Android 5.1+
    • Looping
    • Simple Play/Stop - no need to pause/resume but would be nice to know its possible
    • Fixed rate (again, support for changing playback rate might be nice but not essential)
    • Volume control - ideally, but not need for controlling left/right volume/channels
    • Small audio files
      • Currently all WAV (MP3 support might be handy)
      • All <100kb in size, no more than short clips or simple looping effects

    Would the suggested approach be to use SoundPool, load in all the Wav files (10 in total all around 50kb avg) and then use SoundPool to play as and when I want them?

    Googling brings up lots of old threads (8+years), some complaining of issues with SoundPool and it crashing on devices (this was all Android 4.4 era though). Is SoundPool still the thing to use or is there something nicer?

    NOTE - Just an FYI, I'm a Xamarin developer (Native, not Forms), but my go to approach is always find the recommended native way and then do it that way if I can.

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

    Looking for an up-to-date Android + Rails Tutorial for User Login

    Posted: 15 Apr 2020 08:02 AM PDT

    Hi,

    I am looking for something like this: Android + Rails Tutorial

    It is 7 years old though, so I would love to find something more up-to-date. Any recommendations?

    Thanks a lot!

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

    SharedPrefrencesImpl.java Issue

    Posted: 15 Apr 2020 07:44 AM PDT

    My application does not work on some phones, but it is working flawlessly on other phones. I use sharedpreferences in my application and the reason for the error is as follows;

    Class name: java.lang.ClassCastException

    Source file: SharedPrefrencesImpl.java

    Soruce method: getInt

    Line number: 302

    What I don't understand is why some phones have such an error. Please help me!

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

    MVVM Navigation for a Game?

    Posted: 15 Apr 2020 07:34 AM PDT

    Hello, I am trying my best to adhere to MVVM best practices in regards to navigation in my multiple-choice arithmetic game. Since it is a game, i don't want the user to have the typical options of nav-bar at the top/bottom of the screen.

    I have three viewModels, for three Views. 1. Start/Start ViewModel. 2. GamePlay/GamePlayViewModel. 3. EndPage/EndPageView Model.

    I currently have on my start button a comand to launch GamePlay. The issue is that it is a view model is calling the view.App.Current.MainPage = new NavigationPage(new GamePlay());I would love to decouple the dependency if possible.

    I also have the GamePlayViewModel call the EndPageView when a condition is met(timer == 0). Again, i don't like it, but it seems to be ok.The Big problem: I need a better navigation so i can pass score parameter to endpageviewmodel and do my calculations. If i rely on just calling the view from the viewmodel, i dont see how i could pass a parameter that the vendPageviewModel constructor needs.

    I hope im being clear, this is a really simple app but the most complicated real project i have worked on. Thanks for reading!

    submitted by /u/shell-surfer
    [link] [comments]

    How would I go about developing an alarm clock app?

    Posted: 15 Apr 2020 07:33 AM PDT

    I'm new to app development and trying to wrap my head around this. I've made a listview for (dummy) alarms with working custom elements, and on my way to make a create alarm activity. I've looked into the technical things about actually setting an alarm with alarm manager and can't really wrap my head around how I make an alarm object I can edit, delete etc. Do I make an Alarm class and a singleton AlarmContainer class? Is a local database required or can I pull it from Android's AlarmManager or something? I'll admit I know nothing about how to save stuff in Android. How do I save all the stuff AlarmManager doesn't?

    Basically I need some guidance on the whole data structure and design aspect of things. All tutorials I've looked up show you nothing about making a listview or manipulating your alarms in any way, it's always just very simplified; one alarm set on one screen. Some source code or a better resource might be very helpful.

    https://imgur.com/67qtGts

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

    How to get User's Current Location using Android Studio | Full Tutorial w/ Source Code

    Posted: 15 Apr 2020 07:20 AM PDT

    Room, Retrofit and LiveData tutorial?

    Posted: 15 Apr 2020 06:30 AM PDT

    Can anyone here recommend me an up to date tutorial going through the process of getting and sending data from a rest api, caching it locally and presenting it to the user? I assume it would include the technologies mentioned in the title of this post but I'm open to suggestions

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

    How to give text in a button a drop shadow?

    Posted: 15 Apr 2020 02:17 AM PDT

    Beginner here. I'm having a tough time figuring this one out and my Google searches just keep coming up with adding a shadow to the button OR text but not text that's in a button.

    I'm trying to have yellow text with a black shadow. Am I missing something obvious? Any ideas what I should be looking up? Thanks!

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

    App reviews and the coronavirus outbreak. Is there a way to tell if my app needs manual review?

    Posted: 15 Apr 2020 05:20 AM PDT

    Recently our app has been suspended by the play store because it contained the "coronavirus" keyword in the store listing, no mentions of the virus in the app, just the store listing.

    We offer a service to avoid queues outside places by obtaining a virtual ticket so the user can go to the place when her turn comes, our government endorsed us because we avoid gatherings, we're offering the service for free for the time being to help population.

    The suspension was a misunderstanding and we've been brought back online on the play store in matter of hours, after deleting the "coronavirus" word from the store listing, however, we've rolled an update and, although the google play console communicates a 100% rollout (it was a staged rollout from 20% to 40% and then to 100%), the users aren't able to download the latest version, but just the one before the app suspension.

    There's a big popup saying to expect 7 days or more of review time due to the coronavirus outbreak, so I'm starting to think that even if the google play console says so, we've not actually rolled out our update, but are instead in a queue, waiting for manual review and approval, because we might have been somehow "blacklisted" for the previous (erroneous) suspension.

    All the other apps we own get released right away, it's just the suspended one that doesn't go live (despite what the google play console says). We've already contacted support to know what's going on, and I'll update with an answer as soon as we receive one, but in the meantime I'd like to know if there is a way to tell if our app, which previously didn't require manual review, is in some sort of manual review list.

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

    Is it possible to take an exported Whatsapp.txt and convert back into a chat via backup?

    Posted: 15 Apr 2020 04:37 AM PDT

    Admob account keeps getting disabled

    Posted: 15 Apr 2020 03:58 AM PDT

    Hi all,

    I have been constantly having my admob account disabled for having a duplicate account for the last couple of days by Google. The email says it belongs to an email address that I have never seen in my life and I have never used google admobs before a week ago so there is no way it is mine. I have been looking across the forums for some way of contacting google but I cant see anything anywhere. Has anyone had this issue? All I want to do is speak to someone and explain to them that this email address is not owned by me. My app released several days ago and due to admobs not being approved I am losing out on revenue everyday that passes.

    Any help would be greatly appreciated!

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

    Why do Vendors always ask to integrate their libraries?

    Posted: 15 Apr 2020 03:51 AM PDT

    Why do Vendors almost ask to integrate their libraries? Say , they collect some data using their library and do some operations.

    We can send the data over an API call and they can do the operations at their end. Is there any reason they insist on doing it using a library?

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

    Starting my first "big" project, advice?

    Posted: 15 Apr 2020 03:40 AM PDT

    I have recently (a month ago) started learning android development. I am a beginner at this, but I have some iOS dev experience so I can say I understand how some stuff functions here.

    All I have done so far is just implementing features and building small projects, so 0 organization, 0 architecture.

    Today, however, I'm starting my first biggish Android project (for Google's DSC Solution challenge) and I need your advice.

    do you set up any configurations or edit any build files before starting a serious project? or should I just start as usual by creating a new project with empty activity? which would you say is better for Android dev: MVC, MVP, or MVVM? (I have mainly worked with MVC in iOS dev, should I stick to it?).

    I would appreciate any extra advice on this! ty all!

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

    What is Android Jetpack? Know About Android Jetpack Components & Architecture

    Posted: 15 Apr 2020 03:34 AM PDT

    Can't run my app after generating signed APK

    Posted: 14 Apr 2020 06:49 PM PDT

    A project I was working on for school is no longer able to be ran from Android Studio after generating a signed APK. This was part of the requirements for the project. Now that I am done with the project, I am going back to make some improvements to the UI and various aspects of the application in order to use it in my portfolio. When I try to run the app from Android Studio I get the following error:

    Build: failed

    Entry name 'META-INF/androidx.legacy_legacy-support-core-utils.version' collided

    I have tried searching a few places for an solution to the problem, and haven't found anything with the same error that I am seeing.

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

    Roadmap to develop Android for Newbie

    Posted: 14 Apr 2020 02:15 PM PDT

    Hi! I am learning Kotlin. How should I proceed to master Android development after that? After learning what I can call myself an Android Developer and I can go looking for a job?

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

    No virtual method getTableOrView() Error using with Realm

    Posted: 14 Apr 2020 05:55 PM PDT

    I followed the following guide on how to implement Realm and a Recyclerview:

    https://academy.realm.io/posts/android-realm-listview/

    However I my app crashes with the following Error:

    java.lang.NoSuchMethodError: No virtual method getTableOrView()Lio/realm/internal/TableOrView; in class Lio/realm/RealmResults; or its super classes (declaration of 'io.realm.RealmResults" 

    RealmResults in implemented in the ModelRealAdapter class here, where model is a Class Model:

    public ModelRealmAdapter( Context context, RealmResults<Model> realmResults, boolean automaticUpdate, boolean animateResults){ super(context, realmResults, automaticUpdate, animateResults); } 

    I'm guessing this is just outdated, how should this look instead?

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

    No comments:

    Post a Comment