Anyone want to review the code of my first app?

Developing Android Apps - Fri, 05/25/2018 - 07:45

Hi all,

So, after over half a year of lackluster development, I've finally pieced together my first app (or at least the base of it). Now, before going any further implementing features and even considering publishing it, I was hoping that some of you guys would be able to take a look at what I have so far and critique it. Just to preface my situation here, I'm super new to both Android dev and programming in general, so be prepared to see some shitty code. Feel free to make suggestions or corrections and please, let me know what I'm doing wrong and why it's bad/how I could do it better.

With that out of the way, my app is just a really simple to-do list app, in which a user can add and edit different tasks that they would like to complete. Each task is represented by a fragment in a scroll-able layout, with each fragment containing the task name and a (optional) user chosen reminder time. The to-do list also works on a day-to-day basis, where added tasks are only persistent for the current day unless otherwise specified in the task creation menu. At the end of the day, all tasks are deleted with the exception of said "daily" tasks. Users can also prematurely end the day, deleting any non-daily tasks they had for that day and allowing them to add tasks for the following day. That's pretty much everything, so without further ado, here it is: list_app. You can also find screenshots of my app here. I tried to follow the material design guidelines as best as I could, so let me know how it looks.

Some stuff I know I could improve on:

- Using ArrayLists instead of arrays. Idk why I did this

- Using a database rather than SharedPrefrences modeled after arrays to store task data (really bad, I know)

- Overall code structure and nomenclature (some stuff gets a bit messy)

submitted by /u/manWithAPlan22
[link] [comments]
Categories: Android, Linux

What do you currently need to be an up-to-date mobile app developer?

Developing Android Apps - Fri, 05/25/2018 - 07:23

Over the past few months I've been feeling like the mobile app development world has been changing quite fast. I used to make my apps in Java, now I'm switching to Kotlin, Google is also introducing Flutter which will let you make your UI for Android and iOS on one framework. There's also React Native which lets you have one codebase for both platforms. I can imagine all the decisions new Android developers have to make, and it must be confusing as fuck.

Don't get me wrong, I'm very open to learning new things, but it seems like the stuff you need to know to be up to date is increasing and I'm starting to feel the pressure. More employers and clients expect me to be able to also make iOS apps, and I'm wondering whether anyone else here is going through this. Is the value of being a purely native Android developer decreasing? Also what tools/libraries do you guys use the most for your Android development and what do you think about all the different ways you could make Android apps?

submitted by /u/InnenTensai
[link] [comments]
Categories: Android, Linux

[Question] About using FOR loop

Tasker: Total Automation for Android - Fri, 05/25/2018 - 05:11

Hello, people of the world!! :) Please help me with my problem using tasker. In my tasker script I have a repetetive action, that I perform using FOR loop:

FOR %repeat, 1:5 repeats some actions here

In this case actions will perform 5 times.

If I set loop to 1:1 repeats, then actions perform 1 time. But if I want to skip this section and I set 1:0 repeats, then it perform 2 times with "1" and "0" in variable.

Even if I set it to 0:0 repeats, then it performs 1 time having "0" in variable.

Could you please help me with this problem? Is it somehow possible not to perform FOR loop by setting it's parameters? I know that I can comment section of my script, by I don't want to do it.

Thank you, guys!

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

What to do when the app submission is Pending Publication?

Developing Android Apps - Fri, 05/25/2018 - 04:35

It is taking 3 days long for an app to be published, it is not my first app in the store hence why I know this is unusual

submitted by /u/myrcello
[link] [comments]
Categories: Android, Linux

Is there any particular reason why the GET_ACCOUNTS permission is part of the CONTACTS group?

Developing Android Apps - Fri, 05/25/2018 - 04:16

If you just want to get the user's Google email address, you have to ask for a contacts permission. Is there any workaround?

Edit: It seems that you can't get the user account via AccountManager.get() in Oreo anymore.

submitted by /u/helga13434
[link] [comments]
Categories: Android, Linux

I'm a noob.. Need help on Setting a Call like system

Tasker: Total Automation for Android - Fri, 05/25/2018 - 04:13

In an app i can listen audio through earpiece when ear is near earpiece but the input touch system is still active.. So I'd like to implement a task that become active on app launch and then monitors the proximity sensor.. Doing the screen on off job just like the normal Calling setup

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

Is Consent SDK really necessary because of option to opt out of interest-based ads?

Developing Android Apps - Fri, 05/25/2018 - 03:52

In Google Settings app, you can reset your Advertising ID and opt out of interest-based ads (more info). I suppose that Admob SDK already take into account these user preferences, especially the last one, so it is really necessary to offer non-personalized ads option per-app?

submitted by /u/Vekin03
[link] [comments]
Categories: Android, Linux

[HELP] Running JUnit tests in java-library module

Developing Android Apps - Fri, 05/25/2018 - 03:45

I created a java-library module in my android studio project. I want to run some junit tests on the classes I have in this module, so I used the IDE to create the new junit4 test and import junit in my build.gradle file.


when i try to run the tests i get the message Process finished with exit code 1 Class not found: "com.example.lrtn.device.FailTest" Empty test suite.

Not sure why this isn't working and couldn't find much about it online. Is there something else I need to put in the file? ``` apply plugin: 'java-library'

dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) compile 'junit:junit:4.12' } sourceCompatibility = "8" targetCompatibility = "8"

``` ``` package com.example.lrtn.device;

import org.junit.Test; import static; public class FailTest { @Test public void failTest() { fail(); } }


submitted by /u/dank_memelord_420
[link] [comments]
Categories: Android, Linux

Auto tools and joaomgcd privacy policy.

Tasker: Total Automation for Android - Fri, 05/25/2018 - 03:37

Hello, i would like to ask abt the changes in auto apps privacy and policy, since it did not load when i clicked to read them and i was wondering about those changes regarding the GDPR.


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

Toggling "Show virtual keyboard slider"

Tasker: Total Automation for Android - Fri, 05/25/2018 - 03:08

I've been using the Planet Computers Gemini PDA for about a month now. I'm really loving this little keyboard device and enjoying tweaking it to my liking. I am having an issue I'd like to fix.

With the hardware keyboard, most of the time I'm using it and obviously don't need an on screen keyboard, so the "Show virtual keyboard" option is disabled in the Change Keyboard menu (accessed from little keyboard icon in the nav bar). However, when I'm out and about there's moments where I flip the device to Landscape and use the screen to type.

I set up a Tasker profile that calls on Secure Settings to change the keyboard to Gboard when the device is in portrait mode, but I can't figure out how to get the keyboard to pop up when touching a text field. Using the Hardware Keyboard option in Secure Settings, I was able to get the keyboard to pop up a few times (it was hit or miss), but then when I'd go back to Landscape I would return to the hardware keyboard but then have a virtual one pop up as well, forcing me to constantly go into the menu and turn it off.

Basically, what I want is:

  • Landscape mode: Gemini Keyboard enabled, Show virtual keyboard disabled
  • Portrait mode: Gboard enabled, Show virtual keyboard enabled
submitted by /u/meeester55
[link] [comments]

List of Apps that correctly implemented GDPR?

Developing Android Apps - Fri, 05/25/2018 - 03:01

I am hoping we all can share apps that correctly implemented GDPR so that we can learn from one another.

submitted by /u/mksreddy
[link] [comments]
Categories: Android, Linux

Tasker/Watchmaker plug-in is inconsistent

Tasker: Total Automation for Android - Fri, 05/25/2018 - 02:41

One of my absolute favorite things tasker is that I allows me to auto change my Wear OS watchface based on for example time of day, or location. I have set up a location profile for home, work and gym, and using the watchmaker plug in, I can have a watchface that suits the purpose. At least in theory.

I have found that this only works once or twice after being implemented. After that, the profile activates in tasker, but it doesn't work on the watch in any consistent way. It works if I manually run the task, but not on its own, 99% of the time at least. Once in a while it succeeds Does anyone have any ideas or advice how I can improve the Watchmaker/Tasker integration to make this more consistent?

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