Android

Building phone addiction-breaking app, seeking a robust method for determining when a user last unlocked their phone. At wit's end

Developing Android Apps - Mon, 01/15/2018 - 23:58

It probably isn't possible on android (or iOS for that matter) as I feel like I've tried all approaches. I'm building an activity monitoring device (to help break phone addiction) -- and a requirement is the ability to notify a server if the phone has not been unlocked in the past 12 hours (or X amount of hours). That 12-hour clock should reset every time the user unlocks their phone.

On the server, I have it configured so that there is a canary approach (the server would be notified when a phone unlock occurs and if it does not hear from the phone after X hours -- then we know the user has been inactive on their phone).

At wit's end for a robust implementation on either Android or iOS... does anybody have any pointers? (I asked over at r/iOS dev too.)

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

Does any one know how to post the data to website

Tasker: Total Automation for Android - Mon, 01/15/2018 - 23:27

I guys I just want to know how to post data to website and retrieve information back. By using tasker. For the following website. http://www.mitsuku.com

Please reply me soon.

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

Debugging / Stack Trace Android Studio - How to make it Useful?

Developing Android Apps - Mon, 01/15/2018 - 22:27

I'm using the latest Android Studio but for the life of me during development when my app crashes I just cant locate where the exception is occurring within my code. For example at the moment the RUN window is showing: java.lang.RuntimeException: Unable to start service ... java.lang.NullPointerException

Make no mistake. The service IS running but somewhere within the service contains a variable that is NULL. I'm trying to Debug and have gone as far as setting break exceptions but it always breaks and shows me the stack of some useless location within the android source as opposed to the exact cause of the exception within my code. The stack trace is useless since it NEVER traces back into my code.

I'm used to IDE's like Visual Studio which will not only break on the exact cause but will also provide a useful stack trace to step back into my code. How do i get this exact same behaviour out of Android Studio.

Thanks

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

This might be a dumb question -- Linux Mint JUnit tests significantly slower than MacOSX JUnit tests

Developing Android Apps - Mon, 01/15/2018 - 21:55

Has anyone experienced this or know of a fix? I've tried increase memory and priority to android studio but for some reason my tests on Mint never seem to perform well.

Testing computers:

Computer 1: R7 1700 OC'd to 3.7ghz 16gb ram 3200

Computer 2: i7 4790k 16gb 1333 ram

Computer 3: Macbook Pro 2011 2.4ghz i7 8gb ram with no ssd

Basically computer 1 has linux mint and macosx installed and macos unit tests complete in half the time of the mint. Computer 2 just has mint also really slow. Computer 3 is the fastest by a large margin aside from the MacOSX installation on computer 1 in which they're similar.

I'm not sure if I'm just missing a setting that's on by default on MacOSX or if it's just not optimized as well for Linux but I thought I'd ask. I've been wracking my brain and trying random stuff I've found on the internet but nothing seems to make a notable difference.

Any help is greatly appreciated!

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

Phone camera comparison tool. Made using cardboard, rubber bands, and tooth picks.

Android - Mon, 01/15/2018 - 20:55

https://imgur.com/gallery/SXk72

It was just a simple idea I had but it turned out to work pretty well. I imagine it could be extended such that more holes are added vertically to line up other off centered phone cameras as well. Would be cool to have a laser printed version out of wood.

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

Application Context - detect widgets?

Tasker: Total Automation for Android - Mon, 01/15/2018 - 17:58

I would like to disable monochrome when a particular widget is visible. Currently, I disable monochrome when Launcher3 is in the foreground, but I'd like to be more targeted, and only disable monochrome when the widget is visible- so not when I am viewing the drawer, and not when I am on a home screen tab that does not contain the widget.

How might I do this? Monitoring services certainly won't help, as I believe widgets leave services running at all times.

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

Remote messages on Join

Tasker: Total Automation for Android - Mon, 01/15/2018 - 17:23

How do i delete the remote messages on the join app? I see no delete key

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

Pages