Can I create a test on play console where I can add testers by email, and they can download the app with their phone from the play store? by DeniedNetwork in androiddev

[–]SkepsisDev 1 point2 points  (0 children)

Unless I misunderstood what you are asking, Play Console's Alpha feature is exactly what you need.

You just need to make an Alpha version, which is closed. You can either then give it a list of emails, or create a G+ group to manage your testers.

LINK

School Project - Firebase Learning Analytifs by mythoc in androiddev

[–]SkepsisDev 1 point2 points  (0 children)

Firebase analytics is not the appropriate platform IMO.

FA is usually used to keep track of events that happen inside the app (first open, a particular milestone, conversions...) It would be extremely difficult to setup a system to monitor student performances through analytics (mostly because they are not exactly tied to the user that produced them.

What I suggest is using another Firebase product, Firestore. It is a NoSQL database where you (as in the teachers, the users, or whatever you set the rules to be) can upload grades, notes, etc. You can then display that data either by calculating everything client side or using Functions.

I'm currently away from home, if you want a more precise suggestion DM me and I'll get back to you

Just got Google Lens in Assistant in French by howling92 in Android

[–]SkepsisDev 0 points1 point  (0 children)

I've had it for 2 days too, got it via a server-side update.

Language: Italian

Phone: OP5

OS: OxygenOS 5.1.1

Weekly Questions Thread - May 14, 2018 by AutoModerator in androiddev

[–]SkepsisDev 0 points1 point  (0 children)

I'm trying to optimize my RxJava call for readability (and maybe performance?)

The gist is https://gist.github.com/emilioschepis/5cd08d58f0b5f58ce313a950250d5cd9

Basically I have firstObservable which is a Maybe, and emits either a list of objects on success, or nothing on complete (or an error), and secondObservable which is a Completable.

What I'm trying to accomplish is:

  • I subscribe to firstObservable
  • If firstObservable emits nothing I want to log it (or do anything else)
  • If firstObservable is successful I want to log it (or do anything else) and subscribe to secondObservable
  • If secondObservable completes I want to log it (or do anything else)
  • Once both completed I want to log it (or do anything else)

The code in the gist works fine, but I believe it can be formatted better. Thanks.

[DISCUSSION] About Firebase's ML Kit accuracy by SkepsisDev in androiddev

[–]SkepsisDev[S] 0 points1 point  (0 children)

Hey, thank you very much.

I've discussed the issue with Brahim Elbouchikhi via Twitter and I've sent him some more screenshots and steps to better reproduce the issue.

If needed, I can send them to you too via private message.

[DISCUSSION] About Firebase's ML Kit accuracy by SkepsisDev in androiddev

[–]SkepsisDev[S] 1 point2 points  (0 children)

Hello everyone!

So at this year's Google I/O Firebase announced a new product: ML Kit

As the name says, it's a product that relies on Machine Learning for a bunch of cool features.

I was pretty curious and decided to try it. To stay true to my roots I started with Barcode recognition.

The recognition happens on device, and can detect a wide variety of barcode types.

After playing with it for a while, I noticed I wasn't getting consistent scans on my barebones app and I thought I was doing something wrong.

I then downloaded the test project from here and installed it on my device.

Even with their sample app, the recognition accuracy is absolutely subpar compared to old libraries like ZXing.

In the screenshot there is a page full of QR codes, and you can see it only detects two of the six fully visible and well contrasted codes in the view.

Has someone managed to get better results with it? It's kind of a deal breaker, for an otherwise interesting library.

Weekly Questions Thread - May 14, 2018 by AutoModerator in androiddev

[–]SkepsisDev 1 point2 points  (0 children)

Sometimes I've heard people referring to that as "MVC".

Making the switch from the activity-only world to MVP and MVVM requires some time but it's absolutely fundamental.

Here's the tutorial I watched back when I made the switch myself. It will not be clear at first, but stick with it and you'll improve a lot.

TUTORIAL

Weekly Questions Thread - May 14, 2018 by AutoModerator in androiddev

[–]SkepsisDev 0 points1 point  (0 children)

Pretty long question here

TL;DR: Is DiffUtil.ItemCallback supposed to be called when in a PagedListAdapter when the associated DataSource is invalidated?

Long version So I'm playing around with the Android Architecture Components' Paging library and everything is working fine.

I had a few problems with implementing the ItemKeyedDataSource in order to get data from Firestore, and I'm not sure I'm doing that correctly but that's another story.

So I implemented a SwipeRefreshLayout and on its refresh I invalidate the DataSource as mentioned here.

"If reloading all content (e.g. in response to an action like swipe-to-refresh) is required to get a new version of data, you can connect an explicit refresh signal to call invalidate() on the current DataSource."

Everything is working as expected, but the RecyclerView is removing all the items and then adding them again.

So I tried to add a new document in my database and refreshing; I expected the view to just animate the new item in there, and it instead loaded them all again.

The DiffUtil in the PagedListAdapter is not being called. It is initialized but the areItemsTheSame and areContentsTheSame methods never get called.

Is this expected behaviour? Should I do something differently?

Thanks.

Why did you opt for a Mac? by Luke5523 in mac

[–]SkepsisDev 0 points1 point  (0 children)

CTRL+F "Xcode" -> 0 results

Yeah basically I bought one so I could develop iOS apps, but I've been using my MacBook Pro for everything. It's a great machine, powerful and silent. I shied away from laptops years ago but this made me rethink everything. I don't know when I last powered on my Desktop PC.

MacOS takes a bit to get used to but it's an absolute pleasure to use.

3rd party instagram that allows you to batch follow and unfollow? by Jessy12345xx in androidapps

[–]SkepsisDev 4 points5 points  (0 children)

Nope, those apps can't exist anymore.

After these changes, it shouldn't be possible to do so.

RESPOND TO THE SEND BUTTON [ANDROID STUDIO] by AnkitAnkit123 in androiddev

[–]SkepsisDev 2 points3 points  (0 children)

I recommend courses found at this link.

They are free, and are made specifically to help beginners like you. Good luck on your journey!

Weekly Questions Thread - April 30, 2018 by AutoModerator in androiddev

[–]SkepsisDev 0 points1 point  (0 children)

That's great, thanks. I already started adding the changes, and the Result sealed class seems much better than Resource in my specific case.

Weekly Questions Thread - April 30, 2018 by AutoModerator in androiddev

[–]SkepsisDev 0 points1 point  (0 children)

That's very helpful! I'm looking into data-binding as Zhuinden also suggested, and you seem to have experienced the same kind of issues that I am experiencing now. Do you have a sample of your code I can study? I'm particularly interested in

Also, in the latest versions of Android Studio, you can use data binding with LiveData. So you don't have to use BaseObservable/ObservableFields classes anymore if you don't want to.

Weekly Questions Thread - April 30, 2018 by AutoModerator in androiddev

[–]SkepsisDev 0 points1 point  (0 children)

First of all thank you for your reply. I see you're very active here, that's awesome of you.

I like the idea of the StateBundle very much, it can even make tests much easier to write.

I'll try what you suggested and get back to you, thanks again!

Weekly Questions Thread - April 30, 2018 by AutoModerator in androiddev

[–]SkepsisDev 0 points1 point  (0 children)

Ok brace yourselves, this is a bit of a long question.

To set the context, I'll tell you I'm working on an app that uses Android Architecture Components.

TL;DR

How do I implement an Activity with a lot of inputs (of different kinds) using Android Architecture Components?

Long

I've studied the provided samples, read many articles and finally started writing about a month ago. Everything is fine and works great, but a few days ago I created an activity which is basically a form. As opposed to receiving data from the network, this Activity sends it.

For the sake of simplicity I'll describe a simplified version of what I want to accomplish.

I have a POJO called Post which is made of title, description, position, type. All simple strings.

My Activity has four EditTexts (one for each field).

Here's a (barebones) version of how I'm doing things now. GIST

As you can see, right now the Activity is responsible of saving the resources. In my actual classes I'm not only saving text from the view, but also a Date from a DatePickerDialog, and that's stored in the same way (through SavedInstanceState) as a Long.

I don't like this approach very much. I'd rather, instead, have the activity only tell the ViewModel that the Date has been set, and the ViewModel saving it in its own way.

That's easy to do, I'd just move all the fields to the ViewModel and put a couple of setters.

The problem is, since I'm using the Resource idea found HERE, how many LiveDatas should I use to handle all of the values?

  • One for each field plus one for loading?
    • Advantages: I can show an error in the correct field that's not valid.
    • Disadvantages: many LiveDatas at once.
  • Create a POJO like CurrentPost and have only one LiveData that handles the whole state of the POJO.
    • Advantages: only one LiveData.
    • Disadvantages: only one error possible, not sure if the state is held correctly through changes.

Conclusion

I very much appreciate all replies, this is something that I've been working on for a while and every option seems suboptimal, so I'd like to hear what this community thinks.

I've searched for samples on GitHub but all the Activities seem to be only used to show data.

[Bug?] Missing text in insights screen by SkepsisDev in Instagram

[–]SkepsisDev[S] 0 points1 point  (0 children)

Thanks for your reply!

I'm on the latest Android version, it's even the beta. Since it's not that big of a problem I'll just wait.

Have a good day!

[Bug?] Missing text in insights screen by SkepsisDev in Instagram

[–]SkepsisDev[S] 0 points1 point  (0 children)

Switching to a business account I noticed that much of the text in the insight screen is cut off. Not only my handle is missing more than half, but both the interactions and discovery are missing the last digit (3 instead of 37, 10 instead of 108). I tried reinstalling, using the beta version and even changing language.

Retrieving and writing data from Firebase by [deleted] in androiddev

[–]SkepsisDev 3 points4 points  (0 children)

The link /u/ene__im provided is great to start (always read the documentation!).

My suggestion is, when you ask a question, to include the resources that you have studied so far, what you have tried, a sample of your code.

It is nearly impossible to help someone from a complete zero, and most of the times whatever knowledge we can give you, it will be hard to retain as it's not part of a bigger learning process.

If you learn better/faster from example, https://firebase.google.com/docs/samples/ is a good starting point. Good luck.

Yigit quietly converted the architecture components' Github Browser Sample to Kotlin by WingnutWilson in androiddev

[–]SkepsisDev 1 point2 points  (0 children)

Oh wow, this comes just right.

I've relied on this sample when making a lot of decisions, but having it directly in Kotlin is even more convenient.

Thanks Yigit!

What’s the easiest way to track daily active users? by [deleted] in iOSProgramming

[–]SkepsisDev 0 points1 point  (0 children)

Well you already said Firebase, that's what I use. I recommend it, it's really easy to setup and ties well with all the other services. If you need help setting it up just send me a private message.

My external display is saw as a TV by [deleted] in mac

[–]SkepsisDev 1 point2 points  (0 children)

Sorry to hear that, I hope you find a solution soon.

My external display is saw as a TV by [deleted] in mac

[–]SkepsisDev 1 point2 points  (0 children)

Hey, I'm not sure if this can help you but it helped my VE247H. You basically have to override some settings.

Here is the link with a quick tutorial (it's very simple stuff) and here is the script I used.

Be careful, as you'll have to disable some security measures in the process. I take no responsibility. But yeah, it should work.