• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, October 2, 2019

    I developed a plugin for Android Studio/ Intellij Idea for no reason but to have SpongeBob taunt Gradle for taking an eternity to build your app. It plays a drum roll sound on compile/build. and other equally-fun sounds when build yields errors, or warnings. Android Dev

    I developed a plugin for Android Studio/ Intellij Idea for no reason but to have SpongeBob taunt Gradle for taking an eternity to build your app. It plays a drum roll sound on compile/build. and other equally-fun sounds when build yields errors, or warnings. Android Dev


    I developed a plugin for Android Studio/ Intellij Idea for no reason but to have SpongeBob taunt Gradle for taking an eternity to build your app. It plays a drum roll sound on compile/build. and other equally-fun sounds when build yields errors, or warnings.

    Posted: 02 Oct 2019 09:13 AM PDT

    Android Studio 3.5.1 available

    Posted: 02 Oct 2019 12:08 PM PDT

    The Mess that is Android Biometrics - Evan Tatarka

    Posted: 02 Oct 2019 09:26 AM PDT

    Anyone else experiencing layout bugs with ConstraintLayout and BottomNavigationView?

    Posted: 02 Oct 2019 03:45 AM PDT

    I'm experiencing some super weird bugs and I'm curious why it's not a major issue for more people. For example on this gif:

    https://imgur.com/a/s2tXQWR

    Everything seems normal. But when I open the keyboard with soft input mode resize (or adjust pan) and close it, the layout isn't triggered to put views back in their places. You can see I can interact with bottom navigation normally. But only after I click an item the layout is triggered and the views jump to where they should be.

    I noticed this happens with ConstraintLayout beta2 and BottomNavigationView. Other examples of broken things in my app were e.g. when I opened keyboard to type a search term and submitted it, the list should change. And it does, but I still see the old list until I scroll it, which triggers layout and the views get updated. Or I navigate to another fragment, and that fragment isn't measured at all. App is broken, basically. For now I'm just using soft input mode adjustNothing, but it's obviously not a solution.

    I've opened an issue on google tracker and it's on assigned but as we all know it might take anywhere from a month to 10 years to fix this :|

    Did anyone else have similar issues? Maybe you did but didn't realize what was causing them? Does anyone have a reliable workaround?

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

    Help in understanding what the whole lifecycle ViewModel thing is doing...

    Posted: 02 Oct 2019 03:10 PM PDT

    As an iOS programmer, I am constantly confused when trying to develop in Android. A few years ago I started working on an android app and got pretty far without realizing that Activities are NOT ViewControllers, and that they get destroyed and you lose all your inputs during a rotation or a user sneeze. I am still not sure exactly what Fragments relate to, other than they are sort of like reusable activities that run inside another activity. I am now building some UI for another application and I thought I understood the whole fragment (with View Model) thing. So here I am with a fragment that contains a NavHost Controller Fragment, that presents a series of screens depending on authentication and stuff.

    The whole main activity has a bottom menu navigation and when a user selects one of those it changes the swaps out the layout of the current fragment with the one associated with the menu item.

    What I am trying to do:

    Once a user has authenticated, the navigation moves to a list of authenticated items. If the user hits another menu on the bottom and then goes back, the navigation should restore it's state.

    So in my ContentSelectionFragment that contains (or is) the navHostFragment, there is a VIewModel that is shared between all of the fragments that can be navigated to, and in that ViewModel is a stored navigation state that is updated every time navigation destination changes.

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    viewModel = ViewModelProviders.of(this).get(ContentSelectionViewModel::class.java)
    if(viewModel.navigationState != null){
    this.findNavController().restoreState(viewModel.navigationState)
    }
    this.findNavController().addOnDestinationChangedListener { controller, destination, arguments ->
    Log.i("Destination", "I Changed to $destination")
    this.viewModel.navigationState = controller.saveState()
    }
    }

    The problem is that every time I go to a different menu item and come back, instead of the SAME ViewModel being returned, there seems to be a new instance of one...

    So I hit a button that authenticates, then calls navigationController.navigate(R.id.authenticedItems) which triggers the changelistener where I break:

    first run through my debugger shows the variable as:

    viewModel = {ContentSelectionViewModel@5618}

    I step into this.viewModel.navigationState = controller.saveState() to confirm that navigationState is being set and no longer null, which it is, then I continue, hit another menu item, then go back to the original menu item, which triggers a break point in onViewCreated and the debugger now shows the variable as:

    viewModel = {ContentSelectionViewModel@5742}

    and sure enough, viewModel.navigationState is null.

    I thought the point of a ViewModel was that it stuck around after the activity was destroyed so you could retire your views state. Why is my viewModel being recreated?

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

    How do I de-obfuscate Fabric's (Crashlytics) obfuscated crash report?

    Posted: 02 Oct 2019 01:39 AM PDT

    Hi,

    I got a crash report of my app in Crashlytics like:

    Caused by java.lang.NullPointerException

    Attempt to invoke virtual method 'int d.a.a.p.b.a.i()' on a null object reference

    Which is really interesting, because the other crashes I got are not obfuscated... which I don't understand in the first place, but how can I de-obfuscate this code to check out the issue within my app?

    According to this Crashlytics supports both ProGuard and DexGuard and it has auto de-obfuscation, so I really don't know how this is possible. I shouldn't see obfuscated code at all amongs my crash reports.

    What am I missing here?

    Thanks in advance,

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

    Continuous testing with new Android emulator tools

    Posted: 02 Oct 2019 02:49 PM PDT

    Decentralized android application development

    Posted: 02 Oct 2019 02:01 PM PDT

    I'd like to develop a relatively basic android application that is built on the top of some kind of decentralized ecosystem. I'd like to focus on my little business logic and try to infest less effort to the low level implementation so I'm looking for a suitable framework for this.

    First I tried to use Holochain which is looked a good choice but the android support is not good enough. After that I found blockchain technologies like Ethereum so I tried to use geth on android to run my light node on the device but it is fairly limited and not really up to date for android because this release is from late 2018. I had issues with the bootnode and this kind of stuff and I didn't really find any good tutorial or documentation about this. Then I tried Web3j and this kind of stuff but the point should be that the node is running on the device and not in the cloud or on a remote desktop.

    So my question is that is there any good, not alpha/beta/pre-release framework that could support my project?

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

    Best way to start an adword campaign for my app

    Posted: 02 Oct 2019 03:57 PM PDT

    I have a $75 credit in my google adword account and I was wondering what is the best way to make it work and get a huge boost in installs? I know $75 is not a lot :/

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

    Creating AR experiences on Android with Unity

    Posted: 02 Oct 2019 07:47 AM PDT

    Hi everyone,

    Here's a tutorial that shows how Android developers can work with Unity and on-device machine learning to create an authentic, responsive AR experience for mobile (in this case, both Android and iOS -- apologies for the cross pollination). This tutorial integrates Unity with Fritz AI, a machine learning platform for mobile developers, and uses 2D human pose estimation to allow a 3D object (a bird) to interact realistically with a human.

    Hope this is helpful/interesting to folks here. Happy to help/answer any questions I can.

    **Disclaimer/Disclosure: I work on content and community for Fritz AI, and this is an official tutorial that accompanies the initial release of our Unity SDK.

    Tutorial link: https://heartbeat.fritz.ai/create-ar-experiences-with-the-fritz-unity-sdk-bird-perch-tutorial-with-pose-estimation-aff5b85c633b

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

    my app not showing in my dev page or search results.

    Posted: 02 Oct 2019 04:59 AM PDT

    my app not showing in my dev page or search results.

    Hello,i published a app around 2 weeks a go and it got approved and everything is good , but i noticed that i have 0 install for more than 2 weeks and when i tried to find my app yesterday i couldn't find in search keywords results even when i went to my Dev page i couldn't find it , any one can help me i don't know why because it's been two weeks , i thought it's because of sandbox but it's been a lot of time for two weeks and still not showing up

    This is the notification i got, even that it's approved

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

    Use Android KeyStore to generate a Secret Key for AES Encryption/Decryption

    Posted: 02 Oct 2019 01:52 PM PDT

    Does/Will Firebase app distribution help with Playstore 'lockin' ?

    Posted: 02 Oct 2019 01:41 AM PDT

    Do apps distributed via Firebase App distribution also require me to maintain them "for ever" once anyone has installed them?

    Having read about the difficulty (even impossibility) of ever being able to retire an app from the playstore or cease maintaining it, even if it was only distributed to particular individuals as a closed alpha, due to the "zero lifetime installs" requirement, I wonder now if the Firebase App distribution mechanism might help?

    In the early development stages, I would like to have an app prototype (almost no functionality, really just a slightly fancier wireframe model) which I could distribute to my client and do "iterative development" with for a while. I know I could use something like Figma or similar tools, but I find using flutter to develop prototypes easier. Also, my clients can use their tablets/phones/other devices to experiment with and could access test data on my firebase test database etc. I have previously distributed such test versions by "sneaker net" and a cable but that means a) clients need to be very local and b) I have to eneable developer mode on their phones ... not a sustainable situation.

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

    Precautions on pushing code involving In-App Purchase?

    Posted: 02 Oct 2019 06:17 AM PDT

    Hi,

    I have a free (includes ads) open-source app in Play Store. I am now integrating in-app purchase in it to remove the ads. I have integrated Google Play Billing library. Although that doesn't involve any kind of secret API key or what-so-ever, I want to be extra-assured that pushing the latest code to GitHub won't cause any of issues. Will it?

    P.S. I did push `google-services.json` file once and I regret that :( That's why!

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

    The Best of Mobile Geo-Targeting

    Posted: 02 Oct 2019 09:51 AM PDT

    The Best of Mobile Geo-Targeting

    https://i.redd.it/6g68z2uoo5q31.jpg

    The location tracking is an important tool in current mobile application technologies that lets you choose your target locations to reach out to your customers. To implement location targeting through mobile marketing is even more beneficial. In the current digital marketing competition, mobile marketing is an essential aspect of an effective marketing plan to focus on. Mobile geo-targeting (mobile location targeting) is a great tool for a mobile marketing strategy that has the potential to prompt your business forward.

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

    How to make a fingerprint scanner?

    Posted: 02 Oct 2019 09:23 AM PDT

    Hey guys! Im having trouble finding good code in java for fingerprint scanner. I want something like you have on samsung when you are unlocking your phone. You put your finger on small photo of fingerprint it has animation going green if it is good. Thank you for your help!

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

    Is ViewModel its own design pattern architecture or just a part of MVVM?

    Posted: 02 Oct 2019 08:44 AM PDT

    Hi everyone,

    For some background I'm not necessarily new to Android but I'm still in school and have only done internships where I never really got into Android architecture and I'm really trying to learn that aspect of Android before I graduate and start my job (junior android dev).

    At the last company I did an internship at, I know we used a model view viewmodel architecture which took advantage of livedata (same data binding?). I never dived deep into what it all means and how it all connects but I touched a lot of the components in some way.

    As for my question, I'm working on a small little side project that I know I could do without really using an architecture design pattern but I want to use one. When I first started my project, instead of "Empty Activity" I chose "Fragment + ViewModel" and was going to sort of follow this tutorial for setting up viewmodel + livedata. https://www.youtube.com/watch?v=d7UxPYxgBoA&list=LL4Wk6PSCZEz0gQT5tFt07nA&index=3&t=2s

    Would this be like working with MVVM? The title says MVVM but I'm not sure if when I see "ViewModel" discussed it's its own thing.

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

    Missing text in Android Emulator

    Posted: 02 Oct 2019 04:03 AM PDT

    Missing text in Android Emulator

    Hello, I've used Android Emulator for a little while now, mostly previewing my app and how it behaves etc.
    To my issue:
    Yesterday after cold booting my emulator because it was acting up all text was behaving very oddly, it was missing all over! I tried reinstalling, using different devices, pretty much everything I can think of, but I have no clue how to fix it.

    I've searched all over on the issue and only found one different person having the same issue, but there was no replies or "UPDATE: Solution..." to that...

    Similiar issue found: https://stackoverflow.com/questions/56893115/missing-most-text-on-android-emulator

    Here's an image on how it looks:

    Odd text all over the Emulated system.

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

    Gradle Remote Build Cache Misses

    Posted: 01 Oct 2019 06:13 PM PDT

    I started the Udacity android nanodegree two years ago. I had to stop with it. Now I want to get back to android development. is the nanodegree still relevant ?

    Posted: 02 Oct 2019 06:04 AM PDT

    I'm talking about the Android Basics nanodegree by google that can be referenced at Udacity website.

    The courses in the nanodegree that are located in my hard drive are 3 years old.

    I will add that i want to learn it for fun and at my own pace .

    Is it still relevant ? Someone knows if the nanodegree courses gets updates and new format or they're still the same ?

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

    How to do the opposite of Matrix mappoints?

    Posted: 02 Oct 2019 05:17 AM PDT

    Hello!

    I'm in a bit of a struggle here and I figured that maybe here someone could help me.

    I'm writing an app where coordinates inside an ImageView are kind of relevant. For this to work between all devices I create an Matrix and then invert the imagematrix into the Matrix.

    Now is there any way to undo this action? Matrix transforms a coordinate into the coordinate inside the Bitmap, but what if I wanted to do the opposite and get a screen coordinate from the bitmap coordinate? Would that even be possible?

    Thank you!

    That's the code I use to get the points inside my Bitmap.

    Matrix imgMatrix = new Matrix(); mImgLearn.getImageMatrix().invert(imgMatrix); float[] touchPoint = new float[2]; touchPoint[0] = ev.getX(); touchPoint[1] = ev.getY(); imgMatrix.mapPoints(touchPoint); 
    submitted by /u/qbase25
    [link] [comments]

    Join our new subreddit r/VisualSchool. It will help you learn visually exactly what matters

    Posted: 02 Oct 2019 04:44 AM PDT

    Dear fellow designers, programmers, students and teachers,

    We are happy to invite you to our brand new reddit community: r/VisualSchool . Here you can learn coding, design, marketing, dev ops, security and many other skills. We want to radically improve the online learning experience by providing a visual map of knowledge trough our innovative learning platforms.

    How can we improve our learning platform and help you to learn faster?

    Leave us feedback on r/VisualSchool

    Why Visual School?

    · Because learning is slow – Our current experience learning online is very rough. We are forced to spend lots of time searching for the right material. We are forced to drain lots of energy just to understand the basics.

    · Because we lose focus – We start learning one thing and then the next few hours we are all over the web trying to put the puzzle together. It's like going downstairs to dump the trash and returning several hours later after you were attacked by a grizzly bear in Las Vegas.

    · Because we are missing know-how – On a daily basis we start reading some tutorial and then we find lots of strange unfamiliar concepts. All these gaps in knowledge prevent us from learning fast. Worse they divert our attention away from the main topic.

    How will we learn on Visual School?

    · Elastic lessons – All the tutorials in Visual School are optimized to be "stretchy". Depending on how skilled you are you can adjust each part of the lesson to give you more or less content. Users ranging from complete beginners up to experts can consume the same set of tutorials adjusted to their own needs.

    · Speed reading – All our tutorials will be optimized for speed reading. Our approach is to integrate carefully selected and designed graphics and animations. It will look and feel like a hybrid between text, slideshows and video all optimized for learning fast. The accent is on quality not quantity.

    · Learning map – Think of it as a subway map. Our aim is to map all the important destinations and focus your attention on what makes the biggest impact in your daily life as a professional. This map will give you awareness of the big picture.

    · Learning goals – You will be able to setup goals and our platform will help you plan ahead a faster route towards your professional goals. We encourage exploration in all ways and forms, all while maintaining a clear deadline and end-goal.

    · Nano Lessons – For every new unfamiliar concept you discover in the lesson you will have a mini lesson about it one click away. It will help you focus and stay on track without feeling lost.

    What will Visual School be?

    · Visual School is the platform where you can study matching your own level of experience

    · Visual School maintains your focus while studying a certain subject.

    · Visual School fills in the gaps of knowledge right on the spot.

    Who is the audience for Visual School?

    · In this current group we invited only profiles that are either strong developers or strong designers. This selection is a good representation of the audience we are targeting. We intend to reach the global market of developers in the early phase. Our first iteration of content will be about programming.

    The ultimate goal of Visual School is to reduce the time spent learning and to increase the time spent coding meaningful projects. Current generation of tutorials does a decent job. The next generation of tutorials will kick ass! We want to lead the way towards this future.

    Cheers!

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

    I need some help!

    Posted: 02 Oct 2019 03:15 AM PDT

    I'm doing this app for myself, where I have one small database. I display the products on a recyclerview, and I want to be able to update database with a switch button, each cardview has one, I want to update database with a 1 if it's checked, or update it with a 0 if it's not. I'm using Room to manipulate the data but everything I found about updating on Room is using some kind of EditNoteActivity, and I have trouble with that.

    I assume I can do the update with a swtich (because I didn't found anything that told me otherwise), but got stucked too much and I'm sure is just a silly thing I didn't realize, so that's why I'm here asking for help. I'm learning Android throught this project so if you think I did some stupid mistakes please tell me, because I probably did.

    Thanks!

    PS: I think I did nothing against the thread rules, but first time posting here so sorry if I did something I shouldn't

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

    BaseAdapter getView() showing repeated objects and in disorder (Java).

    Posted: 01 Oct 2019 05:30 PM PDT

    I have different path references in a Firebase Db, and I needed them stored in a list (not SQL nor Room, which is the same, just a List) in a particular order.Because the Firebase Listeners are extremely async, specially between Child and ValueEvents, I did a custom LiveData<DataSnapshot> class with a Guarded Blocks code that SingleValueEvent-Listens all the things I want within all the routes I want, In the specific order I want and sets the value to itself accordingly.

    It worked extremely well, specially inside the .observe() of the LiveData, and the re-usability of this (lets say) _router_ is glorious.

    I did a submitList(DataSnapshot dataSnapshot) method inside the BaseAdapter.

    Now, because the different snapshots are of different Values, I also made a parser that identifies the kind of value inside the snapshots and then adds them already parsed with their respective classes inside an abstract list of type ArrayList<Object>, what the parser does is it checks for values previously submitted by me inside an array of constructed things (called it "ValueClassRelator[] relations" with params (String s, Class c)), and then fori them to check if the value of the snapshot (be it parent Key, Key or Value inside of it, depending on the method used...) matches the String of my relations[i].getString(), if so it getValue's their respective relations[i].getClassValue().

    Again with extreme re-usability, I checked it and it works.

    This parser is inside the submitList() method

    Now, when I Log.d the List after each notifyDatasetChanged() it shows exactly the order and items that I want inside of it...But when it get pass the getItem(int position), they are in disorder and repeated objects...in complete disarray...

    Why?

    What I'm I doing wrong?

    Should I use RecyclerView? Should I parse the items before submitting the List?? Is it because it is a List of Objects? is it because the fori, is it too expensive??

    Is it a bug??

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel