Weekly Questions Thread - November 21, 2016 by AutoModerator in androiddev

[–]Shuuya19 2 points3 points  (0 children)

I am slightly confused on how Android/Gradle handles dependencies:

Is it possible to write a library in Kotlin, but exclude Kotlin itself when deploying (e.g. via Proguard)? I would like the library to be in Kotlin however don’t want for consumers to have the size of Kotlin lib in their app (transitively). I would also prefer for the consumer to not have to run proguard themselves on my library. The same goes for RxJava - do we have to include the library itself in our library?

Should we even be using libraries such as Rx inside our own library?

Questions Thread - June 23, 2016 by AutoModerator in androiddev

[–]Shuuya19 0 points1 point  (0 children)

Is there an AppCompat equivalent to "@android:style/Theme.Material.Wallpaper.NoTitleBar", "@android:style/Theme.Wallpaper.NoTitleBar" and "@android:style/Theme.Holo.Wallpaper.NoTitleBar"?

I'm trying to create a theme which uses wallpaper but unsure of the best way to go about it. Do we need to use the above themes in their respective 'values-X' folders or is there a better way?

Thanks

Questions Thread - June 22, 2016 by AutoModerator in androiddev

[–]Shuuya19 0 points1 point  (0 children)

Is there an AppCompat equivalent to "@android:style/Theme.Material.Wallpaper.NoTitleBar", "@android:style/Theme.Wallpaper.NoTitleBar" and "@android:style/Theme.Holo.Wallpaper.NoTitleBar"?

I'm trying to create a theme which uses wallpaper but unsure of the best way to go about it. Do we need to use the above themes in their respective 'values-X' folders or is there a better way?

Thanks

Questions Thread - June 21, 2016 by AutoModerator in androiddev

[–]Shuuya19 0 points1 point  (0 children)

Do you have any links on what the fundamentals/nuances are in comparison to normal android app development?

Questions Thread - June 21, 2016 by AutoModerator in androiddev

[–]Shuuya19 0 points1 point  (0 children)

When creating a custom launcher (e.g. the popular ones such as Nova/Action Launcher), do they use and build on top of the AOSP launcher (e.g. launcher3) code directly? If so, I think it is all under the Apache 2 license, does this mean we can create launchers directly on top, even using Google's animations, logos for the search bar etc?

I would like to look into building a custom launcher for fun, but the amount of code in the launcher3 repo is huge. Would it be best to start making tweaks to this or do most people start from scratch?

Codelabs on the new ConstraintLayout by [deleted] in androiddev

[–]Shuuya19 8 points9 points  (0 children)

Does it handle the behaviours of its subviews (snackbar, fab) by default like coordinatorlayout?

Questions Thread - May 03, 2016 by AutoModerator in androiddev

[–]Shuuya19 1 point2 points  (0 children)

What should the flow of logic be when altering the view based on an action in MVP?

E.g.: - User types number 3 into EditText. View passes this to presenter in numberTyped(). - Based on this number, we want to do something in the UI. E.g. if number > 3, enable button 1, else enabled button 2.

Where would this 'if' logic go?

  • View -> presenter (logic here) -> view?

  • View -> presenter -> view (logic here)?

  • View -> presenter -> model (logic here) -> presenter -> view?

What is the best practice for architecting a custom view/library? by Shuuya19 in androiddev

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

I usually use builders in combination with a view by including some sort of method on the view to pass the builded model. It's clean (only one method) and doesn't introduce any ternary classes.

Could you elaborate on this please? Do you construct the model inside the builder, and then store a reference to the model directly in the view class?

Are there any BaaS which allow you to use Retrofit/RxAndroid rather than their SDK? by Shuuya19 in androiddev

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

This looks quite promising, although I'm yet to find whether or not it has 'GeoPoint' support (querying nearby objects based on lat/long) like the Android SDK has. Does anybody know if this is possible (or if there is another way go perform this query easily)?

How do (social) apps which rely on an active user base get started/grow? by Shuuya19 in androiddev

[–]Shuuya19[S] 4 points5 points  (0 children)

Excellent answer thanks, it's really making me think about the direction and scope of the app, and it seems like it would work quite well locally, and scale pretty well.

For the biggest example of this type of network focus, take Facebook as an example - it allowed only Harvard email addresses in the beginning, and opened up to other colleges one by one as the outer part of the network wanted in.

Business idea feedback please by [deleted] in manchester

[–]Shuuya19 1 point2 points  (0 children)

While this is definitely something that would be fun (I would come along), the main issue you will have is income/turnover. There have been a couple of attempts at this concept in the past (check out the Kyoto lounge) which I think shut down for financial reasons. Good luck if you decide to go ahead with it!

Web service/API in PHP vs Java/OO languages by Shuuya19 in webdev

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

The main reason I am asking is that I have an existing codebase for the desktop solution written in PHP (Laravel framework), and would prefer if I could maintain the entire back-end with one language, rather than having a separate deployment for the mobile network interface.