Showing Firebase Data on Recycler View

Developing Android Apps - Thu, 03/15/2018 - 22:07

Okay I'm actually just getting into Android Development again and went with Kotlin because I wanted something new.

I am trying to read data from Firebase and display it on recycler view.

I was following the Firebase guide but it was a little wonky. Any ideas?

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

Tasker not able to scan WiFi networks on Andoird P dev preview

Tasker: Total Automation for Android - Thu, 03/15/2018 - 20:58


Anyone else facing this issue? WiFi near doesn't trigger unless I manually turn WiFi on and connect to the network.

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

Using the latest Pure Nexus ROM, no root, failing CTS Safetynet

Nexus 4 - Thu, 03/15/2018 - 19:59

Any idea how to fix it?

If it's a ROM problem, what ROMs work with safetynet / how do I get it working?

Thank you!

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

[question] how to get Tasker to read and react to content inside a notification

Tasker: Total Automation for Android - Thu, 03/15/2018 - 18:30

Buckle up this might be a touch long TDLR at bottom

Ok so back story, I'm a firefighter, we use an app called active911 to alert us to calls. Pretty sweet app really for what it does. Alerts display call type, gives you a Google maps address and the option to GPS yourself to the call, unit(s) requested and other fine details.
Also, father to kids and stay at home with them during the day. Sometimes calls go off that impact me getting home in a timely manner and due to the nature of my job I'm not able to text my wife that there is a late call so she can get the kids to daycare or not.

So I created a profile using auto notification and Tasker that basically reads the active911 notification that goes into my pull down notification menu, reads the call type displayed and takes the appropriate action based on that. (I also have it play a specific tone on my phone after the initial alert that indecates what call type it is. We used to have this kinda thing over the radio and I'm a fan of the old ways. Now we just have a stupid robot lady dispatching us. Annoying.)

Looks like this. has like 74 steps total to include all the call types and end if.

Auto notification looks like this.

Works sweet. The question is this: is there an app or a way to intercept which station is getting dispatched based on the information inside the notification? So she doesn't get a text every time a station in the department gets a call but just the station I'm currently working out of?

TDLR: wrote a profile that texts my wife when I get a notification from active 911 and makes my phone sound awesome. Want to find a way to read station numbers from inside the app to keep from texting her every time every station gets a call and just text her when mine gets a call. Need ideas.¯\_(ツ)_/¯

TIA guys!

Oh forgot to mention the alerts in the notification bar from active911 say department name and call type. Nothing else

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

[Question] Make tasker run task faster when booting up device?

Tasker: Total Automation for Android - Thu, 03/15/2018 - 17:49

Hello, i recently purchased an android screen for in my car, where i run tasker on. The device boots up in under 20sec, but my tasker runs the task only after 2 minutes or so(little bit exagerrated).
Is there a way i canmake tasker check/run its tasks when the device is booted up?
Thanks in advance

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

Parse Platform and ParseTwitterUtils with Kotlin?

Developing Android Apps - Thu, 03/15/2018 - 17:28

Alright, I'll be the first to admit my android skills are lacking. Most of my development time is spent on iOS. With that out of the way, I am having a beast of a time working in Kotlin with ParseTwitterUtils. It has functions to do the request signing for you that that either a HttpUriRequest, or an HttpURLConnection. I can only find java examples and those tell me to use something called DefaultHttpClient to get a HttpClient object and HttpGet to make the getRequest. Those don't seem to be things in Kotlin. When I try importing the apache libraries into my gradle file it tells me it will cause issues. Can someone help me figure out the Kotlin equivalent to the following:

(Example Java Code from HttpClient client = new DefaultHttpClient(); HttpGet verifyGet = new HttpGet(""); ParseTwitterUtils.getTwitter().signRequest(verifyGet); HttpResponse response = client.execute(verifyGet);

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

Am I the only one pulling my hairs over the emulator not working?

Developing Android Apps - Thu, 03/15/2018 - 16:59

Ever since I have updated android to 3.0.1 the emulator (which was only a minor nuisance) has become a major pain in my ass. In the last two days I have encountered maybe a dozen or so bugs regarding the emulator.

From having to change Windows settings, manually remove files, manually change file attributes inside the AVD, uninstalling and re-installing AS... It's so tiresome to get the emulator to work.

Am I the only one here?

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

Pay close attention to Samsung S9/S9+ benchmarks and how they are performed--it makes a huge difference

Android - Thu, 03/15/2018 - 16:11

Hey guys, I wanted to create this post to highlight some pretty massive differences I have seen in reviews when it comes to bench-marking the S9+. There is a ton of misinformation or bias. It seems worse than most releases imo.

Obviously the biggest thing that differentiates benchmarks for the S9 is that there are two different chipsets. The Exynos on the international release vs Snapdragon in the U.S. Any decent reviewer will list which variant they are using, so this is the easiest factor to take into account.

HOWEVER you will want to make sure to cross-reference statements about the performance between the two chip-sets regardless, because for example this is one issue I have been seeing:

The performance of both SoCs should be comparable, as always. Having the different Snapdragon and Exynos SoCs has been going on for years.

Yes it should provide similar performance, but it doesn't, at least for now. For whatever reason. Per another corroborating source:

On the GPU side for Manhattan fluctuated between 4.5 and 5.2W, which is an improvement over the Exynos 8895. But again, this is still at a disadvantage compared to the Snapdragon 845.

So if you are trying to benchmark your phone and compare with official results. Make sure they are of your variant. Either the international version, or the U.S. version.

Now the next biggest factor in testing that isn't nearly as talked about is:

How was the SOC tested? Which tests? What were the parameters of the tests? Because it can produce wildly different outcomes. For example, I saw someone link this article, and they mentioned how the Snapdragon Adreno 630 GPU was more hype like always, and still underperformed vs the A11. Which if you read that article I linked. You would probably agree with that sentiment, at first anyway. This is what that article stated:

The iPhone X got the better of the S9+ in Sling Shot Unlimited, 4,994 to 4,634. But it looks like the new Snapdragon 845 is more adept at handling graphics than its predecessor was.

So what is the issue here?

Well Tom's guide doesn't state anywhere whether or not this was an on-screen test vs an off-screen test.

Other, more thorough and reliable sites like DO list how they benchmark.

Gsmarena also did a great job in listing another factor that could easily attribute to the lower score by the S9 in GPU benchmarks that I haven't seen mentioned in any other recent review.


The phones with lower screen resolution would have an edge over the Quad HD Galaxy S9 and that's obvious from the onscreen test. The Huawei P10, Pixel 2, Xperia XZ2 and even the iPhone X - they all have 1080p or similar resolution compared to the 1440p screen on the Galaxy S9.[]

This is a big reason why on the Manhattan benchmark. You see a MAJOR difference in off-screen vs on-screen performance, and why "off-screen" the S9 beats the iPhone X, but the "on-screen" test the iPhone X clobbers the S9. The S9 has to push significantly more pixels than the iPhone X.

With that in mind. Let's see how off-screen Adreno 630 numbers compare to the A11 GPU in the aforementioned sling-shot unlimited test.

Remember Tom's guide said:

The iPhone X got the better of the S9+ in Sling Shot Unlimited, 4,994 to 4,634. on the other hand said:

In this test we again run the Offscreen mode, so as to remove display resolution differences from the equation and thus compare cross-platform results more reliably.

In Sling Shot Extreme, the Galaxy S9+ maintains its lead over the other flagship Android smartphones in our test group, and even takes Apple's iPhone X out behind the wood shed for a beating.


So we can in fact extrapolate that the Adreno 630 in the SD845 is the much more capable GPU, but you won't necessarily see better performance on the S9 (or any other smartphone) vs the iPhone X, only because the S9 has to push significantly more pixels for its higher resolution display.

I just thought I would share my findings, as it seems like 90%+ of reviewers claim that the S9 SOCs are complete equivalents and/or that at the very least the Snapdragon SOC is under-performing. That isn't true at all.

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

NEED HELP Inputting random strings

Developing Android Apps - Thu, 03/15/2018 - 15:52

am inexperienced with coding in general but i was using an Android application "Android Bot Maker" to make a macro. However, I do not know how to make it so that instead of inputting text that I assign it inputs a random string of an assigned number of letters.

The exported file is attached and : input text 'THIS%sIS%sWHERE%sI%sNEED%sRANDOM%sLETTERS'

is the place that i want it to input a string of 20 alphanumeric characters instead of THIS IS WHERE I NEED RANDOM LETTERS.

Is there a way to do this so that it will function on android?

while true do { echo 'TAP: (600,1200)' input tap 600 1200 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (100,300)' input tap 100 300 echo 'SLEEP: (1.0secs)' sleep 1.0 echo TEXT: (rawrxd)' input text 'rawrxd' echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (150,360)' input tap 150 360 echo 'SLEEP: (1.0secs)' sleep 1.0 echo TEXT: (lolayy)' input text 'lolayy' echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (150,605)' input tap 150 605 echo 'SLEEP: (1.0secs)' sleep 1.0 echo TEXT: (THIS IS WHERE I NEED RANDOM LETTERS)' input text 'THIS%sIS%sWHERE%sI%sNEED%sRANDOM%sLETTERS' echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (150,660)' input tap 150 660 echo 'SLEEP: (1.0secs)' sleep 1.0 echo TEXT: (thisisapassword)' input text 'thisisapassword' echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (150,740)' input tap 150 740 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'SWIPE: (450,570) (450,1270) 1s' input swipe 450 570 450 1270 1000 echo 'SLEEP: (0.5secs)' sleep 0.5 echo 'TAP: (300,750)' input tap 300 750 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (100,810)' input tap 100 810 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (400,900)' input tap 400 900 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (350,1200)' input tap 350 1200 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (200,1000)' input tap 200 1000 echo 'SLEEP: (1.0secs)' sleep 1.0 echo TEXT: (JN1239601)' input text 'JN1239601' echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (450,1070)' input tap 450 1070 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (40,80)' input tap 40 80 echo 'SLEEP: (1.0secs)' sleep 1.0 echo 'TAP: (150,650)' input tap 150 650 echo 'SLEEP: (1.0secs)' sleep 1.0 } done

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